1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$?; test $as_status -eq 0 && as_status=1
367  if test "$3"; then
368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370  fi
371  $as_echo "$as_me: error: $1" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530# Check that we are running under the correct shell.
531SHELL=${CONFIG_SHELL-/bin/sh}
532
533case X$lt_ECHO in
534X*--fallback-echo)
535  # Remove one level of quotation (which was required for Make).
536  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537  ;;
538esac
539
540ECHO=${lt_ECHO-echo}
541if test "X$1" = X--no-reexec; then
542  # Discard the --no-reexec flag, and continue.
543  shift
544elif test "X$1" = X--fallback-echo; then
545  # Avoid inline document here, it may be left over
546  :
547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548  # Yippee, $ECHO works!
549  :
550else
551  # Restart under the correct shell.
552  exec $SHELL "$0" --no-reexec ${1+"$@"}
553fi
554
555if test "X$1" = X--fallback-echo; then
556  # used as fallback echo
557  shift
558  cat <<_LT_EOF
559$*
560_LT_EOF
561  exit 0
562fi
563
564# The HP-UX ksh and POSIX shell print the target directory to stdout
565# if CDPATH is set.
566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568if test -z "$lt_ECHO"; then
569  if test "X${echo_test_string+set}" != Xset; then
570    # find a string as large as possible, as long as the shell can cope with it
571    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575      then
576        break
577      fi
578    done
579  fi
580
581  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583     test "X$echo_testing_string" = "X$echo_test_string"; then
584    :
585  else
586    # The Solaris, AIX, and Digital Unix default echo programs unquote
587    # backslashes.  This makes it impossible to quote backslashes using
588    #   echo "$something" | sed 's/\\/\\\\/g'
589    #
590    # So, first we look for a working echo in the user's PATH.
591
592    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593    for dir in $PATH /usr/ucb; do
594      IFS="$lt_save_ifs"
595      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598         test "X$echo_testing_string" = "X$echo_test_string"; then
599        ECHO="$dir/echo"
600        break
601      fi
602    done
603    IFS="$lt_save_ifs"
604
605    if test "X$ECHO" = Xecho; then
606      # We didn't find a better echo, so look for alternatives.
607      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609         test "X$echo_testing_string" = "X$echo_test_string"; then
610        # This shell has a builtin print -r that does the trick.
611        ECHO='print -r'
612      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613	   test "X$CONFIG_SHELL" != X/bin/ksh; then
614        # If we have ksh, try running configure again with it.
615        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616        export ORIGINAL_CONFIG_SHELL
617        CONFIG_SHELL=/bin/ksh
618        export CONFIG_SHELL
619        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620      else
621        # Try using printf.
622        ECHO='printf %s\n'
623        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625	   test "X$echo_testing_string" = "X$echo_test_string"; then
626	  # Cool, printf works
627	  :
628        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629	     test "X$echo_testing_string" = 'X\t' &&
630	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631	     test "X$echo_testing_string" = "X$echo_test_string"; then
632	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633	  export CONFIG_SHELL
634	  SHELL="$CONFIG_SHELL"
635	  export SHELL
636	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
637        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638	     test "X$echo_testing_string" = 'X\t' &&
639	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640	     test "X$echo_testing_string" = "X$echo_test_string"; then
641	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
642        else
643	  # maybe with a smaller string...
644	  prev=:
645
646	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648	    then
649	      break
650	    fi
651	    prev="$cmd"
652	  done
653
654	  if test "$prev" != 'sed 50q "$0"'; then
655	    echo_test_string=`eval $prev`
656	    export echo_test_string
657	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658	  else
659	    # Oops.  We lost completely, so just stick with echo.
660	    ECHO=echo
661	  fi
662        fi
663      fi
664    fi
665  fi
666fi
667
668# Copy echo and quote the copy suitably for passing to libtool from
669# the Makefile, instead of quoting the original, which is used later.
670lt_ECHO=$ECHO
671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673fi
674
675
676
677
678test -n "$DJDIR" || exec 7<&0 </dev/null
679exec 6>&1
680
681# Name of the host.
682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686#
687# Initializations.
688#
689ac_default_prefix=/usr/local
690ac_clean_files=
691ac_config_libobj_dir=.
692LIBOBJS=
693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
697
698# Identity of this package.
699PACKAGE_NAME=
700PACKAGE_TARNAME=
701PACKAGE_VERSION=
702PACKAGE_STRING=
703PACKAGE_BUGREPORT=
704PACKAGE_URL=
705
706ac_unique_file="entities.c"
707# Factoring default headers for most tests.
708ac_includes_default="\
709#include <stdio.h>
710#ifdef HAVE_SYS_TYPES_H
711# include <sys/types.h>
712#endif
713#ifdef HAVE_SYS_STAT_H
714# include <sys/stat.h>
715#endif
716#ifdef STDC_HEADERS
717# include <stdlib.h>
718# include <stddef.h>
719#else
720# ifdef HAVE_STDLIB_H
721#  include <stdlib.h>
722# endif
723#endif
724#ifdef HAVE_STRING_H
725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726#  include <memory.h>
727# endif
728# include <string.h>
729#endif
730#ifdef HAVE_STRINGS_H
731# include <strings.h>
732#endif
733#ifdef HAVE_INTTYPES_H
734# include <inttypes.h>
735#endif
736#ifdef HAVE_STDINT_H
737# include <stdint.h>
738#endif
739#ifdef HAVE_UNISTD_H
740# include <unistd.h>
741#endif"
742
743ac_subst_vars='am__EXEEXT_FALSE
744am__EXEEXT_TRUE
745LTLIBOBJS
746LIBOBJS
747PYTHON_TESTS
748RELDATE
749RDL_LIBS
750M_LIBS
751PYTHON_SITE_PACKAGES
752PYTHON_INCLUDES
753PYTHON_VERSION
754HAVE_ISINF
755HAVE_ISNAN
756XML_INCLUDEDIR
757ICONV_LIBS
758XML_LIBTOOLLIBS
759XML_LIBS
760XML_LIBDIR
761XML_CFLAGS
762CYGWIN_EXTRA_PYTHON_LIBADD
763CYGWIN_EXTRA_LDFLAGS
764WIN32_EXTRA_LDFLAGS
765WIN32_EXTRA_LIBADD
766WITH_RUN_DEBUG
767WITH_MEM_DEBUG
768TEST_DEBUG
769DEBUG_OBJ
770WITH_DEBUG
771TEST_REGEXPS
772WITH_REGEXPS
773TEST_SCHEMAS
774WITH_SCHEMAS
775TEST_SCHEMATRON
776WITH_SCHEMATRON
777WITH_ISO8859X
778WITH_ICONV
779WITH_OUTPUT
780TEST_XPATH
781XPATH_OBJ
782WITH_XPATH
783TEST_XINCLUDE
784XINCLUDE_OBJ
785WITH_XINCLUDE
786TEST_C14N
787C14N_OBJ
788WITH_C14N
789TEST_XPTR
790XPTR_OBJ
791WITH_XPTR
792DOCB_OBJ
793WITH_DOCB
794TEST_CATALOG
795CATALOG_OBJ
796WITH_CATALOG
797TEST_VTIME
798TEST_VALID
799WITH_VALID
800TEST_PHTML
801TEST_HTML
802HTML_OBJ
803WITH_HTML
804TEST_PUSH
805WITH_PUSH
806TEST_SAX
807WITH_SAX1
808TEST_PATTERN
809WITH_PATTERN
810WITH_WRITER
811READER_TEST
812WITH_READER
813WITH_LEGACY
814HTTP_OBJ
815WITH_HTTP
816FTP_OBJ
817WITH_FTP
818WITH_TREE
819THREADS_W32
820TEST_THREADS
821THREAD_CFLAGS
822WITH_THREADS
823BASE_THREAD_LIBS
824THREAD_LIBS
825WITH_TRIO
826WITH_TRIO_SOURCES_FALSE
827WITH_TRIO_SOURCES_TRUE
828STATIC_BINARIES
829TEST_MODULES
830MODULE_EXTENSION
831MODULE_PLATFORM_LIBS
832WITH_MODULES
833PYTHON_LIBS
834PYTHON_SUBDIR
835pythondir
836WITH_PYTHON_FALSE
837WITH_PYTHON_TRUE
838PYTHON
839WITH_ZLIB
840Z_LIBS
841Z_CFLAGS
842REBUILD_DOCS_FALSE
843REBUILD_DOCS_TRUE
844HTML_DIR
845USE_VERSION_SCRIPT_FALSE
846USE_VERSION_SCRIPT_TRUE
847VERSION_SCRIPT_FLAGS
848OTOOL64
849OTOOL
850LIPO
851NMEDIT
852DSYMUTIL
853lt_ECHO
854RANLIB
855AR
856LN_S
857NM
858ac_ct_DUMPBIN
859DUMPBIN
860LD
861FGREP
862SED
863LIBTOOL
864OBJDUMP
865DLLTOOL
866AS
867ANSI2KNR
868U
869EGREP
870GREP
871XSLTPROC
872XMLLINT
873WGET
874PERL
875TAR
876MV
877RM
878CPP
879am__fastdepCC_FALSE
880am__fastdepCC_TRUE
881CCDEPMODE
882AMDEPBACKSLASH
883AMDEP_FALSE
884AMDEP_TRUE
885am__quote
886am__include
887DEPDIR
888OBJEXT
889EXEEXT
890ac_ct_CC
891CPPFLAGS
892LDFLAGS
893CFLAGS
894CC
895am__untar
896am__tar
897AMTAR
898am__leading_dot
899SET_MAKE
900AWK
901mkdir_p
902MKDIR_P
903INSTALL_STRIP_PROGRAM
904STRIP
905install_sh
906MAKEINFO
907AUTOHEADER
908AUTOMAKE
909AUTOCONF
910ACLOCAL
911VERSION
912PACKAGE
913CYGPATH_W
914am__isrc
915INSTALL_DATA
916INSTALL_SCRIPT
917INSTALL_PROGRAM
918LIBXML_VERSION_EXTRA
919LIBXML_VERSION_NUMBER
920LIBXML_VERSION_INFO
921LIBXML_VERSION
922LIBXML_MICRO_VERSION
923LIBXML_MINOR_VERSION
924LIBXML_MAJOR_VERSION
925host_os
926host_vendor
927host_cpu
928host
929build_os
930build_vendor
931build_cpu
932build
933target_alias
934host_alias
935build_alias
936LIBS
937ECHO_T
938ECHO_N
939ECHO_C
940DEFS
941mandir
942localedir
943libdir
944psdir
945pdfdir
946dvidir
947htmldir
948infodir
949docdir
950oldincludedir
951includedir
952localstatedir
953sharedstatedir
954sysconfdir
955datadir
956datarootdir
957libexecdir
958sbindir
959bindir
960program_transform_name
961prefix
962exec_prefix
963PACKAGE_URL
964PACKAGE_BUGREPORT
965PACKAGE_STRING
966PACKAGE_VERSION
967PACKAGE_TARNAME
968PACKAGE_NAME
969PATH_SEPARATOR
970SHELL'
971ac_subst_files=''
972ac_user_opts='
973enable_option_checking
974enable_dependency_tracking
975enable_shared
976enable_static
977with_pic
978enable_fast_install
979with_gnu_ld
980enable_libtool_lock
981with_c14n
982with_catalog
983with_debug
984with_docbook
985with_fexceptions
986with_ftp
987with_history
988with_html
989with_html_dir
990with_html_subdir
991with_http
992with_iconv
993with_iso8859x
994with_legacy
995with_mem_debug
996with_minimum
997with_output
998with_pattern
999with_push
1000with_python
1001with_reader
1002with_readline
1003with_regexps
1004with_run_debug
1005with_sax1
1006with_schemas
1007with_schematron
1008with_threads
1009with_thread_alloc
1010with_tree
1011with_valid
1012with_writer
1013with_xinclude
1014with_xpath
1015with_xptr
1016with_modules
1017with_zlib
1018with_coverage
1019enable_rebuild_docs
1020enable_ipv6
1021'
1022      ac_precious_vars='build_alias
1023host_alias
1024target_alias
1025CC
1026CFLAGS
1027LDFLAGS
1028LIBS
1029CPPFLAGS
1030CPP'
1031
1032
1033# Initialize some variables set by options.
1034ac_init_help=
1035ac_init_version=false
1036ac_unrecognized_opts=
1037ac_unrecognized_sep=
1038# The variables have the same names as the options, with
1039# dashes changed to underlines.
1040cache_file=/dev/null
1041exec_prefix=NONE
1042no_create=
1043no_recursion=
1044prefix=NONE
1045program_prefix=NONE
1046program_suffix=NONE
1047program_transform_name=s,x,x,
1048silent=
1049site=
1050srcdir=
1051verbose=
1052x_includes=NONE
1053x_libraries=NONE
1054
1055# Installation directory options.
1056# These are left unexpanded so users can "make install exec_prefix=/foo"
1057# and all the variables that are supposed to be based on exec_prefix
1058# by default will actually change.
1059# Use braces instead of parens because sh, perl, etc. also accept them.
1060# (The list follows the same order as the GNU Coding Standards.)
1061bindir='${exec_prefix}/bin'
1062sbindir='${exec_prefix}/sbin'
1063libexecdir='${exec_prefix}/libexec'
1064datarootdir='${prefix}/share'
1065datadir='${datarootdir}'
1066sysconfdir='${prefix}/etc'
1067sharedstatedir='${prefix}/com'
1068localstatedir='${prefix}/var'
1069includedir='${prefix}/include'
1070oldincludedir='/usr/include'
1071docdir='${datarootdir}/doc/${PACKAGE}'
1072infodir='${datarootdir}/info'
1073htmldir='${docdir}'
1074dvidir='${docdir}'
1075pdfdir='${docdir}'
1076psdir='${docdir}'
1077libdir='${exec_prefix}/lib'
1078localedir='${datarootdir}/locale'
1079mandir='${datarootdir}/man'
1080
1081ac_prev=
1082ac_dashdash=
1083for ac_option
1084do
1085  # If the previous option needs an argument, assign it.
1086  if test -n "$ac_prev"; then
1087    eval $ac_prev=\$ac_option
1088    ac_prev=
1089    continue
1090  fi
1091
1092  case $ac_option in
1093  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1094  *)	ac_optarg=yes ;;
1095  esac
1096
1097  # Accept the important Cygnus configure options, so we can diagnose typos.
1098
1099  case $ac_dashdash$ac_option in
1100  --)
1101    ac_dashdash=yes ;;
1102
1103  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1104    ac_prev=bindir ;;
1105  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1106    bindir=$ac_optarg ;;
1107
1108  -build | --build | --buil | --bui | --bu)
1109    ac_prev=build_alias ;;
1110  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1111    build_alias=$ac_optarg ;;
1112
1113  -cache-file | --cache-file | --cache-fil | --cache-fi \
1114  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1115    ac_prev=cache_file ;;
1116  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1117  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1118    cache_file=$ac_optarg ;;
1119
1120  --config-cache | -C)
1121    cache_file=config.cache ;;
1122
1123  -datadir | --datadir | --datadi | --datad)
1124    ac_prev=datadir ;;
1125  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1126    datadir=$ac_optarg ;;
1127
1128  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1129  | --dataroo | --dataro | --datar)
1130    ac_prev=datarootdir ;;
1131  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1132  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1133    datarootdir=$ac_optarg ;;
1134
1135  -disable-* | --disable-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error "invalid feature name: $ac_useropt"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"enable_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval enable_$ac_useropt=no ;;
1150
1151  -docdir | --docdir | --docdi | --doc | --do)
1152    ac_prev=docdir ;;
1153  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1154    docdir=$ac_optarg ;;
1155
1156  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1157    ac_prev=dvidir ;;
1158  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1159    dvidir=$ac_optarg ;;
1160
1161  -enable-* | --enable-*)
1162    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1163    # Reject names that are not valid shell variable names.
1164    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165      as_fn_error "invalid feature name: $ac_useropt"
1166    ac_useropt_orig=$ac_useropt
1167    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168    case $ac_user_opts in
1169      *"
1170"enable_$ac_useropt"
1171"*) ;;
1172      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1173	 ac_unrecognized_sep=', ';;
1174    esac
1175    eval enable_$ac_useropt=\$ac_optarg ;;
1176
1177  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1178  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1179  | --exec | --exe | --ex)
1180    ac_prev=exec_prefix ;;
1181  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1182  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1183  | --exec=* | --exe=* | --ex=*)
1184    exec_prefix=$ac_optarg ;;
1185
1186  -gas | --gas | --ga | --g)
1187    # Obsolete; use --with-gas.
1188    with_gas=yes ;;
1189
1190  -help | --help | --hel | --he | -h)
1191    ac_init_help=long ;;
1192  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1193    ac_init_help=recursive ;;
1194  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1195    ac_init_help=short ;;
1196
1197  -host | --host | --hos | --ho)
1198    ac_prev=host_alias ;;
1199  -host=* | --host=* | --hos=* | --ho=*)
1200    host_alias=$ac_optarg ;;
1201
1202  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1203    ac_prev=htmldir ;;
1204  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1205  | --ht=*)
1206    htmldir=$ac_optarg ;;
1207
1208  -includedir | --includedir | --includedi | --included | --include \
1209  | --includ | --inclu | --incl | --inc)
1210    ac_prev=includedir ;;
1211  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1212  | --includ=* | --inclu=* | --incl=* | --inc=*)
1213    includedir=$ac_optarg ;;
1214
1215  -infodir | --infodir | --infodi | --infod | --info | --inf)
1216    ac_prev=infodir ;;
1217  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1218    infodir=$ac_optarg ;;
1219
1220  -libdir | --libdir | --libdi | --libd)
1221    ac_prev=libdir ;;
1222  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1223    libdir=$ac_optarg ;;
1224
1225  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1226  | --libexe | --libex | --libe)
1227    ac_prev=libexecdir ;;
1228  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1229  | --libexe=* | --libex=* | --libe=*)
1230    libexecdir=$ac_optarg ;;
1231
1232  -localedir | --localedir | --localedi | --localed | --locale)
1233    ac_prev=localedir ;;
1234  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1235    localedir=$ac_optarg ;;
1236
1237  -localstatedir | --localstatedir | --localstatedi | --localstated \
1238  | --localstate | --localstat | --localsta | --localst | --locals)
1239    ac_prev=localstatedir ;;
1240  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1241  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1242    localstatedir=$ac_optarg ;;
1243
1244  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1245    ac_prev=mandir ;;
1246  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1247    mandir=$ac_optarg ;;
1248
1249  -nfp | --nfp | --nf)
1250    # Obsolete; use --without-fp.
1251    with_fp=no ;;
1252
1253  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1254  | --no-cr | --no-c | -n)
1255    no_create=yes ;;
1256
1257  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1258  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1259    no_recursion=yes ;;
1260
1261  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1262  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1263  | --oldin | --oldi | --old | --ol | --o)
1264    ac_prev=oldincludedir ;;
1265  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1266  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1267  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1268    oldincludedir=$ac_optarg ;;
1269
1270  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1271    ac_prev=prefix ;;
1272  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1273    prefix=$ac_optarg ;;
1274
1275  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1276  | --program-pre | --program-pr | --program-p)
1277    ac_prev=program_prefix ;;
1278  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1279  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1280    program_prefix=$ac_optarg ;;
1281
1282  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1283  | --program-suf | --program-su | --program-s)
1284    ac_prev=program_suffix ;;
1285  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1286  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1287    program_suffix=$ac_optarg ;;
1288
1289  -program-transform-name | --program-transform-name \
1290  | --program-transform-nam | --program-transform-na \
1291  | --program-transform-n | --program-transform- \
1292  | --program-transform | --program-transfor \
1293  | --program-transfo | --program-transf \
1294  | --program-trans | --program-tran \
1295  | --progr-tra | --program-tr | --program-t)
1296    ac_prev=program_transform_name ;;
1297  -program-transform-name=* | --program-transform-name=* \
1298  | --program-transform-nam=* | --program-transform-na=* \
1299  | --program-transform-n=* | --program-transform-=* \
1300  | --program-transform=* | --program-transfor=* \
1301  | --program-transfo=* | --program-transf=* \
1302  | --program-trans=* | --program-tran=* \
1303  | --progr-tra=* | --program-tr=* | --program-t=*)
1304    program_transform_name=$ac_optarg ;;
1305
1306  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1307    ac_prev=pdfdir ;;
1308  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1309    pdfdir=$ac_optarg ;;
1310
1311  -psdir | --psdir | --psdi | --psd | --ps)
1312    ac_prev=psdir ;;
1313  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1314    psdir=$ac_optarg ;;
1315
1316  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1317  | -silent | --silent | --silen | --sile | --sil)
1318    silent=yes ;;
1319
1320  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1321    ac_prev=sbindir ;;
1322  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1323  | --sbi=* | --sb=*)
1324    sbindir=$ac_optarg ;;
1325
1326  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1327  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1328  | --sharedst | --shareds | --shared | --share | --shar \
1329  | --sha | --sh)
1330    ac_prev=sharedstatedir ;;
1331  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1332  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1333  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1334  | --sha=* | --sh=*)
1335    sharedstatedir=$ac_optarg ;;
1336
1337  -site | --site | --sit)
1338    ac_prev=site ;;
1339  -site=* | --site=* | --sit=*)
1340    site=$ac_optarg ;;
1341
1342  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1343    ac_prev=srcdir ;;
1344  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1345    srcdir=$ac_optarg ;;
1346
1347  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1348  | --syscon | --sysco | --sysc | --sys | --sy)
1349    ac_prev=sysconfdir ;;
1350  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1351  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1352    sysconfdir=$ac_optarg ;;
1353
1354  -target | --target | --targe | --targ | --tar | --ta | --t)
1355    ac_prev=target_alias ;;
1356  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1357    target_alias=$ac_optarg ;;
1358
1359  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1360    verbose=yes ;;
1361
1362  -version | --version | --versio | --versi | --vers | -V)
1363    ac_init_version=: ;;
1364
1365  -with-* | --with-*)
1366    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1367    # Reject names that are not valid shell variable names.
1368    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1369      as_fn_error "invalid package name: $ac_useropt"
1370    ac_useropt_orig=$ac_useropt
1371    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1372    case $ac_user_opts in
1373      *"
1374"with_$ac_useropt"
1375"*) ;;
1376      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1377	 ac_unrecognized_sep=', ';;
1378    esac
1379    eval with_$ac_useropt=\$ac_optarg ;;
1380
1381  -without-* | --without-*)
1382    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1383    # Reject names that are not valid shell variable names.
1384    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1385      as_fn_error "invalid package name: $ac_useropt"
1386    ac_useropt_orig=$ac_useropt
1387    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1388    case $ac_user_opts in
1389      *"
1390"with_$ac_useropt"
1391"*) ;;
1392      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1393	 ac_unrecognized_sep=', ';;
1394    esac
1395    eval with_$ac_useropt=no ;;
1396
1397  --x)
1398    # Obsolete; use --with-x.
1399    with_x=yes ;;
1400
1401  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1402  | --x-incl | --x-inc | --x-in | --x-i)
1403    ac_prev=x_includes ;;
1404  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1405  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1406    x_includes=$ac_optarg ;;
1407
1408  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1409  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1410    ac_prev=x_libraries ;;
1411  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1412  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1413    x_libraries=$ac_optarg ;;
1414
1415  -*) as_fn_error "unrecognized option: \`$ac_option'
1416Try \`$0 --help' for more information."
1417    ;;
1418
1419  *=*)
1420    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1421    # Reject names that are not valid shell variable names.
1422    case $ac_envvar in #(
1423      '' | [0-9]* | *[!_$as_cr_alnum]* )
1424      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1425    esac
1426    eval $ac_envvar=\$ac_optarg
1427    export $ac_envvar ;;
1428
1429  *)
1430    # FIXME: should be removed in autoconf 3.0.
1431    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1432    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1433      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1434    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1435    ;;
1436
1437  esac
1438done
1439
1440if test -n "$ac_prev"; then
1441  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1442  as_fn_error "missing argument to $ac_option"
1443fi
1444
1445if test -n "$ac_unrecognized_opts"; then
1446  case $enable_option_checking in
1447    no) ;;
1448    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1449    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1450  esac
1451fi
1452
1453# Check all directory arguments for consistency.
1454for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1455		datadir sysconfdir sharedstatedir localstatedir includedir \
1456		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1457		libdir localedir mandir
1458do
1459  eval ac_val=\$$ac_var
1460  # Remove trailing slashes.
1461  case $ac_val in
1462    */ )
1463      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1464      eval $ac_var=\$ac_val;;
1465  esac
1466  # Be sure to have absolute directory names.
1467  case $ac_val in
1468    [\\/$]* | ?:[\\/]* )  continue;;
1469    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1470  esac
1471  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1472done
1473
1474# There might be people who depend on the old broken behavior: `$host'
1475# used to hold the argument of --host etc.
1476# FIXME: To remove some day.
1477build=$build_alias
1478host=$host_alias
1479target=$target_alias
1480
1481# FIXME: To remove some day.
1482if test "x$host_alias" != x; then
1483  if test "x$build_alias" = x; then
1484    cross_compiling=maybe
1485    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1486    If a cross compiler is detected then cross compile mode will be used." >&2
1487  elif test "x$build_alias" != "x$host_alias"; then
1488    cross_compiling=yes
1489  fi
1490fi
1491
1492ac_tool_prefix=
1493test -n "$host_alias" && ac_tool_prefix=$host_alias-
1494
1495test "$silent" = yes && exec 6>/dev/null
1496
1497
1498ac_pwd=`pwd` && test -n "$ac_pwd" &&
1499ac_ls_di=`ls -di .` &&
1500ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1501  as_fn_error "working directory cannot be determined"
1502test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1503  as_fn_error "pwd does not report name of working directory"
1504
1505
1506# Find the source files, if location was not specified.
1507if test -z "$srcdir"; then
1508  ac_srcdir_defaulted=yes
1509  # Try the directory containing this script, then the parent directory.
1510  ac_confdir=`$as_dirname -- "$as_myself" ||
1511$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1512	 X"$as_myself" : 'X\(//\)[^/]' \| \
1513	 X"$as_myself" : 'X\(//\)$' \| \
1514	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1515$as_echo X"$as_myself" |
1516    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1517	    s//\1/
1518	    q
1519	  }
1520	  /^X\(\/\/\)[^/].*/{
1521	    s//\1/
1522	    q
1523	  }
1524	  /^X\(\/\/\)$/{
1525	    s//\1/
1526	    q
1527	  }
1528	  /^X\(\/\).*/{
1529	    s//\1/
1530	    q
1531	  }
1532	  s/.*/./; q'`
1533  srcdir=$ac_confdir
1534  if test ! -r "$srcdir/$ac_unique_file"; then
1535    srcdir=..
1536  fi
1537else
1538  ac_srcdir_defaulted=no
1539fi
1540if test ! -r "$srcdir/$ac_unique_file"; then
1541  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1542  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1543fi
1544ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1545ac_abs_confdir=`(
1546	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1547	pwd)`
1548# When building in place, set srcdir=.
1549if test "$ac_abs_confdir" = "$ac_pwd"; then
1550  srcdir=.
1551fi
1552# Remove unnecessary trailing slashes from srcdir.
1553# Double slashes in file names in object file debugging info
1554# mess up M-x gdb in Emacs.
1555case $srcdir in
1556*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1557esac
1558for ac_var in $ac_precious_vars; do
1559  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1560  eval ac_env_${ac_var}_value=\$${ac_var}
1561  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1562  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1563done
1564
1565#
1566# Report the --help message.
1567#
1568if test "$ac_init_help" = "long"; then
1569  # Omit some internal or obsolete options to make the list less imposing.
1570  # This message is too long to be a string in the A/UX 3.1 sh.
1571  cat <<_ACEOF
1572\`configure' configures this package to adapt to many kinds of systems.
1573
1574Usage: $0 [OPTION]... [VAR=VALUE]...
1575
1576To assign environment variables (e.g., CC, CFLAGS...), specify them as
1577VAR=VALUE.  See below for descriptions of some of the useful variables.
1578
1579Defaults for the options are specified in brackets.
1580
1581Configuration:
1582  -h, --help              display this help and exit
1583      --help=short        display options specific to this package
1584      --help=recursive    display the short help of all the included packages
1585  -V, --version           display version information and exit
1586  -q, --quiet, --silent   do not print \`checking...' messages
1587      --cache-file=FILE   cache test results in FILE [disabled]
1588  -C, --config-cache      alias for \`--cache-file=config.cache'
1589  -n, --no-create         do not create output files
1590      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1591
1592Installation directories:
1593  --prefix=PREFIX         install architecture-independent files in PREFIX
1594                          [$ac_default_prefix]
1595  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1596                          [PREFIX]
1597
1598By default, \`make install' will install all the files in
1599\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1600an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1601for instance \`--prefix=\$HOME'.
1602
1603For better control, use the options below.
1604
1605Fine tuning of the installation directories:
1606  --bindir=DIR            user executables [EPREFIX/bin]
1607  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1608  --libexecdir=DIR        program executables [EPREFIX/libexec]
1609  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1610  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1611  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1612  --libdir=DIR            object code libraries [EPREFIX/lib]
1613  --includedir=DIR        C header files [PREFIX/include]
1614  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1615  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1616  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1617  --infodir=DIR           info documentation [DATAROOTDIR/info]
1618  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1619  --mandir=DIR            man documentation [DATAROOTDIR/man]
1620  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1621  --htmldir=DIR           html documentation [DOCDIR]
1622  --dvidir=DIR            dvi documentation [DOCDIR]
1623  --pdfdir=DIR            pdf documentation [DOCDIR]
1624  --psdir=DIR             ps documentation [DOCDIR]
1625_ACEOF
1626
1627  cat <<\_ACEOF
1628
1629Program names:
1630  --program-prefix=PREFIX            prepend PREFIX to installed program names
1631  --program-suffix=SUFFIX            append SUFFIX to installed program names
1632  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1633
1634System types:
1635  --build=BUILD     configure for building on BUILD [guessed]
1636  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1637_ACEOF
1638fi
1639
1640if test -n "$ac_init_help"; then
1641
1642  cat <<\_ACEOF
1643
1644Optional Features:
1645  --disable-option-checking  ignore unrecognized --enable/--with options
1646  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1647  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1648  --disable-dependency-tracking  speeds up one-time build
1649  --enable-dependency-tracking   do not reject slow dependency extractors
1650  --enable-shared[=PKGS]  build shared libraries [default=yes]
1651  --enable-static[=PKGS]  build static libraries [default=yes]
1652  --enable-fast-install[=PKGS]
1653                          optimize for fast installation [default=yes]
1654  --disable-libtool-lock  avoid locking (might break parallel builds)
1655  --enable-rebuild-docs[=yes/no]  rebuild some generated docs [default=yes]
1656  --enable-ipv6[=yes/no]  enables compilation of IPv6 code [default=yes]
1657
1658Optional Packages:
1659  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1660  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1661  --with-pic              try to use only PIC/non-PIC objects [default=use
1662                          both]
1663  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1664  --with-c14n             add the Canonicalization support (on)
1665  --with-catalog          add the Catalog support (on)
1666  --with-debug            add the debugging module (on)
1667  --with-docbook          add Docbook SGML support (on)
1668  --with-fexceptions      add GCC flag -fexceptions for C++ exceptions (off)
1669  --with-ftp              add the FTP support (on)
1670  --with-history          add history support to xmllint shell(off)
1671  --with-html             add the HTML support (on)
1672  --with-html-dir=path    path to base html directory, default
1673                          $datadir/doc/html
1674  --with-html-subdir=path directory used under html-dir, default
1675                          $PACKAGE-$VERSION/html
1676  --with-http             add the HTTP support (on)
1677  --with-iconv[=DIR]      add ICONV support (on)
1678  --with-iso8859x         add ISO8859X support if no iconv (on)
1679  --with-legacy           add deprecated APIs for compatibility (on)
1680  --with-mem-debug        add the memory debugging module (off)
1681  --with-minimum          build a minimally sized library (off)
1682  --with-output           add the serialization support (on)
1683  --with-pattern          add the xmlPattern selection interface (on)
1684  --with-push             add the PUSH parser interfaces (on)
1685  --with-python[=DIR]     build Python bindings if found
1686  --with-reader           add the xmlReader parsing interface (on)
1687  --with-readline=DIR     use readline in DIR
1688  --with-regexps          add Regular Expressions support (on)
1689  --with-run-debug        add the runtime debugging module (off)
1690  --with-sax1             add the older SAX1 interface (on)
1691  --with-schemas          add Relax-NG and Schemas support (on)
1692  --with-schematron       add Schematron support (on)
1693  --with-threads          add multithread support(on)
1694  --with-thread-alloc     add per-thread memory(off)
1695  --with-tree             add the DOM like tree manipulation APIs (on)
1696  --with-valid            add the DTD validation support (on)
1697  --with-writer           add the xmlWriter saving interface (on)
1698  --with-xinclude         add the XInclude support (on)
1699  --with-xpath            add the XPATH support (on)
1700  --with-xptr             add the XPointer support (on)
1701  --with-modules          add the dynamic modules support (on)
1702  --with-zlib[=DIR]       use libz in DIR
1703  --with-coverage         build for code coverage with GCC (off)
1704
1705Some influential environment variables:
1706  CC          C compiler command
1707  CFLAGS      C compiler flags
1708  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1709              nonstandard directory <lib dir>
1710  LIBS        libraries to pass to the linker, e.g. -l<library>
1711  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1712              you have headers in a nonstandard directory <include dir>
1713  CPP         C preprocessor
1714
1715Use these variables to override the choices made by `configure' or to help
1716it to find libraries and programs with nonstandard names/locations.
1717
1718Report bugs to the package provider.
1719_ACEOF
1720ac_status=$?
1721fi
1722
1723if test "$ac_init_help" = "recursive"; then
1724  # If there are subdirs, report their specific --help.
1725  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726    test -d "$ac_dir" ||
1727      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728      continue
1729    ac_builddir=.
1730
1731case "$ac_dir" in
1732.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733*)
1734  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735  # A ".." for each directory in $ac_dir_suffix.
1736  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737  case $ac_top_builddir_sub in
1738  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740  esac ;;
1741esac
1742ac_abs_top_builddir=$ac_pwd
1743ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744# for backward compatibility:
1745ac_top_builddir=$ac_top_build_prefix
1746
1747case $srcdir in
1748  .)  # We are building in place.
1749    ac_srcdir=.
1750    ac_top_srcdir=$ac_top_builddir_sub
1751    ac_abs_top_srcdir=$ac_pwd ;;
1752  [\\/]* | ?:[\\/]* )  # Absolute name.
1753    ac_srcdir=$srcdir$ac_dir_suffix;
1754    ac_top_srcdir=$srcdir
1755    ac_abs_top_srcdir=$srcdir ;;
1756  *) # Relative name.
1757    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758    ac_top_srcdir=$ac_top_build_prefix$srcdir
1759    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1760esac
1761ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1762
1763    cd "$ac_dir" || { ac_status=$?; continue; }
1764    # Check for guested configure.
1765    if test -f "$ac_srcdir/configure.gnu"; then
1766      echo &&
1767      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768    elif test -f "$ac_srcdir/configure"; then
1769      echo &&
1770      $SHELL "$ac_srcdir/configure" --help=recursive
1771    else
1772      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1773    fi || ac_status=$?
1774    cd "$ac_pwd" || { ac_status=$?; break; }
1775  done
1776fi
1777
1778test -n "$ac_init_help" && exit $ac_status
1779if $ac_init_version; then
1780  cat <<\_ACEOF
1781configure
1782generated by GNU Autoconf 2.65
1783
1784Copyright (C) 2009 Free Software Foundation, Inc.
1785This configure script is free software; the Free Software Foundation
1786gives unlimited permission to copy, distribute and modify it.
1787_ACEOF
1788  exit
1789fi
1790
1791## ------------------------ ##
1792## Autoconf initialization. ##
1793## ------------------------ ##
1794
1795# ac_fn_c_try_compile LINENO
1796# --------------------------
1797# Try to compile conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_c_try_compile ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  rm -f conftest.$ac_objext
1802  if { { ac_try="$ac_compile"
1803case "(($ac_try" in
1804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805  *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808$as_echo "$ac_try_echo"; } >&5
1809  (eval "$ac_compile") 2>conftest.err
1810  ac_status=$?
1811  if test -s conftest.err; then
1812    grep -v '^ *+' conftest.err >conftest.er1
1813    cat conftest.er1 >&5
1814    mv -f conftest.er1 conftest.err
1815  fi
1816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817  test $ac_status = 0; } && {
1818	 test -z "$ac_c_werror_flag" ||
1819	 test ! -s conftest.err
1820       } && test -s conftest.$ac_objext; then :
1821  ac_retval=0
1822else
1823  $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826	ac_retval=1
1827fi
1828  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829  as_fn_set_status $ac_retval
1830
1831} # ac_fn_c_try_compile
1832
1833# ac_fn_c_try_cpp LINENO
1834# ----------------------
1835# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836ac_fn_c_try_cpp ()
1837{
1838  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839  if { { ac_try="$ac_cpp conftest.$ac_ext"
1840case "(($ac_try" in
1841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842  *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1847  ac_status=$?
1848  if test -s conftest.err; then
1849    grep -v '^ *+' conftest.err >conftest.er1
1850    cat conftest.er1 >&5
1851    mv -f conftest.er1 conftest.err
1852  fi
1853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854  test $ac_status = 0; } >/dev/null && {
1855	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1856	 test ! -s conftest.err
1857       }; then :
1858  ac_retval=0
1859else
1860  $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863    ac_retval=1
1864fi
1865  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866  as_fn_set_status $ac_retval
1867
1868} # ac_fn_c_try_cpp
1869
1870# ac_fn_c_try_run LINENO
1871# ----------------------
1872# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1873# that executables *can* be run.
1874ac_fn_c_try_run ()
1875{
1876  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877  if { { ac_try="$ac_link"
1878case "(($ac_try" in
1879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880  *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884  (eval "$ac_link") 2>&5
1885  ac_status=$?
1886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1888  { { case "(($ac_try" in
1889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890  *) ac_try_echo=$ac_try;;
1891esac
1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893$as_echo "$ac_try_echo"; } >&5
1894  (eval "$ac_try") 2>&5
1895  ac_status=$?
1896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897  test $ac_status = 0; }; }; then :
1898  ac_retval=0
1899else
1900  $as_echo "$as_me: program exited with status $ac_status" >&5
1901       $as_echo "$as_me: failed program was:" >&5
1902sed 's/^/| /' conftest.$ac_ext >&5
1903
1904       ac_retval=$ac_status
1905fi
1906  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1907  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908  as_fn_set_status $ac_retval
1909
1910} # ac_fn_c_try_run
1911
1912# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1913# -------------------------------------------------------
1914# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1915# the include files in INCLUDES and setting the cache variable VAR
1916# accordingly.
1917ac_fn_c_check_header_mongrel ()
1918{
1919  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922$as_echo_n "checking for $2... " >&6; }
1923if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924  $as_echo_n "(cached) " >&6
1925fi
1926eval ac_res=\$$3
1927	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
1929else
1930  # Is the header compilable?
1931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1932$as_echo_n "checking $2 usability... " >&6; }
1933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934/* end confdefs.h.  */
1935$4
1936#include <$2>
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939  ac_header_compiler=yes
1940else
1941  ac_header_compiler=no
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1945$as_echo "$ac_header_compiler" >&6; }
1946
1947# Is the header present?
1948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1949$as_echo_n "checking $2 presence... " >&6; }
1950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h.  */
1952#include <$2>
1953_ACEOF
1954if ac_fn_c_try_cpp "$LINENO"; then :
1955  ac_header_preproc=yes
1956else
1957  ac_header_preproc=no
1958fi
1959rm -f conftest.err conftest.$ac_ext
1960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1961$as_echo "$ac_header_preproc" >&6; }
1962
1963# So?  What about this header?
1964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1965  yes:no: )
1966    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1967$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1968    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970    ;;
1971  no:yes:* )
1972    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1973$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1975$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1976    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1977$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1978    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1979$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1980    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982    ;;
1983esac
1984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985$as_echo_n "checking for $2... " >&6; }
1986if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987  $as_echo_n "(cached) " >&6
1988else
1989  eval "$3=\$ac_header_compiler"
1990fi
1991eval ac_res=\$$3
1992	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993$as_echo "$ac_res" >&6; }
1994fi
1995  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996
1997} # ac_fn_c_check_header_mongrel
1998
1999# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2000# -------------------------------------------------------
2001# Tests whether HEADER exists and can be compiled using the include files in
2002# INCLUDES, setting the cache variable VAR accordingly.
2003ac_fn_c_check_header_compile ()
2004{
2005  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007$as_echo_n "checking for $2... " >&6; }
2008if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2009  $as_echo_n "(cached) " >&6
2010else
2011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h.  */
2013$4
2014#include <$2>
2015_ACEOF
2016if ac_fn_c_try_compile "$LINENO"; then :
2017  eval "$3=yes"
2018else
2019  eval "$3=no"
2020fi
2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022fi
2023eval ac_res=\$$3
2024	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025$as_echo "$ac_res" >&6; }
2026  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027
2028} # ac_fn_c_check_header_compile
2029
2030# ac_fn_c_try_link LINENO
2031# -----------------------
2032# Try to link conftest.$ac_ext, and return whether this succeeded.
2033ac_fn_c_try_link ()
2034{
2035  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036  rm -f conftest.$ac_objext conftest$ac_exeext
2037  if { { ac_try="$ac_link"
2038case "(($ac_try" in
2039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040  *) ac_try_echo=$ac_try;;
2041esac
2042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043$as_echo "$ac_try_echo"; } >&5
2044  (eval "$ac_link") 2>conftest.err
2045  ac_status=$?
2046  if test -s conftest.err; then
2047    grep -v '^ *+' conftest.err >conftest.er1
2048    cat conftest.er1 >&5
2049    mv -f conftest.er1 conftest.err
2050  fi
2051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2052  test $ac_status = 0; } && {
2053	 test -z "$ac_c_werror_flag" ||
2054	 test ! -s conftest.err
2055       } && test -s conftest$ac_exeext && {
2056	 test "$cross_compiling" = yes ||
2057	 $as_test_x conftest$ac_exeext
2058       }; then :
2059  ac_retval=0
2060else
2061  $as_echo "$as_me: failed program was:" >&5
2062sed 's/^/| /' conftest.$ac_ext >&5
2063
2064	ac_retval=1
2065fi
2066  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2067  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2068  # interfere with the next link command; also delete a directory that is
2069  # left behind by Apple's compiler.  We do this before executing the actions.
2070  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2071  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072  as_fn_set_status $ac_retval
2073
2074} # ac_fn_c_try_link
2075
2076# ac_fn_c_check_func LINENO FUNC VAR
2077# ----------------------------------
2078# Tests whether FUNC exists, setting the cache variable VAR accordingly
2079ac_fn_c_check_func ()
2080{
2081  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083$as_echo_n "checking for $2... " >&6; }
2084if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2085  $as_echo_n "(cached) " >&6
2086else
2087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h.  */
2089/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2090   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2091#define $2 innocuous_$2
2092
2093/* System header to define __stub macros and hopefully few prototypes,
2094    which can conflict with char $2 (); below.
2095    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2096    <limits.h> exists even on freestanding compilers.  */
2097
2098#ifdef __STDC__
2099# include <limits.h>
2100#else
2101# include <assert.h>
2102#endif
2103
2104#undef $2
2105
2106/* Override any GCC internal prototype to avoid an error.
2107   Use char because int might match the return type of a GCC
2108   builtin and then its argument prototype would still apply.  */
2109#ifdef __cplusplus
2110extern "C"
2111#endif
2112char $2 ();
2113/* The GNU C library defines this for functions which it implements
2114    to always fail with ENOSYS.  Some functions are actually named
2115    something starting with __ and the normal name is an alias.  */
2116#if defined __stub_$2 || defined __stub___$2
2117choke me
2118#endif
2119
2120int
2121main ()
2122{
2123return $2 ();
2124  ;
2125  return 0;
2126}
2127_ACEOF
2128if ac_fn_c_try_link "$LINENO"; then :
2129  eval "$3=yes"
2130else
2131  eval "$3=no"
2132fi
2133rm -f core conftest.err conftest.$ac_objext \
2134    conftest$ac_exeext conftest.$ac_ext
2135fi
2136eval ac_res=\$$3
2137	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138$as_echo "$ac_res" >&6; }
2139  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2140
2141} # ac_fn_c_check_func
2142cat >config.log <<_ACEOF
2143This file contains any messages produced by compilers while
2144running configure, to aid debugging if configure makes a mistake.
2145
2146It was created by $as_me, which was
2147generated by GNU Autoconf 2.65.  Invocation command line was
2148
2149  $ $0 $@
2150
2151_ACEOF
2152exec 5>>config.log
2153{
2154cat <<_ASUNAME
2155## --------- ##
2156## Platform. ##
2157## --------- ##
2158
2159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2160uname -m = `(uname -m) 2>/dev/null || echo unknown`
2161uname -r = `(uname -r) 2>/dev/null || echo unknown`
2162uname -s = `(uname -s) 2>/dev/null || echo unknown`
2163uname -v = `(uname -v) 2>/dev/null || echo unknown`
2164
2165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2166/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2167
2168/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2169/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2171/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2172/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2173/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2174/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2175
2176_ASUNAME
2177
2178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179for as_dir in $PATH
2180do
2181  IFS=$as_save_IFS
2182  test -z "$as_dir" && as_dir=.
2183    $as_echo "PATH: $as_dir"
2184  done
2185IFS=$as_save_IFS
2186
2187} >&5
2188
2189cat >&5 <<_ACEOF
2190
2191
2192## ----------- ##
2193## Core tests. ##
2194## ----------- ##
2195
2196_ACEOF
2197
2198
2199# Keep a trace of the command line.
2200# Strip out --no-create and --no-recursion so they do not pile up.
2201# Strip out --silent because we don't want to record it for future runs.
2202# Also quote any args containing shell meta-characters.
2203# Make two passes to allow for proper duplicate-argument suppression.
2204ac_configure_args=
2205ac_configure_args0=
2206ac_configure_args1=
2207ac_must_keep_next=false
2208for ac_pass in 1 2
2209do
2210  for ac_arg
2211  do
2212    case $ac_arg in
2213    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2214    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2215    | -silent | --silent | --silen | --sile | --sil)
2216      continue ;;
2217    *\'*)
2218      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2219    esac
2220    case $ac_pass in
2221    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2222    2)
2223      as_fn_append ac_configure_args1 " '$ac_arg'"
2224      if test $ac_must_keep_next = true; then
2225	ac_must_keep_next=false # Got value, back to normal.
2226      else
2227	case $ac_arg in
2228	  *=* | --config-cache | -C | -disable-* | --disable-* \
2229	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2230	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2231	  | -with-* | --with-* | -without-* | --without-* | --x)
2232	    case "$ac_configure_args0 " in
2233	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2234	    esac
2235	    ;;
2236	  -* ) ac_must_keep_next=true ;;
2237	esac
2238      fi
2239      as_fn_append ac_configure_args " '$ac_arg'"
2240      ;;
2241    esac
2242  done
2243done
2244{ ac_configure_args0=; unset ac_configure_args0;}
2245{ ac_configure_args1=; unset ac_configure_args1;}
2246
2247# When interrupted or exit'd, cleanup temporary files, and complete
2248# config.log.  We remove comments because anyway the quotes in there
2249# would cause problems or look ugly.
2250# WARNING: Use '\'' to represent an apostrophe within the trap.
2251# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2252trap 'exit_status=$?
2253  # Save into config.log some information that might help in debugging.
2254  {
2255    echo
2256
2257    cat <<\_ASBOX
2258## ---------------- ##
2259## Cache variables. ##
2260## ---------------- ##
2261_ASBOX
2262    echo
2263    # The following way of writing the cache mishandles newlines in values,
2264(
2265  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2266    eval ac_val=\$$ac_var
2267    case $ac_val in #(
2268    *${as_nl}*)
2269      case $ac_var in #(
2270      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2271$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2272      esac
2273      case $ac_var in #(
2274      _ | IFS | as_nl) ;; #(
2275      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2276      *) { eval $ac_var=; unset $ac_var;} ;;
2277      esac ;;
2278    esac
2279  done
2280  (set) 2>&1 |
2281    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2282    *${as_nl}ac_space=\ *)
2283      sed -n \
2284	"s/'\''/'\''\\\\'\'''\''/g;
2285	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2286      ;; #(
2287    *)
2288      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2289      ;;
2290    esac |
2291    sort
2292)
2293    echo
2294
2295    cat <<\_ASBOX
2296## ----------------- ##
2297## Output variables. ##
2298## ----------------- ##
2299_ASBOX
2300    echo
2301    for ac_var in $ac_subst_vars
2302    do
2303      eval ac_val=\$$ac_var
2304      case $ac_val in
2305      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2306      esac
2307      $as_echo "$ac_var='\''$ac_val'\''"
2308    done | sort
2309    echo
2310
2311    if test -n "$ac_subst_files"; then
2312      cat <<\_ASBOX
2313## ------------------- ##
2314## File substitutions. ##
2315## ------------------- ##
2316_ASBOX
2317      echo
2318      for ac_var in $ac_subst_files
2319      do
2320	eval ac_val=\$$ac_var
2321	case $ac_val in
2322	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2323	esac
2324	$as_echo "$ac_var='\''$ac_val'\''"
2325      done | sort
2326      echo
2327    fi
2328
2329    if test -s confdefs.h; then
2330      cat <<\_ASBOX
2331## ----------- ##
2332## confdefs.h. ##
2333## ----------- ##
2334_ASBOX
2335      echo
2336      cat confdefs.h
2337      echo
2338    fi
2339    test "$ac_signal" != 0 &&
2340      $as_echo "$as_me: caught signal $ac_signal"
2341    $as_echo "$as_me: exit $exit_status"
2342  } >&5
2343  rm -f core *.core core.conftest.* &&
2344    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2345    exit $exit_status
2346' 0
2347for ac_signal in 1 2 13 15; do
2348  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2349done
2350ac_signal=0
2351
2352# confdefs.h avoids OS command line length limits that DEFS can exceed.
2353rm -f -r conftest* confdefs.h
2354
2355$as_echo "/* confdefs.h */" > confdefs.h
2356
2357# Predefined preprocessor variables.
2358
2359cat >>confdefs.h <<_ACEOF
2360#define PACKAGE_NAME "$PACKAGE_NAME"
2361_ACEOF
2362
2363cat >>confdefs.h <<_ACEOF
2364#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2365_ACEOF
2366
2367cat >>confdefs.h <<_ACEOF
2368#define PACKAGE_VERSION "$PACKAGE_VERSION"
2369_ACEOF
2370
2371cat >>confdefs.h <<_ACEOF
2372#define PACKAGE_STRING "$PACKAGE_STRING"
2373_ACEOF
2374
2375cat >>confdefs.h <<_ACEOF
2376#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2377_ACEOF
2378
2379cat >>confdefs.h <<_ACEOF
2380#define PACKAGE_URL "$PACKAGE_URL"
2381_ACEOF
2382
2383
2384# Let the site file select an alternate cache file if it wants to.
2385# Prefer an explicitly selected file to automatically selected ones.
2386ac_site_file1=NONE
2387ac_site_file2=NONE
2388if test -n "$CONFIG_SITE"; then
2389  ac_site_file1=$CONFIG_SITE
2390elif test "x$prefix" != xNONE; then
2391  ac_site_file1=$prefix/share/config.site
2392  ac_site_file2=$prefix/etc/config.site
2393else
2394  ac_site_file1=$ac_default_prefix/share/config.site
2395  ac_site_file2=$ac_default_prefix/etc/config.site
2396fi
2397for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2398do
2399  test "x$ac_site_file" = xNONE && continue
2400  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2401    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2402$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2403    sed 's/^/| /' "$ac_site_file" >&5
2404    . "$ac_site_file"
2405  fi
2406done
2407
2408if test -r "$cache_file"; then
2409  # Some versions of bash will fail to source /dev/null (special files
2410  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2411  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2412    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2413$as_echo "$as_me: loading cache $cache_file" >&6;}
2414    case $cache_file in
2415      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2416      *)                      . "./$cache_file";;
2417    esac
2418  fi
2419else
2420  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2421$as_echo "$as_me: creating cache $cache_file" >&6;}
2422  >$cache_file
2423fi
2424
2425# Check that the precious variables saved in the cache have kept the same
2426# value.
2427ac_cache_corrupted=false
2428for ac_var in $ac_precious_vars; do
2429  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2430  eval ac_new_set=\$ac_env_${ac_var}_set
2431  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2432  eval ac_new_val=\$ac_env_${ac_var}_value
2433  case $ac_old_set,$ac_new_set in
2434    set,)
2435      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2436$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2437      ac_cache_corrupted=: ;;
2438    ,set)
2439      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2440$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2441      ac_cache_corrupted=: ;;
2442    ,);;
2443    *)
2444      if test "x$ac_old_val" != "x$ac_new_val"; then
2445	# differences in whitespace do not lead to failure.
2446	ac_old_val_w=`echo x $ac_old_val`
2447	ac_new_val_w=`echo x $ac_new_val`
2448	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2449	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2450$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2451	  ac_cache_corrupted=:
2452	else
2453	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2454$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2455	  eval $ac_var=\$ac_old_val
2456	fi
2457	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2458$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2459	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2460$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2461      fi;;
2462  esac
2463  # Pass precious variables to config.status.
2464  if test "$ac_new_set" = set; then
2465    case $ac_new_val in
2466    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2467    *) ac_arg=$ac_var=$ac_new_val ;;
2468    esac
2469    case " $ac_configure_args " in
2470      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2471      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2472    esac
2473  fi
2474done
2475if $ac_cache_corrupted; then
2476  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2479$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2480  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2481fi
2482## -------------------- ##
2483## Main body of script. ##
2484## -------------------- ##
2485
2486ac_ext=c
2487ac_cpp='$CPP $CPPFLAGS'
2488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490ac_compiler_gnu=$ac_cv_c_compiler_gnu
2491
2492
2493ac_config_headers="$ac_config_headers config.h"
2494
2495
2496ac_aux_dir=
2497for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2498  for ac_t in install-sh install.sh shtool; do
2499    if test -f "$ac_dir/$ac_t"; then
2500      ac_aux_dir=$ac_dir
2501      ac_install_sh="$ac_aux_dir/$ac_t -c"
2502      break 2
2503    fi
2504  done
2505done
2506if test -z "$ac_aux_dir"; then
2507  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2508fi
2509
2510# These three variables are undocumented and unsupported,
2511# and are intended to be withdrawn in a future Autoconf release.
2512# They can cause serious problems if a builder's source tree is in a directory
2513# whose full name contains unusual characters.
2514ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2515ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2516ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2517
2518
2519# Make sure we can run config.sub.
2520$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2521  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2522
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2524$as_echo_n "checking build system type... " >&6; }
2525if test "${ac_cv_build+set}" = set; then :
2526  $as_echo_n "(cached) " >&6
2527else
2528  ac_build_alias=$build_alias
2529test "x$ac_build_alias" = x &&
2530  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2531test "x$ac_build_alias" = x &&
2532  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2533ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2534  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2535
2536fi
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2538$as_echo "$ac_cv_build" >&6; }
2539case $ac_cv_build in
2540*-*-*) ;;
2541*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2542esac
2543build=$ac_cv_build
2544ac_save_IFS=$IFS; IFS='-'
2545set x $ac_cv_build
2546shift
2547build_cpu=$1
2548build_vendor=$2
2549shift; shift
2550# Remember, the first character of IFS is used to create $*,
2551# except with old shells:
2552build_os=$*
2553IFS=$ac_save_IFS
2554case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2555
2556
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2558$as_echo_n "checking host system type... " >&6; }
2559if test "${ac_cv_host+set}" = set; then :
2560  $as_echo_n "(cached) " >&6
2561else
2562  if test "x$host_alias" = x; then
2563  ac_cv_host=$ac_cv_build
2564else
2565  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2566    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2567fi
2568
2569fi
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2571$as_echo "$ac_cv_host" >&6; }
2572case $ac_cv_host in
2573*-*-*) ;;
2574*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2575esac
2576host=$ac_cv_host
2577ac_save_IFS=$IFS; IFS='-'
2578set x $ac_cv_host
2579shift
2580host_cpu=$1
2581host_vendor=$2
2582shift; shift
2583# Remember, the first character of IFS is used to create $*,
2584# except with old shells:
2585host_os=$*
2586IFS=$ac_save_IFS
2587case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2588
2589
2590
2591LIBXML_MAJOR_VERSION=2
2592LIBXML_MINOR_VERSION=7
2593LIBXML_MICRO_VERSION=7
2594LIBXML_MICRO_VERSION_SUFFIX=
2595LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX
2596LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
2597
2598LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
2599
2600if test -f CVS/Entries ; then
2601  extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
2602  echo extra=$extra
2603  if test "$extra" != ""
2604  then
2605      LIBXML_VERSION_EXTRA="-CVS$extra"
2606  fi
2607else if test -d .svn ; then
2608  extra=`svn info | grep Revision | sed 's+Revision: ++'`
2609  echo extra=$extra
2610  if test "$extra" != ""
2611  then
2612      LIBXML_VERSION_EXTRA="-SVN$extra"
2613  fi
2614else if test -d .git ; then
2615  extra=`git describe | sed 's+LIBXML[0-9.]*-++'`
2616  echo extra=$extra
2617  if test "$extra" != ""
2618  then
2619      LIBXML_VERSION_EXTRA="-GIT$extra"
2620  fi
2621fi
2622fi
2623fi
2624
2625
2626
2627
2628
2629
2630
2631
2632VERSION=${LIBXML_VERSION}
2633
2634am__api_version='1.11'
2635
2636# Find a good install program.  We prefer a C program (faster),
2637# so one script is as good as another.  But avoid the broken or
2638# incompatible versions:
2639# SysV /etc/install, /usr/sbin/install
2640# SunOS /usr/etc/install
2641# IRIX /sbin/install
2642# AIX /bin/install
2643# AmigaOS /C/install, which installs bootblocks on floppy discs
2644# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2645# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2646# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2647# OS/2's system install, which has a completely different semantic
2648# ./install, which can be erroneously created by make from ./install.sh.
2649# Reject install programs that cannot install multiple files.
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2651$as_echo_n "checking for a BSD-compatible install... " >&6; }
2652if test -z "$INSTALL"; then
2653if test "${ac_cv_path_install+set}" = set; then :
2654  $as_echo_n "(cached) " >&6
2655else
2656  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659  IFS=$as_save_IFS
2660  test -z "$as_dir" && as_dir=.
2661    # Account for people who put trailing slashes in PATH elements.
2662case $as_dir/ in #((
2663  ./ | .// | /[cC]/* | \
2664  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2665  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2666  /usr/ucb/* ) ;;
2667  *)
2668    # OSF1 and SCO ODT 3.0 have their own names for install.
2669    # Don't use installbsd from OSF since it installs stuff as root
2670    # by default.
2671    for ac_prog in ginstall scoinst install; do
2672      for ac_exec_ext in '' $ac_executable_extensions; do
2673	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2674	  if test $ac_prog = install &&
2675	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676	    # AIX install.  It has an incompatible calling convention.
2677	    :
2678	  elif test $ac_prog = install &&
2679	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2680	    # program-specific install script used by HP pwplus--don't use.
2681	    :
2682	  else
2683	    rm -rf conftest.one conftest.two conftest.dir
2684	    echo one > conftest.one
2685	    echo two > conftest.two
2686	    mkdir conftest.dir
2687	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2688	      test -s conftest.one && test -s conftest.two &&
2689	      test -s conftest.dir/conftest.one &&
2690	      test -s conftest.dir/conftest.two
2691	    then
2692	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2693	      break 3
2694	    fi
2695	  fi
2696	fi
2697      done
2698    done
2699    ;;
2700esac
2701
2702  done
2703IFS=$as_save_IFS
2704
2705rm -rf conftest.one conftest.two conftest.dir
2706
2707fi
2708  if test "${ac_cv_path_install+set}" = set; then
2709    INSTALL=$ac_cv_path_install
2710  else
2711    # As a last resort, use the slow shell script.  Don't cache a
2712    # value for INSTALL within a source directory, because that will
2713    # break other packages using the cache if that directory is
2714    # removed, or if the value is a relative name.
2715    INSTALL=$ac_install_sh
2716  fi
2717fi
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2719$as_echo "$INSTALL" >&6; }
2720
2721# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2722# It thinks the first close brace ends the variable substitution.
2723test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2724
2725test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2726
2727test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2728
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2730$as_echo_n "checking whether build environment is sane... " >&6; }
2731# Just in case
2732sleep 1
2733echo timestamp > conftest.file
2734# Reject unsafe characters in $srcdir or the absolute working directory
2735# name.  Accept space and tab only in the latter.
2736am_lf='
2737'
2738case `pwd` in
2739  *[\\\"\#\$\&\'\`$am_lf]*)
2740    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2741esac
2742case $srcdir in
2743  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2744    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2745esac
2746
2747# Do `set' in a subshell so we don't clobber the current shell's
2748# arguments.  Must try -L first in case configure is actually a
2749# symlink; some systems play weird games with the mod time of symlinks
2750# (eg FreeBSD returns the mod time of the symlink's containing
2751# directory).
2752if (
2753   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2754   if test "$*" = "X"; then
2755      # -L didn't work.
2756      set X `ls -t "$srcdir/configure" conftest.file`
2757   fi
2758   rm -f conftest.file
2759   if test "$*" != "X $srcdir/configure conftest.file" \
2760      && test "$*" != "X conftest.file $srcdir/configure"; then
2761
2762      # If neither matched, then we have a broken ls.  This can happen
2763      # if, for instance, CONFIG_SHELL is bash and it inherits a
2764      # broken ls alias from the environment.  This has actually
2765      # happened.  Such a system could not be considered "sane".
2766      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2767alias in your environment" "$LINENO" 5
2768   fi
2769
2770   test "$2" = conftest.file
2771   )
2772then
2773   # Ok.
2774   :
2775else
2776   as_fn_error "newly created file is older than distributed files!
2777Check your system clock" "$LINENO" 5
2778fi
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2780$as_echo "yes" >&6; }
2781test "$program_prefix" != NONE &&
2782  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2783# Use a double $ so make ignores it.
2784test "$program_suffix" != NONE &&
2785  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2786# Double any \ or $.
2787# By default was `s,x,x', remove it if useless.
2788ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2789program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2790
2791# expand $ac_aux_dir to an absolute path
2792am_aux_dir=`cd $ac_aux_dir && pwd`
2793
2794if test x"${MISSING+set}" != xset; then
2795  case $am_aux_dir in
2796  *\ * | *\	*)
2797    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2798  *)
2799    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2800  esac
2801fi
2802# Use eval to expand $SHELL
2803if eval "$MISSING --run true"; then
2804  am_missing_run="$MISSING --run "
2805else
2806  am_missing_run=
2807  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2808$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2809fi
2810
2811if test x"${install_sh}" != xset; then
2812  case $am_aux_dir in
2813  *\ * | *\	*)
2814    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2815  *)
2816    install_sh="\${SHELL} $am_aux_dir/install-sh"
2817  esac
2818fi
2819
2820# Installed binaries are usually stripped using `strip' when the user
2821# run `make install-strip'.  However `strip' might not be the right
2822# tool to use in cross-compilation environments, therefore Automake
2823# will honor the `STRIP' environment variable to overrule this program.
2824if test "$cross_compiling" != no; then
2825  if test -n "$ac_tool_prefix"; then
2826  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2827set dummy ${ac_tool_prefix}strip; ac_word=$2
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829$as_echo_n "checking for $ac_word... " >&6; }
2830if test "${ac_cv_prog_STRIP+set}" = set; then :
2831  $as_echo_n "(cached) " >&6
2832else
2833  if test -n "$STRIP"; then
2834  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2835else
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839  IFS=$as_save_IFS
2840  test -z "$as_dir" && as_dir=.
2841    for ac_exec_ext in '' $ac_executable_extensions; do
2842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845    break 2
2846  fi
2847done
2848  done
2849IFS=$as_save_IFS
2850
2851fi
2852fi
2853STRIP=$ac_cv_prog_STRIP
2854if test -n "$STRIP"; then
2855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2856$as_echo "$STRIP" >&6; }
2857else
2858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859$as_echo "no" >&6; }
2860fi
2861
2862
2863fi
2864if test -z "$ac_cv_prog_STRIP"; then
2865  ac_ct_STRIP=$STRIP
2866  # Extract the first word of "strip", so it can be a program name with args.
2867set dummy strip; ac_word=$2
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869$as_echo_n "checking for $ac_word... " >&6; }
2870if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2871  $as_echo_n "(cached) " >&6
2872else
2873  if test -n "$ac_ct_STRIP"; then
2874  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879  IFS=$as_save_IFS
2880  test -z "$as_dir" && as_dir=.
2881    for ac_exec_ext in '' $ac_executable_extensions; do
2882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883    ac_cv_prog_ac_ct_STRIP="strip"
2884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885    break 2
2886  fi
2887done
2888  done
2889IFS=$as_save_IFS
2890
2891fi
2892fi
2893ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2894if test -n "$ac_ct_STRIP"; then
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2896$as_echo "$ac_ct_STRIP" >&6; }
2897else
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899$as_echo "no" >&6; }
2900fi
2901
2902  if test "x$ac_ct_STRIP" = x; then
2903    STRIP=":"
2904  else
2905    case $cross_compiling:$ac_tool_warned in
2906yes:)
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2909ac_tool_warned=yes ;;
2910esac
2911    STRIP=$ac_ct_STRIP
2912  fi
2913else
2914  STRIP="$ac_cv_prog_STRIP"
2915fi
2916
2917fi
2918INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2919
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2921$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2922if test -z "$MKDIR_P"; then
2923  if test "${ac_cv_path_mkdir+set}" = set; then :
2924  $as_echo_n "(cached) " >&6
2925else
2926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2928do
2929  IFS=$as_save_IFS
2930  test -z "$as_dir" && as_dir=.
2931    for ac_prog in mkdir gmkdir; do
2932	 for ac_exec_ext in '' $ac_executable_extensions; do
2933	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2934	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2935	     'mkdir (GNU coreutils) '* | \
2936	     'mkdir (coreutils) '* | \
2937	     'mkdir (fileutils) '4.1*)
2938	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2939	       break 3;;
2940	   esac
2941	 done
2942       done
2943  done
2944IFS=$as_save_IFS
2945
2946fi
2947
2948  test -d ./--version && rmdir ./--version
2949  if test "${ac_cv_path_mkdir+set}" = set; then
2950    MKDIR_P="$ac_cv_path_mkdir -p"
2951  else
2952    # As a last resort, use the slow shell script.  Don't cache a
2953    # value for MKDIR_P within a source directory, because that will
2954    # break other packages using the cache if that directory is
2955    # removed, or if the value is a relative name.
2956    MKDIR_P="$ac_install_sh -d"
2957  fi
2958fi
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2960$as_echo "$MKDIR_P" >&6; }
2961
2962mkdir_p="$MKDIR_P"
2963case $mkdir_p in
2964  [\\/$]* | ?:[\\/]*) ;;
2965  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2966esac
2967
2968for ac_prog in gawk mawk nawk awk
2969do
2970  # Extract the first word of "$ac_prog", so it can be a program name with args.
2971set dummy $ac_prog; ac_word=$2
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973$as_echo_n "checking for $ac_word... " >&6; }
2974if test "${ac_cv_prog_AWK+set}" = set; then :
2975  $as_echo_n "(cached) " >&6
2976else
2977  if test -n "$AWK"; then
2978  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983  IFS=$as_save_IFS
2984  test -z "$as_dir" && as_dir=.
2985    for ac_exec_ext in '' $ac_executable_extensions; do
2986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987    ac_cv_prog_AWK="$ac_prog"
2988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989    break 2
2990  fi
2991done
2992  done
2993IFS=$as_save_IFS
2994
2995fi
2996fi
2997AWK=$ac_cv_prog_AWK
2998if test -n "$AWK"; then
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3000$as_echo "$AWK" >&6; }
3001else
3002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003$as_echo "no" >&6; }
3004fi
3005
3006
3007  test -n "$AWK" && break
3008done
3009
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3011$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3012set x ${MAKE-make}
3013ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3014if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3015  $as_echo_n "(cached) " >&6
3016else
3017  cat >conftest.make <<\_ACEOF
3018SHELL = /bin/sh
3019all:
3020	@echo '@@@%%%=$(MAKE)=@@@%%%'
3021_ACEOF
3022# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3023case `${MAKE-make} -f conftest.make 2>/dev/null` in
3024  *@@@%%%=?*=@@@%%%*)
3025    eval ac_cv_prog_make_${ac_make}_set=yes;;
3026  *)
3027    eval ac_cv_prog_make_${ac_make}_set=no;;
3028esac
3029rm -f conftest.make
3030fi
3031if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3033$as_echo "yes" >&6; }
3034  SET_MAKE=
3035else
3036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037$as_echo "no" >&6; }
3038  SET_MAKE="MAKE=${MAKE-make}"
3039fi
3040
3041rm -rf .tst 2>/dev/null
3042mkdir .tst 2>/dev/null
3043if test -d .tst; then
3044  am__leading_dot=.
3045else
3046  am__leading_dot=_
3047fi
3048rmdir .tst 2>/dev/null
3049
3050if test "`cd $srcdir && pwd`" != "`pwd`"; then
3051  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3052  # is not polluted with repeated "-I."
3053  am__isrc=' -I$(srcdir)'
3054  # test to see if srcdir already configured
3055  if test -f $srcdir/config.status; then
3056    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3057  fi
3058fi
3059
3060# test whether we have cygpath
3061if test -z "$CYGPATH_W"; then
3062  if (cygpath --version) >/dev/null 2>/dev/null; then
3063    CYGPATH_W='cygpath -w'
3064  else
3065    CYGPATH_W=echo
3066  fi
3067fi
3068
3069
3070# Define the identity of the package.
3071 PACKAGE=libxml2
3072 VERSION=$VERSION
3073
3074
3075cat >>confdefs.h <<_ACEOF
3076#define PACKAGE "$PACKAGE"
3077_ACEOF
3078
3079
3080cat >>confdefs.h <<_ACEOF
3081#define VERSION "$VERSION"
3082_ACEOF
3083
3084# Some tools Automake needs.
3085
3086ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3087
3088
3089AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3090
3091
3092AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3093
3094
3095AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3096
3097
3098MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3099
3100# We need awk for the "check" target.  The system "awk" is bad on
3101# some platforms.
3102# Always define AMTAR for backward compatibility.
3103
3104AMTAR=${AMTAR-"${am_missing_run}tar"}
3105
3106am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3107
3108
3109
3110
3111
3112
3113ac_ext=c
3114ac_cpp='$CPP $CPPFLAGS'
3115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118if test -n "$ac_tool_prefix"; then
3119  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3120set dummy ${ac_tool_prefix}gcc; ac_word=$2
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122$as_echo_n "checking for $ac_word... " >&6; }
3123if test "${ac_cv_prog_CC+set}" = set; then :
3124  $as_echo_n "(cached) " >&6
3125else
3126  if test -n "$CC"; then
3127  ac_cv_prog_CC="$CC" # Let the user override the test.
3128else
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132  IFS=$as_save_IFS
3133  test -z "$as_dir" && as_dir=.
3134    for ac_exec_ext in '' $ac_executable_extensions; do
3135  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138    break 2
3139  fi
3140done
3141  done
3142IFS=$as_save_IFS
3143
3144fi
3145fi
3146CC=$ac_cv_prog_CC
3147if test -n "$CC"; then
3148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149$as_echo "$CC" >&6; }
3150else
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152$as_echo "no" >&6; }
3153fi
3154
3155
3156fi
3157if test -z "$ac_cv_prog_CC"; then
3158  ac_ct_CC=$CC
3159  # Extract the first word of "gcc", so it can be a program name with args.
3160set dummy gcc; ac_word=$2
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162$as_echo_n "checking for $ac_word... " >&6; }
3163if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3164  $as_echo_n "(cached) " >&6
3165else
3166  if test -n "$ac_ct_CC"; then
3167  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172  IFS=$as_save_IFS
3173  test -z "$as_dir" && as_dir=.
3174    for ac_exec_ext in '' $ac_executable_extensions; do
3175  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176    ac_cv_prog_ac_ct_CC="gcc"
3177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178    break 2
3179  fi
3180done
3181  done
3182IFS=$as_save_IFS
3183
3184fi
3185fi
3186ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187if test -n "$ac_ct_CC"; then
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3189$as_echo "$ac_ct_CC" >&6; }
3190else
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192$as_echo "no" >&6; }
3193fi
3194
3195  if test "x$ac_ct_CC" = x; then
3196    CC=""
3197  else
3198    case $cross_compiling:$ac_tool_warned in
3199yes:)
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3202ac_tool_warned=yes ;;
3203esac
3204    CC=$ac_ct_CC
3205  fi
3206else
3207  CC="$ac_cv_prog_CC"
3208fi
3209
3210if test -z "$CC"; then
3211          if test -n "$ac_tool_prefix"; then
3212    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3213set dummy ${ac_tool_prefix}cc; ac_word=$2
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215$as_echo_n "checking for $ac_word... " >&6; }
3216if test "${ac_cv_prog_CC+set}" = set; then :
3217  $as_echo_n "(cached) " >&6
3218else
3219  if test -n "$CC"; then
3220  ac_cv_prog_CC="$CC" # Let the user override the test.
3221else
3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH
3224do
3225  IFS=$as_save_IFS
3226  test -z "$as_dir" && as_dir=.
3227    for ac_exec_ext in '' $ac_executable_extensions; do
3228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229    ac_cv_prog_CC="${ac_tool_prefix}cc"
3230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231    break 2
3232  fi
3233done
3234  done
3235IFS=$as_save_IFS
3236
3237fi
3238fi
3239CC=$ac_cv_prog_CC
3240if test -n "$CC"; then
3241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242$as_echo "$CC" >&6; }
3243else
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245$as_echo "no" >&6; }
3246fi
3247
3248
3249  fi
3250fi
3251if test -z "$CC"; then
3252  # Extract the first word of "cc", so it can be a program name with args.
3253set dummy cc; ac_word=$2
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255$as_echo_n "checking for $ac_word... " >&6; }
3256if test "${ac_cv_prog_CC+set}" = set; then :
3257  $as_echo_n "(cached) " >&6
3258else
3259  if test -n "$CC"; then
3260  ac_cv_prog_CC="$CC" # Let the user override the test.
3261else
3262  ac_prog_rejected=no
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266  IFS=$as_save_IFS
3267  test -z "$as_dir" && as_dir=.
3268    for ac_exec_ext in '' $ac_executable_extensions; do
3269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3270    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3271       ac_prog_rejected=yes
3272       continue
3273     fi
3274    ac_cv_prog_CC="cc"
3275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276    break 2
3277  fi
3278done
3279  done
3280IFS=$as_save_IFS
3281
3282if test $ac_prog_rejected = yes; then
3283  # We found a bogon in the path, so make sure we never use it.
3284  set dummy $ac_cv_prog_CC
3285  shift
3286  if test $# != 0; then
3287    # We chose a different compiler from the bogus one.
3288    # However, it has the same basename, so the bogon will be chosen
3289    # first if we set CC to just the basename; use the full file name.
3290    shift
3291    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3292  fi
3293fi
3294fi
3295fi
3296CC=$ac_cv_prog_CC
3297if test -n "$CC"; then
3298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299$as_echo "$CC" >&6; }
3300else
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303fi
3304
3305
3306fi
3307if test -z "$CC"; then
3308  if test -n "$ac_tool_prefix"; then
3309  for ac_prog in cl.exe
3310  do
3311    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3312set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314$as_echo_n "checking for $ac_word... " >&6; }
3315if test "${ac_cv_prog_CC+set}" = set; then :
3316  $as_echo_n "(cached) " >&6
3317else
3318  if test -n "$CC"; then
3319  ac_cv_prog_CC="$CC" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324  IFS=$as_save_IFS
3325  test -z "$as_dir" && as_dir=.
3326    for ac_exec_ext in '' $ac_executable_extensions; do
3327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330    break 2
3331  fi
3332done
3333  done
3334IFS=$as_save_IFS
3335
3336fi
3337fi
3338CC=$ac_cv_prog_CC
3339if test -n "$CC"; then
3340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341$as_echo "$CC" >&6; }
3342else
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344$as_echo "no" >&6; }
3345fi
3346
3347
3348    test -n "$CC" && break
3349  done
3350fi
3351if test -z "$CC"; then
3352  ac_ct_CC=$CC
3353  for ac_prog in cl.exe
3354do
3355  # Extract the first word of "$ac_prog", so it can be a program name with args.
3356set dummy $ac_prog; ac_word=$2
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358$as_echo_n "checking for $ac_word... " >&6; }
3359if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3360  $as_echo_n "(cached) " >&6
3361else
3362  if test -n "$ac_ct_CC"; then
3363  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3364else
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368  IFS=$as_save_IFS
3369  test -z "$as_dir" && as_dir=.
3370    for ac_exec_ext in '' $ac_executable_extensions; do
3371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3372    ac_cv_prog_ac_ct_CC="$ac_prog"
3373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374    break 2
3375  fi
3376done
3377  done
3378IFS=$as_save_IFS
3379
3380fi
3381fi
3382ac_ct_CC=$ac_cv_prog_ac_ct_CC
3383if test -n "$ac_ct_CC"; then
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3385$as_echo "$ac_ct_CC" >&6; }
3386else
3387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388$as_echo "no" >&6; }
3389fi
3390
3391
3392  test -n "$ac_ct_CC" && break
3393done
3394
3395  if test "x$ac_ct_CC" = x; then
3396    CC=""
3397  else
3398    case $cross_compiling:$ac_tool_warned in
3399yes:)
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3402ac_tool_warned=yes ;;
3403esac
3404    CC=$ac_ct_CC
3405  fi
3406fi
3407
3408fi
3409
3410
3411test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413as_fn_error "no acceptable C compiler found in \$PATH
3414See \`config.log' for more details." "$LINENO" 5; }
3415
3416# Provide some information about the compiler.
3417$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3418set X $ac_compile
3419ac_compiler=$2
3420for ac_option in --version -v -V -qversion; do
3421  { { ac_try="$ac_compiler $ac_option >&5"
3422case "(($ac_try" in
3423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424  *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427$as_echo "$ac_try_echo"; } >&5
3428  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3429  ac_status=$?
3430  if test -s conftest.err; then
3431    sed '10a\
3432... rest of stderr output deleted ...
3433         10q' conftest.err >conftest.er1
3434    cat conftest.er1 >&5
3435  fi
3436  rm -f conftest.er1 conftest.err
3437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438  test $ac_status = 0; }
3439done
3440
3441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442/* end confdefs.h.  */
3443
3444int
3445main ()
3446{
3447
3448  ;
3449  return 0;
3450}
3451_ACEOF
3452ac_clean_files_save=$ac_clean_files
3453ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3454# Try to create an executable without -o first, disregard a.out.
3455# It will help us diagnose broken compilers, and finding out an intuition
3456# of exeext.
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3458$as_echo_n "checking whether the C compiler works... " >&6; }
3459ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3460
3461# The possible output files:
3462ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3463
3464ac_rmfiles=
3465for ac_file in $ac_files
3466do
3467  case $ac_file in
3468    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3469    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3470  esac
3471done
3472rm -f $ac_rmfiles
3473
3474if { { ac_try="$ac_link_default"
3475case "(($ac_try" in
3476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477  *) ac_try_echo=$ac_try;;
3478esac
3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480$as_echo "$ac_try_echo"; } >&5
3481  (eval "$ac_link_default") 2>&5
3482  ac_status=$?
3483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484  test $ac_status = 0; }; then :
3485  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3486# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3487# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3488# so that the user can short-circuit this test for compilers unknown to
3489# Autoconf.
3490for ac_file in $ac_files ''
3491do
3492  test -f "$ac_file" || continue
3493  case $ac_file in
3494    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3495	;;
3496    [ab].out )
3497	# We found the default executable, but exeext='' is most
3498	# certainly right.
3499	break;;
3500    *.* )
3501	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3502	then :; else
3503	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3504	fi
3505	# We set ac_cv_exeext here because the later test for it is not
3506	# safe: cross compilers may not add the suffix if given an `-o'
3507	# argument, so we may need to know it at that point already.
3508	# Even if this section looks crufty: it has the advantage of
3509	# actually working.
3510	break;;
3511    * )
3512	break;;
3513  esac
3514done
3515test "$ac_cv_exeext" = no && ac_cv_exeext=
3516
3517else
3518  ac_file=''
3519fi
3520if test -z "$ac_file"; then :
3521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522$as_echo "no" >&6; }
3523$as_echo "$as_me: failed program was:" >&5
3524sed 's/^/| /' conftest.$ac_ext >&5
3525
3526{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528{ as_fn_set_status 77
3529as_fn_error "C compiler cannot create executables
3530See \`config.log' for more details." "$LINENO" 5; }; }
3531else
3532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533$as_echo "yes" >&6; }
3534fi
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3536$as_echo_n "checking for C compiler default output file name... " >&6; }
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3538$as_echo "$ac_file" >&6; }
3539ac_exeext=$ac_cv_exeext
3540
3541rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3542ac_clean_files=$ac_clean_files_save
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3544$as_echo_n "checking for suffix of executables... " >&6; }
3545if { { ac_try="$ac_link"
3546case "(($ac_try" in
3547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548  *) ac_try_echo=$ac_try;;
3549esac
3550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551$as_echo "$ac_try_echo"; } >&5
3552  (eval "$ac_link") 2>&5
3553  ac_status=$?
3554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555  test $ac_status = 0; }; then :
3556  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3557# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3558# work properly (i.e., refer to `conftest.exe'), while it won't with
3559# `rm'.
3560for ac_file in conftest.exe conftest conftest.*; do
3561  test -f "$ac_file" || continue
3562  case $ac_file in
3563    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3564    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565	  break;;
3566    * ) break;;
3567  esac
3568done
3569else
3570  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572as_fn_error "cannot compute suffix of executables: cannot compile and link
3573See \`config.log' for more details." "$LINENO" 5; }
3574fi
3575rm -f conftest conftest$ac_cv_exeext
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3577$as_echo "$ac_cv_exeext" >&6; }
3578
3579rm -f conftest.$ac_ext
3580EXEEXT=$ac_cv_exeext
3581ac_exeext=$EXEEXT
3582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583/* end confdefs.h.  */
3584#include <stdio.h>
3585int
3586main ()
3587{
3588FILE *f = fopen ("conftest.out", "w");
3589 return ferror (f) || fclose (f) != 0;
3590
3591  ;
3592  return 0;
3593}
3594_ACEOF
3595ac_clean_files="$ac_clean_files conftest.out"
3596# Check that the compiler produces executables we can run.  If not, either
3597# the compiler is broken, or we cross compile.
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3599$as_echo_n "checking whether we are cross compiling... " >&6; }
3600if test "$cross_compiling" != yes; then
3601  { { ac_try="$ac_link"
3602case "(($ac_try" in
3603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604  *) ac_try_echo=$ac_try;;
3605esac
3606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607$as_echo "$ac_try_echo"; } >&5
3608  (eval "$ac_link") 2>&5
3609  ac_status=$?
3610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611  test $ac_status = 0; }
3612  if { ac_try='./conftest$ac_cv_exeext'
3613  { { case "(($ac_try" in
3614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615  *) ac_try_echo=$ac_try;;
3616esac
3617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618$as_echo "$ac_try_echo"; } >&5
3619  (eval "$ac_try") 2>&5
3620  ac_status=$?
3621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622  test $ac_status = 0; }; }; then
3623    cross_compiling=no
3624  else
3625    if test "$cross_compiling" = maybe; then
3626	cross_compiling=yes
3627    else
3628	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3630as_fn_error "cannot run C compiled programs.
3631If you meant to cross compile, use \`--host'.
3632See \`config.log' for more details." "$LINENO" 5; }
3633    fi
3634  fi
3635fi
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3637$as_echo "$cross_compiling" >&6; }
3638
3639rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3640ac_clean_files=$ac_clean_files_save
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3642$as_echo_n "checking for suffix of object files... " >&6; }
3643if test "${ac_cv_objext+set}" = set; then :
3644  $as_echo_n "(cached) " >&6
3645else
3646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647/* end confdefs.h.  */
3648
3649int
3650main ()
3651{
3652
3653  ;
3654  return 0;
3655}
3656_ACEOF
3657rm -f conftest.o conftest.obj
3658if { { ac_try="$ac_compile"
3659case "(($ac_try" in
3660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661  *) ac_try_echo=$ac_try;;
3662esac
3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664$as_echo "$ac_try_echo"; } >&5
3665  (eval "$ac_compile") 2>&5
3666  ac_status=$?
3667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668  test $ac_status = 0; }; then :
3669  for ac_file in conftest.o conftest.obj conftest.*; do
3670  test -f "$ac_file" || continue;
3671  case $ac_file in
3672    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3673    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3674       break;;
3675  esac
3676done
3677else
3678  $as_echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683as_fn_error "cannot compute suffix of object files: cannot compile
3684See \`config.log' for more details." "$LINENO" 5; }
3685fi
3686rm -f conftest.$ac_cv_objext conftest.$ac_ext
3687fi
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3689$as_echo "$ac_cv_objext" >&6; }
3690OBJEXT=$ac_cv_objext
3691ac_objext=$OBJEXT
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3693$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3694if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3695  $as_echo_n "(cached) " >&6
3696else
3697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699
3700int
3701main ()
3702{
3703#ifndef __GNUC__
3704       choke me
3705#endif
3706
3707  ;
3708  return 0;
3709}
3710_ACEOF
3711if ac_fn_c_try_compile "$LINENO"; then :
3712  ac_compiler_gnu=yes
3713else
3714  ac_compiler_gnu=no
3715fi
3716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717ac_cv_c_compiler_gnu=$ac_compiler_gnu
3718
3719fi
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3721$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3722if test $ac_compiler_gnu = yes; then
3723  GCC=yes
3724else
3725  GCC=
3726fi
3727ac_test_CFLAGS=${CFLAGS+set}
3728ac_save_CFLAGS=$CFLAGS
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3730$as_echo_n "checking whether $CC accepts -g... " >&6; }
3731if test "${ac_cv_prog_cc_g+set}" = set; then :
3732  $as_echo_n "(cached) " >&6
3733else
3734  ac_save_c_werror_flag=$ac_c_werror_flag
3735   ac_c_werror_flag=yes
3736   ac_cv_prog_cc_g=no
3737   CFLAGS="-g"
3738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739/* end confdefs.h.  */
3740
3741int
3742main ()
3743{
3744
3745  ;
3746  return 0;
3747}
3748_ACEOF
3749if ac_fn_c_try_compile "$LINENO"; then :
3750  ac_cv_prog_cc_g=yes
3751else
3752  CFLAGS=""
3753      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754/* end confdefs.h.  */
3755
3756int
3757main ()
3758{
3759
3760  ;
3761  return 0;
3762}
3763_ACEOF
3764if ac_fn_c_try_compile "$LINENO"; then :
3765
3766else
3767  ac_c_werror_flag=$ac_save_c_werror_flag
3768	 CFLAGS="-g"
3769	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770/* end confdefs.h.  */
3771
3772int
3773main ()
3774{
3775
3776  ;
3777  return 0;
3778}
3779_ACEOF
3780if ac_fn_c_try_compile "$LINENO"; then :
3781  ac_cv_prog_cc_g=yes
3782fi
3783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784fi
3785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786fi
3787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788   ac_c_werror_flag=$ac_save_c_werror_flag
3789fi
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3791$as_echo "$ac_cv_prog_cc_g" >&6; }
3792if test "$ac_test_CFLAGS" = set; then
3793  CFLAGS=$ac_save_CFLAGS
3794elif test $ac_cv_prog_cc_g = yes; then
3795  if test "$GCC" = yes; then
3796    CFLAGS="-g -O2"
3797  else
3798    CFLAGS="-g"
3799  fi
3800else
3801  if test "$GCC" = yes; then
3802    CFLAGS="-O2"
3803  else
3804    CFLAGS=
3805  fi
3806fi
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3808$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3809if test "${ac_cv_prog_cc_c89+set}" = set; then :
3810  $as_echo_n "(cached) " >&6
3811else
3812  ac_cv_prog_cc_c89=no
3813ac_save_CC=$CC
3814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h.  */
3816#include <stdarg.h>
3817#include <stdio.h>
3818#include <sys/types.h>
3819#include <sys/stat.h>
3820/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3821struct buf { int x; };
3822FILE * (*rcsopen) (struct buf *, struct stat *, int);
3823static char *e (p, i)
3824     char **p;
3825     int i;
3826{
3827  return p[i];
3828}
3829static char *f (char * (*g) (char **, int), char **p, ...)
3830{
3831  char *s;
3832  va_list v;
3833  va_start (v,p);
3834  s = g (p, va_arg (v,int));
3835  va_end (v);
3836  return s;
3837}
3838
3839/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3840   function prototypes and stuff, but not '\xHH' hex character constants.
3841   These don't provoke an error unfortunately, instead are silently treated
3842   as 'x'.  The following induces an error, until -std is added to get
3843   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3844   array size at least.  It's necessary to write '\x00'==0 to get something
3845   that's true only with -std.  */
3846int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3847
3848/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3849   inside strings and character constants.  */
3850#define FOO(x) 'x'
3851int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3852
3853int test (int i, double x);
3854struct s1 {int (*f) (int a);};
3855struct s2 {int (*f) (double a);};
3856int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3857int argc;
3858char **argv;
3859int
3860main ()
3861{
3862return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3863  ;
3864  return 0;
3865}
3866_ACEOF
3867for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3868	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3869do
3870  CC="$ac_save_CC $ac_arg"
3871  if ac_fn_c_try_compile "$LINENO"; then :
3872  ac_cv_prog_cc_c89=$ac_arg
3873fi
3874rm -f core conftest.err conftest.$ac_objext
3875  test "x$ac_cv_prog_cc_c89" != "xno" && break
3876done
3877rm -f conftest.$ac_ext
3878CC=$ac_save_CC
3879
3880fi
3881# AC_CACHE_VAL
3882case "x$ac_cv_prog_cc_c89" in
3883  x)
3884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3885$as_echo "none needed" >&6; } ;;
3886  xno)
3887    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3888$as_echo "unsupported" >&6; } ;;
3889  *)
3890    CC="$CC $ac_cv_prog_cc_c89"
3891    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3892$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3893esac
3894if test "x$ac_cv_prog_cc_c89" != xno; then :
3895
3896fi
3897
3898ac_ext=c
3899ac_cpp='$CPP $CPPFLAGS'
3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903DEPDIR="${am__leading_dot}deps"
3904
3905ac_config_commands="$ac_config_commands depfiles"
3906
3907
3908am_make=${MAKE-make}
3909cat > confinc << 'END'
3910am__doit:
3911	@echo this is the am__doit target
3912.PHONY: am__doit
3913END
3914# If we don't find an include directive, just comment out the code.
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3916$as_echo_n "checking for style of include used by $am_make... " >&6; }
3917am__include="#"
3918am__quote=
3919_am_result=none
3920# First try GNU make style include.
3921echo "include confinc" > confmf
3922# Ignore all kinds of additional output from `make'.
3923case `$am_make -s -f confmf 2> /dev/null` in #(
3924*the\ am__doit\ target*)
3925  am__include=include
3926  am__quote=
3927  _am_result=GNU
3928  ;;
3929esac
3930# Now try BSD make style include.
3931if test "$am__include" = "#"; then
3932   echo '.include "confinc"' > confmf
3933   case `$am_make -s -f confmf 2> /dev/null` in #(
3934   *the\ am__doit\ target*)
3935     am__include=.include
3936     am__quote="\""
3937     _am_result=BSD
3938     ;;
3939   esac
3940fi
3941
3942
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3944$as_echo "$_am_result" >&6; }
3945rm -f confinc confmf
3946
3947# Check whether --enable-dependency-tracking was given.
3948if test "${enable_dependency_tracking+set}" = set; then :
3949  enableval=$enable_dependency_tracking;
3950fi
3951
3952if test "x$enable_dependency_tracking" != xno; then
3953  am_depcomp="$ac_aux_dir/depcomp"
3954  AMDEPBACKSLASH='\'
3955fi
3956 if test "x$enable_dependency_tracking" != xno; then
3957  AMDEP_TRUE=
3958  AMDEP_FALSE='#'
3959else
3960  AMDEP_TRUE='#'
3961  AMDEP_FALSE=
3962fi
3963
3964
3965
3966depcc="$CC"   am_compiler_list=
3967
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3969$as_echo_n "checking dependency style of $depcc... " >&6; }
3970if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3971  $as_echo_n "(cached) " >&6
3972else
3973  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3974  # We make a subdir and do the tests there.  Otherwise we can end up
3975  # making bogus files that we don't know about and never remove.  For
3976  # instance it was reported that on HP-UX the gcc test will end up
3977  # making a dummy file named `D' -- because `-MD' means `put the output
3978  # in D'.
3979  mkdir conftest.dir
3980  # Copy depcomp to subdir because otherwise we won't find it if we're
3981  # using a relative directory.
3982  cp "$am_depcomp" conftest.dir
3983  cd conftest.dir
3984  # We will build objects and dependencies in a subdirectory because
3985  # it helps to detect inapplicable dependency modes.  For instance
3986  # both Tru64's cc and ICC support -MD to output dependencies as a
3987  # side effect of compilation, but ICC will put the dependencies in
3988  # the current directory while Tru64 will put them in the object
3989  # directory.
3990  mkdir sub
3991
3992  am_cv_CC_dependencies_compiler_type=none
3993  if test "$am_compiler_list" = ""; then
3994     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3995  fi
3996  am__universal=false
3997  case " $depcc " in #(
3998     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3999     esac
4000
4001  for depmode in $am_compiler_list; do
4002    # Setup a source with many dependencies, because some compilers
4003    # like to wrap large dependency lists on column 80 (with \), and
4004    # we should not choose a depcomp mode which is confused by this.
4005    #
4006    # We need to recreate these files for each test, as the compiler may
4007    # overwrite some of them when testing with obscure command lines.
4008    # This happens at least with the AIX C compiler.
4009    : > sub/conftest.c
4010    for i in 1 2 3 4 5 6; do
4011      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4012      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4013      # Solaris 8's {/usr,}/bin/sh.
4014      touch sub/conftst$i.h
4015    done
4016    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4017
4018    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4019    # mode.  It turns out that the SunPro C++ compiler does not properly
4020    # handle `-M -o', and we need to detect this.  Also, some Intel
4021    # versions had trouble with output in subdirs
4022    am__obj=sub/conftest.${OBJEXT-o}
4023    am__minus_obj="-o $am__obj"
4024    case $depmode in
4025    gcc)
4026      # This depmode causes a compiler race in universal mode.
4027      test "$am__universal" = false || continue
4028      ;;
4029    nosideeffect)
4030      # after this tag, mechanisms are not by side-effect, so they'll
4031      # only be used when explicitly requested
4032      if test "x$enable_dependency_tracking" = xyes; then
4033	continue
4034      else
4035	break
4036      fi
4037      ;;
4038    msvisualcpp | msvcmsys)
4039      # This compiler won't grok `-c -o', but also, the minuso test has
4040      # not run yet.  These depmodes are late enough in the game, and
4041      # so weak that their functioning should not be impacted.
4042      am__obj=conftest.${OBJEXT-o}
4043      am__minus_obj=
4044      ;;
4045    none) break ;;
4046    esac
4047    if depmode=$depmode \
4048       source=sub/conftest.c object=$am__obj \
4049       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4050       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4051         >/dev/null 2>conftest.err &&
4052       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4053       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4054       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4055       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4056      # icc doesn't choke on unknown options, it will just issue warnings
4057      # or remarks (even with -Werror).  So we grep stderr for any message
4058      # that says an option was ignored or not supported.
4059      # When given -MP, icc 7.0 and 7.1 complain thusly:
4060      #   icc: Command line warning: ignoring option '-M'; no argument required
4061      # The diagnosis changed in icc 8.0:
4062      #   icc: Command line remark: option '-MP' not supported
4063      if (grep 'ignoring option' conftest.err ||
4064          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4065        am_cv_CC_dependencies_compiler_type=$depmode
4066        break
4067      fi
4068    fi
4069  done
4070
4071  cd ..
4072  rm -rf conftest.dir
4073else
4074  am_cv_CC_dependencies_compiler_type=none
4075fi
4076
4077fi
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4079$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4080CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4081
4082 if
4083  test "x$enable_dependency_tracking" != xno \
4084  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4085  am__fastdepCC_TRUE=
4086  am__fastdepCC_FALSE='#'
4087else
4088  am__fastdepCC_TRUE='#'
4089  am__fastdepCC_FALSE=
4090fi
4091
4092
4093
4094ac_ext=c
4095ac_cpp='$CPP $CPPFLAGS'
4096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098ac_compiler_gnu=$ac_cv_c_compiler_gnu
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4100$as_echo_n "checking how to run the C preprocessor... " >&6; }
4101# On Suns, sometimes $CPP names a directory.
4102if test -n "$CPP" && test -d "$CPP"; then
4103  CPP=
4104fi
4105if test -z "$CPP"; then
4106  if test "${ac_cv_prog_CPP+set}" = set; then :
4107  $as_echo_n "(cached) " >&6
4108else
4109      # Double quotes because CPP needs to be expanded
4110    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4111    do
4112      ac_preproc_ok=false
4113for ac_c_preproc_warn_flag in '' yes
4114do
4115  # Use a header file that comes with gcc, so configuring glibc
4116  # with a fresh cross-compiler works.
4117  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4118  # <limits.h> exists even on freestanding compilers.
4119  # On the NeXT, cc -E runs the code through the compiler's parser,
4120  # not just through cpp. "Syntax error" is here to catch this case.
4121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h.  */
4123#ifdef __STDC__
4124# include <limits.h>
4125#else
4126# include <assert.h>
4127#endif
4128		     Syntax error
4129_ACEOF
4130if ac_fn_c_try_cpp "$LINENO"; then :
4131
4132else
4133  # Broken: fails on valid input.
4134continue
4135fi
4136rm -f conftest.err conftest.$ac_ext
4137
4138  # OK, works on sane cases.  Now check whether nonexistent headers
4139  # can be detected and how.
4140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141/* end confdefs.h.  */
4142#include <ac_nonexistent.h>
4143_ACEOF
4144if ac_fn_c_try_cpp "$LINENO"; then :
4145  # Broken: success on invalid input.
4146continue
4147else
4148  # Passes both tests.
4149ac_preproc_ok=:
4150break
4151fi
4152rm -f conftest.err conftest.$ac_ext
4153
4154done
4155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156rm -f conftest.err conftest.$ac_ext
4157if $ac_preproc_ok; then :
4158  break
4159fi
4160
4161    done
4162    ac_cv_prog_CPP=$CPP
4163
4164fi
4165  CPP=$ac_cv_prog_CPP
4166else
4167  ac_cv_prog_CPP=$CPP
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4170$as_echo "$CPP" >&6; }
4171ac_preproc_ok=false
4172for ac_c_preproc_warn_flag in '' yes
4173do
4174  # Use a header file that comes with gcc, so configuring glibc
4175  # with a fresh cross-compiler works.
4176  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4177  # <limits.h> exists even on freestanding compilers.
4178  # On the NeXT, cc -E runs the code through the compiler's parser,
4179  # not just through cpp. "Syntax error" is here to catch this case.
4180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h.  */
4182#ifdef __STDC__
4183# include <limits.h>
4184#else
4185# include <assert.h>
4186#endif
4187		     Syntax error
4188_ACEOF
4189if ac_fn_c_try_cpp "$LINENO"; then :
4190
4191else
4192  # Broken: fails on valid input.
4193continue
4194fi
4195rm -f conftest.err conftest.$ac_ext
4196
4197  # OK, works on sane cases.  Now check whether nonexistent headers
4198  # can be detected and how.
4199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h.  */
4201#include <ac_nonexistent.h>
4202_ACEOF
4203if ac_fn_c_try_cpp "$LINENO"; then :
4204  # Broken: success on invalid input.
4205continue
4206else
4207  # Passes both tests.
4208ac_preproc_ok=:
4209break
4210fi
4211rm -f conftest.err conftest.$ac_ext
4212
4213done
4214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4215rm -f conftest.err conftest.$ac_ext
4216if $ac_preproc_ok; then :
4217
4218else
4219  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4221as_fn_error "C preprocessor \"$CPP\" fails sanity check
4222See \`config.log' for more details." "$LINENO" 5; }
4223fi
4224
4225ac_ext=c
4226ac_cpp='$CPP $CPPFLAGS'
4227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
4231# Extract the first word of "rm", so it can be a program name with args.
4232set dummy rm; ac_word=$2
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234$as_echo_n "checking for $ac_word... " >&6; }
4235if test "${ac_cv_path_RM+set}" = set; then :
4236  $as_echo_n "(cached) " >&6
4237else
4238  case $RM in
4239  [\\/]* | ?:[\\/]*)
4240  ac_cv_path_RM="$RM" # Let the user override the test with a path.
4241  ;;
4242  *)
4243  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246  IFS=$as_save_IFS
4247  test -z "$as_dir" && as_dir=.
4248    for ac_exec_ext in '' $ac_executable_extensions; do
4249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252    break 2
4253  fi
4254done
4255  done
4256IFS=$as_save_IFS
4257
4258  test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
4259  ;;
4260esac
4261fi
4262RM=$ac_cv_path_RM
4263if test -n "$RM"; then
4264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4265$as_echo "$RM" >&6; }
4266else
4267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268$as_echo "no" >&6; }
4269fi
4270
4271
4272# Extract the first word of "mv", so it can be a program name with args.
4273set dummy mv; ac_word=$2
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275$as_echo_n "checking for $ac_word... " >&6; }
4276if test "${ac_cv_path_MV+set}" = set; then :
4277  $as_echo_n "(cached) " >&6
4278else
4279  case $MV in
4280  [\\/]* | ?:[\\/]*)
4281  ac_cv_path_MV="$MV" # Let the user override the test with a path.
4282  ;;
4283  *)
4284  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287  IFS=$as_save_IFS
4288  test -z "$as_dir" && as_dir=.
4289    for ac_exec_ext in '' $ac_executable_extensions; do
4290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293    break 2
4294  fi
4295done
4296  done
4297IFS=$as_save_IFS
4298
4299  test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4300  ;;
4301esac
4302fi
4303MV=$ac_cv_path_MV
4304if test -n "$MV"; then
4305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4306$as_echo "$MV" >&6; }
4307else
4308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309$as_echo "no" >&6; }
4310fi
4311
4312
4313# Extract the first word of "tar", so it can be a program name with args.
4314set dummy tar; ac_word=$2
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316$as_echo_n "checking for $ac_word... " >&6; }
4317if test "${ac_cv_path_TAR+set}" = set; then :
4318  $as_echo_n "(cached) " >&6
4319else
4320  case $TAR in
4321  [\\/]* | ?:[\\/]*)
4322  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4323  ;;
4324  *)
4325  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH
4327do
4328  IFS=$as_save_IFS
4329  test -z "$as_dir" && as_dir=.
4330    for ac_exec_ext in '' $ac_executable_extensions; do
4331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334    break 2
4335  fi
4336done
4337  done
4338IFS=$as_save_IFS
4339
4340  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
4341  ;;
4342esac
4343fi
4344TAR=$ac_cv_path_TAR
4345if test -n "$TAR"; then
4346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4347$as_echo "$TAR" >&6; }
4348else
4349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350$as_echo "no" >&6; }
4351fi
4352
4353
4354# Extract the first word of "perl", so it can be a program name with args.
4355set dummy perl; ac_word=$2
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357$as_echo_n "checking for $ac_word... " >&6; }
4358if test "${ac_cv_path_PERL+set}" = set; then :
4359  $as_echo_n "(cached) " >&6
4360else
4361  case $PERL in
4362  [\\/]* | ?:[\\/]*)
4363  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4364  ;;
4365  *)
4366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369  IFS=$as_save_IFS
4370  test -z "$as_dir" && as_dir=.
4371    for ac_exec_ext in '' $ac_executable_extensions; do
4372  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375    break 2
4376  fi
4377done
4378  done
4379IFS=$as_save_IFS
4380
4381  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
4382  ;;
4383esac
4384fi
4385PERL=$ac_cv_path_PERL
4386if test -n "$PERL"; then
4387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4388$as_echo "$PERL" >&6; }
4389else
4390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391$as_echo "no" >&6; }
4392fi
4393
4394
4395# Extract the first word of "wget", so it can be a program name with args.
4396set dummy wget; ac_word=$2
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398$as_echo_n "checking for $ac_word... " >&6; }
4399if test "${ac_cv_path_WGET+set}" = set; then :
4400  $as_echo_n "(cached) " >&6
4401else
4402  case $WGET in
4403  [\\/]* | ?:[\\/]*)
4404  ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
4405  ;;
4406  *)
4407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410  IFS=$as_save_IFS
4411  test -z "$as_dir" && as_dir=.
4412    for ac_exec_ext in '' $ac_executable_extensions; do
4413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414    ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
4415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416    break 2
4417  fi
4418done
4419  done
4420IFS=$as_save_IFS
4421
4422  test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="/usr/bin/wget"
4423  ;;
4424esac
4425fi
4426WGET=$ac_cv_path_WGET
4427if test -n "$WGET"; then
4428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
4429$as_echo "$WGET" >&6; }
4430else
4431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432$as_echo "no" >&6; }
4433fi
4434
4435
4436# Extract the first word of "xmllint", so it can be a program name with args.
4437set dummy xmllint; ac_word=$2
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439$as_echo_n "checking for $ac_word... " >&6; }
4440if test "${ac_cv_path_XMLLINT+set}" = set; then :
4441  $as_echo_n "(cached) " >&6
4442else
4443  case $XMLLINT in
4444  [\\/]* | ?:[\\/]*)
4445  ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
4446  ;;
4447  *)
4448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451  IFS=$as_save_IFS
4452  test -z "$as_dir" && as_dir=.
4453    for ac_exec_ext in '' $ac_executable_extensions; do
4454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455    ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
4456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457    break 2
4458  fi
4459done
4460  done
4461IFS=$as_save_IFS
4462
4463  test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/usr/bin/xmllint"
4464  ;;
4465esac
4466fi
4467XMLLINT=$ac_cv_path_XMLLINT
4468if test -n "$XMLLINT"; then
4469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
4470$as_echo "$XMLLINT" >&6; }
4471else
4472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473$as_echo "no" >&6; }
4474fi
4475
4476
4477# Extract the first word of "xsltproc", so it can be a program name with args.
4478set dummy xsltproc; ac_word=$2
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480$as_echo_n "checking for $ac_word... " >&6; }
4481if test "${ac_cv_path_XSLTPROC+set}" = set; then :
4482  $as_echo_n "(cached) " >&6
4483else
4484  case $XSLTPROC in
4485  [\\/]* | ?:[\\/]*)
4486  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4487  ;;
4488  *)
4489  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490for as_dir in $PATH
4491do
4492  IFS=$as_save_IFS
4493  test -z "$as_dir" && as_dir=.
4494    for ac_exec_ext in '' $ac_executable_extensions; do
4495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
4497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4498    break 2
4499  fi
4500done
4501  done
4502IFS=$as_save_IFS
4503
4504  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="/usr/bin/xsltproc"
4505  ;;
4506esac
4507fi
4508XSLTPROC=$ac_cv_path_XSLTPROC
4509if test -n "$XSLTPROC"; then
4510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4511$as_echo "$XSLTPROC" >&6; }
4512else
4513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514$as_echo "no" >&6; }
4515fi
4516
4517
4518
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4520$as_echo_n "checking for function prototypes... " >&6; }
4521if test "$ac_cv_prog_cc_c89" != no; then
4522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523$as_echo "yes" >&6; }
4524
4525$as_echo "#define PROTOTYPES 1" >>confdefs.h
4526
4527
4528$as_echo "#define __PROTOTYPES 1" >>confdefs.h
4529
4530else
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532$as_echo "no" >&6; }
4533fi
4534
4535
4536
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4538$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4539if test "${ac_cv_path_GREP+set}" = set; then :
4540  $as_echo_n "(cached) " >&6
4541else
4542  if test -z "$GREP"; then
4543  ac_path_GREP_found=false
4544  # Loop through the user's path and test for each of PROGNAME-LIST
4545  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4547do
4548  IFS=$as_save_IFS
4549  test -z "$as_dir" && as_dir=.
4550    for ac_prog in grep ggrep; do
4551    for ac_exec_ext in '' $ac_executable_extensions; do
4552      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4553      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4554# Check for GNU ac_path_GREP and select it if it is found.
4555  # Check for GNU $ac_path_GREP
4556case `"$ac_path_GREP" --version 2>&1` in
4557*GNU*)
4558  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4559*)
4560  ac_count=0
4561  $as_echo_n 0123456789 >"conftest.in"
4562  while :
4563  do
4564    cat "conftest.in" "conftest.in" >"conftest.tmp"
4565    mv "conftest.tmp" "conftest.in"
4566    cp "conftest.in" "conftest.nl"
4567    $as_echo 'GREP' >> "conftest.nl"
4568    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4569    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4570    as_fn_arith $ac_count + 1 && ac_count=$as_val
4571    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4572      # Best one so far, save it but keep looking for a better one
4573      ac_cv_path_GREP="$ac_path_GREP"
4574      ac_path_GREP_max=$ac_count
4575    fi
4576    # 10*(2^10) chars as input seems more than enough
4577    test $ac_count -gt 10 && break
4578  done
4579  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4580esac
4581
4582      $ac_path_GREP_found && break 3
4583    done
4584  done
4585  done
4586IFS=$as_save_IFS
4587  if test -z "$ac_cv_path_GREP"; then
4588    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4589  fi
4590else
4591  ac_cv_path_GREP=$GREP
4592fi
4593
4594fi
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4596$as_echo "$ac_cv_path_GREP" >&6; }
4597 GREP="$ac_cv_path_GREP"
4598
4599
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4601$as_echo_n "checking for egrep... " >&6; }
4602if test "${ac_cv_path_EGREP+set}" = set; then :
4603  $as_echo_n "(cached) " >&6
4604else
4605  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4606   then ac_cv_path_EGREP="$GREP -E"
4607   else
4608     if test -z "$EGREP"; then
4609  ac_path_EGREP_found=false
4610  # Loop through the user's path and test for each of PROGNAME-LIST
4611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4613do
4614  IFS=$as_save_IFS
4615  test -z "$as_dir" && as_dir=.
4616    for ac_prog in egrep; do
4617    for ac_exec_ext in '' $ac_executable_extensions; do
4618      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4619      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4620# Check for GNU ac_path_EGREP and select it if it is found.
4621  # Check for GNU $ac_path_EGREP
4622case `"$ac_path_EGREP" --version 2>&1` in
4623*GNU*)
4624  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4625*)
4626  ac_count=0
4627  $as_echo_n 0123456789 >"conftest.in"
4628  while :
4629  do
4630    cat "conftest.in" "conftest.in" >"conftest.tmp"
4631    mv "conftest.tmp" "conftest.in"
4632    cp "conftest.in" "conftest.nl"
4633    $as_echo 'EGREP' >> "conftest.nl"
4634    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4635    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4636    as_fn_arith $ac_count + 1 && ac_count=$as_val
4637    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4638      # Best one so far, save it but keep looking for a better one
4639      ac_cv_path_EGREP="$ac_path_EGREP"
4640      ac_path_EGREP_max=$ac_count
4641    fi
4642    # 10*(2^10) chars as input seems more than enough
4643    test $ac_count -gt 10 && break
4644  done
4645  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4646esac
4647
4648      $ac_path_EGREP_found && break 3
4649    done
4650  done
4651  done
4652IFS=$as_save_IFS
4653  if test -z "$ac_cv_path_EGREP"; then
4654    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4655  fi
4656else
4657  ac_cv_path_EGREP=$EGREP
4658fi
4659
4660   fi
4661fi
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4663$as_echo "$ac_cv_path_EGREP" >&6; }
4664 EGREP="$ac_cv_path_EGREP"
4665
4666
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4668$as_echo_n "checking for ANSI C header files... " >&6; }
4669if test "${ac_cv_header_stdc+set}" = set; then :
4670  $as_echo_n "(cached) " >&6
4671else
4672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673/* end confdefs.h.  */
4674#include <stdlib.h>
4675#include <stdarg.h>
4676#include <string.h>
4677#include <float.h>
4678
4679int
4680main ()
4681{
4682
4683  ;
4684  return 0;
4685}
4686_ACEOF
4687if ac_fn_c_try_compile "$LINENO"; then :
4688  ac_cv_header_stdc=yes
4689else
4690  ac_cv_header_stdc=no
4691fi
4692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693
4694if test $ac_cv_header_stdc = yes; then
4695  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697/* end confdefs.h.  */
4698#include <string.h>
4699
4700_ACEOF
4701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4702  $EGREP "memchr" >/dev/null 2>&1; then :
4703
4704else
4705  ac_cv_header_stdc=no
4706fi
4707rm -f conftest*
4708
4709fi
4710
4711if test $ac_cv_header_stdc = yes; then
4712  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714/* end confdefs.h.  */
4715#include <stdlib.h>
4716
4717_ACEOF
4718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4719  $EGREP "free" >/dev/null 2>&1; then :
4720
4721else
4722  ac_cv_header_stdc=no
4723fi
4724rm -f conftest*
4725
4726fi
4727
4728if test $ac_cv_header_stdc = yes; then
4729  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4730  if test "$cross_compiling" = yes; then :
4731  :
4732else
4733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734/* end confdefs.h.  */
4735#include <ctype.h>
4736#include <stdlib.h>
4737#if ((' ' & 0x0FF) == 0x020)
4738# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4739# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4740#else
4741# define ISLOWER(c) \
4742		   (('a' <= (c) && (c) <= 'i') \
4743		     || ('j' <= (c) && (c) <= 'r') \
4744		     || ('s' <= (c) && (c) <= 'z'))
4745# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4746#endif
4747
4748#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4749int
4750main ()
4751{
4752  int i;
4753  for (i = 0; i < 256; i++)
4754    if (XOR (islower (i), ISLOWER (i))
4755	|| toupper (i) != TOUPPER (i))
4756      return 2;
4757  return 0;
4758}
4759_ACEOF
4760if ac_fn_c_try_run "$LINENO"; then :
4761
4762else
4763  ac_cv_header_stdc=no
4764fi
4765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4766  conftest.$ac_objext conftest.beam conftest.$ac_ext
4767fi
4768
4769fi
4770fi
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4772$as_echo "$ac_cv_header_stdc" >&6; }
4773if test $ac_cv_header_stdc = yes; then
4774
4775$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4776
4777fi
4778
4779# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4780for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4781		  inttypes.h stdint.h unistd.h
4782do :
4783  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4784ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4785"
4786eval as_val=\$$as_ac_Header
4787   if test "x$as_val" = x""yes; then :
4788  cat >>confdefs.h <<_ACEOF
4789#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4790_ACEOF
4791
4792fi
4793
4794done
4795
4796
4797
4798if test "$ac_cv_prog_cc_stdc" != no; then
4799  U= ANSI2KNR=
4800else
4801  U=_ ANSI2KNR=./ansi2knr
4802fi
4803# Ensure some checks needed by ansi2knr itself.
4804
4805for ac_header in string.h
4806do :
4807  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4808if test "x$ac_cv_header_string_h" = x""yes; then :
4809  cat >>confdefs.h <<_ACEOF
4810#define HAVE_STRING_H 1
4811_ACEOF
4812
4813fi
4814
4815done
4816
4817
4818test "x$U" != "x" && as_fn_error "Compiler not ANSI compliant" "$LINENO" 5
4819
4820enable_win32_dll=yes
4821
4822case $host in
4823*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4824  if test -n "$ac_tool_prefix"; then
4825  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4826set dummy ${ac_tool_prefix}as; ac_word=$2
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828$as_echo_n "checking for $ac_word... " >&6; }
4829if test "${ac_cv_prog_AS+set}" = set; then :
4830  $as_echo_n "(cached) " >&6
4831else
4832  if test -n "$AS"; then
4833  ac_cv_prog_AS="$AS" # Let the user override the test.
4834else
4835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838  IFS=$as_save_IFS
4839  test -z "$as_dir" && as_dir=.
4840    for ac_exec_ext in '' $ac_executable_extensions; do
4841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842    ac_cv_prog_AS="${ac_tool_prefix}as"
4843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844    break 2
4845  fi
4846done
4847  done
4848IFS=$as_save_IFS
4849
4850fi
4851fi
4852AS=$ac_cv_prog_AS
4853if test -n "$AS"; then
4854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4855$as_echo "$AS" >&6; }
4856else
4857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858$as_echo "no" >&6; }
4859fi
4860
4861
4862fi
4863if test -z "$ac_cv_prog_AS"; then
4864  ac_ct_AS=$AS
4865  # Extract the first word of "as", so it can be a program name with args.
4866set dummy as; ac_word=$2
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868$as_echo_n "checking for $ac_word... " >&6; }
4869if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4870  $as_echo_n "(cached) " >&6
4871else
4872  if test -n "$ac_ct_AS"; then
4873  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4874else
4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH
4877do
4878  IFS=$as_save_IFS
4879  test -z "$as_dir" && as_dir=.
4880    for ac_exec_ext in '' $ac_executable_extensions; do
4881  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882    ac_cv_prog_ac_ct_AS="as"
4883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884    break 2
4885  fi
4886done
4887  done
4888IFS=$as_save_IFS
4889
4890fi
4891fi
4892ac_ct_AS=$ac_cv_prog_ac_ct_AS
4893if test -n "$ac_ct_AS"; then
4894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4895$as_echo "$ac_ct_AS" >&6; }
4896else
4897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898$as_echo "no" >&6; }
4899fi
4900
4901  if test "x$ac_ct_AS" = x; then
4902    AS="false"
4903  else
4904    case $cross_compiling:$ac_tool_warned in
4905yes:)
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4908ac_tool_warned=yes ;;
4909esac
4910    AS=$ac_ct_AS
4911  fi
4912else
4913  AS="$ac_cv_prog_AS"
4914fi
4915
4916  if test -n "$ac_tool_prefix"; then
4917  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4918set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920$as_echo_n "checking for $ac_word... " >&6; }
4921if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4922  $as_echo_n "(cached) " >&6
4923else
4924  if test -n "$DLLTOOL"; then
4925  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4926else
4927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928for as_dir in $PATH
4929do
4930  IFS=$as_save_IFS
4931  test -z "$as_dir" && as_dir=.
4932    for ac_exec_ext in '' $ac_executable_extensions; do
4933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936    break 2
4937  fi
4938done
4939  done
4940IFS=$as_save_IFS
4941
4942fi
4943fi
4944DLLTOOL=$ac_cv_prog_DLLTOOL
4945if test -n "$DLLTOOL"; then
4946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4947$as_echo "$DLLTOOL" >&6; }
4948else
4949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950$as_echo "no" >&6; }
4951fi
4952
4953
4954fi
4955if test -z "$ac_cv_prog_DLLTOOL"; then
4956  ac_ct_DLLTOOL=$DLLTOOL
4957  # Extract the first word of "dlltool", so it can be a program name with args.
4958set dummy dlltool; ac_word=$2
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960$as_echo_n "checking for $ac_word... " >&6; }
4961if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4962  $as_echo_n "(cached) " >&6
4963else
4964  if test -n "$ac_ct_DLLTOOL"; then
4965  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4966else
4967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968for as_dir in $PATH
4969do
4970  IFS=$as_save_IFS
4971  test -z "$as_dir" && as_dir=.
4972    for ac_exec_ext in '' $ac_executable_extensions; do
4973  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976    break 2
4977  fi
4978done
4979  done
4980IFS=$as_save_IFS
4981
4982fi
4983fi
4984ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4985if test -n "$ac_ct_DLLTOOL"; then
4986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4987$as_echo "$ac_ct_DLLTOOL" >&6; }
4988else
4989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990$as_echo "no" >&6; }
4991fi
4992
4993  if test "x$ac_ct_DLLTOOL" = x; then
4994    DLLTOOL="false"
4995  else
4996    case $cross_compiling:$ac_tool_warned in
4997yes:)
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5000ac_tool_warned=yes ;;
5001esac
5002    DLLTOOL=$ac_ct_DLLTOOL
5003  fi
5004else
5005  DLLTOOL="$ac_cv_prog_DLLTOOL"
5006fi
5007
5008  if test -n "$ac_tool_prefix"; then
5009  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5010set dummy ${ac_tool_prefix}objdump; ac_word=$2
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012$as_echo_n "checking for $ac_word... " >&6; }
5013if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016  if test -n "$OBJDUMP"; then
5017  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5018else
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022  IFS=$as_save_IFS
5023  test -z "$as_dir" && as_dir=.
5024    for ac_exec_ext in '' $ac_executable_extensions; do
5025  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028    break 2
5029  fi
5030done
5031  done
5032IFS=$as_save_IFS
5033
5034fi
5035fi
5036OBJDUMP=$ac_cv_prog_OBJDUMP
5037if test -n "$OBJDUMP"; then
5038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5039$as_echo "$OBJDUMP" >&6; }
5040else
5041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042$as_echo "no" >&6; }
5043fi
5044
5045
5046fi
5047if test -z "$ac_cv_prog_OBJDUMP"; then
5048  ac_ct_OBJDUMP=$OBJDUMP
5049  # Extract the first word of "objdump", so it can be a program name with args.
5050set dummy objdump; ac_word=$2
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052$as_echo_n "checking for $ac_word... " >&6; }
5053if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5054  $as_echo_n "(cached) " >&6
5055else
5056  if test -n "$ac_ct_OBJDUMP"; then
5057  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5058else
5059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060for as_dir in $PATH
5061do
5062  IFS=$as_save_IFS
5063  test -z "$as_dir" && as_dir=.
5064    for ac_exec_ext in '' $ac_executable_extensions; do
5065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068    break 2
5069  fi
5070done
5071  done
5072IFS=$as_save_IFS
5073
5074fi
5075fi
5076ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5077if test -n "$ac_ct_OBJDUMP"; then
5078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5079$as_echo "$ac_ct_OBJDUMP" >&6; }
5080else
5081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082$as_echo "no" >&6; }
5083fi
5084
5085  if test "x$ac_ct_OBJDUMP" = x; then
5086    OBJDUMP="false"
5087  else
5088    case $cross_compiling:$ac_tool_warned in
5089yes:)
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5092ac_tool_warned=yes ;;
5093esac
5094    OBJDUMP=$ac_ct_OBJDUMP
5095  fi
5096else
5097  OBJDUMP="$ac_cv_prog_OBJDUMP"
5098fi
5099
5100  ;;
5101esac
5102
5103test -z "$AS" && AS=as
5104
5105
5106
5107
5108
5109test -z "$DLLTOOL" && DLLTOOL=dlltool
5110
5111
5112
5113
5114
5115test -z "$OBJDUMP" && OBJDUMP=objdump
5116
5117
5118
5119
5120
5121
5122
5123case `pwd` in
5124  *\ * | *\	*)
5125    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5126$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5127esac
5128
5129
5130
5131macro_version='2.2.6b'
5132macro_revision='1.3017'
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146ltmain="$ac_aux_dir/ltmain.sh"
5147
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5149$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5150if test "${ac_cv_path_SED+set}" = set; then :
5151  $as_echo_n "(cached) " >&6
5152else
5153            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5154     for ac_i in 1 2 3 4 5 6 7; do
5155       ac_script="$ac_script$as_nl$ac_script"
5156     done
5157     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5158     { ac_script=; unset ac_script;}
5159     if test -z "$SED"; then
5160  ac_path_SED_found=false
5161  # Loop through the user's path and test for each of PROGNAME-LIST
5162  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165  IFS=$as_save_IFS
5166  test -z "$as_dir" && as_dir=.
5167    for ac_prog in sed gsed; do
5168    for ac_exec_ext in '' $ac_executable_extensions; do
5169      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5170      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5171# Check for GNU ac_path_SED and select it if it is found.
5172  # Check for GNU $ac_path_SED
5173case `"$ac_path_SED" --version 2>&1` in
5174*GNU*)
5175  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5176*)
5177  ac_count=0
5178  $as_echo_n 0123456789 >"conftest.in"
5179  while :
5180  do
5181    cat "conftest.in" "conftest.in" >"conftest.tmp"
5182    mv "conftest.tmp" "conftest.in"
5183    cp "conftest.in" "conftest.nl"
5184    $as_echo '' >> "conftest.nl"
5185    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5186    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5187    as_fn_arith $ac_count + 1 && ac_count=$as_val
5188    if test $ac_count -gt ${ac_path_SED_max-0}; then
5189      # Best one so far, save it but keep looking for a better one
5190      ac_cv_path_SED="$ac_path_SED"
5191      ac_path_SED_max=$ac_count
5192    fi
5193    # 10*(2^10) chars as input seems more than enough
5194    test $ac_count -gt 10 && break
5195  done
5196  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5197esac
5198
5199      $ac_path_SED_found && break 3
5200    done
5201  done
5202  done
5203IFS=$as_save_IFS
5204  if test -z "$ac_cv_path_SED"; then
5205    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5206  fi
5207else
5208  ac_cv_path_SED=$SED
5209fi
5210
5211fi
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5213$as_echo "$ac_cv_path_SED" >&6; }
5214 SED="$ac_cv_path_SED"
5215  rm -f conftest.sed
5216
5217test -z "$SED" && SED=sed
5218Xsed="$SED -e 1s/^X//"
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5231$as_echo_n "checking for fgrep... " >&6; }
5232if test "${ac_cv_path_FGREP+set}" = set; then :
5233  $as_echo_n "(cached) " >&6
5234else
5235  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5236   then ac_cv_path_FGREP="$GREP -F"
5237   else
5238     if test -z "$FGREP"; then
5239  ac_path_FGREP_found=false
5240  # Loop through the user's path and test for each of PROGNAME-LIST
5241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5243do
5244  IFS=$as_save_IFS
5245  test -z "$as_dir" && as_dir=.
5246    for ac_prog in fgrep; do
5247    for ac_exec_ext in '' $ac_executable_extensions; do
5248      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5249      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5250# Check for GNU ac_path_FGREP and select it if it is found.
5251  # Check for GNU $ac_path_FGREP
5252case `"$ac_path_FGREP" --version 2>&1` in
5253*GNU*)
5254  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5255*)
5256  ac_count=0
5257  $as_echo_n 0123456789 >"conftest.in"
5258  while :
5259  do
5260    cat "conftest.in" "conftest.in" >"conftest.tmp"
5261    mv "conftest.tmp" "conftest.in"
5262    cp "conftest.in" "conftest.nl"
5263    $as_echo 'FGREP' >> "conftest.nl"
5264    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5265    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5266    as_fn_arith $ac_count + 1 && ac_count=$as_val
5267    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5268      # Best one so far, save it but keep looking for a better one
5269      ac_cv_path_FGREP="$ac_path_FGREP"
5270      ac_path_FGREP_max=$ac_count
5271    fi
5272    # 10*(2^10) chars as input seems more than enough
5273    test $ac_count -gt 10 && break
5274  done
5275  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5276esac
5277
5278      $ac_path_FGREP_found && break 3
5279    done
5280  done
5281  done
5282IFS=$as_save_IFS
5283  if test -z "$ac_cv_path_FGREP"; then
5284    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5285  fi
5286else
5287  ac_cv_path_FGREP=$FGREP
5288fi
5289
5290   fi
5291fi
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5293$as_echo "$ac_cv_path_FGREP" >&6; }
5294 FGREP="$ac_cv_path_FGREP"
5295
5296
5297test -z "$GREP" && GREP=grep
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317# Check whether --with-gnu-ld was given.
5318if test "${with_gnu_ld+set}" = set; then :
5319  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5320else
5321  with_gnu_ld=no
5322fi
5323
5324ac_prog=ld
5325if test "$GCC" = yes; then
5326  # Check if gcc -print-prog-name=ld gives a path.
5327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5328$as_echo_n "checking for ld used by $CC... " >&6; }
5329  case $host in
5330  *-*-mingw*)
5331    # gcc leaves a trailing carriage return which upsets mingw
5332    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5333  *)
5334    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5335  esac
5336  case $ac_prog in
5337    # Accept absolute paths.
5338    [\\/]* | ?:[\\/]*)
5339      re_direlt='/[^/][^/]*/\.\./'
5340      # Canonicalize the pathname of ld
5341      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5342      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5343	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5344      done
5345      test -z "$LD" && LD="$ac_prog"
5346      ;;
5347  "")
5348    # If it fails, then pretend we aren't using GCC.
5349    ac_prog=ld
5350    ;;
5351  *)
5352    # If it is relative, then search for the first ld in PATH.
5353    with_gnu_ld=unknown
5354    ;;
5355  esac
5356elif test "$with_gnu_ld" = yes; then
5357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5358$as_echo_n "checking for GNU ld... " >&6; }
5359else
5360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5361$as_echo_n "checking for non-GNU ld... " >&6; }
5362fi
5363if test "${lt_cv_path_LD+set}" = set; then :
5364  $as_echo_n "(cached) " >&6
5365else
5366  if test -z "$LD"; then
5367  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5368  for ac_dir in $PATH; do
5369    IFS="$lt_save_ifs"
5370    test -z "$ac_dir" && ac_dir=.
5371    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5372      lt_cv_path_LD="$ac_dir/$ac_prog"
5373      # Check to see if the program is GNU ld.  I'd rather use --version,
5374      # but apparently some variants of GNU ld only accept -v.
5375      # Break only if it was the GNU/non-GNU ld that we prefer.
5376      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5377      *GNU* | *'with BFD'*)
5378	test "$with_gnu_ld" != no && break
5379	;;
5380      *)
5381	test "$with_gnu_ld" != yes && break
5382	;;
5383      esac
5384    fi
5385  done
5386  IFS="$lt_save_ifs"
5387else
5388  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5389fi
5390fi
5391
5392LD="$lt_cv_path_LD"
5393if test -n "$LD"; then
5394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5395$as_echo "$LD" >&6; }
5396else
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398$as_echo "no" >&6; }
5399fi
5400test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5402$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5403if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5407case `$LD -v 2>&1 </dev/null` in
5408*GNU* | *'with BFD'*)
5409  lt_cv_prog_gnu_ld=yes
5410  ;;
5411*)
5412  lt_cv_prog_gnu_ld=no
5413  ;;
5414esac
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5417$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5418with_gnu_ld=$lt_cv_prog_gnu_ld
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5429$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5430if test "${lt_cv_path_NM+set}" = set; then :
5431  $as_echo_n "(cached) " >&6
5432else
5433  if test -n "$NM"; then
5434  # Let the user override the test.
5435  lt_cv_path_NM="$NM"
5436else
5437  lt_nm_to_check="${ac_tool_prefix}nm"
5438  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5439    lt_nm_to_check="$lt_nm_to_check nm"
5440  fi
5441  for lt_tmp_nm in $lt_nm_to_check; do
5442    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5443    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5444      IFS="$lt_save_ifs"
5445      test -z "$ac_dir" && ac_dir=.
5446      tmp_nm="$ac_dir/$lt_tmp_nm"
5447      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5448	# Check to see if the nm accepts a BSD-compat flag.
5449	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5450	#   nm: unknown option "B" ignored
5451	# Tru64's nm complains that /dev/null is an invalid object file
5452	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5453	*/dev/null* | *'Invalid file or object type'*)
5454	  lt_cv_path_NM="$tmp_nm -B"
5455	  break
5456	  ;;
5457	*)
5458	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5459	  */dev/null*)
5460	    lt_cv_path_NM="$tmp_nm -p"
5461	    break
5462	    ;;
5463	  *)
5464	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5465	    continue # so that we can try to find one that supports BSD flags
5466	    ;;
5467	  esac
5468	  ;;
5469	esac
5470      fi
5471    done
5472    IFS="$lt_save_ifs"
5473  done
5474  : ${lt_cv_path_NM=no}
5475fi
5476fi
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5478$as_echo "$lt_cv_path_NM" >&6; }
5479if test "$lt_cv_path_NM" != "no"; then
5480  NM="$lt_cv_path_NM"
5481else
5482  # Didn't find any BSD compatible name lister, look for dumpbin.
5483  if test -n "$ac_tool_prefix"; then
5484  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5485  do
5486    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5487set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489$as_echo_n "checking for $ac_word... " >&6; }
5490if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5491  $as_echo_n "(cached) " >&6
5492else
5493  if test -n "$DUMPBIN"; then
5494  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5495else
5496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497for as_dir in $PATH
5498do
5499  IFS=$as_save_IFS
5500  test -z "$as_dir" && as_dir=.
5501    for ac_exec_ext in '' $ac_executable_extensions; do
5502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505    break 2
5506  fi
5507done
5508  done
5509IFS=$as_save_IFS
5510
5511fi
5512fi
5513DUMPBIN=$ac_cv_prog_DUMPBIN
5514if test -n "$DUMPBIN"; then
5515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5516$as_echo "$DUMPBIN" >&6; }
5517else
5518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519$as_echo "no" >&6; }
5520fi
5521
5522
5523    test -n "$DUMPBIN" && break
5524  done
5525fi
5526if test -z "$DUMPBIN"; then
5527  ac_ct_DUMPBIN=$DUMPBIN
5528  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5529do
5530  # Extract the first word of "$ac_prog", so it can be a program name with args.
5531set dummy $ac_prog; ac_word=$2
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533$as_echo_n "checking for $ac_word... " >&6; }
5534if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5535  $as_echo_n "(cached) " >&6
5536else
5537  if test -n "$ac_ct_DUMPBIN"; then
5538  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5539else
5540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543  IFS=$as_save_IFS
5544  test -z "$as_dir" && as_dir=.
5545    for ac_exec_ext in '' $ac_executable_extensions; do
5546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549    break 2
5550  fi
5551done
5552  done
5553IFS=$as_save_IFS
5554
5555fi
5556fi
5557ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5558if test -n "$ac_ct_DUMPBIN"; then
5559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5560$as_echo "$ac_ct_DUMPBIN" >&6; }
5561else
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563$as_echo "no" >&6; }
5564fi
5565
5566
5567  test -n "$ac_ct_DUMPBIN" && break
5568done
5569
5570  if test "x$ac_ct_DUMPBIN" = x; then
5571    DUMPBIN=":"
5572  else
5573    case $cross_compiling:$ac_tool_warned in
5574yes:)
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577ac_tool_warned=yes ;;
5578esac
5579    DUMPBIN=$ac_ct_DUMPBIN
5580  fi
5581fi
5582
5583
5584  if test "$DUMPBIN" != ":"; then
5585    NM="$DUMPBIN"
5586  fi
5587fi
5588test -z "$NM" && NM=nm
5589
5590
5591
5592
5593
5594
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5596$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5597if test "${lt_cv_nm_interface+set}" = set; then :
5598  $as_echo_n "(cached) " >&6
5599else
5600  lt_cv_nm_interface="BSD nm"
5601  echo "int some_variable = 0;" > conftest.$ac_ext
5602  (eval echo "\"\$as_me:5602: $ac_compile\"" >&5)
5603  (eval "$ac_compile" 2>conftest.err)
5604  cat conftest.err >&5
5605  (eval echo "\"\$as_me:5605: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5606  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5607  cat conftest.err >&5
5608  (eval echo "\"\$as_me:5608: output\"" >&5)
5609  cat conftest.out >&5
5610  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5611    lt_cv_nm_interface="MS dumpbin"
5612  fi
5613  rm -f conftest*
5614fi
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5616$as_echo "$lt_cv_nm_interface" >&6; }
5617
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5619$as_echo_n "checking whether ln -s works... " >&6; }
5620LN_S=$as_ln_s
5621if test "$LN_S" = "ln -s"; then
5622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5623$as_echo "yes" >&6; }
5624else
5625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5626$as_echo "no, using $LN_S" >&6; }
5627fi
5628
5629# find the maximum length of command line arguments
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5631$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5632if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635    i=0
5636  teststring="ABCD"
5637
5638  case $build_os in
5639  msdosdjgpp*)
5640    # On DJGPP, this test can blow up pretty badly due to problems in libc
5641    # (any single argument exceeding 2000 bytes causes a buffer overrun
5642    # during glob expansion).  Even if it were fixed, the result of this
5643    # check would be larger than it should be.
5644    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5645    ;;
5646
5647  gnu*)
5648    # Under GNU Hurd, this test is not required because there is
5649    # no limit to the length of command line arguments.
5650    # Libtool will interpret -1 as no limit whatsoever
5651    lt_cv_sys_max_cmd_len=-1;
5652    ;;
5653
5654  cygwin* | mingw* | cegcc*)
5655    # On Win9x/ME, this test blows up -- it succeeds, but takes
5656    # about 5 minutes as the teststring grows exponentially.
5657    # Worse, since 9x/ME are not pre-emptively multitasking,
5658    # you end up with a "frozen" computer, even though with patience
5659    # the test eventually succeeds (with a max line length of 256k).
5660    # Instead, let's just punt: use the minimum linelength reported by
5661    # all of the supported platforms: 8192 (on NT/2K/XP).
5662    lt_cv_sys_max_cmd_len=8192;
5663    ;;
5664
5665  amigaos*)
5666    # On AmigaOS with pdksh, this test takes hours, literally.
5667    # So we just punt and use a minimum line length of 8192.
5668    lt_cv_sys_max_cmd_len=8192;
5669    ;;
5670
5671  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5672    # This has been around since 386BSD, at least.  Likely further.
5673    if test -x /sbin/sysctl; then
5674      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5675    elif test -x /usr/sbin/sysctl; then
5676      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5677    else
5678      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5679    fi
5680    # And add a safety zone
5681    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5682    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5683    ;;
5684
5685  interix*)
5686    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5687    lt_cv_sys_max_cmd_len=196608
5688    ;;
5689
5690  osf*)
5691    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5692    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5693    # nice to cause kernel panics so lets avoid the loop below.
5694    # First set a reasonable default.
5695    lt_cv_sys_max_cmd_len=16384
5696    #
5697    if test -x /sbin/sysconfig; then
5698      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5699        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5700      esac
5701    fi
5702    ;;
5703  sco3.2v5*)
5704    lt_cv_sys_max_cmd_len=102400
5705    ;;
5706  sysv5* | sco5v6* | sysv4.2uw2*)
5707    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5708    if test -n "$kargmax"; then
5709      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5710    else
5711      lt_cv_sys_max_cmd_len=32768
5712    fi
5713    ;;
5714  *)
5715    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5716    if test -n "$lt_cv_sys_max_cmd_len"; then
5717      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5718      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5719    else
5720      # Make teststring a little bigger before we do anything with it.
5721      # a 1K string should be a reasonable start.
5722      for i in 1 2 3 4 5 6 7 8 ; do
5723        teststring=$teststring$teststring
5724      done
5725      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5726      # If test is not a shell built-in, we'll probably end up computing a
5727      # maximum length that is only half of the actual maximum length, but
5728      # we can't tell.
5729      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5730	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5731	      test $i != 17 # 1/2 MB should be enough
5732      do
5733        i=`expr $i + 1`
5734        teststring=$teststring$teststring
5735      done
5736      # Only check the string length outside the loop.
5737      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5738      teststring=
5739      # Add a significant safety factor because C++ compilers can tack on
5740      # massive amounts of additional arguments before passing them to the
5741      # linker.  It appears as though 1/2 is a usable value.
5742      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5743    fi
5744    ;;
5745  esac
5746
5747fi
5748
5749if test -n $lt_cv_sys_max_cmd_len ; then
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5751$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5752else
5753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5754$as_echo "none" >&6; }
5755fi
5756max_cmd_len=$lt_cv_sys_max_cmd_len
5757
5758
5759
5760
5761
5762
5763: ${CP="cp -f"}
5764: ${MV="mv -f"}
5765: ${RM="rm -f"}
5766
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5768$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5769# Try some XSI features
5770xsi_shell=no
5771( _lt_dummy="a/b/c"
5772  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5773      = c,a/b,, \
5774    && eval 'test $(( 1 + 1 )) -eq 2 \
5775    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5776  && xsi_shell=yes
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5778$as_echo "$xsi_shell" >&6; }
5779
5780
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5782$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5783lt_shell_append=no
5784( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5785    >/dev/null 2>&1 \
5786  && lt_shell_append=yes
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5788$as_echo "$lt_shell_append" >&6; }
5789
5790
5791if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5792  lt_unset=unset
5793else
5794  lt_unset=false
5795fi
5796
5797
5798
5799
5800
5801# test EBCDIC or ASCII
5802case `echo X|tr X '\101'` in
5803 A) # ASCII based system
5804    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5805  lt_SP2NL='tr \040 \012'
5806  lt_NL2SP='tr \015\012 \040\040'
5807  ;;
5808 *) # EBCDIC based system
5809  lt_SP2NL='tr \100 \n'
5810  lt_NL2SP='tr \r\n \100\100'
5811  ;;
5812esac
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5823$as_echo_n "checking for $LD option to reload object files... " >&6; }
5824if test "${lt_cv_ld_reload_flag+set}" = set; then :
5825  $as_echo_n "(cached) " >&6
5826else
5827  lt_cv_ld_reload_flag='-r'
5828fi
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5830$as_echo "$lt_cv_ld_reload_flag" >&6; }
5831reload_flag=$lt_cv_ld_reload_flag
5832case $reload_flag in
5833"" | " "*) ;;
5834*) reload_flag=" $reload_flag" ;;
5835esac
5836reload_cmds='$LD$reload_flag -o $output$reload_objs'
5837case $host_os in
5838  darwin*)
5839    if test "$GCC" = yes; then
5840      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5841    else
5842      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5843    fi
5844    ;;
5845esac
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855if test -n "$ac_tool_prefix"; then
5856  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5857set dummy ${ac_tool_prefix}objdump; ac_word=$2
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859$as_echo_n "checking for $ac_word... " >&6; }
5860if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5861  $as_echo_n "(cached) " >&6
5862else
5863  if test -n "$OBJDUMP"; then
5864  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5865else
5866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867for as_dir in $PATH
5868do
5869  IFS=$as_save_IFS
5870  test -z "$as_dir" && as_dir=.
5871    for ac_exec_ext in '' $ac_executable_extensions; do
5872  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875    break 2
5876  fi
5877done
5878  done
5879IFS=$as_save_IFS
5880
5881fi
5882fi
5883OBJDUMP=$ac_cv_prog_OBJDUMP
5884if test -n "$OBJDUMP"; then
5885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5886$as_echo "$OBJDUMP" >&6; }
5887else
5888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889$as_echo "no" >&6; }
5890fi
5891
5892
5893fi
5894if test -z "$ac_cv_prog_OBJDUMP"; then
5895  ac_ct_OBJDUMP=$OBJDUMP
5896  # Extract the first word of "objdump", so it can be a program name with args.
5897set dummy objdump; ac_word=$2
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899$as_echo_n "checking for $ac_word... " >&6; }
5900if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5901  $as_echo_n "(cached) " >&6
5902else
5903  if test -n "$ac_ct_OBJDUMP"; then
5904  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909  IFS=$as_save_IFS
5910  test -z "$as_dir" && as_dir=.
5911    for ac_exec_ext in '' $ac_executable_extensions; do
5912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5913    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5915    break 2
5916  fi
5917done
5918  done
5919IFS=$as_save_IFS
5920
5921fi
5922fi
5923ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5924if test -n "$ac_ct_OBJDUMP"; then
5925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5926$as_echo "$ac_ct_OBJDUMP" >&6; }
5927else
5928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929$as_echo "no" >&6; }
5930fi
5931
5932  if test "x$ac_ct_OBJDUMP" = x; then
5933    OBJDUMP="false"
5934  else
5935    case $cross_compiling:$ac_tool_warned in
5936yes:)
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5939ac_tool_warned=yes ;;
5940esac
5941    OBJDUMP=$ac_ct_OBJDUMP
5942  fi
5943else
5944  OBJDUMP="$ac_cv_prog_OBJDUMP"
5945fi
5946
5947test -z "$OBJDUMP" && OBJDUMP=objdump
5948
5949
5950
5951
5952
5953
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5955$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5956if test "${lt_cv_deplibs_check_method+set}" = set; then :
5957  $as_echo_n "(cached) " >&6
5958else
5959  lt_cv_file_magic_cmd='$MAGIC_CMD'
5960lt_cv_file_magic_test_file=
5961lt_cv_deplibs_check_method='unknown'
5962# Need to set the preceding variable on all platforms that support
5963# interlibrary dependencies.
5964# 'none' -- dependencies not supported.
5965# `unknown' -- same as none, but documents that we really don't know.
5966# 'pass_all' -- all dependencies passed with no checks.
5967# 'test_compile' -- check by making test program.
5968# 'file_magic [[regex]]' -- check by looking for files in library path
5969# which responds to the $file_magic_cmd with a given extended regex.
5970# If you have `file' or equivalent on your system and you're not sure
5971# whether `pass_all' will *always* work, you probably want this one.
5972
5973case $host_os in
5974aix[4-9]*)
5975  lt_cv_deplibs_check_method=pass_all
5976  ;;
5977
5978beos*)
5979  lt_cv_deplibs_check_method=pass_all
5980  ;;
5981
5982bsdi[45]*)
5983  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5984  lt_cv_file_magic_cmd='/usr/bin/file -L'
5985  lt_cv_file_magic_test_file=/shlib/libc.so
5986  ;;
5987
5988cygwin*)
5989  # func_win32_libid is a shell function defined in ltmain.sh
5990  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5991  lt_cv_file_magic_cmd='func_win32_libid'
5992  ;;
5993
5994mingw* | pw32*)
5995  # Base MSYS/MinGW do not provide the 'file' command needed by
5996  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5997  # unless we find 'file', for example because we are cross-compiling.
5998  if ( file / ) >/dev/null 2>&1; then
5999    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6000    lt_cv_file_magic_cmd='func_win32_libid'
6001  else
6002    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6003    lt_cv_file_magic_cmd='$OBJDUMP -f'
6004  fi
6005  ;;
6006
6007cegcc)
6008  # use the weaker test based on 'objdump'. See mingw*.
6009  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6010  lt_cv_file_magic_cmd='$OBJDUMP -f'
6011  ;;
6012
6013darwin* | rhapsody*)
6014  lt_cv_deplibs_check_method=pass_all
6015  ;;
6016
6017freebsd* | dragonfly*)
6018  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6019    case $host_cpu in
6020    i*86 )
6021      # Not sure whether the presence of OpenBSD here was a mistake.
6022      # Let's accept both of them until this is cleared up.
6023      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6024      lt_cv_file_magic_cmd=/usr/bin/file
6025      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6026      ;;
6027    esac
6028  else
6029    lt_cv_deplibs_check_method=pass_all
6030  fi
6031  ;;
6032
6033gnu*)
6034  lt_cv_deplibs_check_method=pass_all
6035  ;;
6036
6037hpux10.20* | hpux11*)
6038  lt_cv_file_magic_cmd=/usr/bin/file
6039  case $host_cpu in
6040  ia64*)
6041    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6042    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6043    ;;
6044  hppa*64*)
6045    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]'
6046    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6047    ;;
6048  *)
6049    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6050    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6051    ;;
6052  esac
6053  ;;
6054
6055interix[3-9]*)
6056  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6057  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6058  ;;
6059
6060irix5* | irix6* | nonstopux*)
6061  case $LD in
6062  *-32|*"-32 ") libmagic=32-bit;;
6063  *-n32|*"-n32 ") libmagic=N32;;
6064  *-64|*"-64 ") libmagic=64-bit;;
6065  *) libmagic=never-match;;
6066  esac
6067  lt_cv_deplibs_check_method=pass_all
6068  ;;
6069
6070# This must be Linux ELF.
6071linux* | k*bsd*-gnu)
6072  lt_cv_deplibs_check_method=pass_all
6073  ;;
6074
6075netbsd*)
6076  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6077    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6078  else
6079    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6080  fi
6081  ;;
6082
6083newos6*)
6084  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6085  lt_cv_file_magic_cmd=/usr/bin/file
6086  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6087  ;;
6088
6089*nto* | *qnx*)
6090  lt_cv_deplibs_check_method=pass_all
6091  ;;
6092
6093openbsd*)
6094  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6095    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6096  else
6097    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6098  fi
6099  ;;
6100
6101osf3* | osf4* | osf5*)
6102  lt_cv_deplibs_check_method=pass_all
6103  ;;
6104
6105rdos*)
6106  lt_cv_deplibs_check_method=pass_all
6107  ;;
6108
6109solaris*)
6110  lt_cv_deplibs_check_method=pass_all
6111  ;;
6112
6113sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6114  lt_cv_deplibs_check_method=pass_all
6115  ;;
6116
6117sysv4 | sysv4.3*)
6118  case $host_vendor in
6119  motorola)
6120    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]'
6121    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6122    ;;
6123  ncr)
6124    lt_cv_deplibs_check_method=pass_all
6125    ;;
6126  sequent)
6127    lt_cv_file_magic_cmd='/bin/file'
6128    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6129    ;;
6130  sni)
6131    lt_cv_file_magic_cmd='/bin/file'
6132    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6133    lt_cv_file_magic_test_file=/lib/libc.so
6134    ;;
6135  siemens)
6136    lt_cv_deplibs_check_method=pass_all
6137    ;;
6138  pc)
6139    lt_cv_deplibs_check_method=pass_all
6140    ;;
6141  esac
6142  ;;
6143
6144tpf*)
6145  lt_cv_deplibs_check_method=pass_all
6146  ;;
6147esac
6148
6149fi
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6151$as_echo "$lt_cv_deplibs_check_method" >&6; }
6152file_magic_cmd=$lt_cv_file_magic_cmd
6153deplibs_check_method=$lt_cv_deplibs_check_method
6154test -z "$deplibs_check_method" && deplibs_check_method=unknown
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167if test -n "$ac_tool_prefix"; then
6168  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6169set dummy ${ac_tool_prefix}ar; ac_word=$2
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171$as_echo_n "checking for $ac_word... " >&6; }
6172if test "${ac_cv_prog_AR+set}" = set; then :
6173  $as_echo_n "(cached) " >&6
6174else
6175  if test -n "$AR"; then
6176  ac_cv_prog_AR="$AR" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181  IFS=$as_save_IFS
6182  test -z "$as_dir" && as_dir=.
6183    for ac_exec_ext in '' $ac_executable_extensions; do
6184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185    ac_cv_prog_AR="${ac_tool_prefix}ar"
6186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187    break 2
6188  fi
6189done
6190  done
6191IFS=$as_save_IFS
6192
6193fi
6194fi
6195AR=$ac_cv_prog_AR
6196if test -n "$AR"; then
6197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6198$as_echo "$AR" >&6; }
6199else
6200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201$as_echo "no" >&6; }
6202fi
6203
6204
6205fi
6206if test -z "$ac_cv_prog_AR"; then
6207  ac_ct_AR=$AR
6208  # Extract the first word of "ar", so it can be a program name with args.
6209set dummy ar; ac_word=$2
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211$as_echo_n "checking for $ac_word... " >&6; }
6212if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6213  $as_echo_n "(cached) " >&6
6214else
6215  if test -n "$ac_ct_AR"; then
6216  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221  IFS=$as_save_IFS
6222  test -z "$as_dir" && as_dir=.
6223    for ac_exec_ext in '' $ac_executable_extensions; do
6224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225    ac_cv_prog_ac_ct_AR="ar"
6226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227    break 2
6228  fi
6229done
6230  done
6231IFS=$as_save_IFS
6232
6233fi
6234fi
6235ac_ct_AR=$ac_cv_prog_ac_ct_AR
6236if test -n "$ac_ct_AR"; then
6237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6238$as_echo "$ac_ct_AR" >&6; }
6239else
6240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241$as_echo "no" >&6; }
6242fi
6243
6244  if test "x$ac_ct_AR" = x; then
6245    AR="false"
6246  else
6247    case $cross_compiling:$ac_tool_warned in
6248yes:)
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251ac_tool_warned=yes ;;
6252esac
6253    AR=$ac_ct_AR
6254  fi
6255else
6256  AR="$ac_cv_prog_AR"
6257fi
6258
6259test -z "$AR" && AR=ar
6260test -z "$AR_FLAGS" && AR_FLAGS=cru
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272if test -n "$ac_tool_prefix"; then
6273  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6274set dummy ${ac_tool_prefix}strip; ac_word=$2
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276$as_echo_n "checking for $ac_word... " >&6; }
6277if test "${ac_cv_prog_STRIP+set}" = set; then :
6278  $as_echo_n "(cached) " >&6
6279else
6280  if test -n "$STRIP"; then
6281  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6282else
6283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286  IFS=$as_save_IFS
6287  test -z "$as_dir" && as_dir=.
6288    for ac_exec_ext in '' $ac_executable_extensions; do
6289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292    break 2
6293  fi
6294done
6295  done
6296IFS=$as_save_IFS
6297
6298fi
6299fi
6300STRIP=$ac_cv_prog_STRIP
6301if test -n "$STRIP"; then
6302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6303$as_echo "$STRIP" >&6; }
6304else
6305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306$as_echo "no" >&6; }
6307fi
6308
6309
6310fi
6311if test -z "$ac_cv_prog_STRIP"; then
6312  ac_ct_STRIP=$STRIP
6313  # Extract the first word of "strip", so it can be a program name with args.
6314set dummy strip; ac_word=$2
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316$as_echo_n "checking for $ac_word... " >&6; }
6317if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6318  $as_echo_n "(cached) " >&6
6319else
6320  if test -n "$ac_ct_STRIP"; then
6321  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6322else
6323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324for as_dir in $PATH
6325do
6326  IFS=$as_save_IFS
6327  test -z "$as_dir" && as_dir=.
6328    for ac_exec_ext in '' $ac_executable_extensions; do
6329  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330    ac_cv_prog_ac_ct_STRIP="strip"
6331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332    break 2
6333  fi
6334done
6335  done
6336IFS=$as_save_IFS
6337
6338fi
6339fi
6340ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6341if test -n "$ac_ct_STRIP"; then
6342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6343$as_echo "$ac_ct_STRIP" >&6; }
6344else
6345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346$as_echo "no" >&6; }
6347fi
6348
6349  if test "x$ac_ct_STRIP" = x; then
6350    STRIP=":"
6351  else
6352    case $cross_compiling:$ac_tool_warned in
6353yes:)
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6356ac_tool_warned=yes ;;
6357esac
6358    STRIP=$ac_ct_STRIP
6359  fi
6360else
6361  STRIP="$ac_cv_prog_STRIP"
6362fi
6363
6364test -z "$STRIP" && STRIP=:
6365
6366
6367
6368
6369
6370
6371if test -n "$ac_tool_prefix"; then
6372  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6373set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375$as_echo_n "checking for $ac_word... " >&6; }
6376if test "${ac_cv_prog_RANLIB+set}" = set; then :
6377  $as_echo_n "(cached) " >&6
6378else
6379  if test -n "$RANLIB"; then
6380  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6381else
6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383for as_dir in $PATH
6384do
6385  IFS=$as_save_IFS
6386  test -z "$as_dir" && as_dir=.
6387    for ac_exec_ext in '' $ac_executable_extensions; do
6388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391    break 2
6392  fi
6393done
6394  done
6395IFS=$as_save_IFS
6396
6397fi
6398fi
6399RANLIB=$ac_cv_prog_RANLIB
6400if test -n "$RANLIB"; then
6401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6402$as_echo "$RANLIB" >&6; }
6403else
6404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405$as_echo "no" >&6; }
6406fi
6407
6408
6409fi
6410if test -z "$ac_cv_prog_RANLIB"; then
6411  ac_ct_RANLIB=$RANLIB
6412  # Extract the first word of "ranlib", so it can be a program name with args.
6413set dummy ranlib; 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_ac_ct_RANLIB+set}" = set; then :
6417  $as_echo_n "(cached) " >&6
6418else
6419  if test -n "$ac_ct_RANLIB"; then
6420  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
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
6439ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6440if test -n "$ac_ct_RANLIB"; then
6441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6442$as_echo "$ac_ct_RANLIB" >&6; }
6443else
6444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445$as_echo "no" >&6; }
6446fi
6447
6448  if test "x$ac_ct_RANLIB" = x; then
6449    RANLIB=":"
6450  else
6451    case $cross_compiling:$ac_tool_warned in
6452yes:)
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455ac_tool_warned=yes ;;
6456esac
6457    RANLIB=$ac_ct_RANLIB
6458  fi
6459else
6460  RANLIB="$ac_cv_prog_RANLIB"
6461fi
6462
6463test -z "$RANLIB" && RANLIB=:
6464
6465
6466
6467
6468
6469
6470# Determine commands to create old-style static archives.
6471old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6472old_postinstall_cmds='chmod 644 $oldlib'
6473old_postuninstall_cmds=
6474
6475if test -n "$RANLIB"; then
6476  case $host_os in
6477  openbsd*)
6478    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6479    ;;
6480  *)
6481    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6482    ;;
6483  esac
6484  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6485fi
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520# If no C compiler was specified, use CC.
6521LTCC=${LTCC-"$CC"}
6522
6523# If no C compiler flags were specified, use CFLAGS.
6524LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6525
6526# Allow CC to be a program name with arguments.
6527compiler=$CC
6528
6529
6530# Check for command to grab the raw symbol name followed by C symbol from nm.
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6532$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6533if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6534  $as_echo_n "(cached) " >&6
6535else
6536
6537# These are sane defaults that work on at least a few old systems.
6538# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6539
6540# Character class describing NM global symbol codes.
6541symcode='[BCDEGRST]'
6542
6543# Regexp to match symbols that can be accessed directly from C.
6544sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6545
6546# Define system-specific variables.
6547case $host_os in
6548aix*)
6549  symcode='[BCDT]'
6550  ;;
6551cygwin* | mingw* | pw32* | cegcc*)
6552  symcode='[ABCDGISTW]'
6553  ;;
6554hpux*)
6555  if test "$host_cpu" = ia64; then
6556    symcode='[ABCDEGRST]'
6557  fi
6558  ;;
6559irix* | nonstopux*)
6560  symcode='[BCDEGRST]'
6561  ;;
6562osf*)
6563  symcode='[BCDEGQRST]'
6564  ;;
6565solaris*)
6566  symcode='[BDRT]'
6567  ;;
6568sco3.2v5*)
6569  symcode='[DT]'
6570  ;;
6571sysv4.2uw2*)
6572  symcode='[DT]'
6573  ;;
6574sysv5* | sco5v6* | unixware* | OpenUNIX*)
6575  symcode='[ABDT]'
6576  ;;
6577sysv4)
6578  symcode='[DFNSTU]'
6579  ;;
6580esac
6581
6582# If we're using GNU nm, then use its standard symbol codes.
6583case `$NM -V 2>&1` in
6584*GNU* | *'with BFD'*)
6585  symcode='[ABCDGIRSTW]' ;;
6586esac
6587
6588# Transform an extracted symbol line into a proper C declaration.
6589# Some systems (esp. on ia64) link data and code symbols differently,
6590# so use this general approach.
6591lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6592
6593# Transform an extracted symbol line into symbol name and symbol address
6594lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6595lt_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'"
6596
6597# Handle CRLF in mingw tool chain
6598opt_cr=
6599case $build_os in
6600mingw*)
6601  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6602  ;;
6603esac
6604
6605# Try without a prefix underscore, then with it.
6606for ac_symprfx in "" "_"; do
6607
6608  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6609  symxfrm="\\1 $ac_symprfx\\2 \\2"
6610
6611  # Write the raw and C identifiers.
6612  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6613    # Fake it for dumpbin and say T for any non-static function
6614    # and D for any global variable.
6615    # Also find C++ and __fastcall symbols from MSVC++,
6616    # which start with @ or ?.
6617    lt_cv_sys_global_symbol_pipe="$AWK '"\
6618"     {last_section=section; section=\$ 3};"\
6619"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6620"     \$ 0!~/External *\|/{next};"\
6621"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6622"     {if(hide[section]) next};"\
6623"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6624"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6625"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6626"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6627"     ' prfx=^$ac_symprfx"
6628  else
6629    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6630  fi
6631
6632  # Check to see that the pipe works correctly.
6633  pipe_works=no
6634
6635  rm -f conftest*
6636  cat > conftest.$ac_ext <<_LT_EOF
6637#ifdef __cplusplus
6638extern "C" {
6639#endif
6640char nm_test_var;
6641void nm_test_func(void);
6642void nm_test_func(void){}
6643#ifdef __cplusplus
6644}
6645#endif
6646int main(){nm_test_var='a';nm_test_func();return(0);}
6647_LT_EOF
6648
6649  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6650  (eval $ac_compile) 2>&5
6651  ac_status=$?
6652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6653  test $ac_status = 0; }; then
6654    # Now try to grab the symbols.
6655    nlist=conftest.nm
6656    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6657  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6658  ac_status=$?
6659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6660  test $ac_status = 0; } && test -s "$nlist"; then
6661      # Try sorting and uniquifying the output.
6662      if sort "$nlist" | uniq > "$nlist"T; then
6663	mv -f "$nlist"T "$nlist"
6664      else
6665	rm -f "$nlist"T
6666      fi
6667
6668      # Make sure that we snagged all the symbols we need.
6669      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6670	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6671	  cat <<_LT_EOF > conftest.$ac_ext
6672#ifdef __cplusplus
6673extern "C" {
6674#endif
6675
6676_LT_EOF
6677	  # Now generate the symbol file.
6678	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6679
6680	  cat <<_LT_EOF >> conftest.$ac_ext
6681
6682/* The mapping between symbol names and symbols.  */
6683const struct {
6684  const char *name;
6685  void       *address;
6686}
6687lt__PROGRAM__LTX_preloaded_symbols[] =
6688{
6689  { "@PROGRAM@", (void *) 0 },
6690_LT_EOF
6691	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6692	  cat <<\_LT_EOF >> conftest.$ac_ext
6693  {0, (void *) 0}
6694};
6695
6696/* This works around a problem in FreeBSD linker */
6697#ifdef FREEBSD_WORKAROUND
6698static const void *lt_preloaded_setup() {
6699  return lt__PROGRAM__LTX_preloaded_symbols;
6700}
6701#endif
6702
6703#ifdef __cplusplus
6704}
6705#endif
6706_LT_EOF
6707	  # Now try linking the two files.
6708	  mv conftest.$ac_objext conftstm.$ac_objext
6709	  lt_save_LIBS="$LIBS"
6710	  lt_save_CFLAGS="$CFLAGS"
6711	  LIBS="conftstm.$ac_objext"
6712	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6713	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6714  (eval $ac_link) 2>&5
6715  ac_status=$?
6716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6717  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6718	    pipe_works=yes
6719	  fi
6720	  LIBS="$lt_save_LIBS"
6721	  CFLAGS="$lt_save_CFLAGS"
6722	else
6723	  echo "cannot find nm_test_func in $nlist" >&5
6724	fi
6725      else
6726	echo "cannot find nm_test_var in $nlist" >&5
6727      fi
6728    else
6729      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6730    fi
6731  else
6732    echo "$progname: failed program was:" >&5
6733    cat conftest.$ac_ext >&5
6734  fi
6735  rm -rf conftest* conftst*
6736
6737  # Do not use the global_symbol_pipe unless it works.
6738  if test "$pipe_works" = yes; then
6739    break
6740  else
6741    lt_cv_sys_global_symbol_pipe=
6742  fi
6743done
6744
6745fi
6746
6747if test -z "$lt_cv_sys_global_symbol_pipe"; then
6748  lt_cv_sys_global_symbol_to_cdecl=
6749fi
6750if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6752$as_echo "failed" >&6; }
6753else
6754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6755$as_echo "ok" >&6; }
6756fi
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779# Check whether --enable-libtool-lock was given.
6780if test "${enable_libtool_lock+set}" = set; then :
6781  enableval=$enable_libtool_lock;
6782fi
6783
6784test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6785
6786# Some flags need to be propagated to the compiler or linker for good
6787# libtool support.
6788case $host in
6789ia64-*-hpux*)
6790  # Find out which ABI we are using.
6791  echo 'int i;' > conftest.$ac_ext
6792  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6793  (eval $ac_compile) 2>&5
6794  ac_status=$?
6795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6796  test $ac_status = 0; }; then
6797    case `/usr/bin/file conftest.$ac_objext` in
6798      *ELF-32*)
6799	HPUX_IA64_MODE="32"
6800	;;
6801      *ELF-64*)
6802	HPUX_IA64_MODE="64"
6803	;;
6804    esac
6805  fi
6806  rm -rf conftest*
6807  ;;
6808*-*-irix6*)
6809  # Find out which ABI we are using.
6810  echo '#line 6810 "configure"' > conftest.$ac_ext
6811  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6812  (eval $ac_compile) 2>&5
6813  ac_status=$?
6814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6815  test $ac_status = 0; }; then
6816    if test "$lt_cv_prog_gnu_ld" = yes; then
6817      case `/usr/bin/file conftest.$ac_objext` in
6818	*32-bit*)
6819	  LD="${LD-ld} -melf32bsmip"
6820	  ;;
6821	*N32*)
6822	  LD="${LD-ld} -melf32bmipn32"
6823	  ;;
6824	*64-bit*)
6825	  LD="${LD-ld} -melf64bmip"
6826	;;
6827      esac
6828    else
6829      case `/usr/bin/file conftest.$ac_objext` in
6830	*32-bit*)
6831	  LD="${LD-ld} -32"
6832	  ;;
6833	*N32*)
6834	  LD="${LD-ld} -n32"
6835	  ;;
6836	*64-bit*)
6837	  LD="${LD-ld} -64"
6838	  ;;
6839      esac
6840    fi
6841  fi
6842  rm -rf conftest*
6843  ;;
6844
6845x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6846s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6847  # Find out which ABI we are using.
6848  echo 'int i;' > conftest.$ac_ext
6849  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6850  (eval $ac_compile) 2>&5
6851  ac_status=$?
6852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853  test $ac_status = 0; }; then
6854    case `/usr/bin/file conftest.o` in
6855      *32-bit*)
6856	case $host in
6857	  x86_64-*kfreebsd*-gnu)
6858	    LD="${LD-ld} -m elf_i386_fbsd"
6859	    ;;
6860	  x86_64-*linux*)
6861	    LD="${LD-ld} -m elf_i386"
6862	    ;;
6863	  ppc64-*linux*|powerpc64-*linux*)
6864	    LD="${LD-ld} -m elf32ppclinux"
6865	    ;;
6866	  s390x-*linux*)
6867	    LD="${LD-ld} -m elf_s390"
6868	    ;;
6869	  sparc64-*linux*)
6870	    LD="${LD-ld} -m elf32_sparc"
6871	    ;;
6872	esac
6873	;;
6874      *64-bit*)
6875	case $host in
6876	  x86_64-*kfreebsd*-gnu)
6877	    LD="${LD-ld} -m elf_x86_64_fbsd"
6878	    ;;
6879	  x86_64-*linux*)
6880	    LD="${LD-ld} -m elf_x86_64"
6881	    ;;
6882	  ppc*-*linux*|powerpc*-*linux*)
6883	    LD="${LD-ld} -m elf64ppc"
6884	    ;;
6885	  s390*-*linux*|s390*-*tpf*)
6886	    LD="${LD-ld} -m elf64_s390"
6887	    ;;
6888	  sparc*-*linux*)
6889	    LD="${LD-ld} -m elf64_sparc"
6890	    ;;
6891	esac
6892	;;
6893    esac
6894  fi
6895  rm -rf conftest*
6896  ;;
6897
6898*-*-sco3.2v5*)
6899  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6900  SAVE_CFLAGS="$CFLAGS"
6901  CFLAGS="$CFLAGS -belf"
6902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6903$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6904if test "${lt_cv_cc_needs_belf+set}" = set; then :
6905  $as_echo_n "(cached) " >&6
6906else
6907  ac_ext=c
6908ac_cpp='$CPP $CPPFLAGS'
6909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6911ac_compiler_gnu=$ac_cv_c_compiler_gnu
6912
6913     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914/* end confdefs.h.  */
6915
6916int
6917main ()
6918{
6919
6920  ;
6921  return 0;
6922}
6923_ACEOF
6924if ac_fn_c_try_link "$LINENO"; then :
6925  lt_cv_cc_needs_belf=yes
6926else
6927  lt_cv_cc_needs_belf=no
6928fi
6929rm -f core conftest.err conftest.$ac_objext \
6930    conftest$ac_exeext conftest.$ac_ext
6931     ac_ext=c
6932ac_cpp='$CPP $CPPFLAGS'
6933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935ac_compiler_gnu=$ac_cv_c_compiler_gnu
6936
6937fi
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6939$as_echo "$lt_cv_cc_needs_belf" >&6; }
6940  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6941    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6942    CFLAGS="$SAVE_CFLAGS"
6943  fi
6944  ;;
6945sparc*-*solaris*)
6946  # Find out which ABI we are using.
6947  echo 'int i;' > conftest.$ac_ext
6948  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6949  (eval $ac_compile) 2>&5
6950  ac_status=$?
6951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952  test $ac_status = 0; }; then
6953    case `/usr/bin/file conftest.o` in
6954    *64-bit*)
6955      case $lt_cv_prog_gnu_ld in
6956      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6957      *)
6958	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6959	  LD="${LD-ld} -64"
6960	fi
6961	;;
6962      esac
6963      ;;
6964    esac
6965  fi
6966  rm -rf conftest*
6967  ;;
6968esac
6969
6970need_locks="$enable_libtool_lock"
6971
6972
6973  case $host_os in
6974    rhapsody* | darwin*)
6975    if test -n "$ac_tool_prefix"; then
6976  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6977set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979$as_echo_n "checking for $ac_word... " >&6; }
6980if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6981  $as_echo_n "(cached) " >&6
6982else
6983  if test -n "$DSYMUTIL"; then
6984  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6985else
6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987for as_dir in $PATH
6988do
6989  IFS=$as_save_IFS
6990  test -z "$as_dir" && as_dir=.
6991    for ac_exec_ext in '' $ac_executable_extensions; do
6992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6993    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995    break 2
6996  fi
6997done
6998  done
6999IFS=$as_save_IFS
7000
7001fi
7002fi
7003DSYMUTIL=$ac_cv_prog_DSYMUTIL
7004if test -n "$DSYMUTIL"; then
7005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7006$as_echo "$DSYMUTIL" >&6; }
7007else
7008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009$as_echo "no" >&6; }
7010fi
7011
7012
7013fi
7014if test -z "$ac_cv_prog_DSYMUTIL"; then
7015  ac_ct_DSYMUTIL=$DSYMUTIL
7016  # Extract the first word of "dsymutil", so it can be a program name with args.
7017set dummy dsymutil; ac_word=$2
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019$as_echo_n "checking for $ac_word... " >&6; }
7020if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7021  $as_echo_n "(cached) " >&6
7022else
7023  if test -n "$ac_ct_DSYMUTIL"; then
7024  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7025else
7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027for as_dir in $PATH
7028do
7029  IFS=$as_save_IFS
7030  test -z "$as_dir" && as_dir=.
7031    for ac_exec_ext in '' $ac_executable_extensions; do
7032  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035    break 2
7036  fi
7037done
7038  done
7039IFS=$as_save_IFS
7040
7041fi
7042fi
7043ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7044if test -n "$ac_ct_DSYMUTIL"; then
7045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7046$as_echo "$ac_ct_DSYMUTIL" >&6; }
7047else
7048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049$as_echo "no" >&6; }
7050fi
7051
7052  if test "x$ac_ct_DSYMUTIL" = x; then
7053    DSYMUTIL=":"
7054  else
7055    case $cross_compiling:$ac_tool_warned in
7056yes:)
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7059ac_tool_warned=yes ;;
7060esac
7061    DSYMUTIL=$ac_ct_DSYMUTIL
7062  fi
7063else
7064  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7065fi
7066
7067    if test -n "$ac_tool_prefix"; then
7068  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7069set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071$as_echo_n "checking for $ac_word... " >&6; }
7072if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7073  $as_echo_n "(cached) " >&6
7074else
7075  if test -n "$NMEDIT"; then
7076  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081  IFS=$as_save_IFS
7082  test -z "$as_dir" && as_dir=.
7083    for ac_exec_ext in '' $ac_executable_extensions; do
7084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7085    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087    break 2
7088  fi
7089done
7090  done
7091IFS=$as_save_IFS
7092
7093fi
7094fi
7095NMEDIT=$ac_cv_prog_NMEDIT
7096if test -n "$NMEDIT"; then
7097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7098$as_echo "$NMEDIT" >&6; }
7099else
7100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101$as_echo "no" >&6; }
7102fi
7103
7104
7105fi
7106if test -z "$ac_cv_prog_NMEDIT"; then
7107  ac_ct_NMEDIT=$NMEDIT
7108  # Extract the first word of "nmedit", so it can be a program name with args.
7109set dummy nmedit; ac_word=$2
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111$as_echo_n "checking for $ac_word... " >&6; }
7112if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7113  $as_echo_n "(cached) " >&6
7114else
7115  if test -n "$ac_ct_NMEDIT"; then
7116  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7117else
7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121  IFS=$as_save_IFS
7122  test -z "$as_dir" && as_dir=.
7123    for ac_exec_ext in '' $ac_executable_extensions; do
7124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127    break 2
7128  fi
7129done
7130  done
7131IFS=$as_save_IFS
7132
7133fi
7134fi
7135ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7136if test -n "$ac_ct_NMEDIT"; then
7137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7138$as_echo "$ac_ct_NMEDIT" >&6; }
7139else
7140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141$as_echo "no" >&6; }
7142fi
7143
7144  if test "x$ac_ct_NMEDIT" = x; then
7145    NMEDIT=":"
7146  else
7147    case $cross_compiling:$ac_tool_warned in
7148yes:)
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7151ac_tool_warned=yes ;;
7152esac
7153    NMEDIT=$ac_ct_NMEDIT
7154  fi
7155else
7156  NMEDIT="$ac_cv_prog_NMEDIT"
7157fi
7158
7159    if test -n "$ac_tool_prefix"; then
7160  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7161set dummy ${ac_tool_prefix}lipo; ac_word=$2
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163$as_echo_n "checking for $ac_word... " >&6; }
7164if test "${ac_cv_prog_LIPO+set}" = set; then :
7165  $as_echo_n "(cached) " >&6
7166else
7167  if test -n "$LIPO"; then
7168  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7169else
7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173  IFS=$as_save_IFS
7174  test -z "$as_dir" && as_dir=.
7175    for ac_exec_ext in '' $ac_executable_extensions; do
7176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7177    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179    break 2
7180  fi
7181done
7182  done
7183IFS=$as_save_IFS
7184
7185fi
7186fi
7187LIPO=$ac_cv_prog_LIPO
7188if test -n "$LIPO"; then
7189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7190$as_echo "$LIPO" >&6; }
7191else
7192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193$as_echo "no" >&6; }
7194fi
7195
7196
7197fi
7198if test -z "$ac_cv_prog_LIPO"; then
7199  ac_ct_LIPO=$LIPO
7200  # Extract the first word of "lipo", so it can be a program name with args.
7201set dummy lipo; ac_word=$2
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203$as_echo_n "checking for $ac_word... " >&6; }
7204if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7205  $as_echo_n "(cached) " >&6
7206else
7207  if test -n "$ac_ct_LIPO"; then
7208  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7209else
7210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213  IFS=$as_save_IFS
7214  test -z "$as_dir" && as_dir=.
7215    for ac_exec_ext in '' $ac_executable_extensions; do
7216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217    ac_cv_prog_ac_ct_LIPO="lipo"
7218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219    break 2
7220  fi
7221done
7222  done
7223IFS=$as_save_IFS
7224
7225fi
7226fi
7227ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7228if test -n "$ac_ct_LIPO"; then
7229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7230$as_echo "$ac_ct_LIPO" >&6; }
7231else
7232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233$as_echo "no" >&6; }
7234fi
7235
7236  if test "x$ac_ct_LIPO" = x; then
7237    LIPO=":"
7238  else
7239    case $cross_compiling:$ac_tool_warned in
7240yes:)
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7243ac_tool_warned=yes ;;
7244esac
7245    LIPO=$ac_ct_LIPO
7246  fi
7247else
7248  LIPO="$ac_cv_prog_LIPO"
7249fi
7250
7251    if test -n "$ac_tool_prefix"; then
7252  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7253set dummy ${ac_tool_prefix}otool; ac_word=$2
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255$as_echo_n "checking for $ac_word... " >&6; }
7256if test "${ac_cv_prog_OTOOL+set}" = set; then :
7257  $as_echo_n "(cached) " >&6
7258else
7259  if test -n "$OTOOL"; then
7260  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7261else
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265  IFS=$as_save_IFS
7266  test -z "$as_dir" && as_dir=.
7267    for ac_exec_ext in '' $ac_executable_extensions; do
7268  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7269    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271    break 2
7272  fi
7273done
7274  done
7275IFS=$as_save_IFS
7276
7277fi
7278fi
7279OTOOL=$ac_cv_prog_OTOOL
7280if test -n "$OTOOL"; then
7281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7282$as_echo "$OTOOL" >&6; }
7283else
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285$as_echo "no" >&6; }
7286fi
7287
7288
7289fi
7290if test -z "$ac_cv_prog_OTOOL"; then
7291  ac_ct_OTOOL=$OTOOL
7292  # Extract the first word of "otool", so it can be a program name with args.
7293set dummy otool; ac_word=$2
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295$as_echo_n "checking for $ac_word... " >&6; }
7296if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7297  $as_echo_n "(cached) " >&6
7298else
7299  if test -n "$ac_ct_OTOOL"; then
7300  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7301else
7302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305  IFS=$as_save_IFS
7306  test -z "$as_dir" && as_dir=.
7307    for ac_exec_ext in '' $ac_executable_extensions; do
7308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7309    ac_cv_prog_ac_ct_OTOOL="otool"
7310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311    break 2
7312  fi
7313done
7314  done
7315IFS=$as_save_IFS
7316
7317fi
7318fi
7319ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7320if test -n "$ac_ct_OTOOL"; then
7321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7322$as_echo "$ac_ct_OTOOL" >&6; }
7323else
7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325$as_echo "no" >&6; }
7326fi
7327
7328  if test "x$ac_ct_OTOOL" = x; then
7329    OTOOL=":"
7330  else
7331    case $cross_compiling:$ac_tool_warned in
7332yes:)
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7335ac_tool_warned=yes ;;
7336esac
7337    OTOOL=$ac_ct_OTOOL
7338  fi
7339else
7340  OTOOL="$ac_cv_prog_OTOOL"
7341fi
7342
7343    if test -n "$ac_tool_prefix"; then
7344  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7345set dummy ${ac_tool_prefix}otool64; ac_word=$2
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347$as_echo_n "checking for $ac_word... " >&6; }
7348if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7349  $as_echo_n "(cached) " >&6
7350else
7351  if test -n "$OTOOL64"; then
7352  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7353else
7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357  IFS=$as_save_IFS
7358  test -z "$as_dir" && as_dir=.
7359    for ac_exec_ext in '' $ac_executable_extensions; do
7360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363    break 2
7364  fi
7365done
7366  done
7367IFS=$as_save_IFS
7368
7369fi
7370fi
7371OTOOL64=$ac_cv_prog_OTOOL64
7372if test -n "$OTOOL64"; then
7373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7374$as_echo "$OTOOL64" >&6; }
7375else
7376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377$as_echo "no" >&6; }
7378fi
7379
7380
7381fi
7382if test -z "$ac_cv_prog_OTOOL64"; then
7383  ac_ct_OTOOL64=$OTOOL64
7384  # Extract the first word of "otool64", so it can be a program name with args.
7385set dummy otool64; ac_word=$2
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387$as_echo_n "checking for $ac_word... " >&6; }
7388if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7389  $as_echo_n "(cached) " >&6
7390else
7391  if test -n "$ac_ct_OTOOL64"; then
7392  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7393else
7394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397  IFS=$as_save_IFS
7398  test -z "$as_dir" && as_dir=.
7399    for ac_exec_ext in '' $ac_executable_extensions; do
7400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401    ac_cv_prog_ac_ct_OTOOL64="otool64"
7402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403    break 2
7404  fi
7405done
7406  done
7407IFS=$as_save_IFS
7408
7409fi
7410fi
7411ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7412if test -n "$ac_ct_OTOOL64"; then
7413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7414$as_echo "$ac_ct_OTOOL64" >&6; }
7415else
7416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417$as_echo "no" >&6; }
7418fi
7419
7420  if test "x$ac_ct_OTOOL64" = x; then
7421    OTOOL64=":"
7422  else
7423    case $cross_compiling:$ac_tool_warned in
7424yes:)
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427ac_tool_warned=yes ;;
7428esac
7429    OTOOL64=$ac_ct_OTOOL64
7430  fi
7431else
7432  OTOOL64="$ac_cv_prog_OTOOL64"
7433fi
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7462$as_echo_n "checking for -single_module linker flag... " >&6; }
7463if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7464  $as_echo_n "(cached) " >&6
7465else
7466  lt_cv_apple_cc_single_mod=no
7467      if test -z "${LT_MULTI_MODULE}"; then
7468	# By default we will add the -single_module flag. You can override
7469	# by either setting the environment variable LT_MULTI_MODULE
7470	# non-empty at configure time, or by adding -multi_module to the
7471	# link flags.
7472	rm -rf libconftest.dylib*
7473	echo "int foo(void){return 1;}" > conftest.c
7474	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7475-dynamiclib -Wl,-single_module conftest.c" >&5
7476	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7477	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7478        _lt_result=$?
7479	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7480	  lt_cv_apple_cc_single_mod=yes
7481	else
7482	  cat conftest.err >&5
7483	fi
7484	rm -rf libconftest.dylib*
7485	rm -f conftest.*
7486      fi
7487fi
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7489$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7490    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7491$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7492if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7493  $as_echo_n "(cached) " >&6
7494else
7495  lt_cv_ld_exported_symbols_list=no
7496      save_LDFLAGS=$LDFLAGS
7497      echo "_main" > conftest.sym
7498      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7499      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500/* end confdefs.h.  */
7501
7502int
7503main ()
7504{
7505
7506  ;
7507  return 0;
7508}
7509_ACEOF
7510if ac_fn_c_try_link "$LINENO"; then :
7511  lt_cv_ld_exported_symbols_list=yes
7512else
7513  lt_cv_ld_exported_symbols_list=no
7514fi
7515rm -f core conftest.err conftest.$ac_objext \
7516    conftest$ac_exeext conftest.$ac_ext
7517	LDFLAGS="$save_LDFLAGS"
7518
7519fi
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7521$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7522    case $host_os in
7523    rhapsody* | darwin1.[012])
7524      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7525    darwin1.*)
7526      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7527    darwin*) # darwin 5.x on
7528      # if running on 10.5 or later, the deployment target defaults
7529      # to the OS version, if on x86, and 10.4, the deployment
7530      # target defaults to 10.4. Don't you love it?
7531      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7532	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7533	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7534	10.[012]*)
7535	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7536	10.*)
7537	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7538      esac
7539    ;;
7540  esac
7541    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7542      _lt_dar_single_mod='$single_module'
7543    fi
7544    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7545      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7546    else
7547      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7548    fi
7549    if test "$DSYMUTIL" != ":"; then
7550      _lt_dsymutil='~$DSYMUTIL $lib || :'
7551    else
7552      _lt_dsymutil=
7553    fi
7554    ;;
7555  esac
7556
7557for ac_header in dlfcn.h
7558do :
7559  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7560"
7561if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7562  cat >>confdefs.h <<_ACEOF
7563#define HAVE_DLFCN_H 1
7564_ACEOF
7565
7566fi
7567
7568done
7569
7570
7571
7572# Set options
7573
7574
7575
7576        enable_dlopen=no
7577
7578
7579
7580            # Check whether --enable-shared was given.
7581if test "${enable_shared+set}" = set; then :
7582  enableval=$enable_shared; p=${PACKAGE-default}
7583    case $enableval in
7584    yes) enable_shared=yes ;;
7585    no) enable_shared=no ;;
7586    *)
7587      enable_shared=no
7588      # Look at the argument we got.  We use all the common list separators.
7589      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7590      for pkg in $enableval; do
7591	IFS="$lt_save_ifs"
7592	if test "X$pkg" = "X$p"; then
7593	  enable_shared=yes
7594	fi
7595      done
7596      IFS="$lt_save_ifs"
7597      ;;
7598    esac
7599else
7600  enable_shared=yes
7601fi
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611  # Check whether --enable-static was given.
7612if test "${enable_static+set}" = set; then :
7613  enableval=$enable_static; p=${PACKAGE-default}
7614    case $enableval in
7615    yes) enable_static=yes ;;
7616    no) enable_static=no ;;
7617    *)
7618     enable_static=no
7619      # Look at the argument we got.  We use all the common list separators.
7620      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7621      for pkg in $enableval; do
7622	IFS="$lt_save_ifs"
7623	if test "X$pkg" = "X$p"; then
7624	  enable_static=yes
7625	fi
7626      done
7627      IFS="$lt_save_ifs"
7628      ;;
7629    esac
7630else
7631  enable_static=yes
7632fi
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643# Check whether --with-pic was given.
7644if test "${with_pic+set}" = set; then :
7645  withval=$with_pic; pic_mode="$withval"
7646else
7647  pic_mode=default
7648fi
7649
7650
7651test -z "$pic_mode" && pic_mode=default
7652
7653
7654
7655
7656
7657
7658
7659  # Check whether --enable-fast-install was given.
7660if test "${enable_fast_install+set}" = set; then :
7661  enableval=$enable_fast_install; p=${PACKAGE-default}
7662    case $enableval in
7663    yes) enable_fast_install=yes ;;
7664    no) enable_fast_install=no ;;
7665    *)
7666      enable_fast_install=no
7667      # Look at the argument we got.  We use all the common list separators.
7668      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7669      for pkg in $enableval; do
7670	IFS="$lt_save_ifs"
7671	if test "X$pkg" = "X$p"; then
7672	  enable_fast_install=yes
7673	fi
7674      done
7675      IFS="$lt_save_ifs"
7676      ;;
7677    esac
7678else
7679  enable_fast_install=yes
7680fi
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692# This can be used to rebuild libtool when needed
7693LIBTOOL_DEPS="$ltmain"
7694
7695# Always use our own libtool.
7696LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722test -z "$LN_S" && LN_S="ln -s"
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737if test -n "${ZSH_VERSION+set}" ; then
7738   setopt NO_GLOB_SUBST
7739fi
7740
7741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7742$as_echo_n "checking for objdir... " >&6; }
7743if test "${lt_cv_objdir+set}" = set; then :
7744  $as_echo_n "(cached) " >&6
7745else
7746  rm -f .libs 2>/dev/null
7747mkdir .libs 2>/dev/null
7748if test -d .libs; then
7749  lt_cv_objdir=.libs
7750else
7751  # MS-DOS does not allow filenames that begin with a dot.
7752  lt_cv_objdir=_libs
7753fi
7754rmdir .libs 2>/dev/null
7755fi
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7757$as_echo "$lt_cv_objdir" >&6; }
7758objdir=$lt_cv_objdir
7759
7760
7761
7762
7763
7764cat >>confdefs.h <<_ACEOF
7765#define LT_OBJDIR "$lt_cv_objdir/"
7766_ACEOF
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784case $host_os in
7785aix3*)
7786  # AIX sometimes has problems with the GCC collect2 program.  For some
7787  # reason, if we set the COLLECT_NAMES environment variable, the problems
7788  # vanish in a puff of smoke.
7789  if test "X${COLLECT_NAMES+set}" != Xset; then
7790    COLLECT_NAMES=
7791    export COLLECT_NAMES
7792  fi
7793  ;;
7794esac
7795
7796# Sed substitution that helps us do robust quoting.  It backslashifies
7797# metacharacters that are still active within double-quoted strings.
7798sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7799
7800# Same as above, but do not quote variable references.
7801double_quote_subst='s/\(["`\\]\)/\\\1/g'
7802
7803# Sed substitution to delay expansion of an escaped shell variable in a
7804# double_quote_subst'ed string.
7805delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7806
7807# Sed substitution to delay expansion of an escaped single quote.
7808delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7809
7810# Sed substitution to avoid accidental globbing in evaled expressions
7811no_glob_subst='s/\*/\\\*/g'
7812
7813# Global variables:
7814ofile=libtool
7815can_build_shared=yes
7816
7817# All known linkers require a `.a' archive for static linking (except MSVC,
7818# which needs '.lib').
7819libext=a
7820
7821with_gnu_ld="$lt_cv_prog_gnu_ld"
7822
7823old_CC="$CC"
7824old_CFLAGS="$CFLAGS"
7825
7826# Set sane defaults for various variables
7827test -z "$CC" && CC=cc
7828test -z "$LTCC" && LTCC=$CC
7829test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7830test -z "$LD" && LD=ld
7831test -z "$ac_objext" && ac_objext=o
7832
7833for cc_temp in $compiler""; do
7834  case $cc_temp in
7835    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7836    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7837    \-*) ;;
7838    *) break;;
7839  esac
7840done
7841cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7842
7843
7844# Only perform the check for file, if the check method requires it
7845test -z "$MAGIC_CMD" && MAGIC_CMD=file
7846case $deplibs_check_method in
7847file_magic*)
7848  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7849    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7850$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7851if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7852  $as_echo_n "(cached) " >&6
7853else
7854  case $MAGIC_CMD in
7855[\\/*] |  ?:[\\/]*)
7856  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7857  ;;
7858*)
7859  lt_save_MAGIC_CMD="$MAGIC_CMD"
7860  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7861  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7862  for ac_dir in $ac_dummy; do
7863    IFS="$lt_save_ifs"
7864    test -z "$ac_dir" && ac_dir=.
7865    if test -f $ac_dir/${ac_tool_prefix}file; then
7866      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7867      if test -n "$file_magic_test_file"; then
7868	case $deplibs_check_method in
7869	"file_magic "*)
7870	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7871	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7872	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7873	    $EGREP "$file_magic_regex" > /dev/null; then
7874	    :
7875	  else
7876	    cat <<_LT_EOF 1>&2
7877
7878*** Warning: the command libtool uses to detect shared libraries,
7879*** $file_magic_cmd, produces output that libtool cannot recognize.
7880*** The result is that libtool may fail to recognize shared libraries
7881*** as such.  This will affect the creation of libtool libraries that
7882*** depend on shared libraries, but programs linked with such libtool
7883*** libraries will work regardless of this problem.  Nevertheless, you
7884*** may want to report the problem to your system manager and/or to
7885*** bug-libtool@gnu.org
7886
7887_LT_EOF
7888	  fi ;;
7889	esac
7890      fi
7891      break
7892    fi
7893  done
7894  IFS="$lt_save_ifs"
7895  MAGIC_CMD="$lt_save_MAGIC_CMD"
7896  ;;
7897esac
7898fi
7899
7900MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7901if test -n "$MAGIC_CMD"; then
7902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7903$as_echo "$MAGIC_CMD" >&6; }
7904else
7905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906$as_echo "no" >&6; }
7907fi
7908
7909
7910
7911
7912
7913if test -z "$lt_cv_path_MAGIC_CMD"; then
7914  if test -n "$ac_tool_prefix"; then
7915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7916$as_echo_n "checking for file... " >&6; }
7917if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7918  $as_echo_n "(cached) " >&6
7919else
7920  case $MAGIC_CMD in
7921[\\/*] |  ?:[\\/]*)
7922  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7923  ;;
7924*)
7925  lt_save_MAGIC_CMD="$MAGIC_CMD"
7926  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7927  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7928  for ac_dir in $ac_dummy; do
7929    IFS="$lt_save_ifs"
7930    test -z "$ac_dir" && ac_dir=.
7931    if test -f $ac_dir/file; then
7932      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7933      if test -n "$file_magic_test_file"; then
7934	case $deplibs_check_method in
7935	"file_magic "*)
7936	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7937	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7938	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7939	    $EGREP "$file_magic_regex" > /dev/null; then
7940	    :
7941	  else
7942	    cat <<_LT_EOF 1>&2
7943
7944*** Warning: the command libtool uses to detect shared libraries,
7945*** $file_magic_cmd, produces output that libtool cannot recognize.
7946*** The result is that libtool may fail to recognize shared libraries
7947*** as such.  This will affect the creation of libtool libraries that
7948*** depend on shared libraries, but programs linked with such libtool
7949*** libraries will work regardless of this problem.  Nevertheless, you
7950*** may want to report the problem to your system manager and/or to
7951*** bug-libtool@gnu.org
7952
7953_LT_EOF
7954	  fi ;;
7955	esac
7956      fi
7957      break
7958    fi
7959  done
7960  IFS="$lt_save_ifs"
7961  MAGIC_CMD="$lt_save_MAGIC_CMD"
7962  ;;
7963esac
7964fi
7965
7966MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7967if test -n "$MAGIC_CMD"; then
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7969$as_echo "$MAGIC_CMD" >&6; }
7970else
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972$as_echo "no" >&6; }
7973fi
7974
7975
7976  else
7977    MAGIC_CMD=:
7978  fi
7979fi
7980
7981  fi
7982  ;;
7983esac
7984
7985# Use C for the default configuration in the libtool script
7986
7987lt_save_CC="$CC"
7988ac_ext=c
7989ac_cpp='$CPP $CPPFLAGS'
7990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7992ac_compiler_gnu=$ac_cv_c_compiler_gnu
7993
7994
7995# Source file extension for C test sources.
7996ac_ext=c
7997
7998# Object file extension for compiled C test sources.
7999objext=o
8000objext=$objext
8001
8002# Code to be used in simple compile tests
8003lt_simple_compile_test_code="int some_variable = 0;"
8004
8005# Code to be used in simple link tests
8006lt_simple_link_test_code='int main(){return(0);}'
8007
8008
8009
8010
8011
8012
8013
8014# If no C compiler was specified, use CC.
8015LTCC=${LTCC-"$CC"}
8016
8017# If no C compiler flags were specified, use CFLAGS.
8018LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8019
8020# Allow CC to be a program name with arguments.
8021compiler=$CC
8022
8023# Save the default compiler, since it gets overwritten when the other
8024# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8025compiler_DEFAULT=$CC
8026
8027# save warnings/boilerplate of simple test code
8028ac_outfile=conftest.$ac_objext
8029echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8030eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8031_lt_compiler_boilerplate=`cat conftest.err`
8032$RM conftest*
8033
8034ac_outfile=conftest.$ac_objext
8035echo "$lt_simple_link_test_code" >conftest.$ac_ext
8036eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8037_lt_linker_boilerplate=`cat conftest.err`
8038$RM -r conftest*
8039
8040
8041## CAVEAT EMPTOR:
8042## There is no encapsulation within the following macros, do not change
8043## the running order or otherwise move them around unless you know exactly
8044## what you are doing...
8045if test -n "$compiler"; then
8046
8047lt_prog_compiler_no_builtin_flag=
8048
8049if test "$GCC" = yes; then
8050  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8051
8052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8053$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8054if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8055  $as_echo_n "(cached) " >&6
8056else
8057  lt_cv_prog_compiler_rtti_exceptions=no
8058   ac_outfile=conftest.$ac_objext
8059   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8060   lt_compiler_flag="-fno-rtti -fno-exceptions"
8061   # Insert the option either (1) after the last *FLAGS variable, or
8062   # (2) before a word containing "conftest.", or (3) at the end.
8063   # Note that $ac_compile itself does not contain backslashes and begins
8064   # with a dollar sign (not a hyphen), so the echo should work correctly.
8065   # The option is referenced via a variable to avoid confusing sed.
8066   lt_compile=`echo "$ac_compile" | $SED \
8067   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8068   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8069   -e 's:$: $lt_compiler_flag:'`
8070   (eval echo "\"\$as_me:8070: $lt_compile\"" >&5)
8071   (eval "$lt_compile" 2>conftest.err)
8072   ac_status=$?
8073   cat conftest.err >&5
8074   echo "$as_me:8074: \$? = $ac_status" >&5
8075   if (exit $ac_status) && test -s "$ac_outfile"; then
8076     # The compiler can only warn and ignore the option if not recognized
8077     # So say no if there are warnings other than the usual output.
8078     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8079     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8080     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8081       lt_cv_prog_compiler_rtti_exceptions=yes
8082     fi
8083   fi
8084   $RM conftest*
8085
8086fi
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8088$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8089
8090if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8091    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8092else
8093    :
8094fi
8095
8096fi
8097
8098
8099
8100
8101
8102
8103  lt_prog_compiler_wl=
8104lt_prog_compiler_pic=
8105lt_prog_compiler_static=
8106
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8108$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8109
8110  if test "$GCC" = yes; then
8111    lt_prog_compiler_wl='-Wl,'
8112    lt_prog_compiler_static='-static'
8113
8114    case $host_os in
8115      aix*)
8116      # All AIX code is PIC.
8117      if test "$host_cpu" = ia64; then
8118	# AIX 5 now supports IA64 processor
8119	lt_prog_compiler_static='-Bstatic'
8120      fi
8121      ;;
8122
8123    amigaos*)
8124      case $host_cpu in
8125      powerpc)
8126            # see comment about AmigaOS4 .so support
8127            lt_prog_compiler_pic='-fPIC'
8128        ;;
8129      m68k)
8130            # FIXME: we need at least 68020 code to build shared libraries, but
8131            # adding the `-m68020' flag to GCC prevents building anything better,
8132            # like `-m68040'.
8133            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8134        ;;
8135      esac
8136      ;;
8137
8138    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8139      # PIC is the default for these OSes.
8140      ;;
8141
8142    mingw* | cygwin* | pw32* | os2* | cegcc*)
8143      # This hack is so that the source file can tell whether it is being
8144      # built for inclusion in a dll (and should export symbols for example).
8145      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8146      # (--disable-auto-import) libraries
8147      lt_prog_compiler_pic='-DDLL_EXPORT'
8148      ;;
8149
8150    darwin* | rhapsody*)
8151      # PIC is the default on this platform
8152      # Common symbols not allowed in MH_DYLIB files
8153      lt_prog_compiler_pic='-fno-common'
8154      ;;
8155
8156    hpux*)
8157      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8158      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8159      # sets the default TLS model and affects inlining.
8160      case $host_cpu in
8161      hppa*64*)
8162	# +Z the default
8163	;;
8164      *)
8165	lt_prog_compiler_pic='-fPIC'
8166	;;
8167      esac
8168      ;;
8169
8170    interix[3-9]*)
8171      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8172      # Instead, we relocate shared libraries at runtime.
8173      ;;
8174
8175    msdosdjgpp*)
8176      # Just because we use GCC doesn't mean we suddenly get shared libraries
8177      # on systems that don't support them.
8178      lt_prog_compiler_can_build_shared=no
8179      enable_shared=no
8180      ;;
8181
8182    *nto* | *qnx*)
8183      # QNX uses GNU C++, but need to define -shared option too, otherwise
8184      # it will coredump.
8185      lt_prog_compiler_pic='-fPIC -shared'
8186      ;;
8187
8188    sysv4*MP*)
8189      if test -d /usr/nec; then
8190	lt_prog_compiler_pic=-Kconform_pic
8191      fi
8192      ;;
8193
8194    *)
8195      lt_prog_compiler_pic='-fPIC'
8196      ;;
8197    esac
8198  else
8199    # PORTME Check for flag to pass linker flags through the system compiler.
8200    case $host_os in
8201    aix*)
8202      lt_prog_compiler_wl='-Wl,'
8203      if test "$host_cpu" = ia64; then
8204	# AIX 5 now supports IA64 processor
8205	lt_prog_compiler_static='-Bstatic'
8206      else
8207	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8208      fi
8209      ;;
8210
8211    mingw* | cygwin* | pw32* | os2* | cegcc*)
8212      # This hack is so that the source file can tell whether it is being
8213      # built for inclusion in a dll (and should export symbols for example).
8214      lt_prog_compiler_pic='-DDLL_EXPORT'
8215      ;;
8216
8217    hpux9* | hpux10* | hpux11*)
8218      lt_prog_compiler_wl='-Wl,'
8219      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8220      # not for PA HP-UX.
8221      case $host_cpu in
8222      hppa*64*|ia64*)
8223	# +Z the default
8224	;;
8225      *)
8226	lt_prog_compiler_pic='+Z'
8227	;;
8228      esac
8229      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8230      lt_prog_compiler_static='${wl}-a ${wl}archive'
8231      ;;
8232
8233    irix5* | irix6* | nonstopux*)
8234      lt_prog_compiler_wl='-Wl,'
8235      # PIC (with -KPIC) is the default.
8236      lt_prog_compiler_static='-non_shared'
8237      ;;
8238
8239    linux* | k*bsd*-gnu)
8240      case $cc_basename in
8241      # old Intel for x86_64 which still supported -KPIC.
8242      ecc*)
8243	lt_prog_compiler_wl='-Wl,'
8244	lt_prog_compiler_pic='-KPIC'
8245	lt_prog_compiler_static='-static'
8246        ;;
8247      # icc used to be incompatible with GCC.
8248      # ICC 10 doesn't accept -KPIC any more.
8249      icc* | ifort*)
8250	lt_prog_compiler_wl='-Wl,'
8251	lt_prog_compiler_pic='-fPIC'
8252	lt_prog_compiler_static='-static'
8253        ;;
8254      # Lahey Fortran 8.1.
8255      lf95*)
8256	lt_prog_compiler_wl='-Wl,'
8257	lt_prog_compiler_pic='--shared'
8258	lt_prog_compiler_static='--static'
8259	;;
8260      pgcc* | pgf77* | pgf90* | pgf95*)
8261        # Portland Group compilers (*not* the Pentium gcc compiler,
8262	# which looks to be a dead project)
8263	lt_prog_compiler_wl='-Wl,'
8264	lt_prog_compiler_pic='-fpic'
8265	lt_prog_compiler_static='-Bstatic'
8266        ;;
8267      ccc*)
8268        lt_prog_compiler_wl='-Wl,'
8269        # All Alpha code is PIC.
8270        lt_prog_compiler_static='-non_shared'
8271        ;;
8272      xl*)
8273	# IBM XL C 8.0/Fortran 10.1 on PPC
8274	lt_prog_compiler_wl='-Wl,'
8275	lt_prog_compiler_pic='-qpic'
8276	lt_prog_compiler_static='-qstaticlink'
8277	;;
8278      *)
8279	case `$CC -V 2>&1 | sed 5q` in
8280	*Sun\ C*)
8281	  # Sun C 5.9
8282	  lt_prog_compiler_pic='-KPIC'
8283	  lt_prog_compiler_static='-Bstatic'
8284	  lt_prog_compiler_wl='-Wl,'
8285	  ;;
8286	*Sun\ F*)
8287	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8288	  lt_prog_compiler_pic='-KPIC'
8289	  lt_prog_compiler_static='-Bstatic'
8290	  lt_prog_compiler_wl=''
8291	  ;;
8292	esac
8293	;;
8294      esac
8295      ;;
8296
8297    newsos6)
8298      lt_prog_compiler_pic='-KPIC'
8299      lt_prog_compiler_static='-Bstatic'
8300      ;;
8301
8302    *nto* | *qnx*)
8303      # QNX uses GNU C++, but need to define -shared option too, otherwise
8304      # it will coredump.
8305      lt_prog_compiler_pic='-fPIC -shared'
8306      ;;
8307
8308    osf3* | osf4* | osf5*)
8309      lt_prog_compiler_wl='-Wl,'
8310      # All OSF/1 code is PIC.
8311      lt_prog_compiler_static='-non_shared'
8312      ;;
8313
8314    rdos*)
8315      lt_prog_compiler_static='-non_shared'
8316      ;;
8317
8318    solaris*)
8319      lt_prog_compiler_pic='-KPIC'
8320      lt_prog_compiler_static='-Bstatic'
8321      case $cc_basename in
8322      f77* | f90* | f95*)
8323	lt_prog_compiler_wl='-Qoption ld ';;
8324      *)
8325	lt_prog_compiler_wl='-Wl,';;
8326      esac
8327      ;;
8328
8329    sunos4*)
8330      lt_prog_compiler_wl='-Qoption ld '
8331      lt_prog_compiler_pic='-PIC'
8332      lt_prog_compiler_static='-Bstatic'
8333      ;;
8334
8335    sysv4 | sysv4.2uw2* | sysv4.3*)
8336      lt_prog_compiler_wl='-Wl,'
8337      lt_prog_compiler_pic='-KPIC'
8338      lt_prog_compiler_static='-Bstatic'
8339      ;;
8340
8341    sysv4*MP*)
8342      if test -d /usr/nec ;then
8343	lt_prog_compiler_pic='-Kconform_pic'
8344	lt_prog_compiler_static='-Bstatic'
8345      fi
8346      ;;
8347
8348    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8349      lt_prog_compiler_wl='-Wl,'
8350      lt_prog_compiler_pic='-KPIC'
8351      lt_prog_compiler_static='-Bstatic'
8352      ;;
8353
8354    unicos*)
8355      lt_prog_compiler_wl='-Wl,'
8356      lt_prog_compiler_can_build_shared=no
8357      ;;
8358
8359    uts4*)
8360      lt_prog_compiler_pic='-pic'
8361      lt_prog_compiler_static='-Bstatic'
8362      ;;
8363
8364    *)
8365      lt_prog_compiler_can_build_shared=no
8366      ;;
8367    esac
8368  fi
8369
8370case $host_os in
8371  # For platforms which do not support PIC, -DPIC is meaningless:
8372  *djgpp*)
8373    lt_prog_compiler_pic=
8374    ;;
8375  *)
8376    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8377    ;;
8378esac
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8380$as_echo "$lt_prog_compiler_pic" >&6; }
8381
8382
8383
8384
8385
8386
8387#
8388# Check to make sure the PIC flag actually works.
8389#
8390if test -n "$lt_prog_compiler_pic"; then
8391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8392$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8393if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8394  $as_echo_n "(cached) " >&6
8395else
8396  lt_cv_prog_compiler_pic_works=no
8397   ac_outfile=conftest.$ac_objext
8398   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8399   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8400   # Insert the option either (1) after the last *FLAGS variable, or
8401   # (2) before a word containing "conftest.", or (3) at the end.
8402   # Note that $ac_compile itself does not contain backslashes and begins
8403   # with a dollar sign (not a hyphen), so the echo should work correctly.
8404   # The option is referenced via a variable to avoid confusing sed.
8405   lt_compile=`echo "$ac_compile" | $SED \
8406   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8407   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8408   -e 's:$: $lt_compiler_flag:'`
8409   (eval echo "\"\$as_me:8409: $lt_compile\"" >&5)
8410   (eval "$lt_compile" 2>conftest.err)
8411   ac_status=$?
8412   cat conftest.err >&5
8413   echo "$as_me:8413: \$? = $ac_status" >&5
8414   if (exit $ac_status) && test -s "$ac_outfile"; then
8415     # The compiler can only warn and ignore the option if not recognized
8416     # So say no if there are warnings other than the usual output.
8417     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8418     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8419     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8420       lt_cv_prog_compiler_pic_works=yes
8421     fi
8422   fi
8423   $RM conftest*
8424
8425fi
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8427$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8428
8429if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8430    case $lt_prog_compiler_pic in
8431     "" | " "*) ;;
8432     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8433     esac
8434else
8435    lt_prog_compiler_pic=
8436     lt_prog_compiler_can_build_shared=no
8437fi
8438
8439fi
8440
8441
8442
8443
8444
8445
8446#
8447# Check to make sure the static flag actually works.
8448#
8449wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8451$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8452if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8453  $as_echo_n "(cached) " >&6
8454else
8455  lt_cv_prog_compiler_static_works=no
8456   save_LDFLAGS="$LDFLAGS"
8457   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8458   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8459   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8460     # The linker can only warn and ignore the option if not recognized
8461     # So say no if there are warnings
8462     if test -s conftest.err; then
8463       # Append any errors to the config.log.
8464       cat conftest.err 1>&5
8465       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8466       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8467       if diff conftest.exp conftest.er2 >/dev/null; then
8468         lt_cv_prog_compiler_static_works=yes
8469       fi
8470     else
8471       lt_cv_prog_compiler_static_works=yes
8472     fi
8473   fi
8474   $RM -r conftest*
8475   LDFLAGS="$save_LDFLAGS"
8476
8477fi
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8479$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8480
8481if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8482    :
8483else
8484    lt_prog_compiler_static=
8485fi
8486
8487
8488
8489
8490
8491
8492
8493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8494$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8495if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8496  $as_echo_n "(cached) " >&6
8497else
8498  lt_cv_prog_compiler_c_o=no
8499   $RM -r conftest 2>/dev/null
8500   mkdir conftest
8501   cd conftest
8502   mkdir out
8503   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8504
8505   lt_compiler_flag="-o out/conftest2.$ac_objext"
8506   # Insert the option either (1) after the last *FLAGS variable, or
8507   # (2) before a word containing "conftest.", or (3) at the end.
8508   # Note that $ac_compile itself does not contain backslashes and begins
8509   # with a dollar sign (not a hyphen), so the echo should work correctly.
8510   lt_compile=`echo "$ac_compile" | $SED \
8511   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8512   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8513   -e 's:$: $lt_compiler_flag:'`
8514   (eval echo "\"\$as_me:8514: $lt_compile\"" >&5)
8515   (eval "$lt_compile" 2>out/conftest.err)
8516   ac_status=$?
8517   cat out/conftest.err >&5
8518   echo "$as_me:8518: \$? = $ac_status" >&5
8519   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8520   then
8521     # The compiler can only warn and ignore the option if not recognized
8522     # So say no if there are warnings
8523     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8524     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8525     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8526       lt_cv_prog_compiler_c_o=yes
8527     fi
8528   fi
8529   chmod u+w . 2>&5
8530   $RM conftest*
8531   # SGI C++ compiler will create directory out/ii_files/ for
8532   # template instantiation
8533   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8534   $RM out/* && rmdir out
8535   cd ..
8536   $RM -r conftest
8537   $RM conftest*
8538
8539fi
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8541$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8542
8543
8544
8545
8546
8547
8548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8549$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8550if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8551  $as_echo_n "(cached) " >&6
8552else
8553  lt_cv_prog_compiler_c_o=no
8554   $RM -r conftest 2>/dev/null
8555   mkdir conftest
8556   cd conftest
8557   mkdir out
8558   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8559
8560   lt_compiler_flag="-o out/conftest2.$ac_objext"
8561   # Insert the option either (1) after the last *FLAGS variable, or
8562   # (2) before a word containing "conftest.", or (3) at the end.
8563   # Note that $ac_compile itself does not contain backslashes and begins
8564   # with a dollar sign (not a hyphen), so the echo should work correctly.
8565   lt_compile=`echo "$ac_compile" | $SED \
8566   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8567   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8568   -e 's:$: $lt_compiler_flag:'`
8569   (eval echo "\"\$as_me:8569: $lt_compile\"" >&5)
8570   (eval "$lt_compile" 2>out/conftest.err)
8571   ac_status=$?
8572   cat out/conftest.err >&5
8573   echo "$as_me:8573: \$? = $ac_status" >&5
8574   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8575   then
8576     # The compiler can only warn and ignore the option if not recognized
8577     # So say no if there are warnings
8578     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8579     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8580     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8581       lt_cv_prog_compiler_c_o=yes
8582     fi
8583   fi
8584   chmod u+w . 2>&5
8585   $RM conftest*
8586   # SGI C++ compiler will create directory out/ii_files/ for
8587   # template instantiation
8588   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8589   $RM out/* && rmdir out
8590   cd ..
8591   $RM -r conftest
8592   $RM conftest*
8593
8594fi
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8596$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8597
8598
8599
8600
8601hard_links="nottested"
8602if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8603  # do not overwrite the value of need_locks provided by the user
8604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8605$as_echo_n "checking if we can lock with hard links... " >&6; }
8606  hard_links=yes
8607  $RM conftest*
8608  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8609  touch conftest.a
8610  ln conftest.a conftest.b 2>&5 || hard_links=no
8611  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8613$as_echo "$hard_links" >&6; }
8614  if test "$hard_links" = no; then
8615    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8616$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8617    need_locks=warn
8618  fi
8619else
8620  need_locks=no
8621fi
8622
8623
8624
8625
8626
8627
8628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8629$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8630
8631  runpath_var=
8632  allow_undefined_flag=
8633  always_export_symbols=no
8634  archive_cmds=
8635  archive_expsym_cmds=
8636  compiler_needs_object=no
8637  enable_shared_with_static_runtimes=no
8638  export_dynamic_flag_spec=
8639  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8640  hardcode_automatic=no
8641  hardcode_direct=no
8642  hardcode_direct_absolute=no
8643  hardcode_libdir_flag_spec=
8644  hardcode_libdir_flag_spec_ld=
8645  hardcode_libdir_separator=
8646  hardcode_minus_L=no
8647  hardcode_shlibpath_var=unsupported
8648  inherit_rpath=no
8649  link_all_deplibs=unknown
8650  module_cmds=
8651  module_expsym_cmds=
8652  old_archive_from_new_cmds=
8653  old_archive_from_expsyms_cmds=
8654  thread_safe_flag_spec=
8655  whole_archive_flag_spec=
8656  # include_expsyms should be a list of space-separated symbols to be *always*
8657  # included in the symbol list
8658  include_expsyms=
8659  # exclude_expsyms can be an extended regexp of symbols to exclude
8660  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8661  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8662  # as well as any symbol that contains `d'.
8663  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8664  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8665  # platforms (ab)use it in PIC code, but their linkers get confused if
8666  # the symbol is explicitly referenced.  Since portable code cannot
8667  # rely on this symbol name, it's probably fine to never include it in
8668  # preloaded symbol tables.
8669  # Exclude shared library initialization/finalization symbols.
8670  extract_expsyms_cmds=
8671
8672  case $host_os in
8673  cygwin* | mingw* | pw32* | cegcc*)
8674    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8675    # When not using gcc, we currently assume that we are using
8676    # Microsoft Visual C++.
8677    if test "$GCC" != yes; then
8678      with_gnu_ld=no
8679    fi
8680    ;;
8681  interix*)
8682    # we just hope/assume this is gcc and not c89 (= MSVC++)
8683    with_gnu_ld=yes
8684    ;;
8685  openbsd*)
8686    with_gnu_ld=no
8687    ;;
8688  esac
8689
8690  ld_shlibs=yes
8691  if test "$with_gnu_ld" = yes; then
8692    # If archive_cmds runs LD, not CC, wlarc should be empty
8693    wlarc='${wl}'
8694
8695    # Set some defaults for GNU ld with shared library support. These
8696    # are reset later if shared libraries are not supported. Putting them
8697    # here allows them to be overridden if necessary.
8698    runpath_var=LD_RUN_PATH
8699    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700    export_dynamic_flag_spec='${wl}--export-dynamic'
8701    # ancient GNU ld didn't support --whole-archive et. al.
8702    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8703      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8704    else
8705      whole_archive_flag_spec=
8706    fi
8707    supports_anon_versioning=no
8708    case `$LD -v 2>&1` in
8709      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8710      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8711      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8712      *\ 2.11.*) ;; # other 2.11 versions
8713      *) supports_anon_versioning=yes ;;
8714    esac
8715
8716    # See if GNU ld supports shared libraries.
8717    case $host_os in
8718    aix[3-9]*)
8719      # On AIX/PPC, the GNU linker is very broken
8720      if test "$host_cpu" != ia64; then
8721	ld_shlibs=no
8722	cat <<_LT_EOF 1>&2
8723
8724*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8725*** to be unable to reliably create shared libraries on AIX.
8726*** Therefore, libtool is disabling shared libraries support.  If you
8727*** really care for shared libraries, you may want to modify your PATH
8728*** so that a non-GNU linker is found, and then restart.
8729
8730_LT_EOF
8731      fi
8732      ;;
8733
8734    amigaos*)
8735      case $host_cpu in
8736      powerpc)
8737            # see comment about AmigaOS4 .so support
8738            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739            archive_expsym_cmds=''
8740        ;;
8741      m68k)
8742            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)'
8743            hardcode_libdir_flag_spec='-L$libdir'
8744            hardcode_minus_L=yes
8745        ;;
8746      esac
8747      ;;
8748
8749    beos*)
8750      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8751	allow_undefined_flag=unsupported
8752	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8753	# support --undefined.  This deserves some investigation.  FIXME
8754	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8755      else
8756	ld_shlibs=no
8757      fi
8758      ;;
8759
8760    cygwin* | mingw* | pw32* | cegcc*)
8761      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8762      # as there is no search path for DLLs.
8763      hardcode_libdir_flag_spec='-L$libdir'
8764      allow_undefined_flag=unsupported
8765      always_export_symbols=no
8766      enable_shared_with_static_runtimes=yes
8767      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8768
8769      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8770        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8771	# If the export-symbols file already is a .def file (1st line
8772	# is EXPORTS), use it as is; otherwise, prepend...
8773	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8774	  cp $export_symbols $output_objdir/$soname.def;
8775	else
8776	  echo EXPORTS > $output_objdir/$soname.def;
8777	  cat $export_symbols >> $output_objdir/$soname.def;
8778	fi~
8779	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8780      else
8781	ld_shlibs=no
8782      fi
8783      ;;
8784
8785    interix[3-9]*)
8786      hardcode_direct=no
8787      hardcode_shlibpath_var=no
8788      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8789      export_dynamic_flag_spec='${wl}-E'
8790      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8791      # Instead, shared libraries are loaded at an image base (0x10000000 by
8792      # default) and relocated if they conflict, which is a slow very memory
8793      # consuming and fragmenting process.  To avoid this, we pick a random,
8794      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8795      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8796      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8797      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'
8798      ;;
8799
8800    gnu* | linux* | tpf* | k*bsd*-gnu)
8801      tmp_diet=no
8802      if test "$host_os" = linux-dietlibc; then
8803	case $cc_basename in
8804	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8805	esac
8806      fi
8807      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8808	 && test "$tmp_diet" = no
8809      then
8810	tmp_addflag=
8811	tmp_sharedflag='-shared'
8812	case $cc_basename,$host_cpu in
8813        pgcc*)				# Portland Group C compiler
8814	  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'
8815	  tmp_addflag=' $pic_flag'
8816	  ;;
8817	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8818	  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'
8819	  tmp_addflag=' $pic_flag -Mnomain' ;;
8820	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8821	  tmp_addflag=' -i_dynamic' ;;
8822	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8823	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8824	ifc* | ifort*)			# Intel Fortran compiler
8825	  tmp_addflag=' -nofor_main' ;;
8826	lf95*)				# Lahey Fortran 8.1
8827	  whole_archive_flag_spec=
8828	  tmp_sharedflag='--shared' ;;
8829	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8830	  tmp_sharedflag='-qmkshrobj'
8831	  tmp_addflag= ;;
8832	esac
8833	case `$CC -V 2>&1 | sed 5q` in
8834	*Sun\ C*)			# Sun C 5.9
8835	  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'
8836	  compiler_needs_object=yes
8837	  tmp_sharedflag='-G' ;;
8838	*Sun\ F*)			# Sun Fortran 8.3
8839	  tmp_sharedflag='-G' ;;
8840	esac
8841	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8842
8843        if test "x$supports_anon_versioning" = xyes; then
8844          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8845	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8846	    echo "local: *; };" >> $output_objdir/$libname.ver~
8847	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8848        fi
8849
8850	case $cc_basename in
8851	xlf*)
8852	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8853	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8854	  hardcode_libdir_flag_spec=
8855	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8856	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8857	  if test "x$supports_anon_versioning" = xyes; then
8858	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8859	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8860	      echo "local: *; };" >> $output_objdir/$libname.ver~
8861	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8862	  fi
8863	  ;;
8864	esac
8865      else
8866        ld_shlibs=no
8867      fi
8868      ;;
8869
8870    netbsd*)
8871      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8872	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8873	wlarc=
8874      else
8875	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8876	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8877      fi
8878      ;;
8879
8880    solaris*)
8881      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8882	ld_shlibs=no
8883	cat <<_LT_EOF 1>&2
8884
8885*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8886*** create shared libraries on Solaris systems.  Therefore, libtool
8887*** is disabling shared libraries support.  We urge you to upgrade GNU
8888*** binutils to release 2.9.1 or newer.  Another option is to modify
8889*** your PATH or compiler configuration so that the native linker is
8890*** used, and then restart.
8891
8892_LT_EOF
8893      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8894	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8895	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8896      else
8897	ld_shlibs=no
8898      fi
8899      ;;
8900
8901    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8902      case `$LD -v 2>&1` in
8903        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8904	ld_shlibs=no
8905	cat <<_LT_EOF 1>&2
8906
8907*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8908*** reliably create shared libraries on SCO systems.  Therefore, libtool
8909*** is disabling shared libraries support.  We urge you to upgrade GNU
8910*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8911*** your PATH or compiler configuration so that the native linker is
8912*** used, and then restart.
8913
8914_LT_EOF
8915	;;
8916	*)
8917	  # For security reasons, it is highly recommended that you always
8918	  # use absolute paths for naming shared libraries, and exclude the
8919	  # DT_RUNPATH tag from executables and libraries.  But doing so
8920	  # requires that you compile everything twice, which is a pain.
8921	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8922	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8925	  else
8926	    ld_shlibs=no
8927	  fi
8928	;;
8929      esac
8930      ;;
8931
8932    sunos4*)
8933      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8934      wlarc=
8935      hardcode_direct=yes
8936      hardcode_shlibpath_var=no
8937      ;;
8938
8939    *)
8940      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8941	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8942	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8943      else
8944	ld_shlibs=no
8945      fi
8946      ;;
8947    esac
8948
8949    if test "$ld_shlibs" = no; then
8950      runpath_var=
8951      hardcode_libdir_flag_spec=
8952      export_dynamic_flag_spec=
8953      whole_archive_flag_spec=
8954    fi
8955  else
8956    # PORTME fill in a description of your system's linker (not GNU ld)
8957    case $host_os in
8958    aix3*)
8959      allow_undefined_flag=unsupported
8960      always_export_symbols=yes
8961      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'
8962      # Note: this linker hardcodes the directories in LIBPATH if there
8963      # are no directories specified by -L.
8964      hardcode_minus_L=yes
8965      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8966	# Neither direct hardcoding nor static linking is supported with a
8967	# broken collect2.
8968	hardcode_direct=unsupported
8969      fi
8970      ;;
8971
8972    aix[4-9]*)
8973      if test "$host_cpu" = ia64; then
8974	# On IA64, the linker does run time linking by default, so we don't
8975	# have to do anything special.
8976	aix_use_runtimelinking=no
8977	exp_sym_flag='-Bexport'
8978	no_entry_flag=""
8979      else
8980	# If we're using GNU nm, then we don't want the "-C" option.
8981	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8982	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8983	  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'
8984	else
8985	  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'
8986	fi
8987	aix_use_runtimelinking=no
8988
8989	# Test if we are trying to use run time linking or normal
8990	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8991	# need to do runtime linking.
8992	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8993	  for ld_flag in $LDFLAGS; do
8994	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8995	    aix_use_runtimelinking=yes
8996	    break
8997	  fi
8998	  done
8999	  ;;
9000	esac
9001
9002	exp_sym_flag='-bexport'
9003	no_entry_flag='-bnoentry'
9004      fi
9005
9006      # When large executables or shared objects are built, AIX ld can
9007      # have problems creating the table of contents.  If linking a library
9008      # or program results in "error TOC overflow" add -mminimal-toc to
9009      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9010      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9011
9012      archive_cmds=''
9013      hardcode_direct=yes
9014      hardcode_direct_absolute=yes
9015      hardcode_libdir_separator=':'
9016      link_all_deplibs=yes
9017      file_list_spec='${wl}-f,'
9018
9019      if test "$GCC" = yes; then
9020	case $host_os in aix4.[012]|aix4.[012].*)
9021	# We only want to do this on AIX 4.2 and lower, the check
9022	# below for broken collect2 doesn't work under 4.3+
9023	  collect2name=`${CC} -print-prog-name=collect2`
9024	  if test -f "$collect2name" &&
9025	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9026	  then
9027	  # We have reworked collect2
9028	  :
9029	  else
9030	  # We have old collect2
9031	  hardcode_direct=unsupported
9032	  # It fails to find uninstalled libraries when the uninstalled
9033	  # path is not listed in the libpath.  Setting hardcode_minus_L
9034	  # to unsupported forces relinking
9035	  hardcode_minus_L=yes
9036	  hardcode_libdir_flag_spec='-L$libdir'
9037	  hardcode_libdir_separator=
9038	  fi
9039	  ;;
9040	esac
9041	shared_flag='-shared'
9042	if test "$aix_use_runtimelinking" = yes; then
9043	  shared_flag="$shared_flag "'${wl}-G'
9044	fi
9045      else
9046	# not using gcc
9047	if test "$host_cpu" = ia64; then
9048	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9049	# chokes on -Wl,-G. The following line is correct:
9050	  shared_flag='-G'
9051	else
9052	  if test "$aix_use_runtimelinking" = yes; then
9053	    shared_flag='${wl}-G'
9054	  else
9055	    shared_flag='${wl}-bM:SRE'
9056	  fi
9057	fi
9058      fi
9059
9060      export_dynamic_flag_spec='${wl}-bexpall'
9061      # It seems that -bexpall does not export symbols beginning with
9062      # underscore (_), so it is better to generate a list of symbols to export.
9063      always_export_symbols=yes
9064      if test "$aix_use_runtimelinking" = yes; then
9065	# Warning - without using the other runtime loading flags (-brtl),
9066	# -berok will link without error, but may produce a broken library.
9067	allow_undefined_flag='-berok'
9068        # Determine the default libpath from the value encoded in an
9069        # empty executable.
9070        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071/* end confdefs.h.  */
9072
9073int
9074main ()
9075{
9076
9077  ;
9078  return 0;
9079}
9080_ACEOF
9081if ac_fn_c_try_link "$LINENO"; then :
9082
9083lt_aix_libpath_sed='
9084    /Import File Strings/,/^$/ {
9085	/^0/ {
9086	    s/^0  *\(.*\)$/\1/
9087	    p
9088	}
9089    }'
9090aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9091# Check for a 64-bit object if we didn't find anything.
9092if test -z "$aix_libpath"; then
9093  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9094fi
9095fi
9096rm -f core conftest.err conftest.$ac_objext \
9097    conftest$ac_exeext conftest.$ac_ext
9098if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9099
9100        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9101        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"
9102      else
9103	if test "$host_cpu" = ia64; then
9104	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9105	  allow_undefined_flag="-z nodefs"
9106	  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"
9107	else
9108	 # Determine the default libpath from the value encoded in an
9109	 # empty executable.
9110	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111/* end confdefs.h.  */
9112
9113int
9114main ()
9115{
9116
9117  ;
9118  return 0;
9119}
9120_ACEOF
9121if ac_fn_c_try_link "$LINENO"; then :
9122
9123lt_aix_libpath_sed='
9124    /Import File Strings/,/^$/ {
9125	/^0/ {
9126	    s/^0  *\(.*\)$/\1/
9127	    p
9128	}
9129    }'
9130aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9131# Check for a 64-bit object if we didn't find anything.
9132if test -z "$aix_libpath"; then
9133  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9134fi
9135fi
9136rm -f core conftest.err conftest.$ac_objext \
9137    conftest$ac_exeext conftest.$ac_ext
9138if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9139
9140	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9141	  # Warning - without using the other run time loading flags,
9142	  # -berok will link without error, but may produce a broken library.
9143	  no_undefined_flag=' ${wl}-bernotok'
9144	  allow_undefined_flag=' ${wl}-berok'
9145	  # Exported symbols can be pulled into shared objects from archives
9146	  whole_archive_flag_spec='$convenience'
9147	  archive_cmds_need_lc=yes
9148	  # This is similar to how AIX traditionally builds its shared libraries.
9149	  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'
9150	fi
9151      fi
9152      ;;
9153
9154    amigaos*)
9155      case $host_cpu in
9156      powerpc)
9157            # see comment about AmigaOS4 .so support
9158            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159            archive_expsym_cmds=''
9160        ;;
9161      m68k)
9162            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)'
9163            hardcode_libdir_flag_spec='-L$libdir'
9164            hardcode_minus_L=yes
9165        ;;
9166      esac
9167      ;;
9168
9169    bsdi[45]*)
9170      export_dynamic_flag_spec=-rdynamic
9171      ;;
9172
9173    cygwin* | mingw* | pw32* | cegcc*)
9174      # When not using gcc, we currently assume that we are using
9175      # Microsoft Visual C++.
9176      # hardcode_libdir_flag_spec is actually meaningless, as there is
9177      # no search path for DLLs.
9178      hardcode_libdir_flag_spec=' '
9179      allow_undefined_flag=unsupported
9180      # Tell ltmain to make .lib files, not .a files.
9181      libext=lib
9182      # Tell ltmain to make .dll files, not .so files.
9183      shrext_cmds=".dll"
9184      # FIXME: Setting linknames here is a bad hack.
9185      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9186      # The linker will automatically build a .lib file if we build a DLL.
9187      old_archive_from_new_cmds='true'
9188      # FIXME: Should let the user specify the lib program.
9189      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9190      fix_srcfile_path='`cygpath -w "$srcfile"`'
9191      enable_shared_with_static_runtimes=yes
9192      ;;
9193
9194    darwin* | rhapsody*)
9195
9196
9197  archive_cmds_need_lc=no
9198  hardcode_direct=no
9199  hardcode_automatic=yes
9200  hardcode_shlibpath_var=unsupported
9201  whole_archive_flag_spec=''
9202  link_all_deplibs=yes
9203  allow_undefined_flag="$_lt_dar_allow_undefined"
9204  case $cc_basename in
9205     ifort*) _lt_dar_can_shared=yes ;;
9206     *) _lt_dar_can_shared=$GCC ;;
9207  esac
9208  if test "$_lt_dar_can_shared" = "yes"; then
9209    output_verbose_link_cmd=echo
9210    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9211    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9212    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}"
9213    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}"
9214
9215  else
9216  ld_shlibs=no
9217  fi
9218
9219      ;;
9220
9221    dgux*)
9222      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9223      hardcode_libdir_flag_spec='-L$libdir'
9224      hardcode_shlibpath_var=no
9225      ;;
9226
9227    freebsd1*)
9228      ld_shlibs=no
9229      ;;
9230
9231    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9232    # support.  Future versions do this automatically, but an explicit c++rt0.o
9233    # does not break anything, and helps significantly (at the cost of a little
9234    # extra space).
9235    freebsd2.2*)
9236      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9237      hardcode_libdir_flag_spec='-R$libdir'
9238      hardcode_direct=yes
9239      hardcode_shlibpath_var=no
9240      ;;
9241
9242    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9243    freebsd2*)
9244      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9245      hardcode_direct=yes
9246      hardcode_minus_L=yes
9247      hardcode_shlibpath_var=no
9248      ;;
9249
9250    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9251    freebsd* | dragonfly*)
9252      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9253      hardcode_libdir_flag_spec='-R$libdir'
9254      hardcode_direct=yes
9255      hardcode_shlibpath_var=no
9256      ;;
9257
9258    hpux9*)
9259      if test "$GCC" = yes; then
9260	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'
9261      else
9262	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'
9263      fi
9264      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9265      hardcode_libdir_separator=:
9266      hardcode_direct=yes
9267
9268      # hardcode_minus_L: Not really in the search PATH,
9269      # but as the default location of the library.
9270      hardcode_minus_L=yes
9271      export_dynamic_flag_spec='${wl}-E'
9272      ;;
9273
9274    hpux10*)
9275      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9276	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9277      else
9278	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9279      fi
9280      if test "$with_gnu_ld" = no; then
9281	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9282	hardcode_libdir_flag_spec_ld='+b $libdir'
9283	hardcode_libdir_separator=:
9284	hardcode_direct=yes
9285	hardcode_direct_absolute=yes
9286	export_dynamic_flag_spec='${wl}-E'
9287	# hardcode_minus_L: Not really in the search PATH,
9288	# but as the default location of the library.
9289	hardcode_minus_L=yes
9290      fi
9291      ;;
9292
9293    hpux11*)
9294      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9295	case $host_cpu in
9296	hppa*64*)
9297	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9298	  ;;
9299	ia64*)
9300	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9301	  ;;
9302	*)
9303	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9304	  ;;
9305	esac
9306      else
9307	case $host_cpu in
9308	hppa*64*)
9309	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9310	  ;;
9311	ia64*)
9312	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9313	  ;;
9314	*)
9315	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9316	  ;;
9317	esac
9318      fi
9319      if test "$with_gnu_ld" = no; then
9320	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9321	hardcode_libdir_separator=:
9322
9323	case $host_cpu in
9324	hppa*64*|ia64*)
9325	  hardcode_direct=no
9326	  hardcode_shlibpath_var=no
9327	  ;;
9328	*)
9329	  hardcode_direct=yes
9330	  hardcode_direct_absolute=yes
9331	  export_dynamic_flag_spec='${wl}-E'
9332
9333	  # hardcode_minus_L: Not really in the search PATH,
9334	  # but as the default location of the library.
9335	  hardcode_minus_L=yes
9336	  ;;
9337	esac
9338      fi
9339      ;;
9340
9341    irix5* | irix6* | nonstopux*)
9342      if test "$GCC" = yes; then
9343	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'
9344	# Try to use the -exported_symbol ld option, if it does not
9345	# work, assume that -exports_file does not work either and
9346	# implicitly export all symbols.
9347        save_LDFLAGS="$LDFLAGS"
9348        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9349        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350/* end confdefs.h.  */
9351int foo(void) {}
9352_ACEOF
9353if ac_fn_c_try_link "$LINENO"; then :
9354  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'
9355
9356fi
9357rm -f core conftest.err conftest.$ac_objext \
9358    conftest$ac_exeext conftest.$ac_ext
9359        LDFLAGS="$save_LDFLAGS"
9360      else
9361	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'
9362	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'
9363      fi
9364      archive_cmds_need_lc='no'
9365      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9366      hardcode_libdir_separator=:
9367      inherit_rpath=yes
9368      link_all_deplibs=yes
9369      ;;
9370
9371    netbsd*)
9372      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9373	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9374      else
9375	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9376      fi
9377      hardcode_libdir_flag_spec='-R$libdir'
9378      hardcode_direct=yes
9379      hardcode_shlibpath_var=no
9380      ;;
9381
9382    newsos6)
9383      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384      hardcode_direct=yes
9385      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386      hardcode_libdir_separator=:
9387      hardcode_shlibpath_var=no
9388      ;;
9389
9390    *nto* | *qnx*)
9391      ;;
9392
9393    openbsd*)
9394      if test -f /usr/libexec/ld.so; then
9395	hardcode_direct=yes
9396	hardcode_shlibpath_var=no
9397	hardcode_direct_absolute=yes
9398	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9399	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9400	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9401	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9402	  export_dynamic_flag_spec='${wl}-E'
9403	else
9404	  case $host_os in
9405	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9406	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9407	     hardcode_libdir_flag_spec='-R$libdir'
9408	     ;;
9409	   *)
9410	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9411	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9412	     ;;
9413	  esac
9414	fi
9415      else
9416	ld_shlibs=no
9417      fi
9418      ;;
9419
9420    os2*)
9421      hardcode_libdir_flag_spec='-L$libdir'
9422      hardcode_minus_L=yes
9423      allow_undefined_flag=unsupported
9424      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'
9425      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9426      ;;
9427
9428    osf3*)
9429      if test "$GCC" = yes; then
9430	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9431	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'
9432      else
9433	allow_undefined_flag=' -expect_unresolved \*'
9434	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'
9435      fi
9436      archive_cmds_need_lc='no'
9437      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9438      hardcode_libdir_separator=:
9439      ;;
9440
9441    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9442      if test "$GCC" = yes; then
9443	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9444	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'
9445	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9446      else
9447	allow_undefined_flag=' -expect_unresolved \*'
9448	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'
9449	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~
9450	$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'
9451
9452	# Both c and cxx compiler support -rpath directly
9453	hardcode_libdir_flag_spec='-rpath $libdir'
9454      fi
9455      archive_cmds_need_lc='no'
9456      hardcode_libdir_separator=:
9457      ;;
9458
9459    solaris*)
9460      no_undefined_flag=' -z defs'
9461      if test "$GCC" = yes; then
9462	wlarc='${wl}'
9463	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9464	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9465	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9466      else
9467	case `$CC -V 2>&1` in
9468	*"Compilers 5.0"*)
9469	  wlarc=''
9470	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9472	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9473	  ;;
9474	*)
9475	  wlarc='${wl}'
9476	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9477	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9478	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9479	  ;;
9480	esac
9481      fi
9482      hardcode_libdir_flag_spec='-R$libdir'
9483      hardcode_shlibpath_var=no
9484      case $host_os in
9485      solaris2.[0-5] | solaris2.[0-5].*) ;;
9486      *)
9487	# The compiler driver will combine and reorder linker options,
9488	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9489	# but is careful enough not to reorder.
9490	# Supported since Solaris 2.6 (maybe 2.5.1?)
9491	if test "$GCC" = yes; then
9492	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9493	else
9494	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9495	fi
9496	;;
9497      esac
9498      link_all_deplibs=yes
9499      ;;
9500
9501    sunos4*)
9502      if test "x$host_vendor" = xsequent; then
9503	# Use $CC to link under sequent, because it throws in some extra .o
9504	# files that make .init and .fini sections work.
9505	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9506      else
9507	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9508      fi
9509      hardcode_libdir_flag_spec='-L$libdir'
9510      hardcode_direct=yes
9511      hardcode_minus_L=yes
9512      hardcode_shlibpath_var=no
9513      ;;
9514
9515    sysv4)
9516      case $host_vendor in
9517	sni)
9518	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519	  hardcode_direct=yes # is this really true???
9520	;;
9521	siemens)
9522	  ## LD is ld it makes a PLAMLIB
9523	  ## CC just makes a GrossModule.
9524	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9525	  reload_cmds='$CC -r -o $output$reload_objs'
9526	  hardcode_direct=no
9527        ;;
9528	motorola)
9529	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9531	;;
9532      esac
9533      runpath_var='LD_RUN_PATH'
9534      hardcode_shlibpath_var=no
9535      ;;
9536
9537    sysv4.3*)
9538      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539      hardcode_shlibpath_var=no
9540      export_dynamic_flag_spec='-Bexport'
9541      ;;
9542
9543    sysv4*MP*)
9544      if test -d /usr/nec; then
9545	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546	hardcode_shlibpath_var=no
9547	runpath_var=LD_RUN_PATH
9548	hardcode_runpath_var=yes
9549	ld_shlibs=yes
9550      fi
9551      ;;
9552
9553    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9554      no_undefined_flag='${wl}-z,text'
9555      archive_cmds_need_lc=no
9556      hardcode_shlibpath_var=no
9557      runpath_var='LD_RUN_PATH'
9558
9559      if test "$GCC" = yes; then
9560	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9561	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9562      else
9563	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9565      fi
9566      ;;
9567
9568    sysv5* | sco3.2v5* | sco5v6*)
9569      # Note: We can NOT use -z defs as we might desire, because we do not
9570      # link with -lc, and that would cause any symbols used from libc to
9571      # always be unresolved, which means just about no library would
9572      # ever link correctly.  If we're not using GNU ld we use -z text
9573      # though, which does catch some bad symbols but isn't as heavy-handed
9574      # as -z defs.
9575      no_undefined_flag='${wl}-z,text'
9576      allow_undefined_flag='${wl}-z,nodefs'
9577      archive_cmds_need_lc=no
9578      hardcode_shlibpath_var=no
9579      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9580      hardcode_libdir_separator=':'
9581      link_all_deplibs=yes
9582      export_dynamic_flag_spec='${wl}-Bexport'
9583      runpath_var='LD_RUN_PATH'
9584
9585      if test "$GCC" = yes; then
9586	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9587	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9588      else
9589	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9590	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9591      fi
9592      ;;
9593
9594    uts4*)
9595      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9596      hardcode_libdir_flag_spec='-L$libdir'
9597      hardcode_shlibpath_var=no
9598      ;;
9599
9600    *)
9601      ld_shlibs=no
9602      ;;
9603    esac
9604
9605    if test x$host_vendor = xsni; then
9606      case $host in
9607      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9608	export_dynamic_flag_spec='${wl}-Blargedynsym'
9609	;;
9610      esac
9611    fi
9612  fi
9613
9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9615$as_echo "$ld_shlibs" >&6; }
9616test "$ld_shlibs" = no && can_build_shared=no
9617
9618with_gnu_ld=$with_gnu_ld
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634#
9635# Do we need to explicitly link libc?
9636#
9637case "x$archive_cmds_need_lc" in
9638x|xyes)
9639  # Assume -lc should be added
9640  archive_cmds_need_lc=yes
9641
9642  if test "$enable_shared" = yes && test "$GCC" = yes; then
9643    case $archive_cmds in
9644    *'~'*)
9645      # FIXME: we may have to deal with multi-command sequences.
9646      ;;
9647    '$CC '*)
9648      # Test whether the compiler implicitly links with -lc since on some
9649      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9650      # to ld, don't add -lc before -lgcc.
9651      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9652$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9653      $RM conftest*
9654      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9655
9656      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9657  (eval $ac_compile) 2>&5
9658  ac_status=$?
9659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9660  test $ac_status = 0; } 2>conftest.err; then
9661        soname=conftest
9662        lib=conftest
9663        libobjs=conftest.$ac_objext
9664        deplibs=
9665        wl=$lt_prog_compiler_wl
9666	pic_flag=$lt_prog_compiler_pic
9667        compiler_flags=-v
9668        linker_flags=-v
9669        verstring=
9670        output_objdir=.
9671        libname=conftest
9672        lt_save_allow_undefined_flag=$allow_undefined_flag
9673        allow_undefined_flag=
9674        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9675  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9676  ac_status=$?
9677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9678  test $ac_status = 0; }
9679        then
9680	  archive_cmds_need_lc=no
9681        else
9682	  archive_cmds_need_lc=yes
9683        fi
9684        allow_undefined_flag=$lt_save_allow_undefined_flag
9685      else
9686        cat conftest.err 1>&5
9687      fi
9688      $RM conftest*
9689      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9690$as_echo "$archive_cmds_need_lc" >&6; }
9691      ;;
9692    esac
9693  fi
9694  ;;
9695esac
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9854$as_echo_n "checking dynamic linker characteristics... " >&6; }
9855
9856if test "$GCC" = yes; then
9857  case $host_os in
9858    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9859    *) lt_awk_arg="/^libraries:/" ;;
9860  esac
9861  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9862  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9863    # if the path contains ";" then we assume it to be the separator
9864    # otherwise default to the standard path separator (i.e. ":") - it is
9865    # assumed that no part of a normal pathname contains ";" but that should
9866    # okay in the real world where ";" in dirpaths is itself problematic.
9867    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9868  else
9869    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9870  fi
9871  # Ok, now we have the path, separated by spaces, we can step through it
9872  # and add multilib dir if necessary.
9873  lt_tmp_lt_search_path_spec=
9874  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9875  for lt_sys_path in $lt_search_path_spec; do
9876    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9877      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9878    else
9879      test -d "$lt_sys_path" && \
9880	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9881    fi
9882  done
9883  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9884BEGIN {RS=" "; FS="/|\n";} {
9885  lt_foo="";
9886  lt_count=0;
9887  for (lt_i = NF; lt_i > 0; lt_i--) {
9888    if ($lt_i != "" && $lt_i != ".") {
9889      if ($lt_i == "..") {
9890        lt_count++;
9891      } else {
9892        if (lt_count == 0) {
9893          lt_foo="/" $lt_i lt_foo;
9894        } else {
9895          lt_count--;
9896        }
9897      }
9898    }
9899  }
9900  if (lt_foo != "") { lt_freq[lt_foo]++; }
9901  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9902}'`
9903  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9904else
9905  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9906fi
9907library_names_spec=
9908libname_spec='lib$name'
9909soname_spec=
9910shrext_cmds=".so"
9911postinstall_cmds=
9912postuninstall_cmds=
9913finish_cmds=
9914finish_eval=
9915shlibpath_var=
9916shlibpath_overrides_runpath=unknown
9917version_type=none
9918dynamic_linker="$host_os ld.so"
9919sys_lib_dlsearch_path_spec="/lib /usr/lib"
9920need_lib_prefix=unknown
9921hardcode_into_libs=no
9922
9923# when you set need_version to no, make sure it does not cause -set_version
9924# flags to be left without arguments
9925need_version=unknown
9926
9927case $host_os in
9928aix3*)
9929  version_type=linux
9930  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9931  shlibpath_var=LIBPATH
9932
9933  # AIX 3 has no versioning support, so we append a major version to the name.
9934  soname_spec='${libname}${release}${shared_ext}$major'
9935  ;;
9936
9937aix[4-9]*)
9938  version_type=linux
9939  need_lib_prefix=no
9940  need_version=no
9941  hardcode_into_libs=yes
9942  if test "$host_cpu" = ia64; then
9943    # AIX 5 supports IA64
9944    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9945    shlibpath_var=LD_LIBRARY_PATH
9946  else
9947    # With GCC up to 2.95.x, collect2 would create an import file
9948    # for dependence libraries.  The import file would start with
9949    # the line `#! .'.  This would cause the generated library to
9950    # depend on `.', always an invalid library.  This was fixed in
9951    # development snapshots of GCC prior to 3.0.
9952    case $host_os in
9953      aix4 | aix4.[01] | aix4.[01].*)
9954      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9955	   echo ' yes '
9956	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9957	:
9958      else
9959	can_build_shared=no
9960      fi
9961      ;;
9962    esac
9963    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9964    # soname into executable. Probably we can add versioning support to
9965    # collect2, so additional links can be useful in future.
9966    if test "$aix_use_runtimelinking" = yes; then
9967      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9968      # instead of lib<name>.a to let people know that these are not
9969      # typical AIX shared libraries.
9970      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971    else
9972      # We preserve .a as extension for shared libraries through AIX4.2
9973      # and later when we are not doing run time linking.
9974      library_names_spec='${libname}${release}.a $libname.a'
9975      soname_spec='${libname}${release}${shared_ext}$major'
9976    fi
9977    shlibpath_var=LIBPATH
9978  fi
9979  ;;
9980
9981amigaos*)
9982  case $host_cpu in
9983  powerpc)
9984    # Since July 2007 AmigaOS4 officially supports .so libraries.
9985    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9986    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9987    ;;
9988  m68k)
9989    library_names_spec='$libname.ixlibrary $libname.a'
9990    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9991    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'
9992    ;;
9993  esac
9994  ;;
9995
9996beos*)
9997  library_names_spec='${libname}${shared_ext}'
9998  dynamic_linker="$host_os ld.so"
9999  shlibpath_var=LIBRARY_PATH
10000  ;;
10001
10002bsdi[45]*)
10003  version_type=linux
10004  need_version=no
10005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006  soname_spec='${libname}${release}${shared_ext}$major'
10007  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10008  shlibpath_var=LD_LIBRARY_PATH
10009  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10010  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10011  # the default ld.so.conf also contains /usr/contrib/lib and
10012  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10013  # libtool to hard-code these into programs
10014  ;;
10015
10016cygwin* | mingw* | pw32* | cegcc*)
10017  version_type=windows
10018  shrext_cmds=".dll"
10019  need_version=no
10020  need_lib_prefix=no
10021
10022  case $GCC,$host_os in
10023  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10024    library_names_spec='$libname.dll.a'
10025    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10026    postinstall_cmds='base_file=`basename \${file}`~
10027      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10028      dldir=$destdir/`dirname \$dlpath`~
10029      test -d \$dldir || mkdir -p \$dldir~
10030      $install_prog $dir/$dlname \$dldir/$dlname~
10031      chmod a+x \$dldir/$dlname~
10032      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10033        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10034      fi'
10035    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10036      dlpath=$dir/\$dldll~
10037       $RM \$dlpath'
10038    shlibpath_overrides_runpath=yes
10039
10040    case $host_os in
10041    cygwin*)
10042      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10043      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10044      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10045      ;;
10046    mingw* | cegcc*)
10047      # MinGW DLLs use traditional 'lib' prefix
10048      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10049      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10050      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10051        # It is most probably a Windows format PATH printed by
10052        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10053        # path with ; separators, and with drive letters. We can handle the
10054        # drive letters (cygwin fileutils understands them), so leave them,
10055        # especially as we might pass files found there to a mingw objdump,
10056        # which wouldn't understand a cygwinified path. Ahh.
10057        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10058      else
10059        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10060      fi
10061      ;;
10062    pw32*)
10063      # pw32 DLLs use 'pw' prefix rather than 'lib'
10064      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10065      ;;
10066    esac
10067    ;;
10068
10069  *)
10070    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10071    ;;
10072  esac
10073  dynamic_linker='Win32 ld.exe'
10074  # FIXME: first we should search . and the directory the executable is in
10075  shlibpath_var=PATH
10076  ;;
10077
10078darwin* | rhapsody*)
10079  dynamic_linker="$host_os dyld"
10080  version_type=darwin
10081  need_lib_prefix=no
10082  need_version=no
10083  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10084  soname_spec='${libname}${release}${major}$shared_ext'
10085  shlibpath_overrides_runpath=yes
10086  shlibpath_var=DYLD_LIBRARY_PATH
10087  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10088
10089  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10090  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10091  ;;
10092
10093dgux*)
10094  version_type=linux
10095  need_lib_prefix=no
10096  need_version=no
10097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10098  soname_spec='${libname}${release}${shared_ext}$major'
10099  shlibpath_var=LD_LIBRARY_PATH
10100  ;;
10101
10102freebsd1*)
10103  dynamic_linker=no
10104  ;;
10105
10106freebsd* | dragonfly*)
10107  # DragonFly does not have aout.  When/if they implement a new
10108  # versioning mechanism, adjust this.
10109  if test -x /usr/bin/objformat; then
10110    objformat=`/usr/bin/objformat`
10111  else
10112    case $host_os in
10113    freebsd[123]*) objformat=aout ;;
10114    *) objformat=elf ;;
10115    esac
10116  fi
10117  version_type=freebsd-$objformat
10118  case $version_type in
10119    freebsd-elf*)
10120      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10121      need_version=no
10122      need_lib_prefix=no
10123      ;;
10124    freebsd-*)
10125      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10126      need_version=yes
10127      ;;
10128  esac
10129  shlibpath_var=LD_LIBRARY_PATH
10130  case $host_os in
10131  freebsd2*)
10132    shlibpath_overrides_runpath=yes
10133    ;;
10134  freebsd3.[01]* | freebsdelf3.[01]*)
10135    shlibpath_overrides_runpath=yes
10136    hardcode_into_libs=yes
10137    ;;
10138  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10139  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10140    shlibpath_overrides_runpath=no
10141    hardcode_into_libs=yes
10142    ;;
10143  *) # from 4.6 on, and DragonFly
10144    shlibpath_overrides_runpath=yes
10145    hardcode_into_libs=yes
10146    ;;
10147  esac
10148  ;;
10149
10150gnu*)
10151  version_type=linux
10152  need_lib_prefix=no
10153  need_version=no
10154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10155  soname_spec='${libname}${release}${shared_ext}$major'
10156  shlibpath_var=LD_LIBRARY_PATH
10157  hardcode_into_libs=yes
10158  ;;
10159
10160hpux9* | hpux10* | hpux11*)
10161  # Give a soname corresponding to the major version so that dld.sl refuses to
10162  # link against other versions.
10163  version_type=sunos
10164  need_lib_prefix=no
10165  need_version=no
10166  case $host_cpu in
10167  ia64*)
10168    shrext_cmds='.so'
10169    hardcode_into_libs=yes
10170    dynamic_linker="$host_os dld.so"
10171    shlibpath_var=LD_LIBRARY_PATH
10172    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10173    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174    soname_spec='${libname}${release}${shared_ext}$major'
10175    if test "X$HPUX_IA64_MODE" = X32; then
10176      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10177    else
10178      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10179    fi
10180    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10181    ;;
10182  hppa*64*)
10183    shrext_cmds='.sl'
10184    hardcode_into_libs=yes
10185    dynamic_linker="$host_os dld.sl"
10186    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10187    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10188    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10189    soname_spec='${libname}${release}${shared_ext}$major'
10190    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10191    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10192    ;;
10193  *)
10194    shrext_cmds='.sl'
10195    dynamic_linker="$host_os dld.sl"
10196    shlibpath_var=SHLIB_PATH
10197    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10198    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199    soname_spec='${libname}${release}${shared_ext}$major'
10200    ;;
10201  esac
10202  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10203  postinstall_cmds='chmod 555 $lib'
10204  ;;
10205
10206interix[3-9]*)
10207  version_type=linux
10208  need_lib_prefix=no
10209  need_version=no
10210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10211  soname_spec='${libname}${release}${shared_ext}$major'
10212  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10213  shlibpath_var=LD_LIBRARY_PATH
10214  shlibpath_overrides_runpath=no
10215  hardcode_into_libs=yes
10216  ;;
10217
10218irix5* | irix6* | nonstopux*)
10219  case $host_os in
10220    nonstopux*) version_type=nonstopux ;;
10221    *)
10222	if test "$lt_cv_prog_gnu_ld" = yes; then
10223		version_type=linux
10224	else
10225		version_type=irix
10226	fi ;;
10227  esac
10228  need_lib_prefix=no
10229  need_version=no
10230  soname_spec='${libname}${release}${shared_ext}$major'
10231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10232  case $host_os in
10233  irix5* | nonstopux*)
10234    libsuff= shlibsuff=
10235    ;;
10236  *)
10237    case $LD in # libtool.m4 will add one of these switches to LD
10238    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10239      libsuff= shlibsuff= libmagic=32-bit;;
10240    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10241      libsuff=32 shlibsuff=N32 libmagic=N32;;
10242    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10243      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10244    *) libsuff= shlibsuff= libmagic=never-match;;
10245    esac
10246    ;;
10247  esac
10248  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10249  shlibpath_overrides_runpath=no
10250  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10251  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10252  hardcode_into_libs=yes
10253  ;;
10254
10255# No shared lib support for Linux oldld, aout, or coff.
10256linux*oldld* | linux*aout* | linux*coff*)
10257  dynamic_linker=no
10258  ;;
10259
10260# This must be Linux ELF.
10261linux* | k*bsd*-gnu)
10262  version_type=linux
10263  need_lib_prefix=no
10264  need_version=no
10265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266  soname_spec='${libname}${release}${shared_ext}$major'
10267  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10268  shlibpath_var=LD_LIBRARY_PATH
10269  shlibpath_overrides_runpath=no
10270  # Some binutils ld are patched to set DT_RUNPATH
10271  save_LDFLAGS=$LDFLAGS
10272  save_libdir=$libdir
10273  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10274       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276/* end confdefs.h.  */
10277
10278int
10279main ()
10280{
10281
10282  ;
10283  return 0;
10284}
10285_ACEOF
10286if ac_fn_c_try_link "$LINENO"; then :
10287  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10288  shlibpath_overrides_runpath=yes
10289fi
10290fi
10291rm -f core conftest.err conftest.$ac_objext \
10292    conftest$ac_exeext conftest.$ac_ext
10293  LDFLAGS=$save_LDFLAGS
10294  libdir=$save_libdir
10295
10296  # This implies no fast_install, which is unacceptable.
10297  # Some rework will be needed to allow for fast_install
10298  # before this can be enabled.
10299  hardcode_into_libs=yes
10300
10301  # Add ABI-specific directories to the system library path.
10302  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10303
10304  # Append ld.so.conf contents to the search path
10305  if test -f /etc/ld.so.conf; then
10306    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' ' '`
10307    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10308  fi
10309
10310  # We used to test for /lib/ld.so.1 and disable shared libraries on
10311  # powerpc, because MkLinux only supported shared libraries with the
10312  # GNU dynamic linker.  Since this was broken with cross compilers,
10313  # most powerpc-linux boxes support dynamic linking these days and
10314  # people can always --disable-shared, the test was removed, and we
10315  # assume the GNU/Linux dynamic linker is in use.
10316  dynamic_linker='GNU/Linux ld.so'
10317  ;;
10318
10319netbsd*)
10320  version_type=sunos
10321  need_lib_prefix=no
10322  need_version=no
10323  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10324    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10325    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10326    dynamic_linker='NetBSD (a.out) ld.so'
10327  else
10328    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10329    soname_spec='${libname}${release}${shared_ext}$major'
10330    dynamic_linker='NetBSD ld.elf_so'
10331  fi
10332  shlibpath_var=LD_LIBRARY_PATH
10333  shlibpath_overrides_runpath=yes
10334  hardcode_into_libs=yes
10335  ;;
10336
10337newsos6)
10338  version_type=linux
10339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340  shlibpath_var=LD_LIBRARY_PATH
10341  shlibpath_overrides_runpath=yes
10342  ;;
10343
10344*nto* | *qnx*)
10345  version_type=qnx
10346  need_lib_prefix=no
10347  need_version=no
10348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349  soname_spec='${libname}${release}${shared_ext}$major'
10350  shlibpath_var=LD_LIBRARY_PATH
10351  shlibpath_overrides_runpath=no
10352  hardcode_into_libs=yes
10353  dynamic_linker='ldqnx.so'
10354  ;;
10355
10356openbsd*)
10357  version_type=sunos
10358  sys_lib_dlsearch_path_spec="/usr/lib"
10359  need_lib_prefix=no
10360  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10361  case $host_os in
10362    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10363    *)				need_version=no  ;;
10364  esac
10365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10366  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10367  shlibpath_var=LD_LIBRARY_PATH
10368  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10369    case $host_os in
10370      openbsd2.[89] | openbsd2.[89].*)
10371	shlibpath_overrides_runpath=no
10372	;;
10373      *)
10374	shlibpath_overrides_runpath=yes
10375	;;
10376      esac
10377  else
10378    shlibpath_overrides_runpath=yes
10379  fi
10380  ;;
10381
10382os2*)
10383  libname_spec='$name'
10384  shrext_cmds=".dll"
10385  need_lib_prefix=no
10386  library_names_spec='$libname${shared_ext} $libname.a'
10387  dynamic_linker='OS/2 ld.exe'
10388  shlibpath_var=LIBPATH
10389  ;;
10390
10391osf3* | osf4* | osf5*)
10392  version_type=osf
10393  need_lib_prefix=no
10394  need_version=no
10395  soname_spec='${libname}${release}${shared_ext}$major'
10396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397  shlibpath_var=LD_LIBRARY_PATH
10398  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10399  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10400  ;;
10401
10402rdos*)
10403  dynamic_linker=no
10404  ;;
10405
10406solaris*)
10407  version_type=linux
10408  need_lib_prefix=no
10409  need_version=no
10410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10411  soname_spec='${libname}${release}${shared_ext}$major'
10412  shlibpath_var=LD_LIBRARY_PATH
10413  shlibpath_overrides_runpath=yes
10414  hardcode_into_libs=yes
10415  # ldd complains unless libraries are executable
10416  postinstall_cmds='chmod +x $lib'
10417  ;;
10418
10419sunos4*)
10420  version_type=sunos
10421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10422  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10423  shlibpath_var=LD_LIBRARY_PATH
10424  shlibpath_overrides_runpath=yes
10425  if test "$with_gnu_ld" = yes; then
10426    need_lib_prefix=no
10427  fi
10428  need_version=yes
10429  ;;
10430
10431sysv4 | sysv4.3*)
10432  version_type=linux
10433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434  soname_spec='${libname}${release}${shared_ext}$major'
10435  shlibpath_var=LD_LIBRARY_PATH
10436  case $host_vendor in
10437    sni)
10438      shlibpath_overrides_runpath=no
10439      need_lib_prefix=no
10440      runpath_var=LD_RUN_PATH
10441      ;;
10442    siemens)
10443      need_lib_prefix=no
10444      ;;
10445    motorola)
10446      need_lib_prefix=no
10447      need_version=no
10448      shlibpath_overrides_runpath=no
10449      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10450      ;;
10451  esac
10452  ;;
10453
10454sysv4*MP*)
10455  if test -d /usr/nec ;then
10456    version_type=linux
10457    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10458    soname_spec='$libname${shared_ext}.$major'
10459    shlibpath_var=LD_LIBRARY_PATH
10460  fi
10461  ;;
10462
10463sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10464  version_type=freebsd-elf
10465  need_lib_prefix=no
10466  need_version=no
10467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10468  soname_spec='${libname}${release}${shared_ext}$major'
10469  shlibpath_var=LD_LIBRARY_PATH
10470  shlibpath_overrides_runpath=yes
10471  hardcode_into_libs=yes
10472  if test "$with_gnu_ld" = yes; then
10473    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10474  else
10475    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10476    case $host_os in
10477      sco3.2v5*)
10478        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10479	;;
10480    esac
10481  fi
10482  sys_lib_dlsearch_path_spec='/usr/lib'
10483  ;;
10484
10485tpf*)
10486  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10487  version_type=linux
10488  need_lib_prefix=no
10489  need_version=no
10490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10491  shlibpath_var=LD_LIBRARY_PATH
10492  shlibpath_overrides_runpath=no
10493  hardcode_into_libs=yes
10494  ;;
10495
10496uts4*)
10497  version_type=linux
10498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499  soname_spec='${libname}${release}${shared_ext}$major'
10500  shlibpath_var=LD_LIBRARY_PATH
10501  ;;
10502
10503*)
10504  dynamic_linker=no
10505  ;;
10506esac
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10508$as_echo "$dynamic_linker" >&6; }
10509test "$dynamic_linker" = no && can_build_shared=no
10510
10511variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10512if test "$GCC" = yes; then
10513  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10514fi
10515
10516if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10517  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10518fi
10519if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10520  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10521fi
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10610$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10611hardcode_action=
10612if test -n "$hardcode_libdir_flag_spec" ||
10613   test -n "$runpath_var" ||
10614   test "X$hardcode_automatic" = "Xyes" ; then
10615
10616  # We can hardcode non-existent directories.
10617  if test "$hardcode_direct" != no &&
10618     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10619     # have to relink, otherwise we might link with an installed library
10620     # when we should be linking with a yet-to-be-installed one
10621     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10622     test "$hardcode_minus_L" != no; then
10623    # Linking always hardcodes the temporary library directory.
10624    hardcode_action=relink
10625  else
10626    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10627    hardcode_action=immediate
10628  fi
10629else
10630  # We cannot hardcode anything, or else we can only hardcode existing
10631  # directories.
10632  hardcode_action=unsupported
10633fi
10634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10635$as_echo "$hardcode_action" >&6; }
10636
10637if test "$hardcode_action" = relink ||
10638   test "$inherit_rpath" = yes; then
10639  # Fast installation is not supported
10640  enable_fast_install=no
10641elif test "$shlibpath_overrides_runpath" = yes ||
10642     test "$enable_shared" = no; then
10643  # Fast installation is not necessary
10644  enable_fast_install=needless
10645fi
10646
10647
10648
10649
10650
10651
10652  if test "x$enable_dlopen" != xyes; then
10653  enable_dlopen=unknown
10654  enable_dlopen_self=unknown
10655  enable_dlopen_self_static=unknown
10656else
10657  lt_cv_dlopen=no
10658  lt_cv_dlopen_libs=
10659
10660  case $host_os in
10661  beos*)
10662    lt_cv_dlopen="load_add_on"
10663    lt_cv_dlopen_libs=
10664    lt_cv_dlopen_self=yes
10665    ;;
10666
10667  mingw* | pw32* | cegcc*)
10668    lt_cv_dlopen="LoadLibrary"
10669    lt_cv_dlopen_libs=
10670    ;;
10671
10672  cygwin*)
10673    lt_cv_dlopen="dlopen"
10674    lt_cv_dlopen_libs=
10675    ;;
10676
10677  darwin*)
10678  # if libdl is installed we need to link against it
10679    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10680$as_echo_n "checking for dlopen in -ldl... " >&6; }
10681if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10682  $as_echo_n "(cached) " >&6
10683else
10684  ac_check_lib_save_LIBS=$LIBS
10685LIBS="-ldl  $LIBS"
10686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687/* end confdefs.h.  */
10688
10689/* Override any GCC internal prototype to avoid an error.
10690   Use char because int might match the return type of a GCC
10691   builtin and then its argument prototype would still apply.  */
10692#ifdef __cplusplus
10693extern "C"
10694#endif
10695char dlopen ();
10696int
10697main ()
10698{
10699return dlopen ();
10700  ;
10701  return 0;
10702}
10703_ACEOF
10704if ac_fn_c_try_link "$LINENO"; then :
10705  ac_cv_lib_dl_dlopen=yes
10706else
10707  ac_cv_lib_dl_dlopen=no
10708fi
10709rm -f core conftest.err conftest.$ac_objext \
10710    conftest$ac_exeext conftest.$ac_ext
10711LIBS=$ac_check_lib_save_LIBS
10712fi
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10714$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10715if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10716  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10717else
10718
10719    lt_cv_dlopen="dyld"
10720    lt_cv_dlopen_libs=
10721    lt_cv_dlopen_self=yes
10722
10723fi
10724
10725    ;;
10726
10727  *)
10728    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10729if test "x$ac_cv_func_shl_load" = x""yes; then :
10730  lt_cv_dlopen="shl_load"
10731else
10732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10733$as_echo_n "checking for shl_load in -ldld... " >&6; }
10734if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10735  $as_echo_n "(cached) " >&6
10736else
10737  ac_check_lib_save_LIBS=$LIBS
10738LIBS="-ldld  $LIBS"
10739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740/* end confdefs.h.  */
10741
10742/* Override any GCC internal prototype to avoid an error.
10743   Use char because int might match the return type of a GCC
10744   builtin and then its argument prototype would still apply.  */
10745#ifdef __cplusplus
10746extern "C"
10747#endif
10748char shl_load ();
10749int
10750main ()
10751{
10752return shl_load ();
10753  ;
10754  return 0;
10755}
10756_ACEOF
10757if ac_fn_c_try_link "$LINENO"; then :
10758  ac_cv_lib_dld_shl_load=yes
10759else
10760  ac_cv_lib_dld_shl_load=no
10761fi
10762rm -f core conftest.err conftest.$ac_objext \
10763    conftest$ac_exeext conftest.$ac_ext
10764LIBS=$ac_check_lib_save_LIBS
10765fi
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10767$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10768if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10769  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10770else
10771  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10772if test "x$ac_cv_func_dlopen" = x""yes; then :
10773  lt_cv_dlopen="dlopen"
10774else
10775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10776$as_echo_n "checking for dlopen in -ldl... " >&6; }
10777if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10778  $as_echo_n "(cached) " >&6
10779else
10780  ac_check_lib_save_LIBS=$LIBS
10781LIBS="-ldl  $LIBS"
10782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783/* end confdefs.h.  */
10784
10785/* Override any GCC internal prototype to avoid an error.
10786   Use char because int might match the return type of a GCC
10787   builtin and then its argument prototype would still apply.  */
10788#ifdef __cplusplus
10789extern "C"
10790#endif
10791char dlopen ();
10792int
10793main ()
10794{
10795return dlopen ();
10796  ;
10797  return 0;
10798}
10799_ACEOF
10800if ac_fn_c_try_link "$LINENO"; then :
10801  ac_cv_lib_dl_dlopen=yes
10802else
10803  ac_cv_lib_dl_dlopen=no
10804fi
10805rm -f core conftest.err conftest.$ac_objext \
10806    conftest$ac_exeext conftest.$ac_ext
10807LIBS=$ac_check_lib_save_LIBS
10808fi
10809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10810$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10811if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10812  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10813else
10814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10815$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10816if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10817  $as_echo_n "(cached) " >&6
10818else
10819  ac_check_lib_save_LIBS=$LIBS
10820LIBS="-lsvld  $LIBS"
10821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822/* end confdefs.h.  */
10823
10824/* Override any GCC internal prototype to avoid an error.
10825   Use char because int might match the return type of a GCC
10826   builtin and then its argument prototype would still apply.  */
10827#ifdef __cplusplus
10828extern "C"
10829#endif
10830char dlopen ();
10831int
10832main ()
10833{
10834return dlopen ();
10835  ;
10836  return 0;
10837}
10838_ACEOF
10839if ac_fn_c_try_link "$LINENO"; then :
10840  ac_cv_lib_svld_dlopen=yes
10841else
10842  ac_cv_lib_svld_dlopen=no
10843fi
10844rm -f core conftest.err conftest.$ac_objext \
10845    conftest$ac_exeext conftest.$ac_ext
10846LIBS=$ac_check_lib_save_LIBS
10847fi
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10849$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10850if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10851  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10852else
10853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10854$as_echo_n "checking for dld_link in -ldld... " >&6; }
10855if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10856  $as_echo_n "(cached) " >&6
10857else
10858  ac_check_lib_save_LIBS=$LIBS
10859LIBS="-ldld  $LIBS"
10860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861/* end confdefs.h.  */
10862
10863/* Override any GCC internal prototype to avoid an error.
10864   Use char because int might match the return type of a GCC
10865   builtin and then its argument prototype would still apply.  */
10866#ifdef __cplusplus
10867extern "C"
10868#endif
10869char dld_link ();
10870int
10871main ()
10872{
10873return dld_link ();
10874  ;
10875  return 0;
10876}
10877_ACEOF
10878if ac_fn_c_try_link "$LINENO"; then :
10879  ac_cv_lib_dld_dld_link=yes
10880else
10881  ac_cv_lib_dld_dld_link=no
10882fi
10883rm -f core conftest.err conftest.$ac_objext \
10884    conftest$ac_exeext conftest.$ac_ext
10885LIBS=$ac_check_lib_save_LIBS
10886fi
10887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10888$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10889if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10890  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10891fi
10892
10893
10894fi
10895
10896
10897fi
10898
10899
10900fi
10901
10902
10903fi
10904
10905
10906fi
10907
10908    ;;
10909  esac
10910
10911  if test "x$lt_cv_dlopen" != xno; then
10912    enable_dlopen=yes
10913  else
10914    enable_dlopen=no
10915  fi
10916
10917  case $lt_cv_dlopen in
10918  dlopen)
10919    save_CPPFLAGS="$CPPFLAGS"
10920    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10921
10922    save_LDFLAGS="$LDFLAGS"
10923    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10924
10925    save_LIBS="$LIBS"
10926    LIBS="$lt_cv_dlopen_libs $LIBS"
10927
10928    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10929$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10930if test "${lt_cv_dlopen_self+set}" = set; then :
10931  $as_echo_n "(cached) " >&6
10932else
10933  	  if test "$cross_compiling" = yes; then :
10934  lt_cv_dlopen_self=cross
10935else
10936  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10937  lt_status=$lt_dlunknown
10938  cat > conftest.$ac_ext <<_LT_EOF
10939#line 10939 "configure"
10940#include "confdefs.h"
10941
10942#if HAVE_DLFCN_H
10943#include <dlfcn.h>
10944#endif
10945
10946#include <stdio.h>
10947
10948#ifdef RTLD_GLOBAL
10949#  define LT_DLGLOBAL		RTLD_GLOBAL
10950#else
10951#  ifdef DL_GLOBAL
10952#    define LT_DLGLOBAL		DL_GLOBAL
10953#  else
10954#    define LT_DLGLOBAL		0
10955#  endif
10956#endif
10957
10958/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10959   find out it does not work in some platform. */
10960#ifndef LT_DLLAZY_OR_NOW
10961#  ifdef RTLD_LAZY
10962#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10963#  else
10964#    ifdef DL_LAZY
10965#      define LT_DLLAZY_OR_NOW		DL_LAZY
10966#    else
10967#      ifdef RTLD_NOW
10968#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10969#      else
10970#        ifdef DL_NOW
10971#          define LT_DLLAZY_OR_NOW	DL_NOW
10972#        else
10973#          define LT_DLLAZY_OR_NOW	0
10974#        endif
10975#      endif
10976#    endif
10977#  endif
10978#endif
10979
10980void fnord() { int i=42;}
10981int main ()
10982{
10983  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10984  int status = $lt_dlunknown;
10985
10986  if (self)
10987    {
10988      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10989      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10990      /* dlclose (self); */
10991    }
10992  else
10993    puts (dlerror ());
10994
10995  return status;
10996}
10997_LT_EOF
10998  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10999  (eval $ac_link) 2>&5
11000  ac_status=$?
11001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11002  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11003    (./conftest; exit; ) >&5 2>/dev/null
11004    lt_status=$?
11005    case x$lt_status in
11006      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11007      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11008      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11009    esac
11010  else :
11011    # compilation failed
11012    lt_cv_dlopen_self=no
11013  fi
11014fi
11015rm -fr conftest*
11016
11017
11018fi
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11020$as_echo "$lt_cv_dlopen_self" >&6; }
11021
11022    if test "x$lt_cv_dlopen_self" = xyes; then
11023      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11024      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11025$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11026if test "${lt_cv_dlopen_self_static+set}" = set; then :
11027  $as_echo_n "(cached) " >&6
11028else
11029  	  if test "$cross_compiling" = yes; then :
11030  lt_cv_dlopen_self_static=cross
11031else
11032  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11033  lt_status=$lt_dlunknown
11034  cat > conftest.$ac_ext <<_LT_EOF
11035#line 11035 "configure"
11036#include "confdefs.h"
11037
11038#if HAVE_DLFCN_H
11039#include <dlfcn.h>
11040#endif
11041
11042#include <stdio.h>
11043
11044#ifdef RTLD_GLOBAL
11045#  define LT_DLGLOBAL		RTLD_GLOBAL
11046#else
11047#  ifdef DL_GLOBAL
11048#    define LT_DLGLOBAL		DL_GLOBAL
11049#  else
11050#    define LT_DLGLOBAL		0
11051#  endif
11052#endif
11053
11054/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11055   find out it does not work in some platform. */
11056#ifndef LT_DLLAZY_OR_NOW
11057#  ifdef RTLD_LAZY
11058#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11059#  else
11060#    ifdef DL_LAZY
11061#      define LT_DLLAZY_OR_NOW		DL_LAZY
11062#    else
11063#      ifdef RTLD_NOW
11064#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11065#      else
11066#        ifdef DL_NOW
11067#          define LT_DLLAZY_OR_NOW	DL_NOW
11068#        else
11069#          define LT_DLLAZY_OR_NOW	0
11070#        endif
11071#      endif
11072#    endif
11073#  endif
11074#endif
11075
11076void fnord() { int i=42;}
11077int main ()
11078{
11079  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11080  int status = $lt_dlunknown;
11081
11082  if (self)
11083    {
11084      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11085      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11086      /* dlclose (self); */
11087    }
11088  else
11089    puts (dlerror ());
11090
11091  return status;
11092}
11093_LT_EOF
11094  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11095  (eval $ac_link) 2>&5
11096  ac_status=$?
11097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11098  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11099    (./conftest; exit; ) >&5 2>/dev/null
11100    lt_status=$?
11101    case x$lt_status in
11102      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11103      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11104      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11105    esac
11106  else :
11107    # compilation failed
11108    lt_cv_dlopen_self_static=no
11109  fi
11110fi
11111rm -fr conftest*
11112
11113
11114fi
11115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11116$as_echo "$lt_cv_dlopen_self_static" >&6; }
11117    fi
11118
11119    CPPFLAGS="$save_CPPFLAGS"
11120    LDFLAGS="$save_LDFLAGS"
11121    LIBS="$save_LIBS"
11122    ;;
11123  esac
11124
11125  case $lt_cv_dlopen_self in
11126  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11127  *) enable_dlopen_self=unknown ;;
11128  esac
11129
11130  case $lt_cv_dlopen_self_static in
11131  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11132  *) enable_dlopen_self_static=unknown ;;
11133  esac
11134fi
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152striplib=
11153old_striplib=
11154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11155$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11156if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11157  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11158  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11160$as_echo "yes" >&6; }
11161else
11162# FIXME - insert some real tests, host_os isn't really good enough
11163  case $host_os in
11164  darwin*)
11165    if test -n "$STRIP" ; then
11166      striplib="$STRIP -x"
11167      old_striplib="$STRIP -S"
11168      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11169$as_echo "yes" >&6; }
11170    else
11171      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172$as_echo "no" >&6; }
11173    fi
11174    ;;
11175  *)
11176    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177$as_echo "no" >&6; }
11178    ;;
11179  esac
11180fi
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193  # Report which library types will actually be built
11194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11195$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11197$as_echo "$can_build_shared" >&6; }
11198
11199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11200$as_echo_n "checking whether to build shared libraries... " >&6; }
11201  test "$can_build_shared" = "no" && enable_shared=no
11202
11203  # On AIX, shared libraries and static libraries use the same namespace, and
11204  # are all built from PIC.
11205  case $host_os in
11206  aix3*)
11207    test "$enable_shared" = yes && enable_static=no
11208    if test -n "$RANLIB"; then
11209      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11210      postinstall_cmds='$RANLIB $lib'
11211    fi
11212    ;;
11213
11214  aix[4-9]*)
11215    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11216      test "$enable_shared" = yes && enable_static=no
11217    fi
11218    ;;
11219  esac
11220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11221$as_echo "$enable_shared" >&6; }
11222
11223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11224$as_echo_n "checking whether to build static libraries... " >&6; }
11225  # Make sure either enable_shared or enable_static is yes.
11226  test "$enable_shared" = yes || enable_static=yes
11227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11228$as_echo "$enable_static" >&6; }
11229
11230
11231
11232
11233fi
11234ac_ext=c
11235ac_cpp='$CPP $CPPFLAGS'
11236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11238ac_compiler_gnu=$ac_cv_c_compiler_gnu
11239
11240CC="$lt_save_CC"
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254        ac_config_commands="$ac_config_commands libtool"
11255
11256
11257
11258
11259# Only expand once:
11260
11261
11262
11263VERSION_SCRIPT_FLAGS=
11264# lt_cv_prog_gnu_ld is from libtool 2.+
11265if test "$lt_cv_prog_gnu_ld" = yes; then
11266  VERSION_SCRIPT_FLAGS=-Wl,--version-script=
11267else
11268  case $host in
11269  *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
11270  esac
11271fi
11272
11273 if test -n "$VERSION_SCRIPT_FLAGS"; then
11274  USE_VERSION_SCRIPT_TRUE=
11275  USE_VERSION_SCRIPT_FALSE='#'
11276else
11277  USE_VERSION_SCRIPT_TRUE='#'
11278  USE_VERSION_SCRIPT_FALSE=
11279fi
11280
11281
11282
11283_cppflags="${CPPFLAGS}"
11284_ldflags="${LDFLAGS}"
11285
11286
11287# Check whether --with-c14n was given.
11288if test "${with_c14n+set}" = set; then :
11289  withval=$with_c14n;
11290fi
11291
11292
11293# Check whether --with-catalog was given.
11294if test "${with_catalog+set}" = set; then :
11295  withval=$with_catalog;
11296fi
11297
11298
11299# Check whether --with-debug was given.
11300if test "${with_debug+set}" = set; then :
11301  withval=$with_debug;
11302fi
11303
11304
11305# Check whether --with-docbook was given.
11306if test "${with_docbook+set}" = set; then :
11307  withval=$with_docbook;
11308fi
11309
11310
11311# Check whether --with-fexceptions was given.
11312if test "${with_fexceptions+set}" = set; then :
11313  withval=$with_fexceptions;
11314fi
11315
11316
11317# Check whether --with-ftp was given.
11318if test "${with_ftp+set}" = set; then :
11319  withval=$with_ftp;
11320fi
11321
11322
11323# Check whether --with-history was given.
11324if test "${with_history+set}" = set; then :
11325  withval=$with_history;
11326fi
11327
11328
11329# Check whether --with-html was given.
11330if test "${with_html+set}" = set; then :
11331  withval=$with_html;
11332fi
11333
11334
11335# Check whether --with-html-dir was given.
11336if test "${with_html_dir+set}" = set; then :
11337  withval=$with_html_dir; HTML_DIR=$withval
11338else
11339  HTML_DIR='$(datadir)/doc'
11340fi
11341
11342
11343
11344# Check whether --with-html-subdir was given.
11345if test "${with_html_subdir+set}" = set; then :
11346  withval=$with_html_subdir; test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"
11347else
11348  HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"
11349fi
11350
11351
11352
11353# Check whether --with-http was given.
11354if test "${with_http+set}" = set; then :
11355  withval=$with_http;
11356fi
11357
11358
11359# Check whether --with-iconv was given.
11360if test "${with_iconv+set}" = set; then :
11361  withval=$with_iconv;
11362fi
11363
11364
11365# Check whether --with-iso8859x was given.
11366if test "${with_iso8859x+set}" = set; then :
11367  withval=$with_iso8859x;
11368fi
11369
11370
11371# Check whether --with-legacy was given.
11372if test "${with_legacy+set}" = set; then :
11373  withval=$with_legacy;
11374fi
11375
11376
11377# Check whether --with-mem_debug was given.
11378if test "${with_mem_debug+set}" = set; then :
11379  withval=$with_mem_debug;
11380fi
11381
11382
11383# Check whether --with-minimum was given.
11384if test "${with_minimum+set}" = set; then :
11385  withval=$with_minimum;
11386fi
11387
11388
11389# Check whether --with-output was given.
11390if test "${with_output+set}" = set; then :
11391  withval=$with_output;
11392fi
11393
11394
11395# Check whether --with-pattern was given.
11396if test "${with_pattern+set}" = set; then :
11397  withval=$with_pattern;
11398fi
11399
11400
11401# Check whether --with-push was given.
11402if test "${with_push+set}" = set; then :
11403  withval=$with_push;
11404fi
11405
11406
11407# Check whether --with-python was given.
11408if test "${with_python+set}" = set; then :
11409  withval=$with_python;
11410fi
11411
11412
11413# Check whether --with-reader was given.
11414if test "${with_reader+set}" = set; then :
11415  withval=$with_reader;
11416fi
11417
11418
11419# Check whether --with-readline was given.
11420if test "${with_readline+set}" = set; then :
11421  withval=$with_readline;
11422  if test "$withval" != "no" -a "$withval" != "yes"; then
11423    RDL_DIR=$withval
11424    CPPFLAGS="${CPPFLAGS} -I$withval/include"
11425    LDFLAGS="${LDFLAGS} -L$withval/lib"
11426  fi
11427
11428fi
11429
11430
11431# Check whether --with-regexps was given.
11432if test "${with_regexps+set}" = set; then :
11433  withval=$with_regexps;
11434fi
11435
11436
11437# Check whether --with-run_debug was given.
11438if test "${with_run_debug+set}" = set; then :
11439  withval=$with_run_debug;
11440fi
11441
11442
11443# Check whether --with-sax1 was given.
11444if test "${with_sax1+set}" = set; then :
11445  withval=$with_sax1;
11446fi
11447
11448
11449# Check whether --with-schemas was given.
11450if test "${with_schemas+set}" = set; then :
11451  withval=$with_schemas;
11452fi
11453
11454
11455# Check whether --with-schematron was given.
11456if test "${with_schematron+set}" = set; then :
11457  withval=$with_schematron;
11458fi
11459
11460
11461# Check whether --with-threads was given.
11462if test "${with_threads+set}" = set; then :
11463  withval=$with_threads;
11464fi
11465
11466
11467# Check whether --with-thread-alloc was given.
11468if test "${with_thread_alloc+set}" = set; then :
11469  withval=$with_thread_alloc;
11470fi
11471
11472
11473# Check whether --with-tree was given.
11474if test "${with_tree+set}" = set; then :
11475  withval=$with_tree;
11476fi
11477
11478
11479# Check whether --with-valid was given.
11480if test "${with_valid+set}" = set; then :
11481  withval=$with_valid;
11482fi
11483
11484
11485# Check whether --with-writer was given.
11486if test "${with_writer+set}" = set; then :
11487  withval=$with_writer;
11488fi
11489
11490
11491# Check whether --with-xinclude was given.
11492if test "${with_xinclude+set}" = set; then :
11493  withval=$with_xinclude;
11494fi
11495
11496
11497# Check whether --with-xpath was given.
11498if test "${with_xpath+set}" = set; then :
11499  withval=$with_xpath;
11500fi
11501
11502
11503# Check whether --with-xptr was given.
11504if test "${with_xptr+set}" = set; then :
11505  withval=$with_xptr;
11506fi
11507
11508
11509# Check whether --with-modules was given.
11510if test "${with_modules+set}" = set; then :
11511  withval=$with_modules;
11512fi
11513
11514
11515# Check whether --with-zlib was given.
11516if test "${with_zlib+set}" = set; then :
11517  withval=$with_zlib;
11518  if test "$withval" != "no" -a "$withval" != "yes"; then
11519    Z_DIR=$withval
11520    CPPFLAGS="${CPPFLAGS} -I$withval/include"
11521    LDFLAGS="${LDFLAGS} -L$withval/lib"
11522  fi
11523
11524fi
11525
11526
11527# Check whether --with-coverage was given.
11528if test "${with_coverage+set}" = set; then :
11529  withval=$with_coverage;
11530fi
11531
11532
11533# Check whether --enable-rebuild-docs was given.
11534if test "${enable_rebuild_docs+set}" = set; then :
11535  enableval=$enable_rebuild_docs;
11536fi
11537
11538 if test "$enable_rebuild_docs" = "no"; then
11539  REBUILD_DOCS_TRUE=
11540  REBUILD_DOCS_FALSE='#'
11541else
11542  REBUILD_DOCS_TRUE='#'
11543  REBUILD_DOCS_FALSE=
11544fi
11545
11546
11547if test "$with_schemas" = "yes"
11548then
11549    with_pattern=yes
11550    with_regexps=yes
11551fi
11552if test "$with_schematron" = "yes"
11553then
11554    with_pattern=yes
11555    with_xpath=yes
11556fi
11557if test "$with_reader" = "yes"
11558then
11559    with_push=yes
11560fi
11561if test "$with_xptr" = "yes"
11562then
11563    with_xpath=yes
11564fi
11565if test "$with_minimum" = "yes"
11566then
11567    echo "Configuring for a minimal library"
11568    if test "$with_c14n" = ""
11569    then
11570      with_c14n=no
11571    fi
11572    if test "$with_catalog" = ""
11573    then
11574      with_catalog=no
11575    fi
11576    echo So far so good!
11577    if test "$with_debug" = ""
11578    then
11579      with_debug=no
11580    fi
11581    if test "$with_docbook" = ""
11582    then
11583      with_docbook=no
11584    fi
11585    if test "$with_fexceptions" = ""
11586    then
11587      with_fexceptions=no
11588    fi
11589    if test "$with_ftp" = ""
11590    then
11591      with_ftp=no
11592    fi
11593    if test "$with_history" = ""
11594    then
11595      with_history=no
11596    fi
11597    if test "$with_html" = ""
11598    then
11599      with_html=no
11600    fi
11601    if test "$with_http" = ""
11602    then
11603      with_http=no
11604    fi
11605    if test "$with_iconv" = ""
11606    then
11607      with_iconv=no
11608    fi
11609    if test "$with_iso8859x" = ""
11610    then
11611      with_iso8859x=no
11612    fi
11613    if test "$with_legacy" = ""
11614    then
11615      with_legacy=no
11616    fi
11617    if test "$with_mem_debug" = ""
11618    then
11619      with_mem_debug=no
11620    fi
11621    if test "$with_output" = ""
11622    then
11623      with_output=no
11624    fi
11625    if test "$with_pattern" = ""
11626    then
11627      with_pattern=no
11628    fi
11629    if test "$with_push" = ""
11630    then
11631      with_push=no
11632    fi
11633    if test "$with_python" = ""
11634    then
11635      with_python=no
11636    fi
11637    if test "$with_reader" = ""
11638    then
11639      with_reader=no
11640    fi
11641    if test "$with_readline" = ""
11642    then
11643      with_readline=no
11644    fi
11645    if test "$with_regexps" = ""
11646    then
11647      with_regexps=no
11648    fi
11649    if test "$with_run_debug" = ""
11650    then
11651      with_run_debug=no
11652    fi
11653    if test "$with_sax1" = ""
11654    then
11655      with_sax1=no
11656    fi
11657    if test "$with_schemas" = ""
11658    then
11659      with_schemas=no
11660    fi
11661    if test "$with_schematron" = ""
11662    then
11663      with_schematron=no
11664    fi
11665    if test "$with_threads" = ""
11666    then
11667      with_threads=no
11668    fi
11669    if test "$with_thread_alloc" = ""
11670    then
11671      with_thread_alloc=no
11672   fi
11673    if test "$with_tree" = ""
11674    then
11675      with_tree=no
11676    fi
11677    if test "$with_valid" = ""
11678    then
11679      with_valid=no
11680    fi
11681    if test "$with_writer" = ""
11682    then
11683      with_writer=no
11684    fi
11685    if test "$with_xinclude" = ""
11686    then
11687      with_xinclude=no
11688    fi
11689    if test "$with_xpath" = ""
11690    then
11691      with_xpath=no
11692    fi
11693    if test "$with_xptr" = ""
11694    then
11695      with_xptr=no
11696    fi
11697    if test "$with_zlib" = ""
11698    then
11699      with_zlib=no
11700    fi
11701    if test "$with_modules" = ""
11702    then
11703      with_modules=no
11704    fi
11705fi
11706
11707echo Checking zlib
11708
11709
11710WITH_ZLIB=0
11711if test "$with_zlib" = "no"; then
11712    echo "Disabling compression support"
11713else
11714    for ac_header in zlib.h
11715do :
11716  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11717if test "x$ac_cv_header_zlib_h" = x""yes; then :
11718  cat >>confdefs.h <<_ACEOF
11719#define HAVE_ZLIB_H 1
11720_ACEOF
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
11722$as_echo_n "checking for gzread in -lz... " >&6; }
11723if test "${ac_cv_lib_z_gzread+set}" = set; then :
11724  $as_echo_n "(cached) " >&6
11725else
11726  ac_check_lib_save_LIBS=$LIBS
11727LIBS="-lz  $LIBS"
11728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729/* end confdefs.h.  */
11730
11731/* Override any GCC internal prototype to avoid an error.
11732   Use char because int might match the return type of a GCC
11733   builtin and then its argument prototype would still apply.  */
11734#ifdef __cplusplus
11735extern "C"
11736#endif
11737char gzread ();
11738int
11739main ()
11740{
11741return gzread ();
11742  ;
11743  return 0;
11744}
11745_ACEOF
11746if ac_fn_c_try_link "$LINENO"; then :
11747  ac_cv_lib_z_gzread=yes
11748else
11749  ac_cv_lib_z_gzread=no
11750fi
11751rm -f core conftest.err conftest.$ac_objext \
11752    conftest$ac_exeext conftest.$ac_ext
11753LIBS=$ac_check_lib_save_LIBS
11754fi
11755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
11756$as_echo "$ac_cv_lib_z_gzread" >&6; }
11757if test "x$ac_cv_lib_z_gzread" = x""yes; then :
11758
11759
11760$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
11761
11762	    WITH_ZLIB=1
11763	    if test "x${Z_DIR}" != "x"; then
11764		Z_CFLAGS="-I${Z_DIR}/include"
11765		Z_LIBS="-L${Z_DIR}/lib -lz"
11766		case ${host} in
11767		    *-*-solaris*)
11768			Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
11769			;;
11770		esac
11771	    else
11772		Z_LIBS="-lz"
11773	    fi
11774fi
11775
11776fi
11777
11778done
11779
11780fi
11781
11782
11783
11784
11785
11786CPPFLAGS=${_cppflags}
11787LDFLAGS=${_ldflags}
11788
11789echo Checking headers
11790
11791ac_header_dirent=no
11792for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11793  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11795$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11797  $as_echo_n "(cached) " >&6
11798else
11799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800/* end confdefs.h.  */
11801#include <sys/types.h>
11802#include <$ac_hdr>
11803
11804int
11805main ()
11806{
11807if ((DIR *) 0)
11808return 0;
11809  ;
11810  return 0;
11811}
11812_ACEOF
11813if ac_fn_c_try_compile "$LINENO"; then :
11814  eval "$as_ac_Header=yes"
11815else
11816  eval "$as_ac_Header=no"
11817fi
11818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819fi
11820eval ac_res=\$$as_ac_Header
11821	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11822$as_echo "$ac_res" >&6; }
11823eval as_val=\$$as_ac_Header
11824   if test "x$as_val" = x""yes; then :
11825  cat >>confdefs.h <<_ACEOF
11826#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11827_ACEOF
11828
11829ac_header_dirent=$ac_hdr; break
11830fi
11831
11832done
11833# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11834if test $ac_header_dirent = dirent.h; then
11835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11836$as_echo_n "checking for library containing opendir... " >&6; }
11837if test "${ac_cv_search_opendir+set}" = set; then :
11838  $as_echo_n "(cached) " >&6
11839else
11840  ac_func_search_save_LIBS=$LIBS
11841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842/* end confdefs.h.  */
11843
11844/* Override any GCC internal prototype to avoid an error.
11845   Use char because int might match the return type of a GCC
11846   builtin and then its argument prototype would still apply.  */
11847#ifdef __cplusplus
11848extern "C"
11849#endif
11850char opendir ();
11851int
11852main ()
11853{
11854return opendir ();
11855  ;
11856  return 0;
11857}
11858_ACEOF
11859for ac_lib in '' dir; do
11860  if test -z "$ac_lib"; then
11861    ac_res="none required"
11862  else
11863    ac_res=-l$ac_lib
11864    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11865  fi
11866  if ac_fn_c_try_link "$LINENO"; then :
11867  ac_cv_search_opendir=$ac_res
11868fi
11869rm -f core conftest.err conftest.$ac_objext \
11870    conftest$ac_exeext
11871  if test "${ac_cv_search_opendir+set}" = set; then :
11872  break
11873fi
11874done
11875if test "${ac_cv_search_opendir+set}" = set; then :
11876
11877else
11878  ac_cv_search_opendir=no
11879fi
11880rm conftest.$ac_ext
11881LIBS=$ac_func_search_save_LIBS
11882fi
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11884$as_echo "$ac_cv_search_opendir" >&6; }
11885ac_res=$ac_cv_search_opendir
11886if test "$ac_res" != no; then :
11887  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11888
11889fi
11890
11891else
11892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11893$as_echo_n "checking for library containing opendir... " >&6; }
11894if test "${ac_cv_search_opendir+set}" = set; then :
11895  $as_echo_n "(cached) " >&6
11896else
11897  ac_func_search_save_LIBS=$LIBS
11898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899/* end confdefs.h.  */
11900
11901/* Override any GCC internal prototype to avoid an error.
11902   Use char because int might match the return type of a GCC
11903   builtin and then its argument prototype would still apply.  */
11904#ifdef __cplusplus
11905extern "C"
11906#endif
11907char opendir ();
11908int
11909main ()
11910{
11911return opendir ();
11912  ;
11913  return 0;
11914}
11915_ACEOF
11916for ac_lib in '' x; do
11917  if test -z "$ac_lib"; then
11918    ac_res="none required"
11919  else
11920    ac_res=-l$ac_lib
11921    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11922  fi
11923  if ac_fn_c_try_link "$LINENO"; then :
11924  ac_cv_search_opendir=$ac_res
11925fi
11926rm -f core conftest.err conftest.$ac_objext \
11927    conftest$ac_exeext
11928  if test "${ac_cv_search_opendir+set}" = set; then :
11929  break
11930fi
11931done
11932if test "${ac_cv_search_opendir+set}" = set; then :
11933
11934else
11935  ac_cv_search_opendir=no
11936fi
11937rm conftest.$ac_ext
11938LIBS=$ac_func_search_save_LIBS
11939fi
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11941$as_echo "$ac_cv_search_opendir" >&6; }
11942ac_res=$ac_cv_search_opendir
11943if test "$ac_res" != no; then :
11944  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11945
11946fi
11947
11948fi
11949
11950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11951$as_echo_n "checking for ANSI C header files... " >&6; }
11952if test "${ac_cv_header_stdc+set}" = set; then :
11953  $as_echo_n "(cached) " >&6
11954else
11955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956/* end confdefs.h.  */
11957#include <stdlib.h>
11958#include <stdarg.h>
11959#include <string.h>
11960#include <float.h>
11961
11962int
11963main ()
11964{
11965
11966  ;
11967  return 0;
11968}
11969_ACEOF
11970if ac_fn_c_try_compile "$LINENO"; then :
11971  ac_cv_header_stdc=yes
11972else
11973  ac_cv_header_stdc=no
11974fi
11975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976
11977if test $ac_cv_header_stdc = yes; then
11978  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980/* end confdefs.h.  */
11981#include <string.h>
11982
11983_ACEOF
11984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11985  $EGREP "memchr" >/dev/null 2>&1; then :
11986
11987else
11988  ac_cv_header_stdc=no
11989fi
11990rm -f conftest*
11991
11992fi
11993
11994if test $ac_cv_header_stdc = yes; then
11995  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997/* end confdefs.h.  */
11998#include <stdlib.h>
11999
12000_ACEOF
12001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12002  $EGREP "free" >/dev/null 2>&1; then :
12003
12004else
12005  ac_cv_header_stdc=no
12006fi
12007rm -f conftest*
12008
12009fi
12010
12011if test $ac_cv_header_stdc = yes; then
12012  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12013  if test "$cross_compiling" = yes; then :
12014  :
12015else
12016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017/* end confdefs.h.  */
12018#include <ctype.h>
12019#include <stdlib.h>
12020#if ((' ' & 0x0FF) == 0x020)
12021# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12022# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12023#else
12024# define ISLOWER(c) \
12025		   (('a' <= (c) && (c) <= 'i') \
12026		     || ('j' <= (c) && (c) <= 'r') \
12027		     || ('s' <= (c) && (c) <= 'z'))
12028# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12029#endif
12030
12031#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12032int
12033main ()
12034{
12035  int i;
12036  for (i = 0; i < 256; i++)
12037    if (XOR (islower (i), ISLOWER (i))
12038	|| toupper (i) != TOUPPER (i))
12039      return 2;
12040  return 0;
12041}
12042_ACEOF
12043if ac_fn_c_try_run "$LINENO"; then :
12044
12045else
12046  ac_cv_header_stdc=no
12047fi
12048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12049  conftest.$ac_objext conftest.beam conftest.$ac_ext
12050fi
12051
12052fi
12053fi
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12055$as_echo "$ac_cv_header_stdc" >&6; }
12056if test $ac_cv_header_stdc = yes; then
12057
12058$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12059
12060fi
12061
12062for ac_header in fcntl.h
12063do :
12064  ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
12065if test "x$ac_cv_header_fcntl_h" = x""yes; then :
12066  cat >>confdefs.h <<_ACEOF
12067#define HAVE_FCNTL_H 1
12068_ACEOF
12069
12070fi
12071
12072done
12073
12074for ac_header in unistd.h
12075do :
12076  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
12077if test "x$ac_cv_header_unistd_h" = x""yes; then :
12078  cat >>confdefs.h <<_ACEOF
12079#define HAVE_UNISTD_H 1
12080_ACEOF
12081
12082fi
12083
12084done
12085
12086for ac_header in ctype.h
12087do :
12088  ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
12089if test "x$ac_cv_header_ctype_h" = x""yes; then :
12090  cat >>confdefs.h <<_ACEOF
12091#define HAVE_CTYPE_H 1
12092_ACEOF
12093
12094fi
12095
12096done
12097
12098for ac_header in dirent.h
12099do :
12100  ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
12101if test "x$ac_cv_header_dirent_h" = x""yes; then :
12102  cat >>confdefs.h <<_ACEOF
12103#define HAVE_DIRENT_H 1
12104_ACEOF
12105
12106fi
12107
12108done
12109
12110for ac_header in errno.h
12111do :
12112  ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
12113if test "x$ac_cv_header_errno_h" = x""yes; then :
12114  cat >>confdefs.h <<_ACEOF
12115#define HAVE_ERRNO_H 1
12116_ACEOF
12117
12118fi
12119
12120done
12121
12122for ac_header in malloc.h
12123do :
12124  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
12125if test "x$ac_cv_header_malloc_h" = x""yes; then :
12126  cat >>confdefs.h <<_ACEOF
12127#define HAVE_MALLOC_H 1
12128_ACEOF
12129
12130fi
12131
12132done
12133
12134for ac_header in stdarg.h
12135do :
12136  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
12137if test "x$ac_cv_header_stdarg_h" = x""yes; then :
12138  cat >>confdefs.h <<_ACEOF
12139#define HAVE_STDARG_H 1
12140_ACEOF
12141
12142fi
12143
12144done
12145
12146for ac_header in sys/stat.h
12147do :
12148  ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12149if test "x$ac_cv_header_sys_stat_h" = x""yes; then :
12150  cat >>confdefs.h <<_ACEOF
12151#define HAVE_SYS_STAT_H 1
12152_ACEOF
12153
12154fi
12155
12156done
12157
12158for ac_header in sys/types.h
12159do :
12160  ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12161if test "x$ac_cv_header_sys_types_h" = x""yes; then :
12162  cat >>confdefs.h <<_ACEOF
12163#define HAVE_SYS_TYPES_H 1
12164_ACEOF
12165
12166fi
12167
12168done
12169
12170for ac_header in stdint.h
12171do :
12172  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12173if test "x$ac_cv_header_stdint_h" = x""yes; then :
12174  cat >>confdefs.h <<_ACEOF
12175#define HAVE_STDINT_H 1
12176_ACEOF
12177
12178fi
12179
12180done
12181
12182for ac_header in inttypes.h.h
12183do :
12184  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h.h" "ac_cv_header_inttypes_h_h" "$ac_includes_default"
12185if test "x$ac_cv_header_inttypes_h_h" = x""yes; then :
12186  cat >>confdefs.h <<_ACEOF
12187#define HAVE_INTTYPES_H_H 1
12188_ACEOF
12189
12190fi
12191
12192done
12193
12194for ac_header in time.h
12195do :
12196  ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
12197if test "x$ac_cv_header_time_h" = x""yes; then :
12198  cat >>confdefs.h <<_ACEOF
12199#define HAVE_TIME_H 1
12200_ACEOF
12201
12202fi
12203
12204done
12205
12206for ac_header in ansidecl.h
12207do :
12208  ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
12209if test "x$ac_cv_header_ansidecl_h" = x""yes; then :
12210  cat >>confdefs.h <<_ACEOF
12211#define HAVE_ANSIDECL_H 1
12212_ACEOF
12213
12214fi
12215
12216done
12217
12218for ac_header in ieeefp.h
12219do :
12220  ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
12221if test "x$ac_cv_header_ieeefp_h" = x""yes; then :
12222  cat >>confdefs.h <<_ACEOF
12223#define HAVE_IEEEFP_H 1
12224_ACEOF
12225
12226fi
12227
12228done
12229
12230for ac_header in nan.h
12231do :
12232  ac_fn_c_check_header_mongrel "$LINENO" "nan.h" "ac_cv_header_nan_h" "$ac_includes_default"
12233if test "x$ac_cv_header_nan_h" = x""yes; then :
12234  cat >>confdefs.h <<_ACEOF
12235#define HAVE_NAN_H 1
12236_ACEOF
12237
12238fi
12239
12240done
12241
12242for ac_header in math.h
12243do :
12244  ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
12245if test "x$ac_cv_header_math_h" = x""yes; then :
12246  cat >>confdefs.h <<_ACEOF
12247#define HAVE_MATH_H 1
12248_ACEOF
12249
12250fi
12251
12252done
12253
12254for ac_header in limits.h
12255do :
12256  ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
12257if test "x$ac_cv_header_limits_h" = x""yes; then :
12258  cat >>confdefs.h <<_ACEOF
12259#define HAVE_LIMITS_H 1
12260_ACEOF
12261
12262fi
12263
12264done
12265
12266for ac_header in fp_class.h
12267do :
12268  ac_fn_c_check_header_mongrel "$LINENO" "fp_class.h" "ac_cv_header_fp_class_h" "$ac_includes_default"
12269if test "x$ac_cv_header_fp_class_h" = x""yes; then :
12270  cat >>confdefs.h <<_ACEOF
12271#define HAVE_FP_CLASS_H 1
12272_ACEOF
12273
12274fi
12275
12276done
12277
12278for ac_header in float.h
12279do :
12280  ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
12281if test "x$ac_cv_header_float_h" = x""yes; then :
12282  cat >>confdefs.h <<_ACEOF
12283#define HAVE_FLOAT_H 1
12284_ACEOF
12285
12286fi
12287
12288done
12289
12290for ac_header in stdlib.h
12291do :
12292  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12293if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12294  cat >>confdefs.h <<_ACEOF
12295#define HAVE_STDLIB_H 1
12296_ACEOF
12297
12298fi
12299
12300done
12301
12302for ac_header in sys/socket.h
12303do :
12304  ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "#if HAVE_SYS_TYPES_H
12305# include <sys/types.h>
12306# endif
12307
12308"
12309if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
12310  cat >>confdefs.h <<_ACEOF
12311#define HAVE_SYS_SOCKET_H 1
12312_ACEOF
12313
12314fi
12315
12316done
12317
12318for ac_header in netinet/in.h
12319do :
12320  ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#if HAVE_SYS_TYPES_H
12321# include <sys/types.h>
12322# endif
12323
12324"
12325if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
12326  cat >>confdefs.h <<_ACEOF
12327#define HAVE_NETINET_IN_H 1
12328_ACEOF
12329
12330fi
12331
12332done
12333
12334for ac_header in arpa/inet.h
12335do :
12336  ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "#if HAVE_SYS_TYPES_H
12337# include <sys/types.h>
12338# endif
12339#if HAVE_ARPA_INET_H
12340# include <arpa/inet.h>
12341# endif
12342
12343"
12344if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
12345  cat >>confdefs.h <<_ACEOF
12346#define HAVE_ARPA_INET_H 1
12347_ACEOF
12348
12349fi
12350
12351done
12352
12353for ac_header in netdb.h
12354do :
12355  ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
12356if test "x$ac_cv_header_netdb_h" = x""yes; then :
12357  cat >>confdefs.h <<_ACEOF
12358#define HAVE_NETDB_H 1
12359_ACEOF
12360
12361fi
12362
12363done
12364
12365for ac_header in sys/time.h
12366do :
12367  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12368if test "x$ac_cv_header_sys_time_h" = x""yes; then :
12369  cat >>confdefs.h <<_ACEOF
12370#define HAVE_SYS_TIME_H 1
12371_ACEOF
12372
12373fi
12374
12375done
12376
12377for ac_header in sys/select.h
12378do :
12379  ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12380if test "x$ac_cv_header_sys_select_h" = x""yes; then :
12381  cat >>confdefs.h <<_ACEOF
12382#define HAVE_SYS_SELECT_H 1
12383_ACEOF
12384
12385fi
12386
12387done
12388
12389for ac_header in poll.h
12390do :
12391  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
12392if test "x$ac_cv_header_poll_h" = x""yes; then :
12393  cat >>confdefs.h <<_ACEOF
12394#define HAVE_POLL_H 1
12395_ACEOF
12396
12397fi
12398
12399done
12400
12401for ac_header in sys/mman.h
12402do :
12403  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12404if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12405  cat >>confdefs.h <<_ACEOF
12406#define HAVE_SYS_MMAN_H 1
12407_ACEOF
12408
12409fi
12410
12411done
12412
12413for ac_header in sys/timeb.h
12414do :
12415  ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
12416if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
12417  cat >>confdefs.h <<_ACEOF
12418#define HAVE_SYS_TIMEB_H 1
12419_ACEOF
12420
12421fi
12422
12423done
12424
12425for ac_header in signal.h
12426do :
12427  ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
12428if test "x$ac_cv_header_signal_h" = x""yes; then :
12429  cat >>confdefs.h <<_ACEOF
12430#define HAVE_SIGNAL_H 1
12431_ACEOF
12432
12433fi
12434
12435done
12436
12437for ac_header in arpa/nameser.h
12438do :
12439  ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#if HAVE_SYS_TYPES_H
12440# include <sys/types.h>
12441# endif
12442
12443"
12444if test "x$ac_cv_header_arpa_nameser_h" = x""yes; then :
12445  cat >>confdefs.h <<_ACEOF
12446#define HAVE_ARPA_NAMESER_H 1
12447_ACEOF
12448
12449fi
12450
12451done
12452
12453for ac_header in resolv.h
12454do :
12455  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
12456# include <sys/types.h>
12457# endif
12458#if HAVE_NETINET_IN_H
12459# include <netinet/in.h>
12460# endif
12461#if HAVE_ARPA_NAMESER_H
12462# include <arpa/nameser.h>
12463# endif
12464
12465"
12466if test "x$ac_cv_header_resolv_h" = x""yes; then :
12467  cat >>confdefs.h <<_ACEOF
12468#define HAVE_RESOLV_H 1
12469_ACEOF
12470
12471fi
12472
12473done
12474
12475for ac_header in dl.h
12476do :
12477  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
12478if test "x$ac_cv_header_dl_h" = x""yes; then :
12479  cat >>confdefs.h <<_ACEOF
12480#define HAVE_DL_H 1
12481_ACEOF
12482
12483fi
12484
12485done
12486
12487for ac_header in dlfcn.h
12488do :
12489  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12490if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
12491  cat >>confdefs.h <<_ACEOF
12492#define HAVE_DLFCN_H 1
12493_ACEOF
12494
12495fi
12496
12497done
12498
12499
12500
12501echo Checking libraries
12502
12503for ac_func in strftime
12504do :
12505  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12506if test "x$ac_cv_func_strftime" = x""yes; then :
12507  cat >>confdefs.h <<_ACEOF
12508#define HAVE_STRFTIME 1
12509_ACEOF
12510
12511else
12512  # strftime is in -lintl on SCO UNIX.
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12514$as_echo_n "checking for strftime in -lintl... " >&6; }
12515if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12516  $as_echo_n "(cached) " >&6
12517else
12518  ac_check_lib_save_LIBS=$LIBS
12519LIBS="-lintl  $LIBS"
12520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521/* end confdefs.h.  */
12522
12523/* Override any GCC internal prototype to avoid an error.
12524   Use char because int might match the return type of a GCC
12525   builtin and then its argument prototype would still apply.  */
12526#ifdef __cplusplus
12527extern "C"
12528#endif
12529char strftime ();
12530int
12531main ()
12532{
12533return strftime ();
12534  ;
12535  return 0;
12536}
12537_ACEOF
12538if ac_fn_c_try_link "$LINENO"; then :
12539  ac_cv_lib_intl_strftime=yes
12540else
12541  ac_cv_lib_intl_strftime=no
12542fi
12543rm -f core conftest.err conftest.$ac_objext \
12544    conftest$ac_exeext conftest.$ac_ext
12545LIBS=$ac_check_lib_save_LIBS
12546fi
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12548$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12549if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12550  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12551
12552LIBS="-lintl $LIBS"
12553fi
12554
12555fi
12556done
12557
12558for ac_func in strdup strndup strerror
12559do :
12560  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12561ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12562eval as_val=\$$as_ac_var
12563   if test "x$as_val" = x""yes; then :
12564  cat >>confdefs.h <<_ACEOF
12565#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12566_ACEOF
12567
12568fi
12569done
12570
12571for ac_func in finite isnand fp_class class fpclass
12572do :
12573  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12574ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12575eval as_val=\$$as_ac_var
12576   if test "x$as_val" = x""yes; then :
12577  cat >>confdefs.h <<_ACEOF
12578#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12579_ACEOF
12580
12581fi
12582done
12583
12584for ac_func in strftime localtime gettimeofday ftime
12585do :
12586  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12587ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12588eval as_val=\$$as_ac_var
12589   if test "x$as_val" = x""yes; then :
12590  cat >>confdefs.h <<_ACEOF
12591#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12592_ACEOF
12593
12594fi
12595done
12596
12597for ac_func in stat _stat signal
12598do :
12599  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12600ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12601eval as_val=\$$as_ac_var
12602   if test "x$as_val" = x""yes; then :
12603  cat >>confdefs.h <<_ACEOF
12604#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12605_ACEOF
12606
12607fi
12608done
12609
12610
12611for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
12612do :
12613  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12614ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12615eval as_val=\$$as_ac_var
12616   if test "x$as_val" = x""yes; then :
12617  cat >>confdefs.h <<_ACEOF
12618#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12619_ACEOF
12620
12621else
12622  NEED_TRIO=1
12623fi
12624done
12625
12626
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
12628$as_echo_n "checking for va_copy... " >&6; }
12629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630/* end confdefs.h.  */
12631#include <stdarg.h>
12632va_list ap1,ap2;
12633int
12634main ()
12635{
12636va_copy(ap1,ap2);
12637  ;
12638  return 0;
12639}
12640_ACEOF
12641if ac_fn_c_try_link "$LINENO"; then :
12642  have_va_copy=yes
12643else
12644  have_va_copy=no
12645fi
12646rm -f core conftest.err conftest.$ac_objext \
12647    conftest$ac_exeext conftest.$ac_ext
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
12649$as_echo "$have_va_copy" >&6; }
12650if test x"$have_va_copy" = x"yes"; then
12651
12652$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
12653
12654else
12655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
12656$as_echo_n "checking for __va_copy... " >&6; }
12657    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658/* end confdefs.h.  */
12659#include <stdarg.h>
12660    va_list ap1,ap2;
12661int
12662main ()
12663{
12664__va_copy(ap1,ap2);
12665  ;
12666  return 0;
12667}
12668_ACEOF
12669if ac_fn_c_try_link "$LINENO"; then :
12670  have___va_copy=yes
12671else
12672  have___va_copy=no
12673fi
12674rm -f core conftest.err conftest.$ac_objext \
12675    conftest$ac_exeext conftest.$ac_ext
12676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___va_copy" >&5
12677$as_echo "$have___va_copy" >&6; }
12678    if test x"$have___va_copy" = x"yes"; then
12679
12680$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
12681
12682    fi
12683fi
12684
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
12686$as_echo_n "checking for library containing gethostent... " >&6; }
12687if test "${ac_cv_search_gethostent+set}" = set; then :
12688  $as_echo_n "(cached) " >&6
12689else
12690  ac_func_search_save_LIBS=$LIBS
12691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692/* end confdefs.h.  */
12693
12694/* Override any GCC internal prototype to avoid an error.
12695   Use char because int might match the return type of a GCC
12696   builtin and then its argument prototype would still apply.  */
12697#ifdef __cplusplus
12698extern "C"
12699#endif
12700char gethostent ();
12701int
12702main ()
12703{
12704return gethostent ();
12705  ;
12706  return 0;
12707}
12708_ACEOF
12709for ac_lib in '' nsl; do
12710  if test -z "$ac_lib"; then
12711    ac_res="none required"
12712  else
12713    ac_res=-l$ac_lib
12714    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12715  fi
12716  if ac_fn_c_try_link "$LINENO"; then :
12717  ac_cv_search_gethostent=$ac_res
12718fi
12719rm -f core conftest.err conftest.$ac_objext \
12720    conftest$ac_exeext
12721  if test "${ac_cv_search_gethostent+set}" = set; then :
12722  break
12723fi
12724done
12725if test "${ac_cv_search_gethostent+set}" = set; then :
12726
12727else
12728  ac_cv_search_gethostent=no
12729fi
12730rm conftest.$ac_ext
12731LIBS=$ac_func_search_save_LIBS
12732fi
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
12734$as_echo "$ac_cv_search_gethostent" >&6; }
12735ac_res=$ac_cv_search_gethostent
12736if test "$ac_res" != no; then :
12737  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12738
12739fi
12740
12741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
12742$as_echo_n "checking for library containing setsockopt... " >&6; }
12743if test "${ac_cv_search_setsockopt+set}" = set; then :
12744  $as_echo_n "(cached) " >&6
12745else
12746  ac_func_search_save_LIBS=$LIBS
12747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748/* end confdefs.h.  */
12749
12750/* Override any GCC internal prototype to avoid an error.
12751   Use char because int might match the return type of a GCC
12752   builtin and then its argument prototype would still apply.  */
12753#ifdef __cplusplus
12754extern "C"
12755#endif
12756char setsockopt ();
12757int
12758main ()
12759{
12760return setsockopt ();
12761  ;
12762  return 0;
12763}
12764_ACEOF
12765for ac_lib in '' socket net network; do
12766  if test -z "$ac_lib"; then
12767    ac_res="none required"
12768  else
12769    ac_res=-l$ac_lib
12770    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12771  fi
12772  if ac_fn_c_try_link "$LINENO"; then :
12773  ac_cv_search_setsockopt=$ac_res
12774fi
12775rm -f core conftest.err conftest.$ac_objext \
12776    conftest$ac_exeext
12777  if test "${ac_cv_search_setsockopt+set}" = set; then :
12778  break
12779fi
12780done
12781if test "${ac_cv_search_setsockopt+set}" = set; then :
12782
12783else
12784  ac_cv_search_setsockopt=no
12785fi
12786rm conftest.$ac_ext
12787LIBS=$ac_func_search_save_LIBS
12788fi
12789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
12790$as_echo "$ac_cv_search_setsockopt" >&6; }
12791ac_res=$ac_cv_search_setsockopt
12792if test "$ac_res" != no; then :
12793  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12794
12795fi
12796
12797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12798$as_echo_n "checking for library containing connect... " >&6; }
12799if test "${ac_cv_search_connect+set}" = set; then :
12800  $as_echo_n "(cached) " >&6
12801else
12802  ac_func_search_save_LIBS=$LIBS
12803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804/* end confdefs.h.  */
12805
12806/* Override any GCC internal prototype to avoid an error.
12807   Use char because int might match the return type of a GCC
12808   builtin and then its argument prototype would still apply.  */
12809#ifdef __cplusplus
12810extern "C"
12811#endif
12812char connect ();
12813int
12814main ()
12815{
12816return connect ();
12817  ;
12818  return 0;
12819}
12820_ACEOF
12821for ac_lib in '' inet; do
12822  if test -z "$ac_lib"; then
12823    ac_res="none required"
12824  else
12825    ac_res=-l$ac_lib
12826    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12827  fi
12828  if ac_fn_c_try_link "$LINENO"; then :
12829  ac_cv_search_connect=$ac_res
12830fi
12831rm -f core conftest.err conftest.$ac_objext \
12832    conftest$ac_exeext
12833  if test "${ac_cv_search_connect+set}" = set; then :
12834  break
12835fi
12836done
12837if test "${ac_cv_search_connect+set}" = set; then :
12838
12839else
12840  ac_cv_search_connect=no
12841fi
12842rm conftest.$ac_ext
12843LIBS=$ac_func_search_save_LIBS
12844fi
12845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12846$as_echo "$ac_cv_search_connect" >&6; }
12847ac_res=$ac_cv_search_connect
12848if test "$ac_res" != no; then :
12849  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12850
12851fi
12852
12853
12854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket length (socklen_t)" >&5
12855$as_echo_n "checking for type of socket length (socklen_t)... " >&6; }
12856cat > conftest.$ac_ext <<EOF
12857#line 12857 "configure"
12858#include "confdefs.h"
12859
12860#include <stddef.h>
12861#include <sys/types.h>
12862#include <sys/socket.h>
12863int main(void) {
12864
12865(void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
12866; return 0; }
12867EOF
12868if { (eval echo configure:12868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12869  rm -rf conftest*
12870
12871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t *" >&5
12872$as_echo "socklen_t *" >&6; }
12873  XML_SOCKLEN_T=socklen_t
12874else
12875  echo "configure: failed program was:" >&5
12876  cat conftest.$ac_ext >&5
12877  rm -rf conftest*
12878
12879  cat > conftest.$ac_ext <<EOF
12880#line 12880 "configure"
12881#include "confdefs.h"
12882
12883#include <stddef.h>
12884#include <sys/types.h>
12885#include <sys/socket.h>
12886int main(void) {
12887
12888(void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
12889; return 0; }
12890EOF
12891if { (eval echo configure:12891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12892  rm -rf conftest*
12893
12894    { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t *" >&5
12895$as_echo "size_t *" >&6; }
12896    XML_SOCKLEN_T=size_t
12897else
12898  echo "configure: failed program was:" >&5
12899  cat conftest.$ac_ext >&5
12900  rm -rf conftest*
12901
12902    cat > conftest.$ac_ext <<EOF
12903#line 12903 "configure"
12904#include "confdefs.h"
12905
12906#include <stddef.h>
12907#include <sys/types.h>
12908#include <sys/socket.h>
12909int main(void) {
12910
12911(void)getsockopt (1, 1, 1, NULL, (int *)NULL)
12912; return 0; }
12913EOF
12914if { (eval echo configure:12914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12915  rm -rf conftest*
12916
12917      { $as_echo "$as_me:${as_lineno-$LINENO}: result: int *" >&5
12918$as_echo "int *" >&6; }
12919      XML_SOCKLEN_T=int
12920else
12921  echo "configure: failed program was:" >&5
12922  cat conftest.$ac_ext >&5
12923  rm -rf conftest*
12924
12925      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine" >&5
12926$as_echo "$as_me: WARNING: could not determine" >&2;}
12927      XML_SOCKLEN_T="int"
12928fi
12929rm -f conftest*
12930fi
12931rm -f conftest*
12932fi
12933rm -f conftest*
12934
12935cat >>confdefs.h <<_ACEOF
12936#define XML_SOCKLEN_T $XML_SOCKLEN_T
12937_ACEOF
12938
12939
12940
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
12942$as_echo_n "checking whether to enable IPv6... " >&6; }
12943# Check whether --enable-ipv6 was given.
12944if test "${enable_ipv6+set}" = set; then :
12945  enableval=$enable_ipv6;
12946else
12947  enable_ipv6=yes
12948fi
12949
12950if test "$with_minimum" = "yes"
12951then
12952    enable_ipv6=no
12953fi
12954if test $enable_ipv6 = yes; then
12955  have_ipv6=no
12956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957/* end confdefs.h.  */
12958
12959    #include <sys/types.h>
12960    #include <sys/socket.h>
12961
12962int
12963main ()
12964{
12965
12966    struct sockaddr_storage ss;
12967    socket(AF_INET6, SOCK_STREAM, 0)
12968
12969  ;
12970  return 0;
12971}
12972_ACEOF
12973if ac_fn_c_try_compile "$LINENO"; then :
12974  have_ipv6=yes
12975else
12976  have_ipv6=no
12977
12978fi
12979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipv6" >&5
12981$as_echo "$have_ipv6" >&6; }
12982
12983  if test $have_ipv6 = yes; then
12984
12985$as_echo "#define SUPPORT_IP6 /**/" >>confdefs.h
12986
12987    have_broken_ss_family=no
12988
12989                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr::ss_family" >&5
12990$as_echo_n "checking struct sockaddr::ss_family... " >&6; }
12991    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992/* end confdefs.h.  */
12993
12994      #include <sys/types.h>
12995      #include <sys/socket.h>
12996
12997int
12998main ()
12999{
13000
13001      struct sockaddr_storage ss ;
13002      ss.ss_family = 0 ;
13003
13004  ;
13005  return 0;
13006}
13007_ACEOF
13008if ac_fn_c_try_compile "$LINENO"; then :
13009  have_ss_family=yes
13010else
13011  have_ss_family=no
13012
13013fi
13014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ss_family" >&5
13016$as_echo "$have_ss_family" >&6; }
13017    if test x$have_ss_family = xno ; then
13018      { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken struct sockaddr::ss_family" >&5
13019$as_echo_n "checking broken struct sockaddr::ss_family... " >&6; }
13020      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021/* end confdefs.h.  */
13022
13023        #include <sys/types.h>
13024        #include <sys/socket.h>
13025
13026int
13027main ()
13028{
13029
13030        struct sockaddr_storage ss ;
13031        ss.__ss_family = 0 ;
13032
13033  ;
13034  return 0;
13035}
13036_ACEOF
13037if ac_fn_c_try_compile "$LINENO"; then :
13038  have_broken_ss_family=yes
13039else
13040  have_broken_ss_family=no
13041
13042fi
13043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_broken_ss_family" >&5
13045$as_echo "$have_broken_ss_family" >&6; }
13046      if test x$have_broken_ss_family = xyes ; then
13047
13048$as_echo "#define HAVE_BROKEN_SS_FAMILY /**/" >>confdefs.h
13049
13050
13051$as_echo "#define ss_family __ss_family" >>confdefs.h
13052
13053      else
13054        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ss_family and __ss_family not found" >&5
13055$as_echo "$as_me: WARNING: ss_family and __ss_family not found" >&2;}
13056      fi
13057    fi
13058
13059    have_getaddrinfo=no
13060    ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13061if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
13062  have_getaddrinfo=yes
13063fi
13064
13065    if test $have_getaddrinfo != yes; then
13066      for lib in bsd socket inet; do
13067        as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
13068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib" >&5
13069$as_echo_n "checking for getaddrinfo in -l$lib... " >&6; }
13070if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
13071  $as_echo_n "(cached) " >&6
13072else
13073  ac_check_lib_save_LIBS=$LIBS
13074LIBS="-l$lib  $LIBS"
13075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076/* end confdefs.h.  */
13077
13078/* Override any GCC internal prototype to avoid an error.
13079   Use char because int might match the return type of a GCC
13080   builtin and then its argument prototype would still apply.  */
13081#ifdef __cplusplus
13082extern "C"
13083#endif
13084char getaddrinfo ();
13085int
13086main ()
13087{
13088return getaddrinfo ();
13089  ;
13090  return 0;
13091}
13092_ACEOF
13093if ac_fn_c_try_link "$LINENO"; then :
13094  eval "$as_ac_Lib=yes"
13095else
13096  eval "$as_ac_Lib=no"
13097fi
13098rm -f core conftest.err conftest.$ac_objext \
13099    conftest$ac_exeext conftest.$ac_ext
13100LIBS=$ac_check_lib_save_LIBS
13101fi
13102eval ac_res=\$$as_ac_Lib
13103	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13104$as_echo "$ac_res" >&6; }
13105eval as_val=\$$as_ac_Lib
13106   if test "x$as_val" = x""yes; then :
13107  LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
13108fi
13109
13110      done
13111    fi
13112
13113    if test $have_getaddrinfo = yes; then
13114
13115$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
13116
13117    fi
13118  fi
13119fi
13120
13121
13122ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
13123if test "x$ac_cv_func_isnan" = x""yes; then :
13124
13125$as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
13126
13127else
13128  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
13129$as_echo_n "checking for isnan in -lm... " >&6; }
13130if test "${ac_cv_lib_m_isnan+set}" = set; then :
13131  $as_echo_n "(cached) " >&6
13132else
13133  ac_check_lib_save_LIBS=$LIBS
13134LIBS="-lm  $LIBS"
13135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136/* end confdefs.h.  */
13137
13138/* Override any GCC internal prototype to avoid an error.
13139   Use char because int might match the return type of a GCC
13140   builtin and then its argument prototype would still apply.  */
13141#ifdef __cplusplus
13142extern "C"
13143#endif
13144char isnan ();
13145int
13146main ()
13147{
13148return isnan ();
13149  ;
13150  return 0;
13151}
13152_ACEOF
13153if ac_fn_c_try_link "$LINENO"; then :
13154  ac_cv_lib_m_isnan=yes
13155else
13156  ac_cv_lib_m_isnan=no
13157fi
13158rm -f core conftest.err conftest.$ac_objext \
13159    conftest$ac_exeext conftest.$ac_ext
13160LIBS=$ac_check_lib_save_LIBS
13161fi
13162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
13163$as_echo "$ac_cv_lib_m_isnan" >&6; }
13164if test "x$ac_cv_lib_m_isnan" = x""yes; then :
13165
13166$as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
13167
13168fi
13169
13170fi
13171
13172
13173ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
13174if test "x$ac_cv_func_isinf" = x""yes; then :
13175
13176$as_echo "#define HAVE_ISINF /**/" >>confdefs.h
13177
13178else
13179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
13180$as_echo_n "checking for isinf in -lm... " >&6; }
13181if test "${ac_cv_lib_m_isinf+set}" = set; then :
13182  $as_echo_n "(cached) " >&6
13183else
13184  ac_check_lib_save_LIBS=$LIBS
13185LIBS="-lm  $LIBS"
13186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187/* end confdefs.h.  */
13188
13189/* Override any GCC internal prototype to avoid an error.
13190   Use char because int might match the return type of a GCC
13191   builtin and then its argument prototype would still apply.  */
13192#ifdef __cplusplus
13193extern "C"
13194#endif
13195char isinf ();
13196int
13197main ()
13198{
13199return isinf ();
13200  ;
13201  return 0;
13202}
13203_ACEOF
13204if ac_fn_c_try_link "$LINENO"; then :
13205  ac_cv_lib_m_isinf=yes
13206else
13207  ac_cv_lib_m_isinf=no
13208fi
13209rm -f core conftest.err conftest.$ac_objext \
13210    conftest$ac_exeext conftest.$ac_ext
13211LIBS=$ac_check_lib_save_LIBS
13212fi
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
13214$as_echo "$ac_cv_lib_m_isinf" >&6; }
13215if test "x$ac_cv_lib_m_isinf" = x""yes; then :
13216
13217$as_echo "#define HAVE_ISINF /**/" >>confdefs.h
13218
13219fi
13220
13221fi
13222
13223
13224XML_LIBDIR='-L${libdir}'
13225XML_INCLUDEDIR='-I${includedir}/libxml2'
13226
13227XML_CFLAGS=""
13228RDL_LIBS=""
13229
13230if test "${GCC}" != "yes" ; then
13231    case "${host}" in
13232          hppa*-*-hpux* )
13233	       CFLAGS="${CFLAGS} -Wp,-H30000"
13234	       ;;
13235          *-dec-osf* )
13236               CFLAGS="${CFLAGS} -ieee"
13237               ;;
13238	  alpha*-*-linux* )
13239	       CFLAGS="${CFLAGS} -ieee"
13240	       ;;
13241    esac
13242else
13243    if test "$with_fexceptions" = "yes"
13244    then
13245        #
13246	# Not activated by default because this inflates the code size
13247	# Used to allow propagation of C++ exceptions through the library
13248	#
13249	CFLAGS="${CFLAGS} -fexceptions"
13250    fi
13251
13252    CFLAGS="${CFLAGS} -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls"
13253    case "${host}" in
13254          alpha*-*-linux* )
13255	       CFLAGS="${CFLAGS} -mieee"
13256	       ;;
13257	  alpha*-*-osf* )
13258	       CFLAGS="${CFLAGS} -mieee"
13259	       ;;
13260    esac
13261fi
13262case ${host} in
13263    *-*-solaris*)
13264        XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
13265        ;;
13266    hppa*-hp-mpeix)
13267        NEED_TRIO=1
13268	;;
13269    *-*-mingw* | *-*-cygwin* | *-*-msvc* )
13270        # If the host is Windows, and shared libraries are disabled, we
13271        # need to add -DLIBXML_STATIC to CFLAGS in order for linking to
13272        # work properly (without it, xmlexports.h would force the use of
13273        # DLL imports, which obviously aren't present in a static
13274        # library).
13275        if test "x$enable_shared" = "xno"; then
13276            XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC"
13277            CFLAGS="$CFLAGS -DLIBXML_STATIC"
13278        fi
13279        ;;
13280esac
13281
13282
13283
13284PYTHON_VERSION=
13285PYTHON_INCLUDES=
13286PYTHON_SITE_PACKAGES=
13287PYTHON_TESTS=
13288pythondir=
13289if test "$with_python" != "no" ; then
13290    if test -x "$with_python/bin/python"
13291    then
13292        echo Found python in $with_python/bin/python
13293        PYTHON="$with_python/bin/python"
13294    else
13295	if test -x "$with_python"
13296	then
13297	    echo Found python in $with_python
13298	    PYTHON="$with_python"
13299	else
13300	    if test -x "$PYTHON"
13301	    then
13302	        echo Found python in environment PYTHON=$PYTHON
13303		with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
13304	    else
13305		# Extract the first word of "python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
13306set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13308$as_echo_n "checking for $ac_word... " >&6; }
13309if test "${ac_cv_path_PYTHON+set}" = set; then :
13310  $as_echo_n "(cached) " >&6
13311else
13312  case $PYTHON in
13313  [\\/]* | ?:[\\/]*)
13314  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13315  ;;
13316  *)
13317  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13318for as_dir in $PATH
13319do
13320  IFS=$as_save_IFS
13321  test -z "$as_dir" && as_dir=.
13322    for ac_exec_ext in '' $ac_executable_extensions; do
13323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13324    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13326    break 2
13327  fi
13328done
13329  done
13330IFS=$as_save_IFS
13331
13332  ;;
13333esac
13334fi
13335PYTHON=$ac_cv_path_PYTHON
13336if test -n "$PYTHON"; then
13337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13338$as_echo "$PYTHON" >&6; }
13339else
13340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341$as_echo "no" >&6; }
13342fi
13343
13344
13345	    fi
13346	fi
13347    fi
13348    if test "$PYTHON" != ""
13349    then
13350        PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
13351	echo Found Python version $PYTHON_VERSION
13352    fi
13353    if test "$PYTHON_VERSION" != ""
13354    then
13355	if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
13356	   -d $with_python/lib/python$PYTHON_VERSION/site-packages
13357	then
13358	    PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
13359	    PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
13360	else
13361	    if test -r $prefix/include/python$PYTHON_VERSION/Python.h
13362	    then
13363	        PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
13364	        PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
13365	    else
13366		if test -r /usr/include/python$PYTHON_VERSION/Python.h
13367		then
13368		    PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
13369	            PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
13370		else
13371		    echo could not find python$PYTHON_VERSION/Python.h
13372		fi
13373	    fi
13374	    if test ! -d "$PYTHON_SITE_PACKAGES"
13375	    then
13376		    PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
13377	    fi
13378	fi
13379	PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
13380    fi
13381    if test "$with_python" != ""
13382    then
13383        pythondir='$(PYTHON_SITE_PACKAGES)'
13384    else
13385        pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
13386    fi
13387else
13388    PYTHON=
13389fi
13390 if test "$PYTHON_INCLUDES" != ""; then
13391  WITH_PYTHON_TRUE=
13392  WITH_PYTHON_FALSE='#'
13393else
13394  WITH_PYTHON_TRUE='#'
13395  WITH_PYTHON_FALSE=
13396fi
13397
13398if test "$PYTHON_INCLUDES" != ""
13399then
13400    PYTHON_SUBDIR=python
13401else
13402    PYTHON_SUBDIR=
13403fi
13404
13405
13406
13407
13408WITH_MODULES=0
13409TEST_MODULES=
13410
13411if test "$with_modules" != "no" ; then
13412 case "$host" in
13413  *-*-cygwin*)
13414  MODULE_EXTENSION=".dll"
13415  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcygwin" >&5
13416$as_echo_n "checking for dlopen in -lcygwin... " >&6; }
13417if test "${ac_cv_lib_cygwin_dlopen+set}" = set; then :
13418  $as_echo_n "(cached) " >&6
13419else
13420  ac_check_lib_save_LIBS=$LIBS
13421LIBS="-lcygwin  $LIBS"
13422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13423/* end confdefs.h.  */
13424
13425/* Override any GCC internal prototype to avoid an error.
13426   Use char because int might match the return type of a GCC
13427   builtin and then its argument prototype would still apply.  */
13428#ifdef __cplusplus
13429extern "C"
13430#endif
13431char dlopen ();
13432int
13433main ()
13434{
13435return dlopen ();
13436  ;
13437  return 0;
13438}
13439_ACEOF
13440if ac_fn_c_try_link "$LINENO"; then :
13441  ac_cv_lib_cygwin_dlopen=yes
13442else
13443  ac_cv_lib_cygwin_dlopen=no
13444fi
13445rm -f core conftest.err conftest.$ac_objext \
13446    conftest$ac_exeext conftest.$ac_ext
13447LIBS=$ac_check_lib_save_LIBS
13448fi
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cygwin_dlopen" >&5
13450$as_echo "$ac_cv_lib_cygwin_dlopen" >&6; }
13451if test "x$ac_cv_lib_cygwin_dlopen" = x""yes; then :
13452
13453    WITH_MODULES=1
13454    MODULE_PLATFORM_LIBS=
13455
13456$as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
13457
13458
13459fi
13460
13461  ;;
13462  *-*-mingw*)
13463  MODULE_EXTENSION=".dll"
13464  WITH_MODULES=1
13465  ;;
13466  *)
13467  ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13468if test "x$ac_cv_func_shl_load" = x""yes; then :
13469  libxml_have_shl_load=yes
13470else
13471
13472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13473$as_echo_n "checking for shl_load in -ldld... " >&6; }
13474if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13475  $as_echo_n "(cached) " >&6
13476else
13477  ac_check_lib_save_LIBS=$LIBS
13478LIBS="-ldld  $LIBS"
13479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480/* end confdefs.h.  */
13481
13482/* Override any GCC internal prototype to avoid an error.
13483   Use char because int might match the return type of a GCC
13484   builtin and then its argument prototype would still apply.  */
13485#ifdef __cplusplus
13486extern "C"
13487#endif
13488char shl_load ();
13489int
13490main ()
13491{
13492return shl_load ();
13493  ;
13494  return 0;
13495}
13496_ACEOF
13497if ac_fn_c_try_link "$LINENO"; then :
13498  ac_cv_lib_dld_shl_load=yes
13499else
13500  ac_cv_lib_dld_shl_load=no
13501fi
13502rm -f core conftest.err conftest.$ac_objext \
13503    conftest$ac_exeext conftest.$ac_ext
13504LIBS=$ac_check_lib_save_LIBS
13505fi
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13507$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13508if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13509
13510      MODULE_PLATFORM_LIBS="-ldld"
13511      libxml_have_shl_load=yes
13512else
13513
13514      ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13515if test "x$ac_cv_func_dlopen" = x""yes; then :
13516  libxml_have_dlopen=yes
13517else
13518
13519        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13520$as_echo_n "checking for dlopen in -ldl... " >&6; }
13521if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13522  $as_echo_n "(cached) " >&6
13523else
13524  ac_check_lib_save_LIBS=$LIBS
13525LIBS="-ldl  $LIBS"
13526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527/* end confdefs.h.  */
13528
13529/* Override any GCC internal prototype to avoid an error.
13530   Use char because int might match the return type of a GCC
13531   builtin and then its argument prototype would still apply.  */
13532#ifdef __cplusplus
13533extern "C"
13534#endif
13535char dlopen ();
13536int
13537main ()
13538{
13539return dlopen ();
13540  ;
13541  return 0;
13542}
13543_ACEOF
13544if ac_fn_c_try_link "$LINENO"; then :
13545  ac_cv_lib_dl_dlopen=yes
13546else
13547  ac_cv_lib_dl_dlopen=no
13548fi
13549rm -f core conftest.err conftest.$ac_objext \
13550    conftest$ac_exeext conftest.$ac_ext
13551LIBS=$ac_check_lib_save_LIBS
13552fi
13553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13554$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13555if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13556
13557          MODULE_PLATFORM_LIBS="-ldl"
13558          libxml_have_dlopen=yes
13559fi
13560
13561fi
13562
13563fi
13564
13565fi
13566
13567
13568  if test "${libxml_have_shl_load}" = "yes"; then
13569    MODULE_EXTENSION=".sl"
13570    WITH_MODULES=1
13571
13572$as_echo "#define HAVE_SHLLOAD /**/" >>confdefs.h
13573
13574  fi
13575
13576  if test "${libxml_have_dlopen}" = "yes"; then
13577    case "${host}" in
13578      *-*-hpux* )
13579	MODULE_EXTENSION=".sl"
13580	;;
13581      * )
13582	MODULE_EXTENSION=".so"
13583	;;
13584    esac
13585
13586    WITH_MODULES=1
13587
13588$as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
13589
13590  fi
13591 ;;
13592 esac
13593fi
13594
13595if test "${WITH_MODULES}" = "1"; then
13596  TEST_MODULES="ModuleTests"
13597fi
13598
13599
13600
13601
13602
13603
13604
13605if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ] || \
13606   [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ] || \
13607   [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxml2" ]
13608   then
13609    if test "$with_minimum" != "yes"
13610    then
13611	if test "${with_mem_debug}" = "" ; then
13612	    echo Activating memory debugging
13613	    with_mem_debug="yes"
13614	    with_run_debug="yes"
13615	fi
13616	if test "${with_docbook}" = "" ; then
13617	    with_docbook="yes"
13618	fi
13619    fi
13620    if test "${GCC}" = "yes" ; then
13621    CFLAGS="-g -O -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall"
13622    fi
13623    STATIC_BINARIES="-static"
13624else
13625    STATIC_BINARIES=
13626fi
13627
13628
13629
13630if test "${NEED_TRIO}" = "1" ; then
13631    echo Adding trio library for string functions
13632    WITH_TRIO=1
13633else
13634    WITH_TRIO=0
13635fi
13636 if test "${NEED_TRIO}" = "1"; then
13637  WITH_TRIO_SOURCES_TRUE=
13638  WITH_TRIO_SOURCES_FALSE='#'
13639else
13640  WITH_TRIO_SOURCES_TRUE='#'
13641  WITH_TRIO_SOURCES_FALSE=
13642fi
13643
13644
13645
13646echo Checking configuration requirements
13647
13648THREAD_LIBS=""
13649BASE_THREAD_LIBS=""
13650WITH_THREADS=0
13651THREAD_CFLAGS=""
13652TEST_THREADS=""
13653THREADS_W32=""
13654
13655if test "$with_threads" = "no" ; then
13656    echo Disabling multithreaded support
13657else
13658    echo Enabling multithreaded support
13659        if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then
13660        ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13661if test "x$ac_cv_header_pthread_h" = x""yes; then :
13662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
13663$as_echo_n "checking for pthread_join in -lpthread... " >&6; }
13664if test "${ac_cv_lib_pthread_pthread_join+set}" = set; then :
13665  $as_echo_n "(cached) " >&6
13666else
13667  ac_check_lib_save_LIBS=$LIBS
13668LIBS="-lpthread  $LIBS"
13669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670/* end confdefs.h.  */
13671
13672/* Override any GCC internal prototype to avoid an error.
13673   Use char because int might match the return type of a GCC
13674   builtin and then its argument prototype would still apply.  */
13675#ifdef __cplusplus
13676extern "C"
13677#endif
13678char pthread_join ();
13679int
13680main ()
13681{
13682return pthread_join ();
13683  ;
13684  return 0;
13685}
13686_ACEOF
13687if ac_fn_c_try_link "$LINENO"; then :
13688  ac_cv_lib_pthread_pthread_join=yes
13689else
13690  ac_cv_lib_pthread_pthread_join=no
13691fi
13692rm -f core conftest.err conftest.$ac_objext \
13693    conftest$ac_exeext conftest.$ac_ext
13694LIBS=$ac_check_lib_save_LIBS
13695fi
13696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
13697$as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
13698if test "x$ac_cv_lib_pthread_pthread_join" = x""yes; then :
13699
13700	       THREAD_LIBS="-lpthread"
13701
13702$as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
13703
13704
13705$as_echo "#define HAVE_PTHREAD_H /**/" >>confdefs.h
13706
13707	       WITH_THREADS="1"
13708fi
13709
13710fi
13711
13712
13713    fi
13714    case $host_os in
13715       *mingw32*) if test "$THREAD_LIBS" != "-lpthread"; then
13716               WITH_THREADS="1"
13717               THREADS_W32="Win32"
13718	       THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
13719           fi
13720       ;;
13721       *cygwin*) THREAD_LIBS=""
13722       ;;
13723       *beos*) WITH_THREADS="1"
13724	   THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
13725       ;;
13726       *linux*)
13727           if test "${GCC}" = "yes" ; then
13728	       GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
13729	       GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'`
13730	       GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[0-9]*\.++' | sed 's+\..*++'`
13731	       if test "${THREAD_LIBS}" = "-lpthread" ; then
13732	           if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null
13733		   then
13734		       THREAD_LIBS=""
13735		       BASE_THREAD_LIBS="-lpthread"
13736		   else
13737		   if expr ${GCC_MAJOR} \> 3 > /dev/null
13738		   then
13739		       THREAD_LIBS=""
13740		       BASE_THREAD_LIBS="-lpthread"
13741		   else
13742		       echo old GCC disabling weak symbols for pthread
13743		   fi
13744		   fi
13745	       fi
13746	   fi
13747       ;;
13748    esac
13749    if test "$WITH_THREADS" = "1" ; then
13750	THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
13751	TEST_THREADS="Threadtests"
13752    fi
13753fi
13754if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
13755    THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED"
13756fi
13757
13758
13759
13760
13761
13762
13763
13764
13765if test "$with_history" = "yes" ; then
13766    echo Enabling xmllint shell history
13767            unset tcap
13768    for termlib in ncurses curses termcap terminfo termlib; do
13769	as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
13771$as_echo_n "checking for tputs in -l${termlib}... " >&6; }
13772if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
13773  $as_echo_n "(cached) " >&6
13774else
13775  ac_check_lib_save_LIBS=$LIBS
13776LIBS="-l${termlib}  $LIBS"
13777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778/* end confdefs.h.  */
13779
13780/* Override any GCC internal prototype to avoid an error.
13781   Use char because int might match the return type of a GCC
13782   builtin and then its argument prototype would still apply.  */
13783#ifdef __cplusplus
13784extern "C"
13785#endif
13786char tputs ();
13787int
13788main ()
13789{
13790return tputs ();
13791  ;
13792  return 0;
13793}
13794_ACEOF
13795if ac_fn_c_try_link "$LINENO"; then :
13796  eval "$as_ac_Lib=yes"
13797else
13798  eval "$as_ac_Lib=no"
13799fi
13800rm -f core conftest.err conftest.$ac_objext \
13801    conftest$ac_exeext conftest.$ac_ext
13802LIBS=$ac_check_lib_save_LIBS
13803fi
13804eval ac_res=\$$as_ac_Lib
13805	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13806$as_echo "$ac_res" >&6; }
13807eval as_val=\$$as_ac_Lib
13808   if test "x$as_val" = x""yes; then :
13809  tcap="-l$termlib"
13810fi
13811
13812	test -n "$tcap" && break
13813    done
13814
13815    ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13816if test "x$ac_cv_header_readline_history_h" = x""yes; then :
13817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lhistory" >&5
13818$as_echo_n "checking for append_history in -lhistory... " >&6; }
13819if test "${ac_cv_lib_history_append_history+set}" = set; then :
13820  $as_echo_n "(cached) " >&6
13821else
13822  ac_check_lib_save_LIBS=$LIBS
13823LIBS="-lhistory  $LIBS"
13824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825/* end confdefs.h.  */
13826
13827/* Override any GCC internal prototype to avoid an error.
13828   Use char because int might match the return type of a GCC
13829   builtin and then its argument prototype would still apply.  */
13830#ifdef __cplusplus
13831extern "C"
13832#endif
13833char append_history ();
13834int
13835main ()
13836{
13837return append_history ();
13838  ;
13839  return 0;
13840}
13841_ACEOF
13842if ac_fn_c_try_link "$LINENO"; then :
13843  ac_cv_lib_history_append_history=yes
13844else
13845  ac_cv_lib_history_append_history=no
13846fi
13847rm -f core conftest.err conftest.$ac_objext \
13848    conftest$ac_exeext conftest.$ac_ext
13849LIBS=$ac_check_lib_save_LIBS
13850fi
13851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_append_history" >&5
13852$as_echo "$ac_cv_lib_history_append_history" >&6; }
13853if test "x$ac_cv_lib_history_append_history" = x""yes; then :
13854
13855	   RDL_LIBS="-lhistory"
13856
13857$as_echo "#define HAVE_LIBHISTORY /**/" >>confdefs.h
13858
13859fi
13860
13861fi
13862
13863
13864    ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13865if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
13866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13867$as_echo_n "checking for readline in -lreadline... " >&6; }
13868if test "${ac_cv_lib_readline_readline+set}" = set; then :
13869  $as_echo_n "(cached) " >&6
13870else
13871  ac_check_lib_save_LIBS=$LIBS
13872LIBS="-lreadline $tcap $LIBS"
13873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874/* end confdefs.h.  */
13875
13876/* Override any GCC internal prototype to avoid an error.
13877   Use char because int might match the return type of a GCC
13878   builtin and then its argument prototype would still apply.  */
13879#ifdef __cplusplus
13880extern "C"
13881#endif
13882char readline ();
13883int
13884main ()
13885{
13886return readline ();
13887  ;
13888  return 0;
13889}
13890_ACEOF
13891if ac_fn_c_try_link "$LINENO"; then :
13892  ac_cv_lib_readline_readline=yes
13893else
13894  ac_cv_lib_readline_readline=no
13895fi
13896rm -f core conftest.err conftest.$ac_objext \
13897    conftest$ac_exeext conftest.$ac_ext
13898LIBS=$ac_check_lib_save_LIBS
13899fi
13900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13901$as_echo "$ac_cv_lib_readline_readline" >&6; }
13902if test "x$ac_cv_lib_readline_readline" = x""yes; then :
13903
13904	   RDL_LIBS="-lreadline $RDL_LIBS $tcap"
13905
13906$as_echo "#define HAVE_LIBREADLINE /**/" >>confdefs.h
13907
13908fi
13909
13910fi
13911
13912
13913    if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
13914	CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
13915	RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
13916    fi
13917fi
13918
13919if test "$with_tree" = "no" ; then
13920    echo Disabling DOM like tree manipulation APIs
13921    WITH_TREE=0
13922else
13923    WITH_TREE=1
13924fi
13925
13926
13927if test "$with_ftp" = "no" ; then
13928    echo Disabling FTP support
13929    WITH_FTP=0
13930    FTP_OBJ=
13931else
13932    WITH_FTP=1
13933    FTP_OBJ=nanoftp.o
13934fi
13935
13936
13937
13938if test "$with_http" = "no" ; then
13939    echo Disabling HTTP support
13940    WITH_HTTP=0
13941    HTTP_OBJ=
13942else
13943    WITH_HTTP=1
13944    HTTP_OBJ=nanohttp.o
13945fi
13946
13947
13948
13949if test "$with_legacy" = "no" ; then
13950    echo Disabling deprecated APIs
13951    WITH_LEGACY=0
13952else
13953    WITH_LEGACY=1
13954fi
13955
13956
13957if test "$with_reader" = "no" ; then
13958    echo Disabling the xmlReader parsing interface
13959    WITH_READER=0
13960    READER_TEST=
13961else
13962    WITH_READER=1
13963    READER_TEST=Readertests
13964    if test "$with_push" = "no" ; then
13965        echo xmlReader requires Push interface - enabling it
13966	with_push=yes
13967    fi
13968fi
13969
13970
13971
13972if test "$with_writer" = "no" ; then
13973    echo Disabling the xmlWriter saving interface
13974    WITH_WRITER=0
13975#    WRITER_TEST=
13976else
13977    WITH_WRITER=1
13978#    WRITER_TEST=Writertests
13979    if test "$with_push" = "no" ; then
13980        echo xmlWriter requires Push interface - enabling it
13981	with_push=yes
13982    fi
13983    if test "$with_output" = "no" ; then
13984        echo xmlWriter requires Output interface - enabling it
13985	with_output=yes
13986    fi
13987fi
13988
13989#AC_SUBST(WRITER_TEST)
13990
13991if test "$with_pattern" = "no" ; then
13992    echo Disabling the xmlPattern parsing interface
13993    WITH_PATTERN=0
13994    TEST_PATTERN=
13995else
13996    WITH_PATTERN=1
13997    TEST_PATTERN=Patterntests
13998fi
13999
14000
14001
14002if test "$with_sax1" = "no" ; then
14003    echo Disabling the older SAX1 interface
14004    WITH_SAX1=0
14005    TEST_SAX=
14006else
14007    WITH_SAX1=1
14008    TEST_SAX=SAXtests
14009fi
14010
14011
14012
14013if test "$with_push" = "no" ; then
14014    echo Disabling the PUSH parser interfaces
14015    WITH_PUSH=0
14016    TEST_PUSH=
14017else
14018    WITH_PUSH=1
14019    TEST_PUSH="XMLPushtests"
14020fi
14021
14022
14023
14024if test "$with_html" = "no" ; then
14025    echo Disabling HTML support
14026    WITH_HTML=0
14027    HTML_OBJ=
14028    TEST_HTML=
14029else
14030    WITH_HTML=1
14031    HTML_OBJ="HTMLparser.o HTMLtree.o"
14032    TEST_HTML=HTMLtests
14033    if test "$with_push" != "no" ; then
14034        TEST_PHTML=HTMLPushtests
14035    else
14036        TEST_PHTML=
14037    fi
14038fi
14039
14040
14041
14042
14043
14044if test "$with_valid" = "no" ; then
14045    echo Disabling DTD validation support
14046    WITH_VALID=0
14047    TEST_VALID=
14048    TEST_VTIME=
14049else
14050    WITH_VALID=1
14051    TEST_VALID=Validtests
14052    TEST_VTIME=VTimingtests
14053fi
14054
14055
14056
14057
14058if test "$with_catalog" = "no" ; then
14059    echo Disabling Catalog support
14060    WITH_CATALOG=0
14061    CATALOG_OBJ=
14062    TEST_CATALOG=
14063else
14064    WITH_CATALOG=1
14065    CATALOG_OBJ="catalog.o"
14066    TEST_CATALOG=Catatests
14067fi
14068
14069
14070
14071
14072if test "$with_docbook" = "no" ; then
14073    echo Disabling Docbook support
14074    WITH_DOCB=0
14075    DOCB_OBJ=
14076else
14077    WITH_DOCB=1
14078    DOCB_OBJ="DOCBparser.o"
14079fi
14080
14081
14082
14083
14084if test "$with_xptr" = "no" ; then
14085    echo Disabling XPointer support
14086    WITH_XPTR=0
14087    XPTR_OBJ=
14088    TEST_XPTR=
14089else
14090    WITH_XPTR=1
14091    XPTR_OBJ=xpointer.o
14092    TEST_XPTR=XPtrtests
14093    if test "$with_xpath" = "no" ; then
14094        echo XPointer requires XPath support - enabling it
14095	with_xpath=yes
14096    fi
14097fi
14098
14099
14100
14101
14102if test "$with_c14n" = "no" ; then
14103    echo Disabling C14N support
14104    WITH_C14N=0
14105    C14N_OBJ=
14106    TEST_C14N=
14107else
14108    WITH_C14N=1
14109    C14N_OBJ="c14n.c"
14110    TEST_C14N=C14Ntests
14111    if test "$with_xpath" = "no" ; then
14112        echo C14N requires XPath support - enabling it
14113	with_xpath=yes
14114    fi
14115fi
14116
14117
14118
14119
14120if test "$with_xinclude" = "no" ; then
14121    echo Disabling XInclude support
14122    WITH_XINCLUDE=0
14123    XINCLUDE_OBJ=
14124    with_xinclude="no"
14125    TEST_XINCLUDE=
14126else
14127    WITH_XINCLUDE=1
14128    XINCLUDE_OBJ=xinclude.o
14129    TEST_XINCLUDE=XIncludetests
14130    if test "$with_xpath" = "no" ; then
14131        echo XInclude requires XPath support - enabling it
14132	with_xpath=yes
14133    fi
14134fi
14135
14136
14137
14138
14139if test "$with_xpath" = "no" ; then
14140    echo Disabling XPATH support
14141    WITH_XPATH=0
14142    XPATH_OBJ=
14143    TEST_XPATH=
14144else
14145    WITH_XPATH=1
14146    XPATH_OBJ=xpath.o
14147    TEST_XPATH=XPathtests
14148fi
14149
14150
14151
14152
14153if test "$with_output" = "no" ; then
14154    echo Disabling serialization/saving support
14155    WITH_OUTPUT=0
14156else
14157    WITH_OUTPUT=1
14158fi
14159
14160
14161WITH_ICONV=0
14162if test "$with_iconv" = "no" ; then
14163    echo Disabling ICONV support
14164else
14165    if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
14166	CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
14167	# Export this since our headers include iconv.h
14168	XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
14169	ICONV_LIBS="-L$with_iconv/lib"
14170    fi
14171
14172    ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
14173if test "x$ac_cv_header_iconv_h" = x""yes; then :
14174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14175$as_echo_n "checking for iconv... " >&6; }
14176	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177/* end confdefs.h.  */
14178#include <stdlib.h>
14179#include <iconv.h>
14180int
14181main ()
14182{
14183
14184iconv_t cd = iconv_open ("","");
14185iconv (cd, NULL, NULL, NULL, NULL);
14186  ;
14187  return 0;
14188}
14189_ACEOF
14190if ac_fn_c_try_link "$LINENO"; then :
14191
14192	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14193$as_echo "yes" >&6; }
14194	    WITH_ICONV=1
14195else
14196
14197	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198$as_echo "no" >&6; }
14199	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
14200$as_echo_n "checking for iconv in -liconv... " >&6; }
14201
14202	    _ldflags="${LDFLAGS}"
14203	    _libs="${LIBS}"
14204	    LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
14205	    LIBS="${LIBS} -liconv"
14206
14207	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208/* end confdefs.h.  */
14209#include <stdlib.h>
14210#include <iconv.h>
14211int
14212main ()
14213{
14214
14215iconv_t cd = iconv_open ("","");
14216iconv (cd, NULL, NULL, NULL, NULL);
14217  ;
14218  return 0;
14219}
14220_ACEOF
14221if ac_fn_c_try_link "$LINENO"; then :
14222
14223		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14224$as_echo "yes" >&6; }
14225		WITH_ICONV=1
14226		ICONV_LIBS="${ICONV_LIBS} -liconv"
14227		LIBS="${_libs}"
14228		LDFLAGS="${_ldflags}"
14229else
14230
14231		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232$as_echo "no" >&6; }
14233		LIBS="${_libs}"
14234		LDFLAGS="${_ldflags}"
14235fi
14236rm -f core conftest.err conftest.$ac_objext \
14237    conftest$ac_exeext conftest.$ac_ext
14238fi
14239rm -f core conftest.err conftest.$ac_objext \
14240    conftest$ac_exeext conftest.$ac_ext
14241fi
14242
14243
14244
14245	if test "$WITH_ICONV" = "1" ; then
14246		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14247$as_echo_n "checking for iconv declaration... " >&6; }
14248		if test "${xml_cv_iconv_arg2+set}" = set; then :
14249  $as_echo_n "(cached) " >&6
14250else
14251
14252			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253/* end confdefs.h.  */
14254#include <stdlib.h>
14255#include <iconv.h>
14256extern
14257#ifdef __cplusplus
14258"C"
14259#endif
14260#if defined(__STDC__) || defined(__cplusplus)
14261size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14262#else
14263size_t iconv();
14264#endif
14265
14266int
14267main ()
14268{
14269
14270  ;
14271  return 0;
14272}
14273_ACEOF
14274if ac_fn_c_try_compile "$LINENO"; then :
14275  xml_cv_iconv_arg2=""
14276else
14277  xml_cv_iconv_arg2="const"
14278fi
14279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280fi
14281
14282
14283		xml_cv_iconv_decl="extern size_t iconv (iconv_t cd, $xml_cv_iconv_arg2 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14284		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${xml_xxx:-
14285	}$xml_cv_iconv_decl" >&5
14286$as_echo "${xml_xxx:-
14287	}$xml_cv_iconv_decl" >&6; }
14288
14289cat >>confdefs.h <<_ACEOF
14290#define ICONV_CONST $xml_cv_iconv_arg2
14291_ACEOF
14292
14293	fi
14294fi
14295case "$host" in
14296	*mingw*) M_LIBS=""
14297	;;
14298	*beos*) M_LIBS=""
14299	;;
14300        *haiku*) M_LIBS=""
14301        ;;
14302	*) M_LIBS="-lm"
14303	;;
14304esac
14305XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
14306XML_LIBTOOLLIBS="libxml2.la"
14307
14308
14309WITH_ISO8859X=1
14310if test "$WITH_ICONV" != "1" ; then
14311if test "$with_iso8859x" = "no" ; then
14312    echo Disabling ISO8859X support
14313    WITH_ISO8859X=0
14314fi
14315fi
14316
14317
14318if test "$with_schematron" = "no" ; then
14319    echo "Disabling Schematron support"
14320    WITH_SCHEMATRON=0
14321    TEST_SCHEMATRON=
14322else
14323    echo "Enabled Schematron support"
14324    WITH_SCHEMATRON=1
14325    TEST_SCHEMATRON="Schematrontests"
14326    with_xpath=yes
14327    with_pattern=yes
14328fi
14329
14330
14331
14332if test "$with_schemas" = "no" ; then
14333    echo "Disabling Schemas/Relax-NG support"
14334    WITH_SCHEMAS=0
14335    TEST_SCHEMAS=
14336else
14337    echo "Enabled Schemas/Relax-NG support"
14338    WITH_SCHEMAS=1
14339    TEST_SCHEMAS="Schemastests Relaxtests"
14340    if test "$PYTHON_INCLUDES" != "" ; then
14341        PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests"
14342    fi
14343    with_regexps=yes
14344fi
14345
14346
14347
14348if test "$with_regexps" = "no" ; then
14349    echo Disabling Regexps support
14350    WITH_REGEXPS=0
14351    TEST_REGEXPS=
14352else
14353    WITH_REGEXPS=1
14354    TEST_REGEXPS="Regexptests Automatatests"
14355fi
14356
14357
14358
14359if test "$with_debug" = "no" ; then
14360    echo Disabling DEBUG support
14361    WITH_DEBUG=0
14362    DEBUG_OBJ=
14363    TEST_DEBUG=
14364else
14365    WITH_DEBUG=1
14366    DEBUG_OBJ=debugXML.o
14367    TEST_DEBUG=Scripttests
14368fi
14369
14370
14371
14372
14373if test "$with_mem_debug" = "yes" ; then
14374    if test "$with_thread_alloc" = "yes" ; then
14375        echo Disabling memory debug - cannot use mem-debug with thread-alloc!
14376	WITH_MEM_DEBUG=0
14377    else
14378        echo Enabling memory debug support
14379        WITH_MEM_DEBUG=1
14380    fi
14381else
14382    WITH_MEM_DEBUG=0
14383fi
14384
14385
14386if test "$with_run_debug" = "yes" ; then
14387    echo Enabling runtime debug support
14388    WITH_RUN_DEBUG=1
14389else
14390    WITH_RUN_DEBUG=0
14391fi
14392
14393
14394WIN32_EXTRA_LIBADD=
14395WIN32_EXTRA_LDFLAGS=
14396CYGWIN_EXTRA_LDFLAGS=
14397CYGWIN_EXTRA_PYTHON_LIBADD=
14398case "$host" in
14399 *-*-mingw*)
14400 CPPFLAGS="$CPPFLAGS -DWIN32"
14401 WIN32_EXTRA_LIBADD="-lws2_32"
14402 WIN32_EXTRA_LDFLAGS="-no-undefined"
14403
14404$as_echo "#define _WINSOCKAPI_ 1" >>confdefs.h
14405
14406
14407$as_echo "#define snprintf _snprintf" >>confdefs.h
14408
14409
14410$as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
14411
14412 ;;
14413 *-*-cygwin*)
14414 CYGWIN_EXTRA_LDFLAGS="-no-undefined"
14415 if test "${PYTHON}" != ""
14416 then
14417   CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
14418 fi
14419 ;;
14420esac
14421
14422
14423
14424
14425
14426if test "$with_coverage" = "yes" -a "${GCC}" = "yes"
14427then
14428    echo Enabling code coverage for GCC
14429    CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
14430    LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
14431else
14432    echo Disabling code coverage for GCC
14433fi
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456RELDATE=`date +'%a %b %e %Y'`
14457
14458
14459
14460rm -f COPYING.LIB COPYING
14461ln -s Copyright COPYING
14462
14463# keep on one line for cygwin c.f. #130896
14464ac_config_files="$ac_config_files libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/Makefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlversion.h xml2-config libxml-2.0.pc libxml-2.0-uninstalled.pc python/setup.py"
14465
14466cat >confcache <<\_ACEOF
14467# This file is a shell script that caches the results of configure
14468# tests run on this system so they can be shared between configure
14469# scripts and configure runs, see configure's option --config-cache.
14470# It is not useful on other systems.  If it contains results you don't
14471# want to keep, you may remove or edit it.
14472#
14473# config.status only pays attention to the cache file if you give it
14474# the --recheck option to rerun configure.
14475#
14476# `ac_cv_env_foo' variables (set or unset) will be overridden when
14477# loading this file, other *unset* `ac_cv_foo' will be assigned the
14478# following values.
14479
14480_ACEOF
14481
14482# The following way of writing the cache mishandles newlines in values,
14483# but we know of no workaround that is simple, portable, and efficient.
14484# So, we kill variables containing newlines.
14485# Ultrix sh set writes to stderr and can't be redirected directly,
14486# and sets the high bit in the cache file unless we assign to the vars.
14487(
14488  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14489    eval ac_val=\$$ac_var
14490    case $ac_val in #(
14491    *${as_nl}*)
14492      case $ac_var in #(
14493      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14494$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14495      esac
14496      case $ac_var in #(
14497      _ | IFS | as_nl) ;; #(
14498      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14499      *) { eval $ac_var=; unset $ac_var;} ;;
14500      esac ;;
14501    esac
14502  done
14503
14504  (set) 2>&1 |
14505    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14506    *${as_nl}ac_space=\ *)
14507      # `set' does not quote correctly, so add quotes: double-quote
14508      # substitution turns \\\\ into \\, and sed turns \\ into \.
14509      sed -n \
14510	"s/'/'\\\\''/g;
14511	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14512      ;; #(
14513    *)
14514      # `set' quotes correctly as required by POSIX, so do not add quotes.
14515      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14516      ;;
14517    esac |
14518    sort
14519) |
14520  sed '
14521     /^ac_cv_env_/b end
14522     t clear
14523     :clear
14524     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14525     t end
14526     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14527     :end' >>confcache
14528if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14529  if test -w "$cache_file"; then
14530    test "x$cache_file" != "x/dev/null" &&
14531      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14532$as_echo "$as_me: updating cache $cache_file" >&6;}
14533    cat confcache >$cache_file
14534  else
14535    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14536$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14537  fi
14538fi
14539rm -f confcache
14540
14541test "x$prefix" = xNONE && prefix=$ac_default_prefix
14542# Let make expand exec_prefix.
14543test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14544
14545DEFS=-DHAVE_CONFIG_H
14546
14547ac_libobjs=
14548ac_ltlibobjs=
14549for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14550  # 1. Remove the extension, and $U if already installed.
14551  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14552  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14553  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14554  #    will be set to the directory where LIBOBJS objects are built.
14555  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14556  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14557done
14558LIBOBJS=$ac_libobjs
14559
14560LTLIBOBJS=$ac_ltlibobjs
14561
14562
14563 if test -n "$EXEEXT"; then
14564  am__EXEEXT_TRUE=
14565  am__EXEEXT_FALSE='#'
14566else
14567  am__EXEEXT_TRUE='#'
14568  am__EXEEXT_FALSE=
14569fi
14570
14571if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14572  as_fn_error "conditional \"AMDEP\" was never defined.
14573Usually this means the macro was only invoked conditionally." "$LINENO" 5
14574fi
14575if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14576  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14577Usually this means the macro was only invoked conditionally." "$LINENO" 5
14578fi
14579if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}"; then
14580  as_fn_error "conditional \"USE_VERSION_SCRIPT\" was never defined.
14581Usually this means the macro was only invoked conditionally." "$LINENO" 5
14582fi
14583if test -z "${REBUILD_DOCS_TRUE}" && test -z "${REBUILD_DOCS_FALSE}"; then
14584  as_fn_error "conditional \"REBUILD_DOCS\" was never defined.
14585Usually this means the macro was only invoked conditionally." "$LINENO" 5
14586fi
14587if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
14588  as_fn_error "conditional \"WITH_PYTHON\" was never defined.
14589Usually this means the macro was only invoked conditionally." "$LINENO" 5
14590fi
14591if test -z "${WITH_TRIO_SOURCES_TRUE}" && test -z "${WITH_TRIO_SOURCES_FALSE}"; then
14592  as_fn_error "conditional \"WITH_TRIO_SOURCES\" was never defined.
14593Usually this means the macro was only invoked conditionally." "$LINENO" 5
14594fi
14595
14596: ${CONFIG_STATUS=./config.status}
14597ac_write_fail=0
14598ac_clean_files_save=$ac_clean_files
14599ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14600{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14601$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14602as_write_fail=0
14603cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14604#! $SHELL
14605# Generated by $as_me.
14606# Run this file to recreate the current configuration.
14607# Compiler output produced by configure, useful for debugging
14608# configure, is in config.log if it exists.
14609
14610debug=false
14611ac_cs_recheck=false
14612ac_cs_silent=false
14613
14614SHELL=\${CONFIG_SHELL-$SHELL}
14615export SHELL
14616_ASEOF
14617cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14618## -------------------- ##
14619## M4sh Initialization. ##
14620## -------------------- ##
14621
14622# Be more Bourne compatible
14623DUALCASE=1; export DUALCASE # for MKS sh
14624if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14625  emulate sh
14626  NULLCMD=:
14627  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14628  # is contrary to our usage.  Disable this feature.
14629  alias -g '${1+"$@"}'='"$@"'
14630  setopt NO_GLOB_SUBST
14631else
14632  case `(set -o) 2>/dev/null` in #(
14633  *posix*) :
14634    set -o posix ;; #(
14635  *) :
14636     ;;
14637esac
14638fi
14639
14640
14641as_nl='
14642'
14643export as_nl
14644# Printing a long string crashes Solaris 7 /usr/bin/printf.
14645as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14646as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14647as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14648# Prefer a ksh shell builtin over an external printf program on Solaris,
14649# but without wasting forks for bash or zsh.
14650if test -z "$BASH_VERSION$ZSH_VERSION" \
14651    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14652  as_echo='print -r --'
14653  as_echo_n='print -rn --'
14654elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14655  as_echo='printf %s\n'
14656  as_echo_n='printf %s'
14657else
14658  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14659    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14660    as_echo_n='/usr/ucb/echo -n'
14661  else
14662    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14663    as_echo_n_body='eval
14664      arg=$1;
14665      case $arg in #(
14666      *"$as_nl"*)
14667	expr "X$arg" : "X\\(.*\\)$as_nl";
14668	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14669      esac;
14670      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14671    '
14672    export as_echo_n_body
14673    as_echo_n='sh -c $as_echo_n_body as_echo'
14674  fi
14675  export as_echo_body
14676  as_echo='sh -c $as_echo_body as_echo'
14677fi
14678
14679# The user is always right.
14680if test "${PATH_SEPARATOR+set}" != set; then
14681  PATH_SEPARATOR=:
14682  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14683    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14684      PATH_SEPARATOR=';'
14685  }
14686fi
14687
14688
14689# IFS
14690# We need space, tab and new line, in precisely that order.  Quoting is
14691# there to prevent editors from complaining about space-tab.
14692# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14693# splitting by setting IFS to empty value.)
14694IFS=" ""	$as_nl"
14695
14696# Find who we are.  Look in the path if we contain no directory separator.
14697case $0 in #((
14698  *[\\/]* ) as_myself=$0 ;;
14699  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14700for as_dir in $PATH
14701do
14702  IFS=$as_save_IFS
14703  test -z "$as_dir" && as_dir=.
14704    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14705  done
14706IFS=$as_save_IFS
14707
14708     ;;
14709esac
14710# We did not find ourselves, most probably we were run as `sh COMMAND'
14711# in which case we are not to be found in the path.
14712if test "x$as_myself" = x; then
14713  as_myself=$0
14714fi
14715if test ! -f "$as_myself"; then
14716  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14717  exit 1
14718fi
14719
14720# Unset variables that we do not need and which cause bugs (e.g. in
14721# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14722# suppresses any "Segmentation fault" message there.  '((' could
14723# trigger a bug in pdksh 5.2.14.
14724for as_var in BASH_ENV ENV MAIL MAILPATH
14725do eval test x\${$as_var+set} = xset \
14726  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14727done
14728PS1='$ '
14729PS2='> '
14730PS4='+ '
14731
14732# NLS nuisances.
14733LC_ALL=C
14734export LC_ALL
14735LANGUAGE=C
14736export LANGUAGE
14737
14738# CDPATH.
14739(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14740
14741
14742# as_fn_error ERROR [LINENO LOG_FD]
14743# ---------------------------------
14744# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14745# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14746# script with status $?, using 1 if that was 0.
14747as_fn_error ()
14748{
14749  as_status=$?; test $as_status -eq 0 && as_status=1
14750  if test "$3"; then
14751    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14752    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14753  fi
14754  $as_echo "$as_me: error: $1" >&2
14755  as_fn_exit $as_status
14756} # as_fn_error
14757
14758
14759# as_fn_set_status STATUS
14760# -----------------------
14761# Set $? to STATUS, without forking.
14762as_fn_set_status ()
14763{
14764  return $1
14765} # as_fn_set_status
14766
14767# as_fn_exit STATUS
14768# -----------------
14769# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14770as_fn_exit ()
14771{
14772  set +e
14773  as_fn_set_status $1
14774  exit $1
14775} # as_fn_exit
14776
14777# as_fn_unset VAR
14778# ---------------
14779# Portably unset VAR.
14780as_fn_unset ()
14781{
14782  { eval $1=; unset $1;}
14783}
14784as_unset=as_fn_unset
14785# as_fn_append VAR VALUE
14786# ----------------------
14787# Append the text in VALUE to the end of the definition contained in VAR. Take
14788# advantage of any shell optimizations that allow amortized linear growth over
14789# repeated appends, instead of the typical quadratic growth present in naive
14790# implementations.
14791if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14792  eval 'as_fn_append ()
14793  {
14794    eval $1+=\$2
14795  }'
14796else
14797  as_fn_append ()
14798  {
14799    eval $1=\$$1\$2
14800  }
14801fi # as_fn_append
14802
14803# as_fn_arith ARG...
14804# ------------------
14805# Perform arithmetic evaluation on the ARGs, and store the result in the
14806# global $as_val. Take advantage of shells that can avoid forks. The arguments
14807# must be portable across $(()) and expr.
14808if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14809  eval 'as_fn_arith ()
14810  {
14811    as_val=$(( $* ))
14812  }'
14813else
14814  as_fn_arith ()
14815  {
14816    as_val=`expr "$@" || test $? -eq 1`
14817  }
14818fi # as_fn_arith
14819
14820
14821if expr a : '\(a\)' >/dev/null 2>&1 &&
14822   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14823  as_expr=expr
14824else
14825  as_expr=false
14826fi
14827
14828if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14829  as_basename=basename
14830else
14831  as_basename=false
14832fi
14833
14834if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14835  as_dirname=dirname
14836else
14837  as_dirname=false
14838fi
14839
14840as_me=`$as_basename -- "$0" ||
14841$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14842	 X"$0" : 'X\(//\)$' \| \
14843	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14844$as_echo X/"$0" |
14845    sed '/^.*\/\([^/][^/]*\)\/*$/{
14846	    s//\1/
14847	    q
14848	  }
14849	  /^X\/\(\/\/\)$/{
14850	    s//\1/
14851	    q
14852	  }
14853	  /^X\/\(\/\).*/{
14854	    s//\1/
14855	    q
14856	  }
14857	  s/.*/./; q'`
14858
14859# Avoid depending upon Character Ranges.
14860as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14861as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14862as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14863as_cr_digits='0123456789'
14864as_cr_alnum=$as_cr_Letters$as_cr_digits
14865
14866ECHO_C= ECHO_N= ECHO_T=
14867case `echo -n x` in #(((((
14868-n*)
14869  case `echo 'xy\c'` in
14870  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14871  xy)  ECHO_C='\c';;
14872  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14873       ECHO_T='	';;
14874  esac;;
14875*)
14876  ECHO_N='-n';;
14877esac
14878
14879rm -f conf$$ conf$$.exe conf$$.file
14880if test -d conf$$.dir; then
14881  rm -f conf$$.dir/conf$$.file
14882else
14883  rm -f conf$$.dir
14884  mkdir conf$$.dir 2>/dev/null
14885fi
14886if (echo >conf$$.file) 2>/dev/null; then
14887  if ln -s conf$$.file conf$$ 2>/dev/null; then
14888    as_ln_s='ln -s'
14889    # ... but there are two gotchas:
14890    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14891    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14892    # In both cases, we have to default to `cp -p'.
14893    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14894      as_ln_s='cp -p'
14895  elif ln conf$$.file conf$$ 2>/dev/null; then
14896    as_ln_s=ln
14897  else
14898    as_ln_s='cp -p'
14899  fi
14900else
14901  as_ln_s='cp -p'
14902fi
14903rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14904rmdir conf$$.dir 2>/dev/null
14905
14906
14907# as_fn_mkdir_p
14908# -------------
14909# Create "$as_dir" as a directory, including parents if necessary.
14910as_fn_mkdir_p ()
14911{
14912
14913  case $as_dir in #(
14914  -*) as_dir=./$as_dir;;
14915  esac
14916  test -d "$as_dir" || eval $as_mkdir_p || {
14917    as_dirs=
14918    while :; do
14919      case $as_dir in #(
14920      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14921      *) as_qdir=$as_dir;;
14922      esac
14923      as_dirs="'$as_qdir' $as_dirs"
14924      as_dir=`$as_dirname -- "$as_dir" ||
14925$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14926	 X"$as_dir" : 'X\(//\)[^/]' \| \
14927	 X"$as_dir" : 'X\(//\)$' \| \
14928	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14929$as_echo X"$as_dir" |
14930    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14931	    s//\1/
14932	    q
14933	  }
14934	  /^X\(\/\/\)[^/].*/{
14935	    s//\1/
14936	    q
14937	  }
14938	  /^X\(\/\/\)$/{
14939	    s//\1/
14940	    q
14941	  }
14942	  /^X\(\/\).*/{
14943	    s//\1/
14944	    q
14945	  }
14946	  s/.*/./; q'`
14947      test -d "$as_dir" && break
14948    done
14949    test -z "$as_dirs" || eval "mkdir $as_dirs"
14950  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14951
14952
14953} # as_fn_mkdir_p
14954if mkdir -p . 2>/dev/null; then
14955  as_mkdir_p='mkdir -p "$as_dir"'
14956else
14957  test -d ./-p && rmdir ./-p
14958  as_mkdir_p=false
14959fi
14960
14961if test -x / >/dev/null 2>&1; then
14962  as_test_x='test -x'
14963else
14964  if ls -dL / >/dev/null 2>&1; then
14965    as_ls_L_option=L
14966  else
14967    as_ls_L_option=
14968  fi
14969  as_test_x='
14970    eval sh -c '\''
14971      if test -d "$1"; then
14972	test -d "$1/.";
14973      else
14974	case $1 in #(
14975	-*)set "./$1";;
14976	esac;
14977	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14978	???[sx]*):;;*)false;;esac;fi
14979    '\'' sh
14980  '
14981fi
14982as_executable_p=$as_test_x
14983
14984# Sed expression to map a string onto a valid CPP name.
14985as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14986
14987# Sed expression to map a string onto a valid variable name.
14988as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14989
14990
14991exec 6>&1
14992## ----------------------------------- ##
14993## Main body of $CONFIG_STATUS script. ##
14994## ----------------------------------- ##
14995_ASEOF
14996test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14997
14998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14999# Save the log message, to keep $0 and so on meaningful, and to
15000# report actual input values of CONFIG_FILES etc. instead of their
15001# values after options handling.
15002ac_log="
15003This file was extended by $as_me, which was
15004generated by GNU Autoconf 2.65.  Invocation command line was
15005
15006  CONFIG_FILES    = $CONFIG_FILES
15007  CONFIG_HEADERS  = $CONFIG_HEADERS
15008  CONFIG_LINKS    = $CONFIG_LINKS
15009  CONFIG_COMMANDS = $CONFIG_COMMANDS
15010  $ $0 $@
15011
15012on `(hostname || uname -n) 2>/dev/null | sed 1q`
15013"
15014
15015_ACEOF
15016
15017case $ac_config_files in *"
15018"*) set x $ac_config_files; shift; ac_config_files=$*;;
15019esac
15020
15021case $ac_config_headers in *"
15022"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15023esac
15024
15025
15026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15027# Files that config.status was made for.
15028config_files="$ac_config_files"
15029config_headers="$ac_config_headers"
15030config_commands="$ac_config_commands"
15031
15032_ACEOF
15033
15034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15035ac_cs_usage="\
15036\`$as_me' instantiates files and other configuration actions
15037from templates according to the current configuration.  Unless the files
15038and actions are specified as TAGs, all are instantiated by default.
15039
15040Usage: $0 [OPTION]... [TAG]...
15041
15042  -h, --help       print this help, then exit
15043  -V, --version    print version number and configuration settings, then exit
15044      --config     print configuration, then exit
15045  -q, --quiet, --silent
15046                   do not print progress messages
15047  -d, --debug      don't remove temporary files
15048      --recheck    update $as_me by reconfiguring in the same conditions
15049      --file=FILE[:TEMPLATE]
15050                   instantiate the configuration file FILE
15051      --header=FILE[:TEMPLATE]
15052                   instantiate the configuration header FILE
15053
15054Configuration files:
15055$config_files
15056
15057Configuration headers:
15058$config_headers
15059
15060Configuration commands:
15061$config_commands
15062
15063Report bugs to the package provider."
15064
15065_ACEOF
15066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15067ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15068ac_cs_version="\\
15069config.status
15070configured by $0, generated by GNU Autoconf 2.65,
15071  with options \\"\$ac_cs_config\\"
15072
15073Copyright (C) 2009 Free Software Foundation, Inc.
15074This config.status script is free software; the Free Software Foundation
15075gives unlimited permission to copy, distribute and modify it."
15076
15077ac_pwd='$ac_pwd'
15078srcdir='$srcdir'
15079INSTALL='$INSTALL'
15080MKDIR_P='$MKDIR_P'
15081AWK='$AWK'
15082test -n "\$AWK" || AWK=awk
15083_ACEOF
15084
15085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15086# The default lists apply if the user does not specify any file.
15087ac_need_defaults=:
15088while test $# != 0
15089do
15090  case $1 in
15091  --*=*)
15092    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15093    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15094    ac_shift=:
15095    ;;
15096  *)
15097    ac_option=$1
15098    ac_optarg=$2
15099    ac_shift=shift
15100    ;;
15101  esac
15102
15103  case $ac_option in
15104  # Handling of the options.
15105  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15106    ac_cs_recheck=: ;;
15107  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15108    $as_echo "$ac_cs_version"; exit ;;
15109  --config | --confi | --conf | --con | --co | --c )
15110    $as_echo "$ac_cs_config"; exit ;;
15111  --debug | --debu | --deb | --de | --d | -d )
15112    debug=: ;;
15113  --file | --fil | --fi | --f )
15114    $ac_shift
15115    case $ac_optarg in
15116    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15117    esac
15118    as_fn_append CONFIG_FILES " '$ac_optarg'"
15119    ac_need_defaults=false;;
15120  --header | --heade | --head | --hea )
15121    $ac_shift
15122    case $ac_optarg in
15123    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15124    esac
15125    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15126    ac_need_defaults=false;;
15127  --he | --h)
15128    # Conflict between --help and --header
15129    as_fn_error "ambiguous option: \`$1'
15130Try \`$0 --help' for more information.";;
15131  --help | --hel | -h )
15132    $as_echo "$ac_cs_usage"; exit ;;
15133  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15134  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15135    ac_cs_silent=: ;;
15136
15137  # This is an error.
15138  -*) as_fn_error "unrecognized option: \`$1'
15139Try \`$0 --help' for more information." ;;
15140
15141  *) as_fn_append ac_config_targets " $1"
15142     ac_need_defaults=false ;;
15143
15144  esac
15145  shift
15146done
15147
15148ac_configure_extra_args=
15149
15150if $ac_cs_silent; then
15151  exec 6>/dev/null
15152  ac_configure_extra_args="$ac_configure_extra_args --silent"
15153fi
15154
15155_ACEOF
15156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15157if \$ac_cs_recheck; then
15158  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15159  shift
15160  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15161  CONFIG_SHELL='$SHELL'
15162  export CONFIG_SHELL
15163  exec "\$@"
15164fi
15165
15166_ACEOF
15167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168exec 5>>config.log
15169{
15170  echo
15171  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15172## Running $as_me. ##
15173_ASBOX
15174  $as_echo "$ac_log"
15175} >&5
15176
15177_ACEOF
15178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15179#
15180# INIT-COMMANDS
15181#
15182AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15183
15184
15185# The HP-UX ksh and POSIX shell print the target directory to stdout
15186# if CDPATH is set.
15187(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15188
15189sed_quote_subst='$sed_quote_subst'
15190double_quote_subst='$double_quote_subst'
15191delay_variable_subst='$delay_variable_subst'
15192AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
15193DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15194OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15195macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15196macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15197enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15198enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15199pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15200enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15201host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15202host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15203host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15204build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15205build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15206build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15207SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15208Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15209GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15210EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15211FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15212LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15213NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15214LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15215max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15216ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15217exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15218lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15219lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15220lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15221reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15222reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15223deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15224file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15225AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15226AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15227STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15228RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15229old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15230old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15231old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15232CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15233CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15234compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15235GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15236lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15237lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15238lt_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"`'
15239lt_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"`'
15240objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15241SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15242ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15243MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15244lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15245lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15246lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15247lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15248lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15249need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15250DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15251NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15252LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15253OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15254OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15255libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15256shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15257extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15258archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15259enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15260export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15261whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15262compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15263old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15264old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15265archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15266archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15267module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15268module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15269with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15270allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15271no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15272hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15273hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15274hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15275hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15276hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15277hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15278hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15279hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15280inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15281link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15282fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15283always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15284export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15285exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15286include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15287prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15288file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15289variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15290need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15291need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15292version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15293runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15294shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15295shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15296libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15297library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15298soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15299postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15300postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15301finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15302finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15303hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15304sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15305sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15306hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15307enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15308enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15309enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15310old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15311striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15312
15313LTCC='$LTCC'
15314LTCFLAGS='$LTCFLAGS'
15315compiler='$compiler_DEFAULT'
15316
15317# Quote evaled strings.
15318for var in SED \
15319GREP \
15320EGREP \
15321FGREP \
15322LD \
15323NM \
15324LN_S \
15325lt_SP2NL \
15326lt_NL2SP \
15327reload_flag \
15328deplibs_check_method \
15329file_magic_cmd \
15330AR \
15331AR_FLAGS \
15332STRIP \
15333RANLIB \
15334CC \
15335CFLAGS \
15336compiler \
15337lt_cv_sys_global_symbol_pipe \
15338lt_cv_sys_global_symbol_to_cdecl \
15339lt_cv_sys_global_symbol_to_c_name_address \
15340lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15341SHELL \
15342ECHO \
15343lt_prog_compiler_no_builtin_flag \
15344lt_prog_compiler_wl \
15345lt_prog_compiler_pic \
15346lt_prog_compiler_static \
15347lt_cv_prog_compiler_c_o \
15348need_locks \
15349DSYMUTIL \
15350NMEDIT \
15351LIPO \
15352OTOOL \
15353OTOOL64 \
15354shrext_cmds \
15355export_dynamic_flag_spec \
15356whole_archive_flag_spec \
15357compiler_needs_object \
15358with_gnu_ld \
15359allow_undefined_flag \
15360no_undefined_flag \
15361hardcode_libdir_flag_spec \
15362hardcode_libdir_flag_spec_ld \
15363hardcode_libdir_separator \
15364fix_srcfile_path \
15365exclude_expsyms \
15366include_expsyms \
15367file_list_spec \
15368variables_saved_for_relink \
15369libname_spec \
15370library_names_spec \
15371soname_spec \
15372finish_eval \
15373old_striplib \
15374striplib; do
15375    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15376    *[\\\\\\\`\\"\\\$]*)
15377      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15378      ;;
15379    *)
15380      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15381      ;;
15382    esac
15383done
15384
15385# Double-quote double-evaled strings.
15386for var in reload_cmds \
15387old_postinstall_cmds \
15388old_postuninstall_cmds \
15389old_archive_cmds \
15390extract_expsyms_cmds \
15391old_archive_from_new_cmds \
15392old_archive_from_expsyms_cmds \
15393archive_cmds \
15394archive_expsym_cmds \
15395module_cmds \
15396module_expsym_cmds \
15397export_symbols_cmds \
15398prelink_cmds \
15399postinstall_cmds \
15400postuninstall_cmds \
15401finish_cmds \
15402sys_lib_search_path_spec \
15403sys_lib_dlsearch_path_spec; do
15404    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15405    *[\\\\\\\`\\"\\\$]*)
15406      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15407      ;;
15408    *)
15409      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15410      ;;
15411    esac
15412done
15413
15414# Fix-up fallback echo if it was mangled by the above quoting rules.
15415case \$lt_ECHO in
15416*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15417  ;;
15418esac
15419
15420ac_aux_dir='$ac_aux_dir'
15421xsi_shell='$xsi_shell'
15422lt_shell_append='$lt_shell_append'
15423
15424# See if we are running on zsh, and set the options which allow our
15425# commands through without removal of \ escapes INIT.
15426if test -n "\${ZSH_VERSION+set}" ; then
15427   setopt NO_GLOB_SUBST
15428fi
15429
15430
15431    PACKAGE='$PACKAGE'
15432    VERSION='$VERSION'
15433    TIMESTAMP='$TIMESTAMP'
15434    RM='$RM'
15435    ofile='$ofile'
15436
15437
15438
15439
15440_ACEOF
15441
15442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15443
15444# Handling of arguments.
15445for ac_config_target in $ac_config_targets
15446do
15447  case $ac_config_target in
15448    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15449    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15450    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15451    "libxml2.spec") CONFIG_FILES="$CONFIG_FILES libxml2.spec:libxml.spec.in" ;;
15452    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15453    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15454    "include/libxml/Makefile") CONFIG_FILES="$CONFIG_FILES include/libxml/Makefile" ;;
15455    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15456    "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
15457    "xstc/Makefile") CONFIG_FILES="$CONFIG_FILES xstc/Makefile" ;;
15458    "include/libxml/xmlversion.h") CONFIG_FILES="$CONFIG_FILES include/libxml/xmlversion.h" ;;
15459    "xml2-config") CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
15460    "libxml-2.0.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
15461    "libxml-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0-uninstalled.pc" ;;
15462    "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
15463
15464  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15465  esac
15466done
15467
15468
15469# If the user did not use the arguments to specify the items to instantiate,
15470# then the envvar interface is used.  Set only those that are not.
15471# We use the long form for the default assignment because of an extremely
15472# bizarre bug on SunOS 4.1.3.
15473if $ac_need_defaults; then
15474  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15475  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15476  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15477fi
15478
15479# Have a temporary directory for convenience.  Make it in the build tree
15480# simply because there is no reason against having it here, and in addition,
15481# creating and moving files from /tmp can sometimes cause problems.
15482# Hook for its removal unless debugging.
15483# Note that there is a small window in which the directory will not be cleaned:
15484# after its creation but before its name has been assigned to `$tmp'.
15485$debug ||
15486{
15487  tmp=
15488  trap 'exit_status=$?
15489  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15490' 0
15491  trap 'as_fn_exit 1' 1 2 13 15
15492}
15493# Create a (secure) tmp directory for tmp files.
15494
15495{
15496  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15497  test -n "$tmp" && test -d "$tmp"
15498}  ||
15499{
15500  tmp=./conf$$-$RANDOM
15501  (umask 077 && mkdir "$tmp")
15502} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15503
15504# Set up the scripts for CONFIG_FILES section.
15505# No need to generate them if there are no CONFIG_FILES.
15506# This happens for instance with `./config.status config.h'.
15507if test -n "$CONFIG_FILES"; then
15508
15509
15510ac_cr=`echo X | tr X '\015'`
15511# On cygwin, bash can eat \r inside `` if the user requested igncr.
15512# But we know of no other shell where ac_cr would be empty at this
15513# point, so we can use a bashism as a fallback.
15514if test "x$ac_cr" = x; then
15515  eval ac_cr=\$\'\\r\'
15516fi
15517ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15518if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15519  ac_cs_awk_cr='\r'
15520else
15521  ac_cs_awk_cr=$ac_cr
15522fi
15523
15524echo 'BEGIN {' >"$tmp/subs1.awk" &&
15525_ACEOF
15526
15527
15528{
15529  echo "cat >conf$$subs.awk <<_ACEOF" &&
15530  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15531  echo "_ACEOF"
15532} >conf$$subs.sh ||
15533  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15534ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15535ac_delim='%!_!# '
15536for ac_last_try in false false false false false :; do
15537  . ./conf$$subs.sh ||
15538    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15539
15540  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15541  if test $ac_delim_n = $ac_delim_num; then
15542    break
15543  elif $ac_last_try; then
15544    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15545  else
15546    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15547  fi
15548done
15549rm -f conf$$subs.sh
15550
15551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15552cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15553_ACEOF
15554sed -n '
15555h
15556s/^/S["/; s/!.*/"]=/
15557p
15558g
15559s/^[^!]*!//
15560:repl
15561t repl
15562s/'"$ac_delim"'$//
15563t delim
15564:nl
15565h
15566s/\(.\{148\}\)..*/\1/
15567t more1
15568s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15569p
15570n
15571b repl
15572:more1
15573s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15574p
15575g
15576s/.\{148\}//
15577t nl
15578:delim
15579h
15580s/\(.\{148\}\)..*/\1/
15581t more2
15582s/["\\]/\\&/g; s/^/"/; s/$/"/
15583p
15584b
15585:more2
15586s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15587p
15588g
15589s/.\{148\}//
15590t delim
15591' <conf$$subs.awk | sed '
15592/^[^""]/{
15593  N
15594  s/\n//
15595}
15596' >>$CONFIG_STATUS || ac_write_fail=1
15597rm -f conf$$subs.awk
15598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15599_ACAWK
15600cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15601  for (key in S) S_is_set[key] = 1
15602  FS = ""
15603
15604}
15605{
15606  line = $ 0
15607  nfields = split(line, field, "@")
15608  substed = 0
15609  len = length(field[1])
15610  for (i = 2; i < nfields; i++) {
15611    key = field[i]
15612    keylen = length(key)
15613    if (S_is_set[key]) {
15614      value = S[key]
15615      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15616      len += length(value) + length(field[++i])
15617      substed = 1
15618    } else
15619      len += 1 + keylen
15620  }
15621
15622  print line
15623}
15624
15625_ACAWK
15626_ACEOF
15627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15628if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15629  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15630else
15631  cat
15632fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15633  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15634_ACEOF
15635
15636# VPATH may cause trouble with some makes, so we remove $(srcdir),
15637# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15638# trailing colons and then remove the whole line if VPATH becomes empty
15639# (actually we leave an empty line to preserve line numbers).
15640if test "x$srcdir" = x.; then
15641  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15642s/:*\$(srcdir):*/:/
15643s/:*\${srcdir}:*/:/
15644s/:*@srcdir@:*/:/
15645s/^\([^=]*=[	 ]*\):*/\1/
15646s/:*$//
15647s/^[^=]*=[	 ]*$//
15648}'
15649fi
15650
15651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15652fi # test -n "$CONFIG_FILES"
15653
15654# Set up the scripts for CONFIG_HEADERS section.
15655# No need to generate them if there are no CONFIG_HEADERS.
15656# This happens for instance with `./config.status Makefile'.
15657if test -n "$CONFIG_HEADERS"; then
15658cat >"$tmp/defines.awk" <<\_ACAWK ||
15659BEGIN {
15660_ACEOF
15661
15662# Transform confdefs.h into an awk script `defines.awk', embedded as
15663# here-document in config.status, that substitutes the proper values into
15664# config.h.in to produce config.h.
15665
15666# Create a delimiter string that does not exist in confdefs.h, to ease
15667# handling of long lines.
15668ac_delim='%!_!# '
15669for ac_last_try in false false :; do
15670  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15671  if test -z "$ac_t"; then
15672    break
15673  elif $ac_last_try; then
15674    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15675  else
15676    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15677  fi
15678done
15679
15680# For the awk script, D is an array of macro values keyed by name,
15681# likewise P contains macro parameters if any.  Preserve backslash
15682# newline sequences.
15683
15684ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15685sed -n '
15686s/.\{148\}/&'"$ac_delim"'/g
15687t rset
15688:rset
15689s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15690t def
15691d
15692:def
15693s/\\$//
15694t bsnl
15695s/["\\]/\\&/g
15696s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15697D["\1"]=" \3"/p
15698s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15699d
15700:bsnl
15701s/["\\]/\\&/g
15702s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15703D["\1"]=" \3\\\\\\n"\\/p
15704t cont
15705s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15706t cont
15707d
15708:cont
15709n
15710s/.\{148\}/&'"$ac_delim"'/g
15711t clear
15712:clear
15713s/\\$//
15714t bsnlc
15715s/["\\]/\\&/g; s/^/"/; s/$/"/p
15716d
15717:bsnlc
15718s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15719b cont
15720' <confdefs.h | sed '
15721s/'"$ac_delim"'/"\\\
15722"/g' >>$CONFIG_STATUS || ac_write_fail=1
15723
15724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725  for (key in D) D_is_set[key] = 1
15726  FS = ""
15727}
15728/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15729  line = \$ 0
15730  split(line, arg, " ")
15731  if (arg[1] == "#") {
15732    defundef = arg[2]
15733    mac1 = arg[3]
15734  } else {
15735    defundef = substr(arg[1], 2)
15736    mac1 = arg[2]
15737  }
15738  split(mac1, mac2, "(") #)
15739  macro = mac2[1]
15740  prefix = substr(line, 1, index(line, defundef) - 1)
15741  if (D_is_set[macro]) {
15742    # Preserve the white space surrounding the "#".
15743    print prefix "define", macro P[macro] D[macro]
15744    next
15745  } else {
15746    # Replace #undef with comments.  This is necessary, for example,
15747    # in the case of _POSIX_SOURCE, which is predefined and required
15748    # on some systems where configure will not decide to define it.
15749    if (defundef == "undef") {
15750      print "/*", prefix defundef, macro, "*/"
15751      next
15752    }
15753  }
15754}
15755{ print }
15756_ACAWK
15757_ACEOF
15758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15759  as_fn_error "could not setup config headers machinery" "$LINENO" 5
15760fi # test -n "$CONFIG_HEADERS"
15761
15762
15763eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15764shift
15765for ac_tag
15766do
15767  case $ac_tag in
15768  :[FHLC]) ac_mode=$ac_tag; continue;;
15769  esac
15770  case $ac_mode$ac_tag in
15771  :[FHL]*:*);;
15772  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15773  :[FH]-) ac_tag=-:-;;
15774  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15775  esac
15776  ac_save_IFS=$IFS
15777  IFS=:
15778  set x $ac_tag
15779  IFS=$ac_save_IFS
15780  shift
15781  ac_file=$1
15782  shift
15783
15784  case $ac_mode in
15785  :L) ac_source=$1;;
15786  :[FH])
15787    ac_file_inputs=
15788    for ac_f
15789    do
15790      case $ac_f in
15791      -) ac_f="$tmp/stdin";;
15792      *) # Look for the file first in the build tree, then in the source tree
15793	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15794	 # because $ac_f cannot contain `:'.
15795	 test -f "$ac_f" ||
15796	   case $ac_f in
15797	   [\\/$]*) false;;
15798	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15799	   esac ||
15800	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15801      esac
15802      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15803      as_fn_append ac_file_inputs " '$ac_f'"
15804    done
15805
15806    # Let's still pretend it is `configure' which instantiates (i.e., don't
15807    # use $as_me), people would be surprised to read:
15808    #    /* config.h.  Generated by config.status.  */
15809    configure_input='Generated from '`
15810	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15811	`' by configure.'
15812    if test x"$ac_file" != x-; then
15813      configure_input="$ac_file.  $configure_input"
15814      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15815$as_echo "$as_me: creating $ac_file" >&6;}
15816    fi
15817    # Neutralize special characters interpreted by sed in replacement strings.
15818    case $configure_input in #(
15819    *\&* | *\|* | *\\* )
15820       ac_sed_conf_input=`$as_echo "$configure_input" |
15821       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15822    *) ac_sed_conf_input=$configure_input;;
15823    esac
15824
15825    case $ac_tag in
15826    *:-:* | *:-) cat >"$tmp/stdin" \
15827      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15828    esac
15829    ;;
15830  esac
15831
15832  ac_dir=`$as_dirname -- "$ac_file" ||
15833$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15834	 X"$ac_file" : 'X\(//\)[^/]' \| \
15835	 X"$ac_file" : 'X\(//\)$' \| \
15836	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15837$as_echo X"$ac_file" |
15838    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15839	    s//\1/
15840	    q
15841	  }
15842	  /^X\(\/\/\)[^/].*/{
15843	    s//\1/
15844	    q
15845	  }
15846	  /^X\(\/\/\)$/{
15847	    s//\1/
15848	    q
15849	  }
15850	  /^X\(\/\).*/{
15851	    s//\1/
15852	    q
15853	  }
15854	  s/.*/./; q'`
15855  as_dir="$ac_dir"; as_fn_mkdir_p
15856  ac_builddir=.
15857
15858case "$ac_dir" in
15859.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15860*)
15861  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15862  # A ".." for each directory in $ac_dir_suffix.
15863  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15864  case $ac_top_builddir_sub in
15865  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15866  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15867  esac ;;
15868esac
15869ac_abs_top_builddir=$ac_pwd
15870ac_abs_builddir=$ac_pwd$ac_dir_suffix
15871# for backward compatibility:
15872ac_top_builddir=$ac_top_build_prefix
15873
15874case $srcdir in
15875  .)  # We are building in place.
15876    ac_srcdir=.
15877    ac_top_srcdir=$ac_top_builddir_sub
15878    ac_abs_top_srcdir=$ac_pwd ;;
15879  [\\/]* | ?:[\\/]* )  # Absolute name.
15880    ac_srcdir=$srcdir$ac_dir_suffix;
15881    ac_top_srcdir=$srcdir
15882    ac_abs_top_srcdir=$srcdir ;;
15883  *) # Relative name.
15884    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15885    ac_top_srcdir=$ac_top_build_prefix$srcdir
15886    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15887esac
15888ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15889
15890
15891  case $ac_mode in
15892  :F)
15893  #
15894  # CONFIG_FILE
15895  #
15896
15897  case $INSTALL in
15898  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15899  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15900  esac
15901  ac_MKDIR_P=$MKDIR_P
15902  case $MKDIR_P in
15903  [\\/$]* | ?:[\\/]* ) ;;
15904  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15905  esac
15906_ACEOF
15907
15908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15909# If the template does not know about datarootdir, expand it.
15910# FIXME: This hack should be removed a few years after 2.60.
15911ac_datarootdir_hack=; ac_datarootdir_seen=
15912ac_sed_dataroot='
15913/datarootdir/ {
15914  p
15915  q
15916}
15917/@datadir@/p
15918/@docdir@/p
15919/@infodir@/p
15920/@localedir@/p
15921/@mandir@/p'
15922case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15923*datarootdir*) ac_datarootdir_seen=yes;;
15924*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15925  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15926$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15927_ACEOF
15928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15929  ac_datarootdir_hack='
15930  s&@datadir@&$datadir&g
15931  s&@docdir@&$docdir&g
15932  s&@infodir@&$infodir&g
15933  s&@localedir@&$localedir&g
15934  s&@mandir@&$mandir&g
15935  s&\\\${datarootdir}&$datarootdir&g' ;;
15936esac
15937_ACEOF
15938
15939# Neutralize VPATH when `$srcdir' = `.'.
15940# Shell code in configure.ac might set extrasub.
15941# FIXME: do we really want to maintain this feature?
15942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15943ac_sed_extra="$ac_vpsub
15944$extrasub
15945_ACEOF
15946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15947:t
15948/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15949s|@configure_input@|$ac_sed_conf_input|;t t
15950s&@top_builddir@&$ac_top_builddir_sub&;t t
15951s&@top_build_prefix@&$ac_top_build_prefix&;t t
15952s&@srcdir@&$ac_srcdir&;t t
15953s&@abs_srcdir@&$ac_abs_srcdir&;t t
15954s&@top_srcdir@&$ac_top_srcdir&;t t
15955s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15956s&@builddir@&$ac_builddir&;t t
15957s&@abs_builddir@&$ac_abs_builddir&;t t
15958s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15959s&@INSTALL@&$ac_INSTALL&;t t
15960s&@MKDIR_P@&$ac_MKDIR_P&;t t
15961$ac_datarootdir_hack
15962"
15963eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15964  || as_fn_error "could not create $ac_file" "$LINENO" 5
15965
15966test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15967  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15968  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15969  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15970which seems to be undefined.  Please make sure it is defined." >&5
15971$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15972which seems to be undefined.  Please make sure it is defined." >&2;}
15973
15974  rm -f "$tmp/stdin"
15975  case $ac_file in
15976  -) cat "$tmp/out" && rm -f "$tmp/out";;
15977  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15978  esac \
15979  || as_fn_error "could not create $ac_file" "$LINENO" 5
15980 ;;
15981  :H)
15982  #
15983  # CONFIG_HEADER
15984  #
15985  if test x"$ac_file" != x-; then
15986    {
15987      $as_echo "/* $configure_input  */" \
15988      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15989    } >"$tmp/config.h" \
15990      || as_fn_error "could not create $ac_file" "$LINENO" 5
15991    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15992      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15993$as_echo "$as_me: $ac_file is unchanged" >&6;}
15994    else
15995      rm -f "$ac_file"
15996      mv "$tmp/config.h" "$ac_file" \
15997	|| as_fn_error "could not create $ac_file" "$LINENO" 5
15998    fi
15999  else
16000    $as_echo "/* $configure_input  */" \
16001      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16002      || as_fn_error "could not create -" "$LINENO" 5
16003  fi
16004# Compute "$ac_file"'s index in $config_headers.
16005_am_arg="$ac_file"
16006_am_stamp_count=1
16007for _am_header in $config_headers :; do
16008  case $_am_header in
16009    $_am_arg | $_am_arg:* )
16010      break ;;
16011    * )
16012      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16013  esac
16014done
16015echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16016$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16017	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16018	 X"$_am_arg" : 'X\(//\)$' \| \
16019	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16020$as_echo X"$_am_arg" |
16021    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16022	    s//\1/
16023	    q
16024	  }
16025	  /^X\(\/\/\)[^/].*/{
16026	    s//\1/
16027	    q
16028	  }
16029	  /^X\(\/\/\)$/{
16030	    s//\1/
16031	    q
16032	  }
16033	  /^X\(\/\).*/{
16034	    s//\1/
16035	    q
16036	  }
16037	  s/.*/./; q'`/stamp-h$_am_stamp_count
16038 ;;
16039
16040  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16041$as_echo "$as_me: executing $ac_file commands" >&6;}
16042 ;;
16043  esac
16044
16045
16046  case $ac_file$ac_mode in
16047    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16048  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16049  # are listed without --file.  Let's play safe and only enable the eval
16050  # if we detect the quoting.
16051  case $CONFIG_FILES in
16052  *\'*) eval set x "$CONFIG_FILES" ;;
16053  *)   set x $CONFIG_FILES ;;
16054  esac
16055  shift
16056  for mf
16057  do
16058    # Strip MF so we end up with the name of the file.
16059    mf=`echo "$mf" | sed -e 's/:.*$//'`
16060    # Check whether this is an Automake generated Makefile or not.
16061    # We used to match only the files named `Makefile.in', but
16062    # some people rename them; so instead we look at the file content.
16063    # Grep'ing the first line is not enough: some people post-process
16064    # each Makefile.in and add a new line on top of each file to say so.
16065    # Grep'ing the whole file is not good either: AIX grep has a line
16066    # limit of 2048, but all sed's we know have understand at least 4000.
16067    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16068      dirpart=`$as_dirname -- "$mf" ||
16069$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16070	 X"$mf" : 'X\(//\)[^/]' \| \
16071	 X"$mf" : 'X\(//\)$' \| \
16072	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16073$as_echo X"$mf" |
16074    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16075	    s//\1/
16076	    q
16077	  }
16078	  /^X\(\/\/\)[^/].*/{
16079	    s//\1/
16080	    q
16081	  }
16082	  /^X\(\/\/\)$/{
16083	    s//\1/
16084	    q
16085	  }
16086	  /^X\(\/\).*/{
16087	    s//\1/
16088	    q
16089	  }
16090	  s/.*/./; q'`
16091    else
16092      continue
16093    fi
16094    # Extract the definition of DEPDIR, am__include, and am__quote
16095    # from the Makefile without running `make'.
16096    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16097    test -z "$DEPDIR" && continue
16098    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16099    test -z "am__include" && continue
16100    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16101    # When using ansi2knr, U may be empty or an underscore; expand it
16102    U=`sed -n 's/^U = //p' < "$mf"`
16103    # Find all dependency output files, they are included files with
16104    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16105    # simplest approach to changing $(DEPDIR) to its actual value in the
16106    # expansion.
16107    for file in `sed -n "
16108      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16109	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16110      # Make sure the directory exists.
16111      test -f "$dirpart/$file" && continue
16112      fdir=`$as_dirname -- "$file" ||
16113$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16114	 X"$file" : 'X\(//\)[^/]' \| \
16115	 X"$file" : 'X\(//\)$' \| \
16116	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16117$as_echo X"$file" |
16118    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16119	    s//\1/
16120	    q
16121	  }
16122	  /^X\(\/\/\)[^/].*/{
16123	    s//\1/
16124	    q
16125	  }
16126	  /^X\(\/\/\)$/{
16127	    s//\1/
16128	    q
16129	  }
16130	  /^X\(\/\).*/{
16131	    s//\1/
16132	    q
16133	  }
16134	  s/.*/./; q'`
16135      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16136      # echo "creating $dirpart/$file"
16137      echo '# dummy' > "$dirpart/$file"
16138    done
16139  done
16140}
16141 ;;
16142    "libtool":C)
16143
16144    # See if we are running on zsh, and set the options which allow our
16145    # commands through without removal of \ escapes.
16146    if test -n "${ZSH_VERSION+set}" ; then
16147      setopt NO_GLOB_SUBST
16148    fi
16149
16150    cfgfile="${ofile}T"
16151    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16152    $RM "$cfgfile"
16153
16154    cat <<_LT_EOF >> "$cfgfile"
16155#! $SHELL
16156
16157# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16158# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16159# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16160# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16161#
16162#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16163#                 2006, 2007, 2008 Free Software Foundation, Inc.
16164#   Written by Gordon Matzigkeit, 1996
16165#
16166#   This file is part of GNU Libtool.
16167#
16168# GNU Libtool is free software; you can redistribute it and/or
16169# modify it under the terms of the GNU General Public License as
16170# published by the Free Software Foundation; either version 2 of
16171# the License, or (at your option) any later version.
16172#
16173# As a special exception to the GNU General Public License,
16174# if you distribute this file as part of a program or library that
16175# is built using GNU Libtool, you may include this file under the
16176# same distribution terms that you use for the rest of that program.
16177#
16178# GNU Libtool is distributed in the hope that it will be useful,
16179# but WITHOUT ANY WARRANTY; without even the implied warranty of
16180# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16181# GNU General Public License for more details.
16182#
16183# You should have received a copy of the GNU General Public License
16184# along with GNU Libtool; see the file COPYING.  If not, a copy
16185# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16186# obtained by writing to the Free Software Foundation, Inc.,
16187# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16188
16189
16190# The names of the tagged configurations supported by this script.
16191available_tags=""
16192
16193# ### BEGIN LIBTOOL CONFIG
16194
16195# Assembler program.
16196AS=$AS
16197
16198# DLL creation program.
16199DLLTOOL=$DLLTOOL
16200
16201# Object dumper program.
16202OBJDUMP=$OBJDUMP
16203
16204# Which release of libtool.m4 was used?
16205macro_version=$macro_version
16206macro_revision=$macro_revision
16207
16208# Whether or not to build shared libraries.
16209build_libtool_libs=$enable_shared
16210
16211# Whether or not to build static libraries.
16212build_old_libs=$enable_static
16213
16214# What type of objects to build.
16215pic_mode=$pic_mode
16216
16217# Whether or not to optimize for fast installation.
16218fast_install=$enable_fast_install
16219
16220# The host system.
16221host_alias=$host_alias
16222host=$host
16223host_os=$host_os
16224
16225# The build system.
16226build_alias=$build_alias
16227build=$build
16228build_os=$build_os
16229
16230# A sed program that does not truncate output.
16231SED=$lt_SED
16232
16233# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16234Xsed="\$SED -e 1s/^X//"
16235
16236# A grep program that handles long lines.
16237GREP=$lt_GREP
16238
16239# An ERE matcher.
16240EGREP=$lt_EGREP
16241
16242# A literal string matcher.
16243FGREP=$lt_FGREP
16244
16245# A BSD- or MS-compatible name lister.
16246NM=$lt_NM
16247
16248# Whether we need soft or hard links.
16249LN_S=$lt_LN_S
16250
16251# What is the maximum length of a command?
16252max_cmd_len=$max_cmd_len
16253
16254# Object file suffix (normally "o").
16255objext=$ac_objext
16256
16257# Executable file suffix (normally "").
16258exeext=$exeext
16259
16260# whether the shell understands "unset".
16261lt_unset=$lt_unset
16262
16263# turn spaces into newlines.
16264SP2NL=$lt_lt_SP2NL
16265
16266# turn newlines into spaces.
16267NL2SP=$lt_lt_NL2SP
16268
16269# How to create reloadable object files.
16270reload_flag=$lt_reload_flag
16271reload_cmds=$lt_reload_cmds
16272
16273# Method to check whether dependent libraries are shared objects.
16274deplibs_check_method=$lt_deplibs_check_method
16275
16276# Command to use when deplibs_check_method == "file_magic".
16277file_magic_cmd=$lt_file_magic_cmd
16278
16279# The archiver.
16280AR=$lt_AR
16281AR_FLAGS=$lt_AR_FLAGS
16282
16283# A symbol stripping program.
16284STRIP=$lt_STRIP
16285
16286# Commands used to install an old-style archive.
16287RANLIB=$lt_RANLIB
16288old_postinstall_cmds=$lt_old_postinstall_cmds
16289old_postuninstall_cmds=$lt_old_postuninstall_cmds
16290
16291# A C compiler.
16292LTCC=$lt_CC
16293
16294# LTCC compiler flags.
16295LTCFLAGS=$lt_CFLAGS
16296
16297# Take the output of nm and produce a listing of raw symbols and C names.
16298global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16299
16300# Transform the output of nm in a proper C declaration.
16301global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16302
16303# Transform the output of nm in a C name address pair.
16304global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16305
16306# Transform the output of nm in a C name address pair when lib prefix is needed.
16307global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16308
16309# The name of the directory that contains temporary libtool files.
16310objdir=$objdir
16311
16312# Shell to use when invoking shell scripts.
16313SHELL=$lt_SHELL
16314
16315# An echo program that does not interpret backslashes.
16316ECHO=$lt_ECHO
16317
16318# Used to examine libraries when file_magic_cmd begins with "file".
16319MAGIC_CMD=$MAGIC_CMD
16320
16321# Must we lock files when doing compilation?
16322need_locks=$lt_need_locks
16323
16324# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16325DSYMUTIL=$lt_DSYMUTIL
16326
16327# Tool to change global to local symbols on Mac OS X.
16328NMEDIT=$lt_NMEDIT
16329
16330# Tool to manipulate fat objects and archives on Mac OS X.
16331LIPO=$lt_LIPO
16332
16333# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16334OTOOL=$lt_OTOOL
16335
16336# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16337OTOOL64=$lt_OTOOL64
16338
16339# Old archive suffix (normally "a").
16340libext=$libext
16341
16342# Shared library suffix (normally ".so").
16343shrext_cmds=$lt_shrext_cmds
16344
16345# The commands to extract the exported symbol list from a shared archive.
16346extract_expsyms_cmds=$lt_extract_expsyms_cmds
16347
16348# Variables whose values should be saved in libtool wrapper scripts and
16349# restored at link time.
16350variables_saved_for_relink=$lt_variables_saved_for_relink
16351
16352# Do we need the "lib" prefix for modules?
16353need_lib_prefix=$need_lib_prefix
16354
16355# Do we need a version for libraries?
16356need_version=$need_version
16357
16358# Library versioning type.
16359version_type=$version_type
16360
16361# Shared library runtime path variable.
16362runpath_var=$runpath_var
16363
16364# Shared library path variable.
16365shlibpath_var=$shlibpath_var
16366
16367# Is shlibpath searched before the hard-coded library search path?
16368shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16369
16370# Format of library name prefix.
16371libname_spec=$lt_libname_spec
16372
16373# List of archive names.  First name is the real one, the rest are links.
16374# The last name is the one that the linker finds with -lNAME
16375library_names_spec=$lt_library_names_spec
16376
16377# The coded name of the library, if different from the real name.
16378soname_spec=$lt_soname_spec
16379
16380# Command to use after installation of a shared archive.
16381postinstall_cmds=$lt_postinstall_cmds
16382
16383# Command to use after uninstallation of a shared archive.
16384postuninstall_cmds=$lt_postuninstall_cmds
16385
16386# Commands used to finish a libtool library installation in a directory.
16387finish_cmds=$lt_finish_cmds
16388
16389# As "finish_cmds", except a single script fragment to be evaled but
16390# not shown.
16391finish_eval=$lt_finish_eval
16392
16393# Whether we should hardcode library paths into libraries.
16394hardcode_into_libs=$hardcode_into_libs
16395
16396# Compile-time system search path for libraries.
16397sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16398
16399# Run-time system search path for libraries.
16400sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16401
16402# Whether dlopen is supported.
16403dlopen_support=$enable_dlopen
16404
16405# Whether dlopen of programs is supported.
16406dlopen_self=$enable_dlopen_self
16407
16408# Whether dlopen of statically linked programs is supported.
16409dlopen_self_static=$enable_dlopen_self_static
16410
16411# Commands to strip libraries.
16412old_striplib=$lt_old_striplib
16413striplib=$lt_striplib
16414
16415
16416# The linker used to build libraries.
16417LD=$lt_LD
16418
16419# Commands used to build an old-style archive.
16420old_archive_cmds=$lt_old_archive_cmds
16421
16422# A language specific compiler.
16423CC=$lt_compiler
16424
16425# Is the compiler the GNU compiler?
16426with_gcc=$GCC
16427
16428# Compiler flag to turn off builtin functions.
16429no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16430
16431# How to pass a linker flag through the compiler.
16432wl=$lt_lt_prog_compiler_wl
16433
16434# Additional compiler flags for building library objects.
16435pic_flag=$lt_lt_prog_compiler_pic
16436
16437# Compiler flag to prevent dynamic linking.
16438link_static_flag=$lt_lt_prog_compiler_static
16439
16440# Does compiler simultaneously support -c and -o options?
16441compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16442
16443# Whether or not to add -lc for building shared libraries.
16444build_libtool_need_lc=$archive_cmds_need_lc
16445
16446# Whether or not to disallow shared libs when runtime libs are static.
16447allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16448
16449# Compiler flag to allow reflexive dlopens.
16450export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16451
16452# Compiler flag to generate shared objects directly from archives.
16453whole_archive_flag_spec=$lt_whole_archive_flag_spec
16454
16455# Whether the compiler copes with passing no objects directly.
16456compiler_needs_object=$lt_compiler_needs_object
16457
16458# Create an old-style archive from a shared archive.
16459old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16460
16461# Create a temporary old-style archive to link instead of a shared archive.
16462old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16463
16464# Commands used to build a shared archive.
16465archive_cmds=$lt_archive_cmds
16466archive_expsym_cmds=$lt_archive_expsym_cmds
16467
16468# Commands used to build a loadable module if different from building
16469# a shared archive.
16470module_cmds=$lt_module_cmds
16471module_expsym_cmds=$lt_module_expsym_cmds
16472
16473# Whether we are building with GNU ld or not.
16474with_gnu_ld=$lt_with_gnu_ld
16475
16476# Flag that allows shared libraries with undefined symbols to be built.
16477allow_undefined_flag=$lt_allow_undefined_flag
16478
16479# Flag that enforces no undefined symbols.
16480no_undefined_flag=$lt_no_undefined_flag
16481
16482# Flag to hardcode \$libdir into a binary during linking.
16483# This must work even if \$libdir does not exist
16484hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16485
16486# If ld is used when linking, flag to hardcode \$libdir into a binary
16487# during linking.  This must work even if \$libdir does not exist.
16488hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16489
16490# Whether we need a single "-rpath" flag with a separated argument.
16491hardcode_libdir_separator=$lt_hardcode_libdir_separator
16492
16493# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16494# DIR into the resulting binary.
16495hardcode_direct=$hardcode_direct
16496
16497# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16498# DIR into the resulting binary and the resulting library dependency is
16499# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16500# library is relocated.
16501hardcode_direct_absolute=$hardcode_direct_absolute
16502
16503# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16504# into the resulting binary.
16505hardcode_minus_L=$hardcode_minus_L
16506
16507# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16508# into the resulting binary.
16509hardcode_shlibpath_var=$hardcode_shlibpath_var
16510
16511# Set to "yes" if building a shared library automatically hardcodes DIR
16512# into the library and all subsequent libraries and executables linked
16513# against it.
16514hardcode_automatic=$hardcode_automatic
16515
16516# Set to yes if linker adds runtime paths of dependent libraries
16517# to runtime path list.
16518inherit_rpath=$inherit_rpath
16519
16520# Whether libtool must link a program against all its dependency libraries.
16521link_all_deplibs=$link_all_deplibs
16522
16523# Fix the shell variable \$srcfile for the compiler.
16524fix_srcfile_path=$lt_fix_srcfile_path
16525
16526# Set to "yes" if exported symbols are required.
16527always_export_symbols=$always_export_symbols
16528
16529# The commands to list exported symbols.
16530export_symbols_cmds=$lt_export_symbols_cmds
16531
16532# Symbols that should not be listed in the preloaded symbols.
16533exclude_expsyms=$lt_exclude_expsyms
16534
16535# Symbols that must always be exported.
16536include_expsyms=$lt_include_expsyms
16537
16538# Commands necessary for linking programs (against libraries) with templates.
16539prelink_cmds=$lt_prelink_cmds
16540
16541# Specify filename containing input files.
16542file_list_spec=$lt_file_list_spec
16543
16544# How to hardcode a shared library path into an executable.
16545hardcode_action=$hardcode_action
16546
16547# ### END LIBTOOL CONFIG
16548
16549_LT_EOF
16550
16551  case $host_os in
16552  aix3*)
16553    cat <<\_LT_EOF >> "$cfgfile"
16554# AIX sometimes has problems with the GCC collect2 program.  For some
16555# reason, if we set the COLLECT_NAMES environment variable, the problems
16556# vanish in a puff of smoke.
16557if test "X${COLLECT_NAMES+set}" != Xset; then
16558  COLLECT_NAMES=
16559  export COLLECT_NAMES
16560fi
16561_LT_EOF
16562    ;;
16563  esac
16564
16565
16566ltmain="$ac_aux_dir/ltmain.sh"
16567
16568
16569  # We use sed instead of cat because bash on DJGPP gets confused if
16570  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16571  # text mode, it properly converts lines to CR/LF.  This bash problem
16572  # is reportedly fixed, but why not run on old versions too?
16573  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16574    || (rm -f "$cfgfile"; exit 1)
16575
16576  case $xsi_shell in
16577  yes)
16578    cat << \_LT_EOF >> "$cfgfile"
16579
16580# func_dirname file append nondir_replacement
16581# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16582# otherwise set result to NONDIR_REPLACEMENT.
16583func_dirname ()
16584{
16585  case ${1} in
16586    */*) func_dirname_result="${1%/*}${2}" ;;
16587    *  ) func_dirname_result="${3}" ;;
16588  esac
16589}
16590
16591# func_basename file
16592func_basename ()
16593{
16594  func_basename_result="${1##*/}"
16595}
16596
16597# func_dirname_and_basename file append nondir_replacement
16598# perform func_basename and func_dirname in a single function
16599# call:
16600#   dirname:  Compute the dirname of FILE.  If nonempty,
16601#             add APPEND to the result, otherwise set result
16602#             to NONDIR_REPLACEMENT.
16603#             value returned in "$func_dirname_result"
16604#   basename: Compute filename of FILE.
16605#             value retuned in "$func_basename_result"
16606# Implementation must be kept synchronized with func_dirname
16607# and func_basename. For efficiency, we do not delegate to
16608# those functions but instead duplicate the functionality here.
16609func_dirname_and_basename ()
16610{
16611  case ${1} in
16612    */*) func_dirname_result="${1%/*}${2}" ;;
16613    *  ) func_dirname_result="${3}" ;;
16614  esac
16615  func_basename_result="${1##*/}"
16616}
16617
16618# func_stripname prefix suffix name
16619# strip PREFIX and SUFFIX off of NAME.
16620# PREFIX and SUFFIX must not contain globbing or regex special
16621# characters, hashes, percent signs, but SUFFIX may contain a leading
16622# dot (in which case that matches only a dot).
16623func_stripname ()
16624{
16625  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16626  # positional parameters, so assign one to ordinary parameter first.
16627  func_stripname_result=${3}
16628  func_stripname_result=${func_stripname_result#"${1}"}
16629  func_stripname_result=${func_stripname_result%"${2}"}
16630}
16631
16632# func_opt_split
16633func_opt_split ()
16634{
16635  func_opt_split_opt=${1%%=*}
16636  func_opt_split_arg=${1#*=}
16637}
16638
16639# func_lo2o object
16640func_lo2o ()
16641{
16642  case ${1} in
16643    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16644    *)    func_lo2o_result=${1} ;;
16645  esac
16646}
16647
16648# func_xform libobj-or-source
16649func_xform ()
16650{
16651  func_xform_result=${1%.*}.lo
16652}
16653
16654# func_arith arithmetic-term...
16655func_arith ()
16656{
16657  func_arith_result=$(( $* ))
16658}
16659
16660# func_len string
16661# STRING may not start with a hyphen.
16662func_len ()
16663{
16664  func_len_result=${#1}
16665}
16666
16667_LT_EOF
16668    ;;
16669  *) # Bourne compatible functions.
16670    cat << \_LT_EOF >> "$cfgfile"
16671
16672# func_dirname file append nondir_replacement
16673# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16674# otherwise set result to NONDIR_REPLACEMENT.
16675func_dirname ()
16676{
16677  # Extract subdirectory from the argument.
16678  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16679  if test "X$func_dirname_result" = "X${1}"; then
16680    func_dirname_result="${3}"
16681  else
16682    func_dirname_result="$func_dirname_result${2}"
16683  fi
16684}
16685
16686# func_basename file
16687func_basename ()
16688{
16689  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16690}
16691
16692
16693# func_stripname prefix suffix name
16694# strip PREFIX and SUFFIX off of NAME.
16695# PREFIX and SUFFIX must not contain globbing or regex special
16696# characters, hashes, percent signs, but SUFFIX may contain a leading
16697# dot (in which case that matches only a dot).
16698# func_strip_suffix prefix name
16699func_stripname ()
16700{
16701  case ${2} in
16702    .*) func_stripname_result=`$ECHO "X${3}" \
16703           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16704    *)  func_stripname_result=`$ECHO "X${3}" \
16705           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16706  esac
16707}
16708
16709# sed scripts:
16710my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16711my_sed_long_arg='1s/^-[^=]*=//'
16712
16713# func_opt_split
16714func_opt_split ()
16715{
16716  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16717  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16718}
16719
16720# func_lo2o object
16721func_lo2o ()
16722{
16723  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16724}
16725
16726# func_xform libobj-or-source
16727func_xform ()
16728{
16729  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16730}
16731
16732# func_arith arithmetic-term...
16733func_arith ()
16734{
16735  func_arith_result=`expr "$@"`
16736}
16737
16738# func_len string
16739# STRING may not start with a hyphen.
16740func_len ()
16741{
16742  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16743}
16744
16745_LT_EOF
16746esac
16747
16748case $lt_shell_append in
16749  yes)
16750    cat << \_LT_EOF >> "$cfgfile"
16751
16752# func_append var value
16753# Append VALUE to the end of shell variable VAR.
16754func_append ()
16755{
16756  eval "$1+=\$2"
16757}
16758_LT_EOF
16759    ;;
16760  *)
16761    cat << \_LT_EOF >> "$cfgfile"
16762
16763# func_append var value
16764# Append VALUE to the end of shell variable VAR.
16765func_append ()
16766{
16767  eval "$1=\$$1\$2"
16768}
16769
16770_LT_EOF
16771    ;;
16772  esac
16773
16774
16775  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16776    || (rm -f "$cfgfile"; exit 1)
16777
16778  mv -f "$cfgfile" "$ofile" ||
16779    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16780  chmod +x "$ofile"
16781
16782 ;;
16783
16784  esac
16785done # for ac_tag
16786
16787
16788as_fn_exit 0
16789_ACEOF
16790ac_clean_files=$ac_clean_files_save
16791
16792test $ac_write_fail = 0 ||
16793  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16794
16795
16796# configure is writing to config.log, and then calls config.status.
16797# config.status does its own redirection, appending to config.log.
16798# Unfortunately, on DOS this fails, as config.log is still kept open
16799# by configure, so config.status won't be able to write to it; its
16800# output is simply discarded.  So we exec the FD to /dev/null,
16801# effectively closing config.log, so it can be properly (re)opened and
16802# appended to by config.status.  When coming back to configure, we
16803# need to make the FD available again.
16804if test "$no_create" != yes; then
16805  ac_cs_success=:
16806  ac_config_status_args=
16807  test "$silent" = yes &&
16808    ac_config_status_args="$ac_config_status_args --quiet"
16809  exec 5>/dev/null
16810  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16811  exec 5>>config.log
16812  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16813  # would make configure fail if this is the last instruction.
16814  $ac_cs_success || as_fn_exit $?
16815fi
16816if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16817  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16818$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16819fi
16820
16821
16822chmod +x xml2-config python/setup.py
16823echo Done configuring
16824