1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580  # Remove one level of quotation (which was required for Make).
581  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582  ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587  # Discard the --no-reexec flag, and continue.
588  shift
589elif test "X$1" = X--fallback-echo; then
590  # Avoid inline document here, it may be left over
591  :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593  # Yippee, $ECHO works!
594  :
595else
596  # Restart under the correct shell.
597  exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601  # used as fallback echo
602  shift
603  cat <<_LT_EOF
604$*
605_LT_EOF
606  exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614  if test "X${echo_test_string+set}" != Xset; then
615    # find a string as large as possible, as long as the shell can cope with it
616    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620      then
621        break
622      fi
623    done
624  fi
625
626  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628     test "X$echo_testing_string" = "X$echo_test_string"; then
629    :
630  else
631    # The Solaris, AIX, and Digital Unix default echo programs unquote
632    # backslashes.  This makes it impossible to quote backslashes using
633    #   echo "$something" | sed 's/\\/\\\\/g'
634    #
635    # So, first we look for a working echo in the user's PATH.
636
637    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638    for dir in $PATH /usr/ucb; do
639      IFS="$lt_save_ifs"
640      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643         test "X$echo_testing_string" = "X$echo_test_string"; then
644        ECHO="$dir/echo"
645        break
646      fi
647    done
648    IFS="$lt_save_ifs"
649
650    if test "X$ECHO" = Xecho; then
651      # We didn't find a better echo, so look for alternatives.
652      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654         test "X$echo_testing_string" = "X$echo_test_string"; then
655        # This shell has a builtin print -r that does the trick.
656        ECHO='print -r'
657      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658	   test "X$CONFIG_SHELL" != X/bin/ksh; then
659        # If we have ksh, try running configure again with it.
660        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661        export ORIGINAL_CONFIG_SHELL
662        CONFIG_SHELL=/bin/ksh
663        export CONFIG_SHELL
664        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665      else
666        # Try using printf.
667        ECHO='printf %s\n'
668        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670	   test "X$echo_testing_string" = "X$echo_test_string"; then
671	  # Cool, printf works
672	  :
673        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674	     test "X$echo_testing_string" = 'X\t' &&
675	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676	     test "X$echo_testing_string" = "X$echo_test_string"; then
677	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678	  export CONFIG_SHELL
679	  SHELL="$CONFIG_SHELL"
680	  export SHELL
681	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
682        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683	     test "X$echo_testing_string" = 'X\t' &&
684	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685	     test "X$echo_testing_string" = "X$echo_test_string"; then
686	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
687        else
688	  # maybe with a smaller string...
689	  prev=:
690
691	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693	    then
694	      break
695	    fi
696	    prev="$cmd"
697	  done
698
699	  if test "$prev" != 'sed 50q "$0"'; then
700	    echo_test_string=`eval $prev`
701	    export echo_test_string
702	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703	  else
704	    # Oops.  We lost completely, so just stick with echo.
705	    ECHO=echo
706	  fi
707        fi
708      fi
709    fi
710  fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME=
745PACKAGE_TARNAME=
746PACKAGE_VERSION=
747PACKAGE_STRING=
748PACKAGE_BUGREPORT=
749
750ac_unique_file="configure.in"
751# Factoring default headers for most tests.
752ac_includes_default="\
753#include <stdio.h>
754#ifdef HAVE_SYS_TYPES_H
755# include <sys/types.h>
756#endif
757#ifdef HAVE_SYS_STAT_H
758# include <sys/stat.h>
759#endif
760#ifdef STDC_HEADERS
761# include <stdlib.h>
762# include <stddef.h>
763#else
764# ifdef HAVE_STDLIB_H
765#  include <stdlib.h>
766# endif
767#endif
768#ifdef HAVE_STRING_H
769# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770#  include <memory.h>
771# endif
772# include <string.h>
773#endif
774#ifdef HAVE_STRINGS_H
775# include <strings.h>
776#endif
777#ifdef HAVE_INTTYPES_H
778# include <inttypes.h>
779#endif
780#ifdef HAVE_STDINT_H
781# include <stdint.h>
782#endif
783#ifdef HAVE_UNISTD_H
784# include <unistd.h>
785#endif"
786
787ac_subst_vars='am__EXEEXT_FALSE
788am__EXEEXT_TRUE
789LTLIBOBJS
790LIBOBJS
791GMIME_CFLAGS
792GMIME_INCLUDEDIR
793GMIME_LIBDIR
794GMIME_LIBS
795API_VERSION
796GAPI_FIXUP
797GAPI_CODEGEN
798GTK_SHARP_LIBS
799GTK_SHARP_CFLAGS
800GACUTIL
801ENABLE_MONO_FALSE
802ENABLE_MONO_TRUE
803CSC
804ENABLE_LARGEFILE_FALSE
805ENABLE_LARGEFILE_TRUE
806SYSTEM_GETOPT_FALSE
807SYSTEM_GETOPT_TRUE
808HAVE_REGEX_FALSE
809HAVE_REGEX_TRUE
810LTLIBICONV
811LIBICONV
812glib_libs
813glib_cflags
814GLIB_MKENUMS
815GOBJECT_QUERY
816GLIB_GENMARSHAL
817GLIB_LIBS
818GLIB_CFLAGS
819HAVE_DOCBOOK_FALSE
820HAVE_DOCBOOK_TRUE
821DB2HTML
822GTK_DOC_USE_LIBTOOL_FALSE
823GTK_DOC_USE_LIBTOOL_TRUE
824ENABLE_GTK_DOC_FALSE
825ENABLE_GTK_DOC_TRUE
826GTKDOC_CHECK
827PKG_CONFIG
828HTML_DIR
829MAINT
830MAINTAINER_MODE_FALSE
831MAINTAINER_MODE_TRUE
832OTOOL64
833OTOOL
834LIPO
835NMEDIT
836DSYMUTIL
837lt_ECHO
838RANLIB
839AR
840OBJDUMP
841NM
842ac_ct_DUMPBIN
843DUMPBIN
844LD
845FGREP
846SED
847LIBTOOL
848TAR
849MV
850RM
851LN_S
852EGREP
853GREP
854CPP
855am__fastdepCC_FALSE
856am__fastdepCC_TRUE
857CCDEPMODE
858AMDEPBACKSLASH
859AMDEP_FALSE
860AMDEP_TRUE
861am__quote
862am__include
863DEPDIR
864OBJEXT
865EXEEXT
866ac_ct_CC
867CPPFLAGS
868LDFLAGS
869CFLAGS
870CC
871OS_WIN32_FALSE
872OS_WIN32_TRUE
873PLATFORM_WIN32_FALSE
874PLATFORM_WIN32_TRUE
875host_os
876host_vendor
877host_cpu
878host
879build_os
880build_vendor
881build_cpu
882build
883am__untar
884am__tar
885AMTAR
886am__leading_dot
887SET_MAKE
888AWK
889mkdir_p
890MKDIR_P
891INSTALL_STRIP_PROGRAM
892STRIP
893install_sh
894MAKEINFO
895AUTOHEADER
896AUTOMAKE
897AUTOCONF
898ACLOCAL
899VERSION
900PACKAGE
901CYGPATH_W
902am__isrc
903INSTALL_DATA
904INSTALL_SCRIPT
905INSTALL_PROGRAM
906GMIME_VERSION_INFO
907GMIME_VERSION
908GMIME_MICRO_VERSION
909GMIME_MINOR_VERSION
910GMIME_MAJOR_VERSION
911target_alias
912host_alias
913build_alias
914LIBS
915ECHO_T
916ECHO_N
917ECHO_C
918DEFS
919mandir
920localedir
921libdir
922psdir
923pdfdir
924dvidir
925htmldir
926infodir
927docdir
928oldincludedir
929includedir
930localstatedir
931sharedstatedir
932sysconfdir
933datadir
934datarootdir
935libexecdir
936sbindir
937bindir
938program_transform_name
939prefix
940exec_prefix
941PACKAGE_BUGREPORT
942PACKAGE_STRING
943PACKAGE_VERSION
944PACKAGE_TARNAME
945PACKAGE_NAME
946PATH_SEPARATOR
947SHELL'
948ac_subst_files=''
949ac_user_opts='
950enable_option_checking
951enable_dependency_tracking
952enable_shared
953enable_static
954with_pic
955enable_fast_install
956with_gnu_ld
957enable_libtool_lock
958enable_maintainer_mode
959with_html_dir
960enable_gtk_doc
961enable_profiling
962enable_warnings
963enable_glibtest
964enable_rpath
965with_libiconv_prefix
966enable_rfc2047_workarounds
967enable_largefile
968enable_mono
969'
970      ac_precious_vars='build_alias
971host_alias
972target_alias
973CC
974CFLAGS
975LDFLAGS
976LIBS
977CPPFLAGS
978CPP
979PKG_CONFIG
980GTK_SHARP_CFLAGS
981GTK_SHARP_LIBS'
982
983
984# Initialize some variables set by options.
985ac_init_help=
986ac_init_version=false
987ac_unrecognized_opts=
988ac_unrecognized_sep=
989# The variables have the same names as the options, with
990# dashes changed to underlines.
991cache_file=/dev/null
992exec_prefix=NONE
993no_create=
994no_recursion=
995prefix=NONE
996program_prefix=NONE
997program_suffix=NONE
998program_transform_name=s,x,x,
999silent=
1000site=
1001srcdir=
1002verbose=
1003x_includes=NONE
1004x_libraries=NONE
1005
1006# Installation directory options.
1007# These are left unexpanded so users can "make install exec_prefix=/foo"
1008# and all the variables that are supposed to be based on exec_prefix
1009# by default will actually change.
1010# Use braces instead of parens because sh, perl, etc. also accept them.
1011# (The list follows the same order as the GNU Coding Standards.)
1012bindir='${exec_prefix}/bin'
1013sbindir='${exec_prefix}/sbin'
1014libexecdir='${exec_prefix}/libexec'
1015datarootdir='${prefix}/share'
1016datadir='${datarootdir}'
1017sysconfdir='${prefix}/etc'
1018sharedstatedir='${prefix}/com'
1019localstatedir='${prefix}/var'
1020includedir='${prefix}/include'
1021oldincludedir='/usr/include'
1022docdir='${datarootdir}/doc/${PACKAGE}'
1023infodir='${datarootdir}/info'
1024htmldir='${docdir}'
1025dvidir='${docdir}'
1026pdfdir='${docdir}'
1027psdir='${docdir}'
1028libdir='${exec_prefix}/lib'
1029localedir='${datarootdir}/locale'
1030mandir='${datarootdir}/man'
1031
1032ac_prev=
1033ac_dashdash=
1034for ac_option
1035do
1036  # If the previous option needs an argument, assign it.
1037  if test -n "$ac_prev"; then
1038    eval $ac_prev=\$ac_option
1039    ac_prev=
1040    continue
1041  fi
1042
1043  case $ac_option in
1044  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1045  *)	ac_optarg=yes ;;
1046  esac
1047
1048  # Accept the important Cygnus configure options, so we can diagnose typos.
1049
1050  case $ac_dashdash$ac_option in
1051  --)
1052    ac_dashdash=yes ;;
1053
1054  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1055    ac_prev=bindir ;;
1056  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1057    bindir=$ac_optarg ;;
1058
1059  -build | --build | --buil | --bui | --bu)
1060    ac_prev=build_alias ;;
1061  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1062    build_alias=$ac_optarg ;;
1063
1064  -cache-file | --cache-file | --cache-fil | --cache-fi \
1065  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1066    ac_prev=cache_file ;;
1067  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1068  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1069    cache_file=$ac_optarg ;;
1070
1071  --config-cache | -C)
1072    cache_file=config.cache ;;
1073
1074  -datadir | --datadir | --datadi | --datad)
1075    ac_prev=datadir ;;
1076  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1077    datadir=$ac_optarg ;;
1078
1079  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1080  | --dataroo | --dataro | --datar)
1081    ac_prev=datarootdir ;;
1082  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1083  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1084    datarootdir=$ac_optarg ;;
1085
1086  -disable-* | --disable-*)
1087    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1088    # Reject names that are not valid shell variable names.
1089    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1091   { (exit 1); exit 1; }; }
1092    ac_useropt_orig=$ac_useropt
1093    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094    case $ac_user_opts in
1095      *"
1096"enable_$ac_useropt"
1097"*) ;;
1098      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1099	 ac_unrecognized_sep=', ';;
1100    esac
1101    eval enable_$ac_useropt=no ;;
1102
1103  -docdir | --docdir | --docdi | --doc | --do)
1104    ac_prev=docdir ;;
1105  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1106    docdir=$ac_optarg ;;
1107
1108  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1109    ac_prev=dvidir ;;
1110  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1111    dvidir=$ac_optarg ;;
1112
1113  -enable-* | --enable-*)
1114    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1115    # Reject names that are not valid shell variable names.
1116    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1118   { (exit 1); exit 1; }; }
1119    ac_useropt_orig=$ac_useropt
1120    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121    case $ac_user_opts in
1122      *"
1123"enable_$ac_useropt"
1124"*) ;;
1125      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1126	 ac_unrecognized_sep=', ';;
1127    esac
1128    eval enable_$ac_useropt=\$ac_optarg ;;
1129
1130  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1131  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1132  | --exec | --exe | --ex)
1133    ac_prev=exec_prefix ;;
1134  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1135  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1136  | --exec=* | --exe=* | --ex=*)
1137    exec_prefix=$ac_optarg ;;
1138
1139  -gas | --gas | --ga | --g)
1140    # Obsolete; use --with-gas.
1141    with_gas=yes ;;
1142
1143  -help | --help | --hel | --he | -h)
1144    ac_init_help=long ;;
1145  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1146    ac_init_help=recursive ;;
1147  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1148    ac_init_help=short ;;
1149
1150  -host | --host | --hos | --ho)
1151    ac_prev=host_alias ;;
1152  -host=* | --host=* | --hos=* | --ho=*)
1153    host_alias=$ac_optarg ;;
1154
1155  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1156    ac_prev=htmldir ;;
1157  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1158  | --ht=*)
1159    htmldir=$ac_optarg ;;
1160
1161  -includedir | --includedir | --includedi | --included | --include \
1162  | --includ | --inclu | --incl | --inc)
1163    ac_prev=includedir ;;
1164  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1165  | --includ=* | --inclu=* | --incl=* | --inc=*)
1166    includedir=$ac_optarg ;;
1167
1168  -infodir | --infodir | --infodi | --infod | --info | --inf)
1169    ac_prev=infodir ;;
1170  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1171    infodir=$ac_optarg ;;
1172
1173  -libdir | --libdir | --libdi | --libd)
1174    ac_prev=libdir ;;
1175  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1176    libdir=$ac_optarg ;;
1177
1178  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1179  | --libexe | --libex | --libe)
1180    ac_prev=libexecdir ;;
1181  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1182  | --libexe=* | --libex=* | --libe=*)
1183    libexecdir=$ac_optarg ;;
1184
1185  -localedir | --localedir | --localedi | --localed | --locale)
1186    ac_prev=localedir ;;
1187  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1188    localedir=$ac_optarg ;;
1189
1190  -localstatedir | --localstatedir | --localstatedi | --localstated \
1191  | --localstate | --localstat | --localsta | --localst | --locals)
1192    ac_prev=localstatedir ;;
1193  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1194  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1195    localstatedir=$ac_optarg ;;
1196
1197  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1198    ac_prev=mandir ;;
1199  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1200    mandir=$ac_optarg ;;
1201
1202  -nfp | --nfp | --nf)
1203    # Obsolete; use --without-fp.
1204    with_fp=no ;;
1205
1206  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1207  | --no-cr | --no-c | -n)
1208    no_create=yes ;;
1209
1210  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1211  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1212    no_recursion=yes ;;
1213
1214  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1215  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1216  | --oldin | --oldi | --old | --ol | --o)
1217    ac_prev=oldincludedir ;;
1218  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1219  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1220  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1221    oldincludedir=$ac_optarg ;;
1222
1223  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1224    ac_prev=prefix ;;
1225  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1226    prefix=$ac_optarg ;;
1227
1228  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1229  | --program-pre | --program-pr | --program-p)
1230    ac_prev=program_prefix ;;
1231  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1232  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1233    program_prefix=$ac_optarg ;;
1234
1235  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1236  | --program-suf | --program-su | --program-s)
1237    ac_prev=program_suffix ;;
1238  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1239  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1240    program_suffix=$ac_optarg ;;
1241
1242  -program-transform-name | --program-transform-name \
1243  | --program-transform-nam | --program-transform-na \
1244  | --program-transform-n | --program-transform- \
1245  | --program-transform | --program-transfor \
1246  | --program-transfo | --program-transf \
1247  | --program-trans | --program-tran \
1248  | --progr-tra | --program-tr | --program-t)
1249    ac_prev=program_transform_name ;;
1250  -program-transform-name=* | --program-transform-name=* \
1251  | --program-transform-nam=* | --program-transform-na=* \
1252  | --program-transform-n=* | --program-transform-=* \
1253  | --program-transform=* | --program-transfor=* \
1254  | --program-transfo=* | --program-transf=* \
1255  | --program-trans=* | --program-tran=* \
1256  | --progr-tra=* | --program-tr=* | --program-t=*)
1257    program_transform_name=$ac_optarg ;;
1258
1259  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1260    ac_prev=pdfdir ;;
1261  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1262    pdfdir=$ac_optarg ;;
1263
1264  -psdir | --psdir | --psdi | --psd | --ps)
1265    ac_prev=psdir ;;
1266  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1267    psdir=$ac_optarg ;;
1268
1269  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270  | -silent | --silent | --silen | --sile | --sil)
1271    silent=yes ;;
1272
1273  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1274    ac_prev=sbindir ;;
1275  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1276  | --sbi=* | --sb=*)
1277    sbindir=$ac_optarg ;;
1278
1279  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1280  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1281  | --sharedst | --shareds | --shared | --share | --shar \
1282  | --sha | --sh)
1283    ac_prev=sharedstatedir ;;
1284  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1285  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1286  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1287  | --sha=* | --sh=*)
1288    sharedstatedir=$ac_optarg ;;
1289
1290  -site | --site | --sit)
1291    ac_prev=site ;;
1292  -site=* | --site=* | --sit=*)
1293    site=$ac_optarg ;;
1294
1295  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1296    ac_prev=srcdir ;;
1297  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1298    srcdir=$ac_optarg ;;
1299
1300  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1301  | --syscon | --sysco | --sysc | --sys | --sy)
1302    ac_prev=sysconfdir ;;
1303  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1304  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1305    sysconfdir=$ac_optarg ;;
1306
1307  -target | --target | --targe | --targ | --tar | --ta | --t)
1308    ac_prev=target_alias ;;
1309  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1310    target_alias=$ac_optarg ;;
1311
1312  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1313    verbose=yes ;;
1314
1315  -version | --version | --versio | --versi | --vers | -V)
1316    ac_init_version=: ;;
1317
1318  -with-* | --with-*)
1319    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1320    # Reject names that are not valid shell variable names.
1321    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1323   { (exit 1); exit 1; }; }
1324    ac_useropt_orig=$ac_useropt
1325    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326    case $ac_user_opts in
1327      *"
1328"with_$ac_useropt"
1329"*) ;;
1330      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1331	 ac_unrecognized_sep=', ';;
1332    esac
1333    eval with_$ac_useropt=\$ac_optarg ;;
1334
1335  -without-* | --without-*)
1336    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1337    # Reject names that are not valid shell variable names.
1338    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1340   { (exit 1); exit 1; }; }
1341    ac_useropt_orig=$ac_useropt
1342    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343    case $ac_user_opts in
1344      *"
1345"with_$ac_useropt"
1346"*) ;;
1347      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1348	 ac_unrecognized_sep=', ';;
1349    esac
1350    eval with_$ac_useropt=no ;;
1351
1352  --x)
1353    # Obsolete; use --with-x.
1354    with_x=yes ;;
1355
1356  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1357  | --x-incl | --x-inc | --x-in | --x-i)
1358    ac_prev=x_includes ;;
1359  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1360  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1361    x_includes=$ac_optarg ;;
1362
1363  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1364  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1365    ac_prev=x_libraries ;;
1366  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1367  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1368    x_libraries=$ac_optarg ;;
1369
1370  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1371Try \`$0 --help' for more information." >&2
1372   { (exit 1); exit 1; }; }
1373    ;;
1374
1375  *=*)
1376    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1377    # Reject names that are not valid shell variable names.
1378    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1379      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1380   { (exit 1); exit 1; }; }
1381    eval $ac_envvar=\$ac_optarg
1382    export $ac_envvar ;;
1383
1384  *)
1385    # FIXME: should be removed in autoconf 3.0.
1386    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1387    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1389    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1390    ;;
1391
1392  esac
1393done
1394
1395if test -n "$ac_prev"; then
1396  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1397  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1398   { (exit 1); exit 1; }; }
1399fi
1400
1401if test -n "$ac_unrecognized_opts"; then
1402  case $enable_option_checking in
1403    no) ;;
1404    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1405   { (exit 1); exit 1; }; } ;;
1406    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1407  esac
1408fi
1409
1410# Check all directory arguments for consistency.
1411for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1412		datadir sysconfdir sharedstatedir localstatedir includedir \
1413		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1414		libdir localedir mandir
1415do
1416  eval ac_val=\$$ac_var
1417  # Remove trailing slashes.
1418  case $ac_val in
1419    */ )
1420      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1421      eval $ac_var=\$ac_val;;
1422  esac
1423  # Be sure to have absolute directory names.
1424  case $ac_val in
1425    [\\/$]* | ?:[\\/]* )  continue;;
1426    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1427  esac
1428  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1429   { (exit 1); exit 1; }; }
1430done
1431
1432# There might be people who depend on the old broken behavior: `$host'
1433# used to hold the argument of --host etc.
1434# FIXME: To remove some day.
1435build=$build_alias
1436host=$host_alias
1437target=$target_alias
1438
1439# FIXME: To remove some day.
1440if test "x$host_alias" != x; then
1441  if test "x$build_alias" = x; then
1442    cross_compiling=maybe
1443    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1444    If a cross compiler is detected then cross compile mode will be used." >&2
1445  elif test "x$build_alias" != "x$host_alias"; then
1446    cross_compiling=yes
1447  fi
1448fi
1449
1450ac_tool_prefix=
1451test -n "$host_alias" && ac_tool_prefix=$host_alias-
1452
1453test "$silent" = yes && exec 6>/dev/null
1454
1455
1456ac_pwd=`pwd` && test -n "$ac_pwd" &&
1457ac_ls_di=`ls -di .` &&
1458ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1459  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1460   { (exit 1); exit 1; }; }
1461test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1462  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1463   { (exit 1); exit 1; }; }
1464
1465
1466# Find the source files, if location was not specified.
1467if test -z "$srcdir"; then
1468  ac_srcdir_defaulted=yes
1469  # Try the directory containing this script, then the parent directory.
1470  ac_confdir=`$as_dirname -- "$as_myself" ||
1471$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472	 X"$as_myself" : 'X\(//\)[^/]' \| \
1473	 X"$as_myself" : 'X\(//\)$' \| \
1474	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475$as_echo X"$as_myself" |
1476    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477	    s//\1/
1478	    q
1479	  }
1480	  /^X\(\/\/\)[^/].*/{
1481	    s//\1/
1482	    q
1483	  }
1484	  /^X\(\/\/\)$/{
1485	    s//\1/
1486	    q
1487	  }
1488	  /^X\(\/\).*/{
1489	    s//\1/
1490	    q
1491	  }
1492	  s/.*/./; q'`
1493  srcdir=$ac_confdir
1494  if test ! -r "$srcdir/$ac_unique_file"; then
1495    srcdir=..
1496  fi
1497else
1498  ac_srcdir_defaulted=no
1499fi
1500if test ! -r "$srcdir/$ac_unique_file"; then
1501  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1503   { (exit 1); exit 1; }; }
1504fi
1505ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1506ac_abs_confdir=`(
1507	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1508   { (exit 1); exit 1; }; }
1509	pwd)`
1510# When building in place, set srcdir=.
1511if test "$ac_abs_confdir" = "$ac_pwd"; then
1512  srcdir=.
1513fi
1514# Remove unnecessary trailing slashes from srcdir.
1515# Double slashes in file names in object file debugging info
1516# mess up M-x gdb in Emacs.
1517case $srcdir in
1518*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1519esac
1520for ac_var in $ac_precious_vars; do
1521  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1522  eval ac_env_${ac_var}_value=\$${ac_var}
1523  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1524  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1525done
1526
1527#
1528# Report the --help message.
1529#
1530if test "$ac_init_help" = "long"; then
1531  # Omit some internal or obsolete options to make the list less imposing.
1532  # This message is too long to be a string in the A/UX 3.1 sh.
1533  cat <<_ACEOF
1534\`configure' configures this package to adapt to many kinds of systems.
1535
1536Usage: $0 [OPTION]... [VAR=VALUE]...
1537
1538To assign environment variables (e.g., CC, CFLAGS...), specify them as
1539VAR=VALUE.  See below for descriptions of some of the useful variables.
1540
1541Defaults for the options are specified in brackets.
1542
1543Configuration:
1544  -h, --help              display this help and exit
1545      --help=short        display options specific to this package
1546      --help=recursive    display the short help of all the included packages
1547  -V, --version           display version information and exit
1548  -q, --quiet, --silent   do not print \`checking...' messages
1549      --cache-file=FILE   cache test results in FILE [disabled]
1550  -C, --config-cache      alias for \`--cache-file=config.cache'
1551  -n, --no-create         do not create output files
1552      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1553
1554Installation directories:
1555  --prefix=PREFIX         install architecture-independent files in PREFIX
1556                          [$ac_default_prefix]
1557  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1558                          [PREFIX]
1559
1560By default, \`make install' will install all the files in
1561\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1562an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1563for instance \`--prefix=\$HOME'.
1564
1565For better control, use the options below.
1566
1567Fine tuning of the installation directories:
1568  --bindir=DIR            user executables [EPREFIX/bin]
1569  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1570  --libexecdir=DIR        program executables [EPREFIX/libexec]
1571  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1572  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1573  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1574  --libdir=DIR            object code libraries [EPREFIX/lib]
1575  --includedir=DIR        C header files [PREFIX/include]
1576  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1577  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1578  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1579  --infodir=DIR           info documentation [DATAROOTDIR/info]
1580  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1581  --mandir=DIR            man documentation [DATAROOTDIR/man]
1582  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1583  --htmldir=DIR           html documentation [DOCDIR]
1584  --dvidir=DIR            dvi documentation [DOCDIR]
1585  --pdfdir=DIR            pdf documentation [DOCDIR]
1586  --psdir=DIR             ps documentation [DOCDIR]
1587_ACEOF
1588
1589  cat <<\_ACEOF
1590
1591Program names:
1592  --program-prefix=PREFIX            prepend PREFIX to installed program names
1593  --program-suffix=SUFFIX            append SUFFIX to installed program names
1594  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1595
1596System types:
1597  --build=BUILD     configure for building on BUILD [guessed]
1598  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1599_ACEOF
1600fi
1601
1602if test -n "$ac_init_help"; then
1603
1604  cat <<\_ACEOF
1605
1606Optional Features:
1607  --disable-option-checking  ignore unrecognized --enable/--with options
1608  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1609  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1610  --disable-dependency-tracking  speeds up one-time build
1611  --enable-dependency-tracking   do not reject slow dependency extractors
1612  --enable-shared[=PKGS]  build shared libraries [default=yes]
1613  --enable-static[=PKGS]  build static libraries [default=yes]
1614  --enable-fast-install[=PKGS]
1615                          optimize for fast installation [default=yes]
1616  --disable-libtool-lock  avoid locking (might break parallel builds)
1617  --enable-maintainer-mode  enable make rules and dependencies not useful
1618			  (and sometimes confusing) to the casual installer
1619  --enable-gtk-doc        use gtk-doc to build documentation [default=no]
1620  --enable-profiling      enable profiling compile flags [default=no]
1621  --enable-warnings       enable g_warning output when invalid MIME is
1622                          encountered [default=no]
1623  --disable-glibtest      do not try to compile and run a test GLIB program
1624  --disable-rpath         do not hardcode runtime library paths
1625  --enable-rfc2047-workarounds
1626                          enable workarounds for broken rfc2047 encodings
1627                          [default=no]
1628  --enable-largefile      enable support for large files [default=no]
1629  --disable-largefile     omit support for large files
1630  --enable-mono           enable Mono bindings [default=auto]
1631
1632Optional Packages:
1633  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1634  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1635  --with-pic              try to use only PIC/non-PIC objects [default=use
1636                          both]
1637  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1638  --with-html-dir=PATH    path to installed docs
1639  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1640  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1641  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1642
1643Some influential environment variables:
1644  CC          C compiler command
1645  CFLAGS      C compiler flags
1646  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1647              nonstandard directory <lib dir>
1648  LIBS        libraries to pass to the linker, e.g. -l<library>
1649  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1650              you have headers in a nonstandard directory <include dir>
1651  CPP         C preprocessor
1652  PKG_CONFIG  path to pkg-config utility
1653  GTK_SHARP_CFLAGS
1654              C compiler flags for GTK_SHARP, overriding pkg-config
1655  GTK_SHARP_LIBS
1656              linker flags for GTK_SHARP, overriding pkg-config
1657
1658Use these variables to override the choices made by `configure' or to help
1659it to find libraries and programs with nonstandard names/locations.
1660
1661_ACEOF
1662ac_status=$?
1663fi
1664
1665if test "$ac_init_help" = "recursive"; then
1666  # If there are subdirs, report their specific --help.
1667  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668    test -d "$ac_dir" ||
1669      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670      continue
1671    ac_builddir=.
1672
1673case "$ac_dir" in
1674.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675*)
1676  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677  # A ".." for each directory in $ac_dir_suffix.
1678  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679  case $ac_top_builddir_sub in
1680  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682  esac ;;
1683esac
1684ac_abs_top_builddir=$ac_pwd
1685ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686# for backward compatibility:
1687ac_top_builddir=$ac_top_build_prefix
1688
1689case $srcdir in
1690  .)  # We are building in place.
1691    ac_srcdir=.
1692    ac_top_srcdir=$ac_top_builddir_sub
1693    ac_abs_top_srcdir=$ac_pwd ;;
1694  [\\/]* | ?:[\\/]* )  # Absolute name.
1695    ac_srcdir=$srcdir$ac_dir_suffix;
1696    ac_top_srcdir=$srcdir
1697    ac_abs_top_srcdir=$srcdir ;;
1698  *) # Relative name.
1699    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700    ac_top_srcdir=$ac_top_build_prefix$srcdir
1701    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702esac
1703ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
1705    cd "$ac_dir" || { ac_status=$?; continue; }
1706    # Check for guested configure.
1707    if test -f "$ac_srcdir/configure.gnu"; then
1708      echo &&
1709      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710    elif test -f "$ac_srcdir/configure"; then
1711      echo &&
1712      $SHELL "$ac_srcdir/configure" --help=recursive
1713    else
1714      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715    fi || ac_status=$?
1716    cd "$ac_pwd" || { ac_status=$?; break; }
1717  done
1718fi
1719
1720test -n "$ac_init_help" && exit $ac_status
1721if $ac_init_version; then
1722  cat <<\_ACEOF
1723configure
1724generated by GNU Autoconf 2.63
1725
1726Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17272002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1728This configure script is free software; the Free Software Foundation
1729gives unlimited permission to copy, distribute and modify it.
1730_ACEOF
1731  exit
1732fi
1733cat >config.log <<_ACEOF
1734This file contains any messages produced by compilers while
1735running configure, to aid debugging if configure makes a mistake.
1736
1737It was created by $as_me, which was
1738generated by GNU Autoconf 2.63.  Invocation command line was
1739
1740  $ $0 $@
1741
1742_ACEOF
1743exec 5>>config.log
1744{
1745cat <<_ASUNAME
1746## --------- ##
1747## Platform. ##
1748## --------- ##
1749
1750hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755
1756/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1758
1759/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1760/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1761/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1763/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1764/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1765/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1766
1767_ASUNAME
1768
1769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770for as_dir in $PATH
1771do
1772  IFS=$as_save_IFS
1773  test -z "$as_dir" && as_dir=.
1774  $as_echo "PATH: $as_dir"
1775done
1776IFS=$as_save_IFS
1777
1778} >&5
1779
1780cat >&5 <<_ACEOF
1781
1782
1783## ----------- ##
1784## Core tests. ##
1785## ----------- ##
1786
1787_ACEOF
1788
1789
1790# Keep a trace of the command line.
1791# Strip out --no-create and --no-recursion so they do not pile up.
1792# Strip out --silent because we don't want to record it for future runs.
1793# Also quote any args containing shell meta-characters.
1794# Make two passes to allow for proper duplicate-argument suppression.
1795ac_configure_args=
1796ac_configure_args0=
1797ac_configure_args1=
1798ac_must_keep_next=false
1799for ac_pass in 1 2
1800do
1801  for ac_arg
1802  do
1803    case $ac_arg in
1804    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806    | -silent | --silent | --silen | --sile | --sil)
1807      continue ;;
1808    *\'*)
1809      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810    esac
1811    case $ac_pass in
1812    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813    2)
1814      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815      if test $ac_must_keep_next = true; then
1816	ac_must_keep_next=false # Got value, back to normal.
1817      else
1818	case $ac_arg in
1819	  *=* | --config-cache | -C | -disable-* | --disable-* \
1820	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822	  | -with-* | --with-* | -without-* | --without-* | --x)
1823	    case "$ac_configure_args0 " in
1824	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825	    esac
1826	    ;;
1827	  -* ) ac_must_keep_next=true ;;
1828	esac
1829      fi
1830      ac_configure_args="$ac_configure_args '$ac_arg'"
1831      ;;
1832    esac
1833  done
1834done
1835$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1837
1838# When interrupted or exit'd, cleanup temporary files, and complete
1839# config.log.  We remove comments because anyway the quotes in there
1840# would cause problems or look ugly.
1841# WARNING: Use '\'' to represent an apostrophe within the trap.
1842# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843trap 'exit_status=$?
1844  # Save into config.log some information that might help in debugging.
1845  {
1846    echo
1847
1848    cat <<\_ASBOX
1849## ---------------- ##
1850## Cache variables. ##
1851## ---------------- ##
1852_ASBOX
1853    echo
1854    # The following way of writing the cache mishandles newlines in values,
1855(
1856  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857    eval ac_val=\$$ac_var
1858    case $ac_val in #(
1859    *${as_nl}*)
1860      case $ac_var in #(
1861      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1862$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1863      esac
1864      case $ac_var in #(
1865      _ | IFS | as_nl) ;; #(
1866      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867      *) $as_unset $ac_var ;;
1868      esac ;;
1869    esac
1870  done
1871  (set) 2>&1 |
1872    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873    *${as_nl}ac_space=\ *)
1874      sed -n \
1875	"s/'\''/'\''\\\\'\'''\''/g;
1876	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877      ;; #(
1878    *)
1879      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880      ;;
1881    esac |
1882    sort
1883)
1884    echo
1885
1886    cat <<\_ASBOX
1887## ----------------- ##
1888## Output variables. ##
1889## ----------------- ##
1890_ASBOX
1891    echo
1892    for ac_var in $ac_subst_vars
1893    do
1894      eval ac_val=\$$ac_var
1895      case $ac_val in
1896      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897      esac
1898      $as_echo "$ac_var='\''$ac_val'\''"
1899    done | sort
1900    echo
1901
1902    if test -n "$ac_subst_files"; then
1903      cat <<\_ASBOX
1904## ------------------- ##
1905## File substitutions. ##
1906## ------------------- ##
1907_ASBOX
1908      echo
1909      for ac_var in $ac_subst_files
1910      do
1911	eval ac_val=\$$ac_var
1912	case $ac_val in
1913	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914	esac
1915	$as_echo "$ac_var='\''$ac_val'\''"
1916      done | sort
1917      echo
1918    fi
1919
1920    if test -s confdefs.h; then
1921      cat <<\_ASBOX
1922## ----------- ##
1923## confdefs.h. ##
1924## ----------- ##
1925_ASBOX
1926      echo
1927      cat confdefs.h
1928      echo
1929    fi
1930    test "$ac_signal" != 0 &&
1931      $as_echo "$as_me: caught signal $ac_signal"
1932    $as_echo "$as_me: exit $exit_status"
1933  } >&5
1934  rm -f core *.core core.conftest.* &&
1935    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936    exit $exit_status
1937' 0
1938for ac_signal in 1 2 13 15; do
1939  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1940done
1941ac_signal=0
1942
1943# confdefs.h avoids OS command line length limits that DEFS can exceed.
1944rm -f -r conftest* confdefs.h
1945
1946# Predefined preprocessor variables.
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_NAME "$PACKAGE_NAME"
1950_ACEOF
1951
1952
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955_ACEOF
1956
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_VERSION "$PACKAGE_VERSION"
1960_ACEOF
1961
1962
1963cat >>confdefs.h <<_ACEOF
1964#define PACKAGE_STRING "$PACKAGE_STRING"
1965_ACEOF
1966
1967
1968cat >>confdefs.h <<_ACEOF
1969#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1970_ACEOF
1971
1972
1973# Let the site file select an alternate cache file if it wants to.
1974# Prefer an explicitly selected file to automatically selected ones.
1975ac_site_file1=NONE
1976ac_site_file2=NONE
1977if test -n "$CONFIG_SITE"; then
1978  ac_site_file1=$CONFIG_SITE
1979elif test "x$prefix" != xNONE; then
1980  ac_site_file1=$prefix/share/config.site
1981  ac_site_file2=$prefix/etc/config.site
1982else
1983  ac_site_file1=$ac_default_prefix/share/config.site
1984  ac_site_file2=$ac_default_prefix/etc/config.site
1985fi
1986for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1987do
1988  test "x$ac_site_file" = xNONE && continue
1989  if test -r "$ac_site_file"; then
1990    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992    sed 's/^/| /' "$ac_site_file" >&5
1993    . "$ac_site_file"
1994  fi
1995done
1996
1997if test -r "$cache_file"; then
1998  # Some versions of bash will fail to source /dev/null (special
1999  # files actually), so we avoid doing that.
2000  if test -f "$cache_file"; then
2001    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002$as_echo "$as_me: loading cache $cache_file" >&6;}
2003    case $cache_file in
2004      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005      *)                      . "./$cache_file";;
2006    esac
2007  fi
2008else
2009  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010$as_echo "$as_me: creating cache $cache_file" >&6;}
2011  >$cache_file
2012fi
2013
2014# Check that the precious variables saved in the cache have kept the same
2015# value.
2016ac_cache_corrupted=false
2017for ac_var in $ac_precious_vars; do
2018  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019  eval ac_new_set=\$ac_env_${ac_var}_set
2020  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021  eval ac_new_val=\$ac_env_${ac_var}_value
2022  case $ac_old_set,$ac_new_set in
2023    set,)
2024      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026      ac_cache_corrupted=: ;;
2027    ,set)
2028      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030      ac_cache_corrupted=: ;;
2031    ,);;
2032    *)
2033      if test "x$ac_old_val" != "x$ac_new_val"; then
2034	# differences in whitespace do not lead to failure.
2035	ac_old_val_w=`echo x $ac_old_val`
2036	ac_new_val_w=`echo x $ac_new_val`
2037	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040	  ac_cache_corrupted=:
2041	else
2042	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044	  eval $ac_var=\$ac_old_val
2045	fi
2046	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2047$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2048	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2049$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2050      fi;;
2051  esac
2052  # Pass precious variables to config.status.
2053  if test "$ac_new_set" = set; then
2054    case $ac_new_val in
2055    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056    *) ac_arg=$ac_var=$ac_new_val ;;
2057    esac
2058    case " $ac_configure_args " in
2059      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2060      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2061    esac
2062  fi
2063done
2064if $ac_cache_corrupted; then
2065  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2068$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2071   { (exit 1); exit 1; }; }
2072fi
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090ac_ext=c
2091ac_cpp='$CPP $CPPFLAGS'
2092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095
2096
2097ac_config_headers="$ac_config_headers config.h"
2098
2099
2100# In the following, there are a the following variants
2101# of GLib cflags and libs variables
2102#
2103# GLIB_CFLAGS:  cflags for compiling libraries and example progs
2104# GLIB_LIBS:    libraries for linking example programs
2105# glib_cflags:  cflags to store in gmime-config
2106# glib_libs:    libs to store in gmime-config
2107
2108GMIME_MAJOR_VERSION=2
2109GMIME_MINOR_VERSION=2
2110GMIME_MICRO_VERSION=27
2111GMIME_VERSION=$GMIME_MAJOR_VERSION.$GMIME_MINOR_VERSION.$GMIME_MICRO_VERSION
2112GMIME_VERSION_INFO=`expr $GMIME_MAJOR_VERSION + $GMIME_MINOR_VERSION`:$GMIME_MICRO_VERSION:$GMIME_MINOR_VERSION
2113
2114
2115
2116
2117
2118
2119
2120VERSION=$GMIME_VERSION
2121
2122am__api_version='1.11'
2123
2124ac_aux_dir=
2125for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2126  if test -f "$ac_dir/install-sh"; then
2127    ac_aux_dir=$ac_dir
2128    ac_install_sh="$ac_aux_dir/install-sh -c"
2129    break
2130  elif test -f "$ac_dir/install.sh"; then
2131    ac_aux_dir=$ac_dir
2132    ac_install_sh="$ac_aux_dir/install.sh -c"
2133    break
2134  elif test -f "$ac_dir/shtool"; then
2135    ac_aux_dir=$ac_dir
2136    ac_install_sh="$ac_aux_dir/shtool install -c"
2137    break
2138  fi
2139done
2140if test -z "$ac_aux_dir"; then
2141  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2142$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2143   { (exit 1); exit 1; }; }
2144fi
2145
2146# These three variables are undocumented and unsupported,
2147# and are intended to be withdrawn in a future Autoconf release.
2148# They can cause serious problems if a builder's source tree is in a directory
2149# whose full name contains unusual characters.
2150ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2151ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2152ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2153
2154
2155# Find a good install program.  We prefer a C program (faster),
2156# so one script is as good as another.  But avoid the broken or
2157# incompatible versions:
2158# SysV /etc/install, /usr/sbin/install
2159# SunOS /usr/etc/install
2160# IRIX /sbin/install
2161# AIX /bin/install
2162# AmigaOS /C/install, which installs bootblocks on floppy discs
2163# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2164# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2165# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2166# OS/2's system install, which has a completely different semantic
2167# ./install, which can be erroneously created by make from ./install.sh.
2168# Reject install programs that cannot install multiple files.
2169{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2170$as_echo_n "checking for a BSD-compatible install... " >&6; }
2171if test -z "$INSTALL"; then
2172if test "${ac_cv_path_install+set}" = set; then
2173  $as_echo_n "(cached) " >&6
2174else
2175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176for as_dir in $PATH
2177do
2178  IFS=$as_save_IFS
2179  test -z "$as_dir" && as_dir=.
2180  # Account for people who put trailing slashes in PATH elements.
2181case $as_dir/ in
2182  ./ | .// | /cC/* | \
2183  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2184  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2185  /usr/ucb/* ) ;;
2186  *)
2187    # OSF1 and SCO ODT 3.0 have their own names for install.
2188    # Don't use installbsd from OSF since it installs stuff as root
2189    # by default.
2190    for ac_prog in ginstall scoinst install; do
2191      for ac_exec_ext in '' $ac_executable_extensions; do
2192	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2193	  if test $ac_prog = install &&
2194	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2195	    # AIX install.  It has an incompatible calling convention.
2196	    :
2197	  elif test $ac_prog = install &&
2198	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2199	    # program-specific install script used by HP pwplus--don't use.
2200	    :
2201	  else
2202	    rm -rf conftest.one conftest.two conftest.dir
2203	    echo one > conftest.one
2204	    echo two > conftest.two
2205	    mkdir conftest.dir
2206	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2207	      test -s conftest.one && test -s conftest.two &&
2208	      test -s conftest.dir/conftest.one &&
2209	      test -s conftest.dir/conftest.two
2210	    then
2211	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2212	      break 3
2213	    fi
2214	  fi
2215	fi
2216      done
2217    done
2218    ;;
2219esac
2220
2221done
2222IFS=$as_save_IFS
2223
2224rm -rf conftest.one conftest.two conftest.dir
2225
2226fi
2227  if test "${ac_cv_path_install+set}" = set; then
2228    INSTALL=$ac_cv_path_install
2229  else
2230    # As a last resort, use the slow shell script.  Don't cache a
2231    # value for INSTALL within a source directory, because that will
2232    # break other packages using the cache if that directory is
2233    # removed, or if the value is a relative name.
2234    INSTALL=$ac_install_sh
2235  fi
2236fi
2237{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2238$as_echo "$INSTALL" >&6; }
2239
2240# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2241# It thinks the first close brace ends the variable substitution.
2242test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2243
2244test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2245
2246test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2247
2248{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2249$as_echo_n "checking whether build environment is sane... " >&6; }
2250# Just in case
2251sleep 1
2252echo timestamp > conftest.file
2253# Reject unsafe characters in $srcdir or the absolute working directory
2254# name.  Accept space and tab only in the latter.
2255am_lf='
2256'
2257case `pwd` in
2258  *[\\\"\#\$\&\'\`$am_lf]*)
2259    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2260$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2261   { (exit 1); exit 1; }; };;
2262esac
2263case $srcdir in
2264  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2265    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2266$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2267   { (exit 1); exit 1; }; };;
2268esac
2269
2270# Do `set' in a subshell so we don't clobber the current shell's
2271# arguments.  Must try -L first in case configure is actually a
2272# symlink; some systems play weird games with the mod time of symlinks
2273# (eg FreeBSD returns the mod time of the symlink's containing
2274# directory).
2275if (
2276   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2277   if test "$*" = "X"; then
2278      # -L didn't work.
2279      set X `ls -t "$srcdir/configure" conftest.file`
2280   fi
2281   rm -f conftest.file
2282   if test "$*" != "X $srcdir/configure conftest.file" \
2283      && test "$*" != "X conftest.file $srcdir/configure"; then
2284
2285      # If neither matched, then we have a broken ls.  This can happen
2286      # if, for instance, CONFIG_SHELL is bash and it inherits a
2287      # broken ls alias from the environment.  This has actually
2288      # happened.  Such a system could not be considered "sane".
2289      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2290alias in your environment" >&5
2291$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2292alias in your environment" >&2;}
2293   { (exit 1); exit 1; }; }
2294   fi
2295
2296   test "$2" = conftest.file
2297   )
2298then
2299   # Ok.
2300   :
2301else
2302   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2303Check your system clock" >&5
2304$as_echo "$as_me: error: newly created file is older than distributed files!
2305Check your system clock" >&2;}
2306   { (exit 1); exit 1; }; }
2307fi
2308{ $as_echo "$as_me:$LINENO: result: yes" >&5
2309$as_echo "yes" >&6; }
2310test "$program_prefix" != NONE &&
2311  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2312# Use a double $ so make ignores it.
2313test "$program_suffix" != NONE &&
2314  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2315# Double any \ or $.
2316# By default was `s,x,x', remove it if useless.
2317ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2318program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2319
2320# expand $ac_aux_dir to an absolute path
2321am_aux_dir=`cd $ac_aux_dir && pwd`
2322
2323if test x"${MISSING+set}" != xset; then
2324  case $am_aux_dir in
2325  *\ * | *\	*)
2326    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2327  *)
2328    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2329  esac
2330fi
2331# Use eval to expand $SHELL
2332if eval "$MISSING --run true"; then
2333  am_missing_run="$MISSING --run "
2334else
2335  am_missing_run=
2336  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2337$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2338fi
2339
2340if test x"${install_sh}" != xset; then
2341  case $am_aux_dir in
2342  *\ * | *\	*)
2343    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2344  *)
2345    install_sh="\${SHELL} $am_aux_dir/install-sh"
2346  esac
2347fi
2348
2349# Installed binaries are usually stripped using `strip' when the user
2350# run `make install-strip'.  However `strip' might not be the right
2351# tool to use in cross-compilation environments, therefore Automake
2352# will honor the `STRIP' environment variable to overrule this program.
2353if test "$cross_compiling" != no; then
2354  if test -n "$ac_tool_prefix"; then
2355  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2356set dummy ${ac_tool_prefix}strip; ac_word=$2
2357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2358$as_echo_n "checking for $ac_word... " >&6; }
2359if test "${ac_cv_prog_STRIP+set}" = set; then
2360  $as_echo_n "(cached) " >&6
2361else
2362  if test -n "$STRIP"; then
2363  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2364else
2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366for as_dir in $PATH
2367do
2368  IFS=$as_save_IFS
2369  test -z "$as_dir" && as_dir=.
2370  for ac_exec_ext in '' $ac_executable_extensions; do
2371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2373    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374    break 2
2375  fi
2376done
2377done
2378IFS=$as_save_IFS
2379
2380fi
2381fi
2382STRIP=$ac_cv_prog_STRIP
2383if test -n "$STRIP"; then
2384  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2385$as_echo "$STRIP" >&6; }
2386else
2387  { $as_echo "$as_me:$LINENO: result: no" >&5
2388$as_echo "no" >&6; }
2389fi
2390
2391
2392fi
2393if test -z "$ac_cv_prog_STRIP"; then
2394  ac_ct_STRIP=$STRIP
2395  # Extract the first word of "strip", so it can be a program name with args.
2396set dummy strip; ac_word=$2
2397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2398$as_echo_n "checking for $ac_word... " >&6; }
2399if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2400  $as_echo_n "(cached) " >&6
2401else
2402  if test -n "$ac_ct_STRIP"; then
2403  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2404else
2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406for as_dir in $PATH
2407do
2408  IFS=$as_save_IFS
2409  test -z "$as_dir" && as_dir=.
2410  for ac_exec_ext in '' $ac_executable_extensions; do
2411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412    ac_cv_prog_ac_ct_STRIP="strip"
2413    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414    break 2
2415  fi
2416done
2417done
2418IFS=$as_save_IFS
2419
2420fi
2421fi
2422ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2423if test -n "$ac_ct_STRIP"; then
2424  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2425$as_echo "$ac_ct_STRIP" >&6; }
2426else
2427  { $as_echo "$as_me:$LINENO: result: no" >&5
2428$as_echo "no" >&6; }
2429fi
2430
2431  if test "x$ac_ct_STRIP" = x; then
2432    STRIP=":"
2433  else
2434    case $cross_compiling:$ac_tool_warned in
2435yes:)
2436{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2438ac_tool_warned=yes ;;
2439esac
2440    STRIP=$ac_ct_STRIP
2441  fi
2442else
2443  STRIP="$ac_cv_prog_STRIP"
2444fi
2445
2446fi
2447INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2448
2449{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2450$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2451if test -z "$MKDIR_P"; then
2452  if test "${ac_cv_path_mkdir+set}" = set; then
2453  $as_echo_n "(cached) " >&6
2454else
2455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2457do
2458  IFS=$as_save_IFS
2459  test -z "$as_dir" && as_dir=.
2460  for ac_prog in mkdir gmkdir; do
2461	 for ac_exec_ext in '' $ac_executable_extensions; do
2462	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2463	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2464	     'mkdir (GNU coreutils) '* | \
2465	     'mkdir (coreutils) '* | \
2466	     'mkdir (fileutils) '4.1*)
2467	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2468	       break 3;;
2469	   esac
2470	 done
2471       done
2472done
2473IFS=$as_save_IFS
2474
2475fi
2476
2477  if test "${ac_cv_path_mkdir+set}" = set; then
2478    MKDIR_P="$ac_cv_path_mkdir -p"
2479  else
2480    # As a last resort, use the slow shell script.  Don't cache a
2481    # value for MKDIR_P within a source directory, because that will
2482    # break other packages using the cache if that directory is
2483    # removed, or if the value is a relative name.
2484    test -d ./--version && rmdir ./--version
2485    MKDIR_P="$ac_install_sh -d"
2486  fi
2487fi
2488{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2489$as_echo "$MKDIR_P" >&6; }
2490
2491mkdir_p="$MKDIR_P"
2492case $mkdir_p in
2493  [\\/$]* | ?:[\\/]*) ;;
2494  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2495esac
2496
2497for ac_prog in gawk mawk nawk awk
2498do
2499  # Extract the first word of "$ac_prog", so it can be a program name with args.
2500set dummy $ac_prog; ac_word=$2
2501{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2502$as_echo_n "checking for $ac_word... " >&6; }
2503if test "${ac_cv_prog_AWK+set}" = set; then
2504  $as_echo_n "(cached) " >&6
2505else
2506  if test -n "$AWK"; then
2507  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2508else
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512  IFS=$as_save_IFS
2513  test -z "$as_dir" && as_dir=.
2514  for ac_exec_ext in '' $ac_executable_extensions; do
2515  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516    ac_cv_prog_AWK="$ac_prog"
2517    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518    break 2
2519  fi
2520done
2521done
2522IFS=$as_save_IFS
2523
2524fi
2525fi
2526AWK=$ac_cv_prog_AWK
2527if test -n "$AWK"; then
2528  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2529$as_echo "$AWK" >&6; }
2530else
2531  { $as_echo "$as_me:$LINENO: result: no" >&5
2532$as_echo "no" >&6; }
2533fi
2534
2535
2536  test -n "$AWK" && break
2537done
2538
2539{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2540$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2541set x ${MAKE-make}
2542ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2543if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2544  $as_echo_n "(cached) " >&6
2545else
2546  cat >conftest.make <<\_ACEOF
2547SHELL = /bin/sh
2548all:
2549	@echo '@@@%%%=$(MAKE)=@@@%%%'
2550_ACEOF
2551# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2552case `${MAKE-make} -f conftest.make 2>/dev/null` in
2553  *@@@%%%=?*=@@@%%%*)
2554    eval ac_cv_prog_make_${ac_make}_set=yes;;
2555  *)
2556    eval ac_cv_prog_make_${ac_make}_set=no;;
2557esac
2558rm -f conftest.make
2559fi
2560if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2561  { $as_echo "$as_me:$LINENO: result: yes" >&5
2562$as_echo "yes" >&6; }
2563  SET_MAKE=
2564else
2565  { $as_echo "$as_me:$LINENO: result: no" >&5
2566$as_echo "no" >&6; }
2567  SET_MAKE="MAKE=${MAKE-make}"
2568fi
2569
2570rm -rf .tst 2>/dev/null
2571mkdir .tst 2>/dev/null
2572if test -d .tst; then
2573  am__leading_dot=.
2574else
2575  am__leading_dot=_
2576fi
2577rmdir .tst 2>/dev/null
2578
2579if test "`cd $srcdir && pwd`" != "`pwd`"; then
2580  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2581  # is not polluted with repeated "-I."
2582  am__isrc=' -I$(srcdir)'
2583  # test to see if srcdir already configured
2584  if test -f $srcdir/config.status; then
2585    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2586$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2587   { (exit 1); exit 1; }; }
2588  fi
2589fi
2590
2591# test whether we have cygpath
2592if test -z "$CYGPATH_W"; then
2593  if (cygpath --version) >/dev/null 2>/dev/null; then
2594    CYGPATH_W='cygpath -w'
2595  else
2596    CYGPATH_W=echo
2597  fi
2598fi
2599
2600
2601# Define the identity of the package.
2602 PACKAGE=gmime
2603 VERSION=$VERSION
2604
2605
2606cat >>confdefs.h <<_ACEOF
2607#define PACKAGE "$PACKAGE"
2608_ACEOF
2609
2610
2611cat >>confdefs.h <<_ACEOF
2612#define VERSION "$VERSION"
2613_ACEOF
2614
2615# Some tools Automake needs.
2616
2617ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2618
2619
2620AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2621
2622
2623AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2624
2625
2626AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2627
2628
2629MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2630
2631# We need awk for the "check" target.  The system "awk" is bad on
2632# some platforms.
2633# Always define AMTAR for backward compatibility.
2634
2635AMTAR=${AMTAR-"${am_missing_run}tar"}
2636
2637am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2638
2639
2640
2641
2642
2643
2644# Make sure we can run config.sub.
2645$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2646  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2647$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2648   { (exit 1); exit 1; }; }
2649
2650{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2651$as_echo_n "checking build system type... " >&6; }
2652if test "${ac_cv_build+set}" = set; then
2653  $as_echo_n "(cached) " >&6
2654else
2655  ac_build_alias=$build_alias
2656test "x$ac_build_alias" = x &&
2657  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2658test "x$ac_build_alias" = x &&
2659  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2660$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2661   { (exit 1); exit 1; }; }
2662ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2663  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2664$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2665   { (exit 1); exit 1; }; }
2666
2667fi
2668{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2669$as_echo "$ac_cv_build" >&6; }
2670case $ac_cv_build in
2671*-*-*) ;;
2672*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2673$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2674   { (exit 1); exit 1; }; };;
2675esac
2676build=$ac_cv_build
2677ac_save_IFS=$IFS; IFS='-'
2678set x $ac_cv_build
2679shift
2680build_cpu=$1
2681build_vendor=$2
2682shift; shift
2683# Remember, the first character of IFS is used to create $*,
2684# except with old shells:
2685build_os=$*
2686IFS=$ac_save_IFS
2687case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2688
2689
2690{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2691$as_echo_n "checking host system type... " >&6; }
2692if test "${ac_cv_host+set}" = set; then
2693  $as_echo_n "(cached) " >&6
2694else
2695  if test "x$host_alias" = x; then
2696  ac_cv_host=$ac_cv_build
2697else
2698  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2699    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2700$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2701   { (exit 1); exit 1; }; }
2702fi
2703
2704fi
2705{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2706$as_echo "$ac_cv_host" >&6; }
2707case $ac_cv_host in
2708*-*-*) ;;
2709*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2710$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2711   { (exit 1); exit 1; }; };;
2712esac
2713host=$ac_cv_host
2714ac_save_IFS=$IFS; IFS='-'
2715set x $ac_cv_host
2716shift
2717host_cpu=$1
2718host_vendor=$2
2719shift; shift
2720# Remember, the first character of IFS is used to create $*,
2721# except with old shells:
2722host_os=$*
2723IFS=$ac_save_IFS
2724case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2725
2726
2727
2728{ $as_echo "$as_me:$LINENO: checking if building for Win32" >&5
2729$as_echo_n "checking if building for Win32... " >&6; }
2730case "$host" in
2731  *-*-mingw*)
2732    platform_win32="yes"
2733    native_win32="yes"
2734    ;;
2735  *-*-cygwin*)
2736    platform_win32="yes"
2737    native_win32="no"
2738    ;;
2739  *)
2740    platform_win32="no"
2741    native_win32="no"
2742    ;;
2743esac
2744{ $as_echo "$as_me:$LINENO: result: $platform_win32" >&5
2745$as_echo "$platform_win32" >&6; }
2746 if test "x$platform_win32" = "xyes"; then
2747  PLATFORM_WIN32_TRUE=
2748  PLATFORM_WIN32_FALSE='#'
2749else
2750  PLATFORM_WIN32_TRUE='#'
2751  PLATFORM_WIN32_FALSE=
2752fi
2753
2754 if test "$native_win32" = "xyes"; then
2755  OS_WIN32_TRUE=
2756  OS_WIN32_FALSE='#'
2757else
2758  OS_WIN32_TRUE='#'
2759  OS_WIN32_FALSE=
2760fi
2761
2762
2763if test "$glib_native_win32" = "yes"; then
2764  if test "X$enable_static" = "xyes" -o "x$enable_static" = "x"; then
2765    { $as_echo "$as_me:$LINENO: WARNING: Disabling static library build, must build as DLL on Windows" >&5
2766$as_echo "$as_me: WARNING: Disabling static library build, must build as DLL on Windows" >&2;}
2767    enable_static="no"
2768  fi
2769  if test "x$enable_shared" = "xno"; then
2770    { $as_echo "$as_me:$LINENO: WARNING: Enabling shared library build, must build as DLL on Windows" >&5
2771$as_echo "$as_me: WARNING: Enabling shared library build, must build as DLL on Windows" >&2;}
2772    enable_shared="yes"
2773  fi
2774fi
2775
2776DEPDIR="${am__leading_dot}deps"
2777
2778ac_config_commands="$ac_config_commands depfiles"
2779
2780
2781am_make=${MAKE-make}
2782cat > confinc << 'END'
2783am__doit:
2784	@echo this is the am__doit target
2785.PHONY: am__doit
2786END
2787# If we don't find an include directive, just comment out the code.
2788{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2789$as_echo_n "checking for style of include used by $am_make... " >&6; }
2790am__include="#"
2791am__quote=
2792_am_result=none
2793# First try GNU make style include.
2794echo "include confinc" > confmf
2795# Ignore all kinds of additional output from `make'.
2796case `$am_make -s -f confmf 2> /dev/null` in #(
2797*the\ am__doit\ target*)
2798  am__include=include
2799  am__quote=
2800  _am_result=GNU
2801  ;;
2802esac
2803# Now try BSD make style include.
2804if test "$am__include" = "#"; then
2805   echo '.include "confinc"' > confmf
2806   case `$am_make -s -f confmf 2> /dev/null` in #(
2807   *the\ am__doit\ target*)
2808     am__include=.include
2809     am__quote="\""
2810     _am_result=BSD
2811     ;;
2812   esac
2813fi
2814
2815
2816{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2817$as_echo "$_am_result" >&6; }
2818rm -f confinc confmf
2819
2820# Check whether --enable-dependency-tracking was given.
2821if test "${enable_dependency_tracking+set}" = set; then
2822  enableval=$enable_dependency_tracking;
2823fi
2824
2825if test "x$enable_dependency_tracking" != xno; then
2826  am_depcomp="$ac_aux_dir/depcomp"
2827  AMDEPBACKSLASH='\'
2828fi
2829 if test "x$enable_dependency_tracking" != xno; then
2830  AMDEP_TRUE=
2831  AMDEP_FALSE='#'
2832else
2833  AMDEP_TRUE='#'
2834  AMDEP_FALSE=
2835fi
2836
2837
2838ac_ext=c
2839ac_cpp='$CPP $CPPFLAGS'
2840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843if test -n "$ac_tool_prefix"; then
2844  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2845set dummy ${ac_tool_prefix}gcc; ac_word=$2
2846{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2847$as_echo_n "checking for $ac_word... " >&6; }
2848if test "${ac_cv_prog_CC+set}" = set; then
2849  $as_echo_n "(cached) " >&6
2850else
2851  if test -n "$CC"; then
2852  ac_cv_prog_CC="$CC" # Let the user override the test.
2853else
2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857  IFS=$as_save_IFS
2858  test -z "$as_dir" && as_dir=.
2859  for ac_exec_ext in '' $ac_executable_extensions; do
2860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2862    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866done
2867IFS=$as_save_IFS
2868
2869fi
2870fi
2871CC=$ac_cv_prog_CC
2872if test -n "$CC"; then
2873  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2874$as_echo "$CC" >&6; }
2875else
2876  { $as_echo "$as_me:$LINENO: result: no" >&5
2877$as_echo "no" >&6; }
2878fi
2879
2880
2881fi
2882if test -z "$ac_cv_prog_CC"; then
2883  ac_ct_CC=$CC
2884  # Extract the first word of "gcc", so it can be a program name with args.
2885set dummy gcc; ac_word=$2
2886{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2887$as_echo_n "checking for $ac_word... " >&6; }
2888if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2889  $as_echo_n "(cached) " >&6
2890else
2891  if test -n "$ac_ct_CC"; then
2892  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897  IFS=$as_save_IFS
2898  test -z "$as_dir" && as_dir=.
2899  for ac_exec_ext in '' $ac_executable_extensions; do
2900  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901    ac_cv_prog_ac_ct_CC="gcc"
2902    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903    break 2
2904  fi
2905done
2906done
2907IFS=$as_save_IFS
2908
2909fi
2910fi
2911ac_ct_CC=$ac_cv_prog_ac_ct_CC
2912if test -n "$ac_ct_CC"; then
2913  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2914$as_echo "$ac_ct_CC" >&6; }
2915else
2916  { $as_echo "$as_me:$LINENO: result: no" >&5
2917$as_echo "no" >&6; }
2918fi
2919
2920  if test "x$ac_ct_CC" = x; then
2921    CC=""
2922  else
2923    case $cross_compiling:$ac_tool_warned in
2924yes:)
2925{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927ac_tool_warned=yes ;;
2928esac
2929    CC=$ac_ct_CC
2930  fi
2931else
2932  CC="$ac_cv_prog_CC"
2933fi
2934
2935if test -z "$CC"; then
2936          if test -n "$ac_tool_prefix"; then
2937    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2938set dummy ${ac_tool_prefix}cc; ac_word=$2
2939{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if test "${ac_cv_prog_CC+set}" = set; then
2942  $as_echo_n "(cached) " >&6
2943else
2944  if test -n "$CC"; then
2945  ac_cv_prog_CC="$CC" # Let the user override the test.
2946else
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950  IFS=$as_save_IFS
2951  test -z "$as_dir" && as_dir=.
2952  for ac_exec_ext in '' $ac_executable_extensions; do
2953  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954    ac_cv_prog_CC="${ac_tool_prefix}cc"
2955    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956    break 2
2957  fi
2958done
2959done
2960IFS=$as_save_IFS
2961
2962fi
2963fi
2964CC=$ac_cv_prog_CC
2965if test -n "$CC"; then
2966  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2967$as_echo "$CC" >&6; }
2968else
2969  { $as_echo "$as_me:$LINENO: result: no" >&5
2970$as_echo "no" >&6; }
2971fi
2972
2973
2974  fi
2975fi
2976if test -z "$CC"; then
2977  # Extract the first word of "cc", so it can be a program name with args.
2978set dummy cc; ac_word=$2
2979{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2980$as_echo_n "checking for $ac_word... " >&6; }
2981if test "${ac_cv_prog_CC+set}" = set; then
2982  $as_echo_n "(cached) " >&6
2983else
2984  if test -n "$CC"; then
2985  ac_cv_prog_CC="$CC" # Let the user override the test.
2986else
2987  ac_prog_rejected=no
2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH
2990do
2991  IFS=$as_save_IFS
2992  test -z "$as_dir" && as_dir=.
2993  for ac_exec_ext in '' $ac_executable_extensions; do
2994  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2996       ac_prog_rejected=yes
2997       continue
2998     fi
2999    ac_cv_prog_CC="cc"
3000    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001    break 2
3002  fi
3003done
3004done
3005IFS=$as_save_IFS
3006
3007if test $ac_prog_rejected = yes; then
3008  # We found a bogon in the path, so make sure we never use it.
3009  set dummy $ac_cv_prog_CC
3010  shift
3011  if test $# != 0; then
3012    # We chose a different compiler from the bogus one.
3013    # However, it has the same basename, so the bogon will be chosen
3014    # first if we set CC to just the basename; use the full file name.
3015    shift
3016    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3017  fi
3018fi
3019fi
3020fi
3021CC=$ac_cv_prog_CC
3022if test -n "$CC"; then
3023  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3024$as_echo "$CC" >&6; }
3025else
3026  { $as_echo "$as_me:$LINENO: result: no" >&5
3027$as_echo "no" >&6; }
3028fi
3029
3030
3031fi
3032if test -z "$CC"; then
3033  if test -n "$ac_tool_prefix"; then
3034  for ac_prog in cl.exe
3035  do
3036    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3037set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3038{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3039$as_echo_n "checking for $ac_word... " >&6; }
3040if test "${ac_cv_prog_CC+set}" = set; then
3041  $as_echo_n "(cached) " >&6
3042else
3043  if test -n "$CC"; then
3044  ac_cv_prog_CC="$CC" # Let the user override the test.
3045else
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049  IFS=$as_save_IFS
3050  test -z "$as_dir" && as_dir=.
3051  for ac_exec_ext in '' $ac_executable_extensions; do
3052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3054    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055    break 2
3056  fi
3057done
3058done
3059IFS=$as_save_IFS
3060
3061fi
3062fi
3063CC=$ac_cv_prog_CC
3064if test -n "$CC"; then
3065  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3066$as_echo "$CC" >&6; }
3067else
3068  { $as_echo "$as_me:$LINENO: result: no" >&5
3069$as_echo "no" >&6; }
3070fi
3071
3072
3073    test -n "$CC" && break
3074  done
3075fi
3076if test -z "$CC"; then
3077  ac_ct_CC=$CC
3078  for ac_prog in cl.exe
3079do
3080  # Extract the first word of "$ac_prog", so it can be a program name with args.
3081set dummy $ac_prog; ac_word=$2
3082{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3083$as_echo_n "checking for $ac_word... " >&6; }
3084if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3085  $as_echo_n "(cached) " >&6
3086else
3087  if test -n "$ac_ct_CC"; then
3088  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093  IFS=$as_save_IFS
3094  test -z "$as_dir" && as_dir=.
3095  for ac_exec_ext in '' $ac_executable_extensions; do
3096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097    ac_cv_prog_ac_ct_CC="$ac_prog"
3098    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099    break 2
3100  fi
3101done
3102done
3103IFS=$as_save_IFS
3104
3105fi
3106fi
3107ac_ct_CC=$ac_cv_prog_ac_ct_CC
3108if test -n "$ac_ct_CC"; then
3109  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3110$as_echo "$ac_ct_CC" >&6; }
3111else
3112  { $as_echo "$as_me:$LINENO: result: no" >&5
3113$as_echo "no" >&6; }
3114fi
3115
3116
3117  test -n "$ac_ct_CC" && break
3118done
3119
3120  if test "x$ac_ct_CC" = x; then
3121    CC=""
3122  else
3123    case $cross_compiling:$ac_tool_warned in
3124yes:)
3125{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127ac_tool_warned=yes ;;
3128esac
3129    CC=$ac_ct_CC
3130  fi
3131fi
3132
3133fi
3134
3135
3136test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3139See \`config.log' for more details." >&5
3140$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3141See \`config.log' for more details." >&2;}
3142   { (exit 1); exit 1; }; }; }
3143
3144# Provide some information about the compiler.
3145$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3146set X $ac_compile
3147ac_compiler=$2
3148{ (ac_try="$ac_compiler --version >&5"
3149case "(($ac_try" in
3150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151  *) ac_try_echo=$ac_try;;
3152esac
3153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154$as_echo "$ac_try_echo") >&5
3155  (eval "$ac_compiler --version >&5") 2>&5
3156  ac_status=$?
3157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); }
3159{ (ac_try="$ac_compiler -v >&5"
3160case "(($ac_try" in
3161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162  *) ac_try_echo=$ac_try;;
3163esac
3164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165$as_echo "$ac_try_echo") >&5
3166  (eval "$ac_compiler -v >&5") 2>&5
3167  ac_status=$?
3168  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169  (exit $ac_status); }
3170{ (ac_try="$ac_compiler -V >&5"
3171case "(($ac_try" in
3172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173  *) ac_try_echo=$ac_try;;
3174esac
3175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3176$as_echo "$ac_try_echo") >&5
3177  (eval "$ac_compiler -V >&5") 2>&5
3178  ac_status=$?
3179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180  (exit $ac_status); }
3181
3182cat >conftest.$ac_ext <<_ACEOF
3183/* confdefs.h.  */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h.  */
3188
3189int
3190main ()
3191{
3192
3193  ;
3194  return 0;
3195}
3196_ACEOF
3197ac_clean_files_save=$ac_clean_files
3198ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3199# Try to create an executable without -o first, disregard a.out.
3200# It will help us diagnose broken compilers, and finding out an intuition
3201# of exeext.
3202{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3203$as_echo_n "checking for C compiler default output file name... " >&6; }
3204ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3205
3206# The possible output files:
3207ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3208
3209ac_rmfiles=
3210for ac_file in $ac_files
3211do
3212  case $ac_file in
3213    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3214    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3215  esac
3216done
3217rm -f $ac_rmfiles
3218
3219if { (ac_try="$ac_link_default"
3220case "(($ac_try" in
3221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222  *) ac_try_echo=$ac_try;;
3223esac
3224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3225$as_echo "$ac_try_echo") >&5
3226  (eval "$ac_link_default") 2>&5
3227  ac_status=$?
3228  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229  (exit $ac_status); }; then
3230  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3231# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3232# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3233# so that the user can short-circuit this test for compilers unknown to
3234# Autoconf.
3235for ac_file in $ac_files ''
3236do
3237  test -f "$ac_file" || continue
3238  case $ac_file in
3239    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3240	;;
3241    [ab].out )
3242	# We found the default executable, but exeext='' is most
3243	# certainly right.
3244	break;;
3245    *.* )
3246        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3247	then :; else
3248	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249	fi
3250	# We set ac_cv_exeext here because the later test for it is not
3251	# safe: cross compilers may not add the suffix if given an `-o'
3252	# argument, so we may need to know it at that point already.
3253	# Even if this section looks crufty: it has the advantage of
3254	# actually working.
3255	break;;
3256    * )
3257	break;;
3258  esac
3259done
3260test "$ac_cv_exeext" = no && ac_cv_exeext=
3261
3262else
3263  ac_file=''
3264fi
3265
3266{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3267$as_echo "$ac_file" >&6; }
3268if test -z "$ac_file"; then
3269  $as_echo "$as_me: failed program was:" >&5
3270sed 's/^/| /' conftest.$ac_ext >&5
3271
3272{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3275See \`config.log' for more details." >&5
3276$as_echo "$as_me: error: C compiler cannot create executables
3277See \`config.log' for more details." >&2;}
3278   { (exit 77); exit 77; }; }; }
3279fi
3280
3281ac_exeext=$ac_cv_exeext
3282
3283# Check that the compiler produces executables we can run.  If not, either
3284# the compiler is broken, or we cross compile.
3285{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3286$as_echo_n "checking whether the C compiler works... " >&6; }
3287# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3288# If not cross compiling, check that we can run a simple program.
3289if test "$cross_compiling" != yes; then
3290  if { ac_try='./$ac_file'
3291  { (case "(($ac_try" in
3292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293  *) ac_try_echo=$ac_try;;
3294esac
3295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3296$as_echo "$ac_try_echo") >&5
3297  (eval "$ac_try") 2>&5
3298  ac_status=$?
3299  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); }; }; then
3301    cross_compiling=no
3302  else
3303    if test "$cross_compiling" = maybe; then
3304	cross_compiling=yes
3305    else
3306	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3309If you meant to cross compile, use \`--host'.
3310See \`config.log' for more details." >&5
3311$as_echo "$as_me: error: cannot run C compiled programs.
3312If you meant to cross compile, use \`--host'.
3313See \`config.log' for more details." >&2;}
3314   { (exit 1); exit 1; }; }; }
3315    fi
3316  fi
3317fi
3318{ $as_echo "$as_me:$LINENO: result: yes" >&5
3319$as_echo "yes" >&6; }
3320
3321rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3322ac_clean_files=$ac_clean_files_save
3323# Check that the compiler produces executables we can run.  If not, either
3324# the compiler is broken, or we cross compile.
3325{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3326$as_echo_n "checking whether we are cross compiling... " >&6; }
3327{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3328$as_echo "$cross_compiling" >&6; }
3329
3330{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3331$as_echo_n "checking for suffix of executables... " >&6; }
3332if { (ac_try="$ac_link"
3333case "(($ac_try" in
3334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335  *) ac_try_echo=$ac_try;;
3336esac
3337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3338$as_echo "$ac_try_echo") >&5
3339  (eval "$ac_link") 2>&5
3340  ac_status=$?
3341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); }; then
3343  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3344# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3345# work properly (i.e., refer to `conftest.exe'), while it won't with
3346# `rm'.
3347for ac_file in conftest.exe conftest conftest.*; do
3348  test -f "$ac_file" || continue
3349  case $ac_file in
3350    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3351    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3352	  break;;
3353    * ) break;;
3354  esac
3355done
3356else
3357  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3360See \`config.log' for more details." >&5
3361$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3362See \`config.log' for more details." >&2;}
3363   { (exit 1); exit 1; }; }; }
3364fi
3365
3366rm -f conftest$ac_cv_exeext
3367{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3368$as_echo "$ac_cv_exeext" >&6; }
3369
3370rm -f conftest.$ac_ext
3371EXEEXT=$ac_cv_exeext
3372ac_exeext=$EXEEXT
3373{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3374$as_echo_n "checking for suffix of object files... " >&6; }
3375if test "${ac_cv_objext+set}" = set; then
3376  $as_echo_n "(cached) " >&6
3377else
3378  cat >conftest.$ac_ext <<_ACEOF
3379/* confdefs.h.  */
3380_ACEOF
3381cat confdefs.h >>conftest.$ac_ext
3382cat >>conftest.$ac_ext <<_ACEOF
3383/* end confdefs.h.  */
3384
3385int
3386main ()
3387{
3388
3389  ;
3390  return 0;
3391}
3392_ACEOF
3393rm -f conftest.o conftest.obj
3394if { (ac_try="$ac_compile"
3395case "(($ac_try" in
3396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397  *) ac_try_echo=$ac_try;;
3398esac
3399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3400$as_echo "$ac_try_echo") >&5
3401  (eval "$ac_compile") 2>&5
3402  ac_status=$?
3403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); }; then
3405  for ac_file in conftest.o conftest.obj conftest.*; do
3406  test -f "$ac_file" || continue;
3407  case $ac_file in
3408    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3409    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3410       break;;
3411  esac
3412done
3413else
3414  $as_echo "$as_me: failed program was:" >&5
3415sed 's/^/| /' conftest.$ac_ext >&5
3416
3417{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3420See \`config.log' for more details." >&5
3421$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3422See \`config.log' for more details." >&2;}
3423   { (exit 1); exit 1; }; }; }
3424fi
3425
3426rm -f conftest.$ac_cv_objext conftest.$ac_ext
3427fi
3428{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3429$as_echo "$ac_cv_objext" >&6; }
3430OBJEXT=$ac_cv_objext
3431ac_objext=$OBJEXT
3432{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3433$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3434if test "${ac_cv_c_compiler_gnu+set}" = set; then
3435  $as_echo_n "(cached) " >&6
3436else
3437  cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h.  */
3439_ACEOF
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h.  */
3443
3444int
3445main ()
3446{
3447#ifndef __GNUC__
3448       choke me
3449#endif
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455rm -f conftest.$ac_objext
3456if { (ac_try="$ac_compile"
3457case "(($ac_try" in
3458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459  *) ac_try_echo=$ac_try;;
3460esac
3461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3462$as_echo "$ac_try_echo") >&5
3463  (eval "$ac_compile") 2>conftest.er1
3464  ac_status=$?
3465  grep -v '^ *+' conftest.er1 >conftest.err
3466  rm -f conftest.er1
3467  cat conftest.err >&5
3468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); } && {
3470	 test -z "$ac_c_werror_flag" ||
3471	 test ! -s conftest.err
3472       } && test -s conftest.$ac_objext; then
3473  ac_compiler_gnu=yes
3474else
3475  $as_echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478	ac_compiler_gnu=no
3479fi
3480
3481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482ac_cv_c_compiler_gnu=$ac_compiler_gnu
3483
3484fi
3485{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3486$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3487if test $ac_compiler_gnu = yes; then
3488  GCC=yes
3489else
3490  GCC=
3491fi
3492ac_test_CFLAGS=${CFLAGS+set}
3493ac_save_CFLAGS=$CFLAGS
3494{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3495$as_echo_n "checking whether $CC accepts -g... " >&6; }
3496if test "${ac_cv_prog_cc_g+set}" = set; then
3497  $as_echo_n "(cached) " >&6
3498else
3499  ac_save_c_werror_flag=$ac_c_werror_flag
3500   ac_c_werror_flag=yes
3501   ac_cv_prog_cc_g=no
3502   CFLAGS="-g"
3503   cat >conftest.$ac_ext <<_ACEOF
3504/* confdefs.h.  */
3505_ACEOF
3506cat confdefs.h >>conftest.$ac_ext
3507cat >>conftest.$ac_ext <<_ACEOF
3508/* end confdefs.h.  */
3509
3510int
3511main ()
3512{
3513
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518rm -f conftest.$ac_objext
3519if { (ac_try="$ac_compile"
3520case "(($ac_try" in
3521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522  *) ac_try_echo=$ac_try;;
3523esac
3524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3525$as_echo "$ac_try_echo") >&5
3526  (eval "$ac_compile") 2>conftest.er1
3527  ac_status=$?
3528  grep -v '^ *+' conftest.er1 >conftest.err
3529  rm -f conftest.er1
3530  cat conftest.err >&5
3531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532  (exit $ac_status); } && {
3533	 test -z "$ac_c_werror_flag" ||
3534	 test ! -s conftest.err
3535       } && test -s conftest.$ac_objext; then
3536  ac_cv_prog_cc_g=yes
3537else
3538  $as_echo "$as_me: failed program was:" >&5
3539sed 's/^/| /' conftest.$ac_ext >&5
3540
3541	CFLAGS=""
3542      cat >conftest.$ac_ext <<_ACEOF
3543/* confdefs.h.  */
3544_ACEOF
3545cat confdefs.h >>conftest.$ac_ext
3546cat >>conftest.$ac_ext <<_ACEOF
3547/* end confdefs.h.  */
3548
3549int
3550main ()
3551{
3552
3553  ;
3554  return 0;
3555}
3556_ACEOF
3557rm -f conftest.$ac_objext
3558if { (ac_try="$ac_compile"
3559case "(($ac_try" in
3560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561  *) ac_try_echo=$ac_try;;
3562esac
3563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3564$as_echo "$ac_try_echo") >&5
3565  (eval "$ac_compile") 2>conftest.er1
3566  ac_status=$?
3567  grep -v '^ *+' conftest.er1 >conftest.err
3568  rm -f conftest.er1
3569  cat conftest.err >&5
3570  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); } && {
3572	 test -z "$ac_c_werror_flag" ||
3573	 test ! -s conftest.err
3574       } && test -s conftest.$ac_objext; then
3575  :
3576else
3577  $as_echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580	ac_c_werror_flag=$ac_save_c_werror_flag
3581	 CFLAGS="-g"
3582	 cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588
3589int
3590main ()
3591{
3592
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597rm -f conftest.$ac_objext
3598if { (ac_try="$ac_compile"
3599case "(($ac_try" in
3600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601  *) ac_try_echo=$ac_try;;
3602esac
3603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3604$as_echo "$ac_try_echo") >&5
3605  (eval "$ac_compile") 2>conftest.er1
3606  ac_status=$?
3607  grep -v '^ *+' conftest.er1 >conftest.err
3608  rm -f conftest.er1
3609  cat conftest.err >&5
3610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611  (exit $ac_status); } && {
3612	 test -z "$ac_c_werror_flag" ||
3613	 test ! -s conftest.err
3614       } && test -s conftest.$ac_objext; then
3615  ac_cv_prog_cc_g=yes
3616else
3617  $as_echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620
3621fi
3622
3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624fi
3625
3626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627fi
3628
3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630   ac_c_werror_flag=$ac_save_c_werror_flag
3631fi
3632{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3633$as_echo "$ac_cv_prog_cc_g" >&6; }
3634if test "$ac_test_CFLAGS" = set; then
3635  CFLAGS=$ac_save_CFLAGS
3636elif test $ac_cv_prog_cc_g = yes; then
3637  if test "$GCC" = yes; then
3638    CFLAGS="-g -O2"
3639  else
3640    CFLAGS="-g"
3641  fi
3642else
3643  if test "$GCC" = yes; then
3644    CFLAGS="-O2"
3645  else
3646    CFLAGS=
3647  fi
3648fi
3649{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3650$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3651if test "${ac_cv_prog_cc_c89+set}" = set; then
3652  $as_echo_n "(cached) " >&6
3653else
3654  ac_cv_prog_cc_c89=no
3655ac_save_CC=$CC
3656cat >conftest.$ac_ext <<_ACEOF
3657/* confdefs.h.  */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h.  */
3662#include <stdarg.h>
3663#include <stdio.h>
3664#include <sys/types.h>
3665#include <sys/stat.h>
3666/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3667struct buf { int x; };
3668FILE * (*rcsopen) (struct buf *, struct stat *, int);
3669static char *e (p, i)
3670     char **p;
3671     int i;
3672{
3673  return p[i];
3674}
3675static char *f (char * (*g) (char **, int), char **p, ...)
3676{
3677  char *s;
3678  va_list v;
3679  va_start (v,p);
3680  s = g (p, va_arg (v,int));
3681  va_end (v);
3682  return s;
3683}
3684
3685/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3686   function prototypes and stuff, but not '\xHH' hex character constants.
3687   These don't provoke an error unfortunately, instead are silently treated
3688   as 'x'.  The following induces an error, until -std is added to get
3689   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3690   array size at least.  It's necessary to write '\x00'==0 to get something
3691   that's true only with -std.  */
3692int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3693
3694/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3695   inside strings and character constants.  */
3696#define FOO(x) 'x'
3697int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3698
3699int test (int i, double x);
3700struct s1 {int (*f) (int a);};
3701struct s2 {int (*f) (double a);};
3702int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3703int argc;
3704char **argv;
3705int
3706main ()
3707{
3708return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3709  ;
3710  return 0;
3711}
3712_ACEOF
3713for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3714	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3715do
3716  CC="$ac_save_CC $ac_arg"
3717  rm -f conftest.$ac_objext
3718if { (ac_try="$ac_compile"
3719case "(($ac_try" in
3720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721  *) ac_try_echo=$ac_try;;
3722esac
3723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3724$as_echo "$ac_try_echo") >&5
3725  (eval "$ac_compile") 2>conftest.er1
3726  ac_status=$?
3727  grep -v '^ *+' conftest.er1 >conftest.err
3728  rm -f conftest.er1
3729  cat conftest.err >&5
3730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731  (exit $ac_status); } && {
3732	 test -z "$ac_c_werror_flag" ||
3733	 test ! -s conftest.err
3734       } && test -s conftest.$ac_objext; then
3735  ac_cv_prog_cc_c89=$ac_arg
3736else
3737  $as_echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740
3741fi
3742
3743rm -f core conftest.err conftest.$ac_objext
3744  test "x$ac_cv_prog_cc_c89" != "xno" && break
3745done
3746rm -f conftest.$ac_ext
3747CC=$ac_save_CC
3748
3749fi
3750# AC_CACHE_VAL
3751case "x$ac_cv_prog_cc_c89" in
3752  x)
3753    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3754$as_echo "none needed" >&6; } ;;
3755  xno)
3756    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3757$as_echo "unsupported" >&6; } ;;
3758  *)
3759    CC="$CC $ac_cv_prog_cc_c89"
3760    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3761$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3762esac
3763
3764
3765ac_ext=c
3766ac_cpp='$CPP $CPPFLAGS'
3767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770
3771depcc="$CC"   am_compiler_list=
3772
3773{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3774$as_echo_n "checking dependency style of $depcc... " >&6; }
3775if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3776  $as_echo_n "(cached) " >&6
3777else
3778  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3779  # We make a subdir and do the tests there.  Otherwise we can end up
3780  # making bogus files that we don't know about and never remove.  For
3781  # instance it was reported that on HP-UX the gcc test will end up
3782  # making a dummy file named `D' -- because `-MD' means `put the output
3783  # in D'.
3784  mkdir conftest.dir
3785  # Copy depcomp to subdir because otherwise we won't find it if we're
3786  # using a relative directory.
3787  cp "$am_depcomp" conftest.dir
3788  cd conftest.dir
3789  # We will build objects and dependencies in a subdirectory because
3790  # it helps to detect inapplicable dependency modes.  For instance
3791  # both Tru64's cc and ICC support -MD to output dependencies as a
3792  # side effect of compilation, but ICC will put the dependencies in
3793  # the current directory while Tru64 will put them in the object
3794  # directory.
3795  mkdir sub
3796
3797  am_cv_CC_dependencies_compiler_type=none
3798  if test "$am_compiler_list" = ""; then
3799     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3800  fi
3801  am__universal=false
3802  case " $depcc " in #(
3803     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3804     esac
3805
3806  for depmode in $am_compiler_list; do
3807    # Setup a source with many dependencies, because some compilers
3808    # like to wrap large dependency lists on column 80 (with \), and
3809    # we should not choose a depcomp mode which is confused by this.
3810    #
3811    # We need to recreate these files for each test, as the compiler may
3812    # overwrite some of them when testing with obscure command lines.
3813    # This happens at least with the AIX C compiler.
3814    : > sub/conftest.c
3815    for i in 1 2 3 4 5 6; do
3816      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3817      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3818      # Solaris 8's {/usr,}/bin/sh.
3819      touch sub/conftst$i.h
3820    done
3821    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3822
3823    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3824    # mode.  It turns out that the SunPro C++ compiler does not properly
3825    # handle `-M -o', and we need to detect this.  Also, some Intel
3826    # versions had trouble with output in subdirs
3827    am__obj=sub/conftest.${OBJEXT-o}
3828    am__minus_obj="-o $am__obj"
3829    case $depmode in
3830    gcc)
3831      # This depmode causes a compiler race in universal mode.
3832      test "$am__universal" = false || continue
3833      ;;
3834    nosideeffect)
3835      # after this tag, mechanisms are not by side-effect, so they'll
3836      # only be used when explicitly requested
3837      if test "x$enable_dependency_tracking" = xyes; then
3838	continue
3839      else
3840	break
3841      fi
3842      ;;
3843    msvisualcpp | msvcmsys)
3844      # This compiler won't grok `-c -o', but also, the minuso test has
3845      # not run yet.  These depmodes are late enough in the game, and
3846      # so weak that their functioning should not be impacted.
3847      am__obj=conftest.${OBJEXT-o}
3848      am__minus_obj=
3849      ;;
3850    none) break ;;
3851    esac
3852    if depmode=$depmode \
3853       source=sub/conftest.c object=$am__obj \
3854       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3855       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3856         >/dev/null 2>conftest.err &&
3857       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3858       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3859       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3860       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3861      # icc doesn't choke on unknown options, it will just issue warnings
3862      # or remarks (even with -Werror).  So we grep stderr for any message
3863      # that says an option was ignored or not supported.
3864      # When given -MP, icc 7.0 and 7.1 complain thusly:
3865      #   icc: Command line warning: ignoring option '-M'; no argument required
3866      # The diagnosis changed in icc 8.0:
3867      #   icc: Command line remark: option '-MP' not supported
3868      if (grep 'ignoring option' conftest.err ||
3869          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3870        am_cv_CC_dependencies_compiler_type=$depmode
3871        break
3872      fi
3873    fi
3874  done
3875
3876  cd ..
3877  rm -rf conftest.dir
3878else
3879  am_cv_CC_dependencies_compiler_type=none
3880fi
3881
3882fi
3883{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3884$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3885CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3886
3887 if
3888  test "x$enable_dependency_tracking" != xno \
3889  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3890  am__fastdepCC_TRUE=
3891  am__fastdepCC_FALSE='#'
3892else
3893  am__fastdepCC_TRUE='#'
3894  am__fastdepCC_FALSE=
3895fi
3896
3897
3898
3899{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3900$as_echo_n "checking for library containing strerror... " >&6; }
3901if test "${ac_cv_search_strerror+set}" = set; then
3902  $as_echo_n "(cached) " >&6
3903else
3904  ac_func_search_save_LIBS=$LIBS
3905cat >conftest.$ac_ext <<_ACEOF
3906/* confdefs.h.  */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
3910/* end confdefs.h.  */
3911
3912/* Override any GCC internal prototype to avoid an error.
3913   Use char because int might match the return type of a GCC
3914   builtin and then its argument prototype would still apply.  */
3915#ifdef __cplusplus
3916extern "C"
3917#endif
3918char strerror ();
3919int
3920main ()
3921{
3922return strerror ();
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927for ac_lib in '' cposix; do
3928  if test -z "$ac_lib"; then
3929    ac_res="none required"
3930  else
3931    ac_res=-l$ac_lib
3932    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3933  fi
3934  rm -f conftest.$ac_objext conftest$ac_exeext
3935if { (ac_try="$ac_link"
3936case "(($ac_try" in
3937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938  *) ac_try_echo=$ac_try;;
3939esac
3940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3941$as_echo "$ac_try_echo") >&5
3942  (eval "$ac_link") 2>conftest.er1
3943  ac_status=$?
3944  grep -v '^ *+' conftest.er1 >conftest.err
3945  rm -f conftest.er1
3946  cat conftest.err >&5
3947  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948  (exit $ac_status); } && {
3949	 test -z "$ac_c_werror_flag" ||
3950	 test ! -s conftest.err
3951       } && test -s conftest$ac_exeext && {
3952	 test "$cross_compiling" = yes ||
3953	 $as_test_x conftest$ac_exeext
3954       }; then
3955  ac_cv_search_strerror=$ac_res
3956else
3957  $as_echo "$as_me: failed program was:" >&5
3958sed 's/^/| /' conftest.$ac_ext >&5
3959
3960
3961fi
3962
3963rm -rf conftest.dSYM
3964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3965      conftest$ac_exeext
3966  if test "${ac_cv_search_strerror+set}" = set; then
3967  break
3968fi
3969done
3970if test "${ac_cv_search_strerror+set}" = set; then
3971  :
3972else
3973  ac_cv_search_strerror=no
3974fi
3975rm conftest.$ac_ext
3976LIBS=$ac_func_search_save_LIBS
3977fi
3978{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3979$as_echo "$ac_cv_search_strerror" >&6; }
3980ac_res=$ac_cv_search_strerror
3981if test "$ac_res" != no; then
3982  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3983
3984fi
3985
3986ac_ext=c
3987ac_cpp='$CPP $CPPFLAGS'
3988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991if test -n "$ac_tool_prefix"; then
3992  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3993set dummy ${ac_tool_prefix}gcc; ac_word=$2
3994{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3995$as_echo_n "checking for $ac_word... " >&6; }
3996if test "${ac_cv_prog_CC+set}" = set; then
3997  $as_echo_n "(cached) " >&6
3998else
3999  if test -n "$CC"; then
4000  ac_cv_prog_CC="$CC" # Let the user override the test.
4001else
4002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003for as_dir in $PATH
4004do
4005  IFS=$as_save_IFS
4006  test -z "$as_dir" && as_dir=.
4007  for ac_exec_ext in '' $ac_executable_extensions; do
4008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4010    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011    break 2
4012  fi
4013done
4014done
4015IFS=$as_save_IFS
4016
4017fi
4018fi
4019CC=$ac_cv_prog_CC
4020if test -n "$CC"; then
4021  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4022$as_echo "$CC" >&6; }
4023else
4024  { $as_echo "$as_me:$LINENO: result: no" >&5
4025$as_echo "no" >&6; }
4026fi
4027
4028
4029fi
4030if test -z "$ac_cv_prog_CC"; then
4031  ac_ct_CC=$CC
4032  # Extract the first word of "gcc", so it can be a program name with args.
4033set dummy gcc; ac_word=$2
4034{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4035$as_echo_n "checking for $ac_word... " >&6; }
4036if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4037  $as_echo_n "(cached) " >&6
4038else
4039  if test -n "$ac_ct_CC"; then
4040  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4041else
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045  IFS=$as_save_IFS
4046  test -z "$as_dir" && as_dir=.
4047  for ac_exec_ext in '' $ac_executable_extensions; do
4048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049    ac_cv_prog_ac_ct_CC="gcc"
4050    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051    break 2
4052  fi
4053done
4054done
4055IFS=$as_save_IFS
4056
4057fi
4058fi
4059ac_ct_CC=$ac_cv_prog_ac_ct_CC
4060if test -n "$ac_ct_CC"; then
4061  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4062$as_echo "$ac_ct_CC" >&6; }
4063else
4064  { $as_echo "$as_me:$LINENO: result: no" >&5
4065$as_echo "no" >&6; }
4066fi
4067
4068  if test "x$ac_ct_CC" = x; then
4069    CC=""
4070  else
4071    case $cross_compiling:$ac_tool_warned in
4072yes:)
4073{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4075ac_tool_warned=yes ;;
4076esac
4077    CC=$ac_ct_CC
4078  fi
4079else
4080  CC="$ac_cv_prog_CC"
4081fi
4082
4083if test -z "$CC"; then
4084          if test -n "$ac_tool_prefix"; then
4085    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4086set dummy ${ac_tool_prefix}cc; ac_word=$2
4087{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4088$as_echo_n "checking for $ac_word... " >&6; }
4089if test "${ac_cv_prog_CC+set}" = set; then
4090  $as_echo_n "(cached) " >&6
4091else
4092  if test -n "$CC"; then
4093  ac_cv_prog_CC="$CC" # Let the user override the test.
4094else
4095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098  IFS=$as_save_IFS
4099  test -z "$as_dir" && as_dir=.
4100  for ac_exec_ext in '' $ac_executable_extensions; do
4101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102    ac_cv_prog_CC="${ac_tool_prefix}cc"
4103    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104    break 2
4105  fi
4106done
4107done
4108IFS=$as_save_IFS
4109
4110fi
4111fi
4112CC=$ac_cv_prog_CC
4113if test -n "$CC"; then
4114  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4115$as_echo "$CC" >&6; }
4116else
4117  { $as_echo "$as_me:$LINENO: result: no" >&5
4118$as_echo "no" >&6; }
4119fi
4120
4121
4122  fi
4123fi
4124if test -z "$CC"; then
4125  # Extract the first word of "cc", so it can be a program name with args.
4126set dummy cc; ac_word=$2
4127{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4128$as_echo_n "checking for $ac_word... " >&6; }
4129if test "${ac_cv_prog_CC+set}" = set; then
4130  $as_echo_n "(cached) " >&6
4131else
4132  if test -n "$CC"; then
4133  ac_cv_prog_CC="$CC" # Let the user override the test.
4134else
4135  ac_prog_rejected=no
4136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH
4138do
4139  IFS=$as_save_IFS
4140  test -z "$as_dir" && as_dir=.
4141  for ac_exec_ext in '' $ac_executable_extensions; do
4142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4144       ac_prog_rejected=yes
4145       continue
4146     fi
4147    ac_cv_prog_CC="cc"
4148    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149    break 2
4150  fi
4151done
4152done
4153IFS=$as_save_IFS
4154
4155if test $ac_prog_rejected = yes; then
4156  # We found a bogon in the path, so make sure we never use it.
4157  set dummy $ac_cv_prog_CC
4158  shift
4159  if test $# != 0; then
4160    # We chose a different compiler from the bogus one.
4161    # However, it has the same basename, so the bogon will be chosen
4162    # first if we set CC to just the basename; use the full file name.
4163    shift
4164    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4165  fi
4166fi
4167fi
4168fi
4169CC=$ac_cv_prog_CC
4170if test -n "$CC"; then
4171  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4172$as_echo "$CC" >&6; }
4173else
4174  { $as_echo "$as_me:$LINENO: result: no" >&5
4175$as_echo "no" >&6; }
4176fi
4177
4178
4179fi
4180if test -z "$CC"; then
4181  if test -n "$ac_tool_prefix"; then
4182  for ac_prog in cl.exe
4183  do
4184    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4185set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4186{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4187$as_echo_n "checking for $ac_word... " >&6; }
4188if test "${ac_cv_prog_CC+set}" = set; then
4189  $as_echo_n "(cached) " >&6
4190else
4191  if test -n "$CC"; then
4192  ac_cv_prog_CC="$CC" # Let the user override the test.
4193else
4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197  IFS=$as_save_IFS
4198  test -z "$as_dir" && as_dir=.
4199  for ac_exec_ext in '' $ac_executable_extensions; do
4200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4202    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203    break 2
4204  fi
4205done
4206done
4207IFS=$as_save_IFS
4208
4209fi
4210fi
4211CC=$ac_cv_prog_CC
4212if test -n "$CC"; then
4213  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4214$as_echo "$CC" >&6; }
4215else
4216  { $as_echo "$as_me:$LINENO: result: no" >&5
4217$as_echo "no" >&6; }
4218fi
4219
4220
4221    test -n "$CC" && break
4222  done
4223fi
4224if test -z "$CC"; then
4225  ac_ct_CC=$CC
4226  for ac_prog in cl.exe
4227do
4228  # Extract the first word of "$ac_prog", so it can be a program name with args.
4229set dummy $ac_prog; ac_word=$2
4230{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4231$as_echo_n "checking for $ac_word... " >&6; }
4232if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4233  $as_echo_n "(cached) " >&6
4234else
4235  if test -n "$ac_ct_CC"; then
4236  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241  IFS=$as_save_IFS
4242  test -z "$as_dir" && as_dir=.
4243  for ac_exec_ext in '' $ac_executable_extensions; do
4244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245    ac_cv_prog_ac_ct_CC="$ac_prog"
4246    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247    break 2
4248  fi
4249done
4250done
4251IFS=$as_save_IFS
4252
4253fi
4254fi
4255ac_ct_CC=$ac_cv_prog_ac_ct_CC
4256if test -n "$ac_ct_CC"; then
4257  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4258$as_echo "$ac_ct_CC" >&6; }
4259else
4260  { $as_echo "$as_me:$LINENO: result: no" >&5
4261$as_echo "no" >&6; }
4262fi
4263
4264
4265  test -n "$ac_ct_CC" && break
4266done
4267
4268  if test "x$ac_ct_CC" = x; then
4269    CC=""
4270  else
4271    case $cross_compiling:$ac_tool_warned in
4272yes:)
4273{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4275ac_tool_warned=yes ;;
4276esac
4277    CC=$ac_ct_CC
4278  fi
4279fi
4280
4281fi
4282
4283
4284test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4286{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4287See \`config.log' for more details." >&5
4288$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4289See \`config.log' for more details." >&2;}
4290   { (exit 1); exit 1; }; }; }
4291
4292# Provide some information about the compiler.
4293$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4294set X $ac_compile
4295ac_compiler=$2
4296{ (ac_try="$ac_compiler --version >&5"
4297case "(($ac_try" in
4298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299  *) ac_try_echo=$ac_try;;
4300esac
4301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4302$as_echo "$ac_try_echo") >&5
4303  (eval "$ac_compiler --version >&5") 2>&5
4304  ac_status=$?
4305  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306  (exit $ac_status); }
4307{ (ac_try="$ac_compiler -v >&5"
4308case "(($ac_try" in
4309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310  *) ac_try_echo=$ac_try;;
4311esac
4312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4313$as_echo "$ac_try_echo") >&5
4314  (eval "$ac_compiler -v >&5") 2>&5
4315  ac_status=$?
4316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317  (exit $ac_status); }
4318{ (ac_try="$ac_compiler -V >&5"
4319case "(($ac_try" in
4320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321  *) ac_try_echo=$ac_try;;
4322esac
4323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4324$as_echo "$ac_try_echo") >&5
4325  (eval "$ac_compiler -V >&5") 2>&5
4326  ac_status=$?
4327  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328  (exit $ac_status); }
4329
4330{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4331$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4332if test "${ac_cv_c_compiler_gnu+set}" = set; then
4333  $as_echo_n "(cached) " >&6
4334else
4335  cat >conftest.$ac_ext <<_ACEOF
4336/* confdefs.h.  */
4337_ACEOF
4338cat confdefs.h >>conftest.$ac_ext
4339cat >>conftest.$ac_ext <<_ACEOF
4340/* end confdefs.h.  */
4341
4342int
4343main ()
4344{
4345#ifndef __GNUC__
4346       choke me
4347#endif
4348
4349  ;
4350  return 0;
4351}
4352_ACEOF
4353rm -f conftest.$ac_objext
4354if { (ac_try="$ac_compile"
4355case "(($ac_try" in
4356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357  *) ac_try_echo=$ac_try;;
4358esac
4359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4360$as_echo "$ac_try_echo") >&5
4361  (eval "$ac_compile") 2>conftest.er1
4362  ac_status=$?
4363  grep -v '^ *+' conftest.er1 >conftest.err
4364  rm -f conftest.er1
4365  cat conftest.err >&5
4366  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367  (exit $ac_status); } && {
4368	 test -z "$ac_c_werror_flag" ||
4369	 test ! -s conftest.err
4370       } && test -s conftest.$ac_objext; then
4371  ac_compiler_gnu=yes
4372else
4373  $as_echo "$as_me: failed program was:" >&5
4374sed 's/^/| /' conftest.$ac_ext >&5
4375
4376	ac_compiler_gnu=no
4377fi
4378
4379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380ac_cv_c_compiler_gnu=$ac_compiler_gnu
4381
4382fi
4383{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4384$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4385if test $ac_compiler_gnu = yes; then
4386  GCC=yes
4387else
4388  GCC=
4389fi
4390ac_test_CFLAGS=${CFLAGS+set}
4391ac_save_CFLAGS=$CFLAGS
4392{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4393$as_echo_n "checking whether $CC accepts -g... " >&6; }
4394if test "${ac_cv_prog_cc_g+set}" = set; then
4395  $as_echo_n "(cached) " >&6
4396else
4397  ac_save_c_werror_flag=$ac_c_werror_flag
4398   ac_c_werror_flag=yes
4399   ac_cv_prog_cc_g=no
4400   CFLAGS="-g"
4401   cat >conftest.$ac_ext <<_ACEOF
4402/* confdefs.h.  */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h.  */
4407
4408int
4409main ()
4410{
4411
4412  ;
4413  return 0;
4414}
4415_ACEOF
4416rm -f conftest.$ac_objext
4417if { (ac_try="$ac_compile"
4418case "(($ac_try" in
4419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420  *) ac_try_echo=$ac_try;;
4421esac
4422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4423$as_echo "$ac_try_echo") >&5
4424  (eval "$ac_compile") 2>conftest.er1
4425  ac_status=$?
4426  grep -v '^ *+' conftest.er1 >conftest.err
4427  rm -f conftest.er1
4428  cat conftest.err >&5
4429  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430  (exit $ac_status); } && {
4431	 test -z "$ac_c_werror_flag" ||
4432	 test ! -s conftest.err
4433       } && test -s conftest.$ac_objext; then
4434  ac_cv_prog_cc_g=yes
4435else
4436  $as_echo "$as_me: failed program was:" >&5
4437sed 's/^/| /' conftest.$ac_ext >&5
4438
4439	CFLAGS=""
4440      cat >conftest.$ac_ext <<_ACEOF
4441/* confdefs.h.  */
4442_ACEOF
4443cat confdefs.h >>conftest.$ac_ext
4444cat >>conftest.$ac_ext <<_ACEOF
4445/* end confdefs.h.  */
4446
4447int
4448main ()
4449{
4450
4451  ;
4452  return 0;
4453}
4454_ACEOF
4455rm -f conftest.$ac_objext
4456if { (ac_try="$ac_compile"
4457case "(($ac_try" in
4458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459  *) ac_try_echo=$ac_try;;
4460esac
4461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4462$as_echo "$ac_try_echo") >&5
4463  (eval "$ac_compile") 2>conftest.er1
4464  ac_status=$?
4465  grep -v '^ *+' conftest.er1 >conftest.err
4466  rm -f conftest.er1
4467  cat conftest.err >&5
4468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469  (exit $ac_status); } && {
4470	 test -z "$ac_c_werror_flag" ||
4471	 test ! -s conftest.err
4472       } && test -s conftest.$ac_objext; then
4473  :
4474else
4475  $as_echo "$as_me: failed program was:" >&5
4476sed 's/^/| /' conftest.$ac_ext >&5
4477
4478	ac_c_werror_flag=$ac_save_c_werror_flag
4479	 CFLAGS="-g"
4480	 cat >conftest.$ac_ext <<_ACEOF
4481/* confdefs.h.  */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h.  */
4486
4487int
4488main ()
4489{
4490
4491  ;
4492  return 0;
4493}
4494_ACEOF
4495rm -f conftest.$ac_objext
4496if { (ac_try="$ac_compile"
4497case "(($ac_try" in
4498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499  *) ac_try_echo=$ac_try;;
4500esac
4501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4502$as_echo "$ac_try_echo") >&5
4503  (eval "$ac_compile") 2>conftest.er1
4504  ac_status=$?
4505  grep -v '^ *+' conftest.er1 >conftest.err
4506  rm -f conftest.er1
4507  cat conftest.err >&5
4508  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509  (exit $ac_status); } && {
4510	 test -z "$ac_c_werror_flag" ||
4511	 test ! -s conftest.err
4512       } && test -s conftest.$ac_objext; then
4513  ac_cv_prog_cc_g=yes
4514else
4515  $as_echo "$as_me: failed program was:" >&5
4516sed 's/^/| /' conftest.$ac_ext >&5
4517
4518
4519fi
4520
4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522fi
4523
4524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525fi
4526
4527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528   ac_c_werror_flag=$ac_save_c_werror_flag
4529fi
4530{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4531$as_echo "$ac_cv_prog_cc_g" >&6; }
4532if test "$ac_test_CFLAGS" = set; then
4533  CFLAGS=$ac_save_CFLAGS
4534elif test $ac_cv_prog_cc_g = yes; then
4535  if test "$GCC" = yes; then
4536    CFLAGS="-g -O2"
4537  else
4538    CFLAGS="-g"
4539  fi
4540else
4541  if test "$GCC" = yes; then
4542    CFLAGS="-O2"
4543  else
4544    CFLAGS=
4545  fi
4546fi
4547{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4548$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4549if test "${ac_cv_prog_cc_c89+set}" = set; then
4550  $as_echo_n "(cached) " >&6
4551else
4552  ac_cv_prog_cc_c89=no
4553ac_save_CC=$CC
4554cat >conftest.$ac_ext <<_ACEOF
4555/* confdefs.h.  */
4556_ACEOF
4557cat confdefs.h >>conftest.$ac_ext
4558cat >>conftest.$ac_ext <<_ACEOF
4559/* end confdefs.h.  */
4560#include <stdarg.h>
4561#include <stdio.h>
4562#include <sys/types.h>
4563#include <sys/stat.h>
4564/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4565struct buf { int x; };
4566FILE * (*rcsopen) (struct buf *, struct stat *, int);
4567static char *e (p, i)
4568     char **p;
4569     int i;
4570{
4571  return p[i];
4572}
4573static char *f (char * (*g) (char **, int), char **p, ...)
4574{
4575  char *s;
4576  va_list v;
4577  va_start (v,p);
4578  s = g (p, va_arg (v,int));
4579  va_end (v);
4580  return s;
4581}
4582
4583/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4584   function prototypes and stuff, but not '\xHH' hex character constants.
4585   These don't provoke an error unfortunately, instead are silently treated
4586   as 'x'.  The following induces an error, until -std is added to get
4587   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4588   array size at least.  It's necessary to write '\x00'==0 to get something
4589   that's true only with -std.  */
4590int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4591
4592/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4593   inside strings and character constants.  */
4594#define FOO(x) 'x'
4595int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4596
4597int test (int i, double x);
4598struct s1 {int (*f) (int a);};
4599struct s2 {int (*f) (double a);};
4600int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4601int argc;
4602char **argv;
4603int
4604main ()
4605{
4606return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4607  ;
4608  return 0;
4609}
4610_ACEOF
4611for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4612	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4613do
4614  CC="$ac_save_CC $ac_arg"
4615  rm -f conftest.$ac_objext
4616if { (ac_try="$ac_compile"
4617case "(($ac_try" in
4618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619  *) ac_try_echo=$ac_try;;
4620esac
4621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4622$as_echo "$ac_try_echo") >&5
4623  (eval "$ac_compile") 2>conftest.er1
4624  ac_status=$?
4625  grep -v '^ *+' conftest.er1 >conftest.err
4626  rm -f conftest.er1
4627  cat conftest.err >&5
4628  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629  (exit $ac_status); } && {
4630	 test -z "$ac_c_werror_flag" ||
4631	 test ! -s conftest.err
4632       } && test -s conftest.$ac_objext; then
4633  ac_cv_prog_cc_c89=$ac_arg
4634else
4635  $as_echo "$as_me: failed program was:" >&5
4636sed 's/^/| /' conftest.$ac_ext >&5
4637
4638
4639fi
4640
4641rm -f core conftest.err conftest.$ac_objext
4642  test "x$ac_cv_prog_cc_c89" != "xno" && break
4643done
4644rm -f conftest.$ac_ext
4645CC=$ac_save_CC
4646
4647fi
4648# AC_CACHE_VAL
4649case "x$ac_cv_prog_cc_c89" in
4650  x)
4651    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4652$as_echo "none needed" >&6; } ;;
4653  xno)
4654    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4655$as_echo "unsupported" >&6; } ;;
4656  *)
4657    CC="$CC $ac_cv_prog_cc_c89"
4658    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4659$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4660esac
4661
4662
4663ac_ext=c
4664ac_cpp='$CPP $CPPFLAGS'
4665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667ac_compiler_gnu=$ac_cv_c_compiler_gnu
4668
4669depcc="$CC"   am_compiler_list=
4670
4671{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4672$as_echo_n "checking dependency style of $depcc... " >&6; }
4673if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4674  $as_echo_n "(cached) " >&6
4675else
4676  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4677  # We make a subdir and do the tests there.  Otherwise we can end up
4678  # making bogus files that we don't know about and never remove.  For
4679  # instance it was reported that on HP-UX the gcc test will end up
4680  # making a dummy file named `D' -- because `-MD' means `put the output
4681  # in D'.
4682  mkdir conftest.dir
4683  # Copy depcomp to subdir because otherwise we won't find it if we're
4684  # using a relative directory.
4685  cp "$am_depcomp" conftest.dir
4686  cd conftest.dir
4687  # We will build objects and dependencies in a subdirectory because
4688  # it helps to detect inapplicable dependency modes.  For instance
4689  # both Tru64's cc and ICC support -MD to output dependencies as a
4690  # side effect of compilation, but ICC will put the dependencies in
4691  # the current directory while Tru64 will put them in the object
4692  # directory.
4693  mkdir sub
4694
4695  am_cv_CC_dependencies_compiler_type=none
4696  if test "$am_compiler_list" = ""; then
4697     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4698  fi
4699  am__universal=false
4700  case " $depcc " in #(
4701     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4702     esac
4703
4704  for depmode in $am_compiler_list; do
4705    # Setup a source with many dependencies, because some compilers
4706    # like to wrap large dependency lists on column 80 (with \), and
4707    # we should not choose a depcomp mode which is confused by this.
4708    #
4709    # We need to recreate these files for each test, as the compiler may
4710    # overwrite some of them when testing with obscure command lines.
4711    # This happens at least with the AIX C compiler.
4712    : > sub/conftest.c
4713    for i in 1 2 3 4 5 6; do
4714      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4715      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4716      # Solaris 8's {/usr,}/bin/sh.
4717      touch sub/conftst$i.h
4718    done
4719    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4720
4721    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4722    # mode.  It turns out that the SunPro C++ compiler does not properly
4723    # handle `-M -o', and we need to detect this.  Also, some Intel
4724    # versions had trouble with output in subdirs
4725    am__obj=sub/conftest.${OBJEXT-o}
4726    am__minus_obj="-o $am__obj"
4727    case $depmode in
4728    gcc)
4729      # This depmode causes a compiler race in universal mode.
4730      test "$am__universal" = false || continue
4731      ;;
4732    nosideeffect)
4733      # after this tag, mechanisms are not by side-effect, so they'll
4734      # only be used when explicitly requested
4735      if test "x$enable_dependency_tracking" = xyes; then
4736	continue
4737      else
4738	break
4739      fi
4740      ;;
4741    msvisualcpp | msvcmsys)
4742      # This compiler won't grok `-c -o', but also, the minuso test has
4743      # not run yet.  These depmodes are late enough in the game, and
4744      # so weak that their functioning should not be impacted.
4745      am__obj=conftest.${OBJEXT-o}
4746      am__minus_obj=
4747      ;;
4748    none) break ;;
4749    esac
4750    if depmode=$depmode \
4751       source=sub/conftest.c object=$am__obj \
4752       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4753       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4754         >/dev/null 2>conftest.err &&
4755       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4756       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4757       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4758       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4759      # icc doesn't choke on unknown options, it will just issue warnings
4760      # or remarks (even with -Werror).  So we grep stderr for any message
4761      # that says an option was ignored or not supported.
4762      # When given -MP, icc 7.0 and 7.1 complain thusly:
4763      #   icc: Command line warning: ignoring option '-M'; no argument required
4764      # The diagnosis changed in icc 8.0:
4765      #   icc: Command line remark: option '-MP' not supported
4766      if (grep 'ignoring option' conftest.err ||
4767          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4768        am_cv_CC_dependencies_compiler_type=$depmode
4769        break
4770      fi
4771    fi
4772  done
4773
4774  cd ..
4775  rm -rf conftest.dir
4776else
4777  am_cv_CC_dependencies_compiler_type=none
4778fi
4779
4780fi
4781{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4782$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4783CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4784
4785 if
4786  test "x$enable_dependency_tracking" != xno \
4787  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4788  am__fastdepCC_TRUE=
4789  am__fastdepCC_FALSE='#'
4790else
4791  am__fastdepCC_TRUE='#'
4792  am__fastdepCC_FALSE=
4793fi
4794
4795
4796ac_ext=c
4797ac_cpp='$CPP $CPPFLAGS'
4798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801if test -n "$ac_tool_prefix"; then
4802  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4803set dummy ${ac_tool_prefix}gcc; ac_word=$2
4804{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4805$as_echo_n "checking for $ac_word... " >&6; }
4806if test "${ac_cv_prog_CC+set}" = set; then
4807  $as_echo_n "(cached) " >&6
4808else
4809  if test -n "$CC"; then
4810  ac_cv_prog_CC="$CC" # Let the user override the test.
4811else
4812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813for as_dir in $PATH
4814do
4815  IFS=$as_save_IFS
4816  test -z "$as_dir" && as_dir=.
4817  for ac_exec_ext in '' $ac_executable_extensions; do
4818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4820    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821    break 2
4822  fi
4823done
4824done
4825IFS=$as_save_IFS
4826
4827fi
4828fi
4829CC=$ac_cv_prog_CC
4830if test -n "$CC"; then
4831  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4832$as_echo "$CC" >&6; }
4833else
4834  { $as_echo "$as_me:$LINENO: result: no" >&5
4835$as_echo "no" >&6; }
4836fi
4837
4838
4839fi
4840if test -z "$ac_cv_prog_CC"; then
4841  ac_ct_CC=$CC
4842  # Extract the first word of "gcc", so it can be a program name with args.
4843set dummy gcc; ac_word=$2
4844{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4845$as_echo_n "checking for $ac_word... " >&6; }
4846if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4847  $as_echo_n "(cached) " >&6
4848else
4849  if test -n "$ac_ct_CC"; then
4850  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4851else
4852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853for as_dir in $PATH
4854do
4855  IFS=$as_save_IFS
4856  test -z "$as_dir" && as_dir=.
4857  for ac_exec_ext in '' $ac_executable_extensions; do
4858  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859    ac_cv_prog_ac_ct_CC="gcc"
4860    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861    break 2
4862  fi
4863done
4864done
4865IFS=$as_save_IFS
4866
4867fi
4868fi
4869ac_ct_CC=$ac_cv_prog_ac_ct_CC
4870if test -n "$ac_ct_CC"; then
4871  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4872$as_echo "$ac_ct_CC" >&6; }
4873else
4874  { $as_echo "$as_me:$LINENO: result: no" >&5
4875$as_echo "no" >&6; }
4876fi
4877
4878  if test "x$ac_ct_CC" = x; then
4879    CC=""
4880  else
4881    case $cross_compiling:$ac_tool_warned in
4882yes:)
4883{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4885ac_tool_warned=yes ;;
4886esac
4887    CC=$ac_ct_CC
4888  fi
4889else
4890  CC="$ac_cv_prog_CC"
4891fi
4892
4893if test -z "$CC"; then
4894          if test -n "$ac_tool_prefix"; then
4895    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4896set dummy ${ac_tool_prefix}cc; ac_word=$2
4897{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4898$as_echo_n "checking for $ac_word... " >&6; }
4899if test "${ac_cv_prog_CC+set}" = set; then
4900  $as_echo_n "(cached) " >&6
4901else
4902  if test -n "$CC"; then
4903  ac_cv_prog_CC="$CC" # Let the user override the test.
4904else
4905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906for as_dir in $PATH
4907do
4908  IFS=$as_save_IFS
4909  test -z "$as_dir" && as_dir=.
4910  for ac_exec_ext in '' $ac_executable_extensions; do
4911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912    ac_cv_prog_CC="${ac_tool_prefix}cc"
4913    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914    break 2
4915  fi
4916done
4917done
4918IFS=$as_save_IFS
4919
4920fi
4921fi
4922CC=$ac_cv_prog_CC
4923if test -n "$CC"; then
4924  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4925$as_echo "$CC" >&6; }
4926else
4927  { $as_echo "$as_me:$LINENO: result: no" >&5
4928$as_echo "no" >&6; }
4929fi
4930
4931
4932  fi
4933fi
4934if test -z "$CC"; then
4935  # Extract the first word of "cc", so it can be a program name with args.
4936set dummy cc; ac_word=$2
4937{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4938$as_echo_n "checking for $ac_word... " >&6; }
4939if test "${ac_cv_prog_CC+set}" = set; then
4940  $as_echo_n "(cached) " >&6
4941else
4942  if test -n "$CC"; then
4943  ac_cv_prog_CC="$CC" # Let the user override the test.
4944else
4945  ac_prog_rejected=no
4946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947for as_dir in $PATH
4948do
4949  IFS=$as_save_IFS
4950  test -z "$as_dir" && as_dir=.
4951  for ac_exec_ext in '' $ac_executable_extensions; do
4952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4953    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4954       ac_prog_rejected=yes
4955       continue
4956     fi
4957    ac_cv_prog_CC="cc"
4958    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959    break 2
4960  fi
4961done
4962done
4963IFS=$as_save_IFS
4964
4965if test $ac_prog_rejected = yes; then
4966  # We found a bogon in the path, so make sure we never use it.
4967  set dummy $ac_cv_prog_CC
4968  shift
4969  if test $# != 0; then
4970    # We chose a different compiler from the bogus one.
4971    # However, it has the same basename, so the bogon will be chosen
4972    # first if we set CC to just the basename; use the full file name.
4973    shift
4974    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4975  fi
4976fi
4977fi
4978fi
4979CC=$ac_cv_prog_CC
4980if test -n "$CC"; then
4981  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4982$as_echo "$CC" >&6; }
4983else
4984  { $as_echo "$as_me:$LINENO: result: no" >&5
4985$as_echo "no" >&6; }
4986fi
4987
4988
4989fi
4990if test -z "$CC"; then
4991  if test -n "$ac_tool_prefix"; then
4992  for ac_prog in cl.exe
4993  do
4994    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4995set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4996{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4997$as_echo_n "checking for $ac_word... " >&6; }
4998if test "${ac_cv_prog_CC+set}" = set; then
4999  $as_echo_n "(cached) " >&6
5000else
5001  if test -n "$CC"; then
5002  ac_cv_prog_CC="$CC" # Let the user override the test.
5003else
5004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005for as_dir in $PATH
5006do
5007  IFS=$as_save_IFS
5008  test -z "$as_dir" && as_dir=.
5009  for ac_exec_ext in '' $ac_executable_extensions; do
5010  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5012    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013    break 2
5014  fi
5015done
5016done
5017IFS=$as_save_IFS
5018
5019fi
5020fi
5021CC=$ac_cv_prog_CC
5022if test -n "$CC"; then
5023  { $as_echo "$as_me:$LINENO: result: $CC" >&5
5024$as_echo "$CC" >&6; }
5025else
5026  { $as_echo "$as_me:$LINENO: result: no" >&5
5027$as_echo "no" >&6; }
5028fi
5029
5030
5031    test -n "$CC" && break
5032  done
5033fi
5034if test -z "$CC"; then
5035  ac_ct_CC=$CC
5036  for ac_prog in cl.exe
5037do
5038  # Extract the first word of "$ac_prog", so it can be a program name with args.
5039set dummy $ac_prog; ac_word=$2
5040{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5041$as_echo_n "checking for $ac_word... " >&6; }
5042if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5043  $as_echo_n "(cached) " >&6
5044else
5045  if test -n "$ac_ct_CC"; then
5046  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5047else
5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051  IFS=$as_save_IFS
5052  test -z "$as_dir" && as_dir=.
5053  for ac_exec_ext in '' $ac_executable_extensions; do
5054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055    ac_cv_prog_ac_ct_CC="$ac_prog"
5056    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057    break 2
5058  fi
5059done
5060done
5061IFS=$as_save_IFS
5062
5063fi
5064fi
5065ac_ct_CC=$ac_cv_prog_ac_ct_CC
5066if test -n "$ac_ct_CC"; then
5067  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5068$as_echo "$ac_ct_CC" >&6; }
5069else
5070  { $as_echo "$as_me:$LINENO: result: no" >&5
5071$as_echo "no" >&6; }
5072fi
5073
5074
5075  test -n "$ac_ct_CC" && break
5076done
5077
5078  if test "x$ac_ct_CC" = x; then
5079    CC=""
5080  else
5081    case $cross_compiling:$ac_tool_warned in
5082yes:)
5083{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085ac_tool_warned=yes ;;
5086esac
5087    CC=$ac_ct_CC
5088  fi
5089fi
5090
5091fi
5092
5093
5094test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5096{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5097See \`config.log' for more details." >&5
5098$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5099See \`config.log' for more details." >&2;}
5100   { (exit 1); exit 1; }; }; }
5101
5102# Provide some information about the compiler.
5103$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5104set X $ac_compile
5105ac_compiler=$2
5106{ (ac_try="$ac_compiler --version >&5"
5107case "(($ac_try" in
5108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109  *) ac_try_echo=$ac_try;;
5110esac
5111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5112$as_echo "$ac_try_echo") >&5
5113  (eval "$ac_compiler --version >&5") 2>&5
5114  ac_status=$?
5115  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116  (exit $ac_status); }
5117{ (ac_try="$ac_compiler -v >&5"
5118case "(($ac_try" in
5119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120  *) ac_try_echo=$ac_try;;
5121esac
5122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5123$as_echo "$ac_try_echo") >&5
5124  (eval "$ac_compiler -v >&5") 2>&5
5125  ac_status=$?
5126  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127  (exit $ac_status); }
5128{ (ac_try="$ac_compiler -V >&5"
5129case "(($ac_try" in
5130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131  *) ac_try_echo=$ac_try;;
5132esac
5133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5134$as_echo "$ac_try_echo") >&5
5135  (eval "$ac_compiler -V >&5") 2>&5
5136  ac_status=$?
5137  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138  (exit $ac_status); }
5139
5140{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5141$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5142if test "${ac_cv_c_compiler_gnu+set}" = set; then
5143  $as_echo_n "(cached) " >&6
5144else
5145  cat >conftest.$ac_ext <<_ACEOF
5146/* confdefs.h.  */
5147_ACEOF
5148cat confdefs.h >>conftest.$ac_ext
5149cat >>conftest.$ac_ext <<_ACEOF
5150/* end confdefs.h.  */
5151
5152int
5153main ()
5154{
5155#ifndef __GNUC__
5156       choke me
5157#endif
5158
5159  ;
5160  return 0;
5161}
5162_ACEOF
5163rm -f conftest.$ac_objext
5164if { (ac_try="$ac_compile"
5165case "(($ac_try" in
5166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167  *) ac_try_echo=$ac_try;;
5168esac
5169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5170$as_echo "$ac_try_echo") >&5
5171  (eval "$ac_compile") 2>conftest.er1
5172  ac_status=$?
5173  grep -v '^ *+' conftest.er1 >conftest.err
5174  rm -f conftest.er1
5175  cat conftest.err >&5
5176  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177  (exit $ac_status); } && {
5178	 test -z "$ac_c_werror_flag" ||
5179	 test ! -s conftest.err
5180       } && test -s conftest.$ac_objext; then
5181  ac_compiler_gnu=yes
5182else
5183  $as_echo "$as_me: failed program was:" >&5
5184sed 's/^/| /' conftest.$ac_ext >&5
5185
5186	ac_compiler_gnu=no
5187fi
5188
5189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190ac_cv_c_compiler_gnu=$ac_compiler_gnu
5191
5192fi
5193{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5194$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5195if test $ac_compiler_gnu = yes; then
5196  GCC=yes
5197else
5198  GCC=
5199fi
5200ac_test_CFLAGS=${CFLAGS+set}
5201ac_save_CFLAGS=$CFLAGS
5202{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5203$as_echo_n "checking whether $CC accepts -g... " >&6; }
5204if test "${ac_cv_prog_cc_g+set}" = set; then
5205  $as_echo_n "(cached) " >&6
5206else
5207  ac_save_c_werror_flag=$ac_c_werror_flag
5208   ac_c_werror_flag=yes
5209   ac_cv_prog_cc_g=no
5210   CFLAGS="-g"
5211   cat >conftest.$ac_ext <<_ACEOF
5212/* confdefs.h.  */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h.  */
5217
5218int
5219main ()
5220{
5221
5222  ;
5223  return 0;
5224}
5225_ACEOF
5226rm -f conftest.$ac_objext
5227if { (ac_try="$ac_compile"
5228case "(($ac_try" in
5229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230  *) ac_try_echo=$ac_try;;
5231esac
5232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5233$as_echo "$ac_try_echo") >&5
5234  (eval "$ac_compile") 2>conftest.er1
5235  ac_status=$?
5236  grep -v '^ *+' conftest.er1 >conftest.err
5237  rm -f conftest.er1
5238  cat conftest.err >&5
5239  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240  (exit $ac_status); } && {
5241	 test -z "$ac_c_werror_flag" ||
5242	 test ! -s conftest.err
5243       } && test -s conftest.$ac_objext; then
5244  ac_cv_prog_cc_g=yes
5245else
5246  $as_echo "$as_me: failed program was:" >&5
5247sed 's/^/| /' conftest.$ac_ext >&5
5248
5249	CFLAGS=""
5250      cat >conftest.$ac_ext <<_ACEOF
5251/* confdefs.h.  */
5252_ACEOF
5253cat confdefs.h >>conftest.$ac_ext
5254cat >>conftest.$ac_ext <<_ACEOF
5255/* end confdefs.h.  */
5256
5257int
5258main ()
5259{
5260
5261  ;
5262  return 0;
5263}
5264_ACEOF
5265rm -f conftest.$ac_objext
5266if { (ac_try="$ac_compile"
5267case "(($ac_try" in
5268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269  *) ac_try_echo=$ac_try;;
5270esac
5271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5272$as_echo "$ac_try_echo") >&5
5273  (eval "$ac_compile") 2>conftest.er1
5274  ac_status=$?
5275  grep -v '^ *+' conftest.er1 >conftest.err
5276  rm -f conftest.er1
5277  cat conftest.err >&5
5278  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279  (exit $ac_status); } && {
5280	 test -z "$ac_c_werror_flag" ||
5281	 test ! -s conftest.err
5282       } && test -s conftest.$ac_objext; then
5283  :
5284else
5285  $as_echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288	ac_c_werror_flag=$ac_save_c_werror_flag
5289	 CFLAGS="-g"
5290	 cat >conftest.$ac_ext <<_ACEOF
5291/* confdefs.h.  */
5292_ACEOF
5293cat confdefs.h >>conftest.$ac_ext
5294cat >>conftest.$ac_ext <<_ACEOF
5295/* end confdefs.h.  */
5296
5297int
5298main ()
5299{
5300
5301  ;
5302  return 0;
5303}
5304_ACEOF
5305rm -f conftest.$ac_objext
5306if { (ac_try="$ac_compile"
5307case "(($ac_try" in
5308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309  *) ac_try_echo=$ac_try;;
5310esac
5311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5312$as_echo "$ac_try_echo") >&5
5313  (eval "$ac_compile") 2>conftest.er1
5314  ac_status=$?
5315  grep -v '^ *+' conftest.er1 >conftest.err
5316  rm -f conftest.er1
5317  cat conftest.err >&5
5318  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319  (exit $ac_status); } && {
5320	 test -z "$ac_c_werror_flag" ||
5321	 test ! -s conftest.err
5322       } && test -s conftest.$ac_objext; then
5323  ac_cv_prog_cc_g=yes
5324else
5325  $as_echo "$as_me: failed program was:" >&5
5326sed 's/^/| /' conftest.$ac_ext >&5
5327
5328
5329fi
5330
5331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332fi
5333
5334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335fi
5336
5337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338   ac_c_werror_flag=$ac_save_c_werror_flag
5339fi
5340{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5341$as_echo "$ac_cv_prog_cc_g" >&6; }
5342if test "$ac_test_CFLAGS" = set; then
5343  CFLAGS=$ac_save_CFLAGS
5344elif test $ac_cv_prog_cc_g = yes; then
5345  if test "$GCC" = yes; then
5346    CFLAGS="-g -O2"
5347  else
5348    CFLAGS="-g"
5349  fi
5350else
5351  if test "$GCC" = yes; then
5352    CFLAGS="-O2"
5353  else
5354    CFLAGS=
5355  fi
5356fi
5357{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5358$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5359if test "${ac_cv_prog_cc_c89+set}" = set; then
5360  $as_echo_n "(cached) " >&6
5361else
5362  ac_cv_prog_cc_c89=no
5363ac_save_CC=$CC
5364cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h.  */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h.  */
5370#include <stdarg.h>
5371#include <stdio.h>
5372#include <sys/types.h>
5373#include <sys/stat.h>
5374/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5375struct buf { int x; };
5376FILE * (*rcsopen) (struct buf *, struct stat *, int);
5377static char *e (p, i)
5378     char **p;
5379     int i;
5380{
5381  return p[i];
5382}
5383static char *f (char * (*g) (char **, int), char **p, ...)
5384{
5385  char *s;
5386  va_list v;
5387  va_start (v,p);
5388  s = g (p, va_arg (v,int));
5389  va_end (v);
5390  return s;
5391}
5392
5393/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5394   function prototypes and stuff, but not '\xHH' hex character constants.
5395   These don't provoke an error unfortunately, instead are silently treated
5396   as 'x'.  The following induces an error, until -std is added to get
5397   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5398   array size at least.  It's necessary to write '\x00'==0 to get something
5399   that's true only with -std.  */
5400int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5401
5402/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5403   inside strings and character constants.  */
5404#define FOO(x) 'x'
5405int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5406
5407int test (int i, double x);
5408struct s1 {int (*f) (int a);};
5409struct s2 {int (*f) (double a);};
5410int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5411int argc;
5412char **argv;
5413int
5414main ()
5415{
5416return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5417  ;
5418  return 0;
5419}
5420_ACEOF
5421for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5422	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5423do
5424  CC="$ac_save_CC $ac_arg"
5425  rm -f conftest.$ac_objext
5426if { (ac_try="$ac_compile"
5427case "(($ac_try" in
5428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429  *) ac_try_echo=$ac_try;;
5430esac
5431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5432$as_echo "$ac_try_echo") >&5
5433  (eval "$ac_compile") 2>conftest.er1
5434  ac_status=$?
5435  grep -v '^ *+' conftest.er1 >conftest.err
5436  rm -f conftest.er1
5437  cat conftest.err >&5
5438  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439  (exit $ac_status); } && {
5440	 test -z "$ac_c_werror_flag" ||
5441	 test ! -s conftest.err
5442       } && test -s conftest.$ac_objext; then
5443  ac_cv_prog_cc_c89=$ac_arg
5444else
5445  $as_echo "$as_me: failed program was:" >&5
5446sed 's/^/| /' conftest.$ac_ext >&5
5447
5448
5449fi
5450
5451rm -f core conftest.err conftest.$ac_objext
5452  test "x$ac_cv_prog_cc_c89" != "xno" && break
5453done
5454rm -f conftest.$ac_ext
5455CC=$ac_save_CC
5456
5457fi
5458# AC_CACHE_VAL
5459case "x$ac_cv_prog_cc_c89" in
5460  x)
5461    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5462$as_echo "none needed" >&6; } ;;
5463  xno)
5464    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5465$as_echo "unsupported" >&6; } ;;
5466  *)
5467    CC="$CC $ac_cv_prog_cc_c89"
5468    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5469$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5470esac
5471
5472
5473ac_ext=c
5474ac_cpp='$CPP $CPPFLAGS'
5475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478
5479depcc="$CC"   am_compiler_list=
5480
5481{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5482$as_echo_n "checking dependency style of $depcc... " >&6; }
5483if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5484  $as_echo_n "(cached) " >&6
5485else
5486  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5487  # We make a subdir and do the tests there.  Otherwise we can end up
5488  # making bogus files that we don't know about and never remove.  For
5489  # instance it was reported that on HP-UX the gcc test will end up
5490  # making a dummy file named `D' -- because `-MD' means `put the output
5491  # in D'.
5492  mkdir conftest.dir
5493  # Copy depcomp to subdir because otherwise we won't find it if we're
5494  # using a relative directory.
5495  cp "$am_depcomp" conftest.dir
5496  cd conftest.dir
5497  # We will build objects and dependencies in a subdirectory because
5498  # it helps to detect inapplicable dependency modes.  For instance
5499  # both Tru64's cc and ICC support -MD to output dependencies as a
5500  # side effect of compilation, but ICC will put the dependencies in
5501  # the current directory while Tru64 will put them in the object
5502  # directory.
5503  mkdir sub
5504
5505  am_cv_CC_dependencies_compiler_type=none
5506  if test "$am_compiler_list" = ""; then
5507     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5508  fi
5509  am__universal=false
5510  case " $depcc " in #(
5511     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5512     esac
5513
5514  for depmode in $am_compiler_list; do
5515    # Setup a source with many dependencies, because some compilers
5516    # like to wrap large dependency lists on column 80 (with \), and
5517    # we should not choose a depcomp mode which is confused by this.
5518    #
5519    # We need to recreate these files for each test, as the compiler may
5520    # overwrite some of them when testing with obscure command lines.
5521    # This happens at least with the AIX C compiler.
5522    : > sub/conftest.c
5523    for i in 1 2 3 4 5 6; do
5524      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5525      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5526      # Solaris 8's {/usr,}/bin/sh.
5527      touch sub/conftst$i.h
5528    done
5529    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5530
5531    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5532    # mode.  It turns out that the SunPro C++ compiler does not properly
5533    # handle `-M -o', and we need to detect this.  Also, some Intel
5534    # versions had trouble with output in subdirs
5535    am__obj=sub/conftest.${OBJEXT-o}
5536    am__minus_obj="-o $am__obj"
5537    case $depmode in
5538    gcc)
5539      # This depmode causes a compiler race in universal mode.
5540      test "$am__universal" = false || continue
5541      ;;
5542    nosideeffect)
5543      # after this tag, mechanisms are not by side-effect, so they'll
5544      # only be used when explicitly requested
5545      if test "x$enable_dependency_tracking" = xyes; then
5546	continue
5547      else
5548	break
5549      fi
5550      ;;
5551    msvisualcpp | msvcmsys)
5552      # This compiler won't grok `-c -o', but also, the minuso test has
5553      # not run yet.  These depmodes are late enough in the game, and
5554      # so weak that their functioning should not be impacted.
5555      am__obj=conftest.${OBJEXT-o}
5556      am__minus_obj=
5557      ;;
5558    none) break ;;
5559    esac
5560    if depmode=$depmode \
5561       source=sub/conftest.c object=$am__obj \
5562       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5563       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5564         >/dev/null 2>conftest.err &&
5565       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5566       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5567       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5568       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5569      # icc doesn't choke on unknown options, it will just issue warnings
5570      # or remarks (even with -Werror).  So we grep stderr for any message
5571      # that says an option was ignored or not supported.
5572      # When given -MP, icc 7.0 and 7.1 complain thusly:
5573      #   icc: Command line warning: ignoring option '-M'; no argument required
5574      # The diagnosis changed in icc 8.0:
5575      #   icc: Command line remark: option '-MP' not supported
5576      if (grep 'ignoring option' conftest.err ||
5577          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5578        am_cv_CC_dependencies_compiler_type=$depmode
5579        break
5580      fi
5581    fi
5582  done
5583
5584  cd ..
5585  rm -rf conftest.dir
5586else
5587  am_cv_CC_dependencies_compiler_type=none
5588fi
5589
5590fi
5591{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5592$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5593CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5594
5595 if
5596  test "x$enable_dependency_tracking" != xno \
5597  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5598  am__fastdepCC_TRUE=
5599  am__fastdepCC_FALSE='#'
5600else
5601  am__fastdepCC_TRUE='#'
5602  am__fastdepCC_FALSE=
5603fi
5604
5605
5606
5607am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5608
5609{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5610$as_echo_n "checking for inline... " >&6; }
5611if test "${ac_cv_c_inline+set}" = set; then
5612  $as_echo_n "(cached) " >&6
5613else
5614  ac_cv_c_inline=no
5615for ac_kw in inline __inline__ __inline; do
5616  cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h.  */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h.  */
5622#ifndef __cplusplus
5623typedef int foo_t;
5624static $ac_kw foo_t static_foo () {return 0; }
5625$ac_kw foo_t foo () {return 0; }
5626#endif
5627
5628_ACEOF
5629rm -f conftest.$ac_objext
5630if { (ac_try="$ac_compile"
5631case "(($ac_try" in
5632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633  *) ac_try_echo=$ac_try;;
5634esac
5635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5636$as_echo "$ac_try_echo") >&5
5637  (eval "$ac_compile") 2>conftest.er1
5638  ac_status=$?
5639  grep -v '^ *+' conftest.er1 >conftest.err
5640  rm -f conftest.er1
5641  cat conftest.err >&5
5642  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643  (exit $ac_status); } && {
5644	 test -z "$ac_c_werror_flag" ||
5645	 test ! -s conftest.err
5646       } && test -s conftest.$ac_objext; then
5647  ac_cv_c_inline=$ac_kw
5648else
5649  $as_echo "$as_me: failed program was:" >&5
5650sed 's/^/| /' conftest.$ac_ext >&5
5651
5652
5653fi
5654
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656  test "$ac_cv_c_inline" != no && break
5657done
5658
5659fi
5660{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5661$as_echo "$ac_cv_c_inline" >&6; }
5662
5663
5664case $ac_cv_c_inline in
5665  inline | yes) ;;
5666  *)
5667    case $ac_cv_c_inline in
5668      no) ac_val=;;
5669      *) ac_val=$ac_cv_c_inline;;
5670    esac
5671    cat >>confdefs.h <<_ACEOF
5672#ifndef __cplusplus
5673#define inline $ac_val
5674#endif
5675_ACEOF
5676    ;;
5677esac
5678
5679ac_ext=c
5680ac_cpp='$CPP $CPPFLAGS'
5681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683ac_compiler_gnu=$ac_cv_c_compiler_gnu
5684{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5685$as_echo_n "checking how to run the C preprocessor... " >&6; }
5686# On Suns, sometimes $CPP names a directory.
5687if test -n "$CPP" && test -d "$CPP"; then
5688  CPP=
5689fi
5690if test -z "$CPP"; then
5691  if test "${ac_cv_prog_CPP+set}" = set; then
5692  $as_echo_n "(cached) " >&6
5693else
5694      # Double quotes because CPP needs to be expanded
5695    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5696    do
5697      ac_preproc_ok=false
5698for ac_c_preproc_warn_flag in '' yes
5699do
5700  # Use a header file that comes with gcc, so configuring glibc
5701  # with a fresh cross-compiler works.
5702  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5703  # <limits.h> exists even on freestanding compilers.
5704  # On the NeXT, cc -E runs the code through the compiler's parser,
5705  # not just through cpp. "Syntax error" is here to catch this case.
5706  cat >conftest.$ac_ext <<_ACEOF
5707/* confdefs.h.  */
5708_ACEOF
5709cat confdefs.h >>conftest.$ac_ext
5710cat >>conftest.$ac_ext <<_ACEOF
5711/* end confdefs.h.  */
5712#ifdef __STDC__
5713# include <limits.h>
5714#else
5715# include <assert.h>
5716#endif
5717		     Syntax error
5718_ACEOF
5719if { (ac_try="$ac_cpp conftest.$ac_ext"
5720case "(($ac_try" in
5721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722  *) ac_try_echo=$ac_try;;
5723esac
5724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5725$as_echo "$ac_try_echo") >&5
5726  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5727  ac_status=$?
5728  grep -v '^ *+' conftest.er1 >conftest.err
5729  rm -f conftest.er1
5730  cat conftest.err >&5
5731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732  (exit $ac_status); } >/dev/null && {
5733	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5734	 test ! -s conftest.err
5735       }; then
5736  :
5737else
5738  $as_echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
5741  # Broken: fails on valid input.
5742continue
5743fi
5744
5745rm -f conftest.err conftest.$ac_ext
5746
5747  # OK, works on sane cases.  Now check whether nonexistent headers
5748  # can be detected and how.
5749  cat >conftest.$ac_ext <<_ACEOF
5750/* confdefs.h.  */
5751_ACEOF
5752cat confdefs.h >>conftest.$ac_ext
5753cat >>conftest.$ac_ext <<_ACEOF
5754/* end confdefs.h.  */
5755#include <ac_nonexistent.h>
5756_ACEOF
5757if { (ac_try="$ac_cpp conftest.$ac_ext"
5758case "(($ac_try" in
5759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760  *) ac_try_echo=$ac_try;;
5761esac
5762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5763$as_echo "$ac_try_echo") >&5
5764  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5765  ac_status=$?
5766  grep -v '^ *+' conftest.er1 >conftest.err
5767  rm -f conftest.er1
5768  cat conftest.err >&5
5769  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770  (exit $ac_status); } >/dev/null && {
5771	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5772	 test ! -s conftest.err
5773       }; then
5774  # Broken: success on invalid input.
5775continue
5776else
5777  $as_echo "$as_me: failed program was:" >&5
5778sed 's/^/| /' conftest.$ac_ext >&5
5779
5780  # Passes both tests.
5781ac_preproc_ok=:
5782break
5783fi
5784
5785rm -f conftest.err conftest.$ac_ext
5786
5787done
5788# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5789rm -f conftest.err conftest.$ac_ext
5790if $ac_preproc_ok; then
5791  break
5792fi
5793
5794    done
5795    ac_cv_prog_CPP=$CPP
5796
5797fi
5798  CPP=$ac_cv_prog_CPP
5799else
5800  ac_cv_prog_CPP=$CPP
5801fi
5802{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5803$as_echo "$CPP" >&6; }
5804ac_preproc_ok=false
5805for ac_c_preproc_warn_flag in '' yes
5806do
5807  # Use a header file that comes with gcc, so configuring glibc
5808  # with a fresh cross-compiler works.
5809  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5810  # <limits.h> exists even on freestanding compilers.
5811  # On the NeXT, cc -E runs the code through the compiler's parser,
5812  # not just through cpp. "Syntax error" is here to catch this case.
5813  cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h.  */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h.  */
5819#ifdef __STDC__
5820# include <limits.h>
5821#else
5822# include <assert.h>
5823#endif
5824		     Syntax error
5825_ACEOF
5826if { (ac_try="$ac_cpp conftest.$ac_ext"
5827case "(($ac_try" in
5828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829  *) ac_try_echo=$ac_try;;
5830esac
5831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5832$as_echo "$ac_try_echo") >&5
5833  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5834  ac_status=$?
5835  grep -v '^ *+' conftest.er1 >conftest.err
5836  rm -f conftest.er1
5837  cat conftest.err >&5
5838  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839  (exit $ac_status); } >/dev/null && {
5840	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5841	 test ! -s conftest.err
5842       }; then
5843  :
5844else
5845  $as_echo "$as_me: failed program was:" >&5
5846sed 's/^/| /' conftest.$ac_ext >&5
5847
5848  # Broken: fails on valid input.
5849continue
5850fi
5851
5852rm -f conftest.err conftest.$ac_ext
5853
5854  # OK, works on sane cases.  Now check whether nonexistent headers
5855  # can be detected and how.
5856  cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h.  */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
5861/* end confdefs.h.  */
5862#include <ac_nonexistent.h>
5863_ACEOF
5864if { (ac_try="$ac_cpp conftest.$ac_ext"
5865case "(($ac_try" in
5866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867  *) ac_try_echo=$ac_try;;
5868esac
5869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5870$as_echo "$ac_try_echo") >&5
5871  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5872  ac_status=$?
5873  grep -v '^ *+' conftest.er1 >conftest.err
5874  rm -f conftest.er1
5875  cat conftest.err >&5
5876  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877  (exit $ac_status); } >/dev/null && {
5878	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5879	 test ! -s conftest.err
5880       }; then
5881  # Broken: success on invalid input.
5882continue
5883else
5884  $as_echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
5887  # Passes both tests.
5888ac_preproc_ok=:
5889break
5890fi
5891
5892rm -f conftest.err conftest.$ac_ext
5893
5894done
5895# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5896rm -f conftest.err conftest.$ac_ext
5897if $ac_preproc_ok; then
5898  :
5899else
5900  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5902{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5903See \`config.log' for more details." >&5
5904$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5905See \`config.log' for more details." >&2;}
5906   { (exit 1); exit 1; }; }; }
5907fi
5908
5909ac_ext=c
5910ac_cpp='$CPP $CPPFLAGS'
5911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5913ac_compiler_gnu=$ac_cv_c_compiler_gnu
5914
5915
5916{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5917$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5918if test "${ac_cv_path_GREP+set}" = set; then
5919  $as_echo_n "(cached) " >&6
5920else
5921  if test -z "$GREP"; then
5922  ac_path_GREP_found=false
5923  # Loop through the user's path and test for each of PROGNAME-LIST
5924  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5926do
5927  IFS=$as_save_IFS
5928  test -z "$as_dir" && as_dir=.
5929  for ac_prog in grep ggrep; do
5930    for ac_exec_ext in '' $ac_executable_extensions; do
5931      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5932      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5933# Check for GNU ac_path_GREP and select it if it is found.
5934  # Check for GNU $ac_path_GREP
5935case `"$ac_path_GREP" --version 2>&1` in
5936*GNU*)
5937  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5938*)
5939  ac_count=0
5940  $as_echo_n 0123456789 >"conftest.in"
5941  while :
5942  do
5943    cat "conftest.in" "conftest.in" >"conftest.tmp"
5944    mv "conftest.tmp" "conftest.in"
5945    cp "conftest.in" "conftest.nl"
5946    $as_echo 'GREP' >> "conftest.nl"
5947    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5948    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5949    ac_count=`expr $ac_count + 1`
5950    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5951      # Best one so far, save it but keep looking for a better one
5952      ac_cv_path_GREP="$ac_path_GREP"
5953      ac_path_GREP_max=$ac_count
5954    fi
5955    # 10*(2^10) chars as input seems more than enough
5956    test $ac_count -gt 10 && break
5957  done
5958  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5959esac
5960
5961      $ac_path_GREP_found && break 3
5962    done
5963  done
5964done
5965IFS=$as_save_IFS
5966  if test -z "$ac_cv_path_GREP"; then
5967    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5968$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5969   { (exit 1); exit 1; }; }
5970  fi
5971else
5972  ac_cv_path_GREP=$GREP
5973fi
5974
5975fi
5976{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5977$as_echo "$ac_cv_path_GREP" >&6; }
5978 GREP="$ac_cv_path_GREP"
5979
5980
5981{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5982$as_echo_n "checking for egrep... " >&6; }
5983if test "${ac_cv_path_EGREP+set}" = set; then
5984  $as_echo_n "(cached) " >&6
5985else
5986  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5987   then ac_cv_path_EGREP="$GREP -E"
5988   else
5989     if test -z "$EGREP"; then
5990  ac_path_EGREP_found=false
5991  # Loop through the user's path and test for each of PROGNAME-LIST
5992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5994do
5995  IFS=$as_save_IFS
5996  test -z "$as_dir" && as_dir=.
5997  for ac_prog in egrep; do
5998    for ac_exec_ext in '' $ac_executable_extensions; do
5999      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6000      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6001# Check for GNU ac_path_EGREP and select it if it is found.
6002  # Check for GNU $ac_path_EGREP
6003case `"$ac_path_EGREP" --version 2>&1` in
6004*GNU*)
6005  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6006*)
6007  ac_count=0
6008  $as_echo_n 0123456789 >"conftest.in"
6009  while :
6010  do
6011    cat "conftest.in" "conftest.in" >"conftest.tmp"
6012    mv "conftest.tmp" "conftest.in"
6013    cp "conftest.in" "conftest.nl"
6014    $as_echo 'EGREP' >> "conftest.nl"
6015    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6016    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6017    ac_count=`expr $ac_count + 1`
6018    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6019      # Best one so far, save it but keep looking for a better one
6020      ac_cv_path_EGREP="$ac_path_EGREP"
6021      ac_path_EGREP_max=$ac_count
6022    fi
6023    # 10*(2^10) chars as input seems more than enough
6024    test $ac_count -gt 10 && break
6025  done
6026  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6027esac
6028
6029      $ac_path_EGREP_found && break 3
6030    done
6031  done
6032done
6033IFS=$as_save_IFS
6034  if test -z "$ac_cv_path_EGREP"; then
6035    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6036$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6037   { (exit 1); exit 1; }; }
6038  fi
6039else
6040  ac_cv_path_EGREP=$EGREP
6041fi
6042
6043   fi
6044fi
6045{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6046$as_echo "$ac_cv_path_EGREP" >&6; }
6047 EGREP="$ac_cv_path_EGREP"
6048
6049
6050{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6051$as_echo_n "checking for ANSI C header files... " >&6; }
6052if test "${ac_cv_header_stdc+set}" = set; then
6053  $as_echo_n "(cached) " >&6
6054else
6055  cat >conftest.$ac_ext <<_ACEOF
6056/* confdefs.h.  */
6057_ACEOF
6058cat confdefs.h >>conftest.$ac_ext
6059cat >>conftest.$ac_ext <<_ACEOF
6060/* end confdefs.h.  */
6061#include <stdlib.h>
6062#include <stdarg.h>
6063#include <string.h>
6064#include <float.h>
6065
6066int
6067main ()
6068{
6069
6070  ;
6071  return 0;
6072}
6073_ACEOF
6074rm -f conftest.$ac_objext
6075if { (ac_try="$ac_compile"
6076case "(($ac_try" in
6077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078  *) ac_try_echo=$ac_try;;
6079esac
6080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6081$as_echo "$ac_try_echo") >&5
6082  (eval "$ac_compile") 2>conftest.er1
6083  ac_status=$?
6084  grep -v '^ *+' conftest.er1 >conftest.err
6085  rm -f conftest.er1
6086  cat conftest.err >&5
6087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088  (exit $ac_status); } && {
6089	 test -z "$ac_c_werror_flag" ||
6090	 test ! -s conftest.err
6091       } && test -s conftest.$ac_objext; then
6092  ac_cv_header_stdc=yes
6093else
6094  $as_echo "$as_me: failed program was:" >&5
6095sed 's/^/| /' conftest.$ac_ext >&5
6096
6097	ac_cv_header_stdc=no
6098fi
6099
6100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101
6102if test $ac_cv_header_stdc = yes; then
6103  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6104  cat >conftest.$ac_ext <<_ACEOF
6105/* confdefs.h.  */
6106_ACEOF
6107cat confdefs.h >>conftest.$ac_ext
6108cat >>conftest.$ac_ext <<_ACEOF
6109/* end confdefs.h.  */
6110#include <string.h>
6111
6112_ACEOF
6113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6114  $EGREP "memchr" >/dev/null 2>&1; then
6115  :
6116else
6117  ac_cv_header_stdc=no
6118fi
6119rm -f conftest*
6120
6121fi
6122
6123if test $ac_cv_header_stdc = yes; then
6124  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6125  cat >conftest.$ac_ext <<_ACEOF
6126/* confdefs.h.  */
6127_ACEOF
6128cat confdefs.h >>conftest.$ac_ext
6129cat >>conftest.$ac_ext <<_ACEOF
6130/* end confdefs.h.  */
6131#include <stdlib.h>
6132
6133_ACEOF
6134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6135  $EGREP "free" >/dev/null 2>&1; then
6136  :
6137else
6138  ac_cv_header_stdc=no
6139fi
6140rm -f conftest*
6141
6142fi
6143
6144if test $ac_cv_header_stdc = yes; then
6145  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6146  if test "$cross_compiling" = yes; then
6147  :
6148else
6149  cat >conftest.$ac_ext <<_ACEOF
6150/* confdefs.h.  */
6151_ACEOF
6152cat confdefs.h >>conftest.$ac_ext
6153cat >>conftest.$ac_ext <<_ACEOF
6154/* end confdefs.h.  */
6155#include <ctype.h>
6156#include <stdlib.h>
6157#if ((' ' & 0x0FF) == 0x020)
6158# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6159# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6160#else
6161# define ISLOWER(c) \
6162		   (('a' <= (c) && (c) <= 'i') \
6163		     || ('j' <= (c) && (c) <= 'r') \
6164		     || ('s' <= (c) && (c) <= 'z'))
6165# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6166#endif
6167
6168#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6169int
6170main ()
6171{
6172  int i;
6173  for (i = 0; i < 256; i++)
6174    if (XOR (islower (i), ISLOWER (i))
6175	|| toupper (i) != TOUPPER (i))
6176      return 2;
6177  return 0;
6178}
6179_ACEOF
6180rm -f conftest$ac_exeext
6181if { (ac_try="$ac_link"
6182case "(($ac_try" in
6183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184  *) ac_try_echo=$ac_try;;
6185esac
6186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6187$as_echo "$ac_try_echo") >&5
6188  (eval "$ac_link") 2>&5
6189  ac_status=$?
6190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6192  { (case "(($ac_try" in
6193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194  *) ac_try_echo=$ac_try;;
6195esac
6196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6197$as_echo "$ac_try_echo") >&5
6198  (eval "$ac_try") 2>&5
6199  ac_status=$?
6200  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201  (exit $ac_status); }; }; then
6202  :
6203else
6204  $as_echo "$as_me: program exited with status $ac_status" >&5
6205$as_echo "$as_me: failed program was:" >&5
6206sed 's/^/| /' conftest.$ac_ext >&5
6207
6208( exit $ac_status )
6209ac_cv_header_stdc=no
6210fi
6211rm -rf conftest.dSYM
6212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6213fi
6214
6215
6216fi
6217fi
6218{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6219$as_echo "$ac_cv_header_stdc" >&6; }
6220if test $ac_cv_header_stdc = yes; then
6221
6222cat >>confdefs.h <<\_ACEOF
6223#define STDC_HEADERS 1
6224_ACEOF
6225
6226fi
6227
6228# Find a good install program.  We prefer a C program (faster),
6229# so one script is as good as another.  But avoid the broken or
6230# incompatible versions:
6231# SysV /etc/install, /usr/sbin/install
6232# SunOS /usr/etc/install
6233# IRIX /sbin/install
6234# AIX /bin/install
6235# AmigaOS /C/install, which installs bootblocks on floppy discs
6236# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6237# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6238# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6239# OS/2's system install, which has a completely different semantic
6240# ./install, which can be erroneously created by make from ./install.sh.
6241# Reject install programs that cannot install multiple files.
6242{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6243$as_echo_n "checking for a BSD-compatible install... " >&6; }
6244if test -z "$INSTALL"; then
6245if test "${ac_cv_path_install+set}" = set; then
6246  $as_echo_n "(cached) " >&6
6247else
6248  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249for as_dir in $PATH
6250do
6251  IFS=$as_save_IFS
6252  test -z "$as_dir" && as_dir=.
6253  # Account for people who put trailing slashes in PATH elements.
6254case $as_dir/ in
6255  ./ | .// | /cC/* | \
6256  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6257  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6258  /usr/ucb/* ) ;;
6259  *)
6260    # OSF1 and SCO ODT 3.0 have their own names for install.
6261    # Don't use installbsd from OSF since it installs stuff as root
6262    # by default.
6263    for ac_prog in ginstall scoinst install; do
6264      for ac_exec_ext in '' $ac_executable_extensions; do
6265	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6266	  if test $ac_prog = install &&
6267	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6268	    # AIX install.  It has an incompatible calling convention.
6269	    :
6270	  elif test $ac_prog = install &&
6271	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6272	    # program-specific install script used by HP pwplus--don't use.
6273	    :
6274	  else
6275	    rm -rf conftest.one conftest.two conftest.dir
6276	    echo one > conftest.one
6277	    echo two > conftest.two
6278	    mkdir conftest.dir
6279	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6280	      test -s conftest.one && test -s conftest.two &&
6281	      test -s conftest.dir/conftest.one &&
6282	      test -s conftest.dir/conftest.two
6283	    then
6284	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6285	      break 3
6286	    fi
6287	  fi
6288	fi
6289      done
6290    done
6291    ;;
6292esac
6293
6294done
6295IFS=$as_save_IFS
6296
6297rm -rf conftest.one conftest.two conftest.dir
6298
6299fi
6300  if test "${ac_cv_path_install+set}" = set; then
6301    INSTALL=$ac_cv_path_install
6302  else
6303    # As a last resort, use the slow shell script.  Don't cache a
6304    # value for INSTALL within a source directory, because that will
6305    # break other packages using the cache if that directory is
6306    # removed, or if the value is a relative name.
6307    INSTALL=$ac_install_sh
6308  fi
6309fi
6310{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6311$as_echo "$INSTALL" >&6; }
6312
6313# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6314# It thinks the first close brace ends the variable substitution.
6315test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6316
6317test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6318
6319test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6320
6321{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6322$as_echo_n "checking whether ln -s works... " >&6; }
6323LN_S=$as_ln_s
6324if test "$LN_S" = "ln -s"; then
6325  { $as_echo "$as_me:$LINENO: result: yes" >&5
6326$as_echo "yes" >&6; }
6327else
6328  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6329$as_echo "no, using $LN_S" >&6; }
6330fi
6331
6332{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6333$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6334set x ${MAKE-make}
6335ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6336if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6337  $as_echo_n "(cached) " >&6
6338else
6339  cat >conftest.make <<\_ACEOF
6340SHELL = /bin/sh
6341all:
6342	@echo '@@@%%%=$(MAKE)=@@@%%%'
6343_ACEOF
6344# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6345case `${MAKE-make} -f conftest.make 2>/dev/null` in
6346  *@@@%%%=?*=@@@%%%*)
6347    eval ac_cv_prog_make_${ac_make}_set=yes;;
6348  *)
6349    eval ac_cv_prog_make_${ac_make}_set=no;;
6350esac
6351rm -f conftest.make
6352fi
6353if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6354  { $as_echo "$as_me:$LINENO: result: yes" >&5
6355$as_echo "yes" >&6; }
6356  SET_MAKE=
6357else
6358  { $as_echo "$as_me:$LINENO: result: no" >&5
6359$as_echo "no" >&6; }
6360  SET_MAKE="MAKE=${MAKE-make}"
6361fi
6362
6363# Extract the first word of "rm", so it can be a program name with args.
6364set dummy rm; ac_word=$2
6365{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6366$as_echo_n "checking for $ac_word... " >&6; }
6367if test "${ac_cv_path_RM+set}" = set; then
6368  $as_echo_n "(cached) " >&6
6369else
6370  case $RM in
6371  [\\/]* | ?:[\\/]*)
6372  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6373  ;;
6374  *)
6375  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378  IFS=$as_save_IFS
6379  test -z "$as_dir" && as_dir=.
6380  for ac_exec_ext in '' $ac_executable_extensions; do
6381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6383    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384    break 2
6385  fi
6386done
6387done
6388IFS=$as_save_IFS
6389
6390  test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
6391  ;;
6392esac
6393fi
6394RM=$ac_cv_path_RM
6395if test -n "$RM"; then
6396  { $as_echo "$as_me:$LINENO: result: $RM" >&5
6397$as_echo "$RM" >&6; }
6398else
6399  { $as_echo "$as_me:$LINENO: result: no" >&5
6400$as_echo "no" >&6; }
6401fi
6402
6403
6404# Extract the first word of "mv", so it can be a program name with args.
6405set dummy mv; ac_word=$2
6406{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6407$as_echo_n "checking for $ac_word... " >&6; }
6408if test "${ac_cv_path_MV+set}" = set; then
6409  $as_echo_n "(cached) " >&6
6410else
6411  case $MV in
6412  [\\/]* | ?:[\\/]*)
6413  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6414  ;;
6415  *)
6416  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419  IFS=$as_save_IFS
6420  test -z "$as_dir" && as_dir=.
6421  for ac_exec_ext in '' $ac_executable_extensions; do
6422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6424    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425    break 2
6426  fi
6427done
6428done
6429IFS=$as_save_IFS
6430
6431  test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
6432  ;;
6433esac
6434fi
6435MV=$ac_cv_path_MV
6436if test -n "$MV"; then
6437  { $as_echo "$as_me:$LINENO: result: $MV" >&5
6438$as_echo "$MV" >&6; }
6439else
6440  { $as_echo "$as_me:$LINENO: result: no" >&5
6441$as_echo "no" >&6; }
6442fi
6443
6444
6445# Extract the first word of "tar", so it can be a program name with args.
6446set dummy tar; ac_word=$2
6447{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6448$as_echo_n "checking for $ac_word... " >&6; }
6449if test "${ac_cv_path_TAR+set}" = set; then
6450  $as_echo_n "(cached) " >&6
6451else
6452  case $TAR in
6453  [\\/]* | ?:[\\/]*)
6454  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6455  ;;
6456  *)
6457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460  IFS=$as_save_IFS
6461  test -z "$as_dir" && as_dir=.
6462  for ac_exec_ext in '' $ac_executable_extensions; do
6463  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6465    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466    break 2
6467  fi
6468done
6469done
6470IFS=$as_save_IFS
6471
6472  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
6473  ;;
6474esac
6475fi
6476TAR=$ac_cv_path_TAR
6477if test -n "$TAR"; then
6478  { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6479$as_echo "$TAR" >&6; }
6480else
6481  { $as_echo "$as_me:$LINENO: result: no" >&5
6482$as_echo "no" >&6; }
6483fi
6484
6485
6486
6487
6488case `pwd` in
6489  *\ * | *\	*)
6490    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6491$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6492esac
6493
6494
6495
6496macro_version='2.2.6'
6497macro_revision='1.3012'
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511ltmain="$ac_aux_dir/ltmain.sh"
6512
6513{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6514$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6515if test "${ac_cv_path_SED+set}" = set; then
6516  $as_echo_n "(cached) " >&6
6517else
6518            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6519     for ac_i in 1 2 3 4 5 6 7; do
6520       ac_script="$ac_script$as_nl$ac_script"
6521     done
6522     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6523     $as_unset ac_script || ac_script=
6524     if test -z "$SED"; then
6525  ac_path_SED_found=false
6526  # Loop through the user's path and test for each of PROGNAME-LIST
6527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530  IFS=$as_save_IFS
6531  test -z "$as_dir" && as_dir=.
6532  for ac_prog in sed gsed; do
6533    for ac_exec_ext in '' $ac_executable_extensions; do
6534      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6535      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6536# Check for GNU ac_path_SED and select it if it is found.
6537  # Check for GNU $ac_path_SED
6538case `"$ac_path_SED" --version 2>&1` in
6539*GNU*)
6540  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6541*)
6542  ac_count=0
6543  $as_echo_n 0123456789 >"conftest.in"
6544  while :
6545  do
6546    cat "conftest.in" "conftest.in" >"conftest.tmp"
6547    mv "conftest.tmp" "conftest.in"
6548    cp "conftest.in" "conftest.nl"
6549    $as_echo '' >> "conftest.nl"
6550    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6551    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6552    ac_count=`expr $ac_count + 1`
6553    if test $ac_count -gt ${ac_path_SED_max-0}; then
6554      # Best one so far, save it but keep looking for a better one
6555      ac_cv_path_SED="$ac_path_SED"
6556      ac_path_SED_max=$ac_count
6557    fi
6558    # 10*(2^10) chars as input seems more than enough
6559    test $ac_count -gt 10 && break
6560  done
6561  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6562esac
6563
6564      $ac_path_SED_found && break 3
6565    done
6566  done
6567done
6568IFS=$as_save_IFS
6569  if test -z "$ac_cv_path_SED"; then
6570    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6571$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6572   { (exit 1); exit 1; }; }
6573  fi
6574else
6575  ac_cv_path_SED=$SED
6576fi
6577
6578fi
6579{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6580$as_echo "$ac_cv_path_SED" >&6; }
6581 SED="$ac_cv_path_SED"
6582  rm -f conftest.sed
6583
6584test -z "$SED" && SED=sed
6585Xsed="$SED -e 1s/^X//"
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6598$as_echo_n "checking for fgrep... " >&6; }
6599if test "${ac_cv_path_FGREP+set}" = set; then
6600  $as_echo_n "(cached) " >&6
6601else
6602  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6603   then ac_cv_path_FGREP="$GREP -F"
6604   else
6605     if test -z "$FGREP"; then
6606  ac_path_FGREP_found=false
6607  # Loop through the user's path and test for each of PROGNAME-LIST
6608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6610do
6611  IFS=$as_save_IFS
6612  test -z "$as_dir" && as_dir=.
6613  for ac_prog in fgrep; do
6614    for ac_exec_ext in '' $ac_executable_extensions; do
6615      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6616      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6617# Check for GNU ac_path_FGREP and select it if it is found.
6618  # Check for GNU $ac_path_FGREP
6619case `"$ac_path_FGREP" --version 2>&1` in
6620*GNU*)
6621  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6622*)
6623  ac_count=0
6624  $as_echo_n 0123456789 >"conftest.in"
6625  while :
6626  do
6627    cat "conftest.in" "conftest.in" >"conftest.tmp"
6628    mv "conftest.tmp" "conftest.in"
6629    cp "conftest.in" "conftest.nl"
6630    $as_echo 'FGREP' >> "conftest.nl"
6631    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6632    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6633    ac_count=`expr $ac_count + 1`
6634    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6635      # Best one so far, save it but keep looking for a better one
6636      ac_cv_path_FGREP="$ac_path_FGREP"
6637      ac_path_FGREP_max=$ac_count
6638    fi
6639    # 10*(2^10) chars as input seems more than enough
6640    test $ac_count -gt 10 && break
6641  done
6642  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6643esac
6644
6645      $ac_path_FGREP_found && break 3
6646    done
6647  done
6648done
6649IFS=$as_save_IFS
6650  if test -z "$ac_cv_path_FGREP"; then
6651    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6652$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6653   { (exit 1); exit 1; }; }
6654  fi
6655else
6656  ac_cv_path_FGREP=$FGREP
6657fi
6658
6659   fi
6660fi
6661{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6662$as_echo "$ac_cv_path_FGREP" >&6; }
6663 FGREP="$ac_cv_path_FGREP"
6664
6665
6666test -z "$GREP" && GREP=grep
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686# Check whether --with-gnu-ld was given.
6687if test "${with_gnu_ld+set}" = set; then
6688  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6689else
6690  with_gnu_ld=no
6691fi
6692
6693ac_prog=ld
6694if test "$GCC" = yes; then
6695  # Check if gcc -print-prog-name=ld gives a path.
6696  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6697$as_echo_n "checking for ld used by $CC... " >&6; }
6698  case $host in
6699  *-*-mingw*)
6700    # gcc leaves a trailing carriage return which upsets mingw
6701    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6702  *)
6703    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6704  esac
6705  case $ac_prog in
6706    # Accept absolute paths.
6707    [\\/]* | ?:[\\/]*)
6708      re_direlt='/[^/][^/]*/\.\./'
6709      # Canonicalize the pathname of ld
6710      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6711      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6712	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6713      done
6714      test -z "$LD" && LD="$ac_prog"
6715      ;;
6716  "")
6717    # If it fails, then pretend we aren't using GCC.
6718    ac_prog=ld
6719    ;;
6720  *)
6721    # If it is relative, then search for the first ld in PATH.
6722    with_gnu_ld=unknown
6723    ;;
6724  esac
6725elif test "$with_gnu_ld" = yes; then
6726  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6727$as_echo_n "checking for GNU ld... " >&6; }
6728else
6729  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6730$as_echo_n "checking for non-GNU ld... " >&6; }
6731fi
6732if test "${lt_cv_path_LD+set}" = set; then
6733  $as_echo_n "(cached) " >&6
6734else
6735  if test -z "$LD"; then
6736  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6737  for ac_dir in $PATH; do
6738    IFS="$lt_save_ifs"
6739    test -z "$ac_dir" && ac_dir=.
6740    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6741      lt_cv_path_LD="$ac_dir/$ac_prog"
6742      # Check to see if the program is GNU ld.  I'd rather use --version,
6743      # but apparently some variants of GNU ld only accept -v.
6744      # Break only if it was the GNU/non-GNU ld that we prefer.
6745      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6746      *GNU* | *'with BFD'*)
6747	test "$with_gnu_ld" != no && break
6748	;;
6749      *)
6750	test "$with_gnu_ld" != yes && break
6751	;;
6752      esac
6753    fi
6754  done
6755  IFS="$lt_save_ifs"
6756else
6757  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6758fi
6759fi
6760
6761LD="$lt_cv_path_LD"
6762if test -n "$LD"; then
6763  { $as_echo "$as_me:$LINENO: result: $LD" >&5
6764$as_echo "$LD" >&6; }
6765else
6766  { $as_echo "$as_me:$LINENO: result: no" >&5
6767$as_echo "no" >&6; }
6768fi
6769test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6770$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6771   { (exit 1); exit 1; }; }
6772{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6773$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6774if test "${lt_cv_prog_gnu_ld+set}" = set; then
6775  $as_echo_n "(cached) " >&6
6776else
6777  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6778case `$LD -v 2>&1 </dev/null` in
6779*GNU* | *'with BFD'*)
6780  lt_cv_prog_gnu_ld=yes
6781  ;;
6782*)
6783  lt_cv_prog_gnu_ld=no
6784  ;;
6785esac
6786fi
6787{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6788$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6789with_gnu_ld=$lt_cv_prog_gnu_ld
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6800$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6801if test "${lt_cv_path_NM+set}" = set; then
6802  $as_echo_n "(cached) " >&6
6803else
6804  if test -n "$NM"; then
6805  # Let the user override the test.
6806  lt_cv_path_NM="$NM"
6807else
6808  lt_nm_to_check="${ac_tool_prefix}nm"
6809  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6810    lt_nm_to_check="$lt_nm_to_check nm"
6811  fi
6812  for lt_tmp_nm in $lt_nm_to_check; do
6813    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6814    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6815      IFS="$lt_save_ifs"
6816      test -z "$ac_dir" && ac_dir=.
6817      tmp_nm="$ac_dir/$lt_tmp_nm"
6818      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6819	# Check to see if the nm accepts a BSD-compat flag.
6820	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6821	#   nm: unknown option "B" ignored
6822	# Tru64's nm complains that /dev/null is an invalid object file
6823	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6824	*/dev/null* | *'Invalid file or object type'*)
6825	  lt_cv_path_NM="$tmp_nm -B"
6826	  break
6827	  ;;
6828	*)
6829	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6830	  */dev/null*)
6831	    lt_cv_path_NM="$tmp_nm -p"
6832	    break
6833	    ;;
6834	  *)
6835	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6836	    continue # so that we can try to find one that supports BSD flags
6837	    ;;
6838	  esac
6839	  ;;
6840	esac
6841      fi
6842    done
6843    IFS="$lt_save_ifs"
6844  done
6845  : ${lt_cv_path_NM=no}
6846fi
6847fi
6848{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6849$as_echo "$lt_cv_path_NM" >&6; }
6850if test "$lt_cv_path_NM" != "no"; then
6851  NM="$lt_cv_path_NM"
6852else
6853  # Didn't find any BSD compatible name lister, look for dumpbin.
6854  if test -n "$ac_tool_prefix"; then
6855  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6856  do
6857    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6858set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6859{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6860$as_echo_n "checking for $ac_word... " >&6; }
6861if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6862  $as_echo_n "(cached) " >&6
6863else
6864  if test -n "$DUMPBIN"; then
6865  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870  IFS=$as_save_IFS
6871  test -z "$as_dir" && as_dir=.
6872  for ac_exec_ext in '' $ac_executable_extensions; do
6873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6875    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876    break 2
6877  fi
6878done
6879done
6880IFS=$as_save_IFS
6881
6882fi
6883fi
6884DUMPBIN=$ac_cv_prog_DUMPBIN
6885if test -n "$DUMPBIN"; then
6886  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6887$as_echo "$DUMPBIN" >&6; }
6888else
6889  { $as_echo "$as_me:$LINENO: result: no" >&5
6890$as_echo "no" >&6; }
6891fi
6892
6893
6894    test -n "$DUMPBIN" && break
6895  done
6896fi
6897if test -z "$DUMPBIN"; then
6898  ac_ct_DUMPBIN=$DUMPBIN
6899  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6900do
6901  # Extract the first word of "$ac_prog", so it can be a program name with args.
6902set dummy $ac_prog; ac_word=$2
6903{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6904$as_echo_n "checking for $ac_word... " >&6; }
6905if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6906  $as_echo_n "(cached) " >&6
6907else
6908  if test -n "$ac_ct_DUMPBIN"; then
6909  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914  IFS=$as_save_IFS
6915  test -z "$as_dir" && as_dir=.
6916  for ac_exec_ext in '' $ac_executable_extensions; do
6917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6919    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920    break 2
6921  fi
6922done
6923done
6924IFS=$as_save_IFS
6925
6926fi
6927fi
6928ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6929if test -n "$ac_ct_DUMPBIN"; then
6930  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6931$as_echo "$ac_ct_DUMPBIN" >&6; }
6932else
6933  { $as_echo "$as_me:$LINENO: result: no" >&5
6934$as_echo "no" >&6; }
6935fi
6936
6937
6938  test -n "$ac_ct_DUMPBIN" && break
6939done
6940
6941  if test "x$ac_ct_DUMPBIN" = x; then
6942    DUMPBIN=":"
6943  else
6944    case $cross_compiling:$ac_tool_warned in
6945yes:)
6946{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948ac_tool_warned=yes ;;
6949esac
6950    DUMPBIN=$ac_ct_DUMPBIN
6951  fi
6952fi
6953
6954
6955  if test "$DUMPBIN" != ":"; then
6956    NM="$DUMPBIN"
6957  fi
6958fi
6959test -z "$NM" && NM=nm
6960
6961
6962
6963
6964
6965
6966{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6967$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6968if test "${lt_cv_nm_interface+set}" = set; then
6969  $as_echo_n "(cached) " >&6
6970else
6971  lt_cv_nm_interface="BSD nm"
6972  echo "int some_variable = 0;" > conftest.$ac_ext
6973  (eval echo "\"\$as_me:6973: $ac_compile\"" >&5)
6974  (eval "$ac_compile" 2>conftest.err)
6975  cat conftest.err >&5
6976  (eval echo "\"\$as_me:6976: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6977  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6978  cat conftest.err >&5
6979  (eval echo "\"\$as_me:6979: output\"" >&5)
6980  cat conftest.out >&5
6981  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6982    lt_cv_nm_interface="MS dumpbin"
6983  fi
6984  rm -f conftest*
6985fi
6986{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6987$as_echo "$lt_cv_nm_interface" >&6; }
6988
6989# find the maximum length of command line arguments
6990{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6991$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6992if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6993  $as_echo_n "(cached) " >&6
6994else
6995    i=0
6996  teststring="ABCD"
6997
6998  case $build_os in
6999  msdosdjgpp*)
7000    # On DJGPP, this test can blow up pretty badly due to problems in libc
7001    # (any single argument exceeding 2000 bytes causes a buffer overrun
7002    # during glob expansion).  Even if it were fixed, the result of this
7003    # check would be larger than it should be.
7004    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7005    ;;
7006
7007  gnu*)
7008    # Under GNU Hurd, this test is not required because there is
7009    # no limit to the length of command line arguments.
7010    # Libtool will interpret -1 as no limit whatsoever
7011    lt_cv_sys_max_cmd_len=-1;
7012    ;;
7013
7014  cygwin* | mingw* | cegcc*)
7015    # On Win9x/ME, this test blows up -- it succeeds, but takes
7016    # about 5 minutes as the teststring grows exponentially.
7017    # Worse, since 9x/ME are not pre-emptively multitasking,
7018    # you end up with a "frozen" computer, even though with patience
7019    # the test eventually succeeds (with a max line length of 256k).
7020    # Instead, let's just punt: use the minimum linelength reported by
7021    # all of the supported platforms: 8192 (on NT/2K/XP).
7022    lt_cv_sys_max_cmd_len=8192;
7023    ;;
7024
7025  amigaos*)
7026    # On AmigaOS with pdksh, this test takes hours, literally.
7027    # So we just punt and use a minimum line length of 8192.
7028    lt_cv_sys_max_cmd_len=8192;
7029    ;;
7030
7031  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7032    # This has been around since 386BSD, at least.  Likely further.
7033    if test -x /sbin/sysctl; then
7034      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7035    elif test -x /usr/sbin/sysctl; then
7036      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7037    else
7038      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7039    fi
7040    # And add a safety zone
7041    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7042    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7043    ;;
7044
7045  interix*)
7046    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7047    lt_cv_sys_max_cmd_len=196608
7048    ;;
7049
7050  osf*)
7051    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7052    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7053    # nice to cause kernel panics so lets avoid the loop below.
7054    # First set a reasonable default.
7055    lt_cv_sys_max_cmd_len=16384
7056    #
7057    if test -x /sbin/sysconfig; then
7058      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7059        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7060      esac
7061    fi
7062    ;;
7063  sco3.2v5*)
7064    lt_cv_sys_max_cmd_len=102400
7065    ;;
7066  sysv5* | sco5v6* | sysv4.2uw2*)
7067    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7068    if test -n "$kargmax"; then
7069      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7070    else
7071      lt_cv_sys_max_cmd_len=32768
7072    fi
7073    ;;
7074  *)
7075    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7076    if test -n "$lt_cv_sys_max_cmd_len"; then
7077      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7078      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7079    else
7080      # Make teststring a little bigger before we do anything with it.
7081      # a 1K string should be a reasonable start.
7082      for i in 1 2 3 4 5 6 7 8 ; do
7083        teststring=$teststring$teststring
7084      done
7085      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7086      # If test is not a shell built-in, we'll probably end up computing a
7087      # maximum length that is only half of the actual maximum length, but
7088      # we can't tell.
7089      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7090	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7091	      test $i != 17 # 1/2 MB should be enough
7092      do
7093        i=`expr $i + 1`
7094        teststring=$teststring$teststring
7095      done
7096      # Only check the string length outside the loop.
7097      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7098      teststring=
7099      # Add a significant safety factor because C++ compilers can tack on
7100      # massive amounts of additional arguments before passing them to the
7101      # linker.  It appears as though 1/2 is a usable value.
7102      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7103    fi
7104    ;;
7105  esac
7106
7107fi
7108
7109if test -n $lt_cv_sys_max_cmd_len ; then
7110  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7111$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7112else
7113  { $as_echo "$as_me:$LINENO: result: none" >&5
7114$as_echo "none" >&6; }
7115fi
7116max_cmd_len=$lt_cv_sys_max_cmd_len
7117
7118
7119
7120
7121
7122
7123: ${CP="cp -f"}
7124: ${MV="mv -f"}
7125: ${RM="rm -f"}
7126
7127{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
7128$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7129# Try some XSI features
7130xsi_shell=no
7131( _lt_dummy="a/b/c"
7132  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7133      = c,a/b,, \
7134    && eval 'test $(( 1 + 1 )) -eq 2 \
7135    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7136  && xsi_shell=yes
7137{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
7138$as_echo "$xsi_shell" >&6; }
7139
7140
7141{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
7142$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7143lt_shell_append=no
7144( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7145    >/dev/null 2>&1 \
7146  && lt_shell_append=yes
7147{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7148$as_echo "$lt_shell_append" >&6; }
7149
7150
7151if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7152  lt_unset=unset
7153else
7154  lt_unset=false
7155fi
7156
7157
7158
7159
7160
7161# test EBCDIC or ASCII
7162case `echo X|tr X '\101'` in
7163 A) # ASCII based system
7164    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7165  lt_SP2NL='tr \040 \012'
7166  lt_NL2SP='tr \015\012 \040\040'
7167  ;;
7168 *) # EBCDIC based system
7169  lt_SP2NL='tr \100 \n'
7170  lt_NL2SP='tr \r\n \100\100'
7171  ;;
7172esac
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7183$as_echo_n "checking for $LD option to reload object files... " >&6; }
7184if test "${lt_cv_ld_reload_flag+set}" = set; then
7185  $as_echo_n "(cached) " >&6
7186else
7187  lt_cv_ld_reload_flag='-r'
7188fi
7189{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7190$as_echo "$lt_cv_ld_reload_flag" >&6; }
7191reload_flag=$lt_cv_ld_reload_flag
7192case $reload_flag in
7193"" | " "*) ;;
7194*) reload_flag=" $reload_flag" ;;
7195esac
7196reload_cmds='$LD$reload_flag -o $output$reload_objs'
7197case $host_os in
7198  darwin*)
7199    if test "$GCC" = yes; then
7200      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7201    else
7202      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7203    fi
7204    ;;
7205esac
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215if test -n "$ac_tool_prefix"; then
7216  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7217set dummy ${ac_tool_prefix}objdump; ac_word=$2
7218{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7219$as_echo_n "checking for $ac_word... " >&6; }
7220if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7221  $as_echo_n "(cached) " >&6
7222else
7223  if test -n "$OBJDUMP"; then
7224  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7225else
7226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227for as_dir in $PATH
7228do
7229  IFS=$as_save_IFS
7230  test -z "$as_dir" && as_dir=.
7231  for ac_exec_ext in '' $ac_executable_extensions; do
7232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7234    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235    break 2
7236  fi
7237done
7238done
7239IFS=$as_save_IFS
7240
7241fi
7242fi
7243OBJDUMP=$ac_cv_prog_OBJDUMP
7244if test -n "$OBJDUMP"; then
7245  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7246$as_echo "$OBJDUMP" >&6; }
7247else
7248  { $as_echo "$as_me:$LINENO: result: no" >&5
7249$as_echo "no" >&6; }
7250fi
7251
7252
7253fi
7254if test -z "$ac_cv_prog_OBJDUMP"; then
7255  ac_ct_OBJDUMP=$OBJDUMP
7256  # Extract the first word of "objdump", so it can be a program name with args.
7257set dummy objdump; ac_word=$2
7258{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7259$as_echo_n "checking for $ac_word... " >&6; }
7260if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7261  $as_echo_n "(cached) " >&6
7262else
7263  if test -n "$ac_ct_OBJDUMP"; then
7264  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269  IFS=$as_save_IFS
7270  test -z "$as_dir" && as_dir=.
7271  for ac_exec_ext in '' $ac_executable_extensions; do
7272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7273    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7274    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275    break 2
7276  fi
7277done
7278done
7279IFS=$as_save_IFS
7280
7281fi
7282fi
7283ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7284if test -n "$ac_ct_OBJDUMP"; then
7285  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7286$as_echo "$ac_ct_OBJDUMP" >&6; }
7287else
7288  { $as_echo "$as_me:$LINENO: result: no" >&5
7289$as_echo "no" >&6; }
7290fi
7291
7292  if test "x$ac_ct_OBJDUMP" = x; then
7293    OBJDUMP="false"
7294  else
7295    case $cross_compiling:$ac_tool_warned in
7296yes:)
7297{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7299ac_tool_warned=yes ;;
7300esac
7301    OBJDUMP=$ac_ct_OBJDUMP
7302  fi
7303else
7304  OBJDUMP="$ac_cv_prog_OBJDUMP"
7305fi
7306
7307test -z "$OBJDUMP" && OBJDUMP=objdump
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7318$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7319if test "${lt_cv_deplibs_check_method+set}" = set; then
7320  $as_echo_n "(cached) " >&6
7321else
7322  lt_cv_file_magic_cmd='$MAGIC_CMD'
7323lt_cv_file_magic_test_file=
7324lt_cv_deplibs_check_method='unknown'
7325# Need to set the preceding variable on all platforms that support
7326# interlibrary dependencies.
7327# 'none' -- dependencies not supported.
7328# `unknown' -- same as none, but documents that we really don't know.
7329# 'pass_all' -- all dependencies passed with no checks.
7330# 'test_compile' -- check by making test program.
7331# 'file_magic [[regex]]' -- check by looking for files in library path
7332# which responds to the $file_magic_cmd with a given extended regex.
7333# If you have `file' or equivalent on your system and you're not sure
7334# whether `pass_all' will *always* work, you probably want this one.
7335
7336case $host_os in
7337aix[4-9]*)
7338  lt_cv_deplibs_check_method=pass_all
7339  ;;
7340
7341beos*)
7342  lt_cv_deplibs_check_method=pass_all
7343  ;;
7344
7345bsdi[45]*)
7346  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7347  lt_cv_file_magic_cmd='/usr/bin/file -L'
7348  lt_cv_file_magic_test_file=/shlib/libc.so
7349  ;;
7350
7351cygwin*)
7352  # func_win32_libid is a shell function defined in ltmain.sh
7353  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7354  lt_cv_file_magic_cmd='func_win32_libid'
7355  ;;
7356
7357mingw* | pw32*)
7358  # Base MSYS/MinGW do not provide the 'file' command needed by
7359  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7360  # unless we find 'file', for example because we are cross-compiling.
7361  if ( file / ) >/dev/null 2>&1; then
7362    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7363    lt_cv_file_magic_cmd='func_win32_libid'
7364  else
7365    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7366    lt_cv_file_magic_cmd='$OBJDUMP -f'
7367  fi
7368  ;;
7369
7370cegcc)
7371  # use the weaker test based on 'objdump'. See mingw*.
7372  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7373  lt_cv_file_magic_cmd='$OBJDUMP -f'
7374  ;;
7375
7376darwin* | rhapsody*)
7377  lt_cv_deplibs_check_method=pass_all
7378  ;;
7379
7380freebsd* | dragonfly*)
7381  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7382    case $host_cpu in
7383    i*86 )
7384      # Not sure whether the presence of OpenBSD here was a mistake.
7385      # Let's accept both of them until this is cleared up.
7386      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7387      lt_cv_file_magic_cmd=/usr/bin/file
7388      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7389      ;;
7390    esac
7391  else
7392    lt_cv_deplibs_check_method=pass_all
7393  fi
7394  ;;
7395
7396gnu*)
7397  lt_cv_deplibs_check_method=pass_all
7398  ;;
7399
7400hpux10.20* | hpux11*)
7401  lt_cv_file_magic_cmd=/usr/bin/file
7402  case $host_cpu in
7403  ia64*)
7404    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7405    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7406    ;;
7407  hppa*64*)
7408    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]'
7409    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7410    ;;
7411  *)
7412    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7413    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7414    ;;
7415  esac
7416  ;;
7417
7418interix[3-9]*)
7419  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7420  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7421  ;;
7422
7423irix5* | irix6* | nonstopux*)
7424  case $LD in
7425  *-32|*"-32 ") libmagic=32-bit;;
7426  *-n32|*"-n32 ") libmagic=N32;;
7427  *-64|*"-64 ") libmagic=64-bit;;
7428  *) libmagic=never-match;;
7429  esac
7430  lt_cv_deplibs_check_method=pass_all
7431  ;;
7432
7433# This must be Linux ELF.
7434linux* | k*bsd*-gnu)
7435  lt_cv_deplibs_check_method=pass_all
7436  ;;
7437
7438netbsd*)
7439  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7440    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7441  else
7442    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7443  fi
7444  ;;
7445
7446newos6*)
7447  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7448  lt_cv_file_magic_cmd=/usr/bin/file
7449  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7450  ;;
7451
7452*nto* | *qnx*)
7453  lt_cv_deplibs_check_method=pass_all
7454  ;;
7455
7456openbsd*)
7457  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7458    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7459  else
7460    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7461  fi
7462  ;;
7463
7464osf3* | osf4* | osf5*)
7465  lt_cv_deplibs_check_method=pass_all
7466  ;;
7467
7468rdos*)
7469  lt_cv_deplibs_check_method=pass_all
7470  ;;
7471
7472solaris*)
7473  lt_cv_deplibs_check_method=pass_all
7474  ;;
7475
7476sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7477  lt_cv_deplibs_check_method=pass_all
7478  ;;
7479
7480sysv4 | sysv4.3*)
7481  case $host_vendor in
7482  motorola)
7483    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]'
7484    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7485    ;;
7486  ncr)
7487    lt_cv_deplibs_check_method=pass_all
7488    ;;
7489  sequent)
7490    lt_cv_file_magic_cmd='/bin/file'
7491    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7492    ;;
7493  sni)
7494    lt_cv_file_magic_cmd='/bin/file'
7495    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7496    lt_cv_file_magic_test_file=/lib/libc.so
7497    ;;
7498  siemens)
7499    lt_cv_deplibs_check_method=pass_all
7500    ;;
7501  pc)
7502    lt_cv_deplibs_check_method=pass_all
7503    ;;
7504  esac
7505  ;;
7506
7507tpf*)
7508  lt_cv_deplibs_check_method=pass_all
7509  ;;
7510esac
7511
7512fi
7513{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7514$as_echo "$lt_cv_deplibs_check_method" >&6; }
7515file_magic_cmd=$lt_cv_file_magic_cmd
7516deplibs_check_method=$lt_cv_deplibs_check_method
7517test -z "$deplibs_check_method" && deplibs_check_method=unknown
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530if test -n "$ac_tool_prefix"; then
7531  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7532set dummy ${ac_tool_prefix}ar; ac_word=$2
7533{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7534$as_echo_n "checking for $ac_word... " >&6; }
7535if test "${ac_cv_prog_AR+set}" = set; then
7536  $as_echo_n "(cached) " >&6
7537else
7538  if test -n "$AR"; then
7539  ac_cv_prog_AR="$AR" # Let the user override the test.
7540else
7541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542for as_dir in $PATH
7543do
7544  IFS=$as_save_IFS
7545  test -z "$as_dir" && as_dir=.
7546  for ac_exec_ext in '' $ac_executable_extensions; do
7547  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548    ac_cv_prog_AR="${ac_tool_prefix}ar"
7549    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7550    break 2
7551  fi
7552done
7553done
7554IFS=$as_save_IFS
7555
7556fi
7557fi
7558AR=$ac_cv_prog_AR
7559if test -n "$AR"; then
7560  { $as_echo "$as_me:$LINENO: result: $AR" >&5
7561$as_echo "$AR" >&6; }
7562else
7563  { $as_echo "$as_me:$LINENO: result: no" >&5
7564$as_echo "no" >&6; }
7565fi
7566
7567
7568fi
7569if test -z "$ac_cv_prog_AR"; then
7570  ac_ct_AR=$AR
7571  # Extract the first word of "ar", so it can be a program name with args.
7572set dummy ar; ac_word=$2
7573{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7574$as_echo_n "checking for $ac_word... " >&6; }
7575if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7576  $as_echo_n "(cached) " >&6
7577else
7578  if test -n "$ac_ct_AR"; then
7579  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7580else
7581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582for as_dir in $PATH
7583do
7584  IFS=$as_save_IFS
7585  test -z "$as_dir" && as_dir=.
7586  for ac_exec_ext in '' $ac_executable_extensions; do
7587  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7588    ac_cv_prog_ac_ct_AR="ar"
7589    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590    break 2
7591  fi
7592done
7593done
7594IFS=$as_save_IFS
7595
7596fi
7597fi
7598ac_ct_AR=$ac_cv_prog_ac_ct_AR
7599if test -n "$ac_ct_AR"; then
7600  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7601$as_echo "$ac_ct_AR" >&6; }
7602else
7603  { $as_echo "$as_me:$LINENO: result: no" >&5
7604$as_echo "no" >&6; }
7605fi
7606
7607  if test "x$ac_ct_AR" = x; then
7608    AR="false"
7609  else
7610    case $cross_compiling:$ac_tool_warned in
7611yes:)
7612{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7614ac_tool_warned=yes ;;
7615esac
7616    AR=$ac_ct_AR
7617  fi
7618else
7619  AR="$ac_cv_prog_AR"
7620fi
7621
7622test -z "$AR" && AR=ar
7623test -z "$AR_FLAGS" && AR_FLAGS=cru
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635if test -n "$ac_tool_prefix"; then
7636  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7637set dummy ${ac_tool_prefix}strip; ac_word=$2
7638{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7639$as_echo_n "checking for $ac_word... " >&6; }
7640if test "${ac_cv_prog_STRIP+set}" = set; then
7641  $as_echo_n "(cached) " >&6
7642else
7643  if test -n "$STRIP"; then
7644  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7645else
7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649  IFS=$as_save_IFS
7650  test -z "$as_dir" && as_dir=.
7651  for ac_exec_ext in '' $ac_executable_extensions; do
7652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7654    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655    break 2
7656  fi
7657done
7658done
7659IFS=$as_save_IFS
7660
7661fi
7662fi
7663STRIP=$ac_cv_prog_STRIP
7664if test -n "$STRIP"; then
7665  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7666$as_echo "$STRIP" >&6; }
7667else
7668  { $as_echo "$as_me:$LINENO: result: no" >&5
7669$as_echo "no" >&6; }
7670fi
7671
7672
7673fi
7674if test -z "$ac_cv_prog_STRIP"; then
7675  ac_ct_STRIP=$STRIP
7676  # Extract the first word of "strip", so it can be a program name with args.
7677set dummy strip; ac_word=$2
7678{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7679$as_echo_n "checking for $ac_word... " >&6; }
7680if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7681  $as_echo_n "(cached) " >&6
7682else
7683  if test -n "$ac_ct_STRIP"; then
7684  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7685else
7686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH
7688do
7689  IFS=$as_save_IFS
7690  test -z "$as_dir" && as_dir=.
7691  for ac_exec_ext in '' $ac_executable_extensions; do
7692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7693    ac_cv_prog_ac_ct_STRIP="strip"
7694    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695    break 2
7696  fi
7697done
7698done
7699IFS=$as_save_IFS
7700
7701fi
7702fi
7703ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7704if test -n "$ac_ct_STRIP"; then
7705  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7706$as_echo "$ac_ct_STRIP" >&6; }
7707else
7708  { $as_echo "$as_me:$LINENO: result: no" >&5
7709$as_echo "no" >&6; }
7710fi
7711
7712  if test "x$ac_ct_STRIP" = x; then
7713    STRIP=":"
7714  else
7715    case $cross_compiling:$ac_tool_warned in
7716yes:)
7717{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719ac_tool_warned=yes ;;
7720esac
7721    STRIP=$ac_ct_STRIP
7722  fi
7723else
7724  STRIP="$ac_cv_prog_STRIP"
7725fi
7726
7727test -z "$STRIP" && STRIP=:
7728
7729
7730
7731
7732
7733
7734if test -n "$ac_tool_prefix"; then
7735  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7736set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7737{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7738$as_echo_n "checking for $ac_word... " >&6; }
7739if test "${ac_cv_prog_RANLIB+set}" = set; then
7740  $as_echo_n "(cached) " >&6
7741else
7742  if test -n "$RANLIB"; then
7743  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7744else
7745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746for as_dir in $PATH
7747do
7748  IFS=$as_save_IFS
7749  test -z "$as_dir" && as_dir=.
7750  for ac_exec_ext in '' $ac_executable_extensions; do
7751  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7753    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7754    break 2
7755  fi
7756done
7757done
7758IFS=$as_save_IFS
7759
7760fi
7761fi
7762RANLIB=$ac_cv_prog_RANLIB
7763if test -n "$RANLIB"; then
7764  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7765$as_echo "$RANLIB" >&6; }
7766else
7767  { $as_echo "$as_me:$LINENO: result: no" >&5
7768$as_echo "no" >&6; }
7769fi
7770
7771
7772fi
7773if test -z "$ac_cv_prog_RANLIB"; then
7774  ac_ct_RANLIB=$RANLIB
7775  # Extract the first word of "ranlib", so it can be a program name with args.
7776set dummy ranlib; ac_word=$2
7777{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7778$as_echo_n "checking for $ac_word... " >&6; }
7779if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7780  $as_echo_n "(cached) " >&6
7781else
7782  if test -n "$ac_ct_RANLIB"; then
7783  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7784else
7785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788  IFS=$as_save_IFS
7789  test -z "$as_dir" && as_dir=.
7790  for ac_exec_ext in '' $ac_executable_extensions; do
7791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7792    ac_cv_prog_ac_ct_RANLIB="ranlib"
7793    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794    break 2
7795  fi
7796done
7797done
7798IFS=$as_save_IFS
7799
7800fi
7801fi
7802ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7803if test -n "$ac_ct_RANLIB"; then
7804  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7805$as_echo "$ac_ct_RANLIB" >&6; }
7806else
7807  { $as_echo "$as_me:$LINENO: result: no" >&5
7808$as_echo "no" >&6; }
7809fi
7810
7811  if test "x$ac_ct_RANLIB" = x; then
7812    RANLIB=":"
7813  else
7814    case $cross_compiling:$ac_tool_warned in
7815yes:)
7816{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7818ac_tool_warned=yes ;;
7819esac
7820    RANLIB=$ac_ct_RANLIB
7821  fi
7822else
7823  RANLIB="$ac_cv_prog_RANLIB"
7824fi
7825
7826test -z "$RANLIB" && RANLIB=:
7827
7828
7829
7830
7831
7832
7833# Determine commands to create old-style static archives.
7834old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7835old_postinstall_cmds='chmod 644 $oldlib'
7836old_postuninstall_cmds=
7837
7838if test -n "$RANLIB"; then
7839  case $host_os in
7840  openbsd*)
7841    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7842    ;;
7843  *)
7844    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7845    ;;
7846  esac
7847  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7848fi
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883# If no C compiler was specified, use CC.
7884LTCC=${LTCC-"$CC"}
7885
7886# If no C compiler flags were specified, use CFLAGS.
7887LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7888
7889# Allow CC to be a program name with arguments.
7890compiler=$CC
7891
7892
7893# Check for command to grab the raw symbol name followed by C symbol from nm.
7894{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7895$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7896if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7897  $as_echo_n "(cached) " >&6
7898else
7899
7900# These are sane defaults that work on at least a few old systems.
7901# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7902
7903# Character class describing NM global symbol codes.
7904symcode='[BCDEGRST]'
7905
7906# Regexp to match symbols that can be accessed directly from C.
7907sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7908
7909# Define system-specific variables.
7910case $host_os in
7911aix*)
7912  symcode='[BCDT]'
7913  ;;
7914cygwin* | mingw* | pw32* | cegcc*)
7915  symcode='[ABCDGISTW]'
7916  ;;
7917hpux*)
7918  if test "$host_cpu" = ia64; then
7919    symcode='[ABCDEGRST]'
7920  fi
7921  ;;
7922irix* | nonstopux*)
7923  symcode='[BCDEGRST]'
7924  ;;
7925osf*)
7926  symcode='[BCDEGQRST]'
7927  ;;
7928solaris*)
7929  symcode='[BDRT]'
7930  ;;
7931sco3.2v5*)
7932  symcode='[DT]'
7933  ;;
7934sysv4.2uw2*)
7935  symcode='[DT]'
7936  ;;
7937sysv5* | sco5v6* | unixware* | OpenUNIX*)
7938  symcode='[ABDT]'
7939  ;;
7940sysv4)
7941  symcode='[DFNSTU]'
7942  ;;
7943esac
7944
7945# If we're using GNU nm, then use its standard symbol codes.
7946case `$NM -V 2>&1` in
7947*GNU* | *'with BFD'*)
7948  symcode='[ABCDGIRSTW]' ;;
7949esac
7950
7951# Transform an extracted symbol line into a proper C declaration.
7952# Some systems (esp. on ia64) link data and code symbols differently,
7953# so use this general approach.
7954lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7955
7956# Transform an extracted symbol line into symbol name and symbol address
7957lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7958lt_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'"
7959
7960# Handle CRLF in mingw tool chain
7961opt_cr=
7962case $build_os in
7963mingw*)
7964  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7965  ;;
7966esac
7967
7968# Try without a prefix underscore, then with it.
7969for ac_symprfx in "" "_"; do
7970
7971  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7972  symxfrm="\\1 $ac_symprfx\\2 \\2"
7973
7974  # Write the raw and C identifiers.
7975  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7976    # Fake it for dumpbin and say T for any non-static function
7977    # and D for any global variable.
7978    # Also find C++ and __fastcall symbols from MSVC++,
7979    # which start with @ or ?.
7980    lt_cv_sys_global_symbol_pipe="$AWK '"\
7981"     {last_section=section; section=\$ 3};"\
7982"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7983"     \$ 0!~/External *\|/{next};"\
7984"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7985"     {if(hide[section]) next};"\
7986"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7987"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7988"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7989"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7990"     ' prfx=^$ac_symprfx"
7991  else
7992    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7993  fi
7994
7995  # Check to see that the pipe works correctly.
7996  pipe_works=no
7997
7998  rm -f conftest*
7999  cat > conftest.$ac_ext <<_LT_EOF
8000#ifdef __cplusplus
8001extern "C" {
8002#endif
8003char nm_test_var;
8004void nm_test_func(void);
8005void nm_test_func(void){}
8006#ifdef __cplusplus
8007}
8008#endif
8009int main(){nm_test_var='a';nm_test_func();return(0);}
8010_LT_EOF
8011
8012  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013  (eval $ac_compile) 2>&5
8014  ac_status=$?
8015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016  (exit $ac_status); }; then
8017    # Now try to grab the symbols.
8018    nlist=conftest.nm
8019    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8020  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8021  ac_status=$?
8022  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023  (exit $ac_status); } && test -s "$nlist"; then
8024      # Try sorting and uniquifying the output.
8025      if sort "$nlist" | uniq > "$nlist"T; then
8026	mv -f "$nlist"T "$nlist"
8027      else
8028	rm -f "$nlist"T
8029      fi
8030
8031      # Make sure that we snagged all the symbols we need.
8032      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8033	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8034	  cat <<_LT_EOF > conftest.$ac_ext
8035#ifdef __cplusplus
8036extern "C" {
8037#endif
8038
8039_LT_EOF
8040	  # Now generate the symbol file.
8041	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8042
8043	  cat <<_LT_EOF >> conftest.$ac_ext
8044
8045/* The mapping between symbol names and symbols.  */
8046const struct {
8047  const char *name;
8048  void       *address;
8049}
8050lt__PROGRAM__LTX_preloaded_symbols[] =
8051{
8052  { "@PROGRAM@", (void *) 0 },
8053_LT_EOF
8054	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8055	  cat <<\_LT_EOF >> conftest.$ac_ext
8056  {0, (void *) 0}
8057};
8058
8059/* This works around a problem in FreeBSD linker */
8060#ifdef FREEBSD_WORKAROUND
8061static const void *lt_preloaded_setup() {
8062  return lt__PROGRAM__LTX_preloaded_symbols;
8063}
8064#endif
8065
8066#ifdef __cplusplus
8067}
8068#endif
8069_LT_EOF
8070	  # Now try linking the two files.
8071	  mv conftest.$ac_objext conftstm.$ac_objext
8072	  lt_save_LIBS="$LIBS"
8073	  lt_save_CFLAGS="$CFLAGS"
8074	  LIBS="conftstm.$ac_objext"
8075	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8076	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077  (eval $ac_link) 2>&5
8078  ac_status=$?
8079  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8081	    pipe_works=yes
8082	  fi
8083	  LIBS="$lt_save_LIBS"
8084	  CFLAGS="$lt_save_CFLAGS"
8085	else
8086	  echo "cannot find nm_test_func in $nlist" >&5
8087	fi
8088      else
8089	echo "cannot find nm_test_var in $nlist" >&5
8090      fi
8091    else
8092      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8093    fi
8094  else
8095    echo "$progname: failed program was:" >&5
8096    cat conftest.$ac_ext >&5
8097  fi
8098  rm -rf conftest* conftst*
8099
8100  # Do not use the global_symbol_pipe unless it works.
8101  if test "$pipe_works" = yes; then
8102    break
8103  else
8104    lt_cv_sys_global_symbol_pipe=
8105  fi
8106done
8107
8108fi
8109
8110if test -z "$lt_cv_sys_global_symbol_pipe"; then
8111  lt_cv_sys_global_symbol_to_cdecl=
8112fi
8113if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8114  { $as_echo "$as_me:$LINENO: result: failed" >&5
8115$as_echo "failed" >&6; }
8116else
8117  { $as_echo "$as_me:$LINENO: result: ok" >&5
8118$as_echo "ok" >&6; }
8119fi
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142# Check whether --enable-libtool-lock was given.
8143if test "${enable_libtool_lock+set}" = set; then
8144  enableval=$enable_libtool_lock;
8145fi
8146
8147test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8148
8149# Some flags need to be propagated to the compiler or linker for good
8150# libtool support.
8151case $host in
8152ia64-*-hpux*)
8153  # Find out which ABI we are using.
8154  echo 'int i;' > conftest.$ac_ext
8155  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8156  (eval $ac_compile) 2>&5
8157  ac_status=$?
8158  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159  (exit $ac_status); }; then
8160    case `/usr/bin/file conftest.$ac_objext` in
8161      *ELF-32*)
8162	HPUX_IA64_MODE="32"
8163	;;
8164      *ELF-64*)
8165	HPUX_IA64_MODE="64"
8166	;;
8167    esac
8168  fi
8169  rm -rf conftest*
8170  ;;
8171*-*-irix6*)
8172  # Find out which ABI we are using.
8173  echo '#line 8173 "configure"' > conftest.$ac_ext
8174  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8175  (eval $ac_compile) 2>&5
8176  ac_status=$?
8177  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178  (exit $ac_status); }; then
8179    if test "$lt_cv_prog_gnu_ld" = yes; then
8180      case `/usr/bin/file conftest.$ac_objext` in
8181	*32-bit*)
8182	  LD="${LD-ld} -melf32bsmip"
8183	  ;;
8184	*N32*)
8185	  LD="${LD-ld} -melf32bmipn32"
8186	  ;;
8187	*64-bit*)
8188	  LD="${LD-ld} -melf64bmip"
8189	;;
8190      esac
8191    else
8192      case `/usr/bin/file conftest.$ac_objext` in
8193	*32-bit*)
8194	  LD="${LD-ld} -32"
8195	  ;;
8196	*N32*)
8197	  LD="${LD-ld} -n32"
8198	  ;;
8199	*64-bit*)
8200	  LD="${LD-ld} -64"
8201	  ;;
8202      esac
8203    fi
8204  fi
8205  rm -rf conftest*
8206  ;;
8207
8208x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8209s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8210  # Find out which ABI we are using.
8211  echo 'int i;' > conftest.$ac_ext
8212  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8213  (eval $ac_compile) 2>&5
8214  ac_status=$?
8215  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216  (exit $ac_status); }; then
8217    case `/usr/bin/file conftest.o` in
8218      *32-bit*)
8219	case $host in
8220	  x86_64-*kfreebsd*-gnu)
8221	    LD="${LD-ld} -m elf_i386_fbsd"
8222	    ;;
8223	  x86_64-*linux*)
8224	    LD="${LD-ld} -m elf_i386"
8225	    ;;
8226	  ppc64-*linux*|powerpc64-*linux*)
8227	    LD="${LD-ld} -m elf32ppclinux"
8228	    ;;
8229	  s390x-*linux*)
8230	    LD="${LD-ld} -m elf_s390"
8231	    ;;
8232	  sparc64-*linux*)
8233	    LD="${LD-ld} -m elf32_sparc"
8234	    ;;
8235	esac
8236	;;
8237      *64-bit*)
8238	case $host in
8239	  x86_64-*kfreebsd*-gnu)
8240	    LD="${LD-ld} -m elf_x86_64_fbsd"
8241	    ;;
8242	  x86_64-*linux*)
8243	    LD="${LD-ld} -m elf_x86_64"
8244	    ;;
8245	  ppc*-*linux*|powerpc*-*linux*)
8246	    LD="${LD-ld} -m elf64ppc"
8247	    ;;
8248	  s390*-*linux*|s390*-*tpf*)
8249	    LD="${LD-ld} -m elf64_s390"
8250	    ;;
8251	  sparc*-*linux*)
8252	    LD="${LD-ld} -m elf64_sparc"
8253	    ;;
8254	esac
8255	;;
8256    esac
8257  fi
8258  rm -rf conftest*
8259  ;;
8260
8261*-*-sco3.2v5*)
8262  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8263  SAVE_CFLAGS="$CFLAGS"
8264  CFLAGS="$CFLAGS -belf"
8265  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8266$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8267if test "${lt_cv_cc_needs_belf+set}" = set; then
8268  $as_echo_n "(cached) " >&6
8269else
8270  ac_ext=c
8271ac_cpp='$CPP $CPPFLAGS'
8272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275
8276     cat >conftest.$ac_ext <<_ACEOF
8277/* confdefs.h.  */
8278_ACEOF
8279cat confdefs.h >>conftest.$ac_ext
8280cat >>conftest.$ac_ext <<_ACEOF
8281/* end confdefs.h.  */
8282
8283int
8284main ()
8285{
8286
8287  ;
8288  return 0;
8289}
8290_ACEOF
8291rm -f conftest.$ac_objext conftest$ac_exeext
8292if { (ac_try="$ac_link"
8293case "(($ac_try" in
8294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295  *) ac_try_echo=$ac_try;;
8296esac
8297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8298$as_echo "$ac_try_echo") >&5
8299  (eval "$ac_link") 2>conftest.er1
8300  ac_status=$?
8301  grep -v '^ *+' conftest.er1 >conftest.err
8302  rm -f conftest.er1
8303  cat conftest.err >&5
8304  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305  (exit $ac_status); } && {
8306	 test -z "$ac_c_werror_flag" ||
8307	 test ! -s conftest.err
8308       } && test -s conftest$ac_exeext && {
8309	 test "$cross_compiling" = yes ||
8310	 $as_test_x conftest$ac_exeext
8311       }; then
8312  lt_cv_cc_needs_belf=yes
8313else
8314  $as_echo "$as_me: failed program was:" >&5
8315sed 's/^/| /' conftest.$ac_ext >&5
8316
8317	lt_cv_cc_needs_belf=no
8318fi
8319
8320rm -rf conftest.dSYM
8321rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8322      conftest$ac_exeext conftest.$ac_ext
8323     ac_ext=c
8324ac_cpp='$CPP $CPPFLAGS'
8325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8327ac_compiler_gnu=$ac_cv_c_compiler_gnu
8328
8329fi
8330{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8331$as_echo "$lt_cv_cc_needs_belf" >&6; }
8332  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8333    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8334    CFLAGS="$SAVE_CFLAGS"
8335  fi
8336  ;;
8337sparc*-*solaris*)
8338  # Find out which ABI we are using.
8339  echo 'int i;' > conftest.$ac_ext
8340  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341  (eval $ac_compile) 2>&5
8342  ac_status=$?
8343  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344  (exit $ac_status); }; then
8345    case `/usr/bin/file conftest.o` in
8346    *64-bit*)
8347      case $lt_cv_prog_gnu_ld in
8348      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8349      *)
8350	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8351	  LD="${LD-ld} -64"
8352	fi
8353	;;
8354      esac
8355      ;;
8356    esac
8357  fi
8358  rm -rf conftest*
8359  ;;
8360esac
8361
8362need_locks="$enable_libtool_lock"
8363
8364
8365  case $host_os in
8366    rhapsody* | darwin*)
8367    if test -n "$ac_tool_prefix"; then
8368  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8369set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8370{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8371$as_echo_n "checking for $ac_word... " >&6; }
8372if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8373  $as_echo_n "(cached) " >&6
8374else
8375  if test -n "$DSYMUTIL"; then
8376  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8377else
8378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381  IFS=$as_save_IFS
8382  test -z "$as_dir" && as_dir=.
8383  for ac_exec_ext in '' $ac_executable_extensions; do
8384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8385    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8386    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8387    break 2
8388  fi
8389done
8390done
8391IFS=$as_save_IFS
8392
8393fi
8394fi
8395DSYMUTIL=$ac_cv_prog_DSYMUTIL
8396if test -n "$DSYMUTIL"; then
8397  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8398$as_echo "$DSYMUTIL" >&6; }
8399else
8400  { $as_echo "$as_me:$LINENO: result: no" >&5
8401$as_echo "no" >&6; }
8402fi
8403
8404
8405fi
8406if test -z "$ac_cv_prog_DSYMUTIL"; then
8407  ac_ct_DSYMUTIL=$DSYMUTIL
8408  # Extract the first word of "dsymutil", so it can be a program name with args.
8409set dummy dsymutil; ac_word=$2
8410{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8411$as_echo_n "checking for $ac_word... " >&6; }
8412if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8413  $as_echo_n "(cached) " >&6
8414else
8415  if test -n "$ac_ct_DSYMUTIL"; then
8416  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8417else
8418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419for as_dir in $PATH
8420do
8421  IFS=$as_save_IFS
8422  test -z "$as_dir" && as_dir=.
8423  for ac_exec_ext in '' $ac_executable_extensions; do
8424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8425    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8426    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8427    break 2
8428  fi
8429done
8430done
8431IFS=$as_save_IFS
8432
8433fi
8434fi
8435ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8436if test -n "$ac_ct_DSYMUTIL"; then
8437  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8438$as_echo "$ac_ct_DSYMUTIL" >&6; }
8439else
8440  { $as_echo "$as_me:$LINENO: result: no" >&5
8441$as_echo "no" >&6; }
8442fi
8443
8444  if test "x$ac_ct_DSYMUTIL" = x; then
8445    DSYMUTIL=":"
8446  else
8447    case $cross_compiling:$ac_tool_warned in
8448yes:)
8449{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8451ac_tool_warned=yes ;;
8452esac
8453    DSYMUTIL=$ac_ct_DSYMUTIL
8454  fi
8455else
8456  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8457fi
8458
8459    if test -n "$ac_tool_prefix"; then
8460  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8461set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8463$as_echo_n "checking for $ac_word... " >&6; }
8464if test "${ac_cv_prog_NMEDIT+set}" = set; then
8465  $as_echo_n "(cached) " >&6
8466else
8467  if test -n "$NMEDIT"; then
8468  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8469else
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473  IFS=$as_save_IFS
8474  test -z "$as_dir" && as_dir=.
8475  for ac_exec_ext in '' $ac_executable_extensions; do
8476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8477    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8478    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8479    break 2
8480  fi
8481done
8482done
8483IFS=$as_save_IFS
8484
8485fi
8486fi
8487NMEDIT=$ac_cv_prog_NMEDIT
8488if test -n "$NMEDIT"; then
8489  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8490$as_echo "$NMEDIT" >&6; }
8491else
8492  { $as_echo "$as_me:$LINENO: result: no" >&5
8493$as_echo "no" >&6; }
8494fi
8495
8496
8497fi
8498if test -z "$ac_cv_prog_NMEDIT"; then
8499  ac_ct_NMEDIT=$NMEDIT
8500  # Extract the first word of "nmedit", so it can be a program name with args.
8501set dummy nmedit; ac_word=$2
8502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8503$as_echo_n "checking for $ac_word... " >&6; }
8504if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8505  $as_echo_n "(cached) " >&6
8506else
8507  if test -n "$ac_ct_NMEDIT"; then
8508  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8509else
8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511for as_dir in $PATH
8512do
8513  IFS=$as_save_IFS
8514  test -z "$as_dir" && as_dir=.
8515  for ac_exec_ext in '' $ac_executable_extensions; do
8516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8517    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8518    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8519    break 2
8520  fi
8521done
8522done
8523IFS=$as_save_IFS
8524
8525fi
8526fi
8527ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8528if test -n "$ac_ct_NMEDIT"; then
8529  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8530$as_echo "$ac_ct_NMEDIT" >&6; }
8531else
8532  { $as_echo "$as_me:$LINENO: result: no" >&5
8533$as_echo "no" >&6; }
8534fi
8535
8536  if test "x$ac_ct_NMEDIT" = x; then
8537    NMEDIT=":"
8538  else
8539    case $cross_compiling:$ac_tool_warned in
8540yes:)
8541{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8543ac_tool_warned=yes ;;
8544esac
8545    NMEDIT=$ac_ct_NMEDIT
8546  fi
8547else
8548  NMEDIT="$ac_cv_prog_NMEDIT"
8549fi
8550
8551    if test -n "$ac_tool_prefix"; then
8552  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8553set dummy ${ac_tool_prefix}lipo; ac_word=$2
8554{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8555$as_echo_n "checking for $ac_word... " >&6; }
8556if test "${ac_cv_prog_LIPO+set}" = set; then
8557  $as_echo_n "(cached) " >&6
8558else
8559  if test -n "$LIPO"; then
8560  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8561else
8562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563for as_dir in $PATH
8564do
8565  IFS=$as_save_IFS
8566  test -z "$as_dir" && as_dir=.
8567  for ac_exec_ext in '' $ac_executable_extensions; do
8568  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8570    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8571    break 2
8572  fi
8573done
8574done
8575IFS=$as_save_IFS
8576
8577fi
8578fi
8579LIPO=$ac_cv_prog_LIPO
8580if test -n "$LIPO"; then
8581  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8582$as_echo "$LIPO" >&6; }
8583else
8584  { $as_echo "$as_me:$LINENO: result: no" >&5
8585$as_echo "no" >&6; }
8586fi
8587
8588
8589fi
8590if test -z "$ac_cv_prog_LIPO"; then
8591  ac_ct_LIPO=$LIPO
8592  # Extract the first word of "lipo", so it can be a program name with args.
8593set dummy lipo; ac_word=$2
8594{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8595$as_echo_n "checking for $ac_word... " >&6; }
8596if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8597  $as_echo_n "(cached) " >&6
8598else
8599  if test -n "$ac_ct_LIPO"; then
8600  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8601else
8602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603for as_dir in $PATH
8604do
8605  IFS=$as_save_IFS
8606  test -z "$as_dir" && as_dir=.
8607  for ac_exec_ext in '' $ac_executable_extensions; do
8608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8609    ac_cv_prog_ac_ct_LIPO="lipo"
8610    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8611    break 2
8612  fi
8613done
8614done
8615IFS=$as_save_IFS
8616
8617fi
8618fi
8619ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8620if test -n "$ac_ct_LIPO"; then
8621  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8622$as_echo "$ac_ct_LIPO" >&6; }
8623else
8624  { $as_echo "$as_me:$LINENO: result: no" >&5
8625$as_echo "no" >&6; }
8626fi
8627
8628  if test "x$ac_ct_LIPO" = x; then
8629    LIPO=":"
8630  else
8631    case $cross_compiling:$ac_tool_warned in
8632yes:)
8633{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8635ac_tool_warned=yes ;;
8636esac
8637    LIPO=$ac_ct_LIPO
8638  fi
8639else
8640  LIPO="$ac_cv_prog_LIPO"
8641fi
8642
8643    if test -n "$ac_tool_prefix"; then
8644  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8645set dummy ${ac_tool_prefix}otool; ac_word=$2
8646{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8647$as_echo_n "checking for $ac_word... " >&6; }
8648if test "${ac_cv_prog_OTOOL+set}" = set; then
8649  $as_echo_n "(cached) " >&6
8650else
8651  if test -n "$OTOOL"; then
8652  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8653else
8654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655for as_dir in $PATH
8656do
8657  IFS=$as_save_IFS
8658  test -z "$as_dir" && as_dir=.
8659  for ac_exec_ext in '' $ac_executable_extensions; do
8660  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8662    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8663    break 2
8664  fi
8665done
8666done
8667IFS=$as_save_IFS
8668
8669fi
8670fi
8671OTOOL=$ac_cv_prog_OTOOL
8672if test -n "$OTOOL"; then
8673  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8674$as_echo "$OTOOL" >&6; }
8675else
8676  { $as_echo "$as_me:$LINENO: result: no" >&5
8677$as_echo "no" >&6; }
8678fi
8679
8680
8681fi
8682if test -z "$ac_cv_prog_OTOOL"; then
8683  ac_ct_OTOOL=$OTOOL
8684  # Extract the first word of "otool", so it can be a program name with args.
8685set dummy otool; ac_word=$2
8686{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8687$as_echo_n "checking for $ac_word... " >&6; }
8688if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8689  $as_echo_n "(cached) " >&6
8690else
8691  if test -n "$ac_ct_OTOOL"; then
8692  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8693else
8694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695for as_dir in $PATH
8696do
8697  IFS=$as_save_IFS
8698  test -z "$as_dir" && as_dir=.
8699  for ac_exec_ext in '' $ac_executable_extensions; do
8700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8701    ac_cv_prog_ac_ct_OTOOL="otool"
8702    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8703    break 2
8704  fi
8705done
8706done
8707IFS=$as_save_IFS
8708
8709fi
8710fi
8711ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8712if test -n "$ac_ct_OTOOL"; then
8713  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8714$as_echo "$ac_ct_OTOOL" >&6; }
8715else
8716  { $as_echo "$as_me:$LINENO: result: no" >&5
8717$as_echo "no" >&6; }
8718fi
8719
8720  if test "x$ac_ct_OTOOL" = x; then
8721    OTOOL=":"
8722  else
8723    case $cross_compiling:$ac_tool_warned in
8724yes:)
8725{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8727ac_tool_warned=yes ;;
8728esac
8729    OTOOL=$ac_ct_OTOOL
8730  fi
8731else
8732  OTOOL="$ac_cv_prog_OTOOL"
8733fi
8734
8735    if test -n "$ac_tool_prefix"; then
8736  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8737set dummy ${ac_tool_prefix}otool64; ac_word=$2
8738{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8739$as_echo_n "checking for $ac_word... " >&6; }
8740if test "${ac_cv_prog_OTOOL64+set}" = set; then
8741  $as_echo_n "(cached) " >&6
8742else
8743  if test -n "$OTOOL64"; then
8744  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8745else
8746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747for as_dir in $PATH
8748do
8749  IFS=$as_save_IFS
8750  test -z "$as_dir" && as_dir=.
8751  for ac_exec_ext in '' $ac_executable_extensions; do
8752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8753    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8754    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8755    break 2
8756  fi
8757done
8758done
8759IFS=$as_save_IFS
8760
8761fi
8762fi
8763OTOOL64=$ac_cv_prog_OTOOL64
8764if test -n "$OTOOL64"; then
8765  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8766$as_echo "$OTOOL64" >&6; }
8767else
8768  { $as_echo "$as_me:$LINENO: result: no" >&5
8769$as_echo "no" >&6; }
8770fi
8771
8772
8773fi
8774if test -z "$ac_cv_prog_OTOOL64"; then
8775  ac_ct_OTOOL64=$OTOOL64
8776  # Extract the first word of "otool64", so it can be a program name with args.
8777set dummy otool64; ac_word=$2
8778{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8779$as_echo_n "checking for $ac_word... " >&6; }
8780if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8781  $as_echo_n "(cached) " >&6
8782else
8783  if test -n "$ac_ct_OTOOL64"; then
8784  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8785else
8786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787for as_dir in $PATH
8788do
8789  IFS=$as_save_IFS
8790  test -z "$as_dir" && as_dir=.
8791  for ac_exec_ext in '' $ac_executable_extensions; do
8792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8793    ac_cv_prog_ac_ct_OTOOL64="otool64"
8794    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8795    break 2
8796  fi
8797done
8798done
8799IFS=$as_save_IFS
8800
8801fi
8802fi
8803ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8804if test -n "$ac_ct_OTOOL64"; then
8805  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8806$as_echo "$ac_ct_OTOOL64" >&6; }
8807else
8808  { $as_echo "$as_me:$LINENO: result: no" >&5
8809$as_echo "no" >&6; }
8810fi
8811
8812  if test "x$ac_ct_OTOOL64" = x; then
8813    OTOOL64=":"
8814  else
8815    case $cross_compiling:$ac_tool_warned in
8816yes:)
8817{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8819ac_tool_warned=yes ;;
8820esac
8821    OTOOL64=$ac_ct_OTOOL64
8822  fi
8823else
8824  OTOOL64="$ac_cv_prog_OTOOL64"
8825fi
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8854$as_echo_n "checking for -single_module linker flag... " >&6; }
8855if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8856  $as_echo_n "(cached) " >&6
8857else
8858  lt_cv_apple_cc_single_mod=no
8859      if test -z "${LT_MULTI_MODULE}"; then
8860	# By default we will add the -single_module flag. You can override
8861	# by either setting the environment variable LT_MULTI_MODULE
8862	# non-empty at configure time, or by adding -multi_module to the
8863	# link flags.
8864	rm -rf libconftest.dylib*
8865	echo "int foo(void){return 1;}" > conftest.c
8866	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8867-dynamiclib -Wl,-single_module conftest.c" >&5
8868	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8869	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8870        _lt_result=$?
8871	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8872	  lt_cv_apple_cc_single_mod=yes
8873	else
8874	  cat conftest.err >&5
8875	fi
8876	rm -rf libconftest.dylib*
8877	rm -f conftest.*
8878      fi
8879fi
8880{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8881$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8882    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8883$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8884if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8885  $as_echo_n "(cached) " >&6
8886else
8887  lt_cv_ld_exported_symbols_list=no
8888      save_LDFLAGS=$LDFLAGS
8889      echo "_main" > conftest.sym
8890      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8891      cat >conftest.$ac_ext <<_ACEOF
8892/* confdefs.h.  */
8893_ACEOF
8894cat confdefs.h >>conftest.$ac_ext
8895cat >>conftest.$ac_ext <<_ACEOF
8896/* end confdefs.h.  */
8897
8898int
8899main ()
8900{
8901
8902  ;
8903  return 0;
8904}
8905_ACEOF
8906rm -f conftest.$ac_objext conftest$ac_exeext
8907if { (ac_try="$ac_link"
8908case "(($ac_try" in
8909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910  *) ac_try_echo=$ac_try;;
8911esac
8912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8913$as_echo "$ac_try_echo") >&5
8914  (eval "$ac_link") 2>conftest.er1
8915  ac_status=$?
8916  grep -v '^ *+' conftest.er1 >conftest.err
8917  rm -f conftest.er1
8918  cat conftest.err >&5
8919  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920  (exit $ac_status); } && {
8921	 test -z "$ac_c_werror_flag" ||
8922	 test ! -s conftest.err
8923       } && test -s conftest$ac_exeext && {
8924	 test "$cross_compiling" = yes ||
8925	 $as_test_x conftest$ac_exeext
8926       }; then
8927  lt_cv_ld_exported_symbols_list=yes
8928else
8929  $as_echo "$as_me: failed program was:" >&5
8930sed 's/^/| /' conftest.$ac_ext >&5
8931
8932	lt_cv_ld_exported_symbols_list=no
8933fi
8934
8935rm -rf conftest.dSYM
8936rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8937      conftest$ac_exeext conftest.$ac_ext
8938	LDFLAGS="$save_LDFLAGS"
8939
8940fi
8941{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8942$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8943    case $host_os in
8944    rhapsody* | darwin1.[012])
8945      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8946    darwin1.*)
8947      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8948    darwin*) # darwin 5.x on
8949      # if running on 10.5 or later, the deployment target defaults
8950      # to the OS version, if on x86, and 10.4, the deployment
8951      # target defaults to 10.4. Don't you love it?
8952      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8953	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8954	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8955	10.[012]*)
8956	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8957	10.*)
8958	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8959      esac
8960    ;;
8961  esac
8962    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8963      _lt_dar_single_mod='$single_module'
8964    fi
8965    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8966      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8967    else
8968      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8969    fi
8970    if test "$DSYMUTIL" != ":"; then
8971      _lt_dsymutil='~$DSYMUTIL $lib || :'
8972    else
8973      _lt_dsymutil=
8974    fi
8975    ;;
8976  esac
8977
8978# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8989		  inttypes.h stdint.h unistd.h
8990do
8991as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8992{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8993$as_echo_n "checking for $ac_header... " >&6; }
8994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8995  $as_echo_n "(cached) " >&6
8996else
8997  cat >conftest.$ac_ext <<_ACEOF
8998/* confdefs.h.  */
8999_ACEOF
9000cat confdefs.h >>conftest.$ac_ext
9001cat >>conftest.$ac_ext <<_ACEOF
9002/* end confdefs.h.  */
9003$ac_includes_default
9004
9005#include <$ac_header>
9006_ACEOF
9007rm -f conftest.$ac_objext
9008if { (ac_try="$ac_compile"
9009case "(($ac_try" in
9010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011  *) ac_try_echo=$ac_try;;
9012esac
9013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9014$as_echo "$ac_try_echo") >&5
9015  (eval "$ac_compile") 2>conftest.er1
9016  ac_status=$?
9017  grep -v '^ *+' conftest.er1 >conftest.err
9018  rm -f conftest.er1
9019  cat conftest.err >&5
9020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021  (exit $ac_status); } && {
9022	 test -z "$ac_c_werror_flag" ||
9023	 test ! -s conftest.err
9024       } && test -s conftest.$ac_objext; then
9025  eval "$as_ac_Header=yes"
9026else
9027  $as_echo "$as_me: failed program was:" >&5
9028sed 's/^/| /' conftest.$ac_ext >&5
9029
9030	eval "$as_ac_Header=no"
9031fi
9032
9033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034fi
9035ac_res=`eval 'as_val=${'$as_ac_Header'}
9036		 $as_echo "$as_val"'`
9037	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9038$as_echo "$ac_res" >&6; }
9039as_val=`eval 'as_val=${'$as_ac_Header'}
9040		 $as_echo "$as_val"'`
9041   if test "x$as_val" = x""yes; then
9042  cat >>confdefs.h <<_ACEOF
9043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9044_ACEOF
9045
9046fi
9047
9048done
9049
9050
9051
9052for ac_header in dlfcn.h
9053do
9054as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9055{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9056$as_echo_n "checking for $ac_header... " >&6; }
9057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9058  $as_echo_n "(cached) " >&6
9059else
9060  cat >conftest.$ac_ext <<_ACEOF
9061/* confdefs.h.  */
9062_ACEOF
9063cat confdefs.h >>conftest.$ac_ext
9064cat >>conftest.$ac_ext <<_ACEOF
9065/* end confdefs.h.  */
9066$ac_includes_default
9067
9068#include <$ac_header>
9069_ACEOF
9070rm -f conftest.$ac_objext
9071if { (ac_try="$ac_compile"
9072case "(($ac_try" in
9073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074  *) ac_try_echo=$ac_try;;
9075esac
9076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9077$as_echo "$ac_try_echo") >&5
9078  (eval "$ac_compile") 2>conftest.er1
9079  ac_status=$?
9080  grep -v '^ *+' conftest.er1 >conftest.err
9081  rm -f conftest.er1
9082  cat conftest.err >&5
9083  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084  (exit $ac_status); } && {
9085	 test -z "$ac_c_werror_flag" ||
9086	 test ! -s conftest.err
9087       } && test -s conftest.$ac_objext; then
9088  eval "$as_ac_Header=yes"
9089else
9090  $as_echo "$as_me: failed program was:" >&5
9091sed 's/^/| /' conftest.$ac_ext >&5
9092
9093	eval "$as_ac_Header=no"
9094fi
9095
9096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097fi
9098ac_res=`eval 'as_val=${'$as_ac_Header'}
9099		 $as_echo "$as_val"'`
9100	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9101$as_echo "$ac_res" >&6; }
9102as_val=`eval 'as_val=${'$as_ac_Header'}
9103		 $as_echo "$as_val"'`
9104   if test "x$as_val" = x""yes; then
9105  cat >>confdefs.h <<_ACEOF
9106#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9107_ACEOF
9108
9109fi
9110
9111done
9112
9113
9114
9115# Set options
9116
9117
9118
9119        enable_dlopen=no
9120
9121
9122  enable_win32_dll=no
9123
9124
9125            # Check whether --enable-shared was given.
9126if test "${enable_shared+set}" = set; then
9127  enableval=$enable_shared; p=${PACKAGE-default}
9128    case $enableval in
9129    yes) enable_shared=yes ;;
9130    no) enable_shared=no ;;
9131    *)
9132      enable_shared=no
9133      # Look at the argument we got.  We use all the common list separators.
9134      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9135      for pkg in $enableval; do
9136	IFS="$lt_save_ifs"
9137	if test "X$pkg" = "X$p"; then
9138	  enable_shared=yes
9139	fi
9140      done
9141      IFS="$lt_save_ifs"
9142      ;;
9143    esac
9144else
9145  enable_shared=yes
9146fi
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156  # Check whether --enable-static was given.
9157if test "${enable_static+set}" = set; then
9158  enableval=$enable_static; p=${PACKAGE-default}
9159    case $enableval in
9160    yes) enable_static=yes ;;
9161    no) enable_static=no ;;
9162    *)
9163     enable_static=no
9164      # Look at the argument we got.  We use all the common list separators.
9165      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9166      for pkg in $enableval; do
9167	IFS="$lt_save_ifs"
9168	if test "X$pkg" = "X$p"; then
9169	  enable_static=yes
9170	fi
9171      done
9172      IFS="$lt_save_ifs"
9173      ;;
9174    esac
9175else
9176  enable_static=yes
9177fi
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188# Check whether --with-pic was given.
9189if test "${with_pic+set}" = set; then
9190  withval=$with_pic; pic_mode="$withval"
9191else
9192  pic_mode=default
9193fi
9194
9195
9196test -z "$pic_mode" && pic_mode=default
9197
9198
9199
9200
9201
9202
9203
9204  # Check whether --enable-fast-install was given.
9205if test "${enable_fast_install+set}" = set; then
9206  enableval=$enable_fast_install; p=${PACKAGE-default}
9207    case $enableval in
9208    yes) enable_fast_install=yes ;;
9209    no) enable_fast_install=no ;;
9210    *)
9211      enable_fast_install=no
9212      # Look at the argument we got.  We use all the common list separators.
9213      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9214      for pkg in $enableval; do
9215	IFS="$lt_save_ifs"
9216	if test "X$pkg" = "X$p"; then
9217	  enable_fast_install=yes
9218	fi
9219      done
9220      IFS="$lt_save_ifs"
9221      ;;
9222    esac
9223else
9224  enable_fast_install=yes
9225fi
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237# This can be used to rebuild libtool when needed
9238LIBTOOL_DEPS="$ltmain"
9239
9240# Always use our own libtool.
9241LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267test -z "$LN_S" && LN_S="ln -s"
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282if test -n "${ZSH_VERSION+set}" ; then
9283   setopt NO_GLOB_SUBST
9284fi
9285
9286{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
9287$as_echo_n "checking for objdir... " >&6; }
9288if test "${lt_cv_objdir+set}" = set; then
9289  $as_echo_n "(cached) " >&6
9290else
9291  rm -f .libs 2>/dev/null
9292mkdir .libs 2>/dev/null
9293if test -d .libs; then
9294  lt_cv_objdir=.libs
9295else
9296  # MS-DOS does not allow filenames that begin with a dot.
9297  lt_cv_objdir=_libs
9298fi
9299rmdir .libs 2>/dev/null
9300fi
9301{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9302$as_echo "$lt_cv_objdir" >&6; }
9303objdir=$lt_cv_objdir
9304
9305
9306
9307
9308
9309cat >>confdefs.h <<_ACEOF
9310#define LT_OBJDIR "$lt_cv_objdir/"
9311_ACEOF
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329case $host_os in
9330aix3*)
9331  # AIX sometimes has problems with the GCC collect2 program.  For some
9332  # reason, if we set the COLLECT_NAMES environment variable, the problems
9333  # vanish in a puff of smoke.
9334  if test "X${COLLECT_NAMES+set}" != Xset; then
9335    COLLECT_NAMES=
9336    export COLLECT_NAMES
9337  fi
9338  ;;
9339esac
9340
9341# Sed substitution that helps us do robust quoting.  It backslashifies
9342# metacharacters that are still active within double-quoted strings.
9343sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9344
9345# Same as above, but do not quote variable references.
9346double_quote_subst='s/\(["`\\]\)/\\\1/g'
9347
9348# Sed substitution to delay expansion of an escaped shell variable in a
9349# double_quote_subst'ed string.
9350delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9351
9352# Sed substitution to delay expansion of an escaped single quote.
9353delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9354
9355# Sed substitution to avoid accidental globbing in evaled expressions
9356no_glob_subst='s/\*/\\\*/g'
9357
9358# Global variables:
9359ofile=libtool
9360can_build_shared=yes
9361
9362# All known linkers require a `.a' archive for static linking (except MSVC,
9363# which needs '.lib').
9364libext=a
9365
9366with_gnu_ld="$lt_cv_prog_gnu_ld"
9367
9368old_CC="$CC"
9369old_CFLAGS="$CFLAGS"
9370
9371# Set sane defaults for various variables
9372test -z "$CC" && CC=cc
9373test -z "$LTCC" && LTCC=$CC
9374test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9375test -z "$LD" && LD=ld
9376test -z "$ac_objext" && ac_objext=o
9377
9378for cc_temp in $compiler""; do
9379  case $cc_temp in
9380    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9381    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9382    \-*) ;;
9383    *) break;;
9384  esac
9385done
9386cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9387
9388
9389# Only perform the check for file, if the check method requires it
9390test -z "$MAGIC_CMD" && MAGIC_CMD=file
9391case $deplibs_check_method in
9392file_magic*)
9393  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9394    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9395$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9396if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9397  $as_echo_n "(cached) " >&6
9398else
9399  case $MAGIC_CMD in
9400[\\/*] |  ?:[\\/]*)
9401  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9402  ;;
9403*)
9404  lt_save_MAGIC_CMD="$MAGIC_CMD"
9405  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9406  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9407  for ac_dir in $ac_dummy; do
9408    IFS="$lt_save_ifs"
9409    test -z "$ac_dir" && ac_dir=.
9410    if test -f $ac_dir/${ac_tool_prefix}file; then
9411      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9412      if test -n "$file_magic_test_file"; then
9413	case $deplibs_check_method in
9414	"file_magic "*)
9415	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9416	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9417	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9418	    $EGREP "$file_magic_regex" > /dev/null; then
9419	    :
9420	  else
9421	    cat <<_LT_EOF 1>&2
9422
9423*** Warning: the command libtool uses to detect shared libraries,
9424*** $file_magic_cmd, produces output that libtool cannot recognize.
9425*** The result is that libtool may fail to recognize shared libraries
9426*** as such.  This will affect the creation of libtool libraries that
9427*** depend on shared libraries, but programs linked with such libtool
9428*** libraries will work regardless of this problem.  Nevertheless, you
9429*** may want to report the problem to your system manager and/or to
9430*** bug-libtool@gnu.org
9431
9432_LT_EOF
9433	  fi ;;
9434	esac
9435      fi
9436      break
9437    fi
9438  done
9439  IFS="$lt_save_ifs"
9440  MAGIC_CMD="$lt_save_MAGIC_CMD"
9441  ;;
9442esac
9443fi
9444
9445MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9446if test -n "$MAGIC_CMD"; then
9447  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9448$as_echo "$MAGIC_CMD" >&6; }
9449else
9450  { $as_echo "$as_me:$LINENO: result: no" >&5
9451$as_echo "no" >&6; }
9452fi
9453
9454
9455
9456
9457
9458if test -z "$lt_cv_path_MAGIC_CMD"; then
9459  if test -n "$ac_tool_prefix"; then
9460    { $as_echo "$as_me:$LINENO: checking for file" >&5
9461$as_echo_n "checking for file... " >&6; }
9462if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9463  $as_echo_n "(cached) " >&6
9464else
9465  case $MAGIC_CMD in
9466[\\/*] |  ?:[\\/]*)
9467  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9468  ;;
9469*)
9470  lt_save_MAGIC_CMD="$MAGIC_CMD"
9471  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9472  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9473  for ac_dir in $ac_dummy; do
9474    IFS="$lt_save_ifs"
9475    test -z "$ac_dir" && ac_dir=.
9476    if test -f $ac_dir/file; then
9477      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9478      if test -n "$file_magic_test_file"; then
9479	case $deplibs_check_method in
9480	"file_magic "*)
9481	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9482	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9483	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9484	    $EGREP "$file_magic_regex" > /dev/null; then
9485	    :
9486	  else
9487	    cat <<_LT_EOF 1>&2
9488
9489*** Warning: the command libtool uses to detect shared libraries,
9490*** $file_magic_cmd, produces output that libtool cannot recognize.
9491*** The result is that libtool may fail to recognize shared libraries
9492*** as such.  This will affect the creation of libtool libraries that
9493*** depend on shared libraries, but programs linked with such libtool
9494*** libraries will work regardless of this problem.  Nevertheless, you
9495*** may want to report the problem to your system manager and/or to
9496*** bug-libtool@gnu.org
9497
9498_LT_EOF
9499	  fi ;;
9500	esac
9501      fi
9502      break
9503    fi
9504  done
9505  IFS="$lt_save_ifs"
9506  MAGIC_CMD="$lt_save_MAGIC_CMD"
9507  ;;
9508esac
9509fi
9510
9511MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9512if test -n "$MAGIC_CMD"; then
9513  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9514$as_echo "$MAGIC_CMD" >&6; }
9515else
9516  { $as_echo "$as_me:$LINENO: result: no" >&5
9517$as_echo "no" >&6; }
9518fi
9519
9520
9521  else
9522    MAGIC_CMD=:
9523  fi
9524fi
9525
9526  fi
9527  ;;
9528esac
9529
9530# Use C for the default configuration in the libtool script
9531
9532lt_save_CC="$CC"
9533ac_ext=c
9534ac_cpp='$CPP $CPPFLAGS'
9535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9537ac_compiler_gnu=$ac_cv_c_compiler_gnu
9538
9539
9540# Source file extension for C test sources.
9541ac_ext=c
9542
9543# Object file extension for compiled C test sources.
9544objext=o
9545objext=$objext
9546
9547# Code to be used in simple compile tests
9548lt_simple_compile_test_code="int some_variable = 0;"
9549
9550# Code to be used in simple link tests
9551lt_simple_link_test_code='int main(){return(0);}'
9552
9553
9554
9555
9556
9557
9558
9559# If no C compiler was specified, use CC.
9560LTCC=${LTCC-"$CC"}
9561
9562# If no C compiler flags were specified, use CFLAGS.
9563LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9564
9565# Allow CC to be a program name with arguments.
9566compiler=$CC
9567
9568# Save the default compiler, since it gets overwritten when the other
9569# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9570compiler_DEFAULT=$CC
9571
9572# save warnings/boilerplate of simple test code
9573ac_outfile=conftest.$ac_objext
9574echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9575eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9576_lt_compiler_boilerplate=`cat conftest.err`
9577$RM conftest*
9578
9579ac_outfile=conftest.$ac_objext
9580echo "$lt_simple_link_test_code" >conftest.$ac_ext
9581eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9582_lt_linker_boilerplate=`cat conftest.err`
9583$RM -r conftest*
9584
9585
9586if test -n "$compiler"; then
9587
9588lt_prog_compiler_no_builtin_flag=
9589
9590if test "$GCC" = yes; then
9591  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9592
9593  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9594$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9595if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9596  $as_echo_n "(cached) " >&6
9597else
9598  lt_cv_prog_compiler_rtti_exceptions=no
9599   ac_outfile=conftest.$ac_objext
9600   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9601   lt_compiler_flag="-fno-rtti -fno-exceptions"
9602   # Insert the option either (1) after the last *FLAGS variable, or
9603   # (2) before a word containing "conftest.", or (3) at the end.
9604   # Note that $ac_compile itself does not contain backslashes and begins
9605   # with a dollar sign (not a hyphen), so the echo should work correctly.
9606   # The option is referenced via a variable to avoid confusing sed.
9607   lt_compile=`echo "$ac_compile" | $SED \
9608   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9609   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9610   -e 's:$: $lt_compiler_flag:'`
9611   (eval echo "\"\$as_me:9611: $lt_compile\"" >&5)
9612   (eval "$lt_compile" 2>conftest.err)
9613   ac_status=$?
9614   cat conftest.err >&5
9615   echo "$as_me:9615: \$? = $ac_status" >&5
9616   if (exit $ac_status) && test -s "$ac_outfile"; then
9617     # The compiler can only warn and ignore the option if not recognized
9618     # So say no if there are warnings other than the usual output.
9619     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9620     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9621     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9622       lt_cv_prog_compiler_rtti_exceptions=yes
9623     fi
9624   fi
9625   $RM conftest*
9626
9627fi
9628{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9629$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9630
9631if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9632    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9633else
9634    :
9635fi
9636
9637fi
9638
9639
9640
9641
9642
9643
9644  lt_prog_compiler_wl=
9645lt_prog_compiler_pic=
9646lt_prog_compiler_static=
9647
9648{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9649$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9650
9651  if test "$GCC" = yes; then
9652    lt_prog_compiler_wl='-Wl,'
9653    lt_prog_compiler_static='-static'
9654
9655    case $host_os in
9656      aix*)
9657      # All AIX code is PIC.
9658      if test "$host_cpu" = ia64; then
9659	# AIX 5 now supports IA64 processor
9660	lt_prog_compiler_static='-Bstatic'
9661      fi
9662      ;;
9663
9664    amigaos*)
9665      case $host_cpu in
9666      powerpc)
9667            # see comment about AmigaOS4 .so support
9668            lt_prog_compiler_pic='-fPIC'
9669        ;;
9670      m68k)
9671            # FIXME: we need at least 68020 code to build shared libraries, but
9672            # adding the `-m68020' flag to GCC prevents building anything better,
9673            # like `-m68040'.
9674            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9675        ;;
9676      esac
9677      ;;
9678
9679    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9680      # PIC is the default for these OSes.
9681      ;;
9682
9683    mingw* | cygwin* | pw32* | os2* | cegcc*)
9684      # This hack is so that the source file can tell whether it is being
9685      # built for inclusion in a dll (and should export symbols for example).
9686      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9687      # (--disable-auto-import) libraries
9688      lt_prog_compiler_pic='-DDLL_EXPORT'
9689      ;;
9690
9691    darwin* | rhapsody*)
9692      # PIC is the default on this platform
9693      # Common symbols not allowed in MH_DYLIB files
9694      lt_prog_compiler_pic='-fno-common'
9695      ;;
9696
9697    hpux*)
9698      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9699      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9700      # sets the default TLS model and affects inlining.
9701      case $host_cpu in
9702      hppa*64*)
9703	# +Z the default
9704	;;
9705      *)
9706	lt_prog_compiler_pic='-fPIC'
9707	;;
9708      esac
9709      ;;
9710
9711    interix[3-9]*)
9712      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9713      # Instead, we relocate shared libraries at runtime.
9714      ;;
9715
9716    msdosdjgpp*)
9717      # Just because we use GCC doesn't mean we suddenly get shared libraries
9718      # on systems that don't support them.
9719      lt_prog_compiler_can_build_shared=no
9720      enable_shared=no
9721      ;;
9722
9723    *nto* | *qnx*)
9724      # QNX uses GNU C++, but need to define -shared option too, otherwise
9725      # it will coredump.
9726      lt_prog_compiler_pic='-fPIC -shared'
9727      ;;
9728
9729    sysv4*MP*)
9730      if test -d /usr/nec; then
9731	lt_prog_compiler_pic=-Kconform_pic
9732      fi
9733      ;;
9734
9735    *)
9736      lt_prog_compiler_pic='-fPIC'
9737      ;;
9738    esac
9739  else
9740    # PORTME Check for flag to pass linker flags through the system compiler.
9741    case $host_os in
9742    aix*)
9743      lt_prog_compiler_wl='-Wl,'
9744      if test "$host_cpu" = ia64; then
9745	# AIX 5 now supports IA64 processor
9746	lt_prog_compiler_static='-Bstatic'
9747      else
9748	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9749      fi
9750      ;;
9751
9752    mingw* | cygwin* | pw32* | os2* | cegcc*)
9753      # This hack is so that the source file can tell whether it is being
9754      # built for inclusion in a dll (and should export symbols for example).
9755      lt_prog_compiler_pic='-DDLL_EXPORT'
9756      ;;
9757
9758    hpux9* | hpux10* | hpux11*)
9759      lt_prog_compiler_wl='-Wl,'
9760      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9761      # not for PA HP-UX.
9762      case $host_cpu in
9763      hppa*64*|ia64*)
9764	# +Z the default
9765	;;
9766      *)
9767	lt_prog_compiler_pic='+Z'
9768	;;
9769      esac
9770      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9771      lt_prog_compiler_static='${wl}-a ${wl}archive'
9772      ;;
9773
9774    irix5* | irix6* | nonstopux*)
9775      lt_prog_compiler_wl='-Wl,'
9776      # PIC (with -KPIC) is the default.
9777      lt_prog_compiler_static='-non_shared'
9778      ;;
9779
9780    linux* | k*bsd*-gnu)
9781      case $cc_basename in
9782      # old Intel for x86_64 which still supported -KPIC.
9783      ecc*)
9784	lt_prog_compiler_wl='-Wl,'
9785	lt_prog_compiler_pic='-KPIC'
9786	lt_prog_compiler_static='-static'
9787        ;;
9788      # icc used to be incompatible with GCC.
9789      # ICC 10 doesn't accept -KPIC any more.
9790      icc* | ifort*)
9791	lt_prog_compiler_wl='-Wl,'
9792	lt_prog_compiler_pic='-fPIC'
9793	lt_prog_compiler_static='-static'
9794        ;;
9795      # Lahey Fortran 8.1.
9796      lf95*)
9797	lt_prog_compiler_wl='-Wl,'
9798	lt_prog_compiler_pic='--shared'
9799	lt_prog_compiler_static='--static'
9800	;;
9801      pgcc* | pgf77* | pgf90* | pgf95*)
9802        # Portland Group compilers (*not* the Pentium gcc compiler,
9803	# which looks to be a dead project)
9804	lt_prog_compiler_wl='-Wl,'
9805	lt_prog_compiler_pic='-fpic'
9806	lt_prog_compiler_static='-Bstatic'
9807        ;;
9808      ccc*)
9809        lt_prog_compiler_wl='-Wl,'
9810        # All Alpha code is PIC.
9811        lt_prog_compiler_static='-non_shared'
9812        ;;
9813      xl*)
9814	# IBM XL C 8.0/Fortran 10.1 on PPC
9815	lt_prog_compiler_wl='-Wl,'
9816	lt_prog_compiler_pic='-qpic'
9817	lt_prog_compiler_static='-qstaticlink'
9818	;;
9819      *)
9820	case `$CC -V 2>&1 | sed 5q` in
9821	*Sun\ C*)
9822	  # Sun C 5.9
9823	  lt_prog_compiler_pic='-KPIC'
9824	  lt_prog_compiler_static='-Bstatic'
9825	  lt_prog_compiler_wl='-Wl,'
9826	  ;;
9827	*Sun\ F*)
9828	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9829	  lt_prog_compiler_pic='-KPIC'
9830	  lt_prog_compiler_static='-Bstatic'
9831	  lt_prog_compiler_wl=''
9832	  ;;
9833	esac
9834	;;
9835      esac
9836      ;;
9837
9838    newsos6)
9839      lt_prog_compiler_pic='-KPIC'
9840      lt_prog_compiler_static='-Bstatic'
9841      ;;
9842
9843    *nto* | *qnx*)
9844      # QNX uses GNU C++, but need to define -shared option too, otherwise
9845      # it will coredump.
9846      lt_prog_compiler_pic='-fPIC -shared'
9847      ;;
9848
9849    osf3* | osf4* | osf5*)
9850      lt_prog_compiler_wl='-Wl,'
9851      # All OSF/1 code is PIC.
9852      lt_prog_compiler_static='-non_shared'
9853      ;;
9854
9855    rdos*)
9856      lt_prog_compiler_static='-non_shared'
9857      ;;
9858
9859    solaris*)
9860      lt_prog_compiler_pic='-KPIC'
9861      lt_prog_compiler_static='-Bstatic'
9862      case $cc_basename in
9863      f77* | f90* | f95*)
9864	lt_prog_compiler_wl='-Qoption ld ';;
9865      *)
9866	lt_prog_compiler_wl='-Wl,';;
9867      esac
9868      ;;
9869
9870    sunos4*)
9871      lt_prog_compiler_wl='-Qoption ld '
9872      lt_prog_compiler_pic='-PIC'
9873      lt_prog_compiler_static='-Bstatic'
9874      ;;
9875
9876    sysv4 | sysv4.2uw2* | sysv4.3*)
9877      lt_prog_compiler_wl='-Wl,'
9878      lt_prog_compiler_pic='-KPIC'
9879      lt_prog_compiler_static='-Bstatic'
9880      ;;
9881
9882    sysv4*MP*)
9883      if test -d /usr/nec ;then
9884	lt_prog_compiler_pic='-Kconform_pic'
9885	lt_prog_compiler_static='-Bstatic'
9886      fi
9887      ;;
9888
9889    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9890      lt_prog_compiler_wl='-Wl,'
9891      lt_prog_compiler_pic='-KPIC'
9892      lt_prog_compiler_static='-Bstatic'
9893      ;;
9894
9895    unicos*)
9896      lt_prog_compiler_wl='-Wl,'
9897      lt_prog_compiler_can_build_shared=no
9898      ;;
9899
9900    uts4*)
9901      lt_prog_compiler_pic='-pic'
9902      lt_prog_compiler_static='-Bstatic'
9903      ;;
9904
9905    *)
9906      lt_prog_compiler_can_build_shared=no
9907      ;;
9908    esac
9909  fi
9910
9911case $host_os in
9912  # For platforms which do not support PIC, -DPIC is meaningless:
9913  *djgpp*)
9914    lt_prog_compiler_pic=
9915    ;;
9916  *)
9917    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9918    ;;
9919esac
9920{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9921$as_echo "$lt_prog_compiler_pic" >&6; }
9922
9923
9924
9925
9926
9927
9928#
9929# Check to make sure the PIC flag actually works.
9930#
9931if test -n "$lt_prog_compiler_pic"; then
9932  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9933$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9934if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9935  $as_echo_n "(cached) " >&6
9936else
9937  lt_cv_prog_compiler_pic_works=no
9938   ac_outfile=conftest.$ac_objext
9939   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9940   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9941   # Insert the option either (1) after the last *FLAGS variable, or
9942   # (2) before a word containing "conftest.", or (3) at the end.
9943   # Note that $ac_compile itself does not contain backslashes and begins
9944   # with a dollar sign (not a hyphen), so the echo should work correctly.
9945   # The option is referenced via a variable to avoid confusing sed.
9946   lt_compile=`echo "$ac_compile" | $SED \
9947   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9948   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9949   -e 's:$: $lt_compiler_flag:'`
9950   (eval echo "\"\$as_me:9950: $lt_compile\"" >&5)
9951   (eval "$lt_compile" 2>conftest.err)
9952   ac_status=$?
9953   cat conftest.err >&5
9954   echo "$as_me:9954: \$? = $ac_status" >&5
9955   if (exit $ac_status) && test -s "$ac_outfile"; then
9956     # The compiler can only warn and ignore the option if not recognized
9957     # So say no if there are warnings other than the usual output.
9958     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9959     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9960     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9961       lt_cv_prog_compiler_pic_works=yes
9962     fi
9963   fi
9964   $RM conftest*
9965
9966fi
9967{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9968$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9969
9970if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9971    case $lt_prog_compiler_pic in
9972     "" | " "*) ;;
9973     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9974     esac
9975else
9976    lt_prog_compiler_pic=
9977     lt_prog_compiler_can_build_shared=no
9978fi
9979
9980fi
9981
9982
9983
9984
9985
9986
9987#
9988# Check to make sure the static flag actually works.
9989#
9990wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9991{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9992$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9993if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9994  $as_echo_n "(cached) " >&6
9995else
9996  lt_cv_prog_compiler_static_works=no
9997   save_LDFLAGS="$LDFLAGS"
9998   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9999   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10000   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10001     # The linker can only warn and ignore the option if not recognized
10002     # So say no if there are warnings
10003     if test -s conftest.err; then
10004       # Append any errors to the config.log.
10005       cat conftest.err 1>&5
10006       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10007       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10008       if diff conftest.exp conftest.er2 >/dev/null; then
10009         lt_cv_prog_compiler_static_works=yes
10010       fi
10011     else
10012       lt_cv_prog_compiler_static_works=yes
10013     fi
10014   fi
10015   $RM -r conftest*
10016   LDFLAGS="$save_LDFLAGS"
10017
10018fi
10019{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10020$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10021
10022if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10023    :
10024else
10025    lt_prog_compiler_static=
10026fi
10027
10028
10029
10030
10031
10032
10033
10034  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10035$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10036if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10037  $as_echo_n "(cached) " >&6
10038else
10039  lt_cv_prog_compiler_c_o=no
10040   $RM -r conftest 2>/dev/null
10041   mkdir conftest
10042   cd conftest
10043   mkdir out
10044   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10045
10046   lt_compiler_flag="-o out/conftest2.$ac_objext"
10047   # Insert the option either (1) after the last *FLAGS variable, or
10048   # (2) before a word containing "conftest.", or (3) at the end.
10049   # Note that $ac_compile itself does not contain backslashes and begins
10050   # with a dollar sign (not a hyphen), so the echo should work correctly.
10051   lt_compile=`echo "$ac_compile" | $SED \
10052   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10053   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10054   -e 's:$: $lt_compiler_flag:'`
10055   (eval echo "\"\$as_me:10055: $lt_compile\"" >&5)
10056   (eval "$lt_compile" 2>out/conftest.err)
10057   ac_status=$?
10058   cat out/conftest.err >&5
10059   echo "$as_me:10059: \$? = $ac_status" >&5
10060   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10061   then
10062     # The compiler can only warn and ignore the option if not recognized
10063     # So say no if there are warnings
10064     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10065     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10066     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10067       lt_cv_prog_compiler_c_o=yes
10068     fi
10069   fi
10070   chmod u+w . 2>&5
10071   $RM conftest*
10072   # SGI C++ compiler will create directory out/ii_files/ for
10073   # template instantiation
10074   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10075   $RM out/* && rmdir out
10076   cd ..
10077   $RM -r conftest
10078   $RM conftest*
10079
10080fi
10081{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10082$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10083
10084
10085
10086
10087
10088
10089  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10090$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10091if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10092  $as_echo_n "(cached) " >&6
10093else
10094  lt_cv_prog_compiler_c_o=no
10095   $RM -r conftest 2>/dev/null
10096   mkdir conftest
10097   cd conftest
10098   mkdir out
10099   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10100
10101   lt_compiler_flag="-o out/conftest2.$ac_objext"
10102   # Insert the option either (1) after the last *FLAGS variable, or
10103   # (2) before a word containing "conftest.", or (3) at the end.
10104   # Note that $ac_compile itself does not contain backslashes and begins
10105   # with a dollar sign (not a hyphen), so the echo should work correctly.
10106   lt_compile=`echo "$ac_compile" | $SED \
10107   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10108   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10109   -e 's:$: $lt_compiler_flag:'`
10110   (eval echo "\"\$as_me:10110: $lt_compile\"" >&5)
10111   (eval "$lt_compile" 2>out/conftest.err)
10112   ac_status=$?
10113   cat out/conftest.err >&5
10114   echo "$as_me:10114: \$? = $ac_status" >&5
10115   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10116   then
10117     # The compiler can only warn and ignore the option if not recognized
10118     # So say no if there are warnings
10119     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10120     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10121     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10122       lt_cv_prog_compiler_c_o=yes
10123     fi
10124   fi
10125   chmod u+w . 2>&5
10126   $RM conftest*
10127   # SGI C++ compiler will create directory out/ii_files/ for
10128   # template instantiation
10129   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10130   $RM out/* && rmdir out
10131   cd ..
10132   $RM -r conftest
10133   $RM conftest*
10134
10135fi
10136{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10137$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10138
10139
10140
10141
10142hard_links="nottested"
10143if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10144  # do not overwrite the value of need_locks provided by the user
10145  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10146$as_echo_n "checking if we can lock with hard links... " >&6; }
10147  hard_links=yes
10148  $RM conftest*
10149  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10150  touch conftest.a
10151  ln conftest.a conftest.b 2>&5 || hard_links=no
10152  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10153  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10154$as_echo "$hard_links" >&6; }
10155  if test "$hard_links" = no; then
10156    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10157$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10158    need_locks=warn
10159  fi
10160else
10161  need_locks=no
10162fi
10163
10164
10165
10166
10167
10168
10169  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10170$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10171
10172  runpath_var=
10173  allow_undefined_flag=
10174  always_export_symbols=no
10175  archive_cmds=
10176  archive_expsym_cmds=
10177  compiler_needs_object=no
10178  enable_shared_with_static_runtimes=no
10179  export_dynamic_flag_spec=
10180  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10181  hardcode_automatic=no
10182  hardcode_direct=no
10183  hardcode_direct_absolute=no
10184  hardcode_libdir_flag_spec=
10185  hardcode_libdir_flag_spec_ld=
10186  hardcode_libdir_separator=
10187  hardcode_minus_L=no
10188  hardcode_shlibpath_var=unsupported
10189  inherit_rpath=no
10190  link_all_deplibs=unknown
10191  module_cmds=
10192  module_expsym_cmds=
10193  old_archive_from_new_cmds=
10194  old_archive_from_expsyms_cmds=
10195  thread_safe_flag_spec=
10196  whole_archive_flag_spec=
10197  # include_expsyms should be a list of space-separated symbols to be *always*
10198  # included in the symbol list
10199  include_expsyms=
10200  # exclude_expsyms can be an extended regexp of symbols to exclude
10201  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10202  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10203  # as well as any symbol that contains `d'.
10204  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10205  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10206  # platforms (ab)use it in PIC code, but their linkers get confused if
10207  # the symbol is explicitly referenced.  Since portable code cannot
10208  # rely on this symbol name, it's probably fine to never include it in
10209  # preloaded symbol tables.
10210  # Exclude shared library initialization/finalization symbols.
10211  extract_expsyms_cmds=
10212
10213  case $host_os in
10214  cygwin* | mingw* | pw32* | cegcc*)
10215    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10216    # When not using gcc, we currently assume that we are using
10217    # Microsoft Visual C++.
10218    if test "$GCC" != yes; then
10219      with_gnu_ld=no
10220    fi
10221    ;;
10222  interix*)
10223    # we just hope/assume this is gcc and not c89 (= MSVC++)
10224    with_gnu_ld=yes
10225    ;;
10226  openbsd*)
10227    with_gnu_ld=no
10228    ;;
10229  esac
10230
10231  ld_shlibs=yes
10232  if test "$with_gnu_ld" = yes; then
10233    # If archive_cmds runs LD, not CC, wlarc should be empty
10234    wlarc='${wl}'
10235
10236    # Set some defaults for GNU ld with shared library support. These
10237    # are reset later if shared libraries are not supported. Putting them
10238    # here allows them to be overridden if necessary.
10239    runpath_var=LD_RUN_PATH
10240    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10241    export_dynamic_flag_spec='${wl}--export-dynamic'
10242    # ancient GNU ld didn't support --whole-archive et. al.
10243    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10244      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10245    else
10246      whole_archive_flag_spec=
10247    fi
10248    supports_anon_versioning=no
10249    case `$LD -v 2>&1` in
10250      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10251      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10252      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10253      *\ 2.11.*) ;; # other 2.11 versions
10254      *) supports_anon_versioning=yes ;;
10255    esac
10256
10257    # See if GNU ld supports shared libraries.
10258    case $host_os in
10259    aix[3-9]*)
10260      # On AIX/PPC, the GNU linker is very broken
10261      if test "$host_cpu" != ia64; then
10262	ld_shlibs=no
10263	cat <<_LT_EOF 1>&2
10264
10265*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10266*** to be unable to reliably create shared libraries on AIX.
10267*** Therefore, libtool is disabling shared libraries support.  If you
10268*** really care for shared libraries, you may want to modify your PATH
10269*** so that a non-GNU linker is found, and then restart.
10270
10271_LT_EOF
10272      fi
10273      ;;
10274
10275    amigaos*)
10276      case $host_cpu in
10277      powerpc)
10278            # see comment about AmigaOS4 .so support
10279            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10280            archive_expsym_cmds=''
10281        ;;
10282      m68k)
10283            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)'
10284            hardcode_libdir_flag_spec='-L$libdir'
10285            hardcode_minus_L=yes
10286        ;;
10287      esac
10288      ;;
10289
10290    beos*)
10291      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10292	allow_undefined_flag=unsupported
10293	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10294	# support --undefined.  This deserves some investigation.  FIXME
10295	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10296      else
10297	ld_shlibs=no
10298      fi
10299      ;;
10300
10301    cygwin* | mingw* | pw32* | cegcc*)
10302      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10303      # as there is no search path for DLLs.
10304      hardcode_libdir_flag_spec='-L$libdir'
10305      allow_undefined_flag=unsupported
10306      always_export_symbols=no
10307      enable_shared_with_static_runtimes=yes
10308      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10309
10310      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10311        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10312	# If the export-symbols file already is a .def file (1st line
10313	# is EXPORTS), use it as is; otherwise, prepend...
10314	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10315	  cp $export_symbols $output_objdir/$soname.def;
10316	else
10317	  echo EXPORTS > $output_objdir/$soname.def;
10318	  cat $export_symbols >> $output_objdir/$soname.def;
10319	fi~
10320	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10321      else
10322	ld_shlibs=no
10323      fi
10324      ;;
10325
10326    interix[3-9]*)
10327      hardcode_direct=no
10328      hardcode_shlibpath_var=no
10329      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10330      export_dynamic_flag_spec='${wl}-E'
10331      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10332      # Instead, shared libraries are loaded at an image base (0x10000000 by
10333      # default) and relocated if they conflict, which is a slow very memory
10334      # consuming and fragmenting process.  To avoid this, we pick a random,
10335      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10336      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10337      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10338      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'
10339      ;;
10340
10341    gnu* | linux* | tpf* | k*bsd*-gnu)
10342      tmp_diet=no
10343      if test "$host_os" = linux-dietlibc; then
10344	case $cc_basename in
10345	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10346	esac
10347      fi
10348      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10349	 && test "$tmp_diet" = no
10350      then
10351	tmp_addflag=
10352	tmp_sharedflag='-shared'
10353	case $cc_basename,$host_cpu in
10354        pgcc*)				# Portland Group C compiler
10355	  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'
10356	  tmp_addflag=' $pic_flag'
10357	  ;;
10358	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10359	  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'
10360	  tmp_addflag=' $pic_flag -Mnomain' ;;
10361	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10362	  tmp_addflag=' -i_dynamic' ;;
10363	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10364	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10365	ifc* | ifort*)			# Intel Fortran compiler
10366	  tmp_addflag=' -nofor_main' ;;
10367	lf95*)				# Lahey Fortran 8.1
10368	  whole_archive_flag_spec=
10369	  tmp_sharedflag='--shared' ;;
10370	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
10371	  tmp_sharedflag='-qmkshrobj'
10372	  tmp_addflag= ;;
10373	esac
10374	case `$CC -V 2>&1 | sed 5q` in
10375	*Sun\ C*)			# Sun C 5.9
10376	  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'
10377	  compiler_needs_object=yes
10378	  tmp_sharedflag='-G' ;;
10379	*Sun\ F*)			# Sun Fortran 8.3
10380	  tmp_sharedflag='-G' ;;
10381	esac
10382	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10383
10384        if test "x$supports_anon_versioning" = xyes; then
10385          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10386	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10387	    echo "local: *; };" >> $output_objdir/$libname.ver~
10388	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10389        fi
10390
10391	case $cc_basename in
10392	xlf*)
10393	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10394	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10395	  hardcode_libdir_flag_spec=
10396	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10397	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10398	  if test "x$supports_anon_versioning" = xyes; then
10399	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10400	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10401	      echo "local: *; };" >> $output_objdir/$libname.ver~
10402	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10403	  fi
10404	  ;;
10405	esac
10406      else
10407        ld_shlibs=no
10408      fi
10409      ;;
10410
10411    netbsd*)
10412      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10413	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10414	wlarc=
10415      else
10416	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10417	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10418      fi
10419      ;;
10420
10421    solaris*)
10422      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10423	ld_shlibs=no
10424	cat <<_LT_EOF 1>&2
10425
10426*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10427*** create shared libraries on Solaris systems.  Therefore, libtool
10428*** is disabling shared libraries support.  We urge you to upgrade GNU
10429*** binutils to release 2.9.1 or newer.  Another option is to modify
10430*** your PATH or compiler configuration so that the native linker is
10431*** used, and then restart.
10432
10433_LT_EOF
10434      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10435	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10436	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10437      else
10438	ld_shlibs=no
10439      fi
10440      ;;
10441
10442    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10443      case `$LD -v 2>&1` in
10444        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10445	ld_shlibs=no
10446	cat <<_LT_EOF 1>&2
10447
10448*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10449*** reliably create shared libraries on SCO systems.  Therefore, libtool
10450*** is disabling shared libraries support.  We urge you to upgrade GNU
10451*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10452*** your PATH or compiler configuration so that the native linker is
10453*** used, and then restart.
10454
10455_LT_EOF
10456	;;
10457	*)
10458	  # For security reasons, it is highly recommended that you always
10459	  # use absolute paths for naming shared libraries, and exclude the
10460	  # DT_RUNPATH tag from executables and libraries.  But doing so
10461	  # requires that you compile everything twice, which is a pain.
10462	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10463	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10464	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10465	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10466	  else
10467	    ld_shlibs=no
10468	  fi
10469	;;
10470      esac
10471      ;;
10472
10473    sunos4*)
10474      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10475      wlarc=
10476      hardcode_direct=yes
10477      hardcode_shlibpath_var=no
10478      ;;
10479
10480    *)
10481      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10482	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10483	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10484      else
10485	ld_shlibs=no
10486      fi
10487      ;;
10488    esac
10489
10490    if test "$ld_shlibs" = no; then
10491      runpath_var=
10492      hardcode_libdir_flag_spec=
10493      export_dynamic_flag_spec=
10494      whole_archive_flag_spec=
10495    fi
10496  else
10497    # PORTME fill in a description of your system's linker (not GNU ld)
10498    case $host_os in
10499    aix3*)
10500      allow_undefined_flag=unsupported
10501      always_export_symbols=yes
10502      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'
10503      # Note: this linker hardcodes the directories in LIBPATH if there
10504      # are no directories specified by -L.
10505      hardcode_minus_L=yes
10506      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10507	# Neither direct hardcoding nor static linking is supported with a
10508	# broken collect2.
10509	hardcode_direct=unsupported
10510      fi
10511      ;;
10512
10513    aix[4-9]*)
10514      if test "$host_cpu" = ia64; then
10515	# On IA64, the linker does run time linking by default, so we don't
10516	# have to do anything special.
10517	aix_use_runtimelinking=no
10518	exp_sym_flag='-Bexport'
10519	no_entry_flag=""
10520      else
10521	# If we're using GNU nm, then we don't want the "-C" option.
10522	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10523	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10524	  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'
10525	else
10526	  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'
10527	fi
10528	aix_use_runtimelinking=no
10529
10530	# Test if we are trying to use run time linking or normal
10531	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10532	# need to do runtime linking.
10533	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10534	  for ld_flag in $LDFLAGS; do
10535	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10536	    aix_use_runtimelinking=yes
10537	    break
10538	  fi
10539	  done
10540	  ;;
10541	esac
10542
10543	exp_sym_flag='-bexport'
10544	no_entry_flag='-bnoentry'
10545      fi
10546
10547      # When large executables or shared objects are built, AIX ld can
10548      # have problems creating the table of contents.  If linking a library
10549      # or program results in "error TOC overflow" add -mminimal-toc to
10550      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10551      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10552
10553      archive_cmds=''
10554      hardcode_direct=yes
10555      hardcode_direct_absolute=yes
10556      hardcode_libdir_separator=':'
10557      link_all_deplibs=yes
10558      file_list_spec='${wl}-f,'
10559
10560      if test "$GCC" = yes; then
10561	case $host_os in aix4.[012]|aix4.[012].*)
10562	# We only want to do this on AIX 4.2 and lower, the check
10563	# below for broken collect2 doesn't work under 4.3+
10564	  collect2name=`${CC} -print-prog-name=collect2`
10565	  if test -f "$collect2name" &&
10566	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10567	  then
10568	  # We have reworked collect2
10569	  :
10570	  else
10571	  # We have old collect2
10572	  hardcode_direct=unsupported
10573	  # It fails to find uninstalled libraries when the uninstalled
10574	  # path is not listed in the libpath.  Setting hardcode_minus_L
10575	  # to unsupported forces relinking
10576	  hardcode_minus_L=yes
10577	  hardcode_libdir_flag_spec='-L$libdir'
10578	  hardcode_libdir_separator=
10579	  fi
10580	  ;;
10581	esac
10582	shared_flag='-shared'
10583	if test "$aix_use_runtimelinking" = yes; then
10584	  shared_flag="$shared_flag "'${wl}-G'
10585	fi
10586      else
10587	# not using gcc
10588	if test "$host_cpu" = ia64; then
10589	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10590	# chokes on -Wl,-G. The following line is correct:
10591	  shared_flag='-G'
10592	else
10593	  if test "$aix_use_runtimelinking" = yes; then
10594	    shared_flag='${wl}-G'
10595	  else
10596	    shared_flag='${wl}-bM:SRE'
10597	  fi
10598	fi
10599      fi
10600
10601      export_dynamic_flag_spec='${wl}-bexpall'
10602      # It seems that -bexpall does not export symbols beginning with
10603      # underscore (_), so it is better to generate a list of symbols to export.
10604      always_export_symbols=yes
10605      if test "$aix_use_runtimelinking" = yes; then
10606	# Warning - without using the other runtime loading flags (-brtl),
10607	# -berok will link without error, but may produce a broken library.
10608	allow_undefined_flag='-berok'
10609        # Determine the default libpath from the value encoded in an
10610        # empty executable.
10611        cat >conftest.$ac_ext <<_ACEOF
10612/* confdefs.h.  */
10613_ACEOF
10614cat confdefs.h >>conftest.$ac_ext
10615cat >>conftest.$ac_ext <<_ACEOF
10616/* end confdefs.h.  */
10617
10618int
10619main ()
10620{
10621
10622  ;
10623  return 0;
10624}
10625_ACEOF
10626rm -f conftest.$ac_objext conftest$ac_exeext
10627if { (ac_try="$ac_link"
10628case "(($ac_try" in
10629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630  *) ac_try_echo=$ac_try;;
10631esac
10632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10633$as_echo "$ac_try_echo") >&5
10634  (eval "$ac_link") 2>conftest.er1
10635  ac_status=$?
10636  grep -v '^ *+' conftest.er1 >conftest.err
10637  rm -f conftest.er1
10638  cat conftest.err >&5
10639  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640  (exit $ac_status); } && {
10641	 test -z "$ac_c_werror_flag" ||
10642	 test ! -s conftest.err
10643       } && test -s conftest$ac_exeext && {
10644	 test "$cross_compiling" = yes ||
10645	 $as_test_x conftest$ac_exeext
10646       }; then
10647
10648lt_aix_libpath_sed='
10649    /Import File Strings/,/^$/ {
10650	/^0/ {
10651	    s/^0  *\(.*\)$/\1/
10652	    p
10653	}
10654    }'
10655aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10656# Check for a 64-bit object if we didn't find anything.
10657if test -z "$aix_libpath"; then
10658  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10659fi
10660else
10661  $as_echo "$as_me: failed program was:" >&5
10662sed 's/^/| /' conftest.$ac_ext >&5
10663
10664
10665fi
10666
10667rm -rf conftest.dSYM
10668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10669      conftest$ac_exeext conftest.$ac_ext
10670if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10671
10672        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10673        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"
10674      else
10675	if test "$host_cpu" = ia64; then
10676	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10677	  allow_undefined_flag="-z nodefs"
10678	  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"
10679	else
10680	 # Determine the default libpath from the value encoded in an
10681	 # empty executable.
10682	 cat >conftest.$ac_ext <<_ACEOF
10683/* confdefs.h.  */
10684_ACEOF
10685cat confdefs.h >>conftest.$ac_ext
10686cat >>conftest.$ac_ext <<_ACEOF
10687/* end confdefs.h.  */
10688
10689int
10690main ()
10691{
10692
10693  ;
10694  return 0;
10695}
10696_ACEOF
10697rm -f conftest.$ac_objext conftest$ac_exeext
10698if { (ac_try="$ac_link"
10699case "(($ac_try" in
10700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701  *) ac_try_echo=$ac_try;;
10702esac
10703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10704$as_echo "$ac_try_echo") >&5
10705  (eval "$ac_link") 2>conftest.er1
10706  ac_status=$?
10707  grep -v '^ *+' conftest.er1 >conftest.err
10708  rm -f conftest.er1
10709  cat conftest.err >&5
10710  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711  (exit $ac_status); } && {
10712	 test -z "$ac_c_werror_flag" ||
10713	 test ! -s conftest.err
10714       } && test -s conftest$ac_exeext && {
10715	 test "$cross_compiling" = yes ||
10716	 $as_test_x conftest$ac_exeext
10717       }; then
10718
10719lt_aix_libpath_sed='
10720    /Import File Strings/,/^$/ {
10721	/^0/ {
10722	    s/^0  *\(.*\)$/\1/
10723	    p
10724	}
10725    }'
10726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10727# Check for a 64-bit object if we didn't find anything.
10728if test -z "$aix_libpath"; then
10729  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10730fi
10731else
10732  $as_echo "$as_me: failed program was:" >&5
10733sed 's/^/| /' conftest.$ac_ext >&5
10734
10735
10736fi
10737
10738rm -rf conftest.dSYM
10739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740      conftest$ac_exeext conftest.$ac_ext
10741if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10742
10743	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10744	  # Warning - without using the other run time loading flags,
10745	  # -berok will link without error, but may produce a broken library.
10746	  no_undefined_flag=' ${wl}-bernotok'
10747	  allow_undefined_flag=' ${wl}-berok'
10748	  # Exported symbols can be pulled into shared objects from archives
10749	  whole_archive_flag_spec='$convenience'
10750	  archive_cmds_need_lc=yes
10751	  # This is similar to how AIX traditionally builds its shared libraries.
10752	  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'
10753	fi
10754      fi
10755      ;;
10756
10757    amigaos*)
10758      case $host_cpu in
10759      powerpc)
10760            # see comment about AmigaOS4 .so support
10761            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10762            archive_expsym_cmds=''
10763        ;;
10764      m68k)
10765            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)'
10766            hardcode_libdir_flag_spec='-L$libdir'
10767            hardcode_minus_L=yes
10768        ;;
10769      esac
10770      ;;
10771
10772    bsdi[45]*)
10773      export_dynamic_flag_spec=-rdynamic
10774      ;;
10775
10776    cygwin* | mingw* | pw32* | cegcc*)
10777      # When not using gcc, we currently assume that we are using
10778      # Microsoft Visual C++.
10779      # hardcode_libdir_flag_spec is actually meaningless, as there is
10780      # no search path for DLLs.
10781      hardcode_libdir_flag_spec=' '
10782      allow_undefined_flag=unsupported
10783      # Tell ltmain to make .lib files, not .a files.
10784      libext=lib
10785      # Tell ltmain to make .dll files, not .so files.
10786      shrext_cmds=".dll"
10787      # FIXME: Setting linknames here is a bad hack.
10788      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10789      # The linker will automatically build a .lib file if we build a DLL.
10790      old_archive_from_new_cmds='true'
10791      # FIXME: Should let the user specify the lib program.
10792      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10793      fix_srcfile_path='`cygpath -w "$srcfile"`'
10794      enable_shared_with_static_runtimes=yes
10795      ;;
10796
10797    darwin* | rhapsody*)
10798
10799
10800  archive_cmds_need_lc=no
10801  hardcode_direct=no
10802  hardcode_automatic=yes
10803  hardcode_shlibpath_var=unsupported
10804  whole_archive_flag_spec=''
10805  link_all_deplibs=yes
10806  allow_undefined_flag="$_lt_dar_allow_undefined"
10807  case $cc_basename in
10808     ifort*) _lt_dar_can_shared=yes ;;
10809     *) _lt_dar_can_shared=$GCC ;;
10810  esac
10811  if test "$_lt_dar_can_shared" = "yes"; then
10812    output_verbose_link_cmd=echo
10813    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10814    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10815    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}"
10816    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}"
10817
10818  else
10819  ld_shlibs=no
10820  fi
10821
10822      ;;
10823
10824    dgux*)
10825      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826      hardcode_libdir_flag_spec='-L$libdir'
10827      hardcode_shlibpath_var=no
10828      ;;
10829
10830    freebsd1*)
10831      ld_shlibs=no
10832      ;;
10833
10834    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10835    # support.  Future versions do this automatically, but an explicit c++rt0.o
10836    # does not break anything, and helps significantly (at the cost of a little
10837    # extra space).
10838    freebsd2.2*)
10839      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10840      hardcode_libdir_flag_spec='-R$libdir'
10841      hardcode_direct=yes
10842      hardcode_shlibpath_var=no
10843      ;;
10844
10845    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10846    freebsd2*)
10847      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10848      hardcode_direct=yes
10849      hardcode_minus_L=yes
10850      hardcode_shlibpath_var=no
10851      ;;
10852
10853    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10854    freebsd* | dragonfly*)
10855      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10856      hardcode_libdir_flag_spec='-R$libdir'
10857      hardcode_direct=yes
10858      hardcode_shlibpath_var=no
10859      ;;
10860
10861    hpux9*)
10862      if test "$GCC" = yes; then
10863	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'
10864      else
10865	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'
10866      fi
10867      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10868      hardcode_libdir_separator=:
10869      hardcode_direct=yes
10870
10871      # hardcode_minus_L: Not really in the search PATH,
10872      # but as the default location of the library.
10873      hardcode_minus_L=yes
10874      export_dynamic_flag_spec='${wl}-E'
10875      ;;
10876
10877    hpux10*)
10878      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10879	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10880      else
10881	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10882      fi
10883      if test "$with_gnu_ld" = no; then
10884	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10885	hardcode_libdir_flag_spec_ld='+b $libdir'
10886	hardcode_libdir_separator=:
10887	hardcode_direct=yes
10888	hardcode_direct_absolute=yes
10889	export_dynamic_flag_spec='${wl}-E'
10890	# hardcode_minus_L: Not really in the search PATH,
10891	# but as the default location of the library.
10892	hardcode_minus_L=yes
10893      fi
10894      ;;
10895
10896    hpux11*)
10897      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10898	case $host_cpu in
10899	hppa*64*)
10900	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10901	  ;;
10902	ia64*)
10903	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10904	  ;;
10905	*)
10906	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10907	  ;;
10908	esac
10909      else
10910	case $host_cpu in
10911	hppa*64*)
10912	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10913	  ;;
10914	ia64*)
10915	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10916	  ;;
10917	*)
10918	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10919	  ;;
10920	esac
10921      fi
10922      if test "$with_gnu_ld" = no; then
10923	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10924	hardcode_libdir_separator=:
10925
10926	case $host_cpu in
10927	hppa*64*|ia64*)
10928	  hardcode_direct=no
10929	  hardcode_shlibpath_var=no
10930	  ;;
10931	*)
10932	  hardcode_direct=yes
10933	  hardcode_direct_absolute=yes
10934	  export_dynamic_flag_spec='${wl}-E'
10935
10936	  # hardcode_minus_L: Not really in the search PATH,
10937	  # but as the default location of the library.
10938	  hardcode_minus_L=yes
10939	  ;;
10940	esac
10941      fi
10942      ;;
10943
10944    irix5* | irix6* | nonstopux*)
10945      if test "$GCC" = yes; then
10946	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'
10947	# Try to use the -exported_symbol ld option, if it does not
10948	# work, assume that -exports_file does not work either and
10949	# implicitly export all symbols.
10950        save_LDFLAGS="$LDFLAGS"
10951        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10952        cat >conftest.$ac_ext <<_ACEOF
10953int foo(void) {}
10954_ACEOF
10955rm -f conftest.$ac_objext conftest$ac_exeext
10956if { (ac_try="$ac_link"
10957case "(($ac_try" in
10958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959  *) ac_try_echo=$ac_try;;
10960esac
10961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10962$as_echo "$ac_try_echo") >&5
10963  (eval "$ac_link") 2>conftest.er1
10964  ac_status=$?
10965  grep -v '^ *+' conftest.er1 >conftest.err
10966  rm -f conftest.er1
10967  cat conftest.err >&5
10968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969  (exit $ac_status); } && {
10970	 test -z "$ac_c_werror_flag" ||
10971	 test ! -s conftest.err
10972       } && test -s conftest$ac_exeext && {
10973	 test "$cross_compiling" = yes ||
10974	 $as_test_x conftest$ac_exeext
10975       }; then
10976  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'
10977
10978else
10979  $as_echo "$as_me: failed program was:" >&5
10980sed 's/^/| /' conftest.$ac_ext >&5
10981
10982
10983fi
10984
10985rm -rf conftest.dSYM
10986rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10987      conftest$ac_exeext conftest.$ac_ext
10988        LDFLAGS="$save_LDFLAGS"
10989      else
10990	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'
10991	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'
10992      fi
10993      archive_cmds_need_lc='no'
10994      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10995      hardcode_libdir_separator=:
10996      inherit_rpath=yes
10997      link_all_deplibs=yes
10998      ;;
10999
11000    netbsd*)
11001      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11002	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11003      else
11004	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11005      fi
11006      hardcode_libdir_flag_spec='-R$libdir'
11007      hardcode_direct=yes
11008      hardcode_shlibpath_var=no
11009      ;;
11010
11011    newsos6)
11012      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11013      hardcode_direct=yes
11014      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11015      hardcode_libdir_separator=:
11016      hardcode_shlibpath_var=no
11017      ;;
11018
11019    *nto* | *qnx*)
11020      ;;
11021
11022    openbsd*)
11023      if test -f /usr/libexec/ld.so; then
11024	hardcode_direct=yes
11025	hardcode_shlibpath_var=no
11026	hardcode_direct_absolute=yes
11027	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11028	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11029	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11030	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11031	  export_dynamic_flag_spec='${wl}-E'
11032	else
11033	  case $host_os in
11034	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11035	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11036	     hardcode_libdir_flag_spec='-R$libdir'
11037	     ;;
11038	   *)
11039	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11040	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11041	     ;;
11042	  esac
11043	fi
11044      else
11045	ld_shlibs=no
11046      fi
11047      ;;
11048
11049    os2*)
11050      hardcode_libdir_flag_spec='-L$libdir'
11051      hardcode_minus_L=yes
11052      allow_undefined_flag=unsupported
11053      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'
11054      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11055      ;;
11056
11057    osf3*)
11058      if test "$GCC" = yes; then
11059	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11060	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'
11061      else
11062	allow_undefined_flag=' -expect_unresolved \*'
11063	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'
11064      fi
11065      archive_cmds_need_lc='no'
11066      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11067      hardcode_libdir_separator=:
11068      ;;
11069
11070    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11071      if test "$GCC" = yes; then
11072	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11073	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'
11074	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11075      else
11076	allow_undefined_flag=' -expect_unresolved \*'
11077	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'
11078	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~
11079	$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'
11080
11081	# Both c and cxx compiler support -rpath directly
11082	hardcode_libdir_flag_spec='-rpath $libdir'
11083      fi
11084      archive_cmds_need_lc='no'
11085      hardcode_libdir_separator=:
11086      ;;
11087
11088    solaris*)
11089      no_undefined_flag=' -z defs'
11090      if test "$GCC" = yes; then
11091	wlarc='${wl}'
11092	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11093	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11094	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11095      else
11096	case `$CC -V 2>&1` in
11097	*"Compilers 5.0"*)
11098	  wlarc=''
11099	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11100	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11101	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11102	  ;;
11103	*)
11104	  wlarc='${wl}'
11105	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11106	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11107	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11108	  ;;
11109	esac
11110      fi
11111      hardcode_libdir_flag_spec='-R$libdir'
11112      hardcode_shlibpath_var=no
11113      case $host_os in
11114      solaris2.[0-5] | solaris2.[0-5].*) ;;
11115      *)
11116	# The compiler driver will combine and reorder linker options,
11117	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11118	# but is careful enough not to reorder.
11119	# Supported since Solaris 2.6 (maybe 2.5.1?)
11120	if test "$GCC" = yes; then
11121	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11122	else
11123	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11124	fi
11125	;;
11126      esac
11127      link_all_deplibs=yes
11128      ;;
11129
11130    sunos4*)
11131      if test "x$host_vendor" = xsequent; then
11132	# Use $CC to link under sequent, because it throws in some extra .o
11133	# files that make .init and .fini sections work.
11134	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11135      else
11136	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11137      fi
11138      hardcode_libdir_flag_spec='-L$libdir'
11139      hardcode_direct=yes
11140      hardcode_minus_L=yes
11141      hardcode_shlibpath_var=no
11142      ;;
11143
11144    sysv4)
11145      case $host_vendor in
11146	sni)
11147	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11148	  hardcode_direct=yes # is this really true???
11149	;;
11150	siemens)
11151	  ## LD is ld it makes a PLAMLIB
11152	  ## CC just makes a GrossModule.
11153	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11154	  reload_cmds='$CC -r -o $output$reload_objs'
11155	  hardcode_direct=no
11156        ;;
11157	motorola)
11158	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11159	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11160	;;
11161      esac
11162      runpath_var='LD_RUN_PATH'
11163      hardcode_shlibpath_var=no
11164      ;;
11165
11166    sysv4.3*)
11167      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11168      hardcode_shlibpath_var=no
11169      export_dynamic_flag_spec='-Bexport'
11170      ;;
11171
11172    sysv4*MP*)
11173      if test -d /usr/nec; then
11174	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11175	hardcode_shlibpath_var=no
11176	runpath_var=LD_RUN_PATH
11177	hardcode_runpath_var=yes
11178	ld_shlibs=yes
11179      fi
11180      ;;
11181
11182    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11183      no_undefined_flag='${wl}-z,text'
11184      archive_cmds_need_lc=no
11185      hardcode_shlibpath_var=no
11186      runpath_var='LD_RUN_PATH'
11187
11188      if test "$GCC" = yes; then
11189	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11190	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11191      else
11192	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11193	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11194      fi
11195      ;;
11196
11197    sysv5* | sco3.2v5* | sco5v6*)
11198      # Note: We can NOT use -z defs as we might desire, because we do not
11199      # link with -lc, and that would cause any symbols used from libc to
11200      # always be unresolved, which means just about no library would
11201      # ever link correctly.  If we're not using GNU ld we use -z text
11202      # though, which does catch some bad symbols but isn't as heavy-handed
11203      # as -z defs.
11204      no_undefined_flag='${wl}-z,text'
11205      allow_undefined_flag='${wl}-z,nodefs'
11206      archive_cmds_need_lc=no
11207      hardcode_shlibpath_var=no
11208      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11209      hardcode_libdir_separator=':'
11210      link_all_deplibs=yes
11211      export_dynamic_flag_spec='${wl}-Bexport'
11212      runpath_var='LD_RUN_PATH'
11213
11214      if test "$GCC" = yes; then
11215	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11216	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11217      else
11218	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11219	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11220      fi
11221      ;;
11222
11223    uts4*)
11224      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11225      hardcode_libdir_flag_spec='-L$libdir'
11226      hardcode_shlibpath_var=no
11227      ;;
11228
11229    *)
11230      ld_shlibs=no
11231      ;;
11232    esac
11233
11234    if test x$host_vendor = xsni; then
11235      case $host in
11236      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11237	export_dynamic_flag_spec='${wl}-Blargedynsym'
11238	;;
11239      esac
11240    fi
11241  fi
11242
11243{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11244$as_echo "$ld_shlibs" >&6; }
11245test "$ld_shlibs" = no && can_build_shared=no
11246
11247with_gnu_ld=$with_gnu_ld
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263#
11264# Do we need to explicitly link libc?
11265#
11266case "x$archive_cmds_need_lc" in
11267x|xyes)
11268  # Assume -lc should be added
11269  archive_cmds_need_lc=yes
11270
11271  if test "$enable_shared" = yes && test "$GCC" = yes; then
11272    case $archive_cmds in
11273    *'~'*)
11274      # FIXME: we may have to deal with multi-command sequences.
11275      ;;
11276    '$CC '*)
11277      # Test whether the compiler implicitly links with -lc since on some
11278      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11279      # to ld, don't add -lc before -lgcc.
11280      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11281$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11282      $RM conftest*
11283      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11284
11285      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286  (eval $ac_compile) 2>&5
11287  ac_status=$?
11288  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289  (exit $ac_status); } 2>conftest.err; then
11290        soname=conftest
11291        lib=conftest
11292        libobjs=conftest.$ac_objext
11293        deplibs=
11294        wl=$lt_prog_compiler_wl
11295	pic_flag=$lt_prog_compiler_pic
11296        compiler_flags=-v
11297        linker_flags=-v
11298        verstring=
11299        output_objdir=.
11300        libname=conftest
11301        lt_save_allow_undefined_flag=$allow_undefined_flag
11302        allow_undefined_flag=
11303        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11304  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11305  ac_status=$?
11306  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307  (exit $ac_status); }
11308        then
11309	  archive_cmds_need_lc=no
11310        else
11311	  archive_cmds_need_lc=yes
11312        fi
11313        allow_undefined_flag=$lt_save_allow_undefined_flag
11314      else
11315        cat conftest.err 1>&5
11316      fi
11317      $RM conftest*
11318      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11319$as_echo "$archive_cmds_need_lc" >&6; }
11320      ;;
11321    esac
11322  fi
11323  ;;
11324esac
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11483$as_echo_n "checking dynamic linker characteristics... " >&6; }
11484
11485if test "$GCC" = yes; then
11486  case $host_os in
11487    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11488    *) lt_awk_arg="/^libraries:/" ;;
11489  esac
11490  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11491  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11492    # if the path contains ";" then we assume it to be the separator
11493    # otherwise default to the standard path separator (i.e. ":") - it is
11494    # assumed that no part of a normal pathname contains ";" but that should
11495    # okay in the real world where ";" in dirpaths is itself problematic.
11496    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11497  else
11498    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11499  fi
11500  # Ok, now we have the path, separated by spaces, we can step through it
11501  # and add multilib dir if necessary.
11502  lt_tmp_lt_search_path_spec=
11503  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11504  for lt_sys_path in $lt_search_path_spec; do
11505    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11506      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11507    else
11508      test -d "$lt_sys_path" && \
11509	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11510    fi
11511  done
11512  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11513BEGIN {RS=" "; FS="/|\n";} {
11514  lt_foo="";
11515  lt_count=0;
11516  for (lt_i = NF; lt_i > 0; lt_i--) {
11517    if ($lt_i != "" && $lt_i != ".") {
11518      if ($lt_i == "..") {
11519        lt_count++;
11520      } else {
11521        if (lt_count == 0) {
11522          lt_foo="/" $lt_i lt_foo;
11523        } else {
11524          lt_count--;
11525        }
11526      }
11527    }
11528  }
11529  if (lt_foo != "") { lt_freq[lt_foo]++; }
11530  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11531}'`
11532  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11533else
11534  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11535fi
11536library_names_spec=
11537libname_spec='lib$name'
11538soname_spec=
11539shrext_cmds=".so"
11540postinstall_cmds=
11541postuninstall_cmds=
11542finish_cmds=
11543finish_eval=
11544shlibpath_var=
11545shlibpath_overrides_runpath=unknown
11546version_type=none
11547dynamic_linker="$host_os ld.so"
11548sys_lib_dlsearch_path_spec="/lib /usr/lib"
11549need_lib_prefix=unknown
11550hardcode_into_libs=no
11551
11552# when you set need_version to no, make sure it does not cause -set_version
11553# flags to be left without arguments
11554need_version=unknown
11555
11556case $host_os in
11557aix3*)
11558  version_type=linux
11559  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11560  shlibpath_var=LIBPATH
11561
11562  # AIX 3 has no versioning support, so we append a major version to the name.
11563  soname_spec='${libname}${release}${shared_ext}$major'
11564  ;;
11565
11566aix[4-9]*)
11567  version_type=linux
11568  need_lib_prefix=no
11569  need_version=no
11570  hardcode_into_libs=yes
11571  if test "$host_cpu" = ia64; then
11572    # AIX 5 supports IA64
11573    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11574    shlibpath_var=LD_LIBRARY_PATH
11575  else
11576    # With GCC up to 2.95.x, collect2 would create an import file
11577    # for dependence libraries.  The import file would start with
11578    # the line `#! .'.  This would cause the generated library to
11579    # depend on `.', always an invalid library.  This was fixed in
11580    # development snapshots of GCC prior to 3.0.
11581    case $host_os in
11582      aix4 | aix4.[01] | aix4.[01].*)
11583      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11584	   echo ' yes '
11585	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11586	:
11587      else
11588	can_build_shared=no
11589      fi
11590      ;;
11591    esac
11592    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11593    # soname into executable. Probably we can add versioning support to
11594    # collect2, so additional links can be useful in future.
11595    if test "$aix_use_runtimelinking" = yes; then
11596      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11597      # instead of lib<name>.a to let people know that these are not
11598      # typical AIX shared libraries.
11599      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11600    else
11601      # We preserve .a as extension for shared libraries through AIX4.2
11602      # and later when we are not doing run time linking.
11603      library_names_spec='${libname}${release}.a $libname.a'
11604      soname_spec='${libname}${release}${shared_ext}$major'
11605    fi
11606    shlibpath_var=LIBPATH
11607  fi
11608  ;;
11609
11610amigaos*)
11611  case $host_cpu in
11612  powerpc)
11613    # Since July 2007 AmigaOS4 officially supports .so libraries.
11614    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11615    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616    ;;
11617  m68k)
11618    library_names_spec='$libname.ixlibrary $libname.a'
11619    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11620    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'
11621    ;;
11622  esac
11623  ;;
11624
11625beos*)
11626  library_names_spec='${libname}${shared_ext}'
11627  dynamic_linker="$host_os ld.so"
11628  shlibpath_var=LIBRARY_PATH
11629  ;;
11630
11631bsdi[45]*)
11632  version_type=linux
11633  need_version=no
11634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635  soname_spec='${libname}${release}${shared_ext}$major'
11636  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11637  shlibpath_var=LD_LIBRARY_PATH
11638  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11639  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11640  # the default ld.so.conf also contains /usr/contrib/lib and
11641  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11642  # libtool to hard-code these into programs
11643  ;;
11644
11645cygwin* | mingw* | pw32* | cegcc*)
11646  version_type=windows
11647  shrext_cmds=".dll"
11648  need_version=no
11649  need_lib_prefix=no
11650
11651  case $GCC,$host_os in
11652  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11653    library_names_spec='$libname.dll.a'
11654    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11655    postinstall_cmds='base_file=`basename \${file}`~
11656      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11657      dldir=$destdir/`dirname \$dlpath`~
11658      test -d \$dldir || mkdir -p \$dldir~
11659      $install_prog $dir/$dlname \$dldir/$dlname~
11660      chmod a+x \$dldir/$dlname~
11661      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11662        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11663      fi'
11664    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11665      dlpath=$dir/\$dldll~
11666       $RM \$dlpath'
11667    shlibpath_overrides_runpath=yes
11668
11669    case $host_os in
11670    cygwin*)
11671      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11672      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11673      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11674      ;;
11675    mingw* | cegcc*)
11676      # MinGW DLLs use traditional 'lib' prefix
11677      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11678      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11679      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11680        # It is most probably a Windows format PATH printed by
11681        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11682        # path with ; separators, and with drive letters. We can handle the
11683        # drive letters (cygwin fileutils understands them), so leave them,
11684        # especially as we might pass files found there to a mingw objdump,
11685        # which wouldn't understand a cygwinified path. Ahh.
11686        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11687      else
11688        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11689      fi
11690      ;;
11691    pw32*)
11692      # pw32 DLLs use 'pw' prefix rather than 'lib'
11693      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11694      ;;
11695    esac
11696    ;;
11697
11698  *)
11699    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11700    ;;
11701  esac
11702  dynamic_linker='Win32 ld.exe'
11703  # FIXME: first we should search . and the directory the executable is in
11704  shlibpath_var=PATH
11705  ;;
11706
11707darwin* | rhapsody*)
11708  dynamic_linker="$host_os dyld"
11709  version_type=darwin
11710  need_lib_prefix=no
11711  need_version=no
11712  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11713  soname_spec='${libname}${release}${major}$shared_ext'
11714  shlibpath_overrides_runpath=yes
11715  shlibpath_var=DYLD_LIBRARY_PATH
11716  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11717
11718  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11719  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11720  ;;
11721
11722dgux*)
11723  version_type=linux
11724  need_lib_prefix=no
11725  need_version=no
11726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11727  soname_spec='${libname}${release}${shared_ext}$major'
11728  shlibpath_var=LD_LIBRARY_PATH
11729  ;;
11730
11731freebsd1*)
11732  dynamic_linker=no
11733  ;;
11734
11735freebsd* | dragonfly*)
11736  # DragonFly does not have aout.  When/if they implement a new
11737  # versioning mechanism, adjust this.
11738  if test -x /usr/bin/objformat; then
11739    objformat=`/usr/bin/objformat`
11740  else
11741    case $host_os in
11742    freebsd[123]*) objformat=aout ;;
11743    *) objformat=elf ;;
11744    esac
11745  fi
11746  version_type=freebsd-$objformat
11747  case $version_type in
11748    freebsd-elf*)
11749      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11750      need_version=no
11751      need_lib_prefix=no
11752      ;;
11753    freebsd-*)
11754      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11755      need_version=yes
11756      ;;
11757  esac
11758  shlibpath_var=LD_LIBRARY_PATH
11759  case $host_os in
11760  freebsd2*)
11761    shlibpath_overrides_runpath=yes
11762    ;;
11763  freebsd3.[01]* | freebsdelf3.[01]*)
11764    shlibpath_overrides_runpath=yes
11765    hardcode_into_libs=yes
11766    ;;
11767  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11768  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11769    shlibpath_overrides_runpath=no
11770    hardcode_into_libs=yes
11771    ;;
11772  *) # from 4.6 on, and DragonFly
11773    shlibpath_overrides_runpath=yes
11774    hardcode_into_libs=yes
11775    ;;
11776  esac
11777  ;;
11778
11779gnu*)
11780  version_type=linux
11781  need_lib_prefix=no
11782  need_version=no
11783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11784  soname_spec='${libname}${release}${shared_ext}$major'
11785  shlibpath_var=LD_LIBRARY_PATH
11786  hardcode_into_libs=yes
11787  ;;
11788
11789hpux9* | hpux10* | hpux11*)
11790  # Give a soname corresponding to the major version so that dld.sl refuses to
11791  # link against other versions.
11792  version_type=sunos
11793  need_lib_prefix=no
11794  need_version=no
11795  case $host_cpu in
11796  ia64*)
11797    shrext_cmds='.so'
11798    hardcode_into_libs=yes
11799    dynamic_linker="$host_os dld.so"
11800    shlibpath_var=LD_LIBRARY_PATH
11801    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11802    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11803    soname_spec='${libname}${release}${shared_ext}$major'
11804    if test "X$HPUX_IA64_MODE" = X32; then
11805      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11806    else
11807      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11808    fi
11809    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11810    ;;
11811  hppa*64*)
11812    shrext_cmds='.sl'
11813    hardcode_into_libs=yes
11814    dynamic_linker="$host_os dld.sl"
11815    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11816    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11817    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818    soname_spec='${libname}${release}${shared_ext}$major'
11819    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11820    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11821    ;;
11822  *)
11823    shrext_cmds='.sl'
11824    dynamic_linker="$host_os dld.sl"
11825    shlibpath_var=SHLIB_PATH
11826    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11827    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11828    soname_spec='${libname}${release}${shared_ext}$major'
11829    ;;
11830  esac
11831  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11832  postinstall_cmds='chmod 555 $lib'
11833  ;;
11834
11835interix[3-9]*)
11836  version_type=linux
11837  need_lib_prefix=no
11838  need_version=no
11839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11840  soname_spec='${libname}${release}${shared_ext}$major'
11841  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11842  shlibpath_var=LD_LIBRARY_PATH
11843  shlibpath_overrides_runpath=no
11844  hardcode_into_libs=yes
11845  ;;
11846
11847irix5* | irix6* | nonstopux*)
11848  case $host_os in
11849    nonstopux*) version_type=nonstopux ;;
11850    *)
11851	if test "$lt_cv_prog_gnu_ld" = yes; then
11852		version_type=linux
11853	else
11854		version_type=irix
11855	fi ;;
11856  esac
11857  need_lib_prefix=no
11858  need_version=no
11859  soname_spec='${libname}${release}${shared_ext}$major'
11860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11861  case $host_os in
11862  irix5* | nonstopux*)
11863    libsuff= shlibsuff=
11864    ;;
11865  *)
11866    case $LD in # libtool.m4 will add one of these switches to LD
11867    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11868      libsuff= shlibsuff= libmagic=32-bit;;
11869    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11870      libsuff=32 shlibsuff=N32 libmagic=N32;;
11871    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11872      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11873    *) libsuff= shlibsuff= libmagic=never-match;;
11874    esac
11875    ;;
11876  esac
11877  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11878  shlibpath_overrides_runpath=no
11879  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11880  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11881  hardcode_into_libs=yes
11882  ;;
11883
11884# No shared lib support for Linux oldld, aout, or coff.
11885linux*oldld* | linux*aout* | linux*coff*)
11886  dynamic_linker=no
11887  ;;
11888
11889# This must be Linux ELF.
11890linux* | k*bsd*-gnu)
11891  version_type=linux
11892  need_lib_prefix=no
11893  need_version=no
11894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11895  soname_spec='${libname}${release}${shared_ext}$major'
11896  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11897  shlibpath_var=LD_LIBRARY_PATH
11898  shlibpath_overrides_runpath=no
11899  # Some binutils ld are patched to set DT_RUNPATH
11900  save_LDFLAGS=$LDFLAGS
11901  save_libdir=$libdir
11902  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11903       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11904  cat >conftest.$ac_ext <<_ACEOF
11905/* confdefs.h.  */
11906_ACEOF
11907cat confdefs.h >>conftest.$ac_ext
11908cat >>conftest.$ac_ext <<_ACEOF
11909/* end confdefs.h.  */
11910
11911int
11912main ()
11913{
11914
11915  ;
11916  return 0;
11917}
11918_ACEOF
11919rm -f conftest.$ac_objext conftest$ac_exeext
11920if { (ac_try="$ac_link"
11921case "(($ac_try" in
11922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923  *) ac_try_echo=$ac_try;;
11924esac
11925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11926$as_echo "$ac_try_echo") >&5
11927  (eval "$ac_link") 2>conftest.er1
11928  ac_status=$?
11929  grep -v '^ *+' conftest.er1 >conftest.err
11930  rm -f conftest.er1
11931  cat conftest.err >&5
11932  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933  (exit $ac_status); } && {
11934	 test -z "$ac_c_werror_flag" ||
11935	 test ! -s conftest.err
11936       } && test -s conftest$ac_exeext && {
11937	 test "$cross_compiling" = yes ||
11938	 $as_test_x conftest$ac_exeext
11939       }; then
11940  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11941  shlibpath_overrides_runpath=yes
11942fi
11943
11944else
11945  $as_echo "$as_me: failed program was:" >&5
11946sed 's/^/| /' conftest.$ac_ext >&5
11947
11948
11949fi
11950
11951rm -rf conftest.dSYM
11952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11953      conftest$ac_exeext conftest.$ac_ext
11954  LDFLAGS=$save_LDFLAGS
11955  libdir=$save_libdir
11956
11957  # This implies no fast_install, which is unacceptable.
11958  # Some rework will be needed to allow for fast_install
11959  # before this can be enabled.
11960  hardcode_into_libs=yes
11961
11962  # Append ld.so.conf contents to the search path
11963  if test -f /etc/ld.so.conf; then
11964    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' ' '`
11965    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11966  fi
11967
11968  # We used to test for /lib/ld.so.1 and disable shared libraries on
11969  # powerpc, because MkLinux only supported shared libraries with the
11970  # GNU dynamic linker.  Since this was broken with cross compilers,
11971  # most powerpc-linux boxes support dynamic linking these days and
11972  # people can always --disable-shared, the test was removed, and we
11973  # assume the GNU/Linux dynamic linker is in use.
11974  dynamic_linker='GNU/Linux ld.so'
11975  ;;
11976
11977netbsd*)
11978  version_type=sunos
11979  need_lib_prefix=no
11980  need_version=no
11981  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11982    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11983    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11984    dynamic_linker='NetBSD (a.out) ld.so'
11985  else
11986    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11987    soname_spec='${libname}${release}${shared_ext}$major'
11988    dynamic_linker='NetBSD ld.elf_so'
11989  fi
11990  shlibpath_var=LD_LIBRARY_PATH
11991  shlibpath_overrides_runpath=yes
11992  hardcode_into_libs=yes
11993  ;;
11994
11995newsos6)
11996  version_type=linux
11997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11998  shlibpath_var=LD_LIBRARY_PATH
11999  shlibpath_overrides_runpath=yes
12000  ;;
12001
12002*nto* | *qnx*)
12003  version_type=qnx
12004  need_lib_prefix=no
12005  need_version=no
12006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12007  soname_spec='${libname}${release}${shared_ext}$major'
12008  shlibpath_var=LD_LIBRARY_PATH
12009  shlibpath_overrides_runpath=no
12010  hardcode_into_libs=yes
12011  dynamic_linker='ldqnx.so'
12012  ;;
12013
12014openbsd*)
12015  version_type=sunos
12016  sys_lib_dlsearch_path_spec="/usr/lib"
12017  need_lib_prefix=no
12018  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12019  case $host_os in
12020    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12021    *)				need_version=no  ;;
12022  esac
12023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12024  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12025  shlibpath_var=LD_LIBRARY_PATH
12026  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12027    case $host_os in
12028      openbsd2.[89] | openbsd2.[89].*)
12029	shlibpath_overrides_runpath=no
12030	;;
12031      *)
12032	shlibpath_overrides_runpath=yes
12033	;;
12034      esac
12035  else
12036    shlibpath_overrides_runpath=yes
12037  fi
12038  ;;
12039
12040os2*)
12041  libname_spec='$name'
12042  shrext_cmds=".dll"
12043  need_lib_prefix=no
12044  library_names_spec='$libname${shared_ext} $libname.a'
12045  dynamic_linker='OS/2 ld.exe'
12046  shlibpath_var=LIBPATH
12047  ;;
12048
12049osf3* | osf4* | osf5*)
12050  version_type=osf
12051  need_lib_prefix=no
12052  need_version=no
12053  soname_spec='${libname}${release}${shared_ext}$major'
12054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055  shlibpath_var=LD_LIBRARY_PATH
12056  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12057  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12058  ;;
12059
12060rdos*)
12061  dynamic_linker=no
12062  ;;
12063
12064solaris*)
12065  version_type=linux
12066  need_lib_prefix=no
12067  need_version=no
12068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12069  soname_spec='${libname}${release}${shared_ext}$major'
12070  shlibpath_var=LD_LIBRARY_PATH
12071  shlibpath_overrides_runpath=yes
12072  hardcode_into_libs=yes
12073  # ldd complains unless libraries are executable
12074  postinstall_cmds='chmod +x $lib'
12075  ;;
12076
12077sunos4*)
12078  version_type=sunos
12079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12080  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12081  shlibpath_var=LD_LIBRARY_PATH
12082  shlibpath_overrides_runpath=yes
12083  if test "$with_gnu_ld" = yes; then
12084    need_lib_prefix=no
12085  fi
12086  need_version=yes
12087  ;;
12088
12089sysv4 | sysv4.3*)
12090  version_type=linux
12091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092  soname_spec='${libname}${release}${shared_ext}$major'
12093  shlibpath_var=LD_LIBRARY_PATH
12094  case $host_vendor in
12095    sni)
12096      shlibpath_overrides_runpath=no
12097      need_lib_prefix=no
12098      runpath_var=LD_RUN_PATH
12099      ;;
12100    siemens)
12101      need_lib_prefix=no
12102      ;;
12103    motorola)
12104      need_lib_prefix=no
12105      need_version=no
12106      shlibpath_overrides_runpath=no
12107      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12108      ;;
12109  esac
12110  ;;
12111
12112sysv4*MP*)
12113  if test -d /usr/nec ;then
12114    version_type=linux
12115    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12116    soname_spec='$libname${shared_ext}.$major'
12117    shlibpath_var=LD_LIBRARY_PATH
12118  fi
12119  ;;
12120
12121sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12122  version_type=freebsd-elf
12123  need_lib_prefix=no
12124  need_version=no
12125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12126  soname_spec='${libname}${release}${shared_ext}$major'
12127  shlibpath_var=LD_LIBRARY_PATH
12128  shlibpath_overrides_runpath=yes
12129  hardcode_into_libs=yes
12130  if test "$with_gnu_ld" = yes; then
12131    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12132  else
12133    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12134    case $host_os in
12135      sco3.2v5*)
12136        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12137	;;
12138    esac
12139  fi
12140  sys_lib_dlsearch_path_spec='/usr/lib'
12141  ;;
12142
12143tpf*)
12144  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12145  version_type=linux
12146  need_lib_prefix=no
12147  need_version=no
12148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149  shlibpath_var=LD_LIBRARY_PATH
12150  shlibpath_overrides_runpath=no
12151  hardcode_into_libs=yes
12152  ;;
12153
12154uts4*)
12155  version_type=linux
12156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157  soname_spec='${libname}${release}${shared_ext}$major'
12158  shlibpath_var=LD_LIBRARY_PATH
12159  ;;
12160
12161*)
12162  dynamic_linker=no
12163  ;;
12164esac
12165{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12166$as_echo "$dynamic_linker" >&6; }
12167test "$dynamic_linker" = no && can_build_shared=no
12168
12169variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12170if test "$GCC" = yes; then
12171  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12172fi
12173
12174if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12175  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12176fi
12177if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12178  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12179fi
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12268$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12269hardcode_action=
12270if test -n "$hardcode_libdir_flag_spec" ||
12271   test -n "$runpath_var" ||
12272   test "X$hardcode_automatic" = "Xyes" ; then
12273
12274  # We can hardcode non-existent directories.
12275  if test "$hardcode_direct" != no &&
12276     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12277     # have to relink, otherwise we might link with an installed library
12278     # when we should be linking with a yet-to-be-installed one
12279     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12280     test "$hardcode_minus_L" != no; then
12281    # Linking always hardcodes the temporary library directory.
12282    hardcode_action=relink
12283  else
12284    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12285    hardcode_action=immediate
12286  fi
12287else
12288  # We cannot hardcode anything, or else we can only hardcode existing
12289  # directories.
12290  hardcode_action=unsupported
12291fi
12292{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12293$as_echo "$hardcode_action" >&6; }
12294
12295if test "$hardcode_action" = relink ||
12296   test "$inherit_rpath" = yes; then
12297  # Fast installation is not supported
12298  enable_fast_install=no
12299elif test "$shlibpath_overrides_runpath" = yes ||
12300     test "$enable_shared" = no; then
12301  # Fast installation is not necessary
12302  enable_fast_install=needless
12303fi
12304
12305
12306
12307
12308
12309
12310  if test "x$enable_dlopen" != xyes; then
12311  enable_dlopen=unknown
12312  enable_dlopen_self=unknown
12313  enable_dlopen_self_static=unknown
12314else
12315  lt_cv_dlopen=no
12316  lt_cv_dlopen_libs=
12317
12318  case $host_os in
12319  beos*)
12320    lt_cv_dlopen="load_add_on"
12321    lt_cv_dlopen_libs=
12322    lt_cv_dlopen_self=yes
12323    ;;
12324
12325  mingw* | pw32* | cegcc*)
12326    lt_cv_dlopen="LoadLibrary"
12327    lt_cv_dlopen_libs=
12328    ;;
12329
12330  cygwin*)
12331    lt_cv_dlopen="dlopen"
12332    lt_cv_dlopen_libs=
12333    ;;
12334
12335  darwin*)
12336  # if libdl is installed we need to link against it
12337    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12338$as_echo_n "checking for dlopen in -ldl... " >&6; }
12339if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12340  $as_echo_n "(cached) " >&6
12341else
12342  ac_check_lib_save_LIBS=$LIBS
12343LIBS="-ldl  $LIBS"
12344cat >conftest.$ac_ext <<_ACEOF
12345/* confdefs.h.  */
12346_ACEOF
12347cat confdefs.h >>conftest.$ac_ext
12348cat >>conftest.$ac_ext <<_ACEOF
12349/* end confdefs.h.  */
12350
12351/* Override any GCC internal prototype to avoid an error.
12352   Use char because int might match the return type of a GCC
12353   builtin and then its argument prototype would still apply.  */
12354#ifdef __cplusplus
12355extern "C"
12356#endif
12357char dlopen ();
12358int
12359main ()
12360{
12361return dlopen ();
12362  ;
12363  return 0;
12364}
12365_ACEOF
12366rm -f conftest.$ac_objext conftest$ac_exeext
12367if { (ac_try="$ac_link"
12368case "(($ac_try" in
12369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370  *) ac_try_echo=$ac_try;;
12371esac
12372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12373$as_echo "$ac_try_echo") >&5
12374  (eval "$ac_link") 2>conftest.er1
12375  ac_status=$?
12376  grep -v '^ *+' conftest.er1 >conftest.err
12377  rm -f conftest.er1
12378  cat conftest.err >&5
12379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380  (exit $ac_status); } && {
12381	 test -z "$ac_c_werror_flag" ||
12382	 test ! -s conftest.err
12383       } && test -s conftest$ac_exeext && {
12384	 test "$cross_compiling" = yes ||
12385	 $as_test_x conftest$ac_exeext
12386       }; then
12387  ac_cv_lib_dl_dlopen=yes
12388else
12389  $as_echo "$as_me: failed program was:" >&5
12390sed 's/^/| /' conftest.$ac_ext >&5
12391
12392	ac_cv_lib_dl_dlopen=no
12393fi
12394
12395rm -rf conftest.dSYM
12396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12397      conftest$ac_exeext conftest.$ac_ext
12398LIBS=$ac_check_lib_save_LIBS
12399fi
12400{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12401$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12402if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12403  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12404else
12405
12406    lt_cv_dlopen="dyld"
12407    lt_cv_dlopen_libs=
12408    lt_cv_dlopen_self=yes
12409
12410fi
12411
12412    ;;
12413
12414  *)
12415    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12416$as_echo_n "checking for shl_load... " >&6; }
12417if test "${ac_cv_func_shl_load+set}" = set; then
12418  $as_echo_n "(cached) " >&6
12419else
12420  cat >conftest.$ac_ext <<_ACEOF
12421/* confdefs.h.  */
12422_ACEOF
12423cat confdefs.h >>conftest.$ac_ext
12424cat >>conftest.$ac_ext <<_ACEOF
12425/* end confdefs.h.  */
12426/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12427   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12428#define shl_load innocuous_shl_load
12429
12430/* System header to define __stub macros and hopefully few prototypes,
12431    which can conflict with char shl_load (); below.
12432    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12433    <limits.h> exists even on freestanding compilers.  */
12434
12435#ifdef __STDC__
12436# include <limits.h>
12437#else
12438# include <assert.h>
12439#endif
12440
12441#undef shl_load
12442
12443/* Override any GCC internal prototype to avoid an error.
12444   Use char because int might match the return type of a GCC
12445   builtin and then its argument prototype would still apply.  */
12446#ifdef __cplusplus
12447extern "C"
12448#endif
12449char shl_load ();
12450/* The GNU C library defines this for functions which it implements
12451    to always fail with ENOSYS.  Some functions are actually named
12452    something starting with __ and the normal name is an alias.  */
12453#if defined __stub_shl_load || defined __stub___shl_load
12454choke me
12455#endif
12456
12457int
12458main ()
12459{
12460return shl_load ();
12461  ;
12462  return 0;
12463}
12464_ACEOF
12465rm -f conftest.$ac_objext conftest$ac_exeext
12466if { (ac_try="$ac_link"
12467case "(($ac_try" in
12468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469  *) ac_try_echo=$ac_try;;
12470esac
12471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12472$as_echo "$ac_try_echo") >&5
12473  (eval "$ac_link") 2>conftest.er1
12474  ac_status=$?
12475  grep -v '^ *+' conftest.er1 >conftest.err
12476  rm -f conftest.er1
12477  cat conftest.err >&5
12478  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479  (exit $ac_status); } && {
12480	 test -z "$ac_c_werror_flag" ||
12481	 test ! -s conftest.err
12482       } && test -s conftest$ac_exeext && {
12483	 test "$cross_compiling" = yes ||
12484	 $as_test_x conftest$ac_exeext
12485       }; then
12486  ac_cv_func_shl_load=yes
12487else
12488  $as_echo "$as_me: failed program was:" >&5
12489sed 's/^/| /' conftest.$ac_ext >&5
12490
12491	ac_cv_func_shl_load=no
12492fi
12493
12494rm -rf conftest.dSYM
12495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12496      conftest$ac_exeext conftest.$ac_ext
12497fi
12498{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12499$as_echo "$ac_cv_func_shl_load" >&6; }
12500if test "x$ac_cv_func_shl_load" = x""yes; then
12501  lt_cv_dlopen="shl_load"
12502else
12503  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12504$as_echo_n "checking for shl_load in -ldld... " >&6; }
12505if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12506  $as_echo_n "(cached) " >&6
12507else
12508  ac_check_lib_save_LIBS=$LIBS
12509LIBS="-ldld  $LIBS"
12510cat >conftest.$ac_ext <<_ACEOF
12511/* confdefs.h.  */
12512_ACEOF
12513cat confdefs.h >>conftest.$ac_ext
12514cat >>conftest.$ac_ext <<_ACEOF
12515/* end confdefs.h.  */
12516
12517/* Override any GCC internal prototype to avoid an error.
12518   Use char because int might match the return type of a GCC
12519   builtin and then its argument prototype would still apply.  */
12520#ifdef __cplusplus
12521extern "C"
12522#endif
12523char shl_load ();
12524int
12525main ()
12526{
12527return shl_load ();
12528  ;
12529  return 0;
12530}
12531_ACEOF
12532rm -f conftest.$ac_objext conftest$ac_exeext
12533if { (ac_try="$ac_link"
12534case "(($ac_try" in
12535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536  *) ac_try_echo=$ac_try;;
12537esac
12538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12539$as_echo "$ac_try_echo") >&5
12540  (eval "$ac_link") 2>conftest.er1
12541  ac_status=$?
12542  grep -v '^ *+' conftest.er1 >conftest.err
12543  rm -f conftest.er1
12544  cat conftest.err >&5
12545  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546  (exit $ac_status); } && {
12547	 test -z "$ac_c_werror_flag" ||
12548	 test ! -s conftest.err
12549       } && test -s conftest$ac_exeext && {
12550	 test "$cross_compiling" = yes ||
12551	 $as_test_x conftest$ac_exeext
12552       }; then
12553  ac_cv_lib_dld_shl_load=yes
12554else
12555  $as_echo "$as_me: failed program was:" >&5
12556sed 's/^/| /' conftest.$ac_ext >&5
12557
12558	ac_cv_lib_dld_shl_load=no
12559fi
12560
12561rm -rf conftest.dSYM
12562rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12563      conftest$ac_exeext conftest.$ac_ext
12564LIBS=$ac_check_lib_save_LIBS
12565fi
12566{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12567$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12568if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12569  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12570else
12571  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12572$as_echo_n "checking for dlopen... " >&6; }
12573if test "${ac_cv_func_dlopen+set}" = set; then
12574  $as_echo_n "(cached) " >&6
12575else
12576  cat >conftest.$ac_ext <<_ACEOF
12577/* confdefs.h.  */
12578_ACEOF
12579cat confdefs.h >>conftest.$ac_ext
12580cat >>conftest.$ac_ext <<_ACEOF
12581/* end confdefs.h.  */
12582/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12583   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12584#define dlopen innocuous_dlopen
12585
12586/* System header to define __stub macros and hopefully few prototypes,
12587    which can conflict with char dlopen (); below.
12588    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12589    <limits.h> exists even on freestanding compilers.  */
12590
12591#ifdef __STDC__
12592# include <limits.h>
12593#else
12594# include <assert.h>
12595#endif
12596
12597#undef dlopen
12598
12599/* Override any GCC internal prototype to avoid an error.
12600   Use char because int might match the return type of a GCC
12601   builtin and then its argument prototype would still apply.  */
12602#ifdef __cplusplus
12603extern "C"
12604#endif
12605char dlopen ();
12606/* The GNU C library defines this for functions which it implements
12607    to always fail with ENOSYS.  Some functions are actually named
12608    something starting with __ and the normal name is an alias.  */
12609#if defined __stub_dlopen || defined __stub___dlopen
12610choke me
12611#endif
12612
12613int
12614main ()
12615{
12616return dlopen ();
12617  ;
12618  return 0;
12619}
12620_ACEOF
12621rm -f conftest.$ac_objext conftest$ac_exeext
12622if { (ac_try="$ac_link"
12623case "(($ac_try" in
12624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625  *) ac_try_echo=$ac_try;;
12626esac
12627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12628$as_echo "$ac_try_echo") >&5
12629  (eval "$ac_link") 2>conftest.er1
12630  ac_status=$?
12631  grep -v '^ *+' conftest.er1 >conftest.err
12632  rm -f conftest.er1
12633  cat conftest.err >&5
12634  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635  (exit $ac_status); } && {
12636	 test -z "$ac_c_werror_flag" ||
12637	 test ! -s conftest.err
12638       } && test -s conftest$ac_exeext && {
12639	 test "$cross_compiling" = yes ||
12640	 $as_test_x conftest$ac_exeext
12641       }; then
12642  ac_cv_func_dlopen=yes
12643else
12644  $as_echo "$as_me: failed program was:" >&5
12645sed 's/^/| /' conftest.$ac_ext >&5
12646
12647	ac_cv_func_dlopen=no
12648fi
12649
12650rm -rf conftest.dSYM
12651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12652      conftest$ac_exeext conftest.$ac_ext
12653fi
12654{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12655$as_echo "$ac_cv_func_dlopen" >&6; }
12656if test "x$ac_cv_func_dlopen" = x""yes; then
12657  lt_cv_dlopen="dlopen"
12658else
12659  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12660$as_echo_n "checking for dlopen in -ldl... " >&6; }
12661if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12662  $as_echo_n "(cached) " >&6
12663else
12664  ac_check_lib_save_LIBS=$LIBS
12665LIBS="-ldl  $LIBS"
12666cat >conftest.$ac_ext <<_ACEOF
12667/* confdefs.h.  */
12668_ACEOF
12669cat confdefs.h >>conftest.$ac_ext
12670cat >>conftest.$ac_ext <<_ACEOF
12671/* end confdefs.h.  */
12672
12673/* Override any GCC internal prototype to avoid an error.
12674   Use char because int might match the return type of a GCC
12675   builtin and then its argument prototype would still apply.  */
12676#ifdef __cplusplus
12677extern "C"
12678#endif
12679char dlopen ();
12680int
12681main ()
12682{
12683return dlopen ();
12684  ;
12685  return 0;
12686}
12687_ACEOF
12688rm -f conftest.$ac_objext conftest$ac_exeext
12689if { (ac_try="$ac_link"
12690case "(($ac_try" in
12691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692  *) ac_try_echo=$ac_try;;
12693esac
12694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12695$as_echo "$ac_try_echo") >&5
12696  (eval "$ac_link") 2>conftest.er1
12697  ac_status=$?
12698  grep -v '^ *+' conftest.er1 >conftest.err
12699  rm -f conftest.er1
12700  cat conftest.err >&5
12701  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702  (exit $ac_status); } && {
12703	 test -z "$ac_c_werror_flag" ||
12704	 test ! -s conftest.err
12705       } && test -s conftest$ac_exeext && {
12706	 test "$cross_compiling" = yes ||
12707	 $as_test_x conftest$ac_exeext
12708       }; then
12709  ac_cv_lib_dl_dlopen=yes
12710else
12711  $as_echo "$as_me: failed program was:" >&5
12712sed 's/^/| /' conftest.$ac_ext >&5
12713
12714	ac_cv_lib_dl_dlopen=no
12715fi
12716
12717rm -rf conftest.dSYM
12718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12719      conftest$ac_exeext conftest.$ac_ext
12720LIBS=$ac_check_lib_save_LIBS
12721fi
12722{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12723$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12724if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12725  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12726else
12727  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12728$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12729if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12730  $as_echo_n "(cached) " >&6
12731else
12732  ac_check_lib_save_LIBS=$LIBS
12733LIBS="-lsvld  $LIBS"
12734cat >conftest.$ac_ext <<_ACEOF
12735/* confdefs.h.  */
12736_ACEOF
12737cat confdefs.h >>conftest.$ac_ext
12738cat >>conftest.$ac_ext <<_ACEOF
12739/* end confdefs.h.  */
12740
12741/* Override any GCC internal prototype to avoid an error.
12742   Use char because int might match the return type of a GCC
12743   builtin and then its argument prototype would still apply.  */
12744#ifdef __cplusplus
12745extern "C"
12746#endif
12747char dlopen ();
12748int
12749main ()
12750{
12751return dlopen ();
12752  ;
12753  return 0;
12754}
12755_ACEOF
12756rm -f conftest.$ac_objext conftest$ac_exeext
12757if { (ac_try="$ac_link"
12758case "(($ac_try" in
12759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760  *) ac_try_echo=$ac_try;;
12761esac
12762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12763$as_echo "$ac_try_echo") >&5
12764  (eval "$ac_link") 2>conftest.er1
12765  ac_status=$?
12766  grep -v '^ *+' conftest.er1 >conftest.err
12767  rm -f conftest.er1
12768  cat conftest.err >&5
12769  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770  (exit $ac_status); } && {
12771	 test -z "$ac_c_werror_flag" ||
12772	 test ! -s conftest.err
12773       } && test -s conftest$ac_exeext && {
12774	 test "$cross_compiling" = yes ||
12775	 $as_test_x conftest$ac_exeext
12776       }; then
12777  ac_cv_lib_svld_dlopen=yes
12778else
12779  $as_echo "$as_me: failed program was:" >&5
12780sed 's/^/| /' conftest.$ac_ext >&5
12781
12782	ac_cv_lib_svld_dlopen=no
12783fi
12784
12785rm -rf conftest.dSYM
12786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12787      conftest$ac_exeext conftest.$ac_ext
12788LIBS=$ac_check_lib_save_LIBS
12789fi
12790{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12791$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12792if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12793  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12794else
12795  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12796$as_echo_n "checking for dld_link in -ldld... " >&6; }
12797if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12798  $as_echo_n "(cached) " >&6
12799else
12800  ac_check_lib_save_LIBS=$LIBS
12801LIBS="-ldld  $LIBS"
12802cat >conftest.$ac_ext <<_ACEOF
12803/* confdefs.h.  */
12804_ACEOF
12805cat confdefs.h >>conftest.$ac_ext
12806cat >>conftest.$ac_ext <<_ACEOF
12807/* end confdefs.h.  */
12808
12809/* Override any GCC internal prototype to avoid an error.
12810   Use char because int might match the return type of a GCC
12811   builtin and then its argument prototype would still apply.  */
12812#ifdef __cplusplus
12813extern "C"
12814#endif
12815char dld_link ();
12816int
12817main ()
12818{
12819return dld_link ();
12820  ;
12821  return 0;
12822}
12823_ACEOF
12824rm -f conftest.$ac_objext conftest$ac_exeext
12825if { (ac_try="$ac_link"
12826case "(($ac_try" in
12827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828  *) ac_try_echo=$ac_try;;
12829esac
12830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12831$as_echo "$ac_try_echo") >&5
12832  (eval "$ac_link") 2>conftest.er1
12833  ac_status=$?
12834  grep -v '^ *+' conftest.er1 >conftest.err
12835  rm -f conftest.er1
12836  cat conftest.err >&5
12837  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838  (exit $ac_status); } && {
12839	 test -z "$ac_c_werror_flag" ||
12840	 test ! -s conftest.err
12841       } && test -s conftest$ac_exeext && {
12842	 test "$cross_compiling" = yes ||
12843	 $as_test_x conftest$ac_exeext
12844       }; then
12845  ac_cv_lib_dld_dld_link=yes
12846else
12847  $as_echo "$as_me: failed program was:" >&5
12848sed 's/^/| /' conftest.$ac_ext >&5
12849
12850	ac_cv_lib_dld_dld_link=no
12851fi
12852
12853rm -rf conftest.dSYM
12854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12855      conftest$ac_exeext conftest.$ac_ext
12856LIBS=$ac_check_lib_save_LIBS
12857fi
12858{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12859$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12860if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12861  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12862fi
12863
12864
12865fi
12866
12867
12868fi
12869
12870
12871fi
12872
12873
12874fi
12875
12876
12877fi
12878
12879    ;;
12880  esac
12881
12882  if test "x$lt_cv_dlopen" != xno; then
12883    enable_dlopen=yes
12884  else
12885    enable_dlopen=no
12886  fi
12887
12888  case $lt_cv_dlopen in
12889  dlopen)
12890    save_CPPFLAGS="$CPPFLAGS"
12891    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12892
12893    save_LDFLAGS="$LDFLAGS"
12894    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12895
12896    save_LIBS="$LIBS"
12897    LIBS="$lt_cv_dlopen_libs $LIBS"
12898
12899    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12900$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12901if test "${lt_cv_dlopen_self+set}" = set; then
12902  $as_echo_n "(cached) " >&6
12903else
12904  	  if test "$cross_compiling" = yes; then :
12905  lt_cv_dlopen_self=cross
12906else
12907  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12908  lt_status=$lt_dlunknown
12909  cat > conftest.$ac_ext <<_LT_EOF
12910#line 12910 "configure"
12911#include "confdefs.h"
12912
12913#if HAVE_DLFCN_H
12914#include <dlfcn.h>
12915#endif
12916
12917#include <stdio.h>
12918
12919#ifdef RTLD_GLOBAL
12920#  define LT_DLGLOBAL		RTLD_GLOBAL
12921#else
12922#  ifdef DL_GLOBAL
12923#    define LT_DLGLOBAL		DL_GLOBAL
12924#  else
12925#    define LT_DLGLOBAL		0
12926#  endif
12927#endif
12928
12929/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12930   find out it does not work in some platform. */
12931#ifndef LT_DLLAZY_OR_NOW
12932#  ifdef RTLD_LAZY
12933#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12934#  else
12935#    ifdef DL_LAZY
12936#      define LT_DLLAZY_OR_NOW		DL_LAZY
12937#    else
12938#      ifdef RTLD_NOW
12939#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12940#      else
12941#        ifdef DL_NOW
12942#          define LT_DLLAZY_OR_NOW	DL_NOW
12943#        else
12944#          define LT_DLLAZY_OR_NOW	0
12945#        endif
12946#      endif
12947#    endif
12948#  endif
12949#endif
12950
12951void fnord() { int i=42;}
12952int main ()
12953{
12954  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12955  int status = $lt_dlunknown;
12956
12957  if (self)
12958    {
12959      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12960      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12961      /* dlclose (self); */
12962    }
12963  else
12964    puts (dlerror ());
12965
12966  return status;
12967}
12968_LT_EOF
12969  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12970  (eval $ac_link) 2>&5
12971  ac_status=$?
12972  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12974    (./conftest; exit; ) >&5 2>/dev/null
12975    lt_status=$?
12976    case x$lt_status in
12977      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12978      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12979      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12980    esac
12981  else :
12982    # compilation failed
12983    lt_cv_dlopen_self=no
12984  fi
12985fi
12986rm -fr conftest*
12987
12988
12989fi
12990{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12991$as_echo "$lt_cv_dlopen_self" >&6; }
12992
12993    if test "x$lt_cv_dlopen_self" = xyes; then
12994      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12995      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12996$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12997if test "${lt_cv_dlopen_self_static+set}" = set; then
12998  $as_echo_n "(cached) " >&6
12999else
13000  	  if test "$cross_compiling" = yes; then :
13001  lt_cv_dlopen_self_static=cross
13002else
13003  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13004  lt_status=$lt_dlunknown
13005  cat > conftest.$ac_ext <<_LT_EOF
13006#line 13006 "configure"
13007#include "confdefs.h"
13008
13009#if HAVE_DLFCN_H
13010#include <dlfcn.h>
13011#endif
13012
13013#include <stdio.h>
13014
13015#ifdef RTLD_GLOBAL
13016#  define LT_DLGLOBAL		RTLD_GLOBAL
13017#else
13018#  ifdef DL_GLOBAL
13019#    define LT_DLGLOBAL		DL_GLOBAL
13020#  else
13021#    define LT_DLGLOBAL		0
13022#  endif
13023#endif
13024
13025/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13026   find out it does not work in some platform. */
13027#ifndef LT_DLLAZY_OR_NOW
13028#  ifdef RTLD_LAZY
13029#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13030#  else
13031#    ifdef DL_LAZY
13032#      define LT_DLLAZY_OR_NOW		DL_LAZY
13033#    else
13034#      ifdef RTLD_NOW
13035#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13036#      else
13037#        ifdef DL_NOW
13038#          define LT_DLLAZY_OR_NOW	DL_NOW
13039#        else
13040#          define LT_DLLAZY_OR_NOW	0
13041#        endif
13042#      endif
13043#    endif
13044#  endif
13045#endif
13046
13047void fnord() { int i=42;}
13048int main ()
13049{
13050  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13051  int status = $lt_dlunknown;
13052
13053  if (self)
13054    {
13055      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13056      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13057      /* dlclose (self); */
13058    }
13059  else
13060    puts (dlerror ());
13061
13062  return status;
13063}
13064_LT_EOF
13065  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13066  (eval $ac_link) 2>&5
13067  ac_status=$?
13068  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13070    (./conftest; exit; ) >&5 2>/dev/null
13071    lt_status=$?
13072    case x$lt_status in
13073      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13074      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13075      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13076    esac
13077  else :
13078    # compilation failed
13079    lt_cv_dlopen_self_static=no
13080  fi
13081fi
13082rm -fr conftest*
13083
13084
13085fi
13086{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13087$as_echo "$lt_cv_dlopen_self_static" >&6; }
13088    fi
13089
13090    CPPFLAGS="$save_CPPFLAGS"
13091    LDFLAGS="$save_LDFLAGS"
13092    LIBS="$save_LIBS"
13093    ;;
13094  esac
13095
13096  case $lt_cv_dlopen_self in
13097  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13098  *) enable_dlopen_self=unknown ;;
13099  esac
13100
13101  case $lt_cv_dlopen_self_static in
13102  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13103  *) enable_dlopen_self_static=unknown ;;
13104  esac
13105fi
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123striplib=
13124old_striplib=
13125{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13126$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13127if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13128  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13129  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13130  { $as_echo "$as_me:$LINENO: result: yes" >&5
13131$as_echo "yes" >&6; }
13132else
13133# FIXME - insert some real tests, host_os isn't really good enough
13134  case $host_os in
13135  darwin*)
13136    if test -n "$STRIP" ; then
13137      striplib="$STRIP -x"
13138      old_striplib="$STRIP -S"
13139      { $as_echo "$as_me:$LINENO: result: yes" >&5
13140$as_echo "yes" >&6; }
13141    else
13142      { $as_echo "$as_me:$LINENO: result: no" >&5
13143$as_echo "no" >&6; }
13144    fi
13145    ;;
13146  *)
13147    { $as_echo "$as_me:$LINENO: result: no" >&5
13148$as_echo "no" >&6; }
13149    ;;
13150  esac
13151fi
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164  # Report which library types will actually be built
13165  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13166$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13167  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13168$as_echo "$can_build_shared" >&6; }
13169
13170  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13171$as_echo_n "checking whether to build shared libraries... " >&6; }
13172  test "$can_build_shared" = "no" && enable_shared=no
13173
13174  # On AIX, shared libraries and static libraries use the same namespace, and
13175  # are all built from PIC.
13176  case $host_os in
13177  aix3*)
13178    test "$enable_shared" = yes && enable_static=no
13179    if test -n "$RANLIB"; then
13180      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13181      postinstall_cmds='$RANLIB $lib'
13182    fi
13183    ;;
13184
13185  aix[4-9]*)
13186    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13187      test "$enable_shared" = yes && enable_static=no
13188    fi
13189    ;;
13190  esac
13191  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13192$as_echo "$enable_shared" >&6; }
13193
13194  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13195$as_echo_n "checking whether to build static libraries... " >&6; }
13196  # Make sure either enable_shared or enable_static is yes.
13197  test "$enable_shared" = yes || enable_static=yes
13198  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13199$as_echo "$enable_static" >&6; }
13200
13201
13202
13203
13204fi
13205ac_ext=c
13206ac_cpp='$CPP $CPPFLAGS'
13207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13209ac_compiler_gnu=$ac_cv_c_compiler_gnu
13210
13211CC="$lt_save_CC"
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225        ac_config_commands="$ac_config_commands libtool"
13226
13227
13228
13229
13230# Only expand once:
13231
13232
13233
13234
13235{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
13236$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13237    # Check whether --enable-maintainer-mode was given.
13238if test "${enable_maintainer_mode+set}" = set; then
13239  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13240else
13241  USE_MAINTAINER_MODE=no
13242fi
13243
13244  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
13245$as_echo "$USE_MAINTAINER_MODE" >&6; }
13246   if test $USE_MAINTAINER_MODE = yes; then
13247  MAINTAINER_MODE_TRUE=
13248  MAINTAINER_MODE_FALSE='#'
13249else
13250  MAINTAINER_MODE_TRUE='#'
13251  MAINTAINER_MODE_FALSE=
13252fi
13253
13254  MAINT=$MAINTAINER_MODE_TRUE
13255
13256
13257
13258
13259for ac_header in sys/mman.h
13260do
13261as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13263  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13264$as_echo_n "checking for $ac_header... " >&6; }
13265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13266  $as_echo_n "(cached) " >&6
13267fi
13268ac_res=`eval 'as_val=${'$as_ac_Header'}
13269		 $as_echo "$as_val"'`
13270	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13271$as_echo "$ac_res" >&6; }
13272else
13273  # Is the header compilable?
13274{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13275$as_echo_n "checking $ac_header usability... " >&6; }
13276cat >conftest.$ac_ext <<_ACEOF
13277/* confdefs.h.  */
13278_ACEOF
13279cat confdefs.h >>conftest.$ac_ext
13280cat >>conftest.$ac_ext <<_ACEOF
13281/* end confdefs.h.  */
13282$ac_includes_default
13283#include <$ac_header>
13284_ACEOF
13285rm -f conftest.$ac_objext
13286if { (ac_try="$ac_compile"
13287case "(($ac_try" in
13288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289  *) ac_try_echo=$ac_try;;
13290esac
13291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13292$as_echo "$ac_try_echo") >&5
13293  (eval "$ac_compile") 2>conftest.er1
13294  ac_status=$?
13295  grep -v '^ *+' conftest.er1 >conftest.err
13296  rm -f conftest.er1
13297  cat conftest.err >&5
13298  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299  (exit $ac_status); } && {
13300	 test -z "$ac_c_werror_flag" ||
13301	 test ! -s conftest.err
13302       } && test -s conftest.$ac_objext; then
13303  ac_header_compiler=yes
13304else
13305  $as_echo "$as_me: failed program was:" >&5
13306sed 's/^/| /' conftest.$ac_ext >&5
13307
13308	ac_header_compiler=no
13309fi
13310
13311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13312{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13313$as_echo "$ac_header_compiler" >&6; }
13314
13315# Is the header present?
13316{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13317$as_echo_n "checking $ac_header presence... " >&6; }
13318cat >conftest.$ac_ext <<_ACEOF
13319/* confdefs.h.  */
13320_ACEOF
13321cat confdefs.h >>conftest.$ac_ext
13322cat >>conftest.$ac_ext <<_ACEOF
13323/* end confdefs.h.  */
13324#include <$ac_header>
13325_ACEOF
13326if { (ac_try="$ac_cpp conftest.$ac_ext"
13327case "(($ac_try" in
13328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329  *) ac_try_echo=$ac_try;;
13330esac
13331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13332$as_echo "$ac_try_echo") >&5
13333  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13334  ac_status=$?
13335  grep -v '^ *+' conftest.er1 >conftest.err
13336  rm -f conftest.er1
13337  cat conftest.err >&5
13338  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339  (exit $ac_status); } >/dev/null && {
13340	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13341	 test ! -s conftest.err
13342       }; then
13343  ac_header_preproc=yes
13344else
13345  $as_echo "$as_me: failed program was:" >&5
13346sed 's/^/| /' conftest.$ac_ext >&5
13347
13348  ac_header_preproc=no
13349fi
13350
13351rm -f conftest.err conftest.$ac_ext
13352{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13353$as_echo "$ac_header_preproc" >&6; }
13354
13355# So?  What about this header?
13356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13357  yes:no: )
13358    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13359$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13360    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13361$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13362    ac_header_preproc=yes
13363    ;;
13364  no:yes:* )
13365    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13366$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13367    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13368$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13369    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13370$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13371    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13372$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13373    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13374$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13375    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13376$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13377
13378    ;;
13379esac
13380{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13381$as_echo_n "checking for $ac_header... " >&6; }
13382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13383  $as_echo_n "(cached) " >&6
13384else
13385  eval "$as_ac_Header=\$ac_header_preproc"
13386fi
13387ac_res=`eval 'as_val=${'$as_ac_Header'}
13388		 $as_echo "$as_val"'`
13389	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13390$as_echo "$ac_res" >&6; }
13391
13392fi
13393as_val=`eval 'as_val=${'$as_ac_Header'}
13394		 $as_echo "$as_val"'`
13395   if test "x$as_val" = x""yes; then
13396  cat >>confdefs.h <<_ACEOF
13397#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13398_ACEOF
13399
13400fi
13401
13402done
13403
13404
13405for ac_header in sys/param.h
13406do
13407as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13408if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13409  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13410$as_echo_n "checking for $ac_header... " >&6; }
13411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13412  $as_echo_n "(cached) " >&6
13413fi
13414ac_res=`eval 'as_val=${'$as_ac_Header'}
13415		 $as_echo "$as_val"'`
13416	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13417$as_echo "$ac_res" >&6; }
13418else
13419  # Is the header compilable?
13420{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13421$as_echo_n "checking $ac_header usability... " >&6; }
13422cat >conftest.$ac_ext <<_ACEOF
13423/* confdefs.h.  */
13424_ACEOF
13425cat confdefs.h >>conftest.$ac_ext
13426cat >>conftest.$ac_ext <<_ACEOF
13427/* end confdefs.h.  */
13428$ac_includes_default
13429#include <$ac_header>
13430_ACEOF
13431rm -f conftest.$ac_objext
13432if { (ac_try="$ac_compile"
13433case "(($ac_try" in
13434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435  *) ac_try_echo=$ac_try;;
13436esac
13437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13438$as_echo "$ac_try_echo") >&5
13439  (eval "$ac_compile") 2>conftest.er1
13440  ac_status=$?
13441  grep -v '^ *+' conftest.er1 >conftest.err
13442  rm -f conftest.er1
13443  cat conftest.err >&5
13444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445  (exit $ac_status); } && {
13446	 test -z "$ac_c_werror_flag" ||
13447	 test ! -s conftest.err
13448       } && test -s conftest.$ac_objext; then
13449  ac_header_compiler=yes
13450else
13451  $as_echo "$as_me: failed program was:" >&5
13452sed 's/^/| /' conftest.$ac_ext >&5
13453
13454	ac_header_compiler=no
13455fi
13456
13457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13458{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13459$as_echo "$ac_header_compiler" >&6; }
13460
13461# Is the header present?
13462{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13463$as_echo_n "checking $ac_header presence... " >&6; }
13464cat >conftest.$ac_ext <<_ACEOF
13465/* confdefs.h.  */
13466_ACEOF
13467cat confdefs.h >>conftest.$ac_ext
13468cat >>conftest.$ac_ext <<_ACEOF
13469/* end confdefs.h.  */
13470#include <$ac_header>
13471_ACEOF
13472if { (ac_try="$ac_cpp conftest.$ac_ext"
13473case "(($ac_try" in
13474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475  *) ac_try_echo=$ac_try;;
13476esac
13477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13478$as_echo "$ac_try_echo") >&5
13479  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13480  ac_status=$?
13481  grep -v '^ *+' conftest.er1 >conftest.err
13482  rm -f conftest.er1
13483  cat conftest.err >&5
13484  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485  (exit $ac_status); } >/dev/null && {
13486	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13487	 test ! -s conftest.err
13488       }; then
13489  ac_header_preproc=yes
13490else
13491  $as_echo "$as_me: failed program was:" >&5
13492sed 's/^/| /' conftest.$ac_ext >&5
13493
13494  ac_header_preproc=no
13495fi
13496
13497rm -f conftest.err conftest.$ac_ext
13498{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13499$as_echo "$ac_header_preproc" >&6; }
13500
13501# So?  What about this header?
13502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13503  yes:no: )
13504    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13505$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13506    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13507$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13508    ac_header_preproc=yes
13509    ;;
13510  no:yes:* )
13511    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13512$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13513    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13514$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13515    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13516$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13517    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13518$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13519    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13520$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13521    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13522$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13523
13524    ;;
13525esac
13526{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13527$as_echo_n "checking for $ac_header... " >&6; }
13528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13529  $as_echo_n "(cached) " >&6
13530else
13531  eval "$as_ac_Header=\$ac_header_preproc"
13532fi
13533ac_res=`eval 'as_val=${'$as_ac_Header'}
13534		 $as_echo "$as_val"'`
13535	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13536$as_echo "$ac_res" >&6; }
13537
13538fi
13539as_val=`eval 'as_val=${'$as_ac_Header'}
13540		 $as_echo "$as_val"'`
13541   if test "x$as_val" = x""yes; then
13542  cat >>confdefs.h <<_ACEOF
13543#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13544_ACEOF
13545
13546fi
13547
13548done
13549
13550
13551for ac_header in string.h
13552do
13553as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13555  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13556$as_echo_n "checking for $ac_header... " >&6; }
13557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13558  $as_echo_n "(cached) " >&6
13559fi
13560ac_res=`eval 'as_val=${'$as_ac_Header'}
13561		 $as_echo "$as_val"'`
13562	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13563$as_echo "$ac_res" >&6; }
13564else
13565  # Is the header compilable?
13566{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13567$as_echo_n "checking $ac_header usability... " >&6; }
13568cat >conftest.$ac_ext <<_ACEOF
13569/* confdefs.h.  */
13570_ACEOF
13571cat confdefs.h >>conftest.$ac_ext
13572cat >>conftest.$ac_ext <<_ACEOF
13573/* end confdefs.h.  */
13574$ac_includes_default
13575#include <$ac_header>
13576_ACEOF
13577rm -f conftest.$ac_objext
13578if { (ac_try="$ac_compile"
13579case "(($ac_try" in
13580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581  *) ac_try_echo=$ac_try;;
13582esac
13583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13584$as_echo "$ac_try_echo") >&5
13585  (eval "$ac_compile") 2>conftest.er1
13586  ac_status=$?
13587  grep -v '^ *+' conftest.er1 >conftest.err
13588  rm -f conftest.er1
13589  cat conftest.err >&5
13590  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591  (exit $ac_status); } && {
13592	 test -z "$ac_c_werror_flag" ||
13593	 test ! -s conftest.err
13594       } && test -s conftest.$ac_objext; then
13595  ac_header_compiler=yes
13596else
13597  $as_echo "$as_me: failed program was:" >&5
13598sed 's/^/| /' conftest.$ac_ext >&5
13599
13600	ac_header_compiler=no
13601fi
13602
13603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13605$as_echo "$ac_header_compiler" >&6; }
13606
13607# Is the header present?
13608{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13609$as_echo_n "checking $ac_header presence... " >&6; }
13610cat >conftest.$ac_ext <<_ACEOF
13611/* confdefs.h.  */
13612_ACEOF
13613cat confdefs.h >>conftest.$ac_ext
13614cat >>conftest.$ac_ext <<_ACEOF
13615/* end confdefs.h.  */
13616#include <$ac_header>
13617_ACEOF
13618if { (ac_try="$ac_cpp conftest.$ac_ext"
13619case "(($ac_try" in
13620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621  *) ac_try_echo=$ac_try;;
13622esac
13623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13624$as_echo "$ac_try_echo") >&5
13625  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13626  ac_status=$?
13627  grep -v '^ *+' conftest.er1 >conftest.err
13628  rm -f conftest.er1
13629  cat conftest.err >&5
13630  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631  (exit $ac_status); } >/dev/null && {
13632	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13633	 test ! -s conftest.err
13634       }; then
13635  ac_header_preproc=yes
13636else
13637  $as_echo "$as_me: failed program was:" >&5
13638sed 's/^/| /' conftest.$ac_ext >&5
13639
13640  ac_header_preproc=no
13641fi
13642
13643rm -f conftest.err conftest.$ac_ext
13644{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13645$as_echo "$ac_header_preproc" >&6; }
13646
13647# So?  What about this header?
13648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13649  yes:no: )
13650    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13651$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13652    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13653$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13654    ac_header_preproc=yes
13655    ;;
13656  no:yes:* )
13657    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13658$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13659    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13660$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13661    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13662$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13663    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13664$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13665    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13666$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13667    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13668$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13669
13670    ;;
13671esac
13672{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13673$as_echo_n "checking for $ac_header... " >&6; }
13674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13675  $as_echo_n "(cached) " >&6
13676else
13677  eval "$as_ac_Header=\$ac_header_preproc"
13678fi
13679ac_res=`eval 'as_val=${'$as_ac_Header'}
13680		 $as_echo "$as_val"'`
13681	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13682$as_echo "$ac_res" >&6; }
13683
13684fi
13685as_val=`eval 'as_val=${'$as_ac_Header'}
13686		 $as_echo "$as_val"'`
13687   if test "x$as_val" = x""yes; then
13688  cat >>confdefs.h <<_ACEOF
13689#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13690_ACEOF
13691
13692fi
13693
13694done
13695
13696
13697for ac_header in stdlib.h
13698do
13699as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13701  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13702$as_echo_n "checking for $ac_header... " >&6; }
13703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13704  $as_echo_n "(cached) " >&6
13705fi
13706ac_res=`eval 'as_val=${'$as_ac_Header'}
13707		 $as_echo "$as_val"'`
13708	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13709$as_echo "$ac_res" >&6; }
13710else
13711  # Is the header compilable?
13712{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13713$as_echo_n "checking $ac_header usability... " >&6; }
13714cat >conftest.$ac_ext <<_ACEOF
13715/* confdefs.h.  */
13716_ACEOF
13717cat confdefs.h >>conftest.$ac_ext
13718cat >>conftest.$ac_ext <<_ACEOF
13719/* end confdefs.h.  */
13720$ac_includes_default
13721#include <$ac_header>
13722_ACEOF
13723rm -f conftest.$ac_objext
13724if { (ac_try="$ac_compile"
13725case "(($ac_try" in
13726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727  *) ac_try_echo=$ac_try;;
13728esac
13729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13730$as_echo "$ac_try_echo") >&5
13731  (eval "$ac_compile") 2>conftest.er1
13732  ac_status=$?
13733  grep -v '^ *+' conftest.er1 >conftest.err
13734  rm -f conftest.er1
13735  cat conftest.err >&5
13736  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737  (exit $ac_status); } && {
13738	 test -z "$ac_c_werror_flag" ||
13739	 test ! -s conftest.err
13740       } && test -s conftest.$ac_objext; then
13741  ac_header_compiler=yes
13742else
13743  $as_echo "$as_me: failed program was:" >&5
13744sed 's/^/| /' conftest.$ac_ext >&5
13745
13746	ac_header_compiler=no
13747fi
13748
13749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13751$as_echo "$ac_header_compiler" >&6; }
13752
13753# Is the header present?
13754{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13755$as_echo_n "checking $ac_header presence... " >&6; }
13756cat >conftest.$ac_ext <<_ACEOF
13757/* confdefs.h.  */
13758_ACEOF
13759cat confdefs.h >>conftest.$ac_ext
13760cat >>conftest.$ac_ext <<_ACEOF
13761/* end confdefs.h.  */
13762#include <$ac_header>
13763_ACEOF
13764if { (ac_try="$ac_cpp conftest.$ac_ext"
13765case "(($ac_try" in
13766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767  *) ac_try_echo=$ac_try;;
13768esac
13769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13770$as_echo "$ac_try_echo") >&5
13771  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13772  ac_status=$?
13773  grep -v '^ *+' conftest.er1 >conftest.err
13774  rm -f conftest.er1
13775  cat conftest.err >&5
13776  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777  (exit $ac_status); } >/dev/null && {
13778	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13779	 test ! -s conftest.err
13780       }; then
13781  ac_header_preproc=yes
13782else
13783  $as_echo "$as_me: failed program was:" >&5
13784sed 's/^/| /' conftest.$ac_ext >&5
13785
13786  ac_header_preproc=no
13787fi
13788
13789rm -f conftest.err conftest.$ac_ext
13790{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13791$as_echo "$ac_header_preproc" >&6; }
13792
13793# So?  What about this header?
13794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13795  yes:no: )
13796    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13797$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13798    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13799$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13800    ac_header_preproc=yes
13801    ;;
13802  no:yes:* )
13803    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13804$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13805    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13806$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13807    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13808$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13809    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13810$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13811    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13812$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13813    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13814$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13815
13816    ;;
13817esac
13818{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13819$as_echo_n "checking for $ac_header... " >&6; }
13820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13821  $as_echo_n "(cached) " >&6
13822else
13823  eval "$as_ac_Header=\$ac_header_preproc"
13824fi
13825ac_res=`eval 'as_val=${'$as_ac_Header'}
13826		 $as_echo "$as_val"'`
13827	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13828$as_echo "$ac_res" >&6; }
13829
13830fi
13831as_val=`eval 'as_val=${'$as_ac_Header'}
13832		 $as_echo "$as_val"'`
13833   if test "x$as_val" = x""yes; then
13834  cat >>confdefs.h <<_ACEOF
13835#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13836_ACEOF
13837
13838fi
13839
13840done
13841
13842
13843for ac_header in netdb.h
13844do
13845as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13847  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13848$as_echo_n "checking for $ac_header... " >&6; }
13849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13850  $as_echo_n "(cached) " >&6
13851fi
13852ac_res=`eval 'as_val=${'$as_ac_Header'}
13853		 $as_echo "$as_val"'`
13854	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13855$as_echo "$ac_res" >&6; }
13856else
13857  # Is the header compilable?
13858{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13859$as_echo_n "checking $ac_header usability... " >&6; }
13860cat >conftest.$ac_ext <<_ACEOF
13861/* confdefs.h.  */
13862_ACEOF
13863cat confdefs.h >>conftest.$ac_ext
13864cat >>conftest.$ac_ext <<_ACEOF
13865/* end confdefs.h.  */
13866$ac_includes_default
13867#include <$ac_header>
13868_ACEOF
13869rm -f conftest.$ac_objext
13870if { (ac_try="$ac_compile"
13871case "(($ac_try" in
13872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873  *) ac_try_echo=$ac_try;;
13874esac
13875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13876$as_echo "$ac_try_echo") >&5
13877  (eval "$ac_compile") 2>conftest.er1
13878  ac_status=$?
13879  grep -v '^ *+' conftest.er1 >conftest.err
13880  rm -f conftest.er1
13881  cat conftest.err >&5
13882  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883  (exit $ac_status); } && {
13884	 test -z "$ac_c_werror_flag" ||
13885	 test ! -s conftest.err
13886       } && test -s conftest.$ac_objext; then
13887  ac_header_compiler=yes
13888else
13889  $as_echo "$as_me: failed program was:" >&5
13890sed 's/^/| /' conftest.$ac_ext >&5
13891
13892	ac_header_compiler=no
13893fi
13894
13895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13896{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13897$as_echo "$ac_header_compiler" >&6; }
13898
13899# Is the header present?
13900{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13901$as_echo_n "checking $ac_header presence... " >&6; }
13902cat >conftest.$ac_ext <<_ACEOF
13903/* confdefs.h.  */
13904_ACEOF
13905cat confdefs.h >>conftest.$ac_ext
13906cat >>conftest.$ac_ext <<_ACEOF
13907/* end confdefs.h.  */
13908#include <$ac_header>
13909_ACEOF
13910if { (ac_try="$ac_cpp conftest.$ac_ext"
13911case "(($ac_try" in
13912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913  *) ac_try_echo=$ac_try;;
13914esac
13915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13916$as_echo "$ac_try_echo") >&5
13917  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13918  ac_status=$?
13919  grep -v '^ *+' conftest.er1 >conftest.err
13920  rm -f conftest.er1
13921  cat conftest.err >&5
13922  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923  (exit $ac_status); } >/dev/null && {
13924	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13925	 test ! -s conftest.err
13926       }; then
13927  ac_header_preproc=yes
13928else
13929  $as_echo "$as_me: failed program was:" >&5
13930sed 's/^/| /' conftest.$ac_ext >&5
13931
13932  ac_header_preproc=no
13933fi
13934
13935rm -f conftest.err conftest.$ac_ext
13936{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13937$as_echo "$ac_header_preproc" >&6; }
13938
13939# So?  What about this header?
13940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13941  yes:no: )
13942    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13943$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13944    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13945$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13946    ac_header_preproc=yes
13947    ;;
13948  no:yes:* )
13949    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13950$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13951    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13952$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13953    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13954$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13955    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13956$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13957    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13958$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13959    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13960$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13961
13962    ;;
13963esac
13964{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13965$as_echo_n "checking for $ac_header... " >&6; }
13966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13967  $as_echo_n "(cached) " >&6
13968else
13969  eval "$as_ac_Header=\$ac_header_preproc"
13970fi
13971ac_res=`eval 'as_val=${'$as_ac_Header'}
13972		 $as_echo "$as_val"'`
13973	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13974$as_echo "$ac_res" >&6; }
13975
13976fi
13977as_val=`eval 'as_val=${'$as_ac_Header'}
13978		 $as_echo "$as_val"'`
13979   if test "x$as_val" = x""yes; then
13980  cat >>confdefs.h <<_ACEOF
13981#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13982_ACEOF
13983
13984fi
13985
13986done
13987
13988
13989for ac_header in ctype.h
13990do
13991as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13993  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13994$as_echo_n "checking for $ac_header... " >&6; }
13995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13996  $as_echo_n "(cached) " >&6
13997fi
13998ac_res=`eval 'as_val=${'$as_ac_Header'}
13999		 $as_echo "$as_val"'`
14000	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14001$as_echo "$ac_res" >&6; }
14002else
14003  # Is the header compilable?
14004{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14005$as_echo_n "checking $ac_header usability... " >&6; }
14006cat >conftest.$ac_ext <<_ACEOF
14007/* confdefs.h.  */
14008_ACEOF
14009cat confdefs.h >>conftest.$ac_ext
14010cat >>conftest.$ac_ext <<_ACEOF
14011/* end confdefs.h.  */
14012$ac_includes_default
14013#include <$ac_header>
14014_ACEOF
14015rm -f conftest.$ac_objext
14016if { (ac_try="$ac_compile"
14017case "(($ac_try" in
14018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019  *) ac_try_echo=$ac_try;;
14020esac
14021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14022$as_echo "$ac_try_echo") >&5
14023  (eval "$ac_compile") 2>conftest.er1
14024  ac_status=$?
14025  grep -v '^ *+' conftest.er1 >conftest.err
14026  rm -f conftest.er1
14027  cat conftest.err >&5
14028  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029  (exit $ac_status); } && {
14030	 test -z "$ac_c_werror_flag" ||
14031	 test ! -s conftest.err
14032       } && test -s conftest.$ac_objext; then
14033  ac_header_compiler=yes
14034else
14035  $as_echo "$as_me: failed program was:" >&5
14036sed 's/^/| /' conftest.$ac_ext >&5
14037
14038	ac_header_compiler=no
14039fi
14040
14041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14043$as_echo "$ac_header_compiler" >&6; }
14044
14045# Is the header present?
14046{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14047$as_echo_n "checking $ac_header presence... " >&6; }
14048cat >conftest.$ac_ext <<_ACEOF
14049/* confdefs.h.  */
14050_ACEOF
14051cat confdefs.h >>conftest.$ac_ext
14052cat >>conftest.$ac_ext <<_ACEOF
14053/* end confdefs.h.  */
14054#include <$ac_header>
14055_ACEOF
14056if { (ac_try="$ac_cpp conftest.$ac_ext"
14057case "(($ac_try" in
14058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059  *) ac_try_echo=$ac_try;;
14060esac
14061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14062$as_echo "$ac_try_echo") >&5
14063  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14064  ac_status=$?
14065  grep -v '^ *+' conftest.er1 >conftest.err
14066  rm -f conftest.er1
14067  cat conftest.err >&5
14068  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069  (exit $ac_status); } >/dev/null && {
14070	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14071	 test ! -s conftest.err
14072       }; then
14073  ac_header_preproc=yes
14074else
14075  $as_echo "$as_me: failed program was:" >&5
14076sed 's/^/| /' conftest.$ac_ext >&5
14077
14078  ac_header_preproc=no
14079fi
14080
14081rm -f conftest.err conftest.$ac_ext
14082{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14083$as_echo "$ac_header_preproc" >&6; }
14084
14085# So?  What about this header?
14086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14087  yes:no: )
14088    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14089$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14090    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14091$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14092    ac_header_preproc=yes
14093    ;;
14094  no:yes:* )
14095    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14096$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14097    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14098$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14099    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14100$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14101    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14102$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14103    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14104$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14105    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14106$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14107
14108    ;;
14109esac
14110{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14111$as_echo_n "checking for $ac_header... " >&6; }
14112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14113  $as_echo_n "(cached) " >&6
14114else
14115  eval "$as_ac_Header=\$ac_header_preproc"
14116fi
14117ac_res=`eval 'as_val=${'$as_ac_Header'}
14118		 $as_echo "$as_val"'`
14119	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14120$as_echo "$ac_res" >&6; }
14121
14122fi
14123as_val=`eval 'as_val=${'$as_ac_Header'}
14124		 $as_echo "$as_val"'`
14125   if test "x$as_val" = x""yes; then
14126  cat >>confdefs.h <<_ACEOF
14127#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14128_ACEOF
14129
14130fi
14131
14132done
14133
14134
14135for ac_header in time.h
14136do
14137as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14139  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14140$as_echo_n "checking for $ac_header... " >&6; }
14141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14142  $as_echo_n "(cached) " >&6
14143fi
14144ac_res=`eval 'as_val=${'$as_ac_Header'}
14145		 $as_echo "$as_val"'`
14146	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14147$as_echo "$ac_res" >&6; }
14148else
14149  # Is the header compilable?
14150{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14151$as_echo_n "checking $ac_header usability... " >&6; }
14152cat >conftest.$ac_ext <<_ACEOF
14153/* confdefs.h.  */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h.  */
14158$ac_includes_default
14159#include <$ac_header>
14160_ACEOF
14161rm -f conftest.$ac_objext
14162if { (ac_try="$ac_compile"
14163case "(($ac_try" in
14164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165  *) ac_try_echo=$ac_try;;
14166esac
14167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14168$as_echo "$ac_try_echo") >&5
14169  (eval "$ac_compile") 2>conftest.er1
14170  ac_status=$?
14171  grep -v '^ *+' conftest.er1 >conftest.err
14172  rm -f conftest.er1
14173  cat conftest.err >&5
14174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175  (exit $ac_status); } && {
14176	 test -z "$ac_c_werror_flag" ||
14177	 test ! -s conftest.err
14178       } && test -s conftest.$ac_objext; then
14179  ac_header_compiler=yes
14180else
14181  $as_echo "$as_me: failed program was:" >&5
14182sed 's/^/| /' conftest.$ac_ext >&5
14183
14184	ac_header_compiler=no
14185fi
14186
14187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14188{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14189$as_echo "$ac_header_compiler" >&6; }
14190
14191# Is the header present?
14192{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14193$as_echo_n "checking $ac_header presence... " >&6; }
14194cat >conftest.$ac_ext <<_ACEOF
14195/* confdefs.h.  */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h.  */
14200#include <$ac_header>
14201_ACEOF
14202if { (ac_try="$ac_cpp conftest.$ac_ext"
14203case "(($ac_try" in
14204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205  *) ac_try_echo=$ac_try;;
14206esac
14207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14208$as_echo "$ac_try_echo") >&5
14209  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14210  ac_status=$?
14211  grep -v '^ *+' conftest.er1 >conftest.err
14212  rm -f conftest.er1
14213  cat conftest.err >&5
14214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215  (exit $ac_status); } >/dev/null && {
14216	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14217	 test ! -s conftest.err
14218       }; then
14219  ac_header_preproc=yes
14220else
14221  $as_echo "$as_me: failed program was:" >&5
14222sed 's/^/| /' conftest.$ac_ext >&5
14223
14224  ac_header_preproc=no
14225fi
14226
14227rm -f conftest.err conftest.$ac_ext
14228{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229$as_echo "$ac_header_preproc" >&6; }
14230
14231# So?  What about this header?
14232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233  yes:no: )
14234    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14235$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14236    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14237$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14238    ac_header_preproc=yes
14239    ;;
14240  no:yes:* )
14241    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14242$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14243    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14244$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14245    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14246$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14247    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14248$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14249    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14250$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14251    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14252$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14253
14254    ;;
14255esac
14256{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14257$as_echo_n "checking for $ac_header... " >&6; }
14258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14259  $as_echo_n "(cached) " >&6
14260else
14261  eval "$as_ac_Header=\$ac_header_preproc"
14262fi
14263ac_res=`eval 'as_val=${'$as_ac_Header'}
14264		 $as_echo "$as_val"'`
14265	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14266$as_echo "$ac_res" >&6; }
14267
14268fi
14269as_val=`eval 'as_val=${'$as_ac_Header'}
14270		 $as_echo "$as_val"'`
14271   if test "x$as_val" = x""yes; then
14272  cat >>confdefs.h <<_ACEOF
14273#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14274_ACEOF
14275
14276fi
14277
14278done
14279
14280
14281{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
14282$as_echo_n "checking for off_t... " >&6; }
14283if test "${ac_cv_type_off_t+set}" = set; then
14284  $as_echo_n "(cached) " >&6
14285else
14286  ac_cv_type_off_t=no
14287cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h.  */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h.  */
14293$ac_includes_default
14294int
14295main ()
14296{
14297if (sizeof (off_t))
14298       return 0;
14299  ;
14300  return 0;
14301}
14302_ACEOF
14303rm -f conftest.$ac_objext
14304if { (ac_try="$ac_compile"
14305case "(($ac_try" in
14306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307  *) ac_try_echo=$ac_try;;
14308esac
14309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14310$as_echo "$ac_try_echo") >&5
14311  (eval "$ac_compile") 2>conftest.er1
14312  ac_status=$?
14313  grep -v '^ *+' conftest.er1 >conftest.err
14314  rm -f conftest.er1
14315  cat conftest.err >&5
14316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317  (exit $ac_status); } && {
14318	 test -z "$ac_c_werror_flag" ||
14319	 test ! -s conftest.err
14320       } && test -s conftest.$ac_objext; then
14321  cat >conftest.$ac_ext <<_ACEOF
14322/* confdefs.h.  */
14323_ACEOF
14324cat confdefs.h >>conftest.$ac_ext
14325cat >>conftest.$ac_ext <<_ACEOF
14326/* end confdefs.h.  */
14327$ac_includes_default
14328int
14329main ()
14330{
14331if (sizeof ((off_t)))
14332	  return 0;
14333  ;
14334  return 0;
14335}
14336_ACEOF
14337rm -f conftest.$ac_objext
14338if { (ac_try="$ac_compile"
14339case "(($ac_try" in
14340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341  *) ac_try_echo=$ac_try;;
14342esac
14343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14344$as_echo "$ac_try_echo") >&5
14345  (eval "$ac_compile") 2>conftest.er1
14346  ac_status=$?
14347  grep -v '^ *+' conftest.er1 >conftest.err
14348  rm -f conftest.er1
14349  cat conftest.err >&5
14350  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351  (exit $ac_status); } && {
14352	 test -z "$ac_c_werror_flag" ||
14353	 test ! -s conftest.err
14354       } && test -s conftest.$ac_objext; then
14355  :
14356else
14357  $as_echo "$as_me: failed program was:" >&5
14358sed 's/^/| /' conftest.$ac_ext >&5
14359
14360	ac_cv_type_off_t=yes
14361fi
14362
14363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14364else
14365  $as_echo "$as_me: failed program was:" >&5
14366sed 's/^/| /' conftest.$ac_ext >&5
14367
14368
14369fi
14370
14371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372fi
14373{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14374$as_echo "$ac_cv_type_off_t" >&6; }
14375if test "x$ac_cv_type_off_t" = x""yes; then
14376  :
14377else
14378
14379cat >>confdefs.h <<_ACEOF
14380#define off_t long int
14381_ACEOF
14382
14383fi
14384
14385{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
14386$as_echo_n "checking for size_t... " >&6; }
14387if test "${ac_cv_type_size_t+set}" = set; then
14388  $as_echo_n "(cached) " >&6
14389else
14390  ac_cv_type_size_t=no
14391cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h.  */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
14396/* end confdefs.h.  */
14397$ac_includes_default
14398int
14399main ()
14400{
14401if (sizeof (size_t))
14402       return 0;
14403  ;
14404  return 0;
14405}
14406_ACEOF
14407rm -f conftest.$ac_objext
14408if { (ac_try="$ac_compile"
14409case "(($ac_try" in
14410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411  *) ac_try_echo=$ac_try;;
14412esac
14413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14414$as_echo "$ac_try_echo") >&5
14415  (eval "$ac_compile") 2>conftest.er1
14416  ac_status=$?
14417  grep -v '^ *+' conftest.er1 >conftest.err
14418  rm -f conftest.er1
14419  cat conftest.err >&5
14420  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421  (exit $ac_status); } && {
14422	 test -z "$ac_c_werror_flag" ||
14423	 test ! -s conftest.err
14424       } && test -s conftest.$ac_objext; then
14425  cat >conftest.$ac_ext <<_ACEOF
14426/* confdefs.h.  */
14427_ACEOF
14428cat confdefs.h >>conftest.$ac_ext
14429cat >>conftest.$ac_ext <<_ACEOF
14430/* end confdefs.h.  */
14431$ac_includes_default
14432int
14433main ()
14434{
14435if (sizeof ((size_t)))
14436	  return 0;
14437  ;
14438  return 0;
14439}
14440_ACEOF
14441rm -f conftest.$ac_objext
14442if { (ac_try="$ac_compile"
14443case "(($ac_try" in
14444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14445  *) ac_try_echo=$ac_try;;
14446esac
14447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14448$as_echo "$ac_try_echo") >&5
14449  (eval "$ac_compile") 2>conftest.er1
14450  ac_status=$?
14451  grep -v '^ *+' conftest.er1 >conftest.err
14452  rm -f conftest.er1
14453  cat conftest.err >&5
14454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455  (exit $ac_status); } && {
14456	 test -z "$ac_c_werror_flag" ||
14457	 test ! -s conftest.err
14458       } && test -s conftest.$ac_objext; then
14459  :
14460else
14461  $as_echo "$as_me: failed program was:" >&5
14462sed 's/^/| /' conftest.$ac_ext >&5
14463
14464	ac_cv_type_size_t=yes
14465fi
14466
14467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468else
14469  $as_echo "$as_me: failed program was:" >&5
14470sed 's/^/| /' conftest.$ac_ext >&5
14471
14472
14473fi
14474
14475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14476fi
14477{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14478$as_echo "$ac_cv_type_size_t" >&6; }
14479if test "x$ac_cv_type_size_t" = x""yes; then
14480  :
14481else
14482
14483cat >>confdefs.h <<_ACEOF
14484#define size_t unsigned int
14485_ACEOF
14486
14487fi
14488
14489{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
14490$as_echo_n "checking for ssize_t... " >&6; }
14491if test "${ac_cv_type_ssize_t+set}" = set; then
14492  $as_echo_n "(cached) " >&6
14493else
14494  ac_cv_type_ssize_t=no
14495cat >conftest.$ac_ext <<_ACEOF
14496/* confdefs.h.  */
14497_ACEOF
14498cat confdefs.h >>conftest.$ac_ext
14499cat >>conftest.$ac_ext <<_ACEOF
14500/* end confdefs.h.  */
14501$ac_includes_default
14502int
14503main ()
14504{
14505if (sizeof (ssize_t))
14506       return 0;
14507  ;
14508  return 0;
14509}
14510_ACEOF
14511rm -f conftest.$ac_objext
14512if { (ac_try="$ac_compile"
14513case "(($ac_try" in
14514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515  *) ac_try_echo=$ac_try;;
14516esac
14517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14518$as_echo "$ac_try_echo") >&5
14519  (eval "$ac_compile") 2>conftest.er1
14520  ac_status=$?
14521  grep -v '^ *+' conftest.er1 >conftest.err
14522  rm -f conftest.er1
14523  cat conftest.err >&5
14524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525  (exit $ac_status); } && {
14526	 test -z "$ac_c_werror_flag" ||
14527	 test ! -s conftest.err
14528       } && test -s conftest.$ac_objext; then
14529  cat >conftest.$ac_ext <<_ACEOF
14530/* confdefs.h.  */
14531_ACEOF
14532cat confdefs.h >>conftest.$ac_ext
14533cat >>conftest.$ac_ext <<_ACEOF
14534/* end confdefs.h.  */
14535$ac_includes_default
14536int
14537main ()
14538{
14539if (sizeof ((ssize_t)))
14540	  return 0;
14541  ;
14542  return 0;
14543}
14544_ACEOF
14545rm -f conftest.$ac_objext
14546if { (ac_try="$ac_compile"
14547case "(($ac_try" in
14548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549  *) ac_try_echo=$ac_try;;
14550esac
14551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14552$as_echo "$ac_try_echo") >&5
14553  (eval "$ac_compile") 2>conftest.er1
14554  ac_status=$?
14555  grep -v '^ *+' conftest.er1 >conftest.err
14556  rm -f conftest.er1
14557  cat conftest.err >&5
14558  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559  (exit $ac_status); } && {
14560	 test -z "$ac_c_werror_flag" ||
14561	 test ! -s conftest.err
14562       } && test -s conftest.$ac_objext; then
14563  :
14564else
14565  $as_echo "$as_me: failed program was:" >&5
14566sed 's/^/| /' conftest.$ac_ext >&5
14567
14568	ac_cv_type_ssize_t=yes
14569fi
14570
14571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14572else
14573  $as_echo "$as_me: failed program was:" >&5
14574sed 's/^/| /' conftest.$ac_ext >&5
14575
14576
14577fi
14578
14579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580fi
14581{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14582$as_echo "$ac_cv_type_ssize_t" >&6; }
14583if test "x$ac_cv_type_ssize_t" = x""yes; then
14584  :
14585else
14586
14587cat >>confdefs.h <<_ACEOF
14588#define ssize_t int
14589_ACEOF
14590
14591fi
14592
14593
14594{ $as_echo "$as_me:$LINENO: checking for nfds_t" >&5
14595$as_echo_n "checking for nfds_t... " >&6; }
14596cat >conftest.$ac_ext <<_ACEOF
14597/* confdefs.h.  */
14598_ACEOF
14599cat confdefs.h >>conftest.$ac_ext
14600cat >>conftest.$ac_ext <<_ACEOF
14601/* end confdefs.h.  */
14602
14603	#include <sys/types.h>
14604	#include <poll.h>
14605
14606int
14607main ()
14608{
14609
14610	nfds_t nfds = 1;
14611
14612
14613  ;
14614  return 0;
14615}
14616_ACEOF
14617rm -f conftest.$ac_objext
14618if { (ac_try="$ac_compile"
14619case "(($ac_try" in
14620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621  *) ac_try_echo=$ac_try;;
14622esac
14623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14624$as_echo "$ac_try_echo") >&5
14625  (eval "$ac_compile") 2>conftest.er1
14626  ac_status=$?
14627  grep -v '^ *+' conftest.er1 >conftest.err
14628  rm -f conftest.er1
14629  cat conftest.err >&5
14630  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631  (exit $ac_status); } && {
14632	 test -z "$ac_c_werror_flag" ||
14633	 test ! -s conftest.err
14634       } && test -s conftest.$ac_objext; then
14635  { $as_echo "$as_me:$LINENO: result: yes" >&5
14636$as_echo "yes" >&6; }
14637
14638else
14639  $as_echo "$as_me: failed program was:" >&5
14640sed 's/^/| /' conftest.$ac_ext >&5
14641
14642
14643cat >>confdefs.h <<\_ACEOF
14644#define nfds_t unsigned int
14645_ACEOF
14646
14647	{ $as_echo "$as_me:$LINENO: result: no" >&5
14648$as_echo "no" >&6; }
14649
14650fi
14651
14652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653
14654
14655
14656
14657for ac_func in strftime localtime gmtime_r
14658do
14659as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14660{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14661$as_echo_n "checking for $ac_func... " >&6; }
14662if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14663  $as_echo_n "(cached) " >&6
14664else
14665  cat >conftest.$ac_ext <<_ACEOF
14666/* confdefs.h.  */
14667_ACEOF
14668cat confdefs.h >>conftest.$ac_ext
14669cat >>conftest.$ac_ext <<_ACEOF
14670/* end confdefs.h.  */
14671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14672   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14673#define $ac_func innocuous_$ac_func
14674
14675/* System header to define __stub macros and hopefully few prototypes,
14676    which can conflict with char $ac_func (); below.
14677    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14678    <limits.h> exists even on freestanding compilers.  */
14679
14680#ifdef __STDC__
14681# include <limits.h>
14682#else
14683# include <assert.h>
14684#endif
14685
14686#undef $ac_func
14687
14688/* Override any GCC internal prototype to avoid an error.
14689   Use char because int might match the return type of a GCC
14690   builtin and then its argument prototype would still apply.  */
14691#ifdef __cplusplus
14692extern "C"
14693#endif
14694char $ac_func ();
14695/* The GNU C library defines this for functions which it implements
14696    to always fail with ENOSYS.  Some functions are actually named
14697    something starting with __ and the normal name is an alias.  */
14698#if defined __stub_$ac_func || defined __stub___$ac_func
14699choke me
14700#endif
14701
14702int
14703main ()
14704{
14705return $ac_func ();
14706  ;
14707  return 0;
14708}
14709_ACEOF
14710rm -f conftest.$ac_objext conftest$ac_exeext
14711if { (ac_try="$ac_link"
14712case "(($ac_try" in
14713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714  *) ac_try_echo=$ac_try;;
14715esac
14716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14717$as_echo "$ac_try_echo") >&5
14718  (eval "$ac_link") 2>conftest.er1
14719  ac_status=$?
14720  grep -v '^ *+' conftest.er1 >conftest.err
14721  rm -f conftest.er1
14722  cat conftest.err >&5
14723  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724  (exit $ac_status); } && {
14725	 test -z "$ac_c_werror_flag" ||
14726	 test ! -s conftest.err
14727       } && test -s conftest$ac_exeext && {
14728	 test "$cross_compiling" = yes ||
14729	 $as_test_x conftest$ac_exeext
14730       }; then
14731  eval "$as_ac_var=yes"
14732else
14733  $as_echo "$as_me: failed program was:" >&5
14734sed 's/^/| /' conftest.$ac_ext >&5
14735
14736	eval "$as_ac_var=no"
14737fi
14738
14739rm -rf conftest.dSYM
14740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14741      conftest$ac_exeext conftest.$ac_ext
14742fi
14743ac_res=`eval 'as_val=${'$as_ac_var'}
14744		 $as_echo "$as_val"'`
14745	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14746$as_echo "$ac_res" >&6; }
14747as_val=`eval 'as_val=${'$as_ac_var'}
14748		 $as_echo "$as_val"'`
14749   if test "x$as_val" = x""yes; then
14750  cat >>confdefs.h <<_ACEOF
14751#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14752_ACEOF
14753
14754fi
14755done
14756
14757
14758
14759
14760for ac_header in stdlib.h unistd.h
14761do
14762as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14764  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14765$as_echo_n "checking for $ac_header... " >&6; }
14766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14767  $as_echo_n "(cached) " >&6
14768fi
14769ac_res=`eval 'as_val=${'$as_ac_Header'}
14770		 $as_echo "$as_val"'`
14771	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14772$as_echo "$ac_res" >&6; }
14773else
14774  # Is the header compilable?
14775{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14776$as_echo_n "checking $ac_header usability... " >&6; }
14777cat >conftest.$ac_ext <<_ACEOF
14778/* confdefs.h.  */
14779_ACEOF
14780cat confdefs.h >>conftest.$ac_ext
14781cat >>conftest.$ac_ext <<_ACEOF
14782/* end confdefs.h.  */
14783$ac_includes_default
14784#include <$ac_header>
14785_ACEOF
14786rm -f conftest.$ac_objext
14787if { (ac_try="$ac_compile"
14788case "(($ac_try" in
14789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790  *) ac_try_echo=$ac_try;;
14791esac
14792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14793$as_echo "$ac_try_echo") >&5
14794  (eval "$ac_compile") 2>conftest.er1
14795  ac_status=$?
14796  grep -v '^ *+' conftest.er1 >conftest.err
14797  rm -f conftest.er1
14798  cat conftest.err >&5
14799  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800  (exit $ac_status); } && {
14801	 test -z "$ac_c_werror_flag" ||
14802	 test ! -s conftest.err
14803       } && test -s conftest.$ac_objext; then
14804  ac_header_compiler=yes
14805else
14806  $as_echo "$as_me: failed program was:" >&5
14807sed 's/^/| /' conftest.$ac_ext >&5
14808
14809	ac_header_compiler=no
14810fi
14811
14812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14814$as_echo "$ac_header_compiler" >&6; }
14815
14816# Is the header present?
14817{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14818$as_echo_n "checking $ac_header presence... " >&6; }
14819cat >conftest.$ac_ext <<_ACEOF
14820/* confdefs.h.  */
14821_ACEOF
14822cat confdefs.h >>conftest.$ac_ext
14823cat >>conftest.$ac_ext <<_ACEOF
14824/* end confdefs.h.  */
14825#include <$ac_header>
14826_ACEOF
14827if { (ac_try="$ac_cpp conftest.$ac_ext"
14828case "(($ac_try" in
14829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830  *) ac_try_echo=$ac_try;;
14831esac
14832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14833$as_echo "$ac_try_echo") >&5
14834  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14835  ac_status=$?
14836  grep -v '^ *+' conftest.er1 >conftest.err
14837  rm -f conftest.er1
14838  cat conftest.err >&5
14839  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840  (exit $ac_status); } >/dev/null && {
14841	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14842	 test ! -s conftest.err
14843       }; then
14844  ac_header_preproc=yes
14845else
14846  $as_echo "$as_me: failed program was:" >&5
14847sed 's/^/| /' conftest.$ac_ext >&5
14848
14849  ac_header_preproc=no
14850fi
14851
14852rm -f conftest.err conftest.$ac_ext
14853{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14854$as_echo "$ac_header_preproc" >&6; }
14855
14856# So?  What about this header?
14857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14858  yes:no: )
14859    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14860$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14861    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14862$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14863    ac_header_preproc=yes
14864    ;;
14865  no:yes:* )
14866    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14867$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14868    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14869$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14870    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14871$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14872    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14873$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14874    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14875$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14876    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14877$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14878
14879    ;;
14880esac
14881{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14882$as_echo_n "checking for $ac_header... " >&6; }
14883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14884  $as_echo_n "(cached) " >&6
14885else
14886  eval "$as_ac_Header=\$ac_header_preproc"
14887fi
14888ac_res=`eval 'as_val=${'$as_ac_Header'}
14889		 $as_echo "$as_val"'`
14890	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14891$as_echo "$ac_res" >&6; }
14892
14893fi
14894as_val=`eval 'as_val=${'$as_ac_Header'}
14895		 $as_echo "$as_val"'`
14896   if test "x$as_val" = x""yes; then
14897  cat >>confdefs.h <<_ACEOF
14898#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14899_ACEOF
14900
14901fi
14902
14903done
14904
14905
14906for ac_func in getpagesize
14907do
14908as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14909{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14910$as_echo_n "checking for $ac_func... " >&6; }
14911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14912  $as_echo_n "(cached) " >&6
14913else
14914  cat >conftest.$ac_ext <<_ACEOF
14915/* confdefs.h.  */
14916_ACEOF
14917cat confdefs.h >>conftest.$ac_ext
14918cat >>conftest.$ac_ext <<_ACEOF
14919/* end confdefs.h.  */
14920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14921   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14922#define $ac_func innocuous_$ac_func
14923
14924/* System header to define __stub macros and hopefully few prototypes,
14925    which can conflict with char $ac_func (); below.
14926    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14927    <limits.h> exists even on freestanding compilers.  */
14928
14929#ifdef __STDC__
14930# include <limits.h>
14931#else
14932# include <assert.h>
14933#endif
14934
14935#undef $ac_func
14936
14937/* Override any GCC internal prototype to avoid an error.
14938   Use char because int might match the return type of a GCC
14939   builtin and then its argument prototype would still apply.  */
14940#ifdef __cplusplus
14941extern "C"
14942#endif
14943char $ac_func ();
14944/* The GNU C library defines this for functions which it implements
14945    to always fail with ENOSYS.  Some functions are actually named
14946    something starting with __ and the normal name is an alias.  */
14947#if defined __stub_$ac_func || defined __stub___$ac_func
14948choke me
14949#endif
14950
14951int
14952main ()
14953{
14954return $ac_func ();
14955  ;
14956  return 0;
14957}
14958_ACEOF
14959rm -f conftest.$ac_objext conftest$ac_exeext
14960if { (ac_try="$ac_link"
14961case "(($ac_try" in
14962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963  *) ac_try_echo=$ac_try;;
14964esac
14965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14966$as_echo "$ac_try_echo") >&5
14967  (eval "$ac_link") 2>conftest.er1
14968  ac_status=$?
14969  grep -v '^ *+' conftest.er1 >conftest.err
14970  rm -f conftest.er1
14971  cat conftest.err >&5
14972  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973  (exit $ac_status); } && {
14974	 test -z "$ac_c_werror_flag" ||
14975	 test ! -s conftest.err
14976       } && test -s conftest$ac_exeext && {
14977	 test "$cross_compiling" = yes ||
14978	 $as_test_x conftest$ac_exeext
14979       }; then
14980  eval "$as_ac_var=yes"
14981else
14982  $as_echo "$as_me: failed program was:" >&5
14983sed 's/^/| /' conftest.$ac_ext >&5
14984
14985	eval "$as_ac_var=no"
14986fi
14987
14988rm -rf conftest.dSYM
14989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14990      conftest$ac_exeext conftest.$ac_ext
14991fi
14992ac_res=`eval 'as_val=${'$as_ac_var'}
14993		 $as_echo "$as_val"'`
14994	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14995$as_echo "$ac_res" >&6; }
14996as_val=`eval 'as_val=${'$as_ac_var'}
14997		 $as_echo "$as_val"'`
14998   if test "x$as_val" = x""yes; then
14999  cat >>confdefs.h <<_ACEOF
15000#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15001_ACEOF
15002
15003fi
15004done
15005
15006{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
15007$as_echo_n "checking for working mmap... " >&6; }
15008if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15009  $as_echo_n "(cached) " >&6
15010else
15011  if test "$cross_compiling" = yes; then
15012  ac_cv_func_mmap_fixed_mapped=no
15013else
15014  cat >conftest.$ac_ext <<_ACEOF
15015/* confdefs.h.  */
15016_ACEOF
15017cat confdefs.h >>conftest.$ac_ext
15018cat >>conftest.$ac_ext <<_ACEOF
15019/* end confdefs.h.  */
15020$ac_includes_default
15021/* malloc might have been renamed as rpl_malloc. */
15022#undef malloc
15023
15024/* Thanks to Mike Haertel and Jim Avera for this test.
15025   Here is a matrix of mmap possibilities:
15026	mmap private not fixed
15027	mmap private fixed at somewhere currently unmapped
15028	mmap private fixed at somewhere already mapped
15029	mmap shared not fixed
15030	mmap shared fixed at somewhere currently unmapped
15031	mmap shared fixed at somewhere already mapped
15032   For private mappings, we should verify that changes cannot be read()
15033   back from the file, nor mmap's back from the file at a different
15034   address.  (There have been systems where private was not correctly
15035   implemented like the infamous i386 svr4.0, and systems where the
15036   VM page cache was not coherent with the file system buffer cache
15037   like early versions of FreeBSD and possibly contemporary NetBSD.)
15038   For shared mappings, we should conversely verify that changes get
15039   propagated back to all the places they're supposed to be.
15040
15041   Grep wants private fixed already mapped.
15042   The main things grep needs to know about mmap are:
15043   * does it exist and is it safe to write into the mmap'd area
15044   * how to use it (BSD variants)  */
15045
15046#include <fcntl.h>
15047#include <sys/mman.h>
15048
15049#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15050char *malloc ();
15051#endif
15052
15053/* This mess was copied from the GNU getpagesize.h.  */
15054#ifndef HAVE_GETPAGESIZE
15055/* Assume that all systems that can run configure have sys/param.h.  */
15056# ifndef HAVE_SYS_PARAM_H
15057#  define HAVE_SYS_PARAM_H 1
15058# endif
15059
15060# ifdef _SC_PAGESIZE
15061#  define getpagesize() sysconf(_SC_PAGESIZE)
15062# else /* no _SC_PAGESIZE */
15063#  ifdef HAVE_SYS_PARAM_H
15064#   include <sys/param.h>
15065#   ifdef EXEC_PAGESIZE
15066#    define getpagesize() EXEC_PAGESIZE
15067#   else /* no EXEC_PAGESIZE */
15068#    ifdef NBPG
15069#     define getpagesize() NBPG * CLSIZE
15070#     ifndef CLSIZE
15071#      define CLSIZE 1
15072#     endif /* no CLSIZE */
15073#    else /* no NBPG */
15074#     ifdef NBPC
15075#      define getpagesize() NBPC
15076#     else /* no NBPC */
15077#      ifdef PAGESIZE
15078#       define getpagesize() PAGESIZE
15079#      endif /* PAGESIZE */
15080#     endif /* no NBPC */
15081#    endif /* no NBPG */
15082#   endif /* no EXEC_PAGESIZE */
15083#  else /* no HAVE_SYS_PARAM_H */
15084#   define getpagesize() 8192	/* punt totally */
15085#  endif /* no HAVE_SYS_PARAM_H */
15086# endif /* no _SC_PAGESIZE */
15087
15088#endif /* no HAVE_GETPAGESIZE */
15089
15090int
15091main ()
15092{
15093  char *data, *data2, *data3;
15094  int i, pagesize;
15095  int fd;
15096
15097  pagesize = getpagesize ();
15098
15099  /* First, make a file with some known garbage in it. */
15100  data = (char *) malloc (pagesize);
15101  if (!data)
15102    return 1;
15103  for (i = 0; i < pagesize; ++i)
15104    *(data + i) = rand ();
15105  umask (0);
15106  fd = creat ("conftest.mmap", 0600);
15107  if (fd < 0)
15108    return 1;
15109  if (write (fd, data, pagesize) != pagesize)
15110    return 1;
15111  close (fd);
15112
15113  /* Next, try to mmap the file at a fixed address which already has
15114     something else allocated at it.  If we can, also make sure that
15115     we see the same garbage.  */
15116  fd = open ("conftest.mmap", O_RDWR);
15117  if (fd < 0)
15118    return 1;
15119  data2 = (char *) malloc (2 * pagesize);
15120  if (!data2)
15121    return 1;
15122  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
15123  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15124		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
15125    return 1;
15126  for (i = 0; i < pagesize; ++i)
15127    if (*(data + i) != *(data2 + i))
15128      return 1;
15129
15130  /* Finally, make sure that changes to the mapped area do not
15131     percolate back to the file as seen by read().  (This is a bug on
15132     some variants of i386 svr4.0.)  */
15133  for (i = 0; i < pagesize; ++i)
15134    *(data2 + i) = *(data2 + i) + 1;
15135  data3 = (char *) malloc (pagesize);
15136  if (!data3)
15137    return 1;
15138  if (read (fd, data3, pagesize) != pagesize)
15139    return 1;
15140  for (i = 0; i < pagesize; ++i)
15141    if (*(data + i) != *(data3 + i))
15142      return 1;
15143  close (fd);
15144  return 0;
15145}
15146_ACEOF
15147rm -f conftest$ac_exeext
15148if { (ac_try="$ac_link"
15149case "(($ac_try" in
15150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151  *) ac_try_echo=$ac_try;;
15152esac
15153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15154$as_echo "$ac_try_echo") >&5
15155  (eval "$ac_link") 2>&5
15156  ac_status=$?
15157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15159  { (case "(($ac_try" in
15160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161  *) ac_try_echo=$ac_try;;
15162esac
15163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15164$as_echo "$ac_try_echo") >&5
15165  (eval "$ac_try") 2>&5
15166  ac_status=$?
15167  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168  (exit $ac_status); }; }; then
15169  ac_cv_func_mmap_fixed_mapped=yes
15170else
15171  $as_echo "$as_me: program exited with status $ac_status" >&5
15172$as_echo "$as_me: failed program was:" >&5
15173sed 's/^/| /' conftest.$ac_ext >&5
15174
15175( exit $ac_status )
15176ac_cv_func_mmap_fixed_mapped=no
15177fi
15178rm -rf conftest.dSYM
15179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15180fi
15181
15182
15183fi
15184{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15185$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15186if test $ac_cv_func_mmap_fixed_mapped = yes; then
15187
15188cat >>confdefs.h <<\_ACEOF
15189#define HAVE_MMAP 1
15190_ACEOF
15191
15192fi
15193rm -f conftest.mmap
15194
15195
15196
15197for ac_func in munmap msync
15198do
15199as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15200{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15201$as_echo_n "checking for $ac_func... " >&6; }
15202if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15203  $as_echo_n "(cached) " >&6
15204else
15205  cat >conftest.$ac_ext <<_ACEOF
15206/* confdefs.h.  */
15207_ACEOF
15208cat confdefs.h >>conftest.$ac_ext
15209cat >>conftest.$ac_ext <<_ACEOF
15210/* end confdefs.h.  */
15211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15212   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15213#define $ac_func innocuous_$ac_func
15214
15215/* System header to define __stub macros and hopefully few prototypes,
15216    which can conflict with char $ac_func (); below.
15217    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15218    <limits.h> exists even on freestanding compilers.  */
15219
15220#ifdef __STDC__
15221# include <limits.h>
15222#else
15223# include <assert.h>
15224#endif
15225
15226#undef $ac_func
15227
15228/* Override any GCC internal prototype to avoid an error.
15229   Use char because int might match the return type of a GCC
15230   builtin and then its argument prototype would still apply.  */
15231#ifdef __cplusplus
15232extern "C"
15233#endif
15234char $ac_func ();
15235/* The GNU C library defines this for functions which it implements
15236    to always fail with ENOSYS.  Some functions are actually named
15237    something starting with __ and the normal name is an alias.  */
15238#if defined __stub_$ac_func || defined __stub___$ac_func
15239choke me
15240#endif
15241
15242int
15243main ()
15244{
15245return $ac_func ();
15246  ;
15247  return 0;
15248}
15249_ACEOF
15250rm -f conftest.$ac_objext conftest$ac_exeext
15251if { (ac_try="$ac_link"
15252case "(($ac_try" in
15253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254  *) ac_try_echo=$ac_try;;
15255esac
15256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15257$as_echo "$ac_try_echo") >&5
15258  (eval "$ac_link") 2>conftest.er1
15259  ac_status=$?
15260  grep -v '^ *+' conftest.er1 >conftest.err
15261  rm -f conftest.er1
15262  cat conftest.err >&5
15263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264  (exit $ac_status); } && {
15265	 test -z "$ac_c_werror_flag" ||
15266	 test ! -s conftest.err
15267       } && test -s conftest$ac_exeext && {
15268	 test "$cross_compiling" = yes ||
15269	 $as_test_x conftest$ac_exeext
15270       }; then
15271  eval "$as_ac_var=yes"
15272else
15273  $as_echo "$as_me: failed program was:" >&5
15274sed 's/^/| /' conftest.$ac_ext >&5
15275
15276	eval "$as_ac_var=no"
15277fi
15278
15279rm -rf conftest.dSYM
15280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15281      conftest$ac_exeext conftest.$ac_ext
15282fi
15283ac_res=`eval 'as_val=${'$as_ac_var'}
15284		 $as_echo "$as_val"'`
15285	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15286$as_echo "$ac_res" >&6; }
15287as_val=`eval 'as_val=${'$as_ac_var'}
15288		 $as_echo "$as_val"'`
15289   if test "x$as_val" = x""yes; then
15290  cat >>confdefs.h <<_ACEOF
15291#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15292_ACEOF
15293
15294fi
15295done
15296
15297
15298
15299
15300
15301if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15302	if test -n "$ac_tool_prefix"; then
15303  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15304set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15305{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15306$as_echo_n "checking for $ac_word... " >&6; }
15307if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
15308  $as_echo_n "(cached) " >&6
15309else
15310  case $PKG_CONFIG in
15311  [\\/]* | ?:[\\/]*)
15312  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15313  ;;
15314  *)
15315  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15316for as_dir in $PATH
15317do
15318  IFS=$as_save_IFS
15319  test -z "$as_dir" && as_dir=.
15320  for ac_exec_ext in '' $ac_executable_extensions; do
15321  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15322    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15323    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15324    break 2
15325  fi
15326done
15327done
15328IFS=$as_save_IFS
15329
15330  ;;
15331esac
15332fi
15333PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15334if test -n "$PKG_CONFIG"; then
15335  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
15336$as_echo "$PKG_CONFIG" >&6; }
15337else
15338  { $as_echo "$as_me:$LINENO: result: no" >&5
15339$as_echo "no" >&6; }
15340fi
15341
15342
15343fi
15344if test -z "$ac_cv_path_PKG_CONFIG"; then
15345  ac_pt_PKG_CONFIG=$PKG_CONFIG
15346  # Extract the first word of "pkg-config", so it can be a program name with args.
15347set dummy pkg-config; ac_word=$2
15348{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15349$as_echo_n "checking for $ac_word... " >&6; }
15350if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
15351  $as_echo_n "(cached) " >&6
15352else
15353  case $ac_pt_PKG_CONFIG in
15354  [\\/]* | ?:[\\/]*)
15355  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15356  ;;
15357  *)
15358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15359for as_dir in $PATH
15360do
15361  IFS=$as_save_IFS
15362  test -z "$as_dir" && as_dir=.
15363  for ac_exec_ext in '' $ac_executable_extensions; do
15364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15365    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15366    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15367    break 2
15368  fi
15369done
15370done
15371IFS=$as_save_IFS
15372
15373  ;;
15374esac
15375fi
15376ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15377if test -n "$ac_pt_PKG_CONFIG"; then
15378  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
15379$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15380else
15381  { $as_echo "$as_me:$LINENO: result: no" >&5
15382$as_echo "no" >&6; }
15383fi
15384
15385  if test "x$ac_pt_PKG_CONFIG" = x; then
15386    PKG_CONFIG=""
15387  else
15388    case $cross_compiling:$ac_tool_warned in
15389yes:)
15390{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
15391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15392ac_tool_warned=yes ;;
15393esac
15394    PKG_CONFIG=$ac_pt_PKG_CONFIG
15395  fi
15396else
15397  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15398fi
15399
15400fi
15401if test -n "$PKG_CONFIG"; then
15402	_pkg_min_version=0.9.0
15403	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
15404$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15405	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15406		{ $as_echo "$as_me:$LINENO: result: yes" >&5
15407$as_echo "yes" >&6; }
15408	else
15409		{ $as_echo "$as_me:$LINENO: result: no" >&5
15410$as_echo "no" >&6; }
15411		PKG_CONFIG=""
15412	fi
15413
15414fi
15415
15416
15417# Check whether --with-html-dir was given.
15418if test "${with_html_dir+set}" = set; then
15419  withval=$with_html_dir;
15420else
15421  with_html_dir='${datadir}/gtk-doc/html'
15422fi
15423
15424  HTML_DIR="$with_html_dir"
15425
15426
15427    # Check whether --enable-gtk-doc was given.
15428if test "${enable_gtk_doc+set}" = set; then
15429  enableval=$enable_gtk_doc;
15430else
15431  enable_gtk_doc=no
15432fi
15433
15434
15435  if test x$enable_gtk_doc = xyes; then
15436    if test -n "$PKG_CONFIG" && \
15437    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.8\"") >&5
15438  ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.8") 2>&5
15439  ac_status=$?
15440  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441  (exit $ac_status); }; then
15442  :
15443else
15444  { { $as_echo "$as_me:$LINENO: error: You need to have gtk-doc >= 1.8 installed to build gtk-doc" >&5
15445$as_echo "$as_me: error: You need to have gtk-doc >= 1.8 installed to build gtk-doc" >&2;}
15446   { (exit 1); exit 1; }; }
15447fi
15448  fi
15449
15450  { $as_echo "$as_me:$LINENO: checking whether to build gtk-doc documentation" >&5
15451$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
15452  { $as_echo "$as_me:$LINENO: result: $enable_gtk_doc" >&5
15453$as_echo "$enable_gtk_doc" >&6; }
15454
15455  for ac_prog in gtkdoc-check
15456do
15457  # Extract the first word of "$ac_prog", so it can be a program name with args.
15458set dummy $ac_prog; ac_word=$2
15459{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15460$as_echo_n "checking for $ac_word... " >&6; }
15461if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then
15462  $as_echo_n "(cached) " >&6
15463else
15464  case $GTKDOC_CHECK in
15465  [\\/]* | ?:[\\/]*)
15466  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
15467  ;;
15468  *)
15469  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15470for as_dir in $PATH
15471do
15472  IFS=$as_save_IFS
15473  test -z "$as_dir" && as_dir=.
15474  for ac_exec_ext in '' $ac_executable_extensions; do
15475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15476    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
15477    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15478    break 2
15479  fi
15480done
15481done
15482IFS=$as_save_IFS
15483
15484  ;;
15485esac
15486fi
15487GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
15488if test -n "$GTKDOC_CHECK"; then
15489  { $as_echo "$as_me:$LINENO: result: $GTKDOC_CHECK" >&5
15490$as_echo "$GTKDOC_CHECK" >&6; }
15491else
15492  { $as_echo "$as_me:$LINENO: result: no" >&5
15493$as_echo "no" >&6; }
15494fi
15495
15496
15497  test -n "$GTKDOC_CHECK" && break
15498done
15499
15500
15501   if test x$enable_gtk_doc = xyes; then
15502  ENABLE_GTK_DOC_TRUE=
15503  ENABLE_GTK_DOC_FALSE='#'
15504else
15505  ENABLE_GTK_DOC_TRUE='#'
15506  ENABLE_GTK_DOC_FALSE=
15507fi
15508
15509   if test -n "$LIBTOOL"; then
15510  GTK_DOC_USE_LIBTOOL_TRUE=
15511  GTK_DOC_USE_LIBTOOL_FALSE='#'
15512else
15513  GTK_DOC_USE_LIBTOOL_TRUE='#'
15514  GTK_DOC_USE_LIBTOOL_FALSE=
15515fi
15516
15517
15518
15519# Extract the first word of "db2html", so it can be a program name with args.
15520set dummy db2html; ac_word=$2
15521{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15522$as_echo_n "checking for $ac_word... " >&6; }
15523if test "${ac_cv_prog_DB2HTML+set}" = set; then
15524  $as_echo_n "(cached) " >&6
15525else
15526  if test -n "$DB2HTML"; then
15527  ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
15528else
15529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15530for as_dir in $PATH
15531do
15532  IFS=$as_save_IFS
15533  test -z "$as_dir" && as_dir=.
15534  for ac_exec_ext in '' $ac_executable_extensions; do
15535  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15536    ac_cv_prog_DB2HTML="true"
15537    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15538    break 2
15539  fi
15540done
15541done
15542IFS=$as_save_IFS
15543
15544  test -z "$ac_cv_prog_DB2HTML" && ac_cv_prog_DB2HTML="false"
15545fi
15546fi
15547DB2HTML=$ac_cv_prog_DB2HTML
15548if test -n "$DB2HTML"; then
15549  { $as_echo "$as_me:$LINENO: result: $DB2HTML" >&5
15550$as_echo "$DB2HTML" >&6; }
15551else
15552  { $as_echo "$as_me:$LINENO: result: no" >&5
15553$as_echo "no" >&6; }
15554fi
15555
15556
15557 if $DB2HTML; then
15558  HAVE_DOCBOOK_TRUE=
15559  HAVE_DOCBOOK_FALSE='#'
15560else
15561  HAVE_DOCBOOK_TRUE='#'
15562  HAVE_DOCBOOK_FALSE=
15563fi
15564
15565
15566 if test "x$enable_gtk_doc" = "xyes"; then
15567  ENABLE_GTK_DOC_TRUE=
15568  ENABLE_GTK_DOC_FALSE='#'
15569else
15570  ENABLE_GTK_DOC_TRUE='#'
15571  ENABLE_GTK_DOC_FALSE=
15572fi
15573
15574
15575# Check whether --enable-profiling was given.
15576if test "${enable_profiling+set}" = set; then
15577  enableval=$enable_profiling;
15578else
15579  enable_profiling=no
15580fi
15581
15582if test "x$enable_profiling" = "xyes"; then
15583# CFLAGS="-O0 -g -pg -fprofile-arcs -ftest-coverage"
15584  CFLAGS="-O0 -g -pg"
15585fi
15586
15587# Check whether --enable-warnings was given.
15588if test "${enable_warnings+set}" = set; then
15589  enableval=$enable_warnings;
15590else
15591  enable_warnings=no
15592fi
15593
15594if test "x$enable_warnings" = "xyes"; then
15595
15596cat >>confdefs.h <<\_ACEOF
15597#define ENABLE_WARNINGS 1
15598_ACEOF
15599
15600fi
15601
15602# Check whether --enable-glibtest was given.
15603if test "${enable_glibtest+set}" = set; then
15604  enableval=$enable_glibtest;
15605else
15606  enable_glibtest=yes
15607fi
15608
15609
15610  pkg_config_args=glib-2.0
15611  for module in . gobject gmodule gthread
15612  do
15613      case "$module" in
15614         gmodule)
15615             pkg_config_args="$pkg_config_args gmodule-2.0"
15616         ;;
15617         gmodule-no-export)
15618             pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
15619         ;;
15620         gobject)
15621             pkg_config_args="$pkg_config_args gobject-2.0"
15622         ;;
15623         gthread)
15624             pkg_config_args="$pkg_config_args gthread-2.0"
15625         ;;
15626         gio*)
15627             pkg_config_args="$pkg_config_args $module-2.0"
15628         ;;
15629      esac
15630  done
15631
15632
15633
15634if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15635	if test -n "$ac_tool_prefix"; then
15636  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15637set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15638{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15639$as_echo_n "checking for $ac_word... " >&6; }
15640if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
15641  $as_echo_n "(cached) " >&6
15642else
15643  case $PKG_CONFIG in
15644  [\\/]* | ?:[\\/]*)
15645  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15646  ;;
15647  *)
15648  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15649for as_dir in $PATH
15650do
15651  IFS=$as_save_IFS
15652  test -z "$as_dir" && as_dir=.
15653  for ac_exec_ext in '' $ac_executable_extensions; do
15654  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15655    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15656    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15657    break 2
15658  fi
15659done
15660done
15661IFS=$as_save_IFS
15662
15663  ;;
15664esac
15665fi
15666PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15667if test -n "$PKG_CONFIG"; then
15668  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
15669$as_echo "$PKG_CONFIG" >&6; }
15670else
15671  { $as_echo "$as_me:$LINENO: result: no" >&5
15672$as_echo "no" >&6; }
15673fi
15674
15675
15676fi
15677if test -z "$ac_cv_path_PKG_CONFIG"; then
15678  ac_pt_PKG_CONFIG=$PKG_CONFIG
15679  # Extract the first word of "pkg-config", so it can be a program name with args.
15680set dummy pkg-config; ac_word=$2
15681{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15682$as_echo_n "checking for $ac_word... " >&6; }
15683if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
15684  $as_echo_n "(cached) " >&6
15685else
15686  case $ac_pt_PKG_CONFIG in
15687  [\\/]* | ?:[\\/]*)
15688  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15689  ;;
15690  *)
15691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15692for as_dir in $PATH
15693do
15694  IFS=$as_save_IFS
15695  test -z "$as_dir" && as_dir=.
15696  for ac_exec_ext in '' $ac_executable_extensions; do
15697  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15698    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15699    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15700    break 2
15701  fi
15702done
15703done
15704IFS=$as_save_IFS
15705
15706  ;;
15707esac
15708fi
15709ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15710if test -n "$ac_pt_PKG_CONFIG"; then
15711  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
15712$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15713else
15714  { $as_echo "$as_me:$LINENO: result: no" >&5
15715$as_echo "no" >&6; }
15716fi
15717
15718  if test "x$ac_pt_PKG_CONFIG" = x; then
15719    PKG_CONFIG=""
15720  else
15721    case $cross_compiling:$ac_tool_warned in
15722yes:)
15723{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
15724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15725ac_tool_warned=yes ;;
15726esac
15727    PKG_CONFIG=$ac_pt_PKG_CONFIG
15728  fi
15729else
15730  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15731fi
15732
15733fi
15734if test -n "$PKG_CONFIG"; then
15735	_pkg_min_version=0.16
15736	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
15737$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15738	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15739		{ $as_echo "$as_me:$LINENO: result: yes" >&5
15740$as_echo "yes" >&6; }
15741	else
15742		{ $as_echo "$as_me:$LINENO: result: no" >&5
15743$as_echo "no" >&6; }
15744		PKG_CONFIG=""
15745	fi
15746
15747fi
15748
15749  no_glib=""
15750
15751  if test "x$PKG_CONFIG" = x ; then
15752    no_glib=yes
15753    PKG_CONFIG=no
15754  fi
15755
15756  min_glib_version=2.0.0
15757  { $as_echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
15758$as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
15759
15760  if test x$PKG_CONFIG != xno ; then
15761    ## don't try to run the test against uninstalled libtool libs
15762    if $PKG_CONFIG --uninstalled $pkg_config_args; then
15763	  echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
15764	  enable_glibtest=no
15765    fi
15766
15767    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
15768	  :
15769    else
15770	  no_glib=yes
15771    fi
15772  fi
15773
15774  if test x"$no_glib" = x ; then
15775    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
15776    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
15777    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
15778
15779    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
15780    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
15781    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
15782           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15783    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
15784           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15785    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
15786           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15787    if test "x$enable_glibtest" = "xyes" ; then
15788      ac_save_CFLAGS="$CFLAGS"
15789      ac_save_LIBS="$LIBS"
15790      CFLAGS="$CFLAGS $GLIB_CFLAGS"
15791      LIBS="$GLIB_LIBS $LIBS"
15792      rm -f conf.glibtest
15793      if test "$cross_compiling" = yes; then
15794  echo $ac_n "cross compiling; assumed OK... $ac_c"
15795else
15796  cat >conftest.$ac_ext <<_ACEOF
15797/* confdefs.h.  */
15798_ACEOF
15799cat confdefs.h >>conftest.$ac_ext
15800cat >>conftest.$ac_ext <<_ACEOF
15801/* end confdefs.h.  */
15802
15803#include <glib.h>
15804#include <stdio.h>
15805#include <stdlib.h>
15806
15807int
15808main ()
15809{
15810  int major, minor, micro;
15811  char *tmp_version;
15812  int ignored;
15813
15814  ignored = system ("touch conf.glibtest");
15815
15816  /* HP/UX 9 (%@#!) writes to sscanf strings */
15817  tmp_version = g_strdup("$min_glib_version");
15818  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15819     printf("%s, bad version string\n", "$min_glib_version");
15820     exit(1);
15821   }
15822
15823  if ((glib_major_version != $glib_config_major_version) ||
15824      (glib_minor_version != $glib_config_minor_version) ||
15825      (glib_micro_version != $glib_config_micro_version))
15826    {
15827      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
15828             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
15829             glib_major_version, glib_minor_version, glib_micro_version);
15830      printf ("*** was found! If pkg-config was correct, then it is best\n");
15831      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
15832      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
15833      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
15834      printf("*** required on your system.\n");
15835      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
15836      printf("*** to point to the correct configuration files\n");
15837    }
15838  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
15839	   (glib_minor_version != GLIB_MINOR_VERSION) ||
15840           (glib_micro_version != GLIB_MICRO_VERSION))
15841    {
15842      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
15843	     GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
15844      printf("*** library (version %d.%d.%d)\n",
15845	     glib_major_version, glib_minor_version, glib_micro_version);
15846    }
15847  else
15848    {
15849      if ((glib_major_version > major) ||
15850        ((glib_major_version == major) && (glib_minor_version > minor)) ||
15851        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
15852      {
15853        return 0;
15854       }
15855     else
15856      {
15857        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
15858               glib_major_version, glib_minor_version, glib_micro_version);
15859        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
15860	       major, minor, micro);
15861        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
15862        printf("***\n");
15863        printf("*** If you have already installed a sufficiently new version, this error\n");
15864        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
15865        printf("*** being found. The easiest way to fix this is to remove the old version\n");
15866        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
15867        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
15868        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
15869        printf("*** so that the correct libraries are found at run-time))\n");
15870      }
15871    }
15872  return 1;
15873}
15874
15875_ACEOF
15876rm -f conftest$ac_exeext
15877if { (ac_try="$ac_link"
15878case "(($ac_try" in
15879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880  *) ac_try_echo=$ac_try;;
15881esac
15882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15883$as_echo "$ac_try_echo") >&5
15884  (eval "$ac_link") 2>&5
15885  ac_status=$?
15886  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15888  { (case "(($ac_try" in
15889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890  *) ac_try_echo=$ac_try;;
15891esac
15892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15893$as_echo "$ac_try_echo") >&5
15894  (eval "$ac_try") 2>&5
15895  ac_status=$?
15896  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897  (exit $ac_status); }; }; then
15898  :
15899else
15900  $as_echo "$as_me: program exited with status $ac_status" >&5
15901$as_echo "$as_me: failed program was:" >&5
15902sed 's/^/| /' conftest.$ac_ext >&5
15903
15904( exit $ac_status )
15905no_glib=yes
15906fi
15907rm -rf conftest.dSYM
15908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15909fi
15910
15911
15912       CFLAGS="$ac_save_CFLAGS"
15913       LIBS="$ac_save_LIBS"
15914     fi
15915  fi
15916  if test "x$no_glib" = x ; then
15917     { $as_echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
15918$as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
15919     :
15920  else
15921     { $as_echo "$as_me:$LINENO: result: no" >&5
15922$as_echo "no" >&6; }
15923     if test "$PKG_CONFIG" = "no" ; then
15924       echo "*** A new enough version of pkg-config was not found."
15925       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
15926     else
15927       if test -f conf.glibtest ; then
15928        :
15929       else
15930          echo "*** Could not run GLIB test program, checking why..."
15931          ac_save_CFLAGS="$CFLAGS"
15932          ac_save_LIBS="$LIBS"
15933          CFLAGS="$CFLAGS $GLIB_CFLAGS"
15934          LIBS="$LIBS $GLIB_LIBS"
15935          cat >conftest.$ac_ext <<_ACEOF
15936/* confdefs.h.  */
15937_ACEOF
15938cat confdefs.h >>conftest.$ac_ext
15939cat >>conftest.$ac_ext <<_ACEOF
15940/* end confdefs.h.  */
15941
15942#include <glib.h>
15943#include <stdio.h>
15944
15945int
15946main ()
15947{
15948 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
15949  ;
15950  return 0;
15951}
15952_ACEOF
15953rm -f conftest.$ac_objext conftest$ac_exeext
15954if { (ac_try="$ac_link"
15955case "(($ac_try" in
15956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957  *) ac_try_echo=$ac_try;;
15958esac
15959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15960$as_echo "$ac_try_echo") >&5
15961  (eval "$ac_link") 2>conftest.er1
15962  ac_status=$?
15963  grep -v '^ *+' conftest.er1 >conftest.err
15964  rm -f conftest.er1
15965  cat conftest.err >&5
15966  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967  (exit $ac_status); } && {
15968	 test -z "$ac_c_werror_flag" ||
15969	 test ! -s conftest.err
15970       } && test -s conftest$ac_exeext && {
15971	 test "$cross_compiling" = yes ||
15972	 $as_test_x conftest$ac_exeext
15973       }; then
15974   echo "*** The test program compiled, but did not run. This usually means"
15975          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
15976          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
15977          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15978          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
15979          echo "*** is required on your system"
15980	  echo "***"
15981          echo "*** If you have an old version installed, it is best to remove it, although"
15982          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15983else
15984  $as_echo "$as_me: failed program was:" >&5
15985sed 's/^/| /' conftest.$ac_ext >&5
15986
15987	 echo "*** The test program failed to compile or link. See the file config.log for the"
15988          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
15989fi
15990
15991rm -rf conftest.dSYM
15992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15993      conftest$ac_exeext conftest.$ac_ext
15994          CFLAGS="$ac_save_CFLAGS"
15995          LIBS="$ac_save_LIBS"
15996       fi
15997     fi
15998     GLIB_CFLAGS=""
15999     GLIB_LIBS=""
16000     GLIB_GENMARSHAL=""
16001     GOBJECT_QUERY=""
16002     GLIB_MKENUMS=""
16003     { { $as_echo "$as_me:$LINENO: error: Cannot find GLIB: Is pkg-config in your path?" >&5
16004$as_echo "$as_me: error: Cannot find GLIB: Is pkg-config in your path?" >&2;}
16005   { (exit 1); exit 1; }; }
16006  fi
16007
16008
16009
16010
16011
16012  rm -f conf.glibtest
16013
16014
16015glib_cflags="$GLIB_CFLAGS"
16016glib_libs="$GLIB_LIBS"
16017
16018
16019
16020
16021for ac_header in zlib.h
16022do
16023as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16025  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16026$as_echo_n "checking for $ac_header... " >&6; }
16027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028  $as_echo_n "(cached) " >&6
16029fi
16030ac_res=`eval 'as_val=${'$as_ac_Header'}
16031		 $as_echo "$as_val"'`
16032	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16033$as_echo "$ac_res" >&6; }
16034else
16035  # Is the header compilable?
16036{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16037$as_echo_n "checking $ac_header usability... " >&6; }
16038cat >conftest.$ac_ext <<_ACEOF
16039/* confdefs.h.  */
16040_ACEOF
16041cat confdefs.h >>conftest.$ac_ext
16042cat >>conftest.$ac_ext <<_ACEOF
16043/* end confdefs.h.  */
16044$ac_includes_default
16045#include <$ac_header>
16046_ACEOF
16047rm -f conftest.$ac_objext
16048if { (ac_try="$ac_compile"
16049case "(($ac_try" in
16050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051  *) ac_try_echo=$ac_try;;
16052esac
16053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16054$as_echo "$ac_try_echo") >&5
16055  (eval "$ac_compile") 2>conftest.er1
16056  ac_status=$?
16057  grep -v '^ *+' conftest.er1 >conftest.err
16058  rm -f conftest.er1
16059  cat conftest.err >&5
16060  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061  (exit $ac_status); } && {
16062	 test -z "$ac_c_werror_flag" ||
16063	 test ! -s conftest.err
16064       } && test -s conftest.$ac_objext; then
16065  ac_header_compiler=yes
16066else
16067  $as_echo "$as_me: failed program was:" >&5
16068sed 's/^/| /' conftest.$ac_ext >&5
16069
16070	ac_header_compiler=no
16071fi
16072
16073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16075$as_echo "$ac_header_compiler" >&6; }
16076
16077# Is the header present?
16078{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16079$as_echo_n "checking $ac_header presence... " >&6; }
16080cat >conftest.$ac_ext <<_ACEOF
16081/* confdefs.h.  */
16082_ACEOF
16083cat confdefs.h >>conftest.$ac_ext
16084cat >>conftest.$ac_ext <<_ACEOF
16085/* end confdefs.h.  */
16086#include <$ac_header>
16087_ACEOF
16088if { (ac_try="$ac_cpp conftest.$ac_ext"
16089case "(($ac_try" in
16090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091  *) ac_try_echo=$ac_try;;
16092esac
16093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16094$as_echo "$ac_try_echo") >&5
16095  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16096  ac_status=$?
16097  grep -v '^ *+' conftest.er1 >conftest.err
16098  rm -f conftest.er1
16099  cat conftest.err >&5
16100  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101  (exit $ac_status); } >/dev/null && {
16102	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16103	 test ! -s conftest.err
16104       }; then
16105  ac_header_preproc=yes
16106else
16107  $as_echo "$as_me: failed program was:" >&5
16108sed 's/^/| /' conftest.$ac_ext >&5
16109
16110  ac_header_preproc=no
16111fi
16112
16113rm -f conftest.err conftest.$ac_ext
16114{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16115$as_echo "$ac_header_preproc" >&6; }
16116
16117# So?  What about this header?
16118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16119  yes:no: )
16120    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16121$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16122    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16123$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16124    ac_header_preproc=yes
16125    ;;
16126  no:yes:* )
16127    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16128$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16129    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16130$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16131    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16132$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16133    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16134$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16135    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16136$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16137    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16138$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16139
16140    ;;
16141esac
16142{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16143$as_echo_n "checking for $ac_header... " >&6; }
16144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16145  $as_echo_n "(cached) " >&6
16146else
16147  eval "$as_ac_Header=\$ac_header_preproc"
16148fi
16149ac_res=`eval 'as_val=${'$as_ac_Header'}
16150		 $as_echo "$as_val"'`
16151	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16152$as_echo "$ac_res" >&6; }
16153
16154fi
16155as_val=`eval 'as_val=${'$as_ac_Header'}
16156		 $as_echo "$as_val"'`
16157   if test "x$as_val" = x""yes; then
16158  cat >>confdefs.h <<_ACEOF
16159#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16160_ACEOF
16161
16162fi
16163
16164done
16165
16166{ $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
16167$as_echo_n "checking for inflate in -lz... " >&6; }
16168if test "${ac_cv_lib_z_inflate+set}" = set; then
16169  $as_echo_n "(cached) " >&6
16170else
16171  ac_check_lib_save_LIBS=$LIBS
16172LIBS="-lz  $LIBS"
16173cat >conftest.$ac_ext <<_ACEOF
16174/* confdefs.h.  */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h.  */
16179
16180/* Override any GCC internal prototype to avoid an error.
16181   Use char because int might match the return type of a GCC
16182   builtin and then its argument prototype would still apply.  */
16183#ifdef __cplusplus
16184extern "C"
16185#endif
16186char inflate ();
16187int
16188main ()
16189{
16190return inflate ();
16191  ;
16192  return 0;
16193}
16194_ACEOF
16195rm -f conftest.$ac_objext conftest$ac_exeext
16196if { (ac_try="$ac_link"
16197case "(($ac_try" in
16198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199  *) ac_try_echo=$ac_try;;
16200esac
16201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16202$as_echo "$ac_try_echo") >&5
16203  (eval "$ac_link") 2>conftest.er1
16204  ac_status=$?
16205  grep -v '^ *+' conftest.er1 >conftest.err
16206  rm -f conftest.er1
16207  cat conftest.err >&5
16208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209  (exit $ac_status); } && {
16210	 test -z "$ac_c_werror_flag" ||
16211	 test ! -s conftest.err
16212       } && test -s conftest$ac_exeext && {
16213	 test "$cross_compiling" = yes ||
16214	 $as_test_x conftest$ac_exeext
16215       }; then
16216  ac_cv_lib_z_inflate=yes
16217else
16218  $as_echo "$as_me: failed program was:" >&5
16219sed 's/^/| /' conftest.$ac_ext >&5
16220
16221	ac_cv_lib_z_inflate=no
16222fi
16223
16224rm -rf conftest.dSYM
16225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16226      conftest$ac_exeext conftest.$ac_ext
16227LIBS=$ac_check_lib_save_LIBS
16228fi
16229{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
16230$as_echo "$ac_cv_lib_z_inflate" >&6; }
16231if test "x$ac_cv_lib_z_inflate" = x""yes; then
16232  ZLIB="-lz"
16233fi
16234
16235
16236
16237      if test "X$prefix" = "XNONE"; then
16238    acl_final_prefix="$ac_default_prefix"
16239  else
16240    acl_final_prefix="$prefix"
16241  fi
16242  if test "X$exec_prefix" = "XNONE"; then
16243    acl_final_exec_prefix='${prefix}'
16244  else
16245    acl_final_exec_prefix="$exec_prefix"
16246  fi
16247  acl_save_prefix="$prefix"
16248  prefix="$acl_final_prefix"
16249  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16250  prefix="$acl_save_prefix"
16251
16252
16253# Check whether --with-gnu-ld was given.
16254if test "${with_gnu_ld+set}" = set; then
16255  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16256else
16257  with_gnu_ld=no
16258fi
16259
16260# Prepare PATH_SEPARATOR.
16261# The user is always right.
16262if test "${PATH_SEPARATOR+set}" != set; then
16263  echo "#! /bin/sh" >conf$$.sh
16264  echo  "exit 0"   >>conf$$.sh
16265  chmod +x conf$$.sh
16266  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16267    PATH_SEPARATOR=';'
16268  else
16269    PATH_SEPARATOR=:
16270  fi
16271  rm -f conf$$.sh
16272fi
16273ac_prog=ld
16274if test "$GCC" = yes; then
16275  # Check if gcc -print-prog-name=ld gives a path.
16276  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16277$as_echo_n "checking for ld used by GCC... " >&6; }
16278  case $host in
16279  *-*-mingw*)
16280    # gcc leaves a trailing carriage return which upsets mingw
16281    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16282  *)
16283    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16284  esac
16285  case $ac_prog in
16286    # Accept absolute paths.
16287    [\\/]* | [A-Za-z]:[\\/]*)
16288      re_direlt='/[^/][^/]*/\.\./'
16289      # Canonicalize the path of ld
16290      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16291      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16292	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16293      done
16294      test -z "$LD" && LD="$ac_prog"
16295      ;;
16296  "")
16297    # If it fails, then pretend we aren't using GCC.
16298    ac_prog=ld
16299    ;;
16300  *)
16301    # If it is relative, then search for the first ld in PATH.
16302    with_gnu_ld=unknown
16303    ;;
16304  esac
16305elif test "$with_gnu_ld" = yes; then
16306  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
16307$as_echo_n "checking for GNU ld... " >&6; }
16308else
16309  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16310$as_echo_n "checking for non-GNU ld... " >&6; }
16311fi
16312if test "${acl_cv_path_LD+set}" = set; then
16313  $as_echo_n "(cached) " >&6
16314else
16315  if test -z "$LD"; then
16316  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16317  for ac_dir in $PATH; do
16318    test -z "$ac_dir" && ac_dir=.
16319    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16320      acl_cv_path_LD="$ac_dir/$ac_prog"
16321      # Check to see if the program is GNU ld.  I'd rather use --version,
16322      # but apparently some GNU ld's only accept -v.
16323      # Break only if it was the GNU/non-GNU ld that we prefer.
16324      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16325      *GNU* | *'with BFD'*)
16326	test "$with_gnu_ld" != no && break ;;
16327      *)
16328	test "$with_gnu_ld" != yes && break ;;
16329      esac
16330    fi
16331  done
16332  IFS="$ac_save_ifs"
16333else
16334  acl_cv_path_LD="$LD" # Let the user override the test with a path.
16335fi
16336fi
16337
16338LD="$acl_cv_path_LD"
16339if test -n "$LD"; then
16340  { $as_echo "$as_me:$LINENO: result: $LD" >&5
16341$as_echo "$LD" >&6; }
16342else
16343  { $as_echo "$as_me:$LINENO: result: no" >&5
16344$as_echo "no" >&6; }
16345fi
16346test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16347$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16348   { (exit 1); exit 1; }; }
16349{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16350$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16351if test "${acl_cv_prog_gnu_ld+set}" = set; then
16352  $as_echo_n "(cached) " >&6
16353else
16354  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16355case `$LD -v 2>&1 </dev/null` in
16356*GNU* | *'with BFD'*)
16357  acl_cv_prog_gnu_ld=yes ;;
16358*)
16359  acl_cv_prog_gnu_ld=no ;;
16360esac
16361fi
16362{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16363$as_echo "$acl_cv_prog_gnu_ld" >&6; }
16364with_gnu_ld=$acl_cv_prog_gnu_ld
16365
16366
16367
16368
16369                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16370$as_echo_n "checking for shared library run path origin... " >&6; }
16371if test "${acl_cv_rpath+set}" = set; then
16372  $as_echo_n "(cached) " >&6
16373else
16374
16375    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16376    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16377    . ./conftest.sh
16378    rm -f ./conftest.sh
16379    acl_cv_rpath=done
16380
16381fi
16382{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16383$as_echo "$acl_cv_rpath" >&6; }
16384  wl="$acl_cv_wl"
16385  acl_libext="$acl_cv_libext"
16386  acl_shlibext="$acl_cv_shlibext"
16387  acl_libname_spec="$acl_cv_libname_spec"
16388  acl_library_names_spec="$acl_cv_library_names_spec"
16389  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16390  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16391  acl_hardcode_direct="$acl_cv_hardcode_direct"
16392  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16393    # Check whether --enable-rpath was given.
16394if test "${enable_rpath+set}" = set; then
16395  enableval=$enable_rpath; :
16396else
16397  enable_rpath=yes
16398fi
16399
16400
16401
16402                  acl_libdirstem=lib
16403  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16404  if test -n "$searchpath"; then
16405    acl_save_IFS="${IFS= 	}"; IFS=":"
16406    for searchdir in $searchpath; do
16407      if test -d "$searchdir"; then
16408        case "$searchdir" in
16409          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16410          *) searchdir=`cd "$searchdir" && pwd`
16411             case "$searchdir" in
16412               */lib64 ) acl_libdirstem=lib64 ;;
16413             esac ;;
16414        esac
16415      fi
16416    done
16417    IFS="$acl_save_IFS"
16418  fi
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428    use_additional=yes
16429
16430  acl_save_prefix="$prefix"
16431  prefix="$acl_final_prefix"
16432  acl_save_exec_prefix="$exec_prefix"
16433  exec_prefix="$acl_final_exec_prefix"
16434
16435    eval additional_includedir=\"$includedir\"
16436    eval additional_libdir=\"$libdir\"
16437
16438  exec_prefix="$acl_save_exec_prefix"
16439  prefix="$acl_save_prefix"
16440
16441
16442# Check whether --with-libiconv-prefix was given.
16443if test "${with_libiconv_prefix+set}" = set; then
16444  withval=$with_libiconv_prefix;
16445    if test "X$withval" = "Xno"; then
16446      use_additional=no
16447    else
16448      if test "X$withval" = "X"; then
16449
16450  acl_save_prefix="$prefix"
16451  prefix="$acl_final_prefix"
16452  acl_save_exec_prefix="$exec_prefix"
16453  exec_prefix="$acl_final_exec_prefix"
16454
16455          eval additional_includedir=\"$includedir\"
16456          eval additional_libdir=\"$libdir\"
16457
16458  exec_prefix="$acl_save_exec_prefix"
16459  prefix="$acl_save_prefix"
16460
16461      else
16462        additional_includedir="$withval/include"
16463        additional_libdir="$withval/$acl_libdirstem"
16464      fi
16465    fi
16466
16467fi
16468
16469      LIBICONV=
16470  LTLIBICONV=
16471  INCICONV=
16472  LIBICONV_PREFIX=
16473  rpathdirs=
16474  ltrpathdirs=
16475  names_already_handled=
16476  names_next_round='iconv '
16477  while test -n "$names_next_round"; do
16478    names_this_round="$names_next_round"
16479    names_next_round=
16480    for name in $names_this_round; do
16481      already_handled=
16482      for n in $names_already_handled; do
16483        if test "$n" = "$name"; then
16484          already_handled=yes
16485          break
16486        fi
16487      done
16488      if test -z "$already_handled"; then
16489        names_already_handled="$names_already_handled $name"
16490                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16491        eval value=\"\$HAVE_LIB$uppername\"
16492        if test -n "$value"; then
16493          if test "$value" = yes; then
16494            eval value=\"\$LIB$uppername\"
16495            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16496            eval value=\"\$LTLIB$uppername\"
16497            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16498          else
16499                                    :
16500          fi
16501        else
16502                              found_dir=
16503          found_la=
16504          found_so=
16505          found_a=
16506          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16507          if test -n "$acl_shlibext"; then
16508            shrext=".$acl_shlibext"             # typically: shrext=.so
16509          else
16510            shrext=
16511          fi
16512          if test $use_additional = yes; then
16513            dir="$additional_libdir"
16514                                    if test -n "$acl_shlibext"; then
16515              if test -f "$dir/$libname$shrext"; then
16516                found_dir="$dir"
16517                found_so="$dir/$libname$shrext"
16518              else
16519                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16520                  ver=`(cd "$dir" && \
16521                        for f in "$libname$shrext".*; do echo "$f"; done \
16522                        | sed -e "s,^$libname$shrext\\\\.,," \
16523                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16524                        | sed 1q ) 2>/dev/null`
16525                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16526                    found_dir="$dir"
16527                    found_so="$dir/$libname$shrext.$ver"
16528                  fi
16529                else
16530                  eval library_names=\"$acl_library_names_spec\"
16531                  for f in $library_names; do
16532                    if test -f "$dir/$f"; then
16533                      found_dir="$dir"
16534                      found_so="$dir/$f"
16535                      break
16536                    fi
16537                  done
16538                fi
16539              fi
16540            fi
16541                        if test "X$found_dir" = "X"; then
16542              if test -f "$dir/$libname.$acl_libext"; then
16543                found_dir="$dir"
16544                found_a="$dir/$libname.$acl_libext"
16545              fi
16546            fi
16547            if test "X$found_dir" != "X"; then
16548              if test -f "$dir/$libname.la"; then
16549                found_la="$dir/$libname.la"
16550              fi
16551            fi
16552          fi
16553          if test "X$found_dir" = "X"; then
16554            for x in $LDFLAGS $LTLIBICONV; do
16555
16556  acl_save_prefix="$prefix"
16557  prefix="$acl_final_prefix"
16558  acl_save_exec_prefix="$exec_prefix"
16559  exec_prefix="$acl_final_exec_prefix"
16560  eval x=\"$x\"
16561  exec_prefix="$acl_save_exec_prefix"
16562  prefix="$acl_save_prefix"
16563
16564              case "$x" in
16565                -L*)
16566                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16567                                    if test -n "$acl_shlibext"; then
16568                    if test -f "$dir/$libname$shrext"; then
16569                      found_dir="$dir"
16570                      found_so="$dir/$libname$shrext"
16571                    else
16572                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16573                        ver=`(cd "$dir" && \
16574                              for f in "$libname$shrext".*; do echo "$f"; done \
16575                              | sed -e "s,^$libname$shrext\\\\.,," \
16576                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16577                              | sed 1q ) 2>/dev/null`
16578                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16579                          found_dir="$dir"
16580                          found_so="$dir/$libname$shrext.$ver"
16581                        fi
16582                      else
16583                        eval library_names=\"$acl_library_names_spec\"
16584                        for f in $library_names; do
16585                          if test -f "$dir/$f"; then
16586                            found_dir="$dir"
16587                            found_so="$dir/$f"
16588                            break
16589                          fi
16590                        done
16591                      fi
16592                    fi
16593                  fi
16594                                    if test "X$found_dir" = "X"; then
16595                    if test -f "$dir/$libname.$acl_libext"; then
16596                      found_dir="$dir"
16597                      found_a="$dir/$libname.$acl_libext"
16598                    fi
16599                  fi
16600                  if test "X$found_dir" != "X"; then
16601                    if test -f "$dir/$libname.la"; then
16602                      found_la="$dir/$libname.la"
16603                    fi
16604                  fi
16605                  ;;
16606              esac
16607              if test "X$found_dir" != "X"; then
16608                break
16609              fi
16610            done
16611          fi
16612          if test "X$found_dir" != "X"; then
16613                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16614            if test "X$found_so" != "X"; then
16615                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
16616                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16617              else
16618                                                                                haveit=
16619                for x in $ltrpathdirs; do
16620                  if test "X$x" = "X$found_dir"; then
16621                    haveit=yes
16622                    break
16623                  fi
16624                done
16625                if test -z "$haveit"; then
16626                  ltrpathdirs="$ltrpathdirs $found_dir"
16627                fi
16628                                if test "$acl_hardcode_direct" = yes; then
16629                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16630                else
16631                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16632                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16633                                                            haveit=
16634                    for x in $rpathdirs; do
16635                      if test "X$x" = "X$found_dir"; then
16636                        haveit=yes
16637                        break
16638                      fi
16639                    done
16640                    if test -z "$haveit"; then
16641                      rpathdirs="$rpathdirs $found_dir"
16642                    fi
16643                  else
16644                                                                                haveit=
16645                    for x in $LDFLAGS $LIBICONV; do
16646
16647  acl_save_prefix="$prefix"
16648  prefix="$acl_final_prefix"
16649  acl_save_exec_prefix="$exec_prefix"
16650  exec_prefix="$acl_final_exec_prefix"
16651  eval x=\"$x\"
16652  exec_prefix="$acl_save_exec_prefix"
16653  prefix="$acl_save_prefix"
16654
16655                      if test "X$x" = "X-L$found_dir"; then
16656                        haveit=yes
16657                        break
16658                      fi
16659                    done
16660                    if test -z "$haveit"; then
16661                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16662                    fi
16663                    if test "$acl_hardcode_minus_L" != no; then
16664                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16665                    else
16666                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16667                    fi
16668                  fi
16669                fi
16670              fi
16671            else
16672              if test "X$found_a" != "X"; then
16673                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16674              else
16675                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16676              fi
16677            fi
16678                        additional_includedir=
16679            case "$found_dir" in
16680              */$acl_libdirstem | */$acl_libdirstem/)
16681                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16682                LIBICONV_PREFIX="$basedir"
16683                additional_includedir="$basedir/include"
16684                ;;
16685            esac
16686            if test "X$additional_includedir" != "X"; then
16687                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
16688                haveit=
16689                if test "X$additional_includedir" = "X/usr/local/include"; then
16690                  if test -n "$GCC"; then
16691                    case $host_os in
16692                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16693                    esac
16694                  fi
16695                fi
16696                if test -z "$haveit"; then
16697                  for x in $CPPFLAGS $INCICONV; do
16698
16699  acl_save_prefix="$prefix"
16700  prefix="$acl_final_prefix"
16701  acl_save_exec_prefix="$exec_prefix"
16702  exec_prefix="$acl_final_exec_prefix"
16703  eval x=\"$x\"
16704  exec_prefix="$acl_save_exec_prefix"
16705  prefix="$acl_save_prefix"
16706
16707                    if test "X$x" = "X-I$additional_includedir"; then
16708                      haveit=yes
16709                      break
16710                    fi
16711                  done
16712                  if test -z "$haveit"; then
16713                    if test -d "$additional_includedir"; then
16714                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16715                    fi
16716                  fi
16717                fi
16718              fi
16719            fi
16720                        if test -n "$found_la"; then
16721                                                        save_libdir="$libdir"
16722              case "$found_la" in
16723                */* | *\\*) . "$found_la" ;;
16724                *) . "./$found_la" ;;
16725              esac
16726              libdir="$save_libdir"
16727                            for dep in $dependency_libs; do
16728                case "$dep" in
16729                  -L*)
16730                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16731                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
16732                      haveit=
16733                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
16734                        if test -n "$GCC"; then
16735                          case $host_os in
16736                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16737                          esac
16738                        fi
16739                      fi
16740                      if test -z "$haveit"; then
16741                        haveit=
16742                        for x in $LDFLAGS $LIBICONV; do
16743
16744  acl_save_prefix="$prefix"
16745  prefix="$acl_final_prefix"
16746  acl_save_exec_prefix="$exec_prefix"
16747  exec_prefix="$acl_final_exec_prefix"
16748  eval x=\"$x\"
16749  exec_prefix="$acl_save_exec_prefix"
16750  prefix="$acl_save_prefix"
16751
16752                          if test "X$x" = "X-L$additional_libdir"; then
16753                            haveit=yes
16754                            break
16755                          fi
16756                        done
16757                        if test -z "$haveit"; then
16758                          if test -d "$additional_libdir"; then
16759                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16760                          fi
16761                        fi
16762                        haveit=
16763                        for x in $LDFLAGS $LTLIBICONV; do
16764
16765  acl_save_prefix="$prefix"
16766  prefix="$acl_final_prefix"
16767  acl_save_exec_prefix="$exec_prefix"
16768  exec_prefix="$acl_final_exec_prefix"
16769  eval x=\"$x\"
16770  exec_prefix="$acl_save_exec_prefix"
16771  prefix="$acl_save_prefix"
16772
16773                          if test "X$x" = "X-L$additional_libdir"; then
16774                            haveit=yes
16775                            break
16776                          fi
16777                        done
16778                        if test -z "$haveit"; then
16779                          if test -d "$additional_libdir"; then
16780                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16781                          fi
16782                        fi
16783                      fi
16784                    fi
16785                    ;;
16786                  -R*)
16787                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
16788                    if test "$enable_rpath" != no; then
16789                                                                  haveit=
16790                      for x in $rpathdirs; do
16791                        if test "X$x" = "X$dir"; then
16792                          haveit=yes
16793                          break
16794                        fi
16795                      done
16796                      if test -z "$haveit"; then
16797                        rpathdirs="$rpathdirs $dir"
16798                      fi
16799                                                                  haveit=
16800                      for x in $ltrpathdirs; do
16801                        if test "X$x" = "X$dir"; then
16802                          haveit=yes
16803                          break
16804                        fi
16805                      done
16806                      if test -z "$haveit"; then
16807                        ltrpathdirs="$ltrpathdirs $dir"
16808                      fi
16809                    fi
16810                    ;;
16811                  -l*)
16812                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16813                    ;;
16814                  *.la)
16815                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16816                    ;;
16817                  *)
16818                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16819                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16820                    ;;
16821                esac
16822              done
16823            fi
16824          else
16825                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16826            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16827          fi
16828        fi
16829      fi
16830    done
16831  done
16832  if test "X$rpathdirs" != "X"; then
16833    if test -n "$acl_hardcode_libdir_separator"; then
16834                        alldirs=
16835      for found_dir in $rpathdirs; do
16836        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16837      done
16838            acl_save_libdir="$libdir"
16839      libdir="$alldirs"
16840      eval flag=\"$acl_hardcode_libdir_flag_spec\"
16841      libdir="$acl_save_libdir"
16842      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16843    else
16844            for found_dir in $rpathdirs; do
16845        acl_save_libdir="$libdir"
16846        libdir="$found_dir"
16847        eval flag=\"$acl_hardcode_libdir_flag_spec\"
16848        libdir="$acl_save_libdir"
16849        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16850      done
16851    fi
16852  fi
16853  if test "X$ltrpathdirs" != "X"; then
16854            for found_dir in $ltrpathdirs; do
16855      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16856    done
16857  fi
16858
16859
16860
16861
16862
16863
16864
16865          am_save_CPPFLAGS="$CPPFLAGS"
16866
16867  for element in $INCICONV; do
16868    haveit=
16869    for x in $CPPFLAGS; do
16870
16871  acl_save_prefix="$prefix"
16872  prefix="$acl_final_prefix"
16873  acl_save_exec_prefix="$exec_prefix"
16874  exec_prefix="$acl_final_exec_prefix"
16875  eval x=\"$x\"
16876  exec_prefix="$acl_save_exec_prefix"
16877  prefix="$acl_save_prefix"
16878
16879      if test "X$x" = "X$element"; then
16880        haveit=yes
16881        break
16882      fi
16883    done
16884    if test -z "$haveit"; then
16885      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16886    fi
16887  done
16888
16889
16890  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
16891$as_echo_n "checking for iconv... " >&6; }
16892if test "${am_cv_func_iconv+set}" = set; then
16893  $as_echo_n "(cached) " >&6
16894else
16895
16896    am_cv_func_iconv="no, consider installing GNU libiconv"
16897    am_cv_lib_iconv=no
16898    cat >conftest.$ac_ext <<_ACEOF
16899/* confdefs.h.  */
16900_ACEOF
16901cat confdefs.h >>conftest.$ac_ext
16902cat >>conftest.$ac_ext <<_ACEOF
16903/* end confdefs.h.  */
16904#include <stdlib.h>
16905#include <iconv.h>
16906int
16907main ()
16908{
16909iconv_t cd = iconv_open("","");
16910       iconv(cd,NULL,NULL,NULL,NULL);
16911       iconv_close(cd);
16912  ;
16913  return 0;
16914}
16915_ACEOF
16916rm -f conftest.$ac_objext conftest$ac_exeext
16917if { (ac_try="$ac_link"
16918case "(($ac_try" in
16919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920  *) ac_try_echo=$ac_try;;
16921esac
16922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16923$as_echo "$ac_try_echo") >&5
16924  (eval "$ac_link") 2>conftest.er1
16925  ac_status=$?
16926  grep -v '^ *+' conftest.er1 >conftest.err
16927  rm -f conftest.er1
16928  cat conftest.err >&5
16929  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930  (exit $ac_status); } && {
16931	 test -z "$ac_c_werror_flag" ||
16932	 test ! -s conftest.err
16933       } && test -s conftest$ac_exeext && {
16934	 test "$cross_compiling" = yes ||
16935	 $as_test_x conftest$ac_exeext
16936       }; then
16937  am_cv_func_iconv=yes
16938else
16939  $as_echo "$as_me: failed program was:" >&5
16940sed 's/^/| /' conftest.$ac_ext >&5
16941
16942
16943fi
16944
16945rm -rf conftest.dSYM
16946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16947      conftest$ac_exeext conftest.$ac_ext
16948    if test "$am_cv_func_iconv" != yes; then
16949      am_save_LIBS="$LIBS"
16950      LIBS="$LIBS $LIBICONV"
16951      cat >conftest.$ac_ext <<_ACEOF
16952/* confdefs.h.  */
16953_ACEOF
16954cat confdefs.h >>conftest.$ac_ext
16955cat >>conftest.$ac_ext <<_ACEOF
16956/* end confdefs.h.  */
16957#include <stdlib.h>
16958#include <iconv.h>
16959int
16960main ()
16961{
16962iconv_t cd = iconv_open("","");
16963         iconv(cd,NULL,NULL,NULL,NULL);
16964         iconv_close(cd);
16965  ;
16966  return 0;
16967}
16968_ACEOF
16969rm -f conftest.$ac_objext conftest$ac_exeext
16970if { (ac_try="$ac_link"
16971case "(($ac_try" in
16972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973  *) ac_try_echo=$ac_try;;
16974esac
16975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16976$as_echo "$ac_try_echo") >&5
16977  (eval "$ac_link") 2>conftest.er1
16978  ac_status=$?
16979  grep -v '^ *+' conftest.er1 >conftest.err
16980  rm -f conftest.er1
16981  cat conftest.err >&5
16982  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983  (exit $ac_status); } && {
16984	 test -z "$ac_c_werror_flag" ||
16985	 test ! -s conftest.err
16986       } && test -s conftest$ac_exeext && {
16987	 test "$cross_compiling" = yes ||
16988	 $as_test_x conftest$ac_exeext
16989       }; then
16990  am_cv_lib_iconv=yes
16991        am_cv_func_iconv=yes
16992else
16993  $as_echo "$as_me: failed program was:" >&5
16994sed 's/^/| /' conftest.$ac_ext >&5
16995
16996
16997fi
16998
16999rm -rf conftest.dSYM
17000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17001      conftest$ac_exeext conftest.$ac_ext
17002      LIBS="$am_save_LIBS"
17003    fi
17004
17005fi
17006{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17007$as_echo "$am_cv_func_iconv" >&6; }
17008  if test "$am_cv_func_iconv" = yes; then
17009    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
17010$as_echo_n "checking for working iconv... " >&6; }
17011if test "${am_cv_func_iconv_works+set}" = set; then
17012  $as_echo_n "(cached) " >&6
17013else
17014
17015            am_save_LIBS="$LIBS"
17016      if test $am_cv_lib_iconv = yes; then
17017        LIBS="$LIBS $LIBICONV"
17018      fi
17019      if test "$cross_compiling" = yes; then
17020  case "$host_os" in
17021           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17022           *)            am_cv_func_iconv_works="guessing yes" ;;
17023         esac
17024else
17025  cat >conftest.$ac_ext <<_ACEOF
17026/* confdefs.h.  */
17027_ACEOF
17028cat confdefs.h >>conftest.$ac_ext
17029cat >>conftest.$ac_ext <<_ACEOF
17030/* end confdefs.h.  */
17031
17032#include <iconv.h>
17033#include <string.h>
17034int main ()
17035{
17036  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17037     returns.  */
17038  {
17039    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17040    if (cd_utf8_to_88591 != (iconv_t)(-1))
17041      {
17042        static const char input[] = "\342\202\254"; /* EURO SIGN */
17043        char buf[10];
17044        const char *inptr = input;
17045        size_t inbytesleft = strlen (input);
17046        char *outptr = buf;
17047        size_t outbytesleft = sizeof (buf);
17048        size_t res = iconv (cd_utf8_to_88591,
17049                            (char **) &inptr, &inbytesleft,
17050                            &outptr, &outbytesleft);
17051        if (res == 0)
17052          return 1;
17053      }
17054  }
17055#if 0 /* This bug could be worked around by the caller.  */
17056  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
17057  {
17058    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17059    if (cd_88591_to_utf8 != (iconv_t)(-1))
17060      {
17061        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17062        char buf[50];
17063        const char *inptr = input;
17064        size_t inbytesleft = strlen (input);
17065        char *outptr = buf;
17066        size_t outbytesleft = sizeof (buf);
17067        size_t res = iconv (cd_88591_to_utf8,
17068                            (char **) &inptr, &inbytesleft,
17069                            &outptr, &outbytesleft);
17070        if ((int)res > 0)
17071          return 1;
17072      }
17073  }
17074#endif
17075  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17076     provided.  */
17077  if (/* Try standardized names.  */
17078      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17079      /* Try IRIX, OSF/1 names.  */
17080      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17081      /* Try AIX names.  */
17082      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17083      /* Try HP-UX names.  */
17084      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17085    return 1;
17086  return 0;
17087}
17088_ACEOF
17089rm -f conftest$ac_exeext
17090if { (ac_try="$ac_link"
17091case "(($ac_try" in
17092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093  *) ac_try_echo=$ac_try;;
17094esac
17095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17096$as_echo "$ac_try_echo") >&5
17097  (eval "$ac_link") 2>&5
17098  ac_status=$?
17099  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17101  { (case "(($ac_try" in
17102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103  *) ac_try_echo=$ac_try;;
17104esac
17105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17106$as_echo "$ac_try_echo") >&5
17107  (eval "$ac_try") 2>&5
17108  ac_status=$?
17109  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110  (exit $ac_status); }; }; then
17111  am_cv_func_iconv_works=yes
17112else
17113  $as_echo "$as_me: program exited with status $ac_status" >&5
17114$as_echo "$as_me: failed program was:" >&5
17115sed 's/^/| /' conftest.$ac_ext >&5
17116
17117( exit $ac_status )
17118am_cv_func_iconv_works=no
17119fi
17120rm -rf conftest.dSYM
17121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17122fi
17123
17124
17125      LIBS="$am_save_LIBS"
17126
17127fi
17128{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
17129$as_echo "$am_cv_func_iconv_works" >&6; }
17130    case "$am_cv_func_iconv_works" in
17131      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17132      *)   am_func_iconv=yes ;;
17133    esac
17134  else
17135    am_func_iconv=no am_cv_lib_iconv=no
17136  fi
17137  if test "$am_func_iconv" = yes; then
17138
17139cat >>confdefs.h <<\_ACEOF
17140#define HAVE_ICONV 1
17141_ACEOF
17142
17143  fi
17144  if test "$am_cv_lib_iconv" = yes; then
17145    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17146$as_echo_n "checking how to link with libiconv... " >&6; }
17147    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
17148$as_echo "$LIBICONV" >&6; }
17149  else
17150            CPPFLAGS="$am_save_CPPFLAGS"
17151    LIBICONV=
17152    LTLIBICONV=
17153  fi
17154
17155
17156
17157  if test "$am_cv_func_iconv" = yes; then
17158    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
17159$as_echo_n "checking for iconv declaration... " >&6; }
17160    if test "${am_cv_proto_iconv+set}" = set; then
17161  $as_echo_n "(cached) " >&6
17162else
17163
17164      cat >conftest.$ac_ext <<_ACEOF
17165/* confdefs.h.  */
17166_ACEOF
17167cat confdefs.h >>conftest.$ac_ext
17168cat >>conftest.$ac_ext <<_ACEOF
17169/* end confdefs.h.  */
17170
17171#include <stdlib.h>
17172#include <iconv.h>
17173extern
17174#ifdef __cplusplus
17175"C"
17176#endif
17177#if defined(__STDC__) || defined(__cplusplus)
17178size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17179#else
17180size_t iconv();
17181#endif
17182
17183int
17184main ()
17185{
17186
17187  ;
17188  return 0;
17189}
17190_ACEOF
17191rm -f conftest.$ac_objext
17192if { (ac_try="$ac_compile"
17193case "(($ac_try" in
17194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195  *) ac_try_echo=$ac_try;;
17196esac
17197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17198$as_echo "$ac_try_echo") >&5
17199  (eval "$ac_compile") 2>conftest.er1
17200  ac_status=$?
17201  grep -v '^ *+' conftest.er1 >conftest.err
17202  rm -f conftest.er1
17203  cat conftest.err >&5
17204  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205  (exit $ac_status); } && {
17206	 test -z "$ac_c_werror_flag" ||
17207	 test ! -s conftest.err
17208       } && test -s conftest.$ac_objext; then
17209  am_cv_proto_iconv_arg1=""
17210else
17211  $as_echo "$as_me: failed program was:" >&5
17212sed 's/^/| /' conftest.$ac_ext >&5
17213
17214	am_cv_proto_iconv_arg1="const"
17215fi
17216
17217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
17219fi
17220
17221    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17222    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
17223         }$am_cv_proto_iconv" >&5
17224$as_echo "${ac_t:-
17225         }$am_cv_proto_iconv" >&6; }
17226
17227cat >>confdefs.h <<_ACEOF
17228#define ICONV_CONST $am_cv_proto_iconv_arg1
17229_ACEOF
17230
17231  fi
17232
17233
17234CFLAGS_save="$CFLAGS"
17235CFLAGS="$CFLAGS -I$srcdir"
17236LIBS_save="$LIBS"
17237LIBS="$LIBS $LIBICONV"
17238
17239{ $as_echo "$as_me:$LINENO: checking preferred charset formats for system iconv" >&5
17240$as_echo_n "checking preferred charset formats for system iconv... " >&6; }
17241if test "${ac_cv_have_iconv_detect_h+set}" = set; then
17242  $as_echo_n "(cached) " >&6
17243else
17244
17245	if test "$cross_compiling" = yes; then
17246
17247		{ $as_echo "$as_me:$LINENO: result: cannot run test program while cross compiling" >&5
17248$as_echo "cannot run test program while cross compiling" >&6; }
17249		{ { $as_echo "$as_me:$LINENO: error: Copy target system's iconv-detect.h to . and configure with ac_cv_have_iconv_detect_h=yes" >&5
17250$as_echo "$as_me: error: Copy target system's iconv-detect.h to . and configure with ac_cv_have_iconv_detect_h=yes" >&2;}
17251   { (exit 1); exit 1; }; }
17252
17253else
17254  cat >conftest.$ac_ext <<_ACEOF
17255/* confdefs.h.  */
17256_ACEOF
17257cat confdefs.h >>conftest.$ac_ext
17258cat >>conftest.$ac_ext <<_ACEOF
17259/* end confdefs.h.  */
17260
17261		#define CONFIGURE_IN
17262		#include "iconv-detect.c"
17263
17264_ACEOF
17265rm -f conftest$ac_exeext
17266if { (ac_try="$ac_link"
17267case "(($ac_try" in
17268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269  *) ac_try_echo=$ac_try;;
17270esac
17271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17272$as_echo "$ac_try_echo") >&5
17273  (eval "$ac_link") 2>&5
17274  ac_status=$?
17275  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17277  { (case "(($ac_try" in
17278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279  *) ac_try_echo=$ac_try;;
17280esac
17281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17282$as_echo "$ac_try_echo") >&5
17283  (eval "$ac_try") 2>&5
17284  ac_status=$?
17285  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286  (exit $ac_status); }; }; then
17287  ac_cv_have_iconv_detect_h=yes
17288else
17289  $as_echo "$as_me: program exited with status $ac_status" >&5
17290$as_echo "$as_me: failed program was:" >&5
17291sed 's/^/| /' conftest.$ac_ext >&5
17292
17293( exit $ac_status )
17294ac_cv_have_iconv_detect_h=no
17295fi
17296rm -rf conftest.dSYM
17297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17298fi
17299
17300
17301
17302fi
17303{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_iconv_detect_h" >&5
17304$as_echo "$ac_cv_have_iconv_detect_h" >&6; }
17305if test "x$ac_cv_have_iconv_detect_h" = xyes; then
17306	{ $as_echo "$as_me:$LINENO: result: found" >&5
17307$as_echo "found" >&6; }
17308
17309cat >>confdefs.h <<\_ACEOF
17310#define HAVE_ICONV_DETECT_H 1
17311_ACEOF
17312
17313else
17314	{ $as_echo "$as_me:$LINENO: result: not found
17315	*** The iconv-detect program was unable to determine the
17316	*** preferred charset formats recognized by your system
17317	*** iconv library. It is suggested that you install a
17318	*** working iconv library such as the one found at
17319	*** ftp://ftp.gnu.org/pub/gnu/libiconv
17320	***
17321	*** Default charset formats will be used.
17322	" >&5
17323$as_echo "not found
17324	*** The iconv-detect program was unable to determine the
17325	*** preferred charset formats recognized by your system
17326	*** iconv library. It is suggested that you install a
17327	*** working iconv library such as the one found at
17328	*** ftp://ftp.gnu.org/pub/gnu/libiconv
17329	***
17330	*** Default charset formats will be used.
17331	" >&6; }
17332fi
17333
17334CFLAGS="$CFLAGS_save"
17335LIBS="$LIBS_save"
17336
17337if test "${ac_cv_header_regex_h+set}" = set; then
17338  { $as_echo "$as_me:$LINENO: checking for regex.h" >&5
17339$as_echo_n "checking for regex.h... " >&6; }
17340if test "${ac_cv_header_regex_h+set}" = set; then
17341  $as_echo_n "(cached) " >&6
17342fi
17343{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17344$as_echo "$ac_cv_header_regex_h" >&6; }
17345else
17346  # Is the header compilable?
17347{ $as_echo "$as_me:$LINENO: checking regex.h usability" >&5
17348$as_echo_n "checking regex.h usability... " >&6; }
17349cat >conftest.$ac_ext <<_ACEOF
17350/* confdefs.h.  */
17351_ACEOF
17352cat confdefs.h >>conftest.$ac_ext
17353cat >>conftest.$ac_ext <<_ACEOF
17354/* end confdefs.h.  */
17355$ac_includes_default
17356#include <regex.h>
17357_ACEOF
17358rm -f conftest.$ac_objext
17359if { (ac_try="$ac_compile"
17360case "(($ac_try" in
17361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362  *) ac_try_echo=$ac_try;;
17363esac
17364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17365$as_echo "$ac_try_echo") >&5
17366  (eval "$ac_compile") 2>conftest.er1
17367  ac_status=$?
17368  grep -v '^ *+' conftest.er1 >conftest.err
17369  rm -f conftest.er1
17370  cat conftest.err >&5
17371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372  (exit $ac_status); } && {
17373	 test -z "$ac_c_werror_flag" ||
17374	 test ! -s conftest.err
17375       } && test -s conftest.$ac_objext; then
17376  ac_header_compiler=yes
17377else
17378  $as_echo "$as_me: failed program was:" >&5
17379sed 's/^/| /' conftest.$ac_ext >&5
17380
17381	ac_header_compiler=no
17382fi
17383
17384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17385{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17386$as_echo "$ac_header_compiler" >&6; }
17387
17388# Is the header present?
17389{ $as_echo "$as_me:$LINENO: checking regex.h presence" >&5
17390$as_echo_n "checking regex.h presence... " >&6; }
17391cat >conftest.$ac_ext <<_ACEOF
17392/* confdefs.h.  */
17393_ACEOF
17394cat confdefs.h >>conftest.$ac_ext
17395cat >>conftest.$ac_ext <<_ACEOF
17396/* end confdefs.h.  */
17397#include <regex.h>
17398_ACEOF
17399if { (ac_try="$ac_cpp conftest.$ac_ext"
17400case "(($ac_try" in
17401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402  *) ac_try_echo=$ac_try;;
17403esac
17404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17405$as_echo "$ac_try_echo") >&5
17406  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17407  ac_status=$?
17408  grep -v '^ *+' conftest.er1 >conftest.err
17409  rm -f conftest.er1
17410  cat conftest.err >&5
17411  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412  (exit $ac_status); } >/dev/null && {
17413	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17414	 test ! -s conftest.err
17415       }; then
17416  ac_header_preproc=yes
17417else
17418  $as_echo "$as_me: failed program was:" >&5
17419sed 's/^/| /' conftest.$ac_ext >&5
17420
17421  ac_header_preproc=no
17422fi
17423
17424rm -f conftest.err conftest.$ac_ext
17425{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17426$as_echo "$ac_header_preproc" >&6; }
17427
17428# So?  What about this header?
17429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17430  yes:no: )
17431    { $as_echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17432$as_echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17433    { $as_echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
17434$as_echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
17435    ac_header_preproc=yes
17436    ;;
17437  no:yes:* )
17438    { $as_echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17439$as_echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17440    { $as_echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
17441$as_echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
17442    { $as_echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
17443$as_echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
17444    { $as_echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
17445$as_echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17446    { $as_echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17447$as_echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17448    { $as_echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
17449$as_echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
17450
17451    ;;
17452esac
17453{ $as_echo "$as_me:$LINENO: checking for regex.h" >&5
17454$as_echo_n "checking for regex.h... " >&6; }
17455if test "${ac_cv_header_regex_h+set}" = set; then
17456  $as_echo_n "(cached) " >&6
17457else
17458  ac_cv_header_regex_h=$ac_header_preproc
17459fi
17460{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17461$as_echo "$ac_cv_header_regex_h" >&6; }
17462
17463fi
17464if test "x$ac_cv_header_regex_h" = x""yes; then
17465  have_regex="yes"
17466fi
17467
17468
17469 if test "x$have_regex" = "xyes"; then
17470  HAVE_REGEX_TRUE=
17471  HAVE_REGEX_FALSE='#'
17472else
17473  HAVE_REGEX_TRUE='#'
17474  HAVE_REGEX_FALSE=
17475fi
17476
17477
17478if test "${ac_cv_header_getopt_h+set}" = set; then
17479  { $as_echo "$as_me:$LINENO: checking for getopt.h" >&5
17480$as_echo_n "checking for getopt.h... " >&6; }
17481if test "${ac_cv_header_getopt_h+set}" = set; then
17482  $as_echo_n "(cached) " >&6
17483fi
17484{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5
17485$as_echo "$ac_cv_header_getopt_h" >&6; }
17486else
17487  # Is the header compilable?
17488{ $as_echo "$as_me:$LINENO: checking getopt.h usability" >&5
17489$as_echo_n "checking getopt.h usability... " >&6; }
17490cat >conftest.$ac_ext <<_ACEOF
17491/* confdefs.h.  */
17492_ACEOF
17493cat confdefs.h >>conftest.$ac_ext
17494cat >>conftest.$ac_ext <<_ACEOF
17495/* end confdefs.h.  */
17496$ac_includes_default
17497#include <getopt.h>
17498_ACEOF
17499rm -f conftest.$ac_objext
17500if { (ac_try="$ac_compile"
17501case "(($ac_try" in
17502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503  *) ac_try_echo=$ac_try;;
17504esac
17505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17506$as_echo "$ac_try_echo") >&5
17507  (eval "$ac_compile") 2>conftest.er1
17508  ac_status=$?
17509  grep -v '^ *+' conftest.er1 >conftest.err
17510  rm -f conftest.er1
17511  cat conftest.err >&5
17512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513  (exit $ac_status); } && {
17514	 test -z "$ac_c_werror_flag" ||
17515	 test ! -s conftest.err
17516       } && test -s conftest.$ac_objext; then
17517  ac_header_compiler=yes
17518else
17519  $as_echo "$as_me: failed program was:" >&5
17520sed 's/^/| /' conftest.$ac_ext >&5
17521
17522	ac_header_compiler=no
17523fi
17524
17525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17526{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17527$as_echo "$ac_header_compiler" >&6; }
17528
17529# Is the header present?
17530{ $as_echo "$as_me:$LINENO: checking getopt.h presence" >&5
17531$as_echo_n "checking getopt.h presence... " >&6; }
17532cat >conftest.$ac_ext <<_ACEOF
17533/* confdefs.h.  */
17534_ACEOF
17535cat confdefs.h >>conftest.$ac_ext
17536cat >>conftest.$ac_ext <<_ACEOF
17537/* end confdefs.h.  */
17538#include <getopt.h>
17539_ACEOF
17540if { (ac_try="$ac_cpp conftest.$ac_ext"
17541case "(($ac_try" in
17542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543  *) ac_try_echo=$ac_try;;
17544esac
17545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17546$as_echo "$ac_try_echo") >&5
17547  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17548  ac_status=$?
17549  grep -v '^ *+' conftest.er1 >conftest.err
17550  rm -f conftest.er1
17551  cat conftest.err >&5
17552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553  (exit $ac_status); } >/dev/null && {
17554	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17555	 test ! -s conftest.err
17556       }; then
17557  ac_header_preproc=yes
17558else
17559  $as_echo "$as_me: failed program was:" >&5
17560sed 's/^/| /' conftest.$ac_ext >&5
17561
17562  ac_header_preproc=no
17563fi
17564
17565rm -f conftest.err conftest.$ac_ext
17566{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17567$as_echo "$ac_header_preproc" >&6; }
17568
17569# So?  What about this header?
17570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17571  yes:no: )
17572    { $as_echo "$as_me:$LINENO: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&5
17573$as_echo "$as_me: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17574    { $as_echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the compiler's result" >&5
17575$as_echo "$as_me: WARNING: getopt.h: proceeding with the compiler's result" >&2;}
17576    ac_header_preproc=yes
17577    ;;
17578  no:yes:* )
17579    { $as_echo "$as_me:$LINENO: WARNING: getopt.h: present but cannot be compiled" >&5
17580$as_echo "$as_me: WARNING: getopt.h: present but cannot be compiled" >&2;}
17581    { $as_echo "$as_me:$LINENO: WARNING: getopt.h:     check for missing prerequisite headers?" >&5
17582$as_echo "$as_me: WARNING: getopt.h:     check for missing prerequisite headers?" >&2;}
17583    { $as_echo "$as_me:$LINENO: WARNING: getopt.h: see the Autoconf documentation" >&5
17584$as_echo "$as_me: WARNING: getopt.h: see the Autoconf documentation" >&2;}
17585    { $as_echo "$as_me:$LINENO: WARNING: getopt.h:     section \"Present But Cannot Be Compiled\"" >&5
17586$as_echo "$as_me: WARNING: getopt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17587    { $as_echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the preprocessor's result" >&5
17588$as_echo "$as_me: WARNING: getopt.h: proceeding with the preprocessor's result" >&2;}
17589    { $as_echo "$as_me:$LINENO: WARNING: getopt.h: in the future, the compiler will take precedence" >&5
17590$as_echo "$as_me: WARNING: getopt.h: in the future, the compiler will take precedence" >&2;}
17591
17592    ;;
17593esac
17594{ $as_echo "$as_me:$LINENO: checking for getopt.h" >&5
17595$as_echo_n "checking for getopt.h... " >&6; }
17596if test "${ac_cv_header_getopt_h+set}" = set; then
17597  $as_echo_n "(cached) " >&6
17598else
17599  ac_cv_header_getopt_h=$ac_header_preproc
17600fi
17601{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5
17602$as_echo "$ac_cv_header_getopt_h" >&6; }
17603
17604fi
17605
17606
17607{ $as_echo "$as_me:$LINENO: checking for GNU getopt_long" >&5
17608$as_echo_n "checking for GNU getopt_long... " >&6; }
17609cat >conftest.$ac_ext <<_ACEOF
17610/* confdefs.h.  */
17611_ACEOF
17612cat confdefs.h >>conftest.$ac_ext
17613cat >>conftest.$ac_ext <<_ACEOF
17614/* end confdefs.h.  */
17615
17616	#include <string.h>
17617	#include <unistd.h>
17618	#define _GNU_SOURCE
17619	#include <getopt.h>
17620
17621int
17622main ()
17623{
17624
17625	return getopt_long (0, NULL, NULL, NULL, NULL);
17626
17627
17628  ;
17629  return 0;
17630}
17631_ACEOF
17632rm -f conftest.$ac_objext conftest$ac_exeext
17633if { (ac_try="$ac_link"
17634case "(($ac_try" in
17635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636  *) ac_try_echo=$ac_try;;
17637esac
17638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17639$as_echo "$ac_try_echo") >&5
17640  (eval "$ac_link") 2>conftest.er1
17641  ac_status=$?
17642  grep -v '^ *+' conftest.er1 >conftest.err
17643  rm -f conftest.er1
17644  cat conftest.err >&5
17645  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646  (exit $ac_status); } && {
17647	 test -z "$ac_c_werror_flag" ||
17648	 test ! -s conftest.err
17649       } && test -s conftest$ac_exeext && {
17650	 test "$cross_compiling" = yes ||
17651	 $as_test_x conftest$ac_exeext
17652       }; then
17653  { $as_echo "$as_me:$LINENO: result: yes" >&5
17654$as_echo "yes" >&6; }
17655
17656cat >>confdefs.h <<\_ACEOF
17657#define HAVE_GETOPT_H 1
17658_ACEOF
17659
17660	have_getopt="yes"
17661
17662else
17663  $as_echo "$as_me: failed program was:" >&5
17664sed 's/^/| /' conftest.$ac_ext >&5
17665
17666	{ $as_echo "$as_me:$LINENO: result: no" >&5
17667$as_echo "no" >&6; }
17668	have_getopt="no"
17669
17670fi
17671
17672rm -rf conftest.dSYM
17673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17674      conftest$ac_exeext conftest.$ac_ext
17675 if test "x$have_getopt" = "xyes"; then
17676  SYSTEM_GETOPT_TRUE=
17677  SYSTEM_GETOPT_FALSE='#'
17678else
17679  SYSTEM_GETOPT_TRUE='#'
17680  SYSTEM_GETOPT_FALSE=
17681fi
17682
17683
17684{ $as_echo "$as_me:$LINENO: checking for fsync" >&5
17685$as_echo_n "checking for fsync... " >&6; }
17686cat >conftest.$ac_ext <<_ACEOF
17687/* confdefs.h.  */
17688_ACEOF
17689cat confdefs.h >>conftest.$ac_ext
17690cat >>conftest.$ac_ext <<_ACEOF
17691/* end confdefs.h.  */
17692
17693	#include <unistd.h>
17694
17695int
17696main ()
17697{
17698
17699	fsync(0);
17700
17701
17702  ;
17703  return 0;
17704}
17705_ACEOF
17706rm -f conftest.$ac_objext conftest$ac_exeext
17707if { (ac_try="$ac_link"
17708case "(($ac_try" in
17709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710  *) ac_try_echo=$ac_try;;
17711esac
17712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17713$as_echo "$ac_try_echo") >&5
17714  (eval "$ac_link") 2>conftest.er1
17715  ac_status=$?
17716  grep -v '^ *+' conftest.er1 >conftest.err
17717  rm -f conftest.er1
17718  cat conftest.err >&5
17719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720  (exit $ac_status); } && {
17721	 test -z "$ac_c_werror_flag" ||
17722	 test ! -s conftest.err
17723       } && test -s conftest$ac_exeext && {
17724	 test "$cross_compiling" = yes ||
17725	 $as_test_x conftest$ac_exeext
17726       }; then
17727  { $as_echo "$as_me:$LINENO: result: yes" >&5
17728$as_echo "yes" >&6; }
17729
17730cat >>confdefs.h <<\_ACEOF
17731#define HAVE_FSYNC 1
17732_ACEOF
17733
17734
17735else
17736  $as_echo "$as_me: failed program was:" >&5
17737sed 's/^/| /' conftest.$ac_ext >&5
17738
17739	{ $as_echo "$as_me:$LINENO: result: no" >&5
17740$as_echo "no" >&6; }
17741
17742fi
17743
17744rm -rf conftest.dSYM
17745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17746      conftest$ac_exeext conftest.$ac_ext
17747
17748# Check whether --enable-rfc2047-workarounds was given.
17749if test "${enable_rfc2047_workarounds+set}" = set; then
17750  enableval=$enable_rfc2047_workarounds;
17751else
17752  enable_rfc2047_workarounds=no
17753fi
17754
17755if test "x$enable_rfc2047_workarounds" = "xyes"; then
17756
17757cat >>confdefs.h <<\_ACEOF
17758#define ENABLE_RFC2047_WORKAROUNDS 1
17759_ACEOF
17760
17761fi
17762
17763{ $as_echo "$as_me:$LINENO: checking for MAXHOSTNAMELEN" >&5
17764$as_echo_n "checking for MAXHOSTNAMELEN... " >&6; }
17765cat >conftest.$ac_ext <<_ACEOF
17766/* confdefs.h.  */
17767_ACEOF
17768cat confdefs.h >>conftest.$ac_ext
17769cat >>conftest.$ac_ext <<_ACEOF
17770/* end confdefs.h.  */
17771
17772	#include <sys/param.h>
17773
17774int
17775main ()
17776{
17777
17778	return MAXHOSTNAMELEN;
17779
17780
17781  ;
17782  return 0;
17783}
17784_ACEOF
17785rm -f conftest.$ac_objext
17786if { (ac_try="$ac_compile"
17787case "(($ac_try" in
17788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789  *) ac_try_echo=$ac_try;;
17790esac
17791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17792$as_echo "$ac_try_echo") >&5
17793  (eval "$ac_compile") 2>conftest.er1
17794  ac_status=$?
17795  grep -v '^ *+' conftest.er1 >conftest.err
17796  rm -f conftest.er1
17797  cat conftest.err >&5
17798  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799  (exit $ac_status); } && {
17800	 test -z "$ac_c_werror_flag" ||
17801	 test ! -s conftest.err
17802       } && test -s conftest.$ac_objext; then
17803  { $as_echo "$as_me:$LINENO: result: yes" >&5
17804$as_echo "yes" >&6; }
17805
17806else
17807  $as_echo "$as_me: failed program was:" >&5
17808sed 's/^/| /' conftest.$ac_ext >&5
17809
17810
17811cat >>confdefs.h <<\_ACEOF
17812#define MAXHOSTNAMELEN 64
17813_ACEOF
17814
17815	{ $as_echo "$as_me:$LINENO: result: no; defined as 64" >&5
17816$as_echo "no; defined as 64" >&6; }
17817
17818fi
17819
17820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821
17822{ $as_echo "$as_me:$LINENO: checking for domainname in struct utsname" >&5
17823$as_echo_n "checking for domainname in struct utsname... " >&6; }
17824cat >conftest.$ac_ext <<_ACEOF
17825/* confdefs.h.  */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h.  */
17830
17831	#define _GNU_SOURCE
17832	#include <sys/utsname.h>
17833
17834int
17835main ()
17836{
17837
17838	struct utsname unam;
17839
17840	unam.domainname[0] = '\0';
17841
17842  ;
17843  return 0;
17844}
17845_ACEOF
17846rm -f conftest.$ac_objext
17847if { (ac_try="$ac_compile"
17848case "(($ac_try" in
17849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850  *) ac_try_echo=$ac_try;;
17851esac
17852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17853$as_echo "$ac_try_echo") >&5
17854  (eval "$ac_compile") 2>conftest.er1
17855  ac_status=$?
17856  grep -v '^ *+' conftest.er1 >conftest.err
17857  rm -f conftest.er1
17858  cat conftest.err >&5
17859  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860  (exit $ac_status); } && {
17861	 test -z "$ac_c_werror_flag" ||
17862	 test ! -s conftest.err
17863       } && test -s conftest.$ac_objext; then
17864  { $as_echo "$as_me:$LINENO: result: yes" >&5
17865$as_echo "yes" >&6; }
17866
17867cat >>confdefs.h <<\_ACEOF
17868#define HAVE_UTSNAME_DOMAINNAME 1
17869_ACEOF
17870
17871
17872else
17873  $as_echo "$as_me: failed program was:" >&5
17874sed 's/^/| /' conftest.$ac_ext >&5
17875
17876	{ $as_echo "$as_me:$LINENO: result: no" >&5
17877$as_echo "no" >&6; }
17878
17879fi
17880
17881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17882
17883{ $as_echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
17884$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
17885if test "${ac_cv_struct_tm_gmtoff+set}" = set; then
17886  $as_echo_n "(cached) " >&6
17887else
17888  cat >conftest.$ac_ext <<_ACEOF
17889/* confdefs.h.  */
17890_ACEOF
17891cat confdefs.h >>conftest.$ac_ext
17892cat >>conftest.$ac_ext <<_ACEOF
17893/* end confdefs.h.  */
17894
17895		#include <time.h>
17896
17897int
17898main ()
17899{
17900
17901		struct tm tm;
17902		tm.tm_gmtoff = 1;
17903
17904  ;
17905  return 0;
17906}
17907_ACEOF
17908rm -f conftest.$ac_objext
17909if { (ac_try="$ac_compile"
17910case "(($ac_try" in
17911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912  *) ac_try_echo=$ac_try;;
17913esac
17914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17915$as_echo "$ac_try_echo") >&5
17916  (eval "$ac_compile") 2>conftest.er1
17917  ac_status=$?
17918  grep -v '^ *+' conftest.er1 >conftest.err
17919  rm -f conftest.er1
17920  cat conftest.err >&5
17921  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922  (exit $ac_status); } && {
17923	 test -z "$ac_c_werror_flag" ||
17924	 test ! -s conftest.err
17925       } && test -s conftest.$ac_objext; then
17926  ac_cv_struct_tm_gmtoff="yes"
17927else
17928  $as_echo "$as_me: failed program was:" >&5
17929sed 's/^/| /' conftest.$ac_ext >&5
17930
17931	ac_cv_struct_tm_gmtoff="no"
17932fi
17933
17934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17935fi
17936{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm_gmtoff" >&5
17937$as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
17938if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
17939
17940cat >>confdefs.h <<\_ACEOF
17941#define HAVE_TM_GMTOFF 1
17942_ACEOF
17943
17944else
17945	{ $as_echo "$as_me:$LINENO: checking for timezone variable" >&5
17946$as_echo_n "checking for timezone variable... " >&6; }
17947if test "${ac_cv_var_timezone+set}" = set; then
17948  $as_echo_n "(cached) " >&6
17949else
17950  cat >conftest.$ac_ext <<_ACEOF
17951/* confdefs.h.  */
17952_ACEOF
17953cat confdefs.h >>conftest.$ac_ext
17954cat >>conftest.$ac_ext <<_ACEOF
17955/* end confdefs.h.  */
17956
17957			#include <time.h>
17958
17959int
17960main ()
17961{
17962
17963			timezone = 1;
17964
17965  ;
17966  return 0;
17967}
17968_ACEOF
17969rm -f conftest.$ac_objext
17970if { (ac_try="$ac_compile"
17971case "(($ac_try" in
17972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973  *) ac_try_echo=$ac_try;;
17974esac
17975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17976$as_echo "$ac_try_echo") >&5
17977  (eval "$ac_compile") 2>conftest.er1
17978  ac_status=$?
17979  grep -v '^ *+' conftest.er1 >conftest.err
17980  rm -f conftest.er1
17981  cat conftest.err >&5
17982  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983  (exit $ac_status); } && {
17984	 test -z "$ac_c_werror_flag" ||
17985	 test ! -s conftest.err
17986       } && test -s conftest.$ac_objext; then
17987  ac_cv_var_timezone="yes"
17988else
17989  $as_echo "$as_me: failed program was:" >&5
17990sed 's/^/| /' conftest.$ac_ext >&5
17991
17992	ac_cv_var_timezone="no"
17993fi
17994
17995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996fi
17997{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_timezone" >&5
17998$as_echo "$ac_cv_var_timezone" >&6; }
17999	if test "$ac_cv_var_timezone" = "yes"; then
18000
18001cat >>confdefs.h <<\_ACEOF
18002#define HAVE_TIMEZONE 1
18003_ACEOF
18004
18005		{ $as_echo "$as_me:$LINENO: checking for altzone variable" >&5
18006$as_echo_n "checking for altzone variable... " >&6; }
18007if test "${ac_cv_var_altzone+set}" = set; then
18008  $as_echo_n "(cached) " >&6
18009else
18010  cat >conftest.$ac_ext <<_ACEOF
18011/* confdefs.h.  */
18012_ACEOF
18013cat confdefs.h >>conftest.$ac_ext
18014cat >>conftest.$ac_ext <<_ACEOF
18015/* end confdefs.h.  */
18016
18017				#include <time.h>
18018
18019int
18020main ()
18021{
18022
18023				altzone = 1;
18024
18025  ;
18026  return 0;
18027}
18028_ACEOF
18029rm -f conftest.$ac_objext
18030if { (ac_try="$ac_compile"
18031case "(($ac_try" in
18032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033  *) ac_try_echo=$ac_try;;
18034esac
18035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18036$as_echo "$ac_try_echo") >&5
18037  (eval "$ac_compile") 2>conftest.er1
18038  ac_status=$?
18039  grep -v '^ *+' conftest.er1 >conftest.err
18040  rm -f conftest.er1
18041  cat conftest.err >&5
18042  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043  (exit $ac_status); } && {
18044	 test -z "$ac_c_werror_flag" ||
18045	 test ! -s conftest.err
18046       } && test -s conftest.$ac_objext; then
18047  ac_cv_var_altzone="yes"
18048else
18049  $as_echo "$as_me: failed program was:" >&5
18050sed 's/^/| /' conftest.$ac_ext >&5
18051
18052	ac_cv_var_altzone="no"
18053fi
18054
18055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056fi
18057{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_altzone" >&5
18058$as_echo "$ac_cv_var_altzone" >&6; }
18059		if test "$ac_cv_var_altzone" = "yes"; then
18060
18061cat >>confdefs.h <<\_ACEOF
18062#define HAVE_ALTZONE 1
18063_ACEOF
18064
18065		fi
18066	else
18067		{ $as_echo "$as_me:$LINENO: checking for _timezone variable" >&5
18068$as_echo_n "checking for _timezone variable... " >&6; }
18069if test "${ac_cv_var__timezone+set}" = set; then
18070  $as_echo_n "(cached) " >&6
18071else
18072  cat >conftest.$ac_ext <<_ACEOF
18073/* confdefs.h.  */
18074_ACEOF
18075cat confdefs.h >>conftest.$ac_ext
18076cat >>conftest.$ac_ext <<_ACEOF
18077/* end confdefs.h.  */
18078
18079				#include <time.h>
18080
18081int
18082main ()
18083{
18084
18085				_timezone = 1;
18086
18087  ;
18088  return 0;
18089}
18090_ACEOF
18091rm -f conftest.$ac_objext
18092if { (ac_try="$ac_compile"
18093case "(($ac_try" in
18094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095  *) ac_try_echo=$ac_try;;
18096esac
18097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18098$as_echo "$ac_try_echo") >&5
18099  (eval "$ac_compile") 2>conftest.er1
18100  ac_status=$?
18101  grep -v '^ *+' conftest.er1 >conftest.err
18102  rm -f conftest.er1
18103  cat conftest.err >&5
18104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105  (exit $ac_status); } && {
18106	 test -z "$ac_c_werror_flag" ||
18107	 test ! -s conftest.err
18108       } && test -s conftest.$ac_objext; then
18109  ac_cv_var__timezone="yes"
18110else
18111  $as_echo "$as_me: failed program was:" >&5
18112sed 's/^/| /' conftest.$ac_ext >&5
18113
18114	ac_cv_var__timezone="no"
18115fi
18116
18117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18118fi
18119{ $as_echo "$as_me:$LINENO: result: $ac_cv_var__timezone" >&5
18120$as_echo "$ac_cv_var__timezone" >&6; }
18121		if test "$ac_cv_var__timezone" = "yes"; then
18122
18123cat >>confdefs.h <<\_ACEOF
18124#define HAVE__TIMEZONE 1
18125_ACEOF
18126
18127		else
18128			{ { $as_echo "$as_me:$LINENO: error: unable to find a way to determine timezone" >&5
18129$as_echo "$as_me: error: unable to find a way to determine timezone" >&2;}
18130   { (exit 1); exit 1; }; }
18131		fi
18132	fi
18133fi
18134
18135# Check whether --enable-largefile was given.
18136if test "${enable_largefile+set}" = set; then
18137  enableval=$enable_largefile;
18138else
18139  enable_largefile="no"
18140fi
18141
18142if test "x$enable_largefile" != "xno"; then
18143    # Check whether --enable-largefile was given.
18144if test "${enable_largefile+set}" = set; then
18145  enableval=$enable_largefile;
18146fi
18147
18148if test "$enable_largefile" != no; then
18149
18150  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18151$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18152if test "${ac_cv_sys_largefile_CC+set}" = set; then
18153  $as_echo_n "(cached) " >&6
18154else
18155  ac_cv_sys_largefile_CC=no
18156     if test "$GCC" != yes; then
18157       ac_save_CC=$CC
18158       while :; do
18159	 # IRIX 6.2 and later do not support large files by default,
18160	 # so use the C compiler's -n32 option if that helps.
18161	 cat >conftest.$ac_ext <<_ACEOF
18162/* confdefs.h.  */
18163_ACEOF
18164cat confdefs.h >>conftest.$ac_ext
18165cat >>conftest.$ac_ext <<_ACEOF
18166/* end confdefs.h.  */
18167#include <sys/types.h>
18168 /* Check that off_t can represent 2**63 - 1 correctly.
18169    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18170    since some C++ compilers masquerading as C compilers
18171    incorrectly reject 9223372036854775807.  */
18172#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18173  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18174		       && LARGE_OFF_T % 2147483647 == 1)
18175		      ? 1 : -1];
18176int
18177main ()
18178{
18179
18180  ;
18181  return 0;
18182}
18183_ACEOF
18184	 rm -f conftest.$ac_objext
18185if { (ac_try="$ac_compile"
18186case "(($ac_try" in
18187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188  *) ac_try_echo=$ac_try;;
18189esac
18190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18191$as_echo "$ac_try_echo") >&5
18192  (eval "$ac_compile") 2>conftest.er1
18193  ac_status=$?
18194  grep -v '^ *+' conftest.er1 >conftest.err
18195  rm -f conftest.er1
18196  cat conftest.err >&5
18197  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198  (exit $ac_status); } && {
18199	 test -z "$ac_c_werror_flag" ||
18200	 test ! -s conftest.err
18201       } && test -s conftest.$ac_objext; then
18202  break
18203else
18204  $as_echo "$as_me: failed program was:" >&5
18205sed 's/^/| /' conftest.$ac_ext >&5
18206
18207
18208fi
18209
18210rm -f core conftest.err conftest.$ac_objext
18211	 CC="$CC -n32"
18212	 rm -f conftest.$ac_objext
18213if { (ac_try="$ac_compile"
18214case "(($ac_try" in
18215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216  *) ac_try_echo=$ac_try;;
18217esac
18218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18219$as_echo "$ac_try_echo") >&5
18220  (eval "$ac_compile") 2>conftest.er1
18221  ac_status=$?
18222  grep -v '^ *+' conftest.er1 >conftest.err
18223  rm -f conftest.er1
18224  cat conftest.err >&5
18225  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226  (exit $ac_status); } && {
18227	 test -z "$ac_c_werror_flag" ||
18228	 test ! -s conftest.err
18229       } && test -s conftest.$ac_objext; then
18230  ac_cv_sys_largefile_CC=' -n32'; break
18231else
18232  $as_echo "$as_me: failed program was:" >&5
18233sed 's/^/| /' conftest.$ac_ext >&5
18234
18235
18236fi
18237
18238rm -f core conftest.err conftest.$ac_objext
18239	 break
18240       done
18241       CC=$ac_save_CC
18242       rm -f conftest.$ac_ext
18243    fi
18244fi
18245{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18246$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18247  if test "$ac_cv_sys_largefile_CC" != no; then
18248    CC=$CC$ac_cv_sys_largefile_CC
18249  fi
18250
18251  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18252$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18253if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18254  $as_echo_n "(cached) " >&6
18255else
18256  while :; do
18257  cat >conftest.$ac_ext <<_ACEOF
18258/* confdefs.h.  */
18259_ACEOF
18260cat confdefs.h >>conftest.$ac_ext
18261cat >>conftest.$ac_ext <<_ACEOF
18262/* end confdefs.h.  */
18263#include <sys/types.h>
18264 /* Check that off_t can represent 2**63 - 1 correctly.
18265    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18266    since some C++ compilers masquerading as C compilers
18267    incorrectly reject 9223372036854775807.  */
18268#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18269  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18270		       && LARGE_OFF_T % 2147483647 == 1)
18271		      ? 1 : -1];
18272int
18273main ()
18274{
18275
18276  ;
18277  return 0;
18278}
18279_ACEOF
18280rm -f conftest.$ac_objext
18281if { (ac_try="$ac_compile"
18282case "(($ac_try" in
18283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284  *) ac_try_echo=$ac_try;;
18285esac
18286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18287$as_echo "$ac_try_echo") >&5
18288  (eval "$ac_compile") 2>conftest.er1
18289  ac_status=$?
18290  grep -v '^ *+' conftest.er1 >conftest.err
18291  rm -f conftest.er1
18292  cat conftest.err >&5
18293  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294  (exit $ac_status); } && {
18295	 test -z "$ac_c_werror_flag" ||
18296	 test ! -s conftest.err
18297       } && test -s conftest.$ac_objext; then
18298  ac_cv_sys_file_offset_bits=no; break
18299else
18300  $as_echo "$as_me: failed program was:" >&5
18301sed 's/^/| /' conftest.$ac_ext >&5
18302
18303
18304fi
18305
18306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18307  cat >conftest.$ac_ext <<_ACEOF
18308/* confdefs.h.  */
18309_ACEOF
18310cat confdefs.h >>conftest.$ac_ext
18311cat >>conftest.$ac_ext <<_ACEOF
18312/* end confdefs.h.  */
18313#define _FILE_OFFSET_BITS 64
18314#include <sys/types.h>
18315 /* Check that off_t can represent 2**63 - 1 correctly.
18316    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18317    since some C++ compilers masquerading as C compilers
18318    incorrectly reject 9223372036854775807.  */
18319#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18320  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18321		       && LARGE_OFF_T % 2147483647 == 1)
18322		      ? 1 : -1];
18323int
18324main ()
18325{
18326
18327  ;
18328  return 0;
18329}
18330_ACEOF
18331rm -f conftest.$ac_objext
18332if { (ac_try="$ac_compile"
18333case "(($ac_try" in
18334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335  *) ac_try_echo=$ac_try;;
18336esac
18337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18338$as_echo "$ac_try_echo") >&5
18339  (eval "$ac_compile") 2>conftest.er1
18340  ac_status=$?
18341  grep -v '^ *+' conftest.er1 >conftest.err
18342  rm -f conftest.er1
18343  cat conftest.err >&5
18344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345  (exit $ac_status); } && {
18346	 test -z "$ac_c_werror_flag" ||
18347	 test ! -s conftest.err
18348       } && test -s conftest.$ac_objext; then
18349  ac_cv_sys_file_offset_bits=64; break
18350else
18351  $as_echo "$as_me: failed program was:" >&5
18352sed 's/^/| /' conftest.$ac_ext >&5
18353
18354
18355fi
18356
18357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18358  ac_cv_sys_file_offset_bits=unknown
18359  break
18360done
18361fi
18362{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18363$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18364case $ac_cv_sys_file_offset_bits in #(
18365  no | unknown) ;;
18366  *)
18367cat >>confdefs.h <<_ACEOF
18368#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18369_ACEOF
18370;;
18371esac
18372rm -rf conftest*
18373  if test $ac_cv_sys_file_offset_bits = unknown; then
18374    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18375$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18376if test "${ac_cv_sys_large_files+set}" = set; then
18377  $as_echo_n "(cached) " >&6
18378else
18379  while :; do
18380  cat >conftest.$ac_ext <<_ACEOF
18381/* confdefs.h.  */
18382_ACEOF
18383cat confdefs.h >>conftest.$ac_ext
18384cat >>conftest.$ac_ext <<_ACEOF
18385/* end confdefs.h.  */
18386#include <sys/types.h>
18387 /* Check that off_t can represent 2**63 - 1 correctly.
18388    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18389    since some C++ compilers masquerading as C compilers
18390    incorrectly reject 9223372036854775807.  */
18391#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18392  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18393		       && LARGE_OFF_T % 2147483647 == 1)
18394		      ? 1 : -1];
18395int
18396main ()
18397{
18398
18399  ;
18400  return 0;
18401}
18402_ACEOF
18403rm -f conftest.$ac_objext
18404if { (ac_try="$ac_compile"
18405case "(($ac_try" in
18406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407  *) ac_try_echo=$ac_try;;
18408esac
18409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18410$as_echo "$ac_try_echo") >&5
18411  (eval "$ac_compile") 2>conftest.er1
18412  ac_status=$?
18413  grep -v '^ *+' conftest.er1 >conftest.err
18414  rm -f conftest.er1
18415  cat conftest.err >&5
18416  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417  (exit $ac_status); } && {
18418	 test -z "$ac_c_werror_flag" ||
18419	 test ! -s conftest.err
18420       } && test -s conftest.$ac_objext; then
18421  ac_cv_sys_large_files=no; break
18422else
18423  $as_echo "$as_me: failed program was:" >&5
18424sed 's/^/| /' conftest.$ac_ext >&5
18425
18426
18427fi
18428
18429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430  cat >conftest.$ac_ext <<_ACEOF
18431/* confdefs.h.  */
18432_ACEOF
18433cat confdefs.h >>conftest.$ac_ext
18434cat >>conftest.$ac_ext <<_ACEOF
18435/* end confdefs.h.  */
18436#define _LARGE_FILES 1
18437#include <sys/types.h>
18438 /* Check that off_t can represent 2**63 - 1 correctly.
18439    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18440    since some C++ compilers masquerading as C compilers
18441    incorrectly reject 9223372036854775807.  */
18442#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18443  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18444		       && LARGE_OFF_T % 2147483647 == 1)
18445		      ? 1 : -1];
18446int
18447main ()
18448{
18449
18450  ;
18451  return 0;
18452}
18453_ACEOF
18454rm -f conftest.$ac_objext
18455if { (ac_try="$ac_compile"
18456case "(($ac_try" in
18457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458  *) ac_try_echo=$ac_try;;
18459esac
18460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18461$as_echo "$ac_try_echo") >&5
18462  (eval "$ac_compile") 2>conftest.er1
18463  ac_status=$?
18464  grep -v '^ *+' conftest.er1 >conftest.err
18465  rm -f conftest.er1
18466  cat conftest.err >&5
18467  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468  (exit $ac_status); } && {
18469	 test -z "$ac_c_werror_flag" ||
18470	 test ! -s conftest.err
18471       } && test -s conftest.$ac_objext; then
18472  ac_cv_sys_large_files=1; break
18473else
18474  $as_echo "$as_me: failed program was:" >&5
18475sed 's/^/| /' conftest.$ac_ext >&5
18476
18477
18478fi
18479
18480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481  ac_cv_sys_large_files=unknown
18482  break
18483done
18484fi
18485{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18486$as_echo "$ac_cv_sys_large_files" >&6; }
18487case $ac_cv_sys_large_files in #(
18488  no | unknown) ;;
18489  *)
18490cat >>confdefs.h <<_ACEOF
18491#define _LARGE_FILES $ac_cv_sys_large_files
18492_ACEOF
18493;;
18494esac
18495rm -rf conftest*
18496  fi
18497fi
18498
18499    { $as_echo "$as_me:$LINENO: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
18500$as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
18501if test "${largefile64_source+set}" = set; then
18502  $as_echo_n "(cached) " >&6
18503else
18504
18505	cat >conftest.$ac_ext <<_ACEOF
18506/* confdefs.h.  */
18507_ACEOF
18508cat confdefs.h >>conftest.$ac_ext
18509cat >>conftest.$ac_ext <<_ACEOF
18510/* end confdefs.h.  */
18511
18512		#include <sys/types.h>
18513		#include <sys/stat.h>
18514		#include <fcntl.h>
18515
18516int
18517main ()
18518{
18519
18520		int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
18521
18522  ;
18523  return 0;
18524}
18525_ACEOF
18526rm -f conftest.$ac_objext
18527if { (ac_try="$ac_compile"
18528case "(($ac_try" in
18529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530  *) ac_try_echo=$ac_try;;
18531esac
18532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18533$as_echo "$ac_try_echo") >&5
18534  (eval "$ac_compile") 2>conftest.er1
18535  ac_status=$?
18536  grep -v '^ *+' conftest.er1 >conftest.err
18537  rm -f conftest.er1
18538  cat conftest.err >&5
18539  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540  (exit $ac_status); } && {
18541	 test -z "$ac_c_werror_flag" ||
18542	 test ! -s conftest.err
18543       } && test -s conftest.$ac_objext; then
18544
18545		largefile64_source="no"
18546
18547else
18548  $as_echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
18550
18551
18552		cat >conftest.$ac_ext <<_ACEOF
18553/* confdefs.h.  */
18554_ACEOF
18555cat confdefs.h >>conftest.$ac_ext
18556cat >>conftest.$ac_ext <<_ACEOF
18557/* end confdefs.h.  */
18558
18559			#define _LARGEFILE64_SOURCE
18560			#include <sys/types.h>
18561			#include <sys/stat.h>
18562			#include <fcntl.h>
18563
18564int
18565main ()
18566{
18567
18568			int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
18569
18570  ;
18571  return 0;
18572}
18573_ACEOF
18574rm -f conftest.$ac_objext
18575if { (ac_try="$ac_compile"
18576case "(($ac_try" in
18577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578  *) ac_try_echo=$ac_try;;
18579esac
18580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18581$as_echo "$ac_try_echo") >&5
18582  (eval "$ac_compile") 2>conftest.er1
18583  ac_status=$?
18584  grep -v '^ *+' conftest.er1 >conftest.err
18585  rm -f conftest.er1
18586  cat conftest.err >&5
18587  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588  (exit $ac_status); } && {
18589	 test -z "$ac_c_werror_flag" ||
18590	 test ! -s conftest.err
18591       } && test -s conftest.$ac_objext; then
18592
18593			largefile64_source="yes"
18594
18595else
18596  $as_echo "$as_me: failed program was:" >&5
18597sed 's/^/| /' conftest.$ac_ext >&5
18598
18599
18600			largefile64_source="unknown"
18601
18602fi
18603
18604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18605
18606fi
18607
18608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18609
18610fi
18611{ $as_echo "$as_me:$LINENO: result: $largefile64_source" >&5
18612$as_echo "$largefile64_source" >&6; }
18613
18614    enable_largefile="no"
18615
18616    if test "x$largefile64_source" = "xyes"; then
18617        GMIME_CFLAGS="-D_LARGEFILE64_SOURCE"
18618        enable_largefile="yes"
18619    elif test "x$largefile64_source" = "xunknown"; then
18620
18621cat >>confdefs.h <<\_ACEOF
18622#define O_LARGEFILE 0
18623_ACEOF
18624
18625    fi
18626
18627    if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
18628        GMIME_CFLAGS="$GMIME_CFLAGS -D_LARGE_FILES"
18629        enable_largefile="yes"
18630    fi
18631
18632    if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
18633        GMIME_CFLAGS="$GMIME_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
18634        enable_largefile="yes"
18635    fi
18636else
18637    GMIME_CFLAGS=""
18638fi
18639 if test "x$enable_largefile" = "xyes"; then
18640  ENABLE_LARGEFILE_TRUE=
18641  ENABLE_LARGEFILE_FALSE='#'
18642else
18643  ENABLE_LARGEFILE_TRUE='#'
18644  ENABLE_LARGEFILE_FALSE=
18645fi
18646
18647
18648CFLAGS_save="$CFLAGS"
18649CFLAGS="$CFLAGS $GMIME_CFLAGS"
18650# The cast to long int works around a bug in the HP C Compiler
18651# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18652# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18653# This bug is HP SR number 8606223364.
18654{ $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
18655$as_echo_n "checking size of ssize_t... " >&6; }
18656if test "${ac_cv_sizeof_ssize_t+set}" = set; then
18657  $as_echo_n "(cached) " >&6
18658else
18659  if test "$cross_compiling" = yes; then
18660  # Depending upon the size, compute the lo and hi bounds.
18661cat >conftest.$ac_ext <<_ACEOF
18662/* confdefs.h.  */
18663_ACEOF
18664cat confdefs.h >>conftest.$ac_ext
18665cat >>conftest.$ac_ext <<_ACEOF
18666/* end confdefs.h.  */
18667$ac_includes_default
18668int
18669main ()
18670{
18671static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
18672test_array [0] = 0
18673
18674  ;
18675  return 0;
18676}
18677_ACEOF
18678rm -f conftest.$ac_objext
18679if { (ac_try="$ac_compile"
18680case "(($ac_try" in
18681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682  *) ac_try_echo=$ac_try;;
18683esac
18684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18685$as_echo "$ac_try_echo") >&5
18686  (eval "$ac_compile") 2>conftest.er1
18687  ac_status=$?
18688  grep -v '^ *+' conftest.er1 >conftest.err
18689  rm -f conftest.er1
18690  cat conftest.err >&5
18691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692  (exit $ac_status); } && {
18693	 test -z "$ac_c_werror_flag" ||
18694	 test ! -s conftest.err
18695       } && test -s conftest.$ac_objext; then
18696  ac_lo=0 ac_mid=0
18697  while :; do
18698    cat >conftest.$ac_ext <<_ACEOF
18699/* confdefs.h.  */
18700_ACEOF
18701cat confdefs.h >>conftest.$ac_ext
18702cat >>conftest.$ac_ext <<_ACEOF
18703/* end confdefs.h.  */
18704$ac_includes_default
18705int
18706main ()
18707{
18708static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
18709test_array [0] = 0
18710
18711  ;
18712  return 0;
18713}
18714_ACEOF
18715rm -f conftest.$ac_objext
18716if { (ac_try="$ac_compile"
18717case "(($ac_try" in
18718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719  *) ac_try_echo=$ac_try;;
18720esac
18721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18722$as_echo "$ac_try_echo") >&5
18723  (eval "$ac_compile") 2>conftest.er1
18724  ac_status=$?
18725  grep -v '^ *+' conftest.er1 >conftest.err
18726  rm -f conftest.er1
18727  cat conftest.err >&5
18728  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729  (exit $ac_status); } && {
18730	 test -z "$ac_c_werror_flag" ||
18731	 test ! -s conftest.err
18732       } && test -s conftest.$ac_objext; then
18733  ac_hi=$ac_mid; break
18734else
18735  $as_echo "$as_me: failed program was:" >&5
18736sed 's/^/| /' conftest.$ac_ext >&5
18737
18738	ac_lo=`expr $ac_mid + 1`
18739			if test $ac_lo -le $ac_mid; then
18740			  ac_lo= ac_hi=
18741			  break
18742			fi
18743			ac_mid=`expr 2 '*' $ac_mid + 1`
18744fi
18745
18746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18747  done
18748else
18749  $as_echo "$as_me: failed program was:" >&5
18750sed 's/^/| /' conftest.$ac_ext >&5
18751
18752	cat >conftest.$ac_ext <<_ACEOF
18753/* confdefs.h.  */
18754_ACEOF
18755cat confdefs.h >>conftest.$ac_ext
18756cat >>conftest.$ac_ext <<_ACEOF
18757/* end confdefs.h.  */
18758$ac_includes_default
18759int
18760main ()
18761{
18762static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
18763test_array [0] = 0
18764
18765  ;
18766  return 0;
18767}
18768_ACEOF
18769rm -f conftest.$ac_objext
18770if { (ac_try="$ac_compile"
18771case "(($ac_try" in
18772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773  *) ac_try_echo=$ac_try;;
18774esac
18775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18776$as_echo "$ac_try_echo") >&5
18777  (eval "$ac_compile") 2>conftest.er1
18778  ac_status=$?
18779  grep -v '^ *+' conftest.er1 >conftest.err
18780  rm -f conftest.er1
18781  cat conftest.err >&5
18782  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783  (exit $ac_status); } && {
18784	 test -z "$ac_c_werror_flag" ||
18785	 test ! -s conftest.err
18786       } && test -s conftest.$ac_objext; then
18787  ac_hi=-1 ac_mid=-1
18788  while :; do
18789    cat >conftest.$ac_ext <<_ACEOF
18790/* confdefs.h.  */
18791_ACEOF
18792cat confdefs.h >>conftest.$ac_ext
18793cat >>conftest.$ac_ext <<_ACEOF
18794/* end confdefs.h.  */
18795$ac_includes_default
18796int
18797main ()
18798{
18799static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
18800test_array [0] = 0
18801
18802  ;
18803  return 0;
18804}
18805_ACEOF
18806rm -f conftest.$ac_objext
18807if { (ac_try="$ac_compile"
18808case "(($ac_try" in
18809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810  *) ac_try_echo=$ac_try;;
18811esac
18812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18813$as_echo "$ac_try_echo") >&5
18814  (eval "$ac_compile") 2>conftest.er1
18815  ac_status=$?
18816  grep -v '^ *+' conftest.er1 >conftest.err
18817  rm -f conftest.er1
18818  cat conftest.err >&5
18819  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820  (exit $ac_status); } && {
18821	 test -z "$ac_c_werror_flag" ||
18822	 test ! -s conftest.err
18823       } && test -s conftest.$ac_objext; then
18824  ac_lo=$ac_mid; break
18825else
18826  $as_echo "$as_me: failed program was:" >&5
18827sed 's/^/| /' conftest.$ac_ext >&5
18828
18829	ac_hi=`expr '(' $ac_mid ')' - 1`
18830			if test $ac_mid -le $ac_hi; then
18831			  ac_lo= ac_hi=
18832			  break
18833			fi
18834			ac_mid=`expr 2 '*' $ac_mid`
18835fi
18836
18837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18838  done
18839else
18840  $as_echo "$as_me: failed program was:" >&5
18841sed 's/^/| /' conftest.$ac_ext >&5
18842
18843	ac_lo= ac_hi=
18844fi
18845
18846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18847fi
18848
18849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18850# Binary search between lo and hi bounds.
18851while test "x$ac_lo" != "x$ac_hi"; do
18852  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18853  cat >conftest.$ac_ext <<_ACEOF
18854/* confdefs.h.  */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h.  */
18859$ac_includes_default
18860int
18861main ()
18862{
18863static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
18864test_array [0] = 0
18865
18866  ;
18867  return 0;
18868}
18869_ACEOF
18870rm -f conftest.$ac_objext
18871if { (ac_try="$ac_compile"
18872case "(($ac_try" in
18873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874  *) ac_try_echo=$ac_try;;
18875esac
18876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18877$as_echo "$ac_try_echo") >&5
18878  (eval "$ac_compile") 2>conftest.er1
18879  ac_status=$?
18880  grep -v '^ *+' conftest.er1 >conftest.err
18881  rm -f conftest.er1
18882  cat conftest.err >&5
18883  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884  (exit $ac_status); } && {
18885	 test -z "$ac_c_werror_flag" ||
18886	 test ! -s conftest.err
18887       } && test -s conftest.$ac_objext; then
18888  ac_hi=$ac_mid
18889else
18890  $as_echo "$as_me: failed program was:" >&5
18891sed 's/^/| /' conftest.$ac_ext >&5
18892
18893	ac_lo=`expr '(' $ac_mid ')' + 1`
18894fi
18895
18896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18897done
18898case $ac_lo in
18899?*) ac_cv_sizeof_ssize_t=$ac_lo;;
18900'') if test "$ac_cv_type_ssize_t" = yes; then
18901     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18903{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
18904See \`config.log' for more details." >&5
18905$as_echo "$as_me: error: cannot compute sizeof (ssize_t)
18906See \`config.log' for more details." >&2;}
18907   { (exit 77); exit 77; }; }; }
18908   else
18909     ac_cv_sizeof_ssize_t=0
18910   fi ;;
18911esac
18912else
18913  cat >conftest.$ac_ext <<_ACEOF
18914/* confdefs.h.  */
18915_ACEOF
18916cat confdefs.h >>conftest.$ac_ext
18917cat >>conftest.$ac_ext <<_ACEOF
18918/* end confdefs.h.  */
18919$ac_includes_default
18920static long int longval () { return (long int) (sizeof (ssize_t)); }
18921static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
18922#include <stdio.h>
18923#include <stdlib.h>
18924int
18925main ()
18926{
18927
18928  FILE *f = fopen ("conftest.val", "w");
18929  if (! f)
18930    return 1;
18931  if (((long int) (sizeof (ssize_t))) < 0)
18932    {
18933      long int i = longval ();
18934      if (i != ((long int) (sizeof (ssize_t))))
18935	return 1;
18936      fprintf (f, "%ld", i);
18937    }
18938  else
18939    {
18940      unsigned long int i = ulongval ();
18941      if (i != ((long int) (sizeof (ssize_t))))
18942	return 1;
18943      fprintf (f, "%lu", i);
18944    }
18945  /* Do not output a trailing newline, as this causes \r\n confusion
18946     on some platforms.  */
18947  return ferror (f) || fclose (f) != 0;
18948
18949  ;
18950  return 0;
18951}
18952_ACEOF
18953rm -f conftest$ac_exeext
18954if { (ac_try="$ac_link"
18955case "(($ac_try" in
18956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957  *) ac_try_echo=$ac_try;;
18958esac
18959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18960$as_echo "$ac_try_echo") >&5
18961  (eval "$ac_link") 2>&5
18962  ac_status=$?
18963  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18965  { (case "(($ac_try" in
18966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967  *) ac_try_echo=$ac_try;;
18968esac
18969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18970$as_echo "$ac_try_echo") >&5
18971  (eval "$ac_try") 2>&5
18972  ac_status=$?
18973  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974  (exit $ac_status); }; }; then
18975  ac_cv_sizeof_ssize_t=`cat conftest.val`
18976else
18977  $as_echo "$as_me: program exited with status $ac_status" >&5
18978$as_echo "$as_me: failed program was:" >&5
18979sed 's/^/| /' conftest.$ac_ext >&5
18980
18981( exit $ac_status )
18982if test "$ac_cv_type_ssize_t" = yes; then
18983     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18985{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
18986See \`config.log' for more details." >&5
18987$as_echo "$as_me: error: cannot compute sizeof (ssize_t)
18988See \`config.log' for more details." >&2;}
18989   { (exit 77); exit 77; }; }; }
18990   else
18991     ac_cv_sizeof_ssize_t=0
18992   fi
18993fi
18994rm -rf conftest.dSYM
18995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18996fi
18997rm -f conftest.val
18998fi
18999{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
19000$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
19001
19002
19003
19004cat >>confdefs.h <<_ACEOF
19005#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
19006_ACEOF
19007
19008
19009# The cast to long int works around a bug in the HP C Compiler
19010# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19011# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19012# This bug is HP SR number 8606223364.
19013{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
19014$as_echo_n "checking size of size_t... " >&6; }
19015if test "${ac_cv_sizeof_size_t+set}" = set; then
19016  $as_echo_n "(cached) " >&6
19017else
19018  if test "$cross_compiling" = yes; then
19019  # Depending upon the size, compute the lo and hi bounds.
19020cat >conftest.$ac_ext <<_ACEOF
19021/* confdefs.h.  */
19022_ACEOF
19023cat confdefs.h >>conftest.$ac_ext
19024cat >>conftest.$ac_ext <<_ACEOF
19025/* end confdefs.h.  */
19026$ac_includes_default
19027int
19028main ()
19029{
19030static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
19031test_array [0] = 0
19032
19033  ;
19034  return 0;
19035}
19036_ACEOF
19037rm -f conftest.$ac_objext
19038if { (ac_try="$ac_compile"
19039case "(($ac_try" in
19040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041  *) ac_try_echo=$ac_try;;
19042esac
19043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19044$as_echo "$ac_try_echo") >&5
19045  (eval "$ac_compile") 2>conftest.er1
19046  ac_status=$?
19047  grep -v '^ *+' conftest.er1 >conftest.err
19048  rm -f conftest.er1
19049  cat conftest.err >&5
19050  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051  (exit $ac_status); } && {
19052	 test -z "$ac_c_werror_flag" ||
19053	 test ! -s conftest.err
19054       } && test -s conftest.$ac_objext; then
19055  ac_lo=0 ac_mid=0
19056  while :; do
19057    cat >conftest.$ac_ext <<_ACEOF
19058/* confdefs.h.  */
19059_ACEOF
19060cat confdefs.h >>conftest.$ac_ext
19061cat >>conftest.$ac_ext <<_ACEOF
19062/* end confdefs.h.  */
19063$ac_includes_default
19064int
19065main ()
19066{
19067static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
19068test_array [0] = 0
19069
19070  ;
19071  return 0;
19072}
19073_ACEOF
19074rm -f conftest.$ac_objext
19075if { (ac_try="$ac_compile"
19076case "(($ac_try" in
19077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078  *) ac_try_echo=$ac_try;;
19079esac
19080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19081$as_echo "$ac_try_echo") >&5
19082  (eval "$ac_compile") 2>conftest.er1
19083  ac_status=$?
19084  grep -v '^ *+' conftest.er1 >conftest.err
19085  rm -f conftest.er1
19086  cat conftest.err >&5
19087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088  (exit $ac_status); } && {
19089	 test -z "$ac_c_werror_flag" ||
19090	 test ! -s conftest.err
19091       } && test -s conftest.$ac_objext; then
19092  ac_hi=$ac_mid; break
19093else
19094  $as_echo "$as_me: failed program was:" >&5
19095sed 's/^/| /' conftest.$ac_ext >&5
19096
19097	ac_lo=`expr $ac_mid + 1`
19098			if test $ac_lo -le $ac_mid; then
19099			  ac_lo= ac_hi=
19100			  break
19101			fi
19102			ac_mid=`expr 2 '*' $ac_mid + 1`
19103fi
19104
19105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19106  done
19107else
19108  $as_echo "$as_me: failed program was:" >&5
19109sed 's/^/| /' conftest.$ac_ext >&5
19110
19111	cat >conftest.$ac_ext <<_ACEOF
19112/* confdefs.h.  */
19113_ACEOF
19114cat confdefs.h >>conftest.$ac_ext
19115cat >>conftest.$ac_ext <<_ACEOF
19116/* end confdefs.h.  */
19117$ac_includes_default
19118int
19119main ()
19120{
19121static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
19122test_array [0] = 0
19123
19124  ;
19125  return 0;
19126}
19127_ACEOF
19128rm -f conftest.$ac_objext
19129if { (ac_try="$ac_compile"
19130case "(($ac_try" in
19131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132  *) ac_try_echo=$ac_try;;
19133esac
19134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19135$as_echo "$ac_try_echo") >&5
19136  (eval "$ac_compile") 2>conftest.er1
19137  ac_status=$?
19138  grep -v '^ *+' conftest.er1 >conftest.err
19139  rm -f conftest.er1
19140  cat conftest.err >&5
19141  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142  (exit $ac_status); } && {
19143	 test -z "$ac_c_werror_flag" ||
19144	 test ! -s conftest.err
19145       } && test -s conftest.$ac_objext; then
19146  ac_hi=-1 ac_mid=-1
19147  while :; do
19148    cat >conftest.$ac_ext <<_ACEOF
19149/* confdefs.h.  */
19150_ACEOF
19151cat confdefs.h >>conftest.$ac_ext
19152cat >>conftest.$ac_ext <<_ACEOF
19153/* end confdefs.h.  */
19154$ac_includes_default
19155int
19156main ()
19157{
19158static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
19159test_array [0] = 0
19160
19161  ;
19162  return 0;
19163}
19164_ACEOF
19165rm -f conftest.$ac_objext
19166if { (ac_try="$ac_compile"
19167case "(($ac_try" in
19168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169  *) ac_try_echo=$ac_try;;
19170esac
19171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19172$as_echo "$ac_try_echo") >&5
19173  (eval "$ac_compile") 2>conftest.er1
19174  ac_status=$?
19175  grep -v '^ *+' conftest.er1 >conftest.err
19176  rm -f conftest.er1
19177  cat conftest.err >&5
19178  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179  (exit $ac_status); } && {
19180	 test -z "$ac_c_werror_flag" ||
19181	 test ! -s conftest.err
19182       } && test -s conftest.$ac_objext; then
19183  ac_lo=$ac_mid; break
19184else
19185  $as_echo "$as_me: failed program was:" >&5
19186sed 's/^/| /' conftest.$ac_ext >&5
19187
19188	ac_hi=`expr '(' $ac_mid ')' - 1`
19189			if test $ac_mid -le $ac_hi; then
19190			  ac_lo= ac_hi=
19191			  break
19192			fi
19193			ac_mid=`expr 2 '*' $ac_mid`
19194fi
19195
19196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19197  done
19198else
19199  $as_echo "$as_me: failed program was:" >&5
19200sed 's/^/| /' conftest.$ac_ext >&5
19201
19202	ac_lo= ac_hi=
19203fi
19204
19205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206fi
19207
19208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19209# Binary search between lo and hi bounds.
19210while test "x$ac_lo" != "x$ac_hi"; do
19211  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19212  cat >conftest.$ac_ext <<_ACEOF
19213/* confdefs.h.  */
19214_ACEOF
19215cat confdefs.h >>conftest.$ac_ext
19216cat >>conftest.$ac_ext <<_ACEOF
19217/* end confdefs.h.  */
19218$ac_includes_default
19219int
19220main ()
19221{
19222static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
19223test_array [0] = 0
19224
19225  ;
19226  return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext
19230if { (ac_try="$ac_compile"
19231case "(($ac_try" in
19232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233  *) ac_try_echo=$ac_try;;
19234esac
19235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19236$as_echo "$ac_try_echo") >&5
19237  (eval "$ac_compile") 2>conftest.er1
19238  ac_status=$?
19239  grep -v '^ *+' conftest.er1 >conftest.err
19240  rm -f conftest.er1
19241  cat conftest.err >&5
19242  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243  (exit $ac_status); } && {
19244	 test -z "$ac_c_werror_flag" ||
19245	 test ! -s conftest.err
19246       } && test -s conftest.$ac_objext; then
19247  ac_hi=$ac_mid
19248else
19249  $as_echo "$as_me: failed program was:" >&5
19250sed 's/^/| /' conftest.$ac_ext >&5
19251
19252	ac_lo=`expr '(' $ac_mid ')' + 1`
19253fi
19254
19255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19256done
19257case $ac_lo in
19258?*) ac_cv_sizeof_size_t=$ac_lo;;
19259'') if test "$ac_cv_type_size_t" = yes; then
19260     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19262{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
19263See \`config.log' for more details." >&5
19264$as_echo "$as_me: error: cannot compute sizeof (size_t)
19265See \`config.log' for more details." >&2;}
19266   { (exit 77); exit 77; }; }; }
19267   else
19268     ac_cv_sizeof_size_t=0
19269   fi ;;
19270esac
19271else
19272  cat >conftest.$ac_ext <<_ACEOF
19273/* confdefs.h.  */
19274_ACEOF
19275cat confdefs.h >>conftest.$ac_ext
19276cat >>conftest.$ac_ext <<_ACEOF
19277/* end confdefs.h.  */
19278$ac_includes_default
19279static long int longval () { return (long int) (sizeof (size_t)); }
19280static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
19281#include <stdio.h>
19282#include <stdlib.h>
19283int
19284main ()
19285{
19286
19287  FILE *f = fopen ("conftest.val", "w");
19288  if (! f)
19289    return 1;
19290  if (((long int) (sizeof (size_t))) < 0)
19291    {
19292      long int i = longval ();
19293      if (i != ((long int) (sizeof (size_t))))
19294	return 1;
19295      fprintf (f, "%ld", i);
19296    }
19297  else
19298    {
19299      unsigned long int i = ulongval ();
19300      if (i != ((long int) (sizeof (size_t))))
19301	return 1;
19302      fprintf (f, "%lu", i);
19303    }
19304  /* Do not output a trailing newline, as this causes \r\n confusion
19305     on some platforms.  */
19306  return ferror (f) || fclose (f) != 0;
19307
19308  ;
19309  return 0;
19310}
19311_ACEOF
19312rm -f conftest$ac_exeext
19313if { (ac_try="$ac_link"
19314case "(($ac_try" in
19315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316  *) ac_try_echo=$ac_try;;
19317esac
19318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19319$as_echo "$ac_try_echo") >&5
19320  (eval "$ac_link") 2>&5
19321  ac_status=$?
19322  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19324  { (case "(($ac_try" in
19325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326  *) ac_try_echo=$ac_try;;
19327esac
19328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19329$as_echo "$ac_try_echo") >&5
19330  (eval "$ac_try") 2>&5
19331  ac_status=$?
19332  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333  (exit $ac_status); }; }; then
19334  ac_cv_sizeof_size_t=`cat conftest.val`
19335else
19336  $as_echo "$as_me: program exited with status $ac_status" >&5
19337$as_echo "$as_me: failed program was:" >&5
19338sed 's/^/| /' conftest.$ac_ext >&5
19339
19340( exit $ac_status )
19341if test "$ac_cv_type_size_t" = yes; then
19342     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19344{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
19345See \`config.log' for more details." >&5
19346$as_echo "$as_me: error: cannot compute sizeof (size_t)
19347See \`config.log' for more details." >&2;}
19348   { (exit 77); exit 77; }; }; }
19349   else
19350     ac_cv_sizeof_size_t=0
19351   fi
19352fi
19353rm -rf conftest.dSYM
19354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19355fi
19356rm -f conftest.val
19357fi
19358{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19359$as_echo "$ac_cv_sizeof_size_t" >&6; }
19360
19361
19362
19363cat >>confdefs.h <<_ACEOF
19364#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19365_ACEOF
19366
19367
19368# The cast to long int works around a bug in the HP C Compiler
19369# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19370# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19371# This bug is HP SR number 8606223364.
19372{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
19373$as_echo_n "checking size of off_t... " >&6; }
19374if test "${ac_cv_sizeof_off_t+set}" = set; then
19375  $as_echo_n "(cached) " >&6
19376else
19377  if test "$cross_compiling" = yes; then
19378  # Depending upon the size, compute the lo and hi bounds.
19379cat >conftest.$ac_ext <<_ACEOF
19380/* confdefs.h.  */
19381_ACEOF
19382cat confdefs.h >>conftest.$ac_ext
19383cat >>conftest.$ac_ext <<_ACEOF
19384/* end confdefs.h.  */
19385$ac_includes_default
19386int
19387main ()
19388{
19389static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
19390test_array [0] = 0
19391
19392  ;
19393  return 0;
19394}
19395_ACEOF
19396rm -f conftest.$ac_objext
19397if { (ac_try="$ac_compile"
19398case "(($ac_try" in
19399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400  *) ac_try_echo=$ac_try;;
19401esac
19402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19403$as_echo "$ac_try_echo") >&5
19404  (eval "$ac_compile") 2>conftest.er1
19405  ac_status=$?
19406  grep -v '^ *+' conftest.er1 >conftest.err
19407  rm -f conftest.er1
19408  cat conftest.err >&5
19409  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410  (exit $ac_status); } && {
19411	 test -z "$ac_c_werror_flag" ||
19412	 test ! -s conftest.err
19413       } && test -s conftest.$ac_objext; then
19414  ac_lo=0 ac_mid=0
19415  while :; do
19416    cat >conftest.$ac_ext <<_ACEOF
19417/* confdefs.h.  */
19418_ACEOF
19419cat confdefs.h >>conftest.$ac_ext
19420cat >>conftest.$ac_ext <<_ACEOF
19421/* end confdefs.h.  */
19422$ac_includes_default
19423int
19424main ()
19425{
19426static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19427test_array [0] = 0
19428
19429  ;
19430  return 0;
19431}
19432_ACEOF
19433rm -f conftest.$ac_objext
19434if { (ac_try="$ac_compile"
19435case "(($ac_try" in
19436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437  *) ac_try_echo=$ac_try;;
19438esac
19439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19440$as_echo "$ac_try_echo") >&5
19441  (eval "$ac_compile") 2>conftest.er1
19442  ac_status=$?
19443  grep -v '^ *+' conftest.er1 >conftest.err
19444  rm -f conftest.er1
19445  cat conftest.err >&5
19446  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447  (exit $ac_status); } && {
19448	 test -z "$ac_c_werror_flag" ||
19449	 test ! -s conftest.err
19450       } && test -s conftest.$ac_objext; then
19451  ac_hi=$ac_mid; break
19452else
19453  $as_echo "$as_me: failed program was:" >&5
19454sed 's/^/| /' conftest.$ac_ext >&5
19455
19456	ac_lo=`expr $ac_mid + 1`
19457			if test $ac_lo -le $ac_mid; then
19458			  ac_lo= ac_hi=
19459			  break
19460			fi
19461			ac_mid=`expr 2 '*' $ac_mid + 1`
19462fi
19463
19464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19465  done
19466else
19467  $as_echo "$as_me: failed program was:" >&5
19468sed 's/^/| /' conftest.$ac_ext >&5
19469
19470	cat >conftest.$ac_ext <<_ACEOF
19471/* confdefs.h.  */
19472_ACEOF
19473cat confdefs.h >>conftest.$ac_ext
19474cat >>conftest.$ac_ext <<_ACEOF
19475/* end confdefs.h.  */
19476$ac_includes_default
19477int
19478main ()
19479{
19480static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
19481test_array [0] = 0
19482
19483  ;
19484  return 0;
19485}
19486_ACEOF
19487rm -f conftest.$ac_objext
19488if { (ac_try="$ac_compile"
19489case "(($ac_try" in
19490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491  *) ac_try_echo=$ac_try;;
19492esac
19493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19494$as_echo "$ac_try_echo") >&5
19495  (eval "$ac_compile") 2>conftest.er1
19496  ac_status=$?
19497  grep -v '^ *+' conftest.er1 >conftest.err
19498  rm -f conftest.er1
19499  cat conftest.err >&5
19500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501  (exit $ac_status); } && {
19502	 test -z "$ac_c_werror_flag" ||
19503	 test ! -s conftest.err
19504       } && test -s conftest.$ac_objext; then
19505  ac_hi=-1 ac_mid=-1
19506  while :; do
19507    cat >conftest.$ac_ext <<_ACEOF
19508/* confdefs.h.  */
19509_ACEOF
19510cat confdefs.h >>conftest.$ac_ext
19511cat >>conftest.$ac_ext <<_ACEOF
19512/* end confdefs.h.  */
19513$ac_includes_default
19514int
19515main ()
19516{
19517static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
19518test_array [0] = 0
19519
19520  ;
19521  return 0;
19522}
19523_ACEOF
19524rm -f conftest.$ac_objext
19525if { (ac_try="$ac_compile"
19526case "(($ac_try" in
19527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528  *) ac_try_echo=$ac_try;;
19529esac
19530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19531$as_echo "$ac_try_echo") >&5
19532  (eval "$ac_compile") 2>conftest.er1
19533  ac_status=$?
19534  grep -v '^ *+' conftest.er1 >conftest.err
19535  rm -f conftest.er1
19536  cat conftest.err >&5
19537  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538  (exit $ac_status); } && {
19539	 test -z "$ac_c_werror_flag" ||
19540	 test ! -s conftest.err
19541       } && test -s conftest.$ac_objext; then
19542  ac_lo=$ac_mid; break
19543else
19544  $as_echo "$as_me: failed program was:" >&5
19545sed 's/^/| /' conftest.$ac_ext >&5
19546
19547	ac_hi=`expr '(' $ac_mid ')' - 1`
19548			if test $ac_mid -le $ac_hi; then
19549			  ac_lo= ac_hi=
19550			  break
19551			fi
19552			ac_mid=`expr 2 '*' $ac_mid`
19553fi
19554
19555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19556  done
19557else
19558  $as_echo "$as_me: failed program was:" >&5
19559sed 's/^/| /' conftest.$ac_ext >&5
19560
19561	ac_lo= ac_hi=
19562fi
19563
19564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19565fi
19566
19567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19568# Binary search between lo and hi bounds.
19569while test "x$ac_lo" != "x$ac_hi"; do
19570  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19571  cat >conftest.$ac_ext <<_ACEOF
19572/* confdefs.h.  */
19573_ACEOF
19574cat confdefs.h >>conftest.$ac_ext
19575cat >>conftest.$ac_ext <<_ACEOF
19576/* end confdefs.h.  */
19577$ac_includes_default
19578int
19579main ()
19580{
19581static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19582test_array [0] = 0
19583
19584  ;
19585  return 0;
19586}
19587_ACEOF
19588rm -f conftest.$ac_objext
19589if { (ac_try="$ac_compile"
19590case "(($ac_try" in
19591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592  *) ac_try_echo=$ac_try;;
19593esac
19594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19595$as_echo "$ac_try_echo") >&5
19596  (eval "$ac_compile") 2>conftest.er1
19597  ac_status=$?
19598  grep -v '^ *+' conftest.er1 >conftest.err
19599  rm -f conftest.er1
19600  cat conftest.err >&5
19601  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602  (exit $ac_status); } && {
19603	 test -z "$ac_c_werror_flag" ||
19604	 test ! -s conftest.err
19605       } && test -s conftest.$ac_objext; then
19606  ac_hi=$ac_mid
19607else
19608  $as_echo "$as_me: failed program was:" >&5
19609sed 's/^/| /' conftest.$ac_ext >&5
19610
19611	ac_lo=`expr '(' $ac_mid ')' + 1`
19612fi
19613
19614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19615done
19616case $ac_lo in
19617?*) ac_cv_sizeof_off_t=$ac_lo;;
19618'') if test "$ac_cv_type_off_t" = yes; then
19619     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19621{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19622See \`config.log' for more details." >&5
19623$as_echo "$as_me: error: cannot compute sizeof (off_t)
19624See \`config.log' for more details." >&2;}
19625   { (exit 77); exit 77; }; }; }
19626   else
19627     ac_cv_sizeof_off_t=0
19628   fi ;;
19629esac
19630else
19631  cat >conftest.$ac_ext <<_ACEOF
19632/* confdefs.h.  */
19633_ACEOF
19634cat confdefs.h >>conftest.$ac_ext
19635cat >>conftest.$ac_ext <<_ACEOF
19636/* end confdefs.h.  */
19637$ac_includes_default
19638static long int longval () { return (long int) (sizeof (off_t)); }
19639static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19640#include <stdio.h>
19641#include <stdlib.h>
19642int
19643main ()
19644{
19645
19646  FILE *f = fopen ("conftest.val", "w");
19647  if (! f)
19648    return 1;
19649  if (((long int) (sizeof (off_t))) < 0)
19650    {
19651      long int i = longval ();
19652      if (i != ((long int) (sizeof (off_t))))
19653	return 1;
19654      fprintf (f, "%ld", i);
19655    }
19656  else
19657    {
19658      unsigned long int i = ulongval ();
19659      if (i != ((long int) (sizeof (off_t))))
19660	return 1;
19661      fprintf (f, "%lu", i);
19662    }
19663  /* Do not output a trailing newline, as this causes \r\n confusion
19664     on some platforms.  */
19665  return ferror (f) || fclose (f) != 0;
19666
19667  ;
19668  return 0;
19669}
19670_ACEOF
19671rm -f conftest$ac_exeext
19672if { (ac_try="$ac_link"
19673case "(($ac_try" in
19674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675  *) ac_try_echo=$ac_try;;
19676esac
19677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19678$as_echo "$ac_try_echo") >&5
19679  (eval "$ac_link") 2>&5
19680  ac_status=$?
19681  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19683  { (case "(($ac_try" in
19684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685  *) ac_try_echo=$ac_try;;
19686esac
19687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19688$as_echo "$ac_try_echo") >&5
19689  (eval "$ac_try") 2>&5
19690  ac_status=$?
19691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692  (exit $ac_status); }; }; then
19693  ac_cv_sizeof_off_t=`cat conftest.val`
19694else
19695  $as_echo "$as_me: program exited with status $ac_status" >&5
19696$as_echo "$as_me: failed program was:" >&5
19697sed 's/^/| /' conftest.$ac_ext >&5
19698
19699( exit $ac_status )
19700if test "$ac_cv_type_off_t" = yes; then
19701     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19703{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19704See \`config.log' for more details." >&5
19705$as_echo "$as_me: error: cannot compute sizeof (off_t)
19706See \`config.log' for more details." >&2;}
19707   { (exit 77); exit 77; }; }; }
19708   else
19709     ac_cv_sizeof_off_t=0
19710   fi
19711fi
19712rm -rf conftest.dSYM
19713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19714fi
19715rm -f conftest.val
19716fi
19717{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19718$as_echo "$ac_cv_sizeof_off_t" >&6; }
19719
19720
19721
19722cat >>confdefs.h <<_ACEOF
19723#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19724_ACEOF
19725
19726
19727CFLAGS="$CFLAGS_save"
19728
19729if test $ac_cv_sizeof_size_t -eq 8; then
19730
19731cat >>confdefs.h <<\_ACEOF
19732#define SSIZE_T "%lld"
19733_ACEOF
19734
19735
19736cat >>confdefs.h <<\_ACEOF
19737#define SIZE_T "%llu"
19738_ACEOF
19739
19740else
19741
19742cat >>confdefs.h <<\_ACEOF
19743#define SSIZE_T "%ld"
19744_ACEOF
19745
19746
19747cat >>confdefs.h <<\_ACEOF
19748#define SIZE_T "%lu"
19749_ACEOF
19750
19751fi
19752if test $ac_cv_sizeof_off_t -eq 8; then
19753
19754cat >>confdefs.h <<\_ACEOF
19755#define OFF_T "%lld"
19756_ACEOF
19757
19758else
19759
19760cat >>confdefs.h <<\_ACEOF
19761#define OFF_T "%ld"
19762_ACEOF
19763
19764fi
19765
19766
19767
19768
19769
19770for ac_func in gethostname getdomainname getaddrinfo
19771do
19772as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19773{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19774$as_echo_n "checking for $ac_func... " >&6; }
19775if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19776  $as_echo_n "(cached) " >&6
19777else
19778  cat >conftest.$ac_ext <<_ACEOF
19779/* confdefs.h.  */
19780_ACEOF
19781cat confdefs.h >>conftest.$ac_ext
19782cat >>conftest.$ac_ext <<_ACEOF
19783/* end confdefs.h.  */
19784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19785   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19786#define $ac_func innocuous_$ac_func
19787
19788/* System header to define __stub macros and hopefully few prototypes,
19789    which can conflict with char $ac_func (); below.
19790    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19791    <limits.h> exists even on freestanding compilers.  */
19792
19793#ifdef __STDC__
19794# include <limits.h>
19795#else
19796# include <assert.h>
19797#endif
19798
19799#undef $ac_func
19800
19801/* Override any GCC internal prototype to avoid an error.
19802   Use char because int might match the return type of a GCC
19803   builtin and then its argument prototype would still apply.  */
19804#ifdef __cplusplus
19805extern "C"
19806#endif
19807char $ac_func ();
19808/* The GNU C library defines this for functions which it implements
19809    to always fail with ENOSYS.  Some functions are actually named
19810    something starting with __ and the normal name is an alias.  */
19811#if defined __stub_$ac_func || defined __stub___$ac_func
19812choke me
19813#endif
19814
19815int
19816main ()
19817{
19818return $ac_func ();
19819  ;
19820  return 0;
19821}
19822_ACEOF
19823rm -f conftest.$ac_objext conftest$ac_exeext
19824if { (ac_try="$ac_link"
19825case "(($ac_try" in
19826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827  *) ac_try_echo=$ac_try;;
19828esac
19829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19830$as_echo "$ac_try_echo") >&5
19831  (eval "$ac_link") 2>conftest.er1
19832  ac_status=$?
19833  grep -v '^ *+' conftest.er1 >conftest.err
19834  rm -f conftest.er1
19835  cat conftest.err >&5
19836  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837  (exit $ac_status); } && {
19838	 test -z "$ac_c_werror_flag" ||
19839	 test ! -s conftest.err
19840       } && test -s conftest$ac_exeext && {
19841	 test "$cross_compiling" = yes ||
19842	 $as_test_x conftest$ac_exeext
19843       }; then
19844  eval "$as_ac_var=yes"
19845else
19846  $as_echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849	eval "$as_ac_var=no"
19850fi
19851
19852rm -rf conftest.dSYM
19853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19854      conftest$ac_exeext conftest.$ac_ext
19855fi
19856ac_res=`eval 'as_val=${'$as_ac_var'}
19857		 $as_echo "$as_val"'`
19858	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19859$as_echo "$ac_res" >&6; }
19860as_val=`eval 'as_val=${'$as_ac_var'}
19861		 $as_echo "$as_val"'`
19862   if test "x$as_val" = x""yes; then
19863  cat >>confdefs.h <<_ACEOF
19864#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19865_ACEOF
19866
19867fi
19868done
19869
19870
19871LIBSOCKET=""
19872{ $as_echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5
19873$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
19874if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then
19875  $as_echo_n "(cached) " >&6
19876else
19877  ac_check_lib_save_LIBS=$LIBS
19878LIBS="-lsocket  $LIBS"
19879cat >conftest.$ac_ext <<_ACEOF
19880/* confdefs.h.  */
19881_ACEOF
19882cat confdefs.h >>conftest.$ac_ext
19883cat >>conftest.$ac_ext <<_ACEOF
19884/* end confdefs.h.  */
19885
19886/* Override any GCC internal prototype to avoid an error.
19887   Use char because int might match the return type of a GCC
19888   builtin and then its argument prototype would still apply.  */
19889#ifdef __cplusplus
19890extern "C"
19891#endif
19892char getaddrinfo ();
19893int
19894main ()
19895{
19896return getaddrinfo ();
19897  ;
19898  return 0;
19899}
19900_ACEOF
19901rm -f conftest.$ac_objext conftest$ac_exeext
19902if { (ac_try="$ac_link"
19903case "(($ac_try" in
19904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905  *) ac_try_echo=$ac_try;;
19906esac
19907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19908$as_echo "$ac_try_echo") >&5
19909  (eval "$ac_link") 2>conftest.er1
19910  ac_status=$?
19911  grep -v '^ *+' conftest.er1 >conftest.err
19912  rm -f conftest.er1
19913  cat conftest.err >&5
19914  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915  (exit $ac_status); } && {
19916	 test -z "$ac_c_werror_flag" ||
19917	 test ! -s conftest.err
19918       } && test -s conftest$ac_exeext && {
19919	 test "$cross_compiling" = yes ||
19920	 $as_test_x conftest$ac_exeext
19921       }; then
19922  ac_cv_lib_socket_getaddrinfo=yes
19923else
19924  $as_echo "$as_me: failed program was:" >&5
19925sed 's/^/| /' conftest.$ac_ext >&5
19926
19927	ac_cv_lib_socket_getaddrinfo=no
19928fi
19929
19930rm -rf conftest.dSYM
19931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19932      conftest$ac_exeext conftest.$ac_ext
19933LIBS=$ac_check_lib_save_LIBS
19934fi
19935{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5
19936$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
19937if test "x$ac_cv_lib_socket_getaddrinfo" = x""yes; then
19938  LIBSOCKET="-lsocket -lnsl"
19939fi
19940
19941
19942LIBNSL=""
19943{ $as_echo "$as_me:$LINENO: checking for getaddrinfo in -lnsl" >&5
19944$as_echo_n "checking for getaddrinfo in -lnsl... " >&6; }
19945if test "${ac_cv_lib_nsl_getaddrinfo+set}" = set; then
19946  $as_echo_n "(cached) " >&6
19947else
19948  ac_check_lib_save_LIBS=$LIBS
19949LIBS="-lnsl  $LIBS"
19950cat >conftest.$ac_ext <<_ACEOF
19951/* confdefs.h.  */
19952_ACEOF
19953cat confdefs.h >>conftest.$ac_ext
19954cat >>conftest.$ac_ext <<_ACEOF
19955/* end confdefs.h.  */
19956
19957/* Override any GCC internal prototype to avoid an error.
19958   Use char because int might match the return type of a GCC
19959   builtin and then its argument prototype would still apply.  */
19960#ifdef __cplusplus
19961extern "C"
19962#endif
19963char getaddrinfo ();
19964int
19965main ()
19966{
19967return getaddrinfo ();
19968  ;
19969  return 0;
19970}
19971_ACEOF
19972rm -f conftest.$ac_objext conftest$ac_exeext
19973if { (ac_try="$ac_link"
19974case "(($ac_try" in
19975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976  *) ac_try_echo=$ac_try;;
19977esac
19978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19979$as_echo "$ac_try_echo") >&5
19980  (eval "$ac_link") 2>conftest.er1
19981  ac_status=$?
19982  grep -v '^ *+' conftest.er1 >conftest.err
19983  rm -f conftest.er1
19984  cat conftest.err >&5
19985  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986  (exit $ac_status); } && {
19987	 test -z "$ac_c_werror_flag" ||
19988	 test ! -s conftest.err
19989       } && test -s conftest$ac_exeext && {
19990	 test "$cross_compiling" = yes ||
19991	 $as_test_x conftest$ac_exeext
19992       }; then
19993  ac_cv_lib_nsl_getaddrinfo=yes
19994else
19995  $as_echo "$as_me: failed program was:" >&5
19996sed 's/^/| /' conftest.$ac_ext >&5
19997
19998	ac_cv_lib_nsl_getaddrinfo=no
19999fi
20000
20001rm -rf conftest.dSYM
20002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20003      conftest$ac_exeext conftest.$ac_ext
20004LIBS=$ac_check_lib_save_LIBS
20005fi
20006{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_getaddrinfo" >&5
20007$as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; }
20008if test "x$ac_cv_lib_nsl_getaddrinfo" = x""yes; then
20009  LIBNSL="-lnsl"
20010fi
20011
20012
20013# Check whether --enable-mono was given.
20014if test "${enable_mono+set}" = set; then
20015  enableval=$enable_mono;
20016else
20017  enable_mono="auto"
20018fi
20019
20020if test ! "x$enable_mono" = "xno"; then
20021	# Extract the first word of "mcs", so it can be a program name with args.
20022set dummy mcs; ac_word=$2
20023{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20024$as_echo_n "checking for $ac_word... " >&6; }
20025if test "${ac_cv_path_CSC+set}" = set; then
20026  $as_echo_n "(cached) " >&6
20027else
20028  case $CSC in
20029  [\\/]* | ?:[\\/]*)
20030  ac_cv_path_CSC="$CSC" # Let the user override the test with a path.
20031  ;;
20032  *)
20033  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20034for as_dir in $PATH
20035do
20036  IFS=$as_save_IFS
20037  test -z "$as_dir" && as_dir=.
20038  for ac_exec_ext in '' $ac_executable_extensions; do
20039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20040    ac_cv_path_CSC="$as_dir/$ac_word$ac_exec_ext"
20041    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20042    break 2
20043  fi
20044done
20045done
20046IFS=$as_save_IFS
20047
20048  test -z "$ac_cv_path_CSC" && ac_cv_path_CSC="no"
20049  ;;
20050esac
20051fi
20052CSC=$ac_cv_path_CSC
20053if test -n "$CSC"; then
20054  { $as_echo "$as_me:$LINENO: result: $CSC" >&5
20055$as_echo "$CSC" >&6; }
20056else
20057  { $as_echo "$as_me:$LINENO: result: no" >&5
20058$as_echo "no" >&6; }
20059fi
20060
20061
20062	# if we found mcs, make sure it's mono and not something else named
20063	# mcs, such as Tru64's /usr/bin/mcs, for manipulating object file
20064	# comment sections of eCOFF object files.
20065	if test "x$CSC" != "xno"; then
20066		{ $as_echo "$as_me:$LINENO: checking whether $CSC is GNU Mono" >&5
20067$as_echo_n "checking whether $CSC is GNU Mono... " >&6; }
20068		$CSC --version > /dev/null 2>&1
20069		if test $? -ne 0; then
20070			CSC=no
20071			{ $as_echo "$as_me:$LINENO: result: no" >&5
20072$as_echo "no" >&6; }
20073		else
20074			{ $as_echo "$as_me:$LINENO: result: yes" >&5
20075$as_echo "yes" >&6; }
20076		fi
20077	fi
20078else
20079	CSC="no"
20080fi
20081
20082if test "x$CSC" = "xno"; then
20083		if test "x$enable_mono" = "xyes"; then
20084		{ { $as_echo "$as_me:$LINENO: error: Could not find mcs" >&5
20085$as_echo "$as_me: error: Could not find mcs" >&2;}
20086   { (exit 1); exit 1; }; }
20087	fi
20088
20089	enable_mono="no"
20090	 if false; then
20091  ENABLE_MONO_TRUE=
20092  ENABLE_MONO_FALSE='#'
20093else
20094  ENABLE_MONO_TRUE='#'
20095  ENABLE_MONO_FALSE=
20096fi
20097
20098else
20099	enable_mono="yes"
20100	 if true; then
20101  ENABLE_MONO_TRUE=
20102  ENABLE_MONO_FALSE='#'
20103else
20104  ENABLE_MONO_TRUE='#'
20105  ENABLE_MONO_FALSE=
20106fi
20107
20108fi
20109
20110if test "x$enable_mono" = "xyes"; then
20111	# Extract the first word of "gacutil", so it can be a program name with args.
20112set dummy gacutil; ac_word=$2
20113{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20114$as_echo_n "checking for $ac_word... " >&6; }
20115if test "${ac_cv_path_GACUTIL+set}" = set; then
20116  $as_echo_n "(cached) " >&6
20117else
20118  case $GACUTIL in
20119  [\\/]* | ?:[\\/]*)
20120  ac_cv_path_GACUTIL="$GACUTIL" # Let the user override the test with a path.
20121  ;;
20122  *)
20123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20124for as_dir in $PATH
20125do
20126  IFS=$as_save_IFS
20127  test -z "$as_dir" && as_dir=.
20128  for ac_exec_ext in '' $ac_executable_extensions; do
20129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20130    ac_cv_path_GACUTIL="$as_dir/$ac_word$ac_exec_ext"
20131    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20132    break 2
20133  fi
20134done
20135done
20136IFS=$as_save_IFS
20137
20138  test -z "$ac_cv_path_GACUTIL" && ac_cv_path_GACUTIL="no"
20139  ;;
20140esac
20141fi
20142GACUTIL=$ac_cv_path_GACUTIL
20143if test -n "$GACUTIL"; then
20144  { $as_echo "$as_me:$LINENO: result: $GACUTIL" >&5
20145$as_echo "$GACUTIL" >&6; }
20146else
20147  { $as_echo "$as_me:$LINENO: result: no" >&5
20148$as_echo "no" >&6; }
20149fi
20150
20151
20152	if test "x$GACUTIL" = "xno"; then
20153		{ { $as_echo "$as_me:$LINENO: error: Your mono installation doesn't expose gacutil" >&5
20154$as_echo "$as_me: error: Your mono installation doesn't expose gacutil" >&2;}
20155   { (exit 1); exit 1; }; }
20156	fi
20157
20158
20159
20160
20161
20162pkg_failed=no
20163{ $as_echo "$as_me:$LINENO: checking for GTK_SHARP" >&5
20164$as_echo_n "checking for GTK_SHARP... " >&6; }
20165
20166if test -n "$GTK_SHARP_CFLAGS"; then
20167    pkg_cv_GTK_SHARP_CFLAGS="$GTK_SHARP_CFLAGS"
20168 elif test -n "$PKG_CONFIG"; then
20169    if test -n "$PKG_CONFIG" && \
20170    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-sharp-2.0 >= 2.4.0\"") >&5
20171  ($PKG_CONFIG --exists --print-errors "gtk-sharp-2.0 >= 2.4.0") 2>&5
20172  ac_status=$?
20173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174  (exit $ac_status); }; then
20175  pkg_cv_GTK_SHARP_CFLAGS=`$PKG_CONFIG --cflags "gtk-sharp-2.0 >= 2.4.0" 2>/dev/null`
20176else
20177  pkg_failed=yes
20178fi
20179 else
20180    pkg_failed=untried
20181fi
20182if test -n "$GTK_SHARP_LIBS"; then
20183    pkg_cv_GTK_SHARP_LIBS="$GTK_SHARP_LIBS"
20184 elif test -n "$PKG_CONFIG"; then
20185    if test -n "$PKG_CONFIG" && \
20186    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-sharp-2.0 >= 2.4.0\"") >&5
20187  ($PKG_CONFIG --exists --print-errors "gtk-sharp-2.0 >= 2.4.0") 2>&5
20188  ac_status=$?
20189  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190  (exit $ac_status); }; then
20191  pkg_cv_GTK_SHARP_LIBS=`$PKG_CONFIG --libs "gtk-sharp-2.0 >= 2.4.0" 2>/dev/null`
20192else
20193  pkg_failed=yes
20194fi
20195 else
20196    pkg_failed=untried
20197fi
20198
20199
20200
20201if test $pkg_failed = yes; then
20202
20203if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20204        _pkg_short_errors_supported=yes
20205else
20206        _pkg_short_errors_supported=no
20207fi
20208        if test $_pkg_short_errors_supported = yes; then
20209	        GTK_SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk-sharp-2.0 >= 2.4.0" 2>&1`
20210        else
20211	        GTK_SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk-sharp-2.0 >= 2.4.0" 2>&1`
20212        fi
20213	# Put the nasty error message in config.log where it belongs
20214	echo "$GTK_SHARP_PKG_ERRORS" >&5
20215
20216	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gtk-sharp-2.0 >= 2.4.0) were not met:
20217
20218$GTK_SHARP_PKG_ERRORS
20219
20220Consider adjusting the PKG_CONFIG_PATH environment variable if you
20221installed software in a non-standard prefix.
20222
20223Alternatively, you may set the environment variables GTK_SHARP_CFLAGS
20224and GTK_SHARP_LIBS to avoid the need to call pkg-config.
20225See the pkg-config man page for more details.
20226" >&5
20227$as_echo "$as_me: error: Package requirements (gtk-sharp-2.0 >= 2.4.0) were not met:
20228
20229$GTK_SHARP_PKG_ERRORS
20230
20231Consider adjusting the PKG_CONFIG_PATH environment variable if you
20232installed software in a non-standard prefix.
20233
20234Alternatively, you may set the environment variables GTK_SHARP_CFLAGS
20235and GTK_SHARP_LIBS to avoid the need to call pkg-config.
20236See the pkg-config man page for more details.
20237" >&2;}
20238   { (exit 1); exit 1; }; }
20239elif test $pkg_failed = untried; then
20240	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20242{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20243is in your PATH or set the PKG_CONFIG environment variable to the full
20244path to pkg-config.
20245
20246Alternatively, you may set the environment variables GTK_SHARP_CFLAGS
20247and GTK_SHARP_LIBS to avoid the need to call pkg-config.
20248See the pkg-config man page for more details.
20249
20250To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20251See \`config.log' for more details." >&5
20252$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20253is in your PATH or set the PKG_CONFIG environment variable to the full
20254path to pkg-config.
20255
20256Alternatively, you may set the environment variables GTK_SHARP_CFLAGS
20257and GTK_SHARP_LIBS to avoid the need to call pkg-config.
20258See the pkg-config man page for more details.
20259
20260To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20261See \`config.log' for more details." >&2;}
20262   { (exit 1); exit 1; }; }; }
20263else
20264	GTK_SHARP_CFLAGS=$pkg_cv_GTK_SHARP_CFLAGS
20265	GTK_SHARP_LIBS=$pkg_cv_GTK_SHARP_LIBS
20266        { $as_echo "$as_me:$LINENO: result: yes" >&5
20267$as_echo "yes" >&6; }
20268	:
20269fi
20270
20271
20272	# Extract the first word of "gapi2-codegen", so it can be a program name with args.
20273set dummy gapi2-codegen; ac_word=$2
20274{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20275$as_echo_n "checking for $ac_word... " >&6; }
20276if test "${ac_cv_path_GAPI_CODEGEN+set}" = set; then
20277  $as_echo_n "(cached) " >&6
20278else
20279  case $GAPI_CODEGEN in
20280  [\\/]* | ?:[\\/]*)
20281  ac_cv_path_GAPI_CODEGEN="$GAPI_CODEGEN" # Let the user override the test with a path.
20282  ;;
20283  *)
20284  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20285for as_dir in $PATH
20286do
20287  IFS=$as_save_IFS
20288  test -z "$as_dir" && as_dir=.
20289  for ac_exec_ext in '' $ac_executable_extensions; do
20290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20291    ac_cv_path_GAPI_CODEGEN="$as_dir/$ac_word$ac_exec_ext"
20292    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20293    break 2
20294  fi
20295done
20296done
20297IFS=$as_save_IFS
20298
20299  test -z "$ac_cv_path_GAPI_CODEGEN" && ac_cv_path_GAPI_CODEGEN="no"
20300  ;;
20301esac
20302fi
20303GAPI_CODEGEN=$ac_cv_path_GAPI_CODEGEN
20304if test -n "$GAPI_CODEGEN"; then
20305  { $as_echo "$as_me:$LINENO: result: $GAPI_CODEGEN" >&5
20306$as_echo "$GAPI_CODEGEN" >&6; }
20307else
20308  { $as_echo "$as_me:$LINENO: result: no" >&5
20309$as_echo "no" >&6; }
20310fi
20311
20312
20313	if test "x$GAPI_CODEGEN" = "xno"; then
20314        	{ { $as_echo "$as_me:$LINENO: error: You need to install gtk-sharp2-gapi" >&5
20315$as_echo "$as_me: error: You need to install gtk-sharp2-gapi" >&2;}
20316   { (exit 1); exit 1; }; }
20317	fi
20318
20319	# Extract the first word of "gapi2-fixup", so it can be a program name with args.
20320set dummy gapi2-fixup; ac_word=$2
20321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20322$as_echo_n "checking for $ac_word... " >&6; }
20323if test "${ac_cv_path_GAPI_FIXUP+set}" = set; then
20324  $as_echo_n "(cached) " >&6
20325else
20326  case $GAPI_FIXUP in
20327  [\\/]* | ?:[\\/]*)
20328  ac_cv_path_GAPI_FIXUP="$GAPI_FIXUP" # Let the user override the test with a path.
20329  ;;
20330  *)
20331  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20332for as_dir in $PATH
20333do
20334  IFS=$as_save_IFS
20335  test -z "$as_dir" && as_dir=.
20336  for ac_exec_ext in '' $ac_executable_extensions; do
20337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20338    ac_cv_path_GAPI_FIXUP="$as_dir/$ac_word$ac_exec_ext"
20339    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20340    break 2
20341  fi
20342done
20343done
20344IFS=$as_save_IFS
20345
20346  test -z "$ac_cv_path_GAPI_FIXUP" && ac_cv_path_GAPI_FIXUP="no"
20347  ;;
20348esac
20349fi
20350GAPI_FIXUP=$ac_cv_path_GAPI_FIXUP
20351if test -n "$GAPI_FIXUP"; then
20352  { $as_echo "$as_me:$LINENO: result: $GAPI_FIXUP" >&5
20353$as_echo "$GAPI_FIXUP" >&6; }
20354else
20355  { $as_echo "$as_me:$LINENO: result: no" >&5
20356$as_echo "no" >&6; }
20357fi
20358
20359
20360	if test "x$GAPI_FIXUP" = "xno"; then
20361        	{ { $as_echo "$as_me:$LINENO: error: You need to install gtk-sharp2-gapi" >&5
20362$as_echo "$as_me: error: You need to install gtk-sharp2-gapi" >&2;}
20363   { (exit 1); exit 1; }; }
20364	fi
20365
20366						MONO_INTERFACE_VERSION=0
20367	API_VERSION="$GMIME_MAJOR_VERSION.$GMIME_MINOR_VERSION.0.$MONO_INTERFACE_VERSION"
20368
20369fi
20370
20371EXTRA_LIBS="$ZLIB"
20372if test "x$LIBSOCKET" != "x"; then
20373	EXTRA_LIBS="$EXTRA_LIBS $LIBSOCKET"
20374fi
20375if test "x$LIBNSL" != "x"; then
20376	EXTRA_LIBS="$EXTRA_LIBS $LIBNSL"
20377fi
20378if test "x$LIBICONV" != "x"; then
20379	EXTRA_LIBS="$EXTRA_LIBS $LIBICONV"
20380fi
20381
20382CFLAGS="$CFLAGS -fno-strict-aliasing"
20383
20384
20385LIBS="$LIBS $EXTRA_LIBS"
20386
20387
20388GMIME_LIBDIR="-L${libdir}"
20389GMIME_INCLUDEDIR="-I${includedir}/gmime-2.0"
20390GMIME_LIBS="-lgmime-2.0 $EXTRA_LIBS"
20391
20392
20393
20394
20395
20396
20397
20398ac_config_files="$ac_config_files Makefile docs/Makefile docs/reference/Makefile docs/tutorial/Makefile examples/Makefile util/Makefile gmime/Makefile mono/Makefile mono/AssemblyInfo.cs mono/gmime-sharp.dll.config mono/gmime-sharp.pc src/Makefile tests/Makefile gmime-config gmime-2.0.pc gmime.spec"
20399
20400cat >confcache <<\_ACEOF
20401# This file is a shell script that caches the results of configure
20402# tests run on this system so they can be shared between configure
20403# scripts and configure runs, see configure's option --config-cache.
20404# It is not useful on other systems.  If it contains results you don't
20405# want to keep, you may remove or edit it.
20406#
20407# config.status only pays attention to the cache file if you give it
20408# the --recheck option to rerun configure.
20409#
20410# `ac_cv_env_foo' variables (set or unset) will be overridden when
20411# loading this file, other *unset* `ac_cv_foo' will be assigned the
20412# following values.
20413
20414_ACEOF
20415
20416# The following way of writing the cache mishandles newlines in values,
20417# but we know of no workaround that is simple, portable, and efficient.
20418# So, we kill variables containing newlines.
20419# Ultrix sh set writes to stderr and can't be redirected directly,
20420# and sets the high bit in the cache file unless we assign to the vars.
20421(
20422  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20423    eval ac_val=\$$ac_var
20424    case $ac_val in #(
20425    *${as_nl}*)
20426      case $ac_var in #(
20427      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20428$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20429      esac
20430      case $ac_var in #(
20431      _ | IFS | as_nl) ;; #(
20432      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20433      *) $as_unset $ac_var ;;
20434      esac ;;
20435    esac
20436  done
20437
20438  (set) 2>&1 |
20439    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20440    *${as_nl}ac_space=\ *)
20441      # `set' does not quote correctly, so add quotes (double-quote
20442      # substitution turns \\\\ into \\, and sed turns \\ into \).
20443      sed -n \
20444	"s/'/'\\\\''/g;
20445	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20446      ;; #(
20447    *)
20448      # `set' quotes correctly as required by POSIX, so do not add quotes.
20449      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20450      ;;
20451    esac |
20452    sort
20453) |
20454  sed '
20455     /^ac_cv_env_/b end
20456     t clear
20457     :clear
20458     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20459     t end
20460     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20461     :end' >>confcache
20462if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20463  if test -w "$cache_file"; then
20464    test "x$cache_file" != "x/dev/null" &&
20465      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20466$as_echo "$as_me: updating cache $cache_file" >&6;}
20467    cat confcache >$cache_file
20468  else
20469    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20470$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20471  fi
20472fi
20473rm -f confcache
20474
20475test "x$prefix" = xNONE && prefix=$ac_default_prefix
20476# Let make expand exec_prefix.
20477test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20478
20479DEFS=-DHAVE_CONFIG_H
20480
20481ac_libobjs=
20482ac_ltlibobjs=
20483for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20484  # 1. Remove the extension, and $U if already installed.
20485  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20486  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20487  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20488  #    will be set to the directory where LIBOBJS objects are built.
20489  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20490  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20491done
20492LIBOBJS=$ac_libobjs
20493
20494LTLIBOBJS=$ac_ltlibobjs
20495
20496
20497 if test -n "$EXEEXT"; then
20498  am__EXEEXT_TRUE=
20499  am__EXEEXT_FALSE='#'
20500else
20501  am__EXEEXT_TRUE='#'
20502  am__EXEEXT_FALSE=
20503fi
20504
20505if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
20506  { { $as_echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
20507Usually this means the macro was only invoked conditionally." >&5
20508$as_echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
20509Usually this means the macro was only invoked conditionally." >&2;}
20510   { (exit 1); exit 1; }; }
20511fi
20512if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
20513  { { $as_echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
20514Usually this means the macro was only invoked conditionally." >&5
20515$as_echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
20516Usually this means the macro was only invoked conditionally." >&2;}
20517   { (exit 1); exit 1; }; }
20518fi
20519if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20520  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20521Usually this means the macro was only invoked conditionally." >&5
20522$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20523Usually this means the macro was only invoked conditionally." >&2;}
20524   { (exit 1); exit 1; }; }
20525fi
20526if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20527  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20528Usually this means the macro was only invoked conditionally." >&5
20529$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20530Usually this means the macro was only invoked conditionally." >&2;}
20531   { (exit 1); exit 1; }; }
20532fi
20533if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20534  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20535Usually this means the macro was only invoked conditionally." >&5
20536$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20537Usually this means the macro was only invoked conditionally." >&2;}
20538   { (exit 1); exit 1; }; }
20539fi
20540if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20541  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20542Usually this means the macro was only invoked conditionally." >&5
20543$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20544Usually this means the macro was only invoked conditionally." >&2;}
20545   { (exit 1); exit 1; }; }
20546fi
20547if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20548  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20549Usually this means the macro was only invoked conditionally." >&5
20550$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20551Usually this means the macro was only invoked conditionally." >&2;}
20552   { (exit 1); exit 1; }; }
20553fi
20554if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
20555  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
20556Usually this means the macro was only invoked conditionally." >&5
20557$as_echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
20558Usually this means the macro was only invoked conditionally." >&2;}
20559   { (exit 1); exit 1; }; }
20560fi
20561if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
20562  { { $as_echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
20563Usually this means the macro was only invoked conditionally." >&5
20564$as_echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
20565Usually this means the macro was only invoked conditionally." >&2;}
20566   { (exit 1); exit 1; }; }
20567fi
20568if test -z "${HAVE_DOCBOOK_TRUE}" && test -z "${HAVE_DOCBOOK_FALSE}"; then
20569  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOCBOOK\" was never defined.
20570Usually this means the macro was only invoked conditionally." >&5
20571$as_echo "$as_me: error: conditional \"HAVE_DOCBOOK\" was never defined.
20572Usually this means the macro was only invoked conditionally." >&2;}
20573   { (exit 1); exit 1; }; }
20574fi
20575if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
20576  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
20577Usually this means the macro was only invoked conditionally." >&5
20578$as_echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
20579Usually this means the macro was only invoked conditionally." >&2;}
20580   { (exit 1); exit 1; }; }
20581fi
20582if test -z "${HAVE_REGEX_TRUE}" && test -z "${HAVE_REGEX_FALSE}"; then
20583  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_REGEX\" was never defined.
20584Usually this means the macro was only invoked conditionally." >&5
20585$as_echo "$as_me: error: conditional \"HAVE_REGEX\" was never defined.
20586Usually this means the macro was only invoked conditionally." >&2;}
20587   { (exit 1); exit 1; }; }
20588fi
20589if test -z "${SYSTEM_GETOPT_TRUE}" && test -z "${SYSTEM_GETOPT_FALSE}"; then
20590  { { $as_echo "$as_me:$LINENO: error: conditional \"SYSTEM_GETOPT\" was never defined.
20591Usually this means the macro was only invoked conditionally." >&5
20592$as_echo "$as_me: error: conditional \"SYSTEM_GETOPT\" was never defined.
20593Usually this means the macro was only invoked conditionally." >&2;}
20594   { (exit 1); exit 1; }; }
20595fi
20596if test -z "${ENABLE_LARGEFILE_TRUE}" && test -z "${ENABLE_LARGEFILE_FALSE}"; then
20597  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_LARGEFILE\" was never defined.
20598Usually this means the macro was only invoked conditionally." >&5
20599$as_echo "$as_me: error: conditional \"ENABLE_LARGEFILE\" was never defined.
20600Usually this means the macro was only invoked conditionally." >&2;}
20601   { (exit 1); exit 1; }; }
20602fi
20603if test -z "${ENABLE_MONO_TRUE}" && test -z "${ENABLE_MONO_FALSE}"; then
20604  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MONO\" was never defined.
20605Usually this means the macro was only invoked conditionally." >&5
20606$as_echo "$as_me: error: conditional \"ENABLE_MONO\" was never defined.
20607Usually this means the macro was only invoked conditionally." >&2;}
20608   { (exit 1); exit 1; }; }
20609fi
20610if test -z "${ENABLE_MONO_TRUE}" && test -z "${ENABLE_MONO_FALSE}"; then
20611  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MONO\" was never defined.
20612Usually this means the macro was only invoked conditionally." >&5
20613$as_echo "$as_me: error: conditional \"ENABLE_MONO\" was never defined.
20614Usually this means the macro was only invoked conditionally." >&2;}
20615   { (exit 1); exit 1; }; }
20616fi
20617
20618: ${CONFIG_STATUS=./config.status}
20619ac_write_fail=0
20620ac_clean_files_save=$ac_clean_files
20621ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20622{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20623$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20624cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20625#! $SHELL
20626# Generated by $as_me.
20627# Run this file to recreate the current configuration.
20628# Compiler output produced by configure, useful for debugging
20629# configure, is in config.log if it exists.
20630
20631debug=false
20632ac_cs_recheck=false
20633ac_cs_silent=false
20634SHELL=\${CONFIG_SHELL-$SHELL}
20635_ACEOF
20636
20637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20638## --------------------- ##
20639## M4sh Initialization.  ##
20640## --------------------- ##
20641
20642# Be more Bourne compatible
20643DUALCASE=1; export DUALCASE # for MKS sh
20644if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20645  emulate sh
20646  NULLCMD=:
20647  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20648  # is contrary to our usage.  Disable this feature.
20649  alias -g '${1+"$@"}'='"$@"'
20650  setopt NO_GLOB_SUBST
20651else
20652  case `(set -o) 2>/dev/null` in
20653  *posix*) set -o posix ;;
20654esac
20655
20656fi
20657
20658
20659
20660
20661# PATH needs CR
20662# Avoid depending upon Character Ranges.
20663as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20664as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20665as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20666as_cr_digits='0123456789'
20667as_cr_alnum=$as_cr_Letters$as_cr_digits
20668
20669as_nl='
20670'
20671export as_nl
20672# Printing a long string crashes Solaris 7 /usr/bin/printf.
20673as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20674as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20675as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20676if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20677  as_echo='printf %s\n'
20678  as_echo_n='printf %s'
20679else
20680  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20681    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20682    as_echo_n='/usr/ucb/echo -n'
20683  else
20684    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20685    as_echo_n_body='eval
20686      arg=$1;
20687      case $arg in
20688      *"$as_nl"*)
20689	expr "X$arg" : "X\\(.*\\)$as_nl";
20690	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20691      esac;
20692      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20693    '
20694    export as_echo_n_body
20695    as_echo_n='sh -c $as_echo_n_body as_echo'
20696  fi
20697  export as_echo_body
20698  as_echo='sh -c $as_echo_body as_echo'
20699fi
20700
20701# The user is always right.
20702if test "${PATH_SEPARATOR+set}" != set; then
20703  PATH_SEPARATOR=:
20704  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20705    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20706      PATH_SEPARATOR=';'
20707  }
20708fi
20709
20710# Support unset when possible.
20711if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20712  as_unset=unset
20713else
20714  as_unset=false
20715fi
20716
20717
20718# IFS
20719# We need space, tab and new line, in precisely that order.  Quoting is
20720# there to prevent editors from complaining about space-tab.
20721# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20722# splitting by setting IFS to empty value.)
20723IFS=" ""	$as_nl"
20724
20725# Find who we are.  Look in the path if we contain no directory separator.
20726case $0 in
20727  *[\\/]* ) as_myself=$0 ;;
20728  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20729for as_dir in $PATH
20730do
20731  IFS=$as_save_IFS
20732  test -z "$as_dir" && as_dir=.
20733  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20734done
20735IFS=$as_save_IFS
20736
20737     ;;
20738esac
20739# We did not find ourselves, most probably we were run as `sh COMMAND'
20740# in which case we are not to be found in the path.
20741if test "x$as_myself" = x; then
20742  as_myself=$0
20743fi
20744if test ! -f "$as_myself"; then
20745  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20746  { (exit 1); exit 1; }
20747fi
20748
20749# Work around bugs in pre-3.0 UWIN ksh.
20750for as_var in ENV MAIL MAILPATH
20751do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20752done
20753PS1='$ '
20754PS2='> '
20755PS4='+ '
20756
20757# NLS nuisances.
20758LC_ALL=C
20759export LC_ALL
20760LANGUAGE=C
20761export LANGUAGE
20762
20763# Required to use basename.
20764if expr a : '\(a\)' >/dev/null 2>&1 &&
20765   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20766  as_expr=expr
20767else
20768  as_expr=false
20769fi
20770
20771if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20772  as_basename=basename
20773else
20774  as_basename=false
20775fi
20776
20777
20778# Name of the executable.
20779as_me=`$as_basename -- "$0" ||
20780$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20781	 X"$0" : 'X\(//\)$' \| \
20782	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20783$as_echo X/"$0" |
20784    sed '/^.*\/\([^/][^/]*\)\/*$/{
20785	    s//\1/
20786	    q
20787	  }
20788	  /^X\/\(\/\/\)$/{
20789	    s//\1/
20790	    q
20791	  }
20792	  /^X\/\(\/\).*/{
20793	    s//\1/
20794	    q
20795	  }
20796	  s/.*/./; q'`
20797
20798# CDPATH.
20799$as_unset CDPATH
20800
20801
20802
20803  as_lineno_1=$LINENO
20804  as_lineno_2=$LINENO
20805  test "x$as_lineno_1" != "x$as_lineno_2" &&
20806  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20807
20808  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20809  # uniformly replaced by the line number.  The first 'sed' inserts a
20810  # line-number line after each line using $LINENO; the second 'sed'
20811  # does the real work.  The second script uses 'N' to pair each
20812  # line-number line with the line containing $LINENO, and appends
20813  # trailing '-' during substitution so that $LINENO is not a special
20814  # case at line end.
20815  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20816  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20817  # E. McMahon (1931-1989) for sed's syntax.  :-)
20818  sed -n '
20819    p
20820    /[$]LINENO/=
20821  ' <$as_myself |
20822    sed '
20823      s/[$]LINENO.*/&-/
20824      t lineno
20825      b
20826      :lineno
20827      N
20828      :loop
20829      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20830      t loop
20831      s/-\n.*//
20832    ' >$as_me.lineno &&
20833  chmod +x "$as_me.lineno" ||
20834    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20835   { (exit 1); exit 1; }; }
20836
20837  # Don't try to exec as it changes $[0], causing all sort of problems
20838  # (the dirname of $[0] is not the place where we might find the
20839  # original and so on.  Autoconf is especially sensitive to this).
20840  . "./$as_me.lineno"
20841  # Exit status is that of the last command.
20842  exit
20843}
20844
20845
20846if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20847  as_dirname=dirname
20848else
20849  as_dirname=false
20850fi
20851
20852ECHO_C= ECHO_N= ECHO_T=
20853case `echo -n x` in
20854-n*)
20855  case `echo 'x\c'` in
20856  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20857  *)   ECHO_C='\c';;
20858  esac;;
20859*)
20860  ECHO_N='-n';;
20861esac
20862if expr a : '\(a\)' >/dev/null 2>&1 &&
20863   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20864  as_expr=expr
20865else
20866  as_expr=false
20867fi
20868
20869rm -f conf$$ conf$$.exe conf$$.file
20870if test -d conf$$.dir; then
20871  rm -f conf$$.dir/conf$$.file
20872else
20873  rm -f conf$$.dir
20874  mkdir conf$$.dir 2>/dev/null
20875fi
20876if (echo >conf$$.file) 2>/dev/null; then
20877  if ln -s conf$$.file conf$$ 2>/dev/null; then
20878    as_ln_s='ln -s'
20879    # ... but there are two gotchas:
20880    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20881    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20882    # In both cases, we have to default to `cp -p'.
20883    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20884      as_ln_s='cp -p'
20885  elif ln conf$$.file conf$$ 2>/dev/null; then
20886    as_ln_s=ln
20887  else
20888    as_ln_s='cp -p'
20889  fi
20890else
20891  as_ln_s='cp -p'
20892fi
20893rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20894rmdir conf$$.dir 2>/dev/null
20895
20896if mkdir -p . 2>/dev/null; then
20897  as_mkdir_p=:
20898else
20899  test -d ./-p && rmdir ./-p
20900  as_mkdir_p=false
20901fi
20902
20903if test -x / >/dev/null 2>&1; then
20904  as_test_x='test -x'
20905else
20906  if ls -dL / >/dev/null 2>&1; then
20907    as_ls_L_option=L
20908  else
20909    as_ls_L_option=
20910  fi
20911  as_test_x='
20912    eval sh -c '\''
20913      if test -d "$1"; then
20914	test -d "$1/.";
20915      else
20916	case $1 in
20917	-*)set "./$1";;
20918	esac;
20919	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20920	???[sx]*):;;*)false;;esac;fi
20921    '\'' sh
20922  '
20923fi
20924as_executable_p=$as_test_x
20925
20926# Sed expression to map a string onto a valid CPP name.
20927as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20928
20929# Sed expression to map a string onto a valid variable name.
20930as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20931
20932
20933exec 6>&1
20934
20935# Save the log message, to keep $[0] and so on meaningful, and to
20936# report actual input values of CONFIG_FILES etc. instead of their
20937# values after options handling.
20938ac_log="
20939This file was extended by $as_me, which was
20940generated by GNU Autoconf 2.63.  Invocation command line was
20941
20942  CONFIG_FILES    = $CONFIG_FILES
20943  CONFIG_HEADERS  = $CONFIG_HEADERS
20944  CONFIG_LINKS    = $CONFIG_LINKS
20945  CONFIG_COMMANDS = $CONFIG_COMMANDS
20946  $ $0 $@
20947
20948on `(hostname || uname -n) 2>/dev/null | sed 1q`
20949"
20950
20951_ACEOF
20952
20953case $ac_config_files in *"
20954"*) set x $ac_config_files; shift; ac_config_files=$*;;
20955esac
20956
20957case $ac_config_headers in *"
20958"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20959esac
20960
20961
20962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20963# Files that config.status was made for.
20964config_files="$ac_config_files"
20965config_headers="$ac_config_headers"
20966config_commands="$ac_config_commands"
20967
20968_ACEOF
20969
20970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20971ac_cs_usage="\
20972\`$as_me' instantiates files from templates according to the
20973current configuration.
20974
20975Usage: $0 [OPTION]... [FILE]...
20976
20977  -h, --help       print this help, then exit
20978  -V, --version    print version number and configuration settings, then exit
20979  -q, --quiet, --silent
20980                   do not print progress messages
20981  -d, --debug      don't remove temporary files
20982      --recheck    update $as_me by reconfiguring in the same conditions
20983      --file=FILE[:TEMPLATE]
20984                   instantiate the configuration file FILE
20985      --header=FILE[:TEMPLATE]
20986                   instantiate the configuration header FILE
20987
20988Configuration files:
20989$config_files
20990
20991Configuration headers:
20992$config_headers
20993
20994Configuration commands:
20995$config_commands
20996
20997Report bugs to <bug-autoconf@gnu.org>."
20998
20999_ACEOF
21000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21001ac_cs_version="\\
21002config.status
21003configured by $0, generated by GNU Autoconf 2.63,
21004  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21005
21006Copyright (C) 2008 Free Software Foundation, Inc.
21007This config.status script is free software; the Free Software Foundation
21008gives unlimited permission to copy, distribute and modify it."
21009
21010ac_pwd='$ac_pwd'
21011srcdir='$srcdir'
21012INSTALL='$INSTALL'
21013MKDIR_P='$MKDIR_P'
21014AWK='$AWK'
21015test -n "\$AWK" || AWK=awk
21016_ACEOF
21017
21018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21019# The default lists apply if the user does not specify any file.
21020ac_need_defaults=:
21021while test $# != 0
21022do
21023  case $1 in
21024  --*=*)
21025    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21026    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21027    ac_shift=:
21028    ;;
21029  *)
21030    ac_option=$1
21031    ac_optarg=$2
21032    ac_shift=shift
21033    ;;
21034  esac
21035
21036  case $ac_option in
21037  # Handling of the options.
21038  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21039    ac_cs_recheck=: ;;
21040  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21041    $as_echo "$ac_cs_version"; exit ;;
21042  --debug | --debu | --deb | --de | --d | -d )
21043    debug=: ;;
21044  --file | --fil | --fi | --f )
21045    $ac_shift
21046    case $ac_optarg in
21047    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21048    esac
21049    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21050    ac_need_defaults=false;;
21051  --header | --heade | --head | --hea )
21052    $ac_shift
21053    case $ac_optarg in
21054    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21055    esac
21056    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21057    ac_need_defaults=false;;
21058  --he | --h)
21059    # Conflict between --help and --header
21060    { $as_echo "$as_me: error: ambiguous option: $1
21061Try \`$0 --help' for more information." >&2
21062   { (exit 1); exit 1; }; };;
21063  --help | --hel | -h )
21064    $as_echo "$ac_cs_usage"; exit ;;
21065  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21066  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21067    ac_cs_silent=: ;;
21068
21069  # This is an error.
21070  -*) { $as_echo "$as_me: error: unrecognized option: $1
21071Try \`$0 --help' for more information." >&2
21072   { (exit 1); exit 1; }; } ;;
21073
21074  *) ac_config_targets="$ac_config_targets $1"
21075     ac_need_defaults=false ;;
21076
21077  esac
21078  shift
21079done
21080
21081ac_configure_extra_args=
21082
21083if $ac_cs_silent; then
21084  exec 6>/dev/null
21085  ac_configure_extra_args="$ac_configure_extra_args --silent"
21086fi
21087
21088_ACEOF
21089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21090if \$ac_cs_recheck; then
21091  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21092  shift
21093  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21094  CONFIG_SHELL='$SHELL'
21095  export CONFIG_SHELL
21096  exec "\$@"
21097fi
21098
21099_ACEOF
21100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21101exec 5>>config.log
21102{
21103  echo
21104  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21105## Running $as_me. ##
21106_ASBOX
21107  $as_echo "$ac_log"
21108} >&5
21109
21110_ACEOF
21111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21112#
21113# INIT-COMMANDS
21114#
21115AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21116
21117
21118# The HP-UX ksh and POSIX shell print the target directory to stdout
21119# if CDPATH is set.
21120(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21121
21122sed_quote_subst='$sed_quote_subst'
21123double_quote_subst='$double_quote_subst'
21124delay_variable_subst='$delay_variable_subst'
21125macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21126macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21127enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21128enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21129pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21130enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21131host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21132host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21133host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21134build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21135build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21136build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21137SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21138Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21139GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21140EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21141FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21142LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21143NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21144LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21145max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21146ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21147exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21148lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21149lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21150lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21151reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21152reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21153OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21154deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21155file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21156AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21157AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21158STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21159RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21160old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21161old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21162old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21163CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21164CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21165compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21166GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21167lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21168lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21169lt_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"`'
21170lt_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"`'
21171objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21172SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21173ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21174MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21175lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21176lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21177lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21178lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21179lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21180need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21181DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21182NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21183LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21184OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21185OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21186libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21187shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21188extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21189archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21190enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21191export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21192whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21193compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21194old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21195old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21196archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21197archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21198module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21199module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21200with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21201allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21202no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21203hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21204hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21205hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21206hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21207hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21208hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21209hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21210hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21211inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21212link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21213fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21214always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21215export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21216exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21217include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21218prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21219file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21220variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21221need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21222need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21223version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21224runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21225shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21226shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21227libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21228library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21229soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21230postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21231postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21232finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21233finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21234hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21235sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21236sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21237hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21238enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21239enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21240enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21241old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21242striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21243
21244LTCC='$LTCC'
21245LTCFLAGS='$LTCFLAGS'
21246compiler='$compiler_DEFAULT'
21247
21248# Quote evaled strings.
21249for var in SED \
21250GREP \
21251EGREP \
21252FGREP \
21253LD \
21254NM \
21255LN_S \
21256lt_SP2NL \
21257lt_NL2SP \
21258reload_flag \
21259OBJDUMP \
21260deplibs_check_method \
21261file_magic_cmd \
21262AR \
21263AR_FLAGS \
21264STRIP \
21265RANLIB \
21266CC \
21267CFLAGS \
21268compiler \
21269lt_cv_sys_global_symbol_pipe \
21270lt_cv_sys_global_symbol_to_cdecl \
21271lt_cv_sys_global_symbol_to_c_name_address \
21272lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21273SHELL \
21274ECHO \
21275lt_prog_compiler_no_builtin_flag \
21276lt_prog_compiler_wl \
21277lt_prog_compiler_pic \
21278lt_prog_compiler_static \
21279lt_cv_prog_compiler_c_o \
21280need_locks \
21281DSYMUTIL \
21282NMEDIT \
21283LIPO \
21284OTOOL \
21285OTOOL64 \
21286shrext_cmds \
21287export_dynamic_flag_spec \
21288whole_archive_flag_spec \
21289compiler_needs_object \
21290with_gnu_ld \
21291allow_undefined_flag \
21292no_undefined_flag \
21293hardcode_libdir_flag_spec \
21294hardcode_libdir_flag_spec_ld \
21295hardcode_libdir_separator \
21296fix_srcfile_path \
21297exclude_expsyms \
21298include_expsyms \
21299file_list_spec \
21300variables_saved_for_relink \
21301libname_spec \
21302library_names_spec \
21303soname_spec \
21304finish_eval \
21305old_striplib \
21306striplib; do
21307    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21308    *[\\\\\\\`\\"\\\$]*)
21309      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21310      ;;
21311    *)
21312      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21313      ;;
21314    esac
21315done
21316
21317# Double-quote double-evaled strings.
21318for var in reload_cmds \
21319old_postinstall_cmds \
21320old_postuninstall_cmds \
21321old_archive_cmds \
21322extract_expsyms_cmds \
21323old_archive_from_new_cmds \
21324old_archive_from_expsyms_cmds \
21325archive_cmds \
21326archive_expsym_cmds \
21327module_cmds \
21328module_expsym_cmds \
21329export_symbols_cmds \
21330prelink_cmds \
21331postinstall_cmds \
21332postuninstall_cmds \
21333finish_cmds \
21334sys_lib_search_path_spec \
21335sys_lib_dlsearch_path_spec; do
21336    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21337    *[\\\\\\\`\\"\\\$]*)
21338      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21339      ;;
21340    *)
21341      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21342      ;;
21343    esac
21344done
21345
21346# Fix-up fallback echo if it was mangled by the above quoting rules.
21347case \$lt_ECHO in
21348*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21349  ;;
21350esac
21351
21352ac_aux_dir='$ac_aux_dir'
21353xsi_shell='$xsi_shell'
21354lt_shell_append='$lt_shell_append'
21355
21356# See if we are running on zsh, and set the options which allow our
21357# commands through without removal of \ escapes INIT.
21358if test -n "\${ZSH_VERSION+set}" ; then
21359   setopt NO_GLOB_SUBST
21360fi
21361
21362
21363    PACKAGE='$PACKAGE'
21364    VERSION='$VERSION'
21365    TIMESTAMP='$TIMESTAMP'
21366    RM='$RM'
21367    ofile='$ofile'
21368
21369
21370
21371
21372_ACEOF
21373
21374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21375
21376# Handling of arguments.
21377for ac_config_target in $ac_config_targets
21378do
21379  case $ac_config_target in
21380    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21381    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21382    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21383    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21384    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21385    "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
21386    "docs/tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES docs/tutorial/Makefile" ;;
21387    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21388    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
21389    "gmime/Makefile") CONFIG_FILES="$CONFIG_FILES gmime/Makefile" ;;
21390    "mono/Makefile") CONFIG_FILES="$CONFIG_FILES mono/Makefile" ;;
21391    "mono/AssemblyInfo.cs") CONFIG_FILES="$CONFIG_FILES mono/AssemblyInfo.cs" ;;
21392    "mono/gmime-sharp.dll.config") CONFIG_FILES="$CONFIG_FILES mono/gmime-sharp.dll.config" ;;
21393    "mono/gmime-sharp.pc") CONFIG_FILES="$CONFIG_FILES mono/gmime-sharp.pc" ;;
21394    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21395    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21396    "gmime-config") CONFIG_FILES="$CONFIG_FILES gmime-config" ;;
21397    "gmime-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmime-2.0.pc" ;;
21398    "gmime.spec") CONFIG_FILES="$CONFIG_FILES gmime.spec" ;;
21399
21400  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21401$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21402   { (exit 1); exit 1; }; };;
21403  esac
21404done
21405
21406
21407# If the user did not use the arguments to specify the items to instantiate,
21408# then the envvar interface is used.  Set only those that are not.
21409# We use the long form for the default assignment because of an extremely
21410# bizarre bug on SunOS 4.1.3.
21411if $ac_need_defaults; then
21412  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21413  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21414  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21415fi
21416
21417# Have a temporary directory for convenience.  Make it in the build tree
21418# simply because there is no reason against having it here, and in addition,
21419# creating and moving files from /tmp can sometimes cause problems.
21420# Hook for its removal unless debugging.
21421# Note that there is a small window in which the directory will not be cleaned:
21422# after its creation but before its name has been assigned to `$tmp'.
21423$debug ||
21424{
21425  tmp=
21426  trap 'exit_status=$?
21427  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21428' 0
21429  trap '{ (exit 1); exit 1; }' 1 2 13 15
21430}
21431# Create a (secure) tmp directory for tmp files.
21432
21433{
21434  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21435  test -n "$tmp" && test -d "$tmp"
21436}  ||
21437{
21438  tmp=./conf$$-$RANDOM
21439  (umask 077 && mkdir "$tmp")
21440} ||
21441{
21442   $as_echo "$as_me: cannot create a temporary directory in ." >&2
21443   { (exit 1); exit 1; }
21444}
21445
21446# Set up the scripts for CONFIG_FILES section.
21447# No need to generate them if there are no CONFIG_FILES.
21448# This happens for instance with `./config.status config.h'.
21449if test -n "$CONFIG_FILES"; then
21450
21451
21452ac_cr='
21453'
21454ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21455if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21456  ac_cs_awk_cr='\\r'
21457else
21458  ac_cs_awk_cr=$ac_cr
21459fi
21460
21461echo 'BEGIN {' >"$tmp/subs1.awk" &&
21462_ACEOF
21463
21464
21465{
21466  echo "cat >conf$$subs.awk <<_ACEOF" &&
21467  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21468  echo "_ACEOF"
21469} >conf$$subs.sh ||
21470  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21471$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21472   { (exit 1); exit 1; }; }
21473ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21474ac_delim='%!_!# '
21475for ac_last_try in false false false false false :; do
21476  . ./conf$$subs.sh ||
21477    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21478$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21479   { (exit 1); exit 1; }; }
21480
21481  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21482  if test $ac_delim_n = $ac_delim_num; then
21483    break
21484  elif $ac_last_try; then
21485    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21486$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21487   { (exit 1); exit 1; }; }
21488  else
21489    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21490  fi
21491done
21492rm -f conf$$subs.sh
21493
21494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21495cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21496_ACEOF
21497sed -n '
21498h
21499s/^/S["/; s/!.*/"]=/
21500p
21501g
21502s/^[^!]*!//
21503:repl
21504t repl
21505s/'"$ac_delim"'$//
21506t delim
21507:nl
21508h
21509s/\(.\{148\}\).*/\1/
21510t more1
21511s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21512p
21513n
21514b repl
21515:more1
21516s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21517p
21518g
21519s/.\{148\}//
21520t nl
21521:delim
21522h
21523s/\(.\{148\}\).*/\1/
21524t more2
21525s/["\\]/\\&/g; s/^/"/; s/$/"/
21526p
21527b
21528:more2
21529s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21530p
21531g
21532s/.\{148\}//
21533t delim
21534' <conf$$subs.awk | sed '
21535/^[^""]/{
21536  N
21537  s/\n//
21538}
21539' >>$CONFIG_STATUS || ac_write_fail=1
21540rm -f conf$$subs.awk
21541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21542_ACAWK
21543cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21544  for (key in S) S_is_set[key] = 1
21545  FS = ""
21546
21547}
21548{
21549  line = $ 0
21550  nfields = split(line, field, "@")
21551  substed = 0
21552  len = length(field[1])
21553  for (i = 2; i < nfields; i++) {
21554    key = field[i]
21555    keylen = length(key)
21556    if (S_is_set[key]) {
21557      value = S[key]
21558      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21559      len += length(value) + length(field[++i])
21560      substed = 1
21561    } else
21562      len += 1 + keylen
21563  }
21564
21565  print line
21566}
21567
21568_ACAWK
21569_ACEOF
21570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21571if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21572  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21573else
21574  cat
21575fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21576  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21577$as_echo "$as_me: error: could not setup config files machinery" >&2;}
21578   { (exit 1); exit 1; }; }
21579_ACEOF
21580
21581# VPATH may cause trouble with some makes, so we remove $(srcdir),
21582# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21583# trailing colons and then remove the whole line if VPATH becomes empty
21584# (actually we leave an empty line to preserve line numbers).
21585if test "x$srcdir" = x.; then
21586  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21587s/:*\$(srcdir):*/:/
21588s/:*\${srcdir}:*/:/
21589s/:*@srcdir@:*/:/
21590s/^\([^=]*=[	 ]*\):*/\1/
21591s/:*$//
21592s/^[^=]*=[	 ]*$//
21593}'
21594fi
21595
21596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21597fi # test -n "$CONFIG_FILES"
21598
21599# Set up the scripts for CONFIG_HEADERS section.
21600# No need to generate them if there are no CONFIG_HEADERS.
21601# This happens for instance with `./config.status Makefile'.
21602if test -n "$CONFIG_HEADERS"; then
21603cat >"$tmp/defines.awk" <<\_ACAWK ||
21604BEGIN {
21605_ACEOF
21606
21607# Transform confdefs.h into an awk script `defines.awk', embedded as
21608# here-document in config.status, that substitutes the proper values into
21609# config.h.in to produce config.h.
21610
21611# Create a delimiter string that does not exist in confdefs.h, to ease
21612# handling of long lines.
21613ac_delim='%!_!# '
21614for ac_last_try in false false :; do
21615  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21616  if test -z "$ac_t"; then
21617    break
21618  elif $ac_last_try; then
21619    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21620$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21621   { (exit 1); exit 1; }; }
21622  else
21623    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21624  fi
21625done
21626
21627# For the awk script, D is an array of macro values keyed by name,
21628# likewise P contains macro parameters if any.  Preserve backslash
21629# newline sequences.
21630
21631ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21632sed -n '
21633s/.\{148\}/&'"$ac_delim"'/g
21634t rset
21635:rset
21636s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21637t def
21638d
21639:def
21640s/\\$//
21641t bsnl
21642s/["\\]/\\&/g
21643s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21644D["\1"]=" \3"/p
21645s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21646d
21647:bsnl
21648s/["\\]/\\&/g
21649s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21650D["\1"]=" \3\\\\\\n"\\/p
21651t cont
21652s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21653t cont
21654d
21655:cont
21656n
21657s/.\{148\}/&'"$ac_delim"'/g
21658t clear
21659:clear
21660s/\\$//
21661t bsnlc
21662s/["\\]/\\&/g; s/^/"/; s/$/"/p
21663d
21664:bsnlc
21665s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21666b cont
21667' <confdefs.h | sed '
21668s/'"$ac_delim"'/"\\\
21669"/g' >>$CONFIG_STATUS || ac_write_fail=1
21670
21671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21672  for (key in D) D_is_set[key] = 1
21673  FS = ""
21674}
21675/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21676  line = \$ 0
21677  split(line, arg, " ")
21678  if (arg[1] == "#") {
21679    defundef = arg[2]
21680    mac1 = arg[3]
21681  } else {
21682    defundef = substr(arg[1], 2)
21683    mac1 = arg[2]
21684  }
21685  split(mac1, mac2, "(") #)
21686  macro = mac2[1]
21687  prefix = substr(line, 1, index(line, defundef) - 1)
21688  if (D_is_set[macro]) {
21689    # Preserve the white space surrounding the "#".
21690    print prefix "define", macro P[macro] D[macro]
21691    next
21692  } else {
21693    # Replace #undef with comments.  This is necessary, for example,
21694    # in the case of _POSIX_SOURCE, which is predefined and required
21695    # on some systems where configure will not decide to define it.
21696    if (defundef == "undef") {
21697      print "/*", prefix defundef, macro, "*/"
21698      next
21699    }
21700  }
21701}
21702{ print }
21703_ACAWK
21704_ACEOF
21705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21706  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21707$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21708   { (exit 1); exit 1; }; }
21709fi # test -n "$CONFIG_HEADERS"
21710
21711
21712eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21713shift
21714for ac_tag
21715do
21716  case $ac_tag in
21717  :[FHLC]) ac_mode=$ac_tag; continue;;
21718  esac
21719  case $ac_mode$ac_tag in
21720  :[FHL]*:*);;
21721  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21722$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21723   { (exit 1); exit 1; }; };;
21724  :[FH]-) ac_tag=-:-;;
21725  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21726  esac
21727  ac_save_IFS=$IFS
21728  IFS=:
21729  set x $ac_tag
21730  IFS=$ac_save_IFS
21731  shift
21732  ac_file=$1
21733  shift
21734
21735  case $ac_mode in
21736  :L) ac_source=$1;;
21737  :[FH])
21738    ac_file_inputs=
21739    for ac_f
21740    do
21741      case $ac_f in
21742      -) ac_f="$tmp/stdin";;
21743      *) # Look for the file first in the build tree, then in the source tree
21744	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21745	 # because $ac_f cannot contain `:'.
21746	 test -f "$ac_f" ||
21747	   case $ac_f in
21748	   [\\/$]*) false;;
21749	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21750	   esac ||
21751	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21752$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21753   { (exit 1); exit 1; }; };;
21754      esac
21755      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21756      ac_file_inputs="$ac_file_inputs '$ac_f'"
21757    done
21758
21759    # Let's still pretend it is `configure' which instantiates (i.e., don't
21760    # use $as_me), people would be surprised to read:
21761    #    /* config.h.  Generated by config.status.  */
21762    configure_input='Generated from '`
21763	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21764	`' by configure.'
21765    if test x"$ac_file" != x-; then
21766      configure_input="$ac_file.  $configure_input"
21767      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21768$as_echo "$as_me: creating $ac_file" >&6;}
21769    fi
21770    # Neutralize special characters interpreted by sed in replacement strings.
21771    case $configure_input in #(
21772    *\&* | *\|* | *\\* )
21773       ac_sed_conf_input=`$as_echo "$configure_input" |
21774       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21775    *) ac_sed_conf_input=$configure_input;;
21776    esac
21777
21778    case $ac_tag in
21779    *:-:* | *:-) cat >"$tmp/stdin" \
21780      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21781$as_echo "$as_me: error: could not create $ac_file" >&2;}
21782   { (exit 1); exit 1; }; } ;;
21783    esac
21784    ;;
21785  esac
21786
21787  ac_dir=`$as_dirname -- "$ac_file" ||
21788$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21789	 X"$ac_file" : 'X\(//\)[^/]' \| \
21790	 X"$ac_file" : 'X\(//\)$' \| \
21791	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21792$as_echo X"$ac_file" |
21793    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21794	    s//\1/
21795	    q
21796	  }
21797	  /^X\(\/\/\)[^/].*/{
21798	    s//\1/
21799	    q
21800	  }
21801	  /^X\(\/\/\)$/{
21802	    s//\1/
21803	    q
21804	  }
21805	  /^X\(\/\).*/{
21806	    s//\1/
21807	    q
21808	  }
21809	  s/.*/./; q'`
21810  { as_dir="$ac_dir"
21811  case $as_dir in #(
21812  -*) as_dir=./$as_dir;;
21813  esac
21814  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21815    as_dirs=
21816    while :; do
21817      case $as_dir in #(
21818      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21819      *) as_qdir=$as_dir;;
21820      esac
21821      as_dirs="'$as_qdir' $as_dirs"
21822      as_dir=`$as_dirname -- "$as_dir" ||
21823$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21824	 X"$as_dir" : 'X\(//\)[^/]' \| \
21825	 X"$as_dir" : 'X\(//\)$' \| \
21826	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21827$as_echo X"$as_dir" |
21828    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21829	    s//\1/
21830	    q
21831	  }
21832	  /^X\(\/\/\)[^/].*/{
21833	    s//\1/
21834	    q
21835	  }
21836	  /^X\(\/\/\)$/{
21837	    s//\1/
21838	    q
21839	  }
21840	  /^X\(\/\).*/{
21841	    s//\1/
21842	    q
21843	  }
21844	  s/.*/./; q'`
21845      test -d "$as_dir" && break
21846    done
21847    test -z "$as_dirs" || eval "mkdir $as_dirs"
21848  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21849$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21850   { (exit 1); exit 1; }; }; }
21851  ac_builddir=.
21852
21853case "$ac_dir" in
21854.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21855*)
21856  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21857  # A ".." for each directory in $ac_dir_suffix.
21858  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21859  case $ac_top_builddir_sub in
21860  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21861  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21862  esac ;;
21863esac
21864ac_abs_top_builddir=$ac_pwd
21865ac_abs_builddir=$ac_pwd$ac_dir_suffix
21866# for backward compatibility:
21867ac_top_builddir=$ac_top_build_prefix
21868
21869case $srcdir in
21870  .)  # We are building in place.
21871    ac_srcdir=.
21872    ac_top_srcdir=$ac_top_builddir_sub
21873    ac_abs_top_srcdir=$ac_pwd ;;
21874  [\\/]* | ?:[\\/]* )  # Absolute name.
21875    ac_srcdir=$srcdir$ac_dir_suffix;
21876    ac_top_srcdir=$srcdir
21877    ac_abs_top_srcdir=$srcdir ;;
21878  *) # Relative name.
21879    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21880    ac_top_srcdir=$ac_top_build_prefix$srcdir
21881    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21882esac
21883ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21884
21885
21886  case $ac_mode in
21887  :F)
21888  #
21889  # CONFIG_FILE
21890  #
21891
21892  case $INSTALL in
21893  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21894  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21895  esac
21896  ac_MKDIR_P=$MKDIR_P
21897  case $MKDIR_P in
21898  [\\/$]* | ?:[\\/]* ) ;;
21899  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21900  esac
21901_ACEOF
21902
21903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21904# If the template does not know about datarootdir, expand it.
21905# FIXME: This hack should be removed a few years after 2.60.
21906ac_datarootdir_hack=; ac_datarootdir_seen=
21907
21908ac_sed_dataroot='
21909/datarootdir/ {
21910  p
21911  q
21912}
21913/@datadir@/p
21914/@docdir@/p
21915/@infodir@/p
21916/@localedir@/p
21917/@mandir@/p
21918'
21919case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21920*datarootdir*) ac_datarootdir_seen=yes;;
21921*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21922  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21923$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21924_ACEOF
21925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21926  ac_datarootdir_hack='
21927  s&@datadir@&$datadir&g
21928  s&@docdir@&$docdir&g
21929  s&@infodir@&$infodir&g
21930  s&@localedir@&$localedir&g
21931  s&@mandir@&$mandir&g
21932    s&\\\${datarootdir}&$datarootdir&g' ;;
21933esac
21934_ACEOF
21935
21936# Neutralize VPATH when `$srcdir' = `.'.
21937# Shell code in configure.ac might set extrasub.
21938# FIXME: do we really want to maintain this feature?
21939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21940ac_sed_extra="$ac_vpsub
21941$extrasub
21942_ACEOF
21943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21944:t
21945/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21946s|@configure_input@|$ac_sed_conf_input|;t t
21947s&@top_builddir@&$ac_top_builddir_sub&;t t
21948s&@top_build_prefix@&$ac_top_build_prefix&;t t
21949s&@srcdir@&$ac_srcdir&;t t
21950s&@abs_srcdir@&$ac_abs_srcdir&;t t
21951s&@top_srcdir@&$ac_top_srcdir&;t t
21952s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21953s&@builddir@&$ac_builddir&;t t
21954s&@abs_builddir@&$ac_abs_builddir&;t t
21955s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21956s&@INSTALL@&$ac_INSTALL&;t t
21957s&@MKDIR_P@&$ac_MKDIR_P&;t t
21958$ac_datarootdir_hack
21959"
21960eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21961  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21962$as_echo "$as_me: error: could not create $ac_file" >&2;}
21963   { (exit 1); exit 1; }; }
21964
21965test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21966  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21967  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21968  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21969which seems to be undefined.  Please make sure it is defined." >&5
21970$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21971which seems to be undefined.  Please make sure it is defined." >&2;}
21972
21973  rm -f "$tmp/stdin"
21974  case $ac_file in
21975  -) cat "$tmp/out" && rm -f "$tmp/out";;
21976  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21977  esac \
21978  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21979$as_echo "$as_me: error: could not create $ac_file" >&2;}
21980   { (exit 1); exit 1; }; }
21981 ;;
21982  :H)
21983  #
21984  # CONFIG_HEADER
21985  #
21986  if test x"$ac_file" != x-; then
21987    {
21988      $as_echo "/* $configure_input  */" \
21989      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21990    } >"$tmp/config.h" \
21991      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21992$as_echo "$as_me: error: could not create $ac_file" >&2;}
21993   { (exit 1); exit 1; }; }
21994    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21995      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21996$as_echo "$as_me: $ac_file is unchanged" >&6;}
21997    else
21998      rm -f "$ac_file"
21999      mv "$tmp/config.h" "$ac_file" \
22000	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22001$as_echo "$as_me: error: could not create $ac_file" >&2;}
22002   { (exit 1); exit 1; }; }
22003    fi
22004  else
22005    $as_echo "/* $configure_input  */" \
22006      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22007      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22008$as_echo "$as_me: error: could not create -" >&2;}
22009   { (exit 1); exit 1; }; }
22010  fi
22011# Compute "$ac_file"'s index in $config_headers.
22012_am_arg="$ac_file"
22013_am_stamp_count=1
22014for _am_header in $config_headers :; do
22015  case $_am_header in
22016    $_am_arg | $_am_arg:* )
22017      break ;;
22018    * )
22019      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22020  esac
22021done
22022echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22023$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22024	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22025	 X"$_am_arg" : 'X\(//\)$' \| \
22026	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22027$as_echo X"$_am_arg" |
22028    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22029	    s//\1/
22030	    q
22031	  }
22032	  /^X\(\/\/\)[^/].*/{
22033	    s//\1/
22034	    q
22035	  }
22036	  /^X\(\/\/\)$/{
22037	    s//\1/
22038	    q
22039	  }
22040	  /^X\(\/\).*/{
22041	    s//\1/
22042	    q
22043	  }
22044	  s/.*/./; q'`/stamp-h$_am_stamp_count
22045 ;;
22046
22047  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22048$as_echo "$as_me: executing $ac_file commands" >&6;}
22049 ;;
22050  esac
22051
22052
22053  case $ac_file$ac_mode in
22054    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22055  # Autoconf 2.62 quotes --file arguments for eval, but not when files
22056  # are listed without --file.  Let's play safe and only enable the eval
22057  # if we detect the quoting.
22058  case $CONFIG_FILES in
22059  *\'*) eval set x "$CONFIG_FILES" ;;
22060  *)   set x $CONFIG_FILES ;;
22061  esac
22062  shift
22063  for mf
22064  do
22065    # Strip MF so we end up with the name of the file.
22066    mf=`echo "$mf" | sed -e 's/:.*$//'`
22067    # Check whether this is an Automake generated Makefile or not.
22068    # We used to match only the files named `Makefile.in', but
22069    # some people rename them; so instead we look at the file content.
22070    # Grep'ing the first line is not enough: some people post-process
22071    # each Makefile.in and add a new line on top of each file to say so.
22072    # Grep'ing the whole file is not good either: AIX grep has a line
22073    # limit of 2048, but all sed's we know have understand at least 4000.
22074    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22075      dirpart=`$as_dirname -- "$mf" ||
22076$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22077	 X"$mf" : 'X\(//\)[^/]' \| \
22078	 X"$mf" : 'X\(//\)$' \| \
22079	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22080$as_echo X"$mf" |
22081    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22082	    s//\1/
22083	    q
22084	  }
22085	  /^X\(\/\/\)[^/].*/{
22086	    s//\1/
22087	    q
22088	  }
22089	  /^X\(\/\/\)$/{
22090	    s//\1/
22091	    q
22092	  }
22093	  /^X\(\/\).*/{
22094	    s//\1/
22095	    q
22096	  }
22097	  s/.*/./; q'`
22098    else
22099      continue
22100    fi
22101    # Extract the definition of DEPDIR, am__include, and am__quote
22102    # from the Makefile without running `make'.
22103    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22104    test -z "$DEPDIR" && continue
22105    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22106    test -z "am__include" && continue
22107    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22108    # When using ansi2knr, U may be empty or an underscore; expand it
22109    U=`sed -n 's/^U = //p' < "$mf"`
22110    # Find all dependency output files, they are included files with
22111    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22112    # simplest approach to changing $(DEPDIR) to its actual value in the
22113    # expansion.
22114    for file in `sed -n "
22115      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22116	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22117      # Make sure the directory exists.
22118      test -f "$dirpart/$file" && continue
22119      fdir=`$as_dirname -- "$file" ||
22120$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22121	 X"$file" : 'X\(//\)[^/]' \| \
22122	 X"$file" : 'X\(//\)$' \| \
22123	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22124$as_echo X"$file" |
22125    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22126	    s//\1/
22127	    q
22128	  }
22129	  /^X\(\/\/\)[^/].*/{
22130	    s//\1/
22131	    q
22132	  }
22133	  /^X\(\/\/\)$/{
22134	    s//\1/
22135	    q
22136	  }
22137	  /^X\(\/\).*/{
22138	    s//\1/
22139	    q
22140	  }
22141	  s/.*/./; q'`
22142      { as_dir=$dirpart/$fdir
22143  case $as_dir in #(
22144  -*) as_dir=./$as_dir;;
22145  esac
22146  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22147    as_dirs=
22148    while :; do
22149      case $as_dir in #(
22150      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22151      *) as_qdir=$as_dir;;
22152      esac
22153      as_dirs="'$as_qdir' $as_dirs"
22154      as_dir=`$as_dirname -- "$as_dir" ||
22155$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22156	 X"$as_dir" : 'X\(//\)[^/]' \| \
22157	 X"$as_dir" : 'X\(//\)$' \| \
22158	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22159$as_echo X"$as_dir" |
22160    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22161	    s//\1/
22162	    q
22163	  }
22164	  /^X\(\/\/\)[^/].*/{
22165	    s//\1/
22166	    q
22167	  }
22168	  /^X\(\/\/\)$/{
22169	    s//\1/
22170	    q
22171	  }
22172	  /^X\(\/\).*/{
22173	    s//\1/
22174	    q
22175	  }
22176	  s/.*/./; q'`
22177      test -d "$as_dir" && break
22178    done
22179    test -z "$as_dirs" || eval "mkdir $as_dirs"
22180  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22181$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22182   { (exit 1); exit 1; }; }; }
22183      # echo "creating $dirpart/$file"
22184      echo '# dummy' > "$dirpart/$file"
22185    done
22186  done
22187}
22188 ;;
22189    "libtool":C)
22190
22191    # See if we are running on zsh, and set the options which allow our
22192    # commands through without removal of \ escapes.
22193    if test -n "${ZSH_VERSION+set}" ; then
22194      setopt NO_GLOB_SUBST
22195    fi
22196
22197    cfgfile="${ofile}T"
22198    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22199    $RM "$cfgfile"
22200
22201    cat <<_LT_EOF >> "$cfgfile"
22202#! $SHELL
22203
22204# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22205# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22206# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22207# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22208#
22209#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22210#                 2006, 2007, 2008 Free Software Foundation, Inc.
22211#   Written by Gordon Matzigkeit, 1996
22212#
22213#   This file is part of GNU Libtool.
22214#
22215# GNU Libtool is free software; you can redistribute it and/or
22216# modify it under the terms of the GNU General Public License as
22217# published by the Free Software Foundation; either version 2 of
22218# the License, or (at your option) any later version.
22219#
22220# As a special exception to the GNU General Public License,
22221# if you distribute this file as part of a program or library that
22222# is built using GNU Libtool, you may include this file under the
22223# same distribution terms that you use for the rest of that program.
22224#
22225# GNU Libtool is distributed in the hope that it will be useful,
22226# but WITHOUT ANY WARRANTY; without even the implied warranty of
22227# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22228# GNU General Public License for more details.
22229#
22230# You should have received a copy of the GNU General Public License
22231# along with GNU Libtool; see the file COPYING.  If not, a copy
22232# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22233# obtained by writing to the Free Software Foundation, Inc.,
22234# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22235
22236
22237# The names of the tagged configurations supported by this script.
22238available_tags=""
22239
22240# ### BEGIN LIBTOOL CONFIG
22241
22242# Which release of libtool.m4 was used?
22243macro_version=$macro_version
22244macro_revision=$macro_revision
22245
22246# Whether or not to build shared libraries.
22247build_libtool_libs=$enable_shared
22248
22249# Whether or not to build static libraries.
22250build_old_libs=$enable_static
22251
22252# What type of objects to build.
22253pic_mode=$pic_mode
22254
22255# Whether or not to optimize for fast installation.
22256fast_install=$enable_fast_install
22257
22258# The host system.
22259host_alias=$host_alias
22260host=$host
22261host_os=$host_os
22262
22263# The build system.
22264build_alias=$build_alias
22265build=$build
22266build_os=$build_os
22267
22268# A sed program that does not truncate output.
22269SED=$lt_SED
22270
22271# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22272Xsed="\$SED -e 1s/^X//"
22273
22274# A grep program that handles long lines.
22275GREP=$lt_GREP
22276
22277# An ERE matcher.
22278EGREP=$lt_EGREP
22279
22280# A literal string matcher.
22281FGREP=$lt_FGREP
22282
22283# A BSD- or MS-compatible name lister.
22284NM=$lt_NM
22285
22286# Whether we need soft or hard links.
22287LN_S=$lt_LN_S
22288
22289# What is the maximum length of a command?
22290max_cmd_len=$max_cmd_len
22291
22292# Object file suffix (normally "o").
22293objext=$ac_objext
22294
22295# Executable file suffix (normally "").
22296exeext=$exeext
22297
22298# whether the shell understands "unset".
22299lt_unset=$lt_unset
22300
22301# turn spaces into newlines.
22302SP2NL=$lt_lt_SP2NL
22303
22304# turn newlines into spaces.
22305NL2SP=$lt_lt_NL2SP
22306
22307# How to create reloadable object files.
22308reload_flag=$lt_reload_flag
22309reload_cmds=$lt_reload_cmds
22310
22311# An object symbol dumper.
22312OBJDUMP=$lt_OBJDUMP
22313
22314# Method to check whether dependent libraries are shared objects.
22315deplibs_check_method=$lt_deplibs_check_method
22316
22317# Command to use when deplibs_check_method == "file_magic".
22318file_magic_cmd=$lt_file_magic_cmd
22319
22320# The archiver.
22321AR=$lt_AR
22322AR_FLAGS=$lt_AR_FLAGS
22323
22324# A symbol stripping program.
22325STRIP=$lt_STRIP
22326
22327# Commands used to install an old-style archive.
22328RANLIB=$lt_RANLIB
22329old_postinstall_cmds=$lt_old_postinstall_cmds
22330old_postuninstall_cmds=$lt_old_postuninstall_cmds
22331
22332# A C compiler.
22333LTCC=$lt_CC
22334
22335# LTCC compiler flags.
22336LTCFLAGS=$lt_CFLAGS
22337
22338# Take the output of nm and produce a listing of raw symbols and C names.
22339global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22340
22341# Transform the output of nm in a proper C declaration.
22342global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22343
22344# Transform the output of nm in a C name address pair.
22345global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22346
22347# Transform the output of nm in a C name address pair when lib prefix is needed.
22348global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22349
22350# The name of the directory that contains temporary libtool files.
22351objdir=$objdir
22352
22353# Shell to use when invoking shell scripts.
22354SHELL=$lt_SHELL
22355
22356# An echo program that does not interpret backslashes.
22357ECHO=$lt_ECHO
22358
22359# Used to examine libraries when file_magic_cmd begins with "file".
22360MAGIC_CMD=$MAGIC_CMD
22361
22362# Must we lock files when doing compilation?
22363need_locks=$lt_need_locks
22364
22365# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22366DSYMUTIL=$lt_DSYMUTIL
22367
22368# Tool to change global to local symbols on Mac OS X.
22369NMEDIT=$lt_NMEDIT
22370
22371# Tool to manipulate fat objects and archives on Mac OS X.
22372LIPO=$lt_LIPO
22373
22374# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22375OTOOL=$lt_OTOOL
22376
22377# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22378OTOOL64=$lt_OTOOL64
22379
22380# Old archive suffix (normally "a").
22381libext=$libext
22382
22383# Shared library suffix (normally ".so").
22384shrext_cmds=$lt_shrext_cmds
22385
22386# The commands to extract the exported symbol list from a shared archive.
22387extract_expsyms_cmds=$lt_extract_expsyms_cmds
22388
22389# Variables whose values should be saved in libtool wrapper scripts and
22390# restored at link time.
22391variables_saved_for_relink=$lt_variables_saved_for_relink
22392
22393# Do we need the "lib" prefix for modules?
22394need_lib_prefix=$need_lib_prefix
22395
22396# Do we need a version for libraries?
22397need_version=$need_version
22398
22399# Library versioning type.
22400version_type=$version_type
22401
22402# Shared library runtime path variable.
22403runpath_var=$runpath_var
22404
22405# Shared library path variable.
22406shlibpath_var=$shlibpath_var
22407
22408# Is shlibpath searched before the hard-coded library search path?
22409shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22410
22411# Format of library name prefix.
22412libname_spec=$lt_libname_spec
22413
22414# List of archive names.  First name is the real one, the rest are links.
22415# The last name is the one that the linker finds with -lNAME
22416library_names_spec=$lt_library_names_spec
22417
22418# The coded name of the library, if different from the real name.
22419soname_spec=$lt_soname_spec
22420
22421# Command to use after installation of a shared archive.
22422postinstall_cmds=$lt_postinstall_cmds
22423
22424# Command to use after uninstallation of a shared archive.
22425postuninstall_cmds=$lt_postuninstall_cmds
22426
22427# Commands used to finish a libtool library installation in a directory.
22428finish_cmds=$lt_finish_cmds
22429
22430# As "finish_cmds", except a single script fragment to be evaled but
22431# not shown.
22432finish_eval=$lt_finish_eval
22433
22434# Whether we should hardcode library paths into libraries.
22435hardcode_into_libs=$hardcode_into_libs
22436
22437# Compile-time system search path for libraries.
22438sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22439
22440# Run-time system search path for libraries.
22441sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22442
22443# Whether dlopen is supported.
22444dlopen_support=$enable_dlopen
22445
22446# Whether dlopen of programs is supported.
22447dlopen_self=$enable_dlopen_self
22448
22449# Whether dlopen of statically linked programs is supported.
22450dlopen_self_static=$enable_dlopen_self_static
22451
22452# Commands to strip libraries.
22453old_striplib=$lt_old_striplib
22454striplib=$lt_striplib
22455
22456
22457# The linker used to build libraries.
22458LD=$lt_LD
22459
22460# Commands used to build an old-style archive.
22461old_archive_cmds=$lt_old_archive_cmds
22462
22463# A language specific compiler.
22464CC=$lt_compiler
22465
22466# Is the compiler the GNU compiler?
22467with_gcc=$GCC
22468
22469# Compiler flag to turn off builtin functions.
22470no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22471
22472# How to pass a linker flag through the compiler.
22473wl=$lt_lt_prog_compiler_wl
22474
22475# Additional compiler flags for building library objects.
22476pic_flag=$lt_lt_prog_compiler_pic
22477
22478# Compiler flag to prevent dynamic linking.
22479link_static_flag=$lt_lt_prog_compiler_static
22480
22481# Does compiler simultaneously support -c and -o options?
22482compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22483
22484# Whether or not to add -lc for building shared libraries.
22485build_libtool_need_lc=$archive_cmds_need_lc
22486
22487# Whether or not to disallow shared libs when runtime libs are static.
22488allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22489
22490# Compiler flag to allow reflexive dlopens.
22491export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22492
22493# Compiler flag to generate shared objects directly from archives.
22494whole_archive_flag_spec=$lt_whole_archive_flag_spec
22495
22496# Whether the compiler copes with passing no objects directly.
22497compiler_needs_object=$lt_compiler_needs_object
22498
22499# Create an old-style archive from a shared archive.
22500old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22501
22502# Create a temporary old-style archive to link instead of a shared archive.
22503old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22504
22505# Commands used to build a shared archive.
22506archive_cmds=$lt_archive_cmds
22507archive_expsym_cmds=$lt_archive_expsym_cmds
22508
22509# Commands used to build a loadable module if different from building
22510# a shared archive.
22511module_cmds=$lt_module_cmds
22512module_expsym_cmds=$lt_module_expsym_cmds
22513
22514# Whether we are building with GNU ld or not.
22515with_gnu_ld=$lt_with_gnu_ld
22516
22517# Flag that allows shared libraries with undefined symbols to be built.
22518allow_undefined_flag=$lt_allow_undefined_flag
22519
22520# Flag that enforces no undefined symbols.
22521no_undefined_flag=$lt_no_undefined_flag
22522
22523# Flag to hardcode \$libdir into a binary during linking.
22524# This must work even if \$libdir does not exist
22525hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22526
22527# If ld is used when linking, flag to hardcode \$libdir into a binary
22528# during linking.  This must work even if \$libdir does not exist.
22529hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22530
22531# Whether we need a single "-rpath" flag with a separated argument.
22532hardcode_libdir_separator=$lt_hardcode_libdir_separator
22533
22534# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22535# DIR into the resulting binary.
22536hardcode_direct=$hardcode_direct
22537
22538# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22539# DIR into the resulting binary and the resulting library dependency is
22540# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22541# library is relocated.
22542hardcode_direct_absolute=$hardcode_direct_absolute
22543
22544# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22545# into the resulting binary.
22546hardcode_minus_L=$hardcode_minus_L
22547
22548# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22549# into the resulting binary.
22550hardcode_shlibpath_var=$hardcode_shlibpath_var
22551
22552# Set to "yes" if building a shared library automatically hardcodes DIR
22553# into the library and all subsequent libraries and executables linked
22554# against it.
22555hardcode_automatic=$hardcode_automatic
22556
22557# Set to yes if linker adds runtime paths of dependent libraries
22558# to runtime path list.
22559inherit_rpath=$inherit_rpath
22560
22561# Whether libtool must link a program against all its dependency libraries.
22562link_all_deplibs=$link_all_deplibs
22563
22564# Fix the shell variable \$srcfile for the compiler.
22565fix_srcfile_path=$lt_fix_srcfile_path
22566
22567# Set to "yes" if exported symbols are required.
22568always_export_symbols=$always_export_symbols
22569
22570# The commands to list exported symbols.
22571export_symbols_cmds=$lt_export_symbols_cmds
22572
22573# Symbols that should not be listed in the preloaded symbols.
22574exclude_expsyms=$lt_exclude_expsyms
22575
22576# Symbols that must always be exported.
22577include_expsyms=$lt_include_expsyms
22578
22579# Commands necessary for linking programs (against libraries) with templates.
22580prelink_cmds=$lt_prelink_cmds
22581
22582# Specify filename containing input files.
22583file_list_spec=$lt_file_list_spec
22584
22585# How to hardcode a shared library path into an executable.
22586hardcode_action=$hardcode_action
22587
22588# ### END LIBTOOL CONFIG
22589
22590_LT_EOF
22591
22592  case $host_os in
22593  aix3*)
22594    cat <<\_LT_EOF >> "$cfgfile"
22595# AIX sometimes has problems with the GCC collect2 program.  For some
22596# reason, if we set the COLLECT_NAMES environment variable, the problems
22597# vanish in a puff of smoke.
22598if test "X${COLLECT_NAMES+set}" != Xset; then
22599  COLLECT_NAMES=
22600  export COLLECT_NAMES
22601fi
22602_LT_EOF
22603    ;;
22604  esac
22605
22606
22607ltmain="$ac_aux_dir/ltmain.sh"
22608
22609
22610  # We use sed instead of cat because bash on DJGPP gets confused if
22611  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22612  # text mode, it properly converts lines to CR/LF.  This bash problem
22613  # is reportedly fixed, but why not run on old versions too?
22614  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22615    || (rm -f "$cfgfile"; exit 1)
22616
22617  case $xsi_shell in
22618  yes)
22619    cat << \_LT_EOF >> "$cfgfile"
22620
22621# func_dirname file append nondir_replacement
22622# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22623# otherwise set result to NONDIR_REPLACEMENT.
22624func_dirname ()
22625{
22626  case ${1} in
22627    */*) func_dirname_result="${1%/*}${2}" ;;
22628    *  ) func_dirname_result="${3}" ;;
22629  esac
22630}
22631
22632# func_basename file
22633func_basename ()
22634{
22635  func_basename_result="${1##*/}"
22636}
22637
22638# func_dirname_and_basename file append nondir_replacement
22639# perform func_basename and func_dirname in a single function
22640# call:
22641#   dirname:  Compute the dirname of FILE.  If nonempty,
22642#             add APPEND to the result, otherwise set result
22643#             to NONDIR_REPLACEMENT.
22644#             value returned in "$func_dirname_result"
22645#   basename: Compute filename of FILE.
22646#             value retuned in "$func_basename_result"
22647# Implementation must be kept synchronized with func_dirname
22648# and func_basename. For efficiency, we do not delegate to
22649# those functions but instead duplicate the functionality here.
22650func_dirname_and_basename ()
22651{
22652  case ${1} in
22653    */*) func_dirname_result="${1%/*}${2}" ;;
22654    *  ) func_dirname_result="${3}" ;;
22655  esac
22656  func_basename_result="${1##*/}"
22657}
22658
22659# func_stripname prefix suffix name
22660# strip PREFIX and SUFFIX off of NAME.
22661# PREFIX and SUFFIX must not contain globbing or regex special
22662# characters, hashes, percent signs, but SUFFIX may contain a leading
22663# dot (in which case that matches only a dot).
22664func_stripname ()
22665{
22666  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22667  # positional parameters, so assign one to ordinary parameter first.
22668  func_stripname_result=${3}
22669  func_stripname_result=${func_stripname_result#"${1}"}
22670  func_stripname_result=${func_stripname_result%"${2}"}
22671}
22672
22673# func_opt_split
22674func_opt_split ()
22675{
22676  func_opt_split_opt=${1%%=*}
22677  func_opt_split_arg=${1#*=}
22678}
22679
22680# func_lo2o object
22681func_lo2o ()
22682{
22683  case ${1} in
22684    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22685    *)    func_lo2o_result=${1} ;;
22686  esac
22687}
22688
22689# func_xform libobj-or-source
22690func_xform ()
22691{
22692  func_xform_result=${1%.*}.lo
22693}
22694
22695# func_arith arithmetic-term...
22696func_arith ()
22697{
22698  func_arith_result=$(( $* ))
22699}
22700
22701# func_len string
22702# STRING may not start with a hyphen.
22703func_len ()
22704{
22705  func_len_result=${#1}
22706}
22707
22708_LT_EOF
22709    ;;
22710  *) # Bourne compatible functions.
22711    cat << \_LT_EOF >> "$cfgfile"
22712
22713# func_dirname file append nondir_replacement
22714# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22715# otherwise set result to NONDIR_REPLACEMENT.
22716func_dirname ()
22717{
22718  # Extract subdirectory from the argument.
22719  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22720  if test "X$func_dirname_result" = "X${1}"; then
22721    func_dirname_result="${3}"
22722  else
22723    func_dirname_result="$func_dirname_result${2}"
22724  fi
22725}
22726
22727# func_basename file
22728func_basename ()
22729{
22730  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22731}
22732
22733
22734# func_stripname prefix suffix name
22735# strip PREFIX and SUFFIX off of NAME.
22736# PREFIX and SUFFIX must not contain globbing or regex special
22737# characters, hashes, percent signs, but SUFFIX may contain a leading
22738# dot (in which case that matches only a dot).
22739# func_strip_suffix prefix name
22740func_stripname ()
22741{
22742  case ${2} in
22743    .*) func_stripname_result=`$ECHO "X${3}" \
22744           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22745    *)  func_stripname_result=`$ECHO "X${3}" \
22746           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22747  esac
22748}
22749
22750# sed scripts:
22751my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22752my_sed_long_arg='1s/^-[^=]*=//'
22753
22754# func_opt_split
22755func_opt_split ()
22756{
22757  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22758  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22759}
22760
22761# func_lo2o object
22762func_lo2o ()
22763{
22764  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22765}
22766
22767# func_xform libobj-or-source
22768func_xform ()
22769{
22770  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22771}
22772
22773# func_arith arithmetic-term...
22774func_arith ()
22775{
22776  func_arith_result=`expr "$@"`
22777}
22778
22779# func_len string
22780# STRING may not start with a hyphen.
22781func_len ()
22782{
22783  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22784}
22785
22786_LT_EOF
22787esac
22788
22789case $lt_shell_append in
22790  yes)
22791    cat << \_LT_EOF >> "$cfgfile"
22792
22793# func_append var value
22794# Append VALUE to the end of shell variable VAR.
22795func_append ()
22796{
22797  eval "$1+=\$2"
22798}
22799_LT_EOF
22800    ;;
22801  *)
22802    cat << \_LT_EOF >> "$cfgfile"
22803
22804# func_append var value
22805# Append VALUE to the end of shell variable VAR.
22806func_append ()
22807{
22808  eval "$1=\$$1\$2"
22809}
22810
22811_LT_EOF
22812    ;;
22813  esac
22814
22815
22816  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22817    || (rm -f "$cfgfile"; exit 1)
22818
22819  mv -f "$cfgfile" "$ofile" ||
22820    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22821  chmod +x "$ofile"
22822
22823 ;;
22824
22825  esac
22826done # for ac_tag
22827
22828
22829{ (exit 0); exit 0; }
22830_ACEOF
22831chmod +x $CONFIG_STATUS
22832ac_clean_files=$ac_clean_files_save
22833
22834test $ac_write_fail = 0 ||
22835  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22836$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22837   { (exit 1); exit 1; }; }
22838
22839
22840# configure is writing to config.log, and then calls config.status.
22841# config.status does its own redirection, appending to config.log.
22842# Unfortunately, on DOS this fails, as config.log is still kept open
22843# by configure, so config.status won't be able to write to it; its
22844# output is simply discarded.  So we exec the FD to /dev/null,
22845# effectively closing config.log, so it can be properly (re)opened and
22846# appended to by config.status.  When coming back to configure, we
22847# need to make the FD available again.
22848if test "$no_create" != yes; then
22849  ac_cs_success=:
22850  ac_config_status_args=
22851  test "$silent" = yes &&
22852    ac_config_status_args="$ac_config_status_args --quiet"
22853  exec 5>/dev/null
22854  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22855  exec 5>>config.log
22856  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22857  # would make configure fail if this is the last instruction.
22858  $ac_cs_success || { (exit 1); exit 1; }
22859fi
22860if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22861  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22862$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22863fi
22864
22865
22866echo "
22867
22868Configuration:
22869
22870  Source code location: ${srcdir}
22871  Install prefix:       ${prefix}
22872  Compiler:             ${CC}
22873
22874  Profiling enabled:    ${enable_profiling}
22875
22876  Large file support:   ${enable_largefile}
22877  rfc2047 workarounds:  ${enable_rfc2047_workarounds}
22878  Console warnings:     ${enable_warnings}
22879
22880  Mono bindings:        ${enable_mono}
22881"
22882
22883if test "$enable_largefile" = "yes"; then
22884   echo "
22885WARNING: You have elected to enable large file support (>2GB).
22886This may break API/ABI compatability with previous installations
22887of GMime which could cause applications using GMime on your
22888system to break in mysterious ways. It is not recommended that
22889you enable this feature unless you really know what you are
22890doing.
22891"
22892fi
22893