1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for mydns 1.2.8.31.
4#
5# Report bugs to <http://bugs.mydns-ng.com/>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15#
16# Portions of this script are Copyright 2002-2005 Don Moore  2007-2009 Howard Wilkinson
17## -------------------- ##
18## M4sh Initialization. ##
19## -------------------- ##
20
21# Be more Bourne compatible
22DUALCASE=1; export DUALCASE # for MKS sh
23if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24  emulate sh
25  NULLCMD=:
26  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27  # is contrary to our usage.  Disable this feature.
28  alias -g '${1+"$@"}'='"$@"'
29  setopt NO_GLOB_SUBST
30else
31  case `(set -o) 2>/dev/null` in #(
32  *posix*) :
33    set -o posix ;; #(
34  *) :
35     ;;
36esac
37fi
38
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
47# Prefer a ksh shell builtin over an external printf program on Solaris,
48# but without wasting forks for bash or zsh.
49if test -z "$BASH_VERSION$ZSH_VERSION" \
50    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='print -r --'
52  as_echo_n='print -rn --'
53elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54  as_echo='printf %s\n'
55  as_echo_n='printf %s'
56else
57  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59    as_echo_n='/usr/ucb/echo -n'
60  else
61    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62    as_echo_n_body='eval
63      arg=$1;
64      case $arg in #(
65      *"$as_nl"*)
66	expr "X$arg" : "X\\(.*\\)$as_nl";
67	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68      esac;
69      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70    '
71    export as_echo_n_body
72    as_echo_n='sh -c $as_echo_n_body as_echo'
73  fi
74  export as_echo_body
75  as_echo='sh -c $as_echo_body as_echo'
76fi
77
78# The user is always right.
79if test "${PATH_SEPARATOR+set}" != set; then
80  PATH_SEPARATOR=:
81  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83      PATH_SEPARATOR=';'
84  }
85fi
86
87
88# IFS
89# We need space, tab and new line, in precisely that order.  Quoting is
90# there to prevent editors from complaining about space-tab.
91# (If _AS_PATH_WALK were called with IFS unset, it would disable word
92# splitting by setting IFS to empty value.)
93IFS=" ""	$as_nl"
94
95# Find who we are.  Look in the path if we contain no directory separator.
96case $0 in #((
97  *[\\/]* ) as_myself=$0 ;;
98  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99for as_dir in $PATH
100do
101  IFS=$as_save_IFS
102  test -z "$as_dir" && as_dir=.
103    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104  done
105IFS=$as_save_IFS
106
107     ;;
108esac
109# We did not find ourselves, most probably we were run as `sh COMMAND'
110# in which case we are not to be found in the path.
111if test "x$as_myself" = x; then
112  as_myself=$0
113fi
114if test ! -f "$as_myself"; then
115  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116  exit 1
117fi
118
119# Unset variables that we do not need and which cause bugs (e.g. in
120# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121# suppresses any "Segmentation fault" message there.  '((' could
122# trigger a bug in pdksh 5.2.14.
123for as_var in BASH_ENV ENV MAIL MAILPATH
124do eval test x\${$as_var+set} = xset \
125  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# CDPATH.
138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140if test "x$CONFIG_SHELL" = x; then
141  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142  emulate sh
143  NULLCMD=:
144  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145  # is contrary to our usage.  Disable this feature.
146  alias -g '\${1+\"\$@\"}'='\"\$@\"'
147  setopt NO_GLOB_SUBST
148else
149  case \`(set -o) 2>/dev/null\` in #(
150  *posix*) :
151    set -o posix ;; #(
152  *) :
153     ;;
154esac
155fi
156"
157  as_required="as_fn_return () { (exit \$1); }
158as_fn_success () { as_fn_return 0; }
159as_fn_failure () { as_fn_return 1; }
160as_fn_ret_success () { return 0; }
161as_fn_ret_failure () { return 1; }
162
163exitcode=0
164as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170else
171  exitcode=1; echo positional parameters were not saved.
172fi
173test x\$exitcode = x0 || exit 1"
174  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178test \$(( 1 + 1 )) = 2 || exit 1"
179  if (eval "$as_required") 2>/dev/null; then :
180  as_have_required=yes
181else
182  as_have_required=no
183fi
184  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186else
187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188as_found=false
189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190do
191  IFS=$as_save_IFS
192  test -z "$as_dir" && as_dir=.
193  as_found=:
194  case $as_dir in #(
195	 /*)
196	   for as_base in sh bash ksh sh5; do
197	     # Try only shells that exist, to save several forks.
198	     as_shell=$as_dir/$as_base
199	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  CONFIG_SHELL=$as_shell as_have_required=yes
202		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  break 2
204fi
205fi
206	   done;;
207       esac
208  as_found=false
209done
210$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212  CONFIG_SHELL=$SHELL as_have_required=yes
213fi; }
214IFS=$as_save_IFS
215
216
217      if test "x$CONFIG_SHELL" != x; then :
218  # We cannot yet assume a decent shell, so we have to provide a
219	# neutralization value for shells without unset; and this also
220	# works around shells that cannot unset nonexistent variables.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226fi
227
228    if test x$as_have_required = xno; then :
229  $as_echo "$0: This script requires a shell more modern than all"
230  $as_echo "$0: the shells that I found on your system."
231  if test x${ZSH_VERSION+set} = xset ; then
232    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
233    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234  else
235    $as_echo "$0: Please tell bug-autoconf@gnu.org and
236$0: http://bugs.mydns-ng.com/ about your system, including
237$0: any error possibly output before this message. Then
238$0: install a modern shell, or manually run the script
239$0: under such a shell if you do have one."
240  fi
241  exit 1
242fi
243fi
244fi
245SHELL=${CONFIG_SHELL-/bin/sh}
246export SHELL
247# Unset more variables known to interfere with behavior of common tools.
248CLICOLOR_FORCE= GREP_OPTIONS=
249unset CLICOLOR_FORCE GREP_OPTIONS
250
251## --------------------- ##
252## M4sh Shell Functions. ##
253## --------------------- ##
254# as_fn_unset VAR
255# ---------------
256# Portably unset VAR.
257as_fn_unset ()
258{
259  { eval $1=; unset $1;}
260}
261as_unset=as_fn_unset
262
263# as_fn_set_status STATUS
264# -----------------------
265# Set $? to STATUS, without forking.
266as_fn_set_status ()
267{
268  return $1
269} # as_fn_set_status
270
271# as_fn_exit STATUS
272# -----------------
273# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
274as_fn_exit ()
275{
276  set +e
277  as_fn_set_status $1
278  exit $1
279} # as_fn_exit
280
281# as_fn_mkdir_p
282# -------------
283# Create "$as_dir" as a directory, including parents if necessary.
284as_fn_mkdir_p ()
285{
286
287  case $as_dir in #(
288  -*) as_dir=./$as_dir;;
289  esac
290  test -d "$as_dir" || eval $as_mkdir_p || {
291    as_dirs=
292    while :; do
293      case $as_dir in #(
294      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295      *) as_qdir=$as_dir;;
296      esac
297      as_dirs="'$as_qdir' $as_dirs"
298      as_dir=`$as_dirname -- "$as_dir" ||
299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
300	 X"$as_dir" : 'X\(//\)[^/]' \| \
301	 X"$as_dir" : 'X\(//\)$' \| \
302	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
303$as_echo X"$as_dir" |
304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
305	    s//\1/
306	    q
307	  }
308	  /^X\(\/\/\)[^/].*/{
309	    s//\1/
310	    q
311	  }
312	  /^X\(\/\/\)$/{
313	    s//\1/
314	    q
315	  }
316	  /^X\(\/\).*/{
317	    s//\1/
318	    q
319	  }
320	  s/.*/./; q'`
321      test -d "$as_dir" && break
322    done
323    test -z "$as_dirs" || eval "mkdir $as_dirs"
324  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325
326
327} # as_fn_mkdir_p
328# as_fn_append VAR VALUE
329# ----------------------
330# Append the text in VALUE to the end of the definition contained in VAR. Take
331# advantage of any shell optimizations that allow amortized linear growth over
332# repeated appends, instead of the typical quadratic growth present in naive
333# implementations.
334if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
335  eval 'as_fn_append ()
336  {
337    eval $1+=\$2
338  }'
339else
340  as_fn_append ()
341  {
342    eval $1=\$$1\$2
343  }
344fi # as_fn_append
345
346# as_fn_arith ARG...
347# ------------------
348# Perform arithmetic evaluation on the ARGs, and store the result in the
349# global $as_val. Take advantage of shells that can avoid forks. The arguments
350# must be portable across $(()) and expr.
351if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352  eval 'as_fn_arith ()
353  {
354    as_val=$(( $* ))
355  }'
356else
357  as_fn_arith ()
358  {
359    as_val=`expr "$@" || test $? -eq 1`
360  }
361fi # as_fn_arith
362
363
364# as_fn_error ERROR [LINENO LOG_FD]
365# ---------------------------------
366# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
367# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
368# script with status $?, using 1 if that was 0.
369as_fn_error ()
370{
371  as_status=$?; test $as_status -eq 0 && as_status=1
372  if test "$3"; then
373    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
374    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
375  fi
376  $as_echo "$as_me: error: $1" >&2
377  as_fn_exit $as_status
378} # as_fn_error
379
380if expr a : '\(a\)' >/dev/null 2>&1 &&
381   test "X`expr 00001 : '.*\(...\)'`" = X001; then
382  as_expr=expr
383else
384  as_expr=false
385fi
386
387if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388  as_basename=basename
389else
390  as_basename=false
391fi
392
393if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394  as_dirname=dirname
395else
396  as_dirname=false
397fi
398
399as_me=`$as_basename -- "$0" ||
400$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
401	 X"$0" : 'X\(//\)$' \| \
402	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403$as_echo X/"$0" |
404    sed '/^.*\/\([^/][^/]*\)\/*$/{
405	    s//\1/
406	    q
407	  }
408	  /^X\/\(\/\/\)$/{
409	    s//\1/
410	    q
411	  }
412	  /^X\/\(\/\).*/{
413	    s//\1/
414	    q
415	  }
416	  s/.*/./; q'`
417
418# Avoid depending upon Character Ranges.
419as_cr_letters='abcdefghijklmnopqrstuvwxyz'
420as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
421as_cr_Letters=$as_cr_letters$as_cr_LETTERS
422as_cr_digits='0123456789'
423as_cr_alnum=$as_cr_Letters$as_cr_digits
424
425
426  as_lineno_1=$LINENO as_lineno_1a=$LINENO
427  as_lineno_2=$LINENO as_lineno_2a=$LINENO
428  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
429  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
430  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
431  sed -n '
432    p
433    /[$]LINENO/=
434  ' <$as_myself |
435    sed '
436      s/[$]LINENO.*/&-/
437      t lineno
438      b
439      :lineno
440      N
441      :loop
442      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
443      t loop
444      s/-\n.*//
445    ' >$as_me.lineno &&
446  chmod +x "$as_me.lineno" ||
447    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
448
449  # Don't try to exec as it changes $[0], causing all sort of problems
450  # (the dirname of $[0] is not the place where we might find the
451  # original and so on.  Autoconf is especially sensitive to this).
452  . "./$as_me.lineno"
453  # Exit status is that of the last command.
454  exit
455}
456
457ECHO_C= ECHO_N= ECHO_T=
458case `echo -n x` in #(((((
459-n*)
460  case `echo 'xy\c'` in
461  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
462  xy)  ECHO_C='\c';;
463  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
464       ECHO_T='	';;
465  esac;;
466*)
467  ECHO_N='-n';;
468esac
469
470rm -f conf$$ conf$$.exe conf$$.file
471if test -d conf$$.dir; then
472  rm -f conf$$.dir/conf$$.file
473else
474  rm -f conf$$.dir
475  mkdir conf$$.dir 2>/dev/null
476fi
477if (echo >conf$$.file) 2>/dev/null; then
478  if ln -s conf$$.file conf$$ 2>/dev/null; then
479    as_ln_s='ln -s'
480    # ... but there are two gotchas:
481    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
482    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
483    # In both cases, we have to default to `cp -p'.
484    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485      as_ln_s='cp -p'
486  elif ln conf$$.file conf$$ 2>/dev/null; then
487    as_ln_s=ln
488  else
489    as_ln_s='cp -p'
490  fi
491else
492  as_ln_s='cp -p'
493fi
494rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
495rmdir conf$$.dir 2>/dev/null
496
497if mkdir -p . 2>/dev/null; then
498  as_mkdir_p='mkdir -p "$as_dir"'
499else
500  test -d ./-p && rmdir ./-p
501  as_mkdir_p=false
502fi
503
504if test -x / >/dev/null 2>&1; then
505  as_test_x='test -x'
506else
507  if ls -dL / >/dev/null 2>&1; then
508    as_ls_L_option=L
509  else
510    as_ls_L_option=
511  fi
512  as_test_x='
513    eval sh -c '\''
514      if test -d "$1"; then
515	test -d "$1/.";
516      else
517	case $1 in #(
518	-*)set "./$1";;
519	esac;
520	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
521	???[sx]*):;;*)false;;esac;fi
522    '\'' sh
523  '
524fi
525as_executable_p=$as_test_x
526
527# Sed expression to map a string onto a valid CPP name.
528as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529
530# Sed expression to map a string onto a valid variable name.
531as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532
533
534
535# Check that we are running under the correct shell.
536SHELL=${CONFIG_SHELL-/bin/sh}
537
538case X$lt_ECHO in
539X*--fallback-echo)
540  # Remove one level of quotation (which was required for Make).
541  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
542  ;;
543esac
544
545ECHO=${lt_ECHO-echo}
546if test "X$1" = X--no-reexec; then
547  # Discard the --no-reexec flag, and continue.
548  shift
549elif test "X$1" = X--fallback-echo; then
550  # Avoid inline document here, it may be left over
551  :
552elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
553  # Yippee, $ECHO works!
554  :
555else
556  # Restart under the correct shell.
557  exec $SHELL "$0" --no-reexec ${1+"$@"}
558fi
559
560if test "X$1" = X--fallback-echo; then
561  # used as fallback echo
562  shift
563  cat <<_LT_EOF
564$*
565_LT_EOF
566  exit 0
567fi
568
569# The HP-UX ksh and POSIX shell print the target directory to stdout
570# if CDPATH is set.
571(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
572
573if test -z "$lt_ECHO"; then
574  if test "X${echo_test_string+set}" != Xset; then
575    # find a string as large as possible, as long as the shell can cope with it
576    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
577      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
578      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
579	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
580      then
581        break
582      fi
583    done
584  fi
585
586  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
587     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
588     test "X$echo_testing_string" = "X$echo_test_string"; then
589    :
590  else
591    # The Solaris, AIX, and Digital Unix default echo programs unquote
592    # backslashes.  This makes it impossible to quote backslashes using
593    #   echo "$something" | sed 's/\\/\\\\/g'
594    #
595    # So, first we look for a working echo in the user's PATH.
596
597    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
598    for dir in $PATH /usr/ucb; do
599      IFS="$lt_save_ifs"
600      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
601         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
602         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
603         test "X$echo_testing_string" = "X$echo_test_string"; then
604        ECHO="$dir/echo"
605        break
606      fi
607    done
608    IFS="$lt_save_ifs"
609
610    if test "X$ECHO" = Xecho; then
611      # We didn't find a better echo, so look for alternatives.
612      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
613         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
614         test "X$echo_testing_string" = "X$echo_test_string"; then
615        # This shell has a builtin print -r that does the trick.
616        ECHO='print -r'
617      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
618	   test "X$CONFIG_SHELL" != X/bin/ksh; then
619        # If we have ksh, try running configure again with it.
620        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
621        export ORIGINAL_CONFIG_SHELL
622        CONFIG_SHELL=/bin/ksh
623        export CONFIG_SHELL
624        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
625      else
626        # Try using printf.
627        ECHO='printf %s\n'
628        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630	   test "X$echo_testing_string" = "X$echo_test_string"; then
631	  # Cool, printf works
632	  :
633        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
634	     test "X$echo_testing_string" = 'X\t' &&
635	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
636	     test "X$echo_testing_string" = "X$echo_test_string"; then
637	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
638	  export CONFIG_SHELL
639	  SHELL="$CONFIG_SHELL"
640	  export SHELL
641	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
642        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
643	     test "X$echo_testing_string" = 'X\t' &&
644	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
645	     test "X$echo_testing_string" = "X$echo_test_string"; then
646	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
647        else
648	  # maybe with a smaller string...
649	  prev=:
650
651	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
652	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
653	    then
654	      break
655	    fi
656	    prev="$cmd"
657	  done
658
659	  if test "$prev" != 'sed 50q "$0"'; then
660	    echo_test_string=`eval $prev`
661	    export echo_test_string
662	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
663	  else
664	    # Oops.  We lost completely, so just stick with echo.
665	    ECHO=echo
666	  fi
667        fi
668      fi
669    fi
670  fi
671fi
672
673# Copy echo and quote the copy suitably for passing to libtool from
674# the Makefile, instead of quoting the original, which is used later.
675lt_ECHO=$ECHO
676if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
677   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678fi
679
680
681
682
683test -n "$DJDIR" || exec 7<&0 </dev/null
684exec 6>&1
685
686# Name of the host.
687# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
688# so uname gets run too.
689ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
690
691#
692# Initializations.
693#
694ac_default_prefix=/usr/local
695ac_clean_files=
696ac_config_libobj_dir=.
697LIBOBJS=
698cross_compiling=no
699subdirs=
700MFLAGS=
701MAKEFLAGS=
702
703# Identity of this package.
704PACKAGE_NAME='mydns'
705PACKAGE_TARNAME='mydns'
706PACKAGE_VERSION='1.2.8.31'
707PACKAGE_STRING='mydns 1.2.8.31'
708PACKAGE_BUGREPORT='http://bugs.mydns-ng.com/'
709PACKAGE_URL=''
710
711# Factoring default headers for most tests.
712ac_includes_default="\
713#include <stdio.h>
714#ifdef HAVE_SYS_TYPES_H
715# include <sys/types.h>
716#endif
717#ifdef HAVE_SYS_STAT_H
718# include <sys/stat.h>
719#endif
720#ifdef STDC_HEADERS
721# include <stdlib.h>
722# include <stddef.h>
723#else
724# ifdef HAVE_STDLIB_H
725#  include <stdlib.h>
726# endif
727#endif
728#ifdef HAVE_STRING_H
729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730#  include <memory.h>
731# endif
732# include <string.h>
733#endif
734#ifdef HAVE_STRINGS_H
735# include <strings.h>
736#endif
737#ifdef HAVE_INTTYPES_H
738# include <inttypes.h>
739#endif
740#ifdef HAVE_STDINT_H
741# include <stdint.h>
742#endif
743#ifdef HAVE_UNISTD_H
744# include <unistd.h>
745#endif"
746
747ac_header_list=
748ac_subst_vars='am__EXEEXT_FALSE
749am__EXEEXT_TRUE
750LTLIBOBJS
751DOCDIR
752LIBMYDNS
753MYDNSINCLUDE
754MYDNSDIR
755LIBUTIL
756UTILINCLUDE
757UTILDIR
758INTLINCLUDE
759WEBROOT
760PROFILE_ENABLED
761SQLINCLUDE
762LIBSQL
763USE_DB_NAME
764ac_mydns_static_build
765MYDNS_CONF
766SSLINCLUDE
767LIBSSL
768PQ_INCLUDE
769LIBPQ
770MYSQL_INCLUDE
771LIBMYSQLCLIENT
772LIBZ
773PACKAGE_AUTHOR
774COPYRIGHT_HOLDER
775PACKAGE_COPYRIGHT
776PACKAGE_HOMEPAGE
777PACKAGE_RELEASE_DATE
778PACKAGE_DATE
779LIBM
780LIBNSL
781LIBSOCKET
782LIBOBJS
783POSUB
784LTLIBINTL
785LIBINTL
786INTLLIBS
787INTL_LIBTOOL_SUFFIX_PREFIX
788INTLOBJS
789GENCAT
790INSTOBJEXT
791DATADIRNAME
792CATOBJEXT
793USE_INCLUDED_LIBINTL
794BUILD_INCLUDED_LIBINTL
795INTLBISON
796LTLIBICONV
797LIBICONV
798GLIBC21
799ALLOCA
800MSGMERGE
801XGETTEXT
802GMSGFMT
803MSGFMT
804USE_NLS
805MKINSTALLDIRS
806OTOOL64
807OTOOL
808LIPO
809NMEDIT
810DSYMUTIL
811lt_ECHO
812RANLIB
813AR
814OBJDUMP
815NM
816ac_ct_DUMPBIN
817DUMPBIN
818LD
819FGREP
820SED
821host_os
822host_vendor
823host_cpu
824host
825build_os
826build_vendor
827build_cpu
828build
829LIBTOOL
830LN_S
831am__fastdepCC_FALSE
832am__fastdepCC_TRUE
833CCDEPMODE
834AMDEPBACKSLASH
835AMDEP_FALSE
836AMDEP_TRUE
837am__quote
838am__include
839DEPDIR
840am__untar
841am__tar
842AMTAR
843am__leading_dot
844SET_MAKE
845AWK
846mkdir_p
847MKDIR_P
848INSTALL_STRIP_PROGRAM
849STRIP
850install_sh
851MAKEINFO
852AUTOHEADER
853AUTOMAKE
854AUTOCONF
855ACLOCAL
856VERSION
857PACKAGE
858CYGPATH_W
859am__isrc
860INSTALL_DATA
861INSTALL_SCRIPT
862INSTALL_PROGRAM
863EGREP
864GREP
865CPP
866OBJEXT
867EXEEXT
868ac_ct_CC
869CPPFLAGS
870LDFLAGS
871CFLAGS
872CC
873target_alias
874host_alias
875build_alias
876LIBS
877ECHO_T
878ECHO_N
879ECHO_C
880DEFS
881mandir
882localedir
883libdir
884psdir
885pdfdir
886dvidir
887htmldir
888infodir
889docdir
890oldincludedir
891includedir
892localstatedir
893sharedstatedir
894sysconfdir
895datadir
896datarootdir
897libexecdir
898sbindir
899bindir
900program_transform_name
901prefix
902exec_prefix
903PACKAGE_URL
904PACKAGE_BUGREPORT
905PACKAGE_STRING
906PACKAGE_VERSION
907PACKAGE_TARNAME
908PACKAGE_NAME
909PATH_SEPARATOR
910SHELL'
911ac_subst_files=''
912ac_user_opts='
913enable_option_checking
914enable_dependency_tracking
915enable_shared
916enable_static
917with_pic
918enable_fast_install
919with_gnu_ld
920enable_libtool_lock
921enable_nls
922enable_rpath
923with_libiconv_prefix
924with_included_gettext
925with_libintl_prefix
926enable_alias
927with_mysql
928with_mysql_lib
929with_zlib
930with_mysql_include
931with_pgsql
932with_pgsql_lib
933with_pgsql_include
934with_openssl
935with_openssl_lib
936with_openssl_include
937with_confdir
938enable_static_build
939enable_profiling
940enable_debug
941enable_valgrind
942enable_strict_warnings
943enable_alt_names
944enable_status
945enable_date_logging
946'
947      ac_precious_vars='build_alias
948host_alias
949target_alias
950CC
951CFLAGS
952LDFLAGS
953LIBS
954CPPFLAGS
955CPP'
956
957
958# Initialize some variables set by options.
959ac_init_help=
960ac_init_version=false
961ac_unrecognized_opts=
962ac_unrecognized_sep=
963# The variables have the same names as the options, with
964# dashes changed to underlines.
965cache_file=/dev/null
966exec_prefix=NONE
967no_create=
968no_recursion=
969prefix=NONE
970program_prefix=NONE
971program_suffix=NONE
972program_transform_name=s,x,x,
973silent=
974site=
975srcdir=
976verbose=
977x_includes=NONE
978x_libraries=NONE
979
980# Installation directory options.
981# These are left unexpanded so users can "make install exec_prefix=/foo"
982# and all the variables that are supposed to be based on exec_prefix
983# by default will actually change.
984# Use braces instead of parens because sh, perl, etc. also accept them.
985# (The list follows the same order as the GNU Coding Standards.)
986bindir='${exec_prefix}/bin'
987sbindir='${exec_prefix}/sbin'
988libexecdir='${exec_prefix}/libexec'
989datarootdir='${prefix}/share'
990datadir='${datarootdir}'
991sysconfdir='${prefix}/etc'
992sharedstatedir='${prefix}/com'
993localstatedir='${prefix}/var'
994includedir='${prefix}/include'
995oldincludedir='/usr/include'
996docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997infodir='${datarootdir}/info'
998htmldir='${docdir}'
999dvidir='${docdir}'
1000pdfdir='${docdir}'
1001psdir='${docdir}'
1002libdir='${exec_prefix}/lib'
1003localedir='${datarootdir}/locale'
1004mandir='${datarootdir}/man'
1005
1006ac_prev=
1007ac_dashdash=
1008for ac_option
1009do
1010  # If the previous option needs an argument, assign it.
1011  if test -n "$ac_prev"; then
1012    eval $ac_prev=\$ac_option
1013    ac_prev=
1014    continue
1015  fi
1016
1017  case $ac_option in
1018  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019  *)	ac_optarg=yes ;;
1020  esac
1021
1022  # Accept the important Cygnus configure options, so we can diagnose typos.
1023
1024  case $ac_dashdash$ac_option in
1025  --)
1026    ac_dashdash=yes ;;
1027
1028  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029    ac_prev=bindir ;;
1030  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031    bindir=$ac_optarg ;;
1032
1033  -build | --build | --buil | --bui | --bu)
1034    ac_prev=build_alias ;;
1035  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036    build_alias=$ac_optarg ;;
1037
1038  -cache-file | --cache-file | --cache-fil | --cache-fi \
1039  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040    ac_prev=cache_file ;;
1041  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043    cache_file=$ac_optarg ;;
1044
1045  --config-cache | -C)
1046    cache_file=config.cache ;;
1047
1048  -datadir | --datadir | --datadi | --datad)
1049    ac_prev=datadir ;;
1050  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051    datadir=$ac_optarg ;;
1052
1053  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054  | --dataroo | --dataro | --datar)
1055    ac_prev=datarootdir ;;
1056  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058    datarootdir=$ac_optarg ;;
1059
1060  -disable-* | --disable-*)
1061    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062    # Reject names that are not valid shell variable names.
1063    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064      as_fn_error "invalid feature name: $ac_useropt"
1065    ac_useropt_orig=$ac_useropt
1066    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067    case $ac_user_opts in
1068      *"
1069"enable_$ac_useropt"
1070"*) ;;
1071      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072	 ac_unrecognized_sep=', ';;
1073    esac
1074    eval enable_$ac_useropt=no ;;
1075
1076  -docdir | --docdir | --docdi | --doc | --do)
1077    ac_prev=docdir ;;
1078  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079    docdir=$ac_optarg ;;
1080
1081  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082    ac_prev=dvidir ;;
1083  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084    dvidir=$ac_optarg ;;
1085
1086  -enable-* | --enable-*)
1087    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088    # Reject names that are not valid shell variable names.
1089    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090      as_fn_error "invalid feature name: $ac_useropt"
1091    ac_useropt_orig=$ac_useropt
1092    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093    case $ac_user_opts in
1094      *"
1095"enable_$ac_useropt"
1096"*) ;;
1097      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098	 ac_unrecognized_sep=', ';;
1099    esac
1100    eval enable_$ac_useropt=\$ac_optarg ;;
1101
1102  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104  | --exec | --exe | --ex)
1105    ac_prev=exec_prefix ;;
1106  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108  | --exec=* | --exe=* | --ex=*)
1109    exec_prefix=$ac_optarg ;;
1110
1111  -gas | --gas | --ga | --g)
1112    # Obsolete; use --with-gas.
1113    with_gas=yes ;;
1114
1115  -help | --help | --hel | --he | -h)
1116    ac_init_help=long ;;
1117  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118    ac_init_help=recursive ;;
1119  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120    ac_init_help=short ;;
1121
1122  -host | --host | --hos | --ho)
1123    ac_prev=host_alias ;;
1124  -host=* | --host=* | --hos=* | --ho=*)
1125    host_alias=$ac_optarg ;;
1126
1127  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128    ac_prev=htmldir ;;
1129  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130  | --ht=*)
1131    htmldir=$ac_optarg ;;
1132
1133  -includedir | --includedir | --includedi | --included | --include \
1134  | --includ | --inclu | --incl | --inc)
1135    ac_prev=includedir ;;
1136  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137  | --includ=* | --inclu=* | --incl=* | --inc=*)
1138    includedir=$ac_optarg ;;
1139
1140  -infodir | --infodir | --infodi | --infod | --info | --inf)
1141    ac_prev=infodir ;;
1142  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143    infodir=$ac_optarg ;;
1144
1145  -libdir | --libdir | --libdi | --libd)
1146    ac_prev=libdir ;;
1147  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148    libdir=$ac_optarg ;;
1149
1150  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151  | --libexe | --libex | --libe)
1152    ac_prev=libexecdir ;;
1153  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154  | --libexe=* | --libex=* | --libe=*)
1155    libexecdir=$ac_optarg ;;
1156
1157  -localedir | --localedir | --localedi | --localed | --locale)
1158    ac_prev=localedir ;;
1159  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160    localedir=$ac_optarg ;;
1161
1162  -localstatedir | --localstatedir | --localstatedi | --localstated \
1163  | --localstate | --localstat | --localsta | --localst | --locals)
1164    ac_prev=localstatedir ;;
1165  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167    localstatedir=$ac_optarg ;;
1168
1169  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170    ac_prev=mandir ;;
1171  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172    mandir=$ac_optarg ;;
1173
1174  -nfp | --nfp | --nf)
1175    # Obsolete; use --without-fp.
1176    with_fp=no ;;
1177
1178  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179  | --no-cr | --no-c | -n)
1180    no_create=yes ;;
1181
1182  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184    no_recursion=yes ;;
1185
1186  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188  | --oldin | --oldi | --old | --ol | --o)
1189    ac_prev=oldincludedir ;;
1190  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193    oldincludedir=$ac_optarg ;;
1194
1195  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196    ac_prev=prefix ;;
1197  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198    prefix=$ac_optarg ;;
1199
1200  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201  | --program-pre | --program-pr | --program-p)
1202    ac_prev=program_prefix ;;
1203  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205    program_prefix=$ac_optarg ;;
1206
1207  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208  | --program-suf | --program-su | --program-s)
1209    ac_prev=program_suffix ;;
1210  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212    program_suffix=$ac_optarg ;;
1213
1214  -program-transform-name | --program-transform-name \
1215  | --program-transform-nam | --program-transform-na \
1216  | --program-transform-n | --program-transform- \
1217  | --program-transform | --program-transfor \
1218  | --program-transfo | --program-transf \
1219  | --program-trans | --program-tran \
1220  | --progr-tra | --program-tr | --program-t)
1221    ac_prev=program_transform_name ;;
1222  -program-transform-name=* | --program-transform-name=* \
1223  | --program-transform-nam=* | --program-transform-na=* \
1224  | --program-transform-n=* | --program-transform-=* \
1225  | --program-transform=* | --program-transfor=* \
1226  | --program-transfo=* | --program-transf=* \
1227  | --program-trans=* | --program-tran=* \
1228  | --progr-tra=* | --program-tr=* | --program-t=*)
1229    program_transform_name=$ac_optarg ;;
1230
1231  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232    ac_prev=pdfdir ;;
1233  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234    pdfdir=$ac_optarg ;;
1235
1236  -psdir | --psdir | --psdi | --psd | --ps)
1237    ac_prev=psdir ;;
1238  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239    psdir=$ac_optarg ;;
1240
1241  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242  | -silent | --silent | --silen | --sile | --sil)
1243    silent=yes ;;
1244
1245  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246    ac_prev=sbindir ;;
1247  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248  | --sbi=* | --sb=*)
1249    sbindir=$ac_optarg ;;
1250
1251  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253  | --sharedst | --shareds | --shared | --share | --shar \
1254  | --sha | --sh)
1255    ac_prev=sharedstatedir ;;
1256  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259  | --sha=* | --sh=*)
1260    sharedstatedir=$ac_optarg ;;
1261
1262  -site | --site | --sit)
1263    ac_prev=site ;;
1264  -site=* | --site=* | --sit=*)
1265    site=$ac_optarg ;;
1266
1267  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268    ac_prev=srcdir ;;
1269  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270    srcdir=$ac_optarg ;;
1271
1272  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273  | --syscon | --sysco | --sysc | --sys | --sy)
1274    ac_prev=sysconfdir ;;
1275  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277    sysconfdir=$ac_optarg ;;
1278
1279  -target | --target | --targe | --targ | --tar | --ta | --t)
1280    ac_prev=target_alias ;;
1281  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282    target_alias=$ac_optarg ;;
1283
1284  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285    verbose=yes ;;
1286
1287  -version | --version | --versio | --versi | --vers | -V)
1288    ac_init_version=: ;;
1289
1290  -with-* | --with-*)
1291    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292    # Reject names that are not valid shell variable names.
1293    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294      as_fn_error "invalid package name: $ac_useropt"
1295    ac_useropt_orig=$ac_useropt
1296    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297    case $ac_user_opts in
1298      *"
1299"with_$ac_useropt"
1300"*) ;;
1301      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302	 ac_unrecognized_sep=', ';;
1303    esac
1304    eval with_$ac_useropt=\$ac_optarg ;;
1305
1306  -without-* | --without-*)
1307    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308    # Reject names that are not valid shell variable names.
1309    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310      as_fn_error "invalid package name: $ac_useropt"
1311    ac_useropt_orig=$ac_useropt
1312    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313    case $ac_user_opts in
1314      *"
1315"with_$ac_useropt"
1316"*) ;;
1317      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1318	 ac_unrecognized_sep=', ';;
1319    esac
1320    eval with_$ac_useropt=no ;;
1321
1322  --x)
1323    # Obsolete; use --with-x.
1324    with_x=yes ;;
1325
1326  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1327  | --x-incl | --x-inc | --x-in | --x-i)
1328    ac_prev=x_includes ;;
1329  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1330  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1331    x_includes=$ac_optarg ;;
1332
1333  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1334  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1335    ac_prev=x_libraries ;;
1336  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1337  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1338    x_libraries=$ac_optarg ;;
1339
1340  -*) as_fn_error "unrecognized option: \`$ac_option'
1341Try \`$0 --help' for more information."
1342    ;;
1343
1344  *=*)
1345    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1346    # Reject names that are not valid shell variable names.
1347    case $ac_envvar in #(
1348      '' | [0-9]* | *[!_$as_cr_alnum]* )
1349      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1350    esac
1351    eval $ac_envvar=\$ac_optarg
1352    export $ac_envvar ;;
1353
1354  *)
1355    # FIXME: should be removed in autoconf 3.0.
1356    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1358      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1360    ;;
1361
1362  esac
1363done
1364
1365if test -n "$ac_prev"; then
1366  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1367  as_fn_error "missing argument to $ac_option"
1368fi
1369
1370if test -n "$ac_unrecognized_opts"; then
1371  case $enable_option_checking in
1372    no) ;;
1373    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1374    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1375  esac
1376fi
1377
1378# Check all directory arguments for consistency.
1379for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380		datadir sysconfdir sharedstatedir localstatedir includedir \
1381		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382		libdir localedir mandir
1383do
1384  eval ac_val=\$$ac_var
1385  # Remove trailing slashes.
1386  case $ac_val in
1387    */ )
1388      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389      eval $ac_var=\$ac_val;;
1390  esac
1391  # Be sure to have absolute directory names.
1392  case $ac_val in
1393    [\\/$]* | ?:[\\/]* )  continue;;
1394    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395  esac
1396  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1397done
1398
1399# There might be people who depend on the old broken behavior: `$host'
1400# used to hold the argument of --host etc.
1401# FIXME: To remove some day.
1402build=$build_alias
1403host=$host_alias
1404target=$target_alias
1405
1406# FIXME: To remove some day.
1407if test "x$host_alias" != x; then
1408  if test "x$build_alias" = x; then
1409    cross_compiling=maybe
1410    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1411    If a cross compiler is detected then cross compile mode will be used." >&2
1412  elif test "x$build_alias" != "x$host_alias"; then
1413    cross_compiling=yes
1414  fi
1415fi
1416
1417ac_tool_prefix=
1418test -n "$host_alias" && ac_tool_prefix=$host_alias-
1419
1420test "$silent" = yes && exec 6>/dev/null
1421
1422
1423ac_pwd=`pwd` && test -n "$ac_pwd" &&
1424ac_ls_di=`ls -di .` &&
1425ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1426  as_fn_error "working directory cannot be determined"
1427test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428  as_fn_error "pwd does not report name of working directory"
1429
1430
1431# Find the source files, if location was not specified.
1432if test -z "$srcdir"; then
1433  ac_srcdir_defaulted=yes
1434  # Try the directory containing this script, then the parent directory.
1435  ac_confdir=`$as_dirname -- "$as_myself" ||
1436$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437	 X"$as_myself" : 'X\(//\)[^/]' \| \
1438	 X"$as_myself" : 'X\(//\)$' \| \
1439	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440$as_echo X"$as_myself" |
1441    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442	    s//\1/
1443	    q
1444	  }
1445	  /^X\(\/\/\)[^/].*/{
1446	    s//\1/
1447	    q
1448	  }
1449	  /^X\(\/\/\)$/{
1450	    s//\1/
1451	    q
1452	  }
1453	  /^X\(\/\).*/{
1454	    s//\1/
1455	    q
1456	  }
1457	  s/.*/./; q'`
1458  srcdir=$ac_confdir
1459  if test ! -r "$srcdir/$ac_unique_file"; then
1460    srcdir=..
1461  fi
1462else
1463  ac_srcdir_defaulted=no
1464fi
1465if test ! -r "$srcdir/$ac_unique_file"; then
1466  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1468fi
1469ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1470ac_abs_confdir=`(
1471	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1472	pwd)`
1473# When building in place, set srcdir=.
1474if test "$ac_abs_confdir" = "$ac_pwd"; then
1475  srcdir=.
1476fi
1477# Remove unnecessary trailing slashes from srcdir.
1478# Double slashes in file names in object file debugging info
1479# mess up M-x gdb in Emacs.
1480case $srcdir in
1481*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482esac
1483for ac_var in $ac_precious_vars; do
1484  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1485  eval ac_env_${ac_var}_value=\$${ac_var}
1486  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1487  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488done
1489
1490#
1491# Report the --help message.
1492#
1493if test "$ac_init_help" = "long"; then
1494  # Omit some internal or obsolete options to make the list less imposing.
1495  # This message is too long to be a string in the A/UX 3.1 sh.
1496  cat <<_ACEOF
1497\`configure' configures mydns 1.2.8.31 to adapt to many kinds of systems.
1498
1499Usage: $0 [OPTION]... [VAR=VALUE]...
1500
1501To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502VAR=VALUE.  See below for descriptions of some of the useful variables.
1503
1504Defaults for the options are specified in brackets.
1505
1506Configuration:
1507  -h, --help              display this help and exit
1508      --help=short        display options specific to this package
1509      --help=recursive    display the short help of all the included packages
1510  -V, --version           display version information and exit
1511  -q, --quiet, --silent   do not print \`checking...' messages
1512      --cache-file=FILE   cache test results in FILE [disabled]
1513  -C, --config-cache      alias for \`--cache-file=config.cache'
1514  -n, --no-create         do not create output files
1515      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1516
1517Installation directories:
1518  --prefix=PREFIX         install architecture-independent files in PREFIX
1519                          [$ac_default_prefix]
1520  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1521                          [PREFIX]
1522
1523By default, \`make install' will install all the files in
1524\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1525an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526for instance \`--prefix=\$HOME'.
1527
1528For better control, use the options below.
1529
1530Fine tuning of the installation directories:
1531  --bindir=DIR            user executables [EPREFIX/bin]
1532  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1533  --libexecdir=DIR        program executables [EPREFIX/libexec]
1534  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1535  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1536  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1537  --libdir=DIR            object code libraries [EPREFIX/lib]
1538  --includedir=DIR        C header files [PREFIX/include]
1539  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1540  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1541  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1542  --infodir=DIR           info documentation [DATAROOTDIR/info]
1543  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1544  --mandir=DIR            man documentation [DATAROOTDIR/man]
1545  --docdir=DIR            documentation root [DATAROOTDIR/doc/mydns]
1546  --htmldir=DIR           html documentation [DOCDIR]
1547  --dvidir=DIR            dvi documentation [DOCDIR]
1548  --pdfdir=DIR            pdf documentation [DOCDIR]
1549  --psdir=DIR             ps documentation [DOCDIR]
1550_ACEOF
1551
1552  cat <<\_ACEOF
1553
1554Program names:
1555  --program-prefix=PREFIX            prepend PREFIX to installed program names
1556  --program-suffix=SUFFIX            append SUFFIX to installed program names
1557  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1558
1559System types:
1560  --build=BUILD     configure for building on BUILD [guessed]
1561  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1562_ACEOF
1563fi
1564
1565if test -n "$ac_init_help"; then
1566  case $ac_init_help in
1567     short | recursive ) echo "Configuration of mydns 1.2.8.31:";;
1568   esac
1569  cat <<\_ACEOF
1570
1571Optional Features:
1572  --disable-option-checking  ignore unrecognized --enable/--with options
1573  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1574  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1575  --disable-dependency-tracking  speeds up one-time build
1576  --enable-dependency-tracking   do not reject slow dependency extractors
1577  --enable-shared[=PKGS]  build shared libraries [default=yes]
1578  --enable-static[=PKGS]  build static libraries [default=yes]
1579  --enable-fast-install[=PKGS]
1580                          optimize for fast installation [default=yes]
1581  --disable-libtool-lock  avoid locking (might break parallel builds)
1582  --disable-nls           do not use Native Language Support
1583  --disable-rpath         do not hardcode runtime library paths
1584  --enable-alias          enable alias patch (see contrib/README.alias)
1585  --enable-static-build   build a static binary (mainly for RPM)
1586  --enable-profiling      enable profiling
1587  --enable-debug          enable debugging options
1588  --enable-valgrind       compile with Valgrind-friendly flags
1589  --enable-strict-warnings
1590                          compile with strict warning flags
1591  --enable-alt-names      enable alternate column names (do not use)
1592  --enable-status         enable remote server status reports
1593  --disable-date-logging  disable date/time in verbose output
1594
1595Optional Packages:
1596  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1597  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1598  --with-pic              try to use only PIC/non-PIC objects [default=use
1599                          both]
1600  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1601  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1602  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1603  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1604  --with-included-gettext use the GNU gettext library included here
1605  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1606  --without-libintl-prefix     don't search for libintl in includedir and libdir
1607  --without-mysql         configure without MySQL support
1608  --with-mysql-lib=DIR    look for the MySQL client library in DIR
1609  --with-zlib=DIR         look for the zlib compression library in DIR
1610  --with-mysql-include=DIR
1611                          look for MySQL include files in DIR
1612  --without-pgsql         configure without PostgreSQL support
1613  --with-pgsql-lib=DIR    look for the PostgreSQL client library in DIR
1614  --with-pgsql-include=DIR
1615                          look for PostgreSQL include files in DIR
1616  --with-openssl          compile with OpenSSL support?
1617  --with-openssl-lib=DIR  look for the OpenSSL libraries in DIR
1618  --with-openssl-include=DIR
1619                          look for OpenSSL include files in DIR
1620  --with-confdir=DIR      default config file path (default is `/etc')
1621
1622Some influential environment variables:
1623  CC          C compiler command
1624  CFLAGS      C compiler flags
1625  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1626              nonstandard directory <lib dir>
1627  LIBS        libraries to pass to the linker, e.g. -l<library>
1628  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1629              you have headers in a nonstandard directory <include dir>
1630  CPP         C preprocessor
1631
1632Use these variables to override the choices made by `configure' or to help
1633it to find libraries and programs with nonstandard names/locations.
1634
1635Report bugs to <http://bugs.mydns-ng.com/>.
1636_ACEOF
1637ac_status=$?
1638fi
1639
1640if test "$ac_init_help" = "recursive"; then
1641  # If there are subdirs, report their specific --help.
1642  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643    test -d "$ac_dir" ||
1644      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645      continue
1646    ac_builddir=.
1647
1648case "$ac_dir" in
1649.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650*)
1651  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652  # A ".." for each directory in $ac_dir_suffix.
1653  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654  case $ac_top_builddir_sub in
1655  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657  esac ;;
1658esac
1659ac_abs_top_builddir=$ac_pwd
1660ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661# for backward compatibility:
1662ac_top_builddir=$ac_top_build_prefix
1663
1664case $srcdir in
1665  .)  # We are building in place.
1666    ac_srcdir=.
1667    ac_top_srcdir=$ac_top_builddir_sub
1668    ac_abs_top_srcdir=$ac_pwd ;;
1669  [\\/]* | ?:[\\/]* )  # Absolute name.
1670    ac_srcdir=$srcdir$ac_dir_suffix;
1671    ac_top_srcdir=$srcdir
1672    ac_abs_top_srcdir=$srcdir ;;
1673  *) # Relative name.
1674    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675    ac_top_srcdir=$ac_top_build_prefix$srcdir
1676    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677esac
1678ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680    cd "$ac_dir" || { ac_status=$?; continue; }
1681    # Check for guested configure.
1682    if test -f "$ac_srcdir/configure.gnu"; then
1683      echo &&
1684      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685    elif test -f "$ac_srcdir/configure"; then
1686      echo &&
1687      $SHELL "$ac_srcdir/configure" --help=recursive
1688    else
1689      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690    fi || ac_status=$?
1691    cd "$ac_pwd" || { ac_status=$?; break; }
1692  done
1693fi
1694
1695test -n "$ac_init_help" && exit $ac_status
1696if $ac_init_version; then
1697  cat <<\_ACEOF
1698mydns configure 1.2.8.31
1699generated by GNU Autoconf 2.65
1700
1701Copyright (C) 2009 Free Software Foundation, Inc.
1702This configure script is free software; the Free Software Foundation
1703gives unlimited permission to copy, distribute and modify it.
1704
1705Portions of this script are Copyright 2002-2005 Don Moore  2007-2009 Howard Wilkinson
1706_ACEOF
1707  exit
1708fi
1709
1710## ------------------------ ##
1711## Autoconf initialization. ##
1712## ------------------------ ##
1713
1714# ac_fn_c_try_compile LINENO
1715# --------------------------
1716# Try to compile conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_compile ()
1718{
1719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720  rm -f conftest.$ac_objext
1721  if { { ac_try="$ac_compile"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_compile") 2>conftest.err
1729  ac_status=$?
1730  if test -s conftest.err; then
1731    grep -v '^ *+' conftest.err >conftest.er1
1732    cat conftest.er1 >&5
1733    mv -f conftest.er1 conftest.err
1734  fi
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; } && {
1737	 test -z "$ac_c_werror_flag" ||
1738	 test ! -s conftest.err
1739       } && test -s conftest.$ac_objext; then :
1740  ac_retval=0
1741else
1742  $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745	ac_retval=1
1746fi
1747  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748  as_fn_set_status $ac_retval
1749
1750} # ac_fn_c_try_compile
1751
1752# ac_fn_c_try_cpp LINENO
1753# ----------------------
1754# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755ac_fn_c_try_cpp ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  if { { ac_try="$ac_cpp conftest.$ac_ext"
1759case "(($ac_try" in
1760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761  *) ac_try_echo=$ac_try;;
1762esac
1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764$as_echo "$ac_try_echo"; } >&5
1765  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766  ac_status=$?
1767  if test -s conftest.err; then
1768    grep -v '^ *+' conftest.err >conftest.er1
1769    cat conftest.er1 >&5
1770    mv -f conftest.er1 conftest.err
1771  fi
1772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773  test $ac_status = 0; } >/dev/null && {
1774	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775	 test ! -s conftest.err
1776       }; then :
1777  ac_retval=0
1778else
1779  $as_echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782    ac_retval=1
1783fi
1784  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785  as_fn_set_status $ac_retval
1786
1787} # ac_fn_c_try_cpp
1788
1789# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790# -------------------------------------------------------
1791# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792# the include files in INCLUDES and setting the cache variable VAR
1793# accordingly.
1794ac_fn_c_check_header_mongrel ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799$as_echo_n "checking for $2... " >&6; }
1800if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801  $as_echo_n "(cached) " >&6
1802fi
1803eval ac_res=\$$3
1804	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805$as_echo "$ac_res" >&6; }
1806else
1807  # Is the header compilable?
1808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809$as_echo_n "checking $2 usability... " >&6; }
1810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812$4
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_compile "$LINENO"; then :
1816  ac_header_compiler=yes
1817else
1818  ac_header_compiler=no
1819fi
1820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822$as_echo "$ac_header_compiler" >&6; }
1823
1824# Is the header present?
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826$as_echo_n "checking $2 presence... " >&6; }
1827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h.  */
1829#include <$2>
1830_ACEOF
1831if ac_fn_c_try_cpp "$LINENO"; then :
1832  ac_header_preproc=yes
1833else
1834  ac_header_preproc=no
1835fi
1836rm -f conftest.err conftest.$ac_ext
1837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838$as_echo "$ac_header_preproc" >&6; }
1839
1840# So?  What about this header?
1841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1842  yes:no: )
1843    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847    ;;
1848  no:yes:* )
1849    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1852$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1853    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1856$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859( cat <<\_ASBOX
1860## ---------------------------------------- ##
1861## Report this to http://bugs.mydns-ng.com/ ##
1862## ---------------------------------------- ##
1863_ASBOX
1864     ) | sed "s/^/$as_me: WARNING:     /" >&2
1865    ;;
1866esac
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870  $as_echo_n "(cached) " >&6
1871else
1872  eval "$3=\$ac_header_compiler"
1873fi
1874eval ac_res=\$$3
1875	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876$as_echo "$ac_res" >&6; }
1877fi
1878  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
1880} # ac_fn_c_check_header_mongrel
1881
1882# ac_fn_c_try_run LINENO
1883# ----------------------
1884# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885# that executables *can* be run.
1886ac_fn_c_try_run ()
1887{
1888  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889  if { { ac_try="$ac_link"
1890case "(($ac_try" in
1891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892  *) ac_try_echo=$ac_try;;
1893esac
1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895$as_echo "$ac_try_echo"; } >&5
1896  (eval "$ac_link") 2>&5
1897  ac_status=$?
1898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900  { { case "(($ac_try" in
1901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902  *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906  (eval "$ac_try") 2>&5
1907  ac_status=$?
1908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909  test $ac_status = 0; }; }; then :
1910  ac_retval=0
1911else
1912  $as_echo "$as_me: program exited with status $ac_status" >&5
1913       $as_echo "$as_me: failed program was:" >&5
1914sed 's/^/| /' conftest.$ac_ext >&5
1915
1916       ac_retval=$ac_status
1917fi
1918  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920  as_fn_set_status $ac_retval
1921
1922} # ac_fn_c_try_run
1923
1924# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925# -------------------------------------------------------
1926# Tests whether HEADER exists and can be compiled using the include files in
1927# INCLUDES, setting the cache variable VAR accordingly.
1928ac_fn_c_check_header_compile ()
1929{
1930  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932$as_echo_n "checking for $2... " >&6; }
1933if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934  $as_echo_n "(cached) " >&6
1935else
1936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h.  */
1938$4
1939#include <$2>
1940_ACEOF
1941if ac_fn_c_try_compile "$LINENO"; then :
1942  eval "$3=yes"
1943else
1944  eval "$3=no"
1945fi
1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947fi
1948eval ac_res=\$$3
1949	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950$as_echo "$ac_res" >&6; }
1951  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952
1953} # ac_fn_c_check_header_compile
1954
1955# ac_fn_c_try_link LINENO
1956# -----------------------
1957# Try to link conftest.$ac_ext, and return whether this succeeded.
1958ac_fn_c_try_link ()
1959{
1960  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961  rm -f conftest.$ac_objext conftest$ac_exeext
1962  if { { ac_try="$ac_link"
1963case "(($ac_try" in
1964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965  *) ac_try_echo=$ac_try;;
1966esac
1967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968$as_echo "$ac_try_echo"; } >&5
1969  (eval "$ac_link") 2>conftest.err
1970  ac_status=$?
1971  if test -s conftest.err; then
1972    grep -v '^ *+' conftest.err >conftest.er1
1973    cat conftest.er1 >&5
1974    mv -f conftest.er1 conftest.err
1975  fi
1976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977  test $ac_status = 0; } && {
1978	 test -z "$ac_c_werror_flag" ||
1979	 test ! -s conftest.err
1980       } && test -s conftest$ac_exeext && {
1981	 test "$cross_compiling" = yes ||
1982	 $as_test_x conftest$ac_exeext
1983       }; then :
1984  ac_retval=0
1985else
1986  $as_echo "$as_me: failed program was:" >&5
1987sed 's/^/| /' conftest.$ac_ext >&5
1988
1989	ac_retval=1
1990fi
1991  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993  # interfere with the next link command; also delete a directory that is
1994  # left behind by Apple's compiler.  We do this before executing the actions.
1995  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997  as_fn_set_status $ac_retval
1998
1999} # ac_fn_c_try_link
2000
2001# ac_fn_c_check_func LINENO FUNC VAR
2002# ----------------------------------
2003# Tests whether FUNC exists, setting the cache variable VAR accordingly
2004ac_fn_c_check_func ()
2005{
2006  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008$as_echo_n "checking for $2... " >&6; }
2009if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010  $as_echo_n "(cached) " >&6
2011else
2012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h.  */
2014/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2015   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2016#define $2 innocuous_$2
2017
2018/* System header to define __stub macros and hopefully few prototypes,
2019    which can conflict with char $2 (); below.
2020    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2021    <limits.h> exists even on freestanding compilers.  */
2022
2023#ifdef __STDC__
2024# include <limits.h>
2025#else
2026# include <assert.h>
2027#endif
2028
2029#undef $2
2030
2031/* Override any GCC internal prototype to avoid an error.
2032   Use char because int might match the return type of a GCC
2033   builtin and then its argument prototype would still apply.  */
2034#ifdef __cplusplus
2035extern "C"
2036#endif
2037char $2 ();
2038/* The GNU C library defines this for functions which it implements
2039    to always fail with ENOSYS.  Some functions are actually named
2040    something starting with __ and the normal name is an alias.  */
2041#if defined __stub_$2 || defined __stub___$2
2042choke me
2043#endif
2044
2045int
2046main ()
2047{
2048return $2 ();
2049  ;
2050  return 0;
2051}
2052_ACEOF
2053if ac_fn_c_try_link "$LINENO"; then :
2054  eval "$3=yes"
2055else
2056  eval "$3=no"
2057fi
2058rm -f core conftest.err conftest.$ac_objext \
2059    conftest$ac_exeext conftest.$ac_ext
2060fi
2061eval ac_res=\$$3
2062	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063$as_echo "$ac_res" >&6; }
2064  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065
2066} # ac_fn_c_check_func
2067
2068# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2069# -------------------------------------------
2070# Tests whether TYPE exists after having included INCLUDES, setting cache
2071# variable VAR accordingly.
2072ac_fn_c_check_type ()
2073{
2074  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076$as_echo_n "checking for $2... " >&6; }
2077if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2078  $as_echo_n "(cached) " >&6
2079else
2080  eval "$3=no"
2081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h.  */
2083$4
2084int
2085main ()
2086{
2087if (sizeof ($2))
2088	 return 0;
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h.  */
2096$4
2097int
2098main ()
2099{
2100if (sizeof (($2)))
2101	    return 0;
2102  ;
2103  return 0;
2104}
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
2107
2108else
2109  eval "$3=yes"
2110fi
2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112fi
2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114fi
2115eval ac_res=\$$3
2116	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117$as_echo "$ac_res" >&6; }
2118  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119
2120} # ac_fn_c_check_type
2121
2122# ac_fn_c_find_intX_t LINENO BITS VAR
2123# -----------------------------------
2124# Finds a signed integer type with width BITS, setting cache variable VAR
2125# accordingly.
2126ac_fn_c_find_intX_t ()
2127{
2128  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2130$as_echo_n "checking for int$2_t... " >&6; }
2131if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2132  $as_echo_n "(cached) " >&6
2133else
2134  eval "$3=no"
2135     # Order is important - never check a type that is potentially smaller
2136     # than half of the expected target width.
2137     for ac_type in int$2_t 'int' 'long int' \
2138	 'long long int' 'short int' 'signed char'; do
2139       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h.  */
2141$ac_includes_default
2142int
2143main ()
2144{
2145static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
2146	     0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2147test_array [0] = 0
2148
2149  ;
2150  return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h.  */
2156$ac_includes_default
2157int
2158main ()
2159{
2160static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
2161		($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2162		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2163test_array [0] = 0
2164
2165  ;
2166  return 0;
2167}
2168_ACEOF
2169if ac_fn_c_try_compile "$LINENO"; then :
2170
2171else
2172  case $ac_type in #(
2173  int$2_t) :
2174    eval "$3=yes" ;; #(
2175  *) :
2176    eval "$3=\$ac_type" ;;
2177esac
2178fi
2179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180fi
2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182       eval as_val=\$$3
2183   if test "x$as_val" = x""no; then :
2184
2185else
2186  break
2187fi
2188     done
2189fi
2190eval ac_res=\$$3
2191	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192$as_echo "$ac_res" >&6; }
2193  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2194
2195} # ac_fn_c_find_intX_t
2196
2197# ac_fn_c_find_uintX_t LINENO BITS VAR
2198# ------------------------------------
2199# Finds an unsigned integer type with width BITS, setting cache variable VAR
2200# accordingly.
2201ac_fn_c_find_uintX_t ()
2202{
2203  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2205$as_echo_n "checking for uint$2_t... " >&6; }
2206if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2207  $as_echo_n "(cached) " >&6
2208else
2209  eval "$3=no"
2210     # Order is important - never check a type that is potentially smaller
2211     # than half of the expected target width.
2212     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2213	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2214       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h.  */
2216$ac_includes_default
2217int
2218main ()
2219{
2220static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2221test_array [0] = 0
2222
2223  ;
2224  return 0;
2225}
2226_ACEOF
2227if ac_fn_c_try_compile "$LINENO"; then :
2228  case $ac_type in #(
2229  uint$2_t) :
2230    eval "$3=yes" ;; #(
2231  *) :
2232    eval "$3=\$ac_type" ;;
2233esac
2234fi
2235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236       eval as_val=\$$3
2237   if test "x$as_val" = x""no; then :
2238
2239else
2240  break
2241fi
2242     done
2243fi
2244eval ac_res=\$$3
2245	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246$as_echo "$ac_res" >&6; }
2247  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2248
2249} # ac_fn_c_find_uintX_t
2250
2251# ac_fn_c_check_decl LINENO SYMBOL VAR
2252# ------------------------------------
2253# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2254ac_fn_c_check_decl ()
2255{
2256  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2258$as_echo_n "checking whether $2 is declared... " >&6; }
2259if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2260  $as_echo_n "(cached) " >&6
2261else
2262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263/* end confdefs.h.  */
2264$4
2265int
2266main ()
2267{
2268#ifndef $2
2269  (void) $2;
2270#endif
2271
2272  ;
2273  return 0;
2274}
2275_ACEOF
2276if ac_fn_c_try_compile "$LINENO"; then :
2277  eval "$3=yes"
2278else
2279  eval "$3=no"
2280fi
2281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282fi
2283eval ac_res=\$$3
2284	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285$as_echo "$ac_res" >&6; }
2286  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2287
2288} # ac_fn_c_check_decl
2289cat >config.log <<_ACEOF
2290This file contains any messages produced by compilers while
2291running configure, to aid debugging if configure makes a mistake.
2292
2293It was created by mydns $as_me 1.2.8.31, which was
2294generated by GNU Autoconf 2.65.  Invocation command line was
2295
2296  $ $0 $@
2297
2298_ACEOF
2299exec 5>>config.log
2300{
2301cat <<_ASUNAME
2302## --------- ##
2303## Platform. ##
2304## --------- ##
2305
2306hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2307uname -m = `(uname -m) 2>/dev/null || echo unknown`
2308uname -r = `(uname -r) 2>/dev/null || echo unknown`
2309uname -s = `(uname -s) 2>/dev/null || echo unknown`
2310uname -v = `(uname -v) 2>/dev/null || echo unknown`
2311
2312/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2313/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2314
2315/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2316/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2317/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2318/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2319/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2320/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2321/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2322
2323_ASUNAME
2324
2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328  IFS=$as_save_IFS
2329  test -z "$as_dir" && as_dir=.
2330    $as_echo "PATH: $as_dir"
2331  done
2332IFS=$as_save_IFS
2333
2334} >&5
2335
2336cat >&5 <<_ACEOF
2337
2338
2339## ----------- ##
2340## Core tests. ##
2341## ----------- ##
2342
2343_ACEOF
2344
2345
2346# Keep a trace of the command line.
2347# Strip out --no-create and --no-recursion so they do not pile up.
2348# Strip out --silent because we don't want to record it for future runs.
2349# Also quote any args containing shell meta-characters.
2350# Make two passes to allow for proper duplicate-argument suppression.
2351ac_configure_args=
2352ac_configure_args0=
2353ac_configure_args1=
2354ac_must_keep_next=false
2355for ac_pass in 1 2
2356do
2357  for ac_arg
2358  do
2359    case $ac_arg in
2360    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2361    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2362    | -silent | --silent | --silen | --sile | --sil)
2363      continue ;;
2364    *\'*)
2365      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2366    esac
2367    case $ac_pass in
2368    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2369    2)
2370      as_fn_append ac_configure_args1 " '$ac_arg'"
2371      if test $ac_must_keep_next = true; then
2372	ac_must_keep_next=false # Got value, back to normal.
2373      else
2374	case $ac_arg in
2375	  *=* | --config-cache | -C | -disable-* | --disable-* \
2376	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2377	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2378	  | -with-* | --with-* | -without-* | --without-* | --x)
2379	    case "$ac_configure_args0 " in
2380	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2381	    esac
2382	    ;;
2383	  -* ) ac_must_keep_next=true ;;
2384	esac
2385      fi
2386      as_fn_append ac_configure_args " '$ac_arg'"
2387      ;;
2388    esac
2389  done
2390done
2391{ ac_configure_args0=; unset ac_configure_args0;}
2392{ ac_configure_args1=; unset ac_configure_args1;}
2393
2394# When interrupted or exit'd, cleanup temporary files, and complete
2395# config.log.  We remove comments because anyway the quotes in there
2396# would cause problems or look ugly.
2397# WARNING: Use '\'' to represent an apostrophe within the trap.
2398# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2399trap 'exit_status=$?
2400  # Save into config.log some information that might help in debugging.
2401  {
2402    echo
2403
2404    cat <<\_ASBOX
2405## ---------------- ##
2406## Cache variables. ##
2407## ---------------- ##
2408_ASBOX
2409    echo
2410    # The following way of writing the cache mishandles newlines in values,
2411(
2412  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2413    eval ac_val=\$$ac_var
2414    case $ac_val in #(
2415    *${as_nl}*)
2416      case $ac_var in #(
2417      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2418$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2419      esac
2420      case $ac_var in #(
2421      _ | IFS | as_nl) ;; #(
2422      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2423      *) { eval $ac_var=; unset $ac_var;} ;;
2424      esac ;;
2425    esac
2426  done
2427  (set) 2>&1 |
2428    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2429    *${as_nl}ac_space=\ *)
2430      sed -n \
2431	"s/'\''/'\''\\\\'\'''\''/g;
2432	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2433      ;; #(
2434    *)
2435      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2436      ;;
2437    esac |
2438    sort
2439)
2440    echo
2441
2442    cat <<\_ASBOX
2443## ----------------- ##
2444## Output variables. ##
2445## ----------------- ##
2446_ASBOX
2447    echo
2448    for ac_var in $ac_subst_vars
2449    do
2450      eval ac_val=\$$ac_var
2451      case $ac_val in
2452      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453      esac
2454      $as_echo "$ac_var='\''$ac_val'\''"
2455    done | sort
2456    echo
2457
2458    if test -n "$ac_subst_files"; then
2459      cat <<\_ASBOX
2460## ------------------- ##
2461## File substitutions. ##
2462## ------------------- ##
2463_ASBOX
2464      echo
2465      for ac_var in $ac_subst_files
2466      do
2467	eval ac_val=\$$ac_var
2468	case $ac_val in
2469	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2470	esac
2471	$as_echo "$ac_var='\''$ac_val'\''"
2472      done | sort
2473      echo
2474    fi
2475
2476    if test -s confdefs.h; then
2477      cat <<\_ASBOX
2478## ----------- ##
2479## confdefs.h. ##
2480## ----------- ##
2481_ASBOX
2482      echo
2483      cat confdefs.h
2484      echo
2485    fi
2486    test "$ac_signal" != 0 &&
2487      $as_echo "$as_me: caught signal $ac_signal"
2488    $as_echo "$as_me: exit $exit_status"
2489  } >&5
2490  rm -f core *.core core.conftest.* &&
2491    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2492    exit $exit_status
2493' 0
2494for ac_signal in 1 2 13 15; do
2495  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2496done
2497ac_signal=0
2498
2499# confdefs.h avoids OS command line length limits that DEFS can exceed.
2500rm -f -r conftest* confdefs.h
2501
2502$as_echo "/* confdefs.h */" > confdefs.h
2503
2504# Predefined preprocessor variables.
2505
2506cat >>confdefs.h <<_ACEOF
2507#define PACKAGE_NAME "$PACKAGE_NAME"
2508_ACEOF
2509
2510cat >>confdefs.h <<_ACEOF
2511#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2512_ACEOF
2513
2514cat >>confdefs.h <<_ACEOF
2515#define PACKAGE_VERSION "$PACKAGE_VERSION"
2516_ACEOF
2517
2518cat >>confdefs.h <<_ACEOF
2519#define PACKAGE_STRING "$PACKAGE_STRING"
2520_ACEOF
2521
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2524_ACEOF
2525
2526cat >>confdefs.h <<_ACEOF
2527#define PACKAGE_URL "$PACKAGE_URL"
2528_ACEOF
2529
2530
2531# Let the site file select an alternate cache file if it wants to.
2532# Prefer an explicitly selected file to automatically selected ones.
2533ac_site_file1=NONE
2534ac_site_file2=NONE
2535if test -n "$CONFIG_SITE"; then
2536  ac_site_file1=$CONFIG_SITE
2537elif test "x$prefix" != xNONE; then
2538  ac_site_file1=$prefix/share/config.site
2539  ac_site_file2=$prefix/etc/config.site
2540else
2541  ac_site_file1=$ac_default_prefix/share/config.site
2542  ac_site_file2=$ac_default_prefix/etc/config.site
2543fi
2544for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2545do
2546  test "x$ac_site_file" = xNONE && continue
2547  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2548    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2549$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2550    sed 's/^/| /' "$ac_site_file" >&5
2551    . "$ac_site_file"
2552  fi
2553done
2554
2555if test -r "$cache_file"; then
2556  # Some versions of bash will fail to source /dev/null (special files
2557  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2558  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2559    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2560$as_echo "$as_me: loading cache $cache_file" >&6;}
2561    case $cache_file in
2562      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2563      *)                      . "./$cache_file";;
2564    esac
2565  fi
2566else
2567  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2568$as_echo "$as_me: creating cache $cache_file" >&6;}
2569  >$cache_file
2570fi
2571
2572as_fn_append ac_header_list " stdlib.h"
2573as_fn_append ac_header_list " unistd.h"
2574as_fn_append ac_header_list " sys/param.h"
2575# Check that the precious variables saved in the cache have kept the same
2576# value.
2577ac_cache_corrupted=false
2578for ac_var in $ac_precious_vars; do
2579  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2580  eval ac_new_set=\$ac_env_${ac_var}_set
2581  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2582  eval ac_new_val=\$ac_env_${ac_var}_value
2583  case $ac_old_set,$ac_new_set in
2584    set,)
2585      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2586$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2587      ac_cache_corrupted=: ;;
2588    ,set)
2589      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2590$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2591      ac_cache_corrupted=: ;;
2592    ,);;
2593    *)
2594      if test "x$ac_old_val" != "x$ac_new_val"; then
2595	# differences in whitespace do not lead to failure.
2596	ac_old_val_w=`echo x $ac_old_val`
2597	ac_new_val_w=`echo x $ac_new_val`
2598	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2599	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2600$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2601	  ac_cache_corrupted=:
2602	else
2603	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2604$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2605	  eval $ac_var=\$ac_old_val
2606	fi
2607	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2608$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2609	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2610$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2611      fi;;
2612  esac
2613  # Pass precious variables to config.status.
2614  if test "$ac_new_set" = set; then
2615    case $ac_new_val in
2616    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2617    *) ac_arg=$ac_var=$ac_new_val ;;
2618    esac
2619    case " $ac_configure_args " in
2620      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2621      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2622    esac
2623  fi
2624done
2625if $ac_cache_corrupted; then
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2629$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2630  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2631fi
2632## -------------------- ##
2633## Main body of script. ##
2634## -------------------- ##
2635
2636ac_ext=c
2637ac_cpp='$CPP $CPPFLAGS'
2638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641
2642
2643ac_ext=c
2644ac_cpp='$CPP $CPPFLAGS'
2645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648if test -n "$ac_tool_prefix"; then
2649  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2650set dummy ${ac_tool_prefix}gcc; ac_word=$2
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if test "${ac_cv_prog_CC+set}" = set; then :
2654  $as_echo_n "(cached) " >&6
2655else
2656  if test -n "$CC"; then
2657  ac_cv_prog_CC="$CC" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662  IFS=$as_save_IFS
2663  test -z "$as_dir" && as_dir=.
2664    for ac_exec_ext in '' $ac_executable_extensions; do
2665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668    break 2
2669  fi
2670done
2671  done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676CC=$ac_cv_prog_CC
2677if test -n "$CC"; then
2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2679$as_echo "$CC" >&6; }
2680else
2681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
2683fi
2684
2685
2686fi
2687if test -z "$ac_cv_prog_CC"; then
2688  ac_ct_CC=$CC
2689  # Extract the first word of "gcc", so it can be a program name with args.
2690set dummy gcc; ac_word=$2
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692$as_echo_n "checking for $ac_word... " >&6; }
2693if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2694  $as_echo_n "(cached) " >&6
2695else
2696  if test -n "$ac_ct_CC"; then
2697  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702  IFS=$as_save_IFS
2703  test -z "$as_dir" && as_dir=.
2704    for ac_exec_ext in '' $ac_executable_extensions; do
2705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706    ac_cv_prog_ac_ct_CC="gcc"
2707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708    break 2
2709  fi
2710done
2711  done
2712IFS=$as_save_IFS
2713
2714fi
2715fi
2716ac_ct_CC=$ac_cv_prog_ac_ct_CC
2717if test -n "$ac_ct_CC"; then
2718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2719$as_echo "$ac_ct_CC" >&6; }
2720else
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722$as_echo "no" >&6; }
2723fi
2724
2725  if test "x$ac_ct_CC" = x; then
2726    CC=""
2727  else
2728    case $cross_compiling:$ac_tool_warned in
2729yes:)
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2732ac_tool_warned=yes ;;
2733esac
2734    CC=$ac_ct_CC
2735  fi
2736else
2737  CC="$ac_cv_prog_CC"
2738fi
2739
2740if test -z "$CC"; then
2741          if test -n "$ac_tool_prefix"; then
2742    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2743set dummy ${ac_tool_prefix}cc; ac_word=$2
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745$as_echo_n "checking for $ac_word... " >&6; }
2746if test "${ac_cv_prog_CC+set}" = set; then :
2747  $as_echo_n "(cached) " >&6
2748else
2749  if test -n "$CC"; then
2750  ac_cv_prog_CC="$CC" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755  IFS=$as_save_IFS
2756  test -z "$as_dir" && as_dir=.
2757    for ac_exec_ext in '' $ac_executable_extensions; do
2758  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759    ac_cv_prog_CC="${ac_tool_prefix}cc"
2760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761    break 2
2762  fi
2763done
2764  done
2765IFS=$as_save_IFS
2766
2767fi
2768fi
2769CC=$ac_cv_prog_CC
2770if test -n "$CC"; then
2771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772$as_echo "$CC" >&6; }
2773else
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775$as_echo "no" >&6; }
2776fi
2777
2778
2779  fi
2780fi
2781if test -z "$CC"; then
2782  # Extract the first word of "cc", so it can be a program name with args.
2783set dummy cc; ac_word=$2
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785$as_echo_n "checking for $ac_word... " >&6; }
2786if test "${ac_cv_prog_CC+set}" = set; then :
2787  $as_echo_n "(cached) " >&6
2788else
2789  if test -n "$CC"; then
2790  ac_cv_prog_CC="$CC" # Let the user override the test.
2791else
2792  ac_prog_rejected=no
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796  IFS=$as_save_IFS
2797  test -z "$as_dir" && as_dir=.
2798    for ac_exec_ext in '' $ac_executable_extensions; do
2799  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2801       ac_prog_rejected=yes
2802       continue
2803     fi
2804    ac_cv_prog_CC="cc"
2805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806    break 2
2807  fi
2808done
2809  done
2810IFS=$as_save_IFS
2811
2812if test $ac_prog_rejected = yes; then
2813  # We found a bogon in the path, so make sure we never use it.
2814  set dummy $ac_cv_prog_CC
2815  shift
2816  if test $# != 0; then
2817    # We chose a different compiler from the bogus one.
2818    # However, it has the same basename, so the bogon will be chosen
2819    # first if we set CC to just the basename; use the full file name.
2820    shift
2821    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2822  fi
2823fi
2824fi
2825fi
2826CC=$ac_cv_prog_CC
2827if test -n "$CC"; then
2828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2829$as_echo "$CC" >&6; }
2830else
2831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832$as_echo "no" >&6; }
2833fi
2834
2835
2836fi
2837if test -z "$CC"; then
2838  if test -n "$ac_tool_prefix"; then
2839  for ac_prog in cl.exe
2840  do
2841    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2842set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844$as_echo_n "checking for $ac_word... " >&6; }
2845if test "${ac_cv_prog_CC+set}" = set; then :
2846  $as_echo_n "(cached) " >&6
2847else
2848  if test -n "$CC"; then
2849  ac_cv_prog_CC="$CC" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856    for ac_exec_ext in '' $ac_executable_extensions; do
2857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860    break 2
2861  fi
2862done
2863  done
2864IFS=$as_save_IFS
2865
2866fi
2867fi
2868CC=$ac_cv_prog_CC
2869if test -n "$CC"; then
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871$as_echo "$CC" >&6; }
2872else
2873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874$as_echo "no" >&6; }
2875fi
2876
2877
2878    test -n "$CC" && break
2879  done
2880fi
2881if test -z "$CC"; then
2882  ac_ct_CC=$CC
2883  for ac_prog in cl.exe
2884do
2885  # Extract the first word of "$ac_prog", so it can be a program name with args.
2886set dummy $ac_prog; ac_word=$2
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888$as_echo_n "checking for $ac_word... " >&6; }
2889if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2890  $as_echo_n "(cached) " >&6
2891else
2892  if test -n "$ac_ct_CC"; then
2893  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894else
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898  IFS=$as_save_IFS
2899  test -z "$as_dir" && as_dir=.
2900    for ac_exec_ext in '' $ac_executable_extensions; do
2901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902    ac_cv_prog_ac_ct_CC="$ac_prog"
2903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904    break 2
2905  fi
2906done
2907  done
2908IFS=$as_save_IFS
2909
2910fi
2911fi
2912ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913if test -n "$ac_ct_CC"; then
2914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2915$as_echo "$ac_ct_CC" >&6; }
2916else
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918$as_echo "no" >&6; }
2919fi
2920
2921
2922  test -n "$ac_ct_CC" && break
2923done
2924
2925  if test "x$ac_ct_CC" = x; then
2926    CC=""
2927  else
2928    case $cross_compiling:$ac_tool_warned in
2929yes:)
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932ac_tool_warned=yes ;;
2933esac
2934    CC=$ac_ct_CC
2935  fi
2936fi
2937
2938fi
2939
2940
2941test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943as_fn_error "no acceptable C compiler found in \$PATH
2944See \`config.log' for more details." "$LINENO" 5; }
2945
2946# Provide some information about the compiler.
2947$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2948set X $ac_compile
2949ac_compiler=$2
2950for ac_option in --version -v -V -qversion; do
2951  { { ac_try="$ac_compiler $ac_option >&5"
2952case "(($ac_try" in
2953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954  *) ac_try_echo=$ac_try;;
2955esac
2956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957$as_echo "$ac_try_echo"; } >&5
2958  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2959  ac_status=$?
2960  if test -s conftest.err; then
2961    sed '10a\
2962... rest of stderr output deleted ...
2963         10q' conftest.err >conftest.er1
2964    cat conftest.er1 >&5
2965  fi
2966  rm -f conftest.er1 conftest.err
2967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968  test $ac_status = 0; }
2969done
2970
2971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2972/* end confdefs.h.  */
2973
2974int
2975main ()
2976{
2977
2978  ;
2979  return 0;
2980}
2981_ACEOF
2982ac_clean_files_save=$ac_clean_files
2983ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2984# Try to create an executable without -o first, disregard a.out.
2985# It will help us diagnose broken compilers, and finding out an intuition
2986# of exeext.
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2988$as_echo_n "checking whether the C compiler works... " >&6; }
2989ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2990
2991# The possible output files:
2992ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2993
2994ac_rmfiles=
2995for ac_file in $ac_files
2996do
2997  case $ac_file in
2998    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2999    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3000  esac
3001done
3002rm -f $ac_rmfiles
3003
3004if { { ac_try="$ac_link_default"
3005case "(($ac_try" in
3006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007  *) ac_try_echo=$ac_try;;
3008esac
3009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3010$as_echo "$ac_try_echo"; } >&5
3011  (eval "$ac_link_default") 2>&5
3012  ac_status=$?
3013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3014  test $ac_status = 0; }; then :
3015  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3016# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3017# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3018# so that the user can short-circuit this test for compilers unknown to
3019# Autoconf.
3020for ac_file in $ac_files ''
3021do
3022  test -f "$ac_file" || continue
3023  case $ac_file in
3024    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3025	;;
3026    [ab].out )
3027	# We found the default executable, but exeext='' is most
3028	# certainly right.
3029	break;;
3030    *.* )
3031	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3032	then :; else
3033	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3034	fi
3035	# We set ac_cv_exeext here because the later test for it is not
3036	# safe: cross compilers may not add the suffix if given an `-o'
3037	# argument, so we may need to know it at that point already.
3038	# Even if this section looks crufty: it has the advantage of
3039	# actually working.
3040	break;;
3041    * )
3042	break;;
3043  esac
3044done
3045test "$ac_cv_exeext" = no && ac_cv_exeext=
3046
3047else
3048  ac_file=''
3049fi
3050if test -z "$ac_file"; then :
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053$as_echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058{ as_fn_set_status 77
3059as_fn_error "C compiler cannot create executables
3060See \`config.log' for more details." "$LINENO" 5; }; }
3061else
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063$as_echo "yes" >&6; }
3064fi
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3066$as_echo_n "checking for C compiler default output file name... " >&6; }
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3068$as_echo "$ac_file" >&6; }
3069ac_exeext=$ac_cv_exeext
3070
3071rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3072ac_clean_files=$ac_clean_files_save
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3074$as_echo_n "checking for suffix of executables... " >&6; }
3075if { { ac_try="$ac_link"
3076case "(($ac_try" in
3077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078  *) ac_try_echo=$ac_try;;
3079esac
3080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081$as_echo "$ac_try_echo"; } >&5
3082  (eval "$ac_link") 2>&5
3083  ac_status=$?
3084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085  test $ac_status = 0; }; then :
3086  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3087# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3088# work properly (i.e., refer to `conftest.exe'), while it won't with
3089# `rm'.
3090for ac_file in conftest.exe conftest conftest.*; do
3091  test -f "$ac_file" || continue
3092  case $ac_file in
3093    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3094    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095	  break;;
3096    * ) break;;
3097  esac
3098done
3099else
3100  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102as_fn_error "cannot compute suffix of executables: cannot compile and link
3103See \`config.log' for more details." "$LINENO" 5; }
3104fi
3105rm -f conftest conftest$ac_cv_exeext
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3107$as_echo "$ac_cv_exeext" >&6; }
3108
3109rm -f conftest.$ac_ext
3110EXEEXT=$ac_cv_exeext
3111ac_exeext=$EXEEXT
3112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113/* end confdefs.h.  */
3114#include <stdio.h>
3115int
3116main ()
3117{
3118FILE *f = fopen ("conftest.out", "w");
3119 return ferror (f) || fclose (f) != 0;
3120
3121  ;
3122  return 0;
3123}
3124_ACEOF
3125ac_clean_files="$ac_clean_files conftest.out"
3126# Check that the compiler produces executables we can run.  If not, either
3127# the compiler is broken, or we cross compile.
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3129$as_echo_n "checking whether we are cross compiling... " >&6; }
3130if test "$cross_compiling" != yes; then
3131  { { ac_try="$ac_link"
3132case "(($ac_try" in
3133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134  *) ac_try_echo=$ac_try;;
3135esac
3136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137$as_echo "$ac_try_echo"; } >&5
3138  (eval "$ac_link") 2>&5
3139  ac_status=$?
3140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141  test $ac_status = 0; }
3142  if { ac_try='./conftest$ac_cv_exeext'
3143  { { case "(($ac_try" in
3144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145  *) ac_try_echo=$ac_try;;
3146esac
3147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148$as_echo "$ac_try_echo"; } >&5
3149  (eval "$ac_try") 2>&5
3150  ac_status=$?
3151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152  test $ac_status = 0; }; }; then
3153    cross_compiling=no
3154  else
3155    if test "$cross_compiling" = maybe; then
3156	cross_compiling=yes
3157    else
3158	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160as_fn_error "cannot run C compiled programs.
3161If you meant to cross compile, use \`--host'.
3162See \`config.log' for more details." "$LINENO" 5; }
3163    fi
3164  fi
3165fi
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3167$as_echo "$cross_compiling" >&6; }
3168
3169rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3170ac_clean_files=$ac_clean_files_save
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3172$as_echo_n "checking for suffix of object files... " >&6; }
3173if test "${ac_cv_objext+set}" = set; then :
3174  $as_echo_n "(cached) " >&6
3175else
3176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177/* end confdefs.h.  */
3178
3179int
3180main ()
3181{
3182
3183  ;
3184  return 0;
3185}
3186_ACEOF
3187rm -f conftest.o conftest.obj
3188if { { ac_try="$ac_compile"
3189case "(($ac_try" in
3190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191  *) ac_try_echo=$ac_try;;
3192esac
3193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194$as_echo "$ac_try_echo"; } >&5
3195  (eval "$ac_compile") 2>&5
3196  ac_status=$?
3197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198  test $ac_status = 0; }; then :
3199  for ac_file in conftest.o conftest.obj conftest.*; do
3200  test -f "$ac_file" || continue;
3201  case $ac_file in
3202    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3203    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3204       break;;
3205  esac
3206done
3207else
3208  $as_echo "$as_me: failed program was:" >&5
3209sed 's/^/| /' conftest.$ac_ext >&5
3210
3211{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213as_fn_error "cannot compute suffix of object files: cannot compile
3214See \`config.log' for more details." "$LINENO" 5; }
3215fi
3216rm -f conftest.$ac_cv_objext conftest.$ac_ext
3217fi
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3219$as_echo "$ac_cv_objext" >&6; }
3220OBJEXT=$ac_cv_objext
3221ac_objext=$OBJEXT
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3223$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3224if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3225  $as_echo_n "(cached) " >&6
3226else
3227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228/* end confdefs.h.  */
3229
3230int
3231main ()
3232{
3233#ifndef __GNUC__
3234       choke me
3235#endif
3236
3237  ;
3238  return 0;
3239}
3240_ACEOF
3241if ac_fn_c_try_compile "$LINENO"; then :
3242  ac_compiler_gnu=yes
3243else
3244  ac_compiler_gnu=no
3245fi
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247ac_cv_c_compiler_gnu=$ac_compiler_gnu
3248
3249fi
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3251$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3252if test $ac_compiler_gnu = yes; then
3253  GCC=yes
3254else
3255  GCC=
3256fi
3257ac_test_CFLAGS=${CFLAGS+set}
3258ac_save_CFLAGS=$CFLAGS
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3260$as_echo_n "checking whether $CC accepts -g... " >&6; }
3261if test "${ac_cv_prog_cc_g+set}" = set; then :
3262  $as_echo_n "(cached) " >&6
3263else
3264  ac_save_c_werror_flag=$ac_c_werror_flag
3265   ac_c_werror_flag=yes
3266   ac_cv_prog_cc_g=no
3267   CFLAGS="-g"
3268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269/* end confdefs.h.  */
3270
3271int
3272main ()
3273{
3274
3275  ;
3276  return 0;
3277}
3278_ACEOF
3279if ac_fn_c_try_compile "$LINENO"; then :
3280  ac_cv_prog_cc_g=yes
3281else
3282  CFLAGS=""
3283      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284/* end confdefs.h.  */
3285
3286int
3287main ()
3288{
3289
3290  ;
3291  return 0;
3292}
3293_ACEOF
3294if ac_fn_c_try_compile "$LINENO"; then :
3295
3296else
3297  ac_c_werror_flag=$ac_save_c_werror_flag
3298	 CFLAGS="-g"
3299	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300/* end confdefs.h.  */
3301
3302int
3303main ()
3304{
3305
3306  ;
3307  return 0;
3308}
3309_ACEOF
3310if ac_fn_c_try_compile "$LINENO"; then :
3311  ac_cv_prog_cc_g=yes
3312fi
3313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314fi
3315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316fi
3317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318   ac_c_werror_flag=$ac_save_c_werror_flag
3319fi
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3321$as_echo "$ac_cv_prog_cc_g" >&6; }
3322if test "$ac_test_CFLAGS" = set; then
3323  CFLAGS=$ac_save_CFLAGS
3324elif test $ac_cv_prog_cc_g = yes; then
3325  if test "$GCC" = yes; then
3326    CFLAGS="-g -O2"
3327  else
3328    CFLAGS="-g"
3329  fi
3330else
3331  if test "$GCC" = yes; then
3332    CFLAGS="-O2"
3333  else
3334    CFLAGS=
3335  fi
3336fi
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3338$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3339if test "${ac_cv_prog_cc_c89+set}" = set; then :
3340  $as_echo_n "(cached) " >&6
3341else
3342  ac_cv_prog_cc_c89=no
3343ac_save_CC=$CC
3344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345/* end confdefs.h.  */
3346#include <stdarg.h>
3347#include <stdio.h>
3348#include <sys/types.h>
3349#include <sys/stat.h>
3350/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3351struct buf { int x; };
3352FILE * (*rcsopen) (struct buf *, struct stat *, int);
3353static char *e (p, i)
3354     char **p;
3355     int i;
3356{
3357  return p[i];
3358}
3359static char *f (char * (*g) (char **, int), char **p, ...)
3360{
3361  char *s;
3362  va_list v;
3363  va_start (v,p);
3364  s = g (p, va_arg (v,int));
3365  va_end (v);
3366  return s;
3367}
3368
3369/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3370   function prototypes and stuff, but not '\xHH' hex character constants.
3371   These don't provoke an error unfortunately, instead are silently treated
3372   as 'x'.  The following induces an error, until -std is added to get
3373   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3374   array size at least.  It's necessary to write '\x00'==0 to get something
3375   that's true only with -std.  */
3376int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3377
3378/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3379   inside strings and character constants.  */
3380#define FOO(x) 'x'
3381int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3382
3383int test (int i, double x);
3384struct s1 {int (*f) (int a);};
3385struct s2 {int (*f) (double a);};
3386int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3387int argc;
3388char **argv;
3389int
3390main ()
3391{
3392return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3398	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3399do
3400  CC="$ac_save_CC $ac_arg"
3401  if ac_fn_c_try_compile "$LINENO"; then :
3402  ac_cv_prog_cc_c89=$ac_arg
3403fi
3404rm -f core conftest.err conftest.$ac_objext
3405  test "x$ac_cv_prog_cc_c89" != "xno" && break
3406done
3407rm -f conftest.$ac_ext
3408CC=$ac_save_CC
3409
3410fi
3411# AC_CACHE_VAL
3412case "x$ac_cv_prog_cc_c89" in
3413  x)
3414    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3415$as_echo "none needed" >&6; } ;;
3416  xno)
3417    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3418$as_echo "unsupported" >&6; } ;;
3419  *)
3420    CC="$CC $ac_cv_prog_cc_c89"
3421    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3422$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3423esac
3424if test "x$ac_cv_prog_cc_c89" != xno; then :
3425
3426fi
3427
3428ac_ext=c
3429ac_cpp='$CPP $CPPFLAGS'
3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
3434
3435ac_ext=c
3436ac_cpp='$CPP $CPPFLAGS'
3437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3441$as_echo_n "checking how to run the C preprocessor... " >&6; }
3442# On Suns, sometimes $CPP names a directory.
3443if test -n "$CPP" && test -d "$CPP"; then
3444  CPP=
3445fi
3446if test -z "$CPP"; then
3447  if test "${ac_cv_prog_CPP+set}" = set; then :
3448  $as_echo_n "(cached) " >&6
3449else
3450      # Double quotes because CPP needs to be expanded
3451    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3452    do
3453      ac_preproc_ok=false
3454for ac_c_preproc_warn_flag in '' yes
3455do
3456  # Use a header file that comes with gcc, so configuring glibc
3457  # with a fresh cross-compiler works.
3458  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459  # <limits.h> exists even on freestanding compilers.
3460  # On the NeXT, cc -E runs the code through the compiler's parser,
3461  # not just through cpp. "Syntax error" is here to catch this case.
3462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463/* end confdefs.h.  */
3464#ifdef __STDC__
3465# include <limits.h>
3466#else
3467# include <assert.h>
3468#endif
3469		     Syntax error
3470_ACEOF
3471if ac_fn_c_try_cpp "$LINENO"; then :
3472
3473else
3474  # Broken: fails on valid input.
3475continue
3476fi
3477rm -f conftest.err conftest.$ac_ext
3478
3479  # OK, works on sane cases.  Now check whether nonexistent headers
3480  # can be detected and how.
3481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482/* end confdefs.h.  */
3483#include <ac_nonexistent.h>
3484_ACEOF
3485if ac_fn_c_try_cpp "$LINENO"; then :
3486  # Broken: success on invalid input.
3487continue
3488else
3489  # Passes both tests.
3490ac_preproc_ok=:
3491break
3492fi
3493rm -f conftest.err conftest.$ac_ext
3494
3495done
3496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497rm -f conftest.err conftest.$ac_ext
3498if $ac_preproc_ok; then :
3499  break
3500fi
3501
3502    done
3503    ac_cv_prog_CPP=$CPP
3504
3505fi
3506  CPP=$ac_cv_prog_CPP
3507else
3508  ac_cv_prog_CPP=$CPP
3509fi
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3511$as_echo "$CPP" >&6; }
3512ac_preproc_ok=false
3513for ac_c_preproc_warn_flag in '' yes
3514do
3515  # Use a header file that comes with gcc, so configuring glibc
3516  # with a fresh cross-compiler works.
3517  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518  # <limits.h> exists even on freestanding compilers.
3519  # On the NeXT, cc -E runs the code through the compiler's parser,
3520  # not just through cpp. "Syntax error" is here to catch this case.
3521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h.  */
3523#ifdef __STDC__
3524# include <limits.h>
3525#else
3526# include <assert.h>
3527#endif
3528		     Syntax error
3529_ACEOF
3530if ac_fn_c_try_cpp "$LINENO"; then :
3531
3532else
3533  # Broken: fails on valid input.
3534continue
3535fi
3536rm -f conftest.err conftest.$ac_ext
3537
3538  # OK, works on sane cases.  Now check whether nonexistent headers
3539  # can be detected and how.
3540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542#include <ac_nonexistent.h>
3543_ACEOF
3544if ac_fn_c_try_cpp "$LINENO"; then :
3545  # Broken: success on invalid input.
3546continue
3547else
3548  # Passes both tests.
3549ac_preproc_ok=:
3550break
3551fi
3552rm -f conftest.err conftest.$ac_ext
3553
3554done
3555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3556rm -f conftest.err conftest.$ac_ext
3557if $ac_preproc_ok; then :
3558
3559else
3560  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3562as_fn_error "C preprocessor \"$CPP\" fails sanity check
3563See \`config.log' for more details." "$LINENO" 5; }
3564fi
3565
3566ac_ext=c
3567ac_cpp='$CPP $CPPFLAGS'
3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571
3572
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3574$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3575if test "${ac_cv_path_GREP+set}" = set; then :
3576  $as_echo_n "(cached) " >&6
3577else
3578  if test -z "$GREP"; then
3579  ac_path_GREP_found=false
3580  # Loop through the user's path and test for each of PROGNAME-LIST
3581  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3583do
3584  IFS=$as_save_IFS
3585  test -z "$as_dir" && as_dir=.
3586    for ac_prog in grep ggrep; do
3587    for ac_exec_ext in '' $ac_executable_extensions; do
3588      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3589      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3590# Check for GNU ac_path_GREP and select it if it is found.
3591  # Check for GNU $ac_path_GREP
3592case `"$ac_path_GREP" --version 2>&1` in
3593*GNU*)
3594  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3595*)
3596  ac_count=0
3597  $as_echo_n 0123456789 >"conftest.in"
3598  while :
3599  do
3600    cat "conftest.in" "conftest.in" >"conftest.tmp"
3601    mv "conftest.tmp" "conftest.in"
3602    cp "conftest.in" "conftest.nl"
3603    $as_echo 'GREP' >> "conftest.nl"
3604    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3605    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3606    as_fn_arith $ac_count + 1 && ac_count=$as_val
3607    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3608      # Best one so far, save it but keep looking for a better one
3609      ac_cv_path_GREP="$ac_path_GREP"
3610      ac_path_GREP_max=$ac_count
3611    fi
3612    # 10*(2^10) chars as input seems more than enough
3613    test $ac_count -gt 10 && break
3614  done
3615  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3616esac
3617
3618      $ac_path_GREP_found && break 3
3619    done
3620  done
3621  done
3622IFS=$as_save_IFS
3623  if test -z "$ac_cv_path_GREP"; then
3624    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3625  fi
3626else
3627  ac_cv_path_GREP=$GREP
3628fi
3629
3630fi
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3632$as_echo "$ac_cv_path_GREP" >&6; }
3633 GREP="$ac_cv_path_GREP"
3634
3635
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3637$as_echo_n "checking for egrep... " >&6; }
3638if test "${ac_cv_path_EGREP+set}" = set; then :
3639  $as_echo_n "(cached) " >&6
3640else
3641  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3642   then ac_cv_path_EGREP="$GREP -E"
3643   else
3644     if test -z "$EGREP"; then
3645  ac_path_EGREP_found=false
3646  # Loop through the user's path and test for each of PROGNAME-LIST
3647  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3649do
3650  IFS=$as_save_IFS
3651  test -z "$as_dir" && as_dir=.
3652    for ac_prog in egrep; do
3653    for ac_exec_ext in '' $ac_executable_extensions; do
3654      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3655      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3656# Check for GNU ac_path_EGREP and select it if it is found.
3657  # Check for GNU $ac_path_EGREP
3658case `"$ac_path_EGREP" --version 2>&1` in
3659*GNU*)
3660  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3661*)
3662  ac_count=0
3663  $as_echo_n 0123456789 >"conftest.in"
3664  while :
3665  do
3666    cat "conftest.in" "conftest.in" >"conftest.tmp"
3667    mv "conftest.tmp" "conftest.in"
3668    cp "conftest.in" "conftest.nl"
3669    $as_echo 'EGREP' >> "conftest.nl"
3670    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3671    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3672    as_fn_arith $ac_count + 1 && ac_count=$as_val
3673    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3674      # Best one so far, save it but keep looking for a better one
3675      ac_cv_path_EGREP="$ac_path_EGREP"
3676      ac_path_EGREP_max=$ac_count
3677    fi
3678    # 10*(2^10) chars as input seems more than enough
3679    test $ac_count -gt 10 && break
3680  done
3681  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3682esac
3683
3684      $ac_path_EGREP_found && break 3
3685    done
3686  done
3687  done
3688IFS=$as_save_IFS
3689  if test -z "$ac_cv_path_EGREP"; then
3690    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3691  fi
3692else
3693  ac_cv_path_EGREP=$EGREP
3694fi
3695
3696   fi
3697fi
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3699$as_echo "$ac_cv_path_EGREP" >&6; }
3700 EGREP="$ac_cv_path_EGREP"
3701
3702
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3704$as_echo_n "checking for ANSI C header files... " >&6; }
3705if test "${ac_cv_header_stdc+set}" = set; then :
3706  $as_echo_n "(cached) " >&6
3707else
3708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709/* end confdefs.h.  */
3710#include <stdlib.h>
3711#include <stdarg.h>
3712#include <string.h>
3713#include <float.h>
3714
3715int
3716main ()
3717{
3718
3719  ;
3720  return 0;
3721}
3722_ACEOF
3723if ac_fn_c_try_compile "$LINENO"; then :
3724  ac_cv_header_stdc=yes
3725else
3726  ac_cv_header_stdc=no
3727fi
3728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729
3730if test $ac_cv_header_stdc = yes; then
3731  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h.  */
3734#include <string.h>
3735
3736_ACEOF
3737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3738  $EGREP "memchr" >/dev/null 2>&1; then :
3739
3740else
3741  ac_cv_header_stdc=no
3742fi
3743rm -f conftest*
3744
3745fi
3746
3747if test $ac_cv_header_stdc = yes; then
3748  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h.  */
3751#include <stdlib.h>
3752
3753_ACEOF
3754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755  $EGREP "free" >/dev/null 2>&1; then :
3756
3757else
3758  ac_cv_header_stdc=no
3759fi
3760rm -f conftest*
3761
3762fi
3763
3764if test $ac_cv_header_stdc = yes; then
3765  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3766  if test "$cross_compiling" = yes; then :
3767  :
3768else
3769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770/* end confdefs.h.  */
3771#include <ctype.h>
3772#include <stdlib.h>
3773#if ((' ' & 0x0FF) == 0x020)
3774# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3775# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3776#else
3777# define ISLOWER(c) \
3778		   (('a' <= (c) && (c) <= 'i') \
3779		     || ('j' <= (c) && (c) <= 'r') \
3780		     || ('s' <= (c) && (c) <= 'z'))
3781# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3782#endif
3783
3784#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3785int
3786main ()
3787{
3788  int i;
3789  for (i = 0; i < 256; i++)
3790    if (XOR (islower (i), ISLOWER (i))
3791	|| toupper (i) != TOUPPER (i))
3792      return 2;
3793  return 0;
3794}
3795_ACEOF
3796if ac_fn_c_try_run "$LINENO"; then :
3797
3798else
3799  ac_cv_header_stdc=no
3800fi
3801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3802  conftest.$ac_objext conftest.beam conftest.$ac_ext
3803fi
3804
3805fi
3806fi
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3808$as_echo "$ac_cv_header_stdc" >&6; }
3809if test $ac_cv_header_stdc = yes; then
3810
3811$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3812
3813fi
3814
3815# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3816for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3817		  inttypes.h stdint.h unistd.h
3818do :
3819  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3820ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3821"
3822eval as_val=\$$as_ac_Header
3823   if test "x$as_val" = x""yes; then :
3824  cat >>confdefs.h <<_ACEOF
3825#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3826_ACEOF
3827
3828fi
3829
3830done
3831
3832
3833
3834  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3835if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3836  MINIX=yes
3837else
3838  MINIX=
3839fi
3840
3841
3842  if test "$MINIX" = yes; then
3843
3844$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3845
3846
3847$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3848
3849
3850$as_echo "#define _MINIX 1" >>confdefs.h
3851
3852  fi
3853
3854
3855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3856$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3857if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3858  $as_echo_n "(cached) " >&6
3859else
3860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861/* end confdefs.h.  */
3862
3863#	  define __EXTENSIONS__ 1
3864	  $ac_includes_default
3865int
3866main ()
3867{
3868
3869  ;
3870  return 0;
3871}
3872_ACEOF
3873if ac_fn_c_try_compile "$LINENO"; then :
3874  ac_cv_safe_to_define___extensions__=yes
3875else
3876  ac_cv_safe_to_define___extensions__=no
3877fi
3878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879fi
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3881$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3882  test $ac_cv_safe_to_define___extensions__ = yes &&
3883    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3884
3885  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3886
3887  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3888
3889  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3890
3891  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3892
3893
3894
3895
3896am__api_version='1.11'
3897
3898ac_aux_dir=
3899for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3900  for ac_t in install-sh install.sh shtool; do
3901    if test -f "$ac_dir/$ac_t"; then
3902      ac_aux_dir=$ac_dir
3903      ac_install_sh="$ac_aux_dir/$ac_t -c"
3904      break 2
3905    fi
3906  done
3907done
3908if test -z "$ac_aux_dir"; then
3909  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3910fi
3911
3912# These three variables are undocumented and unsupported,
3913# and are intended to be withdrawn in a future Autoconf release.
3914# They can cause serious problems if a builder's source tree is in a directory
3915# whose full name contains unusual characters.
3916ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3917ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3918ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3919
3920
3921# Find a good install program.  We prefer a C program (faster),
3922# so one script is as good as another.  But avoid the broken or
3923# incompatible versions:
3924# SysV /etc/install, /usr/sbin/install
3925# SunOS /usr/etc/install
3926# IRIX /sbin/install
3927# AIX /bin/install
3928# AmigaOS /C/install, which installs bootblocks on floppy discs
3929# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3930# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3931# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3932# OS/2's system install, which has a completely different semantic
3933# ./install, which can be erroneously created by make from ./install.sh.
3934# Reject install programs that cannot install multiple files.
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3936$as_echo_n "checking for a BSD-compatible install... " >&6; }
3937if test -z "$INSTALL"; then
3938if test "${ac_cv_path_install+set}" = set; then :
3939  $as_echo_n "(cached) " >&6
3940else
3941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944  IFS=$as_save_IFS
3945  test -z "$as_dir" && as_dir=.
3946    # Account for people who put trailing slashes in PATH elements.
3947case $as_dir/ in #((
3948  ./ | .// | /[cC]/* | \
3949  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3950  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3951  /usr/ucb/* ) ;;
3952  *)
3953    # OSF1 and SCO ODT 3.0 have their own names for install.
3954    # Don't use installbsd from OSF since it installs stuff as root
3955    # by default.
3956    for ac_prog in ginstall scoinst install; do
3957      for ac_exec_ext in '' $ac_executable_extensions; do
3958	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3959	  if test $ac_prog = install &&
3960	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3961	    # AIX install.  It has an incompatible calling convention.
3962	    :
3963	  elif test $ac_prog = install &&
3964	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3965	    # program-specific install script used by HP pwplus--don't use.
3966	    :
3967	  else
3968	    rm -rf conftest.one conftest.two conftest.dir
3969	    echo one > conftest.one
3970	    echo two > conftest.two
3971	    mkdir conftest.dir
3972	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3973	      test -s conftest.one && test -s conftest.two &&
3974	      test -s conftest.dir/conftest.one &&
3975	      test -s conftest.dir/conftest.two
3976	    then
3977	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3978	      break 3
3979	    fi
3980	  fi
3981	fi
3982      done
3983    done
3984    ;;
3985esac
3986
3987  done
3988IFS=$as_save_IFS
3989
3990rm -rf conftest.one conftest.two conftest.dir
3991
3992fi
3993  if test "${ac_cv_path_install+set}" = set; then
3994    INSTALL=$ac_cv_path_install
3995  else
3996    # As a last resort, use the slow shell script.  Don't cache a
3997    # value for INSTALL within a source directory, because that will
3998    # break other packages using the cache if that directory is
3999    # removed, or if the value is a relative name.
4000    INSTALL=$ac_install_sh
4001  fi
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4004$as_echo "$INSTALL" >&6; }
4005
4006# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4007# It thinks the first close brace ends the variable substitution.
4008test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4009
4010test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4011
4012test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4013
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4015$as_echo_n "checking whether build environment is sane... " >&6; }
4016# Just in case
4017sleep 1
4018echo timestamp > conftest.file
4019# Reject unsafe characters in $srcdir or the absolute working directory
4020# name.  Accept space and tab only in the latter.
4021am_lf='
4022'
4023case `pwd` in
4024  *[\\\"\#\$\&\'\`$am_lf]*)
4025    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4026esac
4027case $srcdir in
4028  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4029    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4030esac
4031
4032# Do `set' in a subshell so we don't clobber the current shell's
4033# arguments.  Must try -L first in case configure is actually a
4034# symlink; some systems play weird games with the mod time of symlinks
4035# (eg FreeBSD returns the mod time of the symlink's containing
4036# directory).
4037if (
4038   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4039   if test "$*" = "X"; then
4040      # -L didn't work.
4041      set X `ls -t "$srcdir/configure" conftest.file`
4042   fi
4043   rm -f conftest.file
4044   if test "$*" != "X $srcdir/configure conftest.file" \
4045      && test "$*" != "X conftest.file $srcdir/configure"; then
4046
4047      # If neither matched, then we have a broken ls.  This can happen
4048      # if, for instance, CONFIG_SHELL is bash and it inherits a
4049      # broken ls alias from the environment.  This has actually
4050      # happened.  Such a system could not be considered "sane".
4051      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4052alias in your environment" "$LINENO" 5
4053   fi
4054
4055   test "$2" = conftest.file
4056   )
4057then
4058   # Ok.
4059   :
4060else
4061   as_fn_error "newly created file is older than distributed files!
4062Check your system clock" "$LINENO" 5
4063fi
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4065$as_echo "yes" >&6; }
4066test "$program_prefix" != NONE &&
4067  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4068# Use a double $ so make ignores it.
4069test "$program_suffix" != NONE &&
4070  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4071# Double any \ or $.
4072# By default was `s,x,x', remove it if useless.
4073ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4074program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4075
4076# expand $ac_aux_dir to an absolute path
4077am_aux_dir=`cd $ac_aux_dir && pwd`
4078
4079if test x"${MISSING+set}" != xset; then
4080  case $am_aux_dir in
4081  *\ * | *\	*)
4082    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4083  *)
4084    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4085  esac
4086fi
4087# Use eval to expand $SHELL
4088if eval "$MISSING --run true"; then
4089  am_missing_run="$MISSING --run "
4090else
4091  am_missing_run=
4092  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4093$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4094fi
4095
4096if test x"${install_sh}" != xset; then
4097  case $am_aux_dir in
4098  *\ * | *\	*)
4099    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4100  *)
4101    install_sh="\${SHELL} $am_aux_dir/install-sh"
4102  esac
4103fi
4104
4105# Installed binaries are usually stripped using `strip' when the user
4106# run `make install-strip'.  However `strip' might not be the right
4107# tool to use in cross-compilation environments, therefore Automake
4108# will honor the `STRIP' environment variable to overrule this program.
4109if test "$cross_compiling" != no; then
4110  if test -n "$ac_tool_prefix"; then
4111  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4112set dummy ${ac_tool_prefix}strip; ac_word=$2
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114$as_echo_n "checking for $ac_word... " >&6; }
4115if test "${ac_cv_prog_STRIP+set}" = set; then :
4116  $as_echo_n "(cached) " >&6
4117else
4118  if test -n "$STRIP"; then
4119  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4120else
4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124  IFS=$as_save_IFS
4125  test -z "$as_dir" && as_dir=.
4126    for ac_exec_ext in '' $ac_executable_extensions; do
4127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130    break 2
4131  fi
4132done
4133  done
4134IFS=$as_save_IFS
4135
4136fi
4137fi
4138STRIP=$ac_cv_prog_STRIP
4139if test -n "$STRIP"; then
4140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4141$as_echo "$STRIP" >&6; }
4142else
4143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144$as_echo "no" >&6; }
4145fi
4146
4147
4148fi
4149if test -z "$ac_cv_prog_STRIP"; then
4150  ac_ct_STRIP=$STRIP
4151  # Extract the first word of "strip", so it can be a program name with args.
4152set dummy strip; ac_word=$2
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154$as_echo_n "checking for $ac_word... " >&6; }
4155if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4156  $as_echo_n "(cached) " >&6
4157else
4158  if test -n "$ac_ct_STRIP"; then
4159  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4160else
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164  IFS=$as_save_IFS
4165  test -z "$as_dir" && as_dir=.
4166    for ac_exec_ext in '' $ac_executable_extensions; do
4167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168    ac_cv_prog_ac_ct_STRIP="strip"
4169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170    break 2
4171  fi
4172done
4173  done
4174IFS=$as_save_IFS
4175
4176fi
4177fi
4178ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4179if test -n "$ac_ct_STRIP"; then
4180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4181$as_echo "$ac_ct_STRIP" >&6; }
4182else
4183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184$as_echo "no" >&6; }
4185fi
4186
4187  if test "x$ac_ct_STRIP" = x; then
4188    STRIP=":"
4189  else
4190    case $cross_compiling:$ac_tool_warned in
4191yes:)
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194ac_tool_warned=yes ;;
4195esac
4196    STRIP=$ac_ct_STRIP
4197  fi
4198else
4199  STRIP="$ac_cv_prog_STRIP"
4200fi
4201
4202fi
4203INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4204
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4206$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4207if test -z "$MKDIR_P"; then
4208  if test "${ac_cv_path_mkdir+set}" = set; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4213do
4214  IFS=$as_save_IFS
4215  test -z "$as_dir" && as_dir=.
4216    for ac_prog in mkdir gmkdir; do
4217	 for ac_exec_ext in '' $ac_executable_extensions; do
4218	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4219	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4220	     'mkdir (GNU coreutils) '* | \
4221	     'mkdir (coreutils) '* | \
4222	     'mkdir (fileutils) '4.1*)
4223	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4224	       break 3;;
4225	   esac
4226	 done
4227       done
4228  done
4229IFS=$as_save_IFS
4230
4231fi
4232
4233  test -d ./--version && rmdir ./--version
4234  if test "${ac_cv_path_mkdir+set}" = set; then
4235    MKDIR_P="$ac_cv_path_mkdir -p"
4236  else
4237    # As a last resort, use the slow shell script.  Don't cache a
4238    # value for MKDIR_P within a source directory, because that will
4239    # break other packages using the cache if that directory is
4240    # removed, or if the value is a relative name.
4241    MKDIR_P="$ac_install_sh -d"
4242  fi
4243fi
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4245$as_echo "$MKDIR_P" >&6; }
4246
4247mkdir_p="$MKDIR_P"
4248case $mkdir_p in
4249  [\\/$]* | ?:[\\/]*) ;;
4250  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4251esac
4252
4253for ac_prog in gawk mawk nawk awk
4254do
4255  # Extract the first word of "$ac_prog", so it can be a program name with args.
4256set dummy $ac_prog; ac_word=$2
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258$as_echo_n "checking for $ac_word... " >&6; }
4259if test "${ac_cv_prog_AWK+set}" = set; then :
4260  $as_echo_n "(cached) " >&6
4261else
4262  if test -n "$AWK"; then
4263  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4264else
4265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268  IFS=$as_save_IFS
4269  test -z "$as_dir" && as_dir=.
4270    for ac_exec_ext in '' $ac_executable_extensions; do
4271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272    ac_cv_prog_AWK="$ac_prog"
4273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274    break 2
4275  fi
4276done
4277  done
4278IFS=$as_save_IFS
4279
4280fi
4281fi
4282AWK=$ac_cv_prog_AWK
4283if test -n "$AWK"; then
4284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4285$as_echo "$AWK" >&6; }
4286else
4287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288$as_echo "no" >&6; }
4289fi
4290
4291
4292  test -n "$AWK" && break
4293done
4294
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4296$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4297set x ${MAKE-make}
4298ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4299if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4300  $as_echo_n "(cached) " >&6
4301else
4302  cat >conftest.make <<\_ACEOF
4303SHELL = /bin/sh
4304all:
4305	@echo '@@@%%%=$(MAKE)=@@@%%%'
4306_ACEOF
4307# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4308case `${MAKE-make} -f conftest.make 2>/dev/null` in
4309  *@@@%%%=?*=@@@%%%*)
4310    eval ac_cv_prog_make_${ac_make}_set=yes;;
4311  *)
4312    eval ac_cv_prog_make_${ac_make}_set=no;;
4313esac
4314rm -f conftest.make
4315fi
4316if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4318$as_echo "yes" >&6; }
4319  SET_MAKE=
4320else
4321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322$as_echo "no" >&6; }
4323  SET_MAKE="MAKE=${MAKE-make}"
4324fi
4325
4326rm -rf .tst 2>/dev/null
4327mkdir .tst 2>/dev/null
4328if test -d .tst; then
4329  am__leading_dot=.
4330else
4331  am__leading_dot=_
4332fi
4333rmdir .tst 2>/dev/null
4334
4335DEPDIR="${am__leading_dot}deps"
4336
4337ac_config_commands="$ac_config_commands depfiles"
4338
4339
4340am_make=${MAKE-make}
4341cat > confinc << 'END'
4342am__doit:
4343	@echo this is the am__doit target
4344.PHONY: am__doit
4345END
4346# If we don't find an include directive, just comment out the code.
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4348$as_echo_n "checking for style of include used by $am_make... " >&6; }
4349am__include="#"
4350am__quote=
4351_am_result=none
4352# First try GNU make style include.
4353echo "include confinc" > confmf
4354# Ignore all kinds of additional output from `make'.
4355case `$am_make -s -f confmf 2> /dev/null` in #(
4356*the\ am__doit\ target*)
4357  am__include=include
4358  am__quote=
4359  _am_result=GNU
4360  ;;
4361esac
4362# Now try BSD make style include.
4363if test "$am__include" = "#"; then
4364   echo '.include "confinc"' > confmf
4365   case `$am_make -s -f confmf 2> /dev/null` in #(
4366   *the\ am__doit\ target*)
4367     am__include=.include
4368     am__quote="\""
4369     _am_result=BSD
4370     ;;
4371   esac
4372fi
4373
4374
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4376$as_echo "$_am_result" >&6; }
4377rm -f confinc confmf
4378
4379# Check whether --enable-dependency-tracking was given.
4380if test "${enable_dependency_tracking+set}" = set; then :
4381  enableval=$enable_dependency_tracking;
4382fi
4383
4384if test "x$enable_dependency_tracking" != xno; then
4385  am_depcomp="$ac_aux_dir/depcomp"
4386  AMDEPBACKSLASH='\'
4387fi
4388 if test "x$enable_dependency_tracking" != xno; then
4389  AMDEP_TRUE=
4390  AMDEP_FALSE='#'
4391else
4392  AMDEP_TRUE='#'
4393  AMDEP_FALSE=
4394fi
4395
4396
4397if test "`cd $srcdir && pwd`" != "`pwd`"; then
4398  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4399  # is not polluted with repeated "-I."
4400  am__isrc=' -I$(srcdir)'
4401  # test to see if srcdir already configured
4402  if test -f $srcdir/config.status; then
4403    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4404  fi
4405fi
4406
4407# test whether we have cygpath
4408if test -z "$CYGPATH_W"; then
4409  if (cygpath --version) >/dev/null 2>/dev/null; then
4410    CYGPATH_W='cygpath -w'
4411  else
4412    CYGPATH_W=echo
4413  fi
4414fi
4415
4416
4417# Define the identity of the package.
4418 PACKAGE='mydns'
4419 VERSION='1.2.8.31'
4420
4421
4422cat >>confdefs.h <<_ACEOF
4423#define PACKAGE "$PACKAGE"
4424_ACEOF
4425
4426
4427cat >>confdefs.h <<_ACEOF
4428#define VERSION "$VERSION"
4429_ACEOF
4430
4431# Some tools Automake needs.
4432
4433ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4434
4435
4436AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4437
4438
4439AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4440
4441
4442AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4443
4444
4445MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4446
4447# We need awk for the "check" target.  The system "awk" is bad on
4448# some platforms.
4449# Always define AMTAR for backward compatibility.
4450
4451AMTAR=${AMTAR-"${am_missing_run}tar"}
4452
4453am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4454
4455
4456
4457
4458depcc="$CC"   am_compiler_list=
4459
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4461$as_echo_n "checking dependency style of $depcc... " >&6; }
4462if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4463  $as_echo_n "(cached) " >&6
4464else
4465  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4466  # We make a subdir and do the tests there.  Otherwise we can end up
4467  # making bogus files that we don't know about and never remove.  For
4468  # instance it was reported that on HP-UX the gcc test will end up
4469  # making a dummy file named `D' -- because `-MD' means `put the output
4470  # in D'.
4471  mkdir conftest.dir
4472  # Copy depcomp to subdir because otherwise we won't find it if we're
4473  # using a relative directory.
4474  cp "$am_depcomp" conftest.dir
4475  cd conftest.dir
4476  # We will build objects and dependencies in a subdirectory because
4477  # it helps to detect inapplicable dependency modes.  For instance
4478  # both Tru64's cc and ICC support -MD to output dependencies as a
4479  # side effect of compilation, but ICC will put the dependencies in
4480  # the current directory while Tru64 will put them in the object
4481  # directory.
4482  mkdir sub
4483
4484  am_cv_CC_dependencies_compiler_type=none
4485  if test "$am_compiler_list" = ""; then
4486     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4487  fi
4488  am__universal=false
4489  case " $depcc " in #(
4490     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4491     esac
4492
4493  for depmode in $am_compiler_list; do
4494    # Setup a source with many dependencies, because some compilers
4495    # like to wrap large dependency lists on column 80 (with \), and
4496    # we should not choose a depcomp mode which is confused by this.
4497    #
4498    # We need to recreate these files for each test, as the compiler may
4499    # overwrite some of them when testing with obscure command lines.
4500    # This happens at least with the AIX C compiler.
4501    : > sub/conftest.c
4502    for i in 1 2 3 4 5 6; do
4503      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4504      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4505      # Solaris 8's {/usr,}/bin/sh.
4506      touch sub/conftst$i.h
4507    done
4508    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4509
4510    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4511    # mode.  It turns out that the SunPro C++ compiler does not properly
4512    # handle `-M -o', and we need to detect this.  Also, some Intel
4513    # versions had trouble with output in subdirs
4514    am__obj=sub/conftest.${OBJEXT-o}
4515    am__minus_obj="-o $am__obj"
4516    case $depmode in
4517    gcc)
4518      # This depmode causes a compiler race in universal mode.
4519      test "$am__universal" = false || continue
4520      ;;
4521    nosideeffect)
4522      # after this tag, mechanisms are not by side-effect, so they'll
4523      # only be used when explicitly requested
4524      if test "x$enable_dependency_tracking" = xyes; then
4525	continue
4526      else
4527	break
4528      fi
4529      ;;
4530    msvisualcpp | msvcmsys)
4531      # This compiler won't grok `-c -o', but also, the minuso test has
4532      # not run yet.  These depmodes are late enough in the game, and
4533      # so weak that their functioning should not be impacted.
4534      am__obj=conftest.${OBJEXT-o}
4535      am__minus_obj=
4536      ;;
4537    none) break ;;
4538    esac
4539    if depmode=$depmode \
4540       source=sub/conftest.c object=$am__obj \
4541       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4542       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4543         >/dev/null 2>conftest.err &&
4544       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4545       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4546       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4547       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4548      # icc doesn't choke on unknown options, it will just issue warnings
4549      # or remarks (even with -Werror).  So we grep stderr for any message
4550      # that says an option was ignored or not supported.
4551      # When given -MP, icc 7.0 and 7.1 complain thusly:
4552      #   icc: Command line warning: ignoring option '-M'; no argument required
4553      # The diagnosis changed in icc 8.0:
4554      #   icc: Command line remark: option '-MP' not supported
4555      if (grep 'ignoring option' conftest.err ||
4556          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4557        am_cv_CC_dependencies_compiler_type=$depmode
4558        break
4559      fi
4560    fi
4561  done
4562
4563  cd ..
4564  rm -rf conftest.dir
4565else
4566  am_cv_CC_dependencies_compiler_type=none
4567fi
4568
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4571$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4572CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4573
4574 if
4575  test "x$enable_dependency_tracking" != xno \
4576  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4577  am__fastdepCC_TRUE=
4578  am__fastdepCC_FALSE='#'
4579else
4580  am__fastdepCC_TRUE='#'
4581  am__fastdepCC_FALSE=
4582fi
4583
4584
4585
4586ac_config_headers="$ac_config_headers config.h"
4587
4588
4589
4590## Checks for programs
4591for ac_prog in gawk mawk nawk awk
4592do
4593  # Extract the first word of "$ac_prog", so it can be a program name with args.
4594set dummy $ac_prog; ac_word=$2
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596$as_echo_n "checking for $ac_word... " >&6; }
4597if test "${ac_cv_prog_AWK+set}" = set; then :
4598  $as_echo_n "(cached) " >&6
4599else
4600  if test -n "$AWK"; then
4601  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606  IFS=$as_save_IFS
4607  test -z "$as_dir" && as_dir=.
4608    for ac_exec_ext in '' $ac_executable_extensions; do
4609  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610    ac_cv_prog_AWK="$ac_prog"
4611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612    break 2
4613  fi
4614done
4615  done
4616IFS=$as_save_IFS
4617
4618fi
4619fi
4620AWK=$ac_cv_prog_AWK
4621if test -n "$AWK"; then
4622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4623$as_echo "$AWK" >&6; }
4624else
4625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626$as_echo "no" >&6; }
4627fi
4628
4629
4630  test -n "$AWK" && break
4631done
4632
4633ac_ext=c
4634ac_cpp='$CPP $CPPFLAGS'
4635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638if test -n "$ac_tool_prefix"; then
4639  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4640set dummy ${ac_tool_prefix}gcc; ac_word=$2
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642$as_echo_n "checking for $ac_word... " >&6; }
4643if test "${ac_cv_prog_CC+set}" = set; then :
4644  $as_echo_n "(cached) " >&6
4645else
4646  if test -n "$CC"; then
4647  ac_cv_prog_CC="$CC" # Let the user override the test.
4648else
4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650for as_dir in $PATH
4651do
4652  IFS=$as_save_IFS
4653  test -z "$as_dir" && as_dir=.
4654    for ac_exec_ext in '' $ac_executable_extensions; do
4655  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658    break 2
4659  fi
4660done
4661  done
4662IFS=$as_save_IFS
4663
4664fi
4665fi
4666CC=$ac_cv_prog_CC
4667if test -n "$CC"; then
4668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4669$as_echo "$CC" >&6; }
4670else
4671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672$as_echo "no" >&6; }
4673fi
4674
4675
4676fi
4677if test -z "$ac_cv_prog_CC"; then
4678  ac_ct_CC=$CC
4679  # Extract the first word of "gcc", so it can be a program name with args.
4680set dummy gcc; ac_word=$2
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682$as_echo_n "checking for $ac_word... " >&6; }
4683if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4684  $as_echo_n "(cached) " >&6
4685else
4686  if test -n "$ac_ct_CC"; then
4687  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4688else
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692  IFS=$as_save_IFS
4693  test -z "$as_dir" && as_dir=.
4694    for ac_exec_ext in '' $ac_executable_extensions; do
4695  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696    ac_cv_prog_ac_ct_CC="gcc"
4697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698    break 2
4699  fi
4700done
4701  done
4702IFS=$as_save_IFS
4703
4704fi
4705fi
4706ac_ct_CC=$ac_cv_prog_ac_ct_CC
4707if test -n "$ac_ct_CC"; then
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4709$as_echo "$ac_ct_CC" >&6; }
4710else
4711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712$as_echo "no" >&6; }
4713fi
4714
4715  if test "x$ac_ct_CC" = x; then
4716    CC=""
4717  else
4718    case $cross_compiling:$ac_tool_warned in
4719yes:)
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722ac_tool_warned=yes ;;
4723esac
4724    CC=$ac_ct_CC
4725  fi
4726else
4727  CC="$ac_cv_prog_CC"
4728fi
4729
4730if test -z "$CC"; then
4731          if test -n "$ac_tool_prefix"; then
4732    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4733set dummy ${ac_tool_prefix}cc; ac_word=$2
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735$as_echo_n "checking for $ac_word... " >&6; }
4736if test "${ac_cv_prog_CC+set}" = set; then :
4737  $as_echo_n "(cached) " >&6
4738else
4739  if test -n "$CC"; then
4740  ac_cv_prog_CC="$CC" # Let the user override the test.
4741else
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745  IFS=$as_save_IFS
4746  test -z "$as_dir" && as_dir=.
4747    for ac_exec_ext in '' $ac_executable_extensions; do
4748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749    ac_cv_prog_CC="${ac_tool_prefix}cc"
4750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751    break 2
4752  fi
4753done
4754  done
4755IFS=$as_save_IFS
4756
4757fi
4758fi
4759CC=$ac_cv_prog_CC
4760if test -n "$CC"; then
4761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4762$as_echo "$CC" >&6; }
4763else
4764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765$as_echo "no" >&6; }
4766fi
4767
4768
4769  fi
4770fi
4771if test -z "$CC"; then
4772  # Extract the first word of "cc", so it can be a program name with args.
4773set dummy cc; ac_word=$2
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775$as_echo_n "checking for $ac_word... " >&6; }
4776if test "${ac_cv_prog_CC+set}" = set; then :
4777  $as_echo_n "(cached) " >&6
4778else
4779  if test -n "$CC"; then
4780  ac_cv_prog_CC="$CC" # Let the user override the test.
4781else
4782  ac_prog_rejected=no
4783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786  IFS=$as_save_IFS
4787  test -z "$as_dir" && as_dir=.
4788    for ac_exec_ext in '' $ac_executable_extensions; do
4789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4791       ac_prog_rejected=yes
4792       continue
4793     fi
4794    ac_cv_prog_CC="cc"
4795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796    break 2
4797  fi
4798done
4799  done
4800IFS=$as_save_IFS
4801
4802if test $ac_prog_rejected = yes; then
4803  # We found a bogon in the path, so make sure we never use it.
4804  set dummy $ac_cv_prog_CC
4805  shift
4806  if test $# != 0; then
4807    # We chose a different compiler from the bogus one.
4808    # However, it has the same basename, so the bogon will be chosen
4809    # first if we set CC to just the basename; use the full file name.
4810    shift
4811    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4812  fi
4813fi
4814fi
4815fi
4816CC=$ac_cv_prog_CC
4817if test -n "$CC"; then
4818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4819$as_echo "$CC" >&6; }
4820else
4821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822$as_echo "no" >&6; }
4823fi
4824
4825
4826fi
4827if test -z "$CC"; then
4828  if test -n "$ac_tool_prefix"; then
4829  for ac_prog in cl.exe
4830  do
4831    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4832set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834$as_echo_n "checking for $ac_word... " >&6; }
4835if test "${ac_cv_prog_CC+set}" = set; then :
4836  $as_echo_n "(cached) " >&6
4837else
4838  if test -n "$CC"; then
4839  ac_cv_prog_CC="$CC" # Let the user override the test.
4840else
4841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842for as_dir in $PATH
4843do
4844  IFS=$as_save_IFS
4845  test -z "$as_dir" && as_dir=.
4846    for ac_exec_ext in '' $ac_executable_extensions; do
4847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850    break 2
4851  fi
4852done
4853  done
4854IFS=$as_save_IFS
4855
4856fi
4857fi
4858CC=$ac_cv_prog_CC
4859if test -n "$CC"; then
4860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4861$as_echo "$CC" >&6; }
4862else
4863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864$as_echo "no" >&6; }
4865fi
4866
4867
4868    test -n "$CC" && break
4869  done
4870fi
4871if test -z "$CC"; then
4872  ac_ct_CC=$CC
4873  for ac_prog in cl.exe
4874do
4875  # Extract the first word of "$ac_prog", so it can be a program name with args.
4876set dummy $ac_prog; ac_word=$2
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878$as_echo_n "checking for $ac_word... " >&6; }
4879if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4880  $as_echo_n "(cached) " >&6
4881else
4882  if test -n "$ac_ct_CC"; then
4883  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4884else
4885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886for as_dir in $PATH
4887do
4888  IFS=$as_save_IFS
4889  test -z "$as_dir" && as_dir=.
4890    for ac_exec_ext in '' $ac_executable_extensions; do
4891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892    ac_cv_prog_ac_ct_CC="$ac_prog"
4893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894    break 2
4895  fi
4896done
4897  done
4898IFS=$as_save_IFS
4899
4900fi
4901fi
4902ac_ct_CC=$ac_cv_prog_ac_ct_CC
4903if test -n "$ac_ct_CC"; then
4904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4905$as_echo "$ac_ct_CC" >&6; }
4906else
4907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908$as_echo "no" >&6; }
4909fi
4910
4911
4912  test -n "$ac_ct_CC" && break
4913done
4914
4915  if test "x$ac_ct_CC" = x; then
4916    CC=""
4917  else
4918    case $cross_compiling:$ac_tool_warned in
4919yes:)
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4922ac_tool_warned=yes ;;
4923esac
4924    CC=$ac_ct_CC
4925  fi
4926fi
4927
4928fi
4929
4930
4931test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4933as_fn_error "no acceptable C compiler found in \$PATH
4934See \`config.log' for more details." "$LINENO" 5; }
4935
4936# Provide some information about the compiler.
4937$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4938set X $ac_compile
4939ac_compiler=$2
4940for ac_option in --version -v -V -qversion; do
4941  { { ac_try="$ac_compiler $ac_option >&5"
4942case "(($ac_try" in
4943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944  *) ac_try_echo=$ac_try;;
4945esac
4946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4947$as_echo "$ac_try_echo"; } >&5
4948  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4949  ac_status=$?
4950  if test -s conftest.err; then
4951    sed '10a\
4952... rest of stderr output deleted ...
4953         10q' conftest.err >conftest.er1
4954    cat conftest.er1 >&5
4955  fi
4956  rm -f conftest.er1 conftest.err
4957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4958  test $ac_status = 0; }
4959done
4960
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4962$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4963if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4964  $as_echo_n "(cached) " >&6
4965else
4966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967/* end confdefs.h.  */
4968
4969int
4970main ()
4971{
4972#ifndef __GNUC__
4973       choke me
4974#endif
4975
4976  ;
4977  return 0;
4978}
4979_ACEOF
4980if ac_fn_c_try_compile "$LINENO"; then :
4981  ac_compiler_gnu=yes
4982else
4983  ac_compiler_gnu=no
4984fi
4985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986ac_cv_c_compiler_gnu=$ac_compiler_gnu
4987
4988fi
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4990$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4991if test $ac_compiler_gnu = yes; then
4992  GCC=yes
4993else
4994  GCC=
4995fi
4996ac_test_CFLAGS=${CFLAGS+set}
4997ac_save_CFLAGS=$CFLAGS
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4999$as_echo_n "checking whether $CC accepts -g... " >&6; }
5000if test "${ac_cv_prog_cc_g+set}" = set; then :
5001  $as_echo_n "(cached) " >&6
5002else
5003  ac_save_c_werror_flag=$ac_c_werror_flag
5004   ac_c_werror_flag=yes
5005   ac_cv_prog_cc_g=no
5006   CFLAGS="-g"
5007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008/* end confdefs.h.  */
5009
5010int
5011main ()
5012{
5013
5014  ;
5015  return 0;
5016}
5017_ACEOF
5018if ac_fn_c_try_compile "$LINENO"; then :
5019  ac_cv_prog_cc_g=yes
5020else
5021  CFLAGS=""
5022      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023/* end confdefs.h.  */
5024
5025int
5026main ()
5027{
5028
5029  ;
5030  return 0;
5031}
5032_ACEOF
5033if ac_fn_c_try_compile "$LINENO"; then :
5034
5035else
5036  ac_c_werror_flag=$ac_save_c_werror_flag
5037	 CFLAGS="-g"
5038	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039/* end confdefs.h.  */
5040
5041int
5042main ()
5043{
5044
5045  ;
5046  return 0;
5047}
5048_ACEOF
5049if ac_fn_c_try_compile "$LINENO"; then :
5050  ac_cv_prog_cc_g=yes
5051fi
5052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053fi
5054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055fi
5056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057   ac_c_werror_flag=$ac_save_c_werror_flag
5058fi
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5060$as_echo "$ac_cv_prog_cc_g" >&6; }
5061if test "$ac_test_CFLAGS" = set; then
5062  CFLAGS=$ac_save_CFLAGS
5063elif test $ac_cv_prog_cc_g = yes; then
5064  if test "$GCC" = yes; then
5065    CFLAGS="-g -O2"
5066  else
5067    CFLAGS="-g"
5068  fi
5069else
5070  if test "$GCC" = yes; then
5071    CFLAGS="-O2"
5072  else
5073    CFLAGS=
5074  fi
5075fi
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5077$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5078if test "${ac_cv_prog_cc_c89+set}" = set; then :
5079  $as_echo_n "(cached) " >&6
5080else
5081  ac_cv_prog_cc_c89=no
5082ac_save_CC=$CC
5083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084/* end confdefs.h.  */
5085#include <stdarg.h>
5086#include <stdio.h>
5087#include <sys/types.h>
5088#include <sys/stat.h>
5089/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5090struct buf { int x; };
5091FILE * (*rcsopen) (struct buf *, struct stat *, int);
5092static char *e (p, i)
5093     char **p;
5094     int i;
5095{
5096  return p[i];
5097}
5098static char *f (char * (*g) (char **, int), char **p, ...)
5099{
5100  char *s;
5101  va_list v;
5102  va_start (v,p);
5103  s = g (p, va_arg (v,int));
5104  va_end (v);
5105  return s;
5106}
5107
5108/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5109   function prototypes and stuff, but not '\xHH' hex character constants.
5110   These don't provoke an error unfortunately, instead are silently treated
5111   as 'x'.  The following induces an error, until -std is added to get
5112   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5113   array size at least.  It's necessary to write '\x00'==0 to get something
5114   that's true only with -std.  */
5115int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5116
5117/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5118   inside strings and character constants.  */
5119#define FOO(x) 'x'
5120int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5121
5122int test (int i, double x);
5123struct s1 {int (*f) (int a);};
5124struct s2 {int (*f) (double a);};
5125int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5126int argc;
5127char **argv;
5128int
5129main ()
5130{
5131return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5132  ;
5133  return 0;
5134}
5135_ACEOF
5136for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5137	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5138do
5139  CC="$ac_save_CC $ac_arg"
5140  if ac_fn_c_try_compile "$LINENO"; then :
5141  ac_cv_prog_cc_c89=$ac_arg
5142fi
5143rm -f core conftest.err conftest.$ac_objext
5144  test "x$ac_cv_prog_cc_c89" != "xno" && break
5145done
5146rm -f conftest.$ac_ext
5147CC=$ac_save_CC
5148
5149fi
5150# AC_CACHE_VAL
5151case "x$ac_cv_prog_cc_c89" in
5152  x)
5153    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5154$as_echo "none needed" >&6; } ;;
5155  xno)
5156    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5157$as_echo "unsupported" >&6; } ;;
5158  *)
5159    CC="$CC $ac_cv_prog_cc_c89"
5160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5161$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5162esac
5163if test "x$ac_cv_prog_cc_c89" != xno; then :
5164
5165fi
5166
5167ac_ext=c
5168ac_cpp='$CPP $CPPFLAGS'
5169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172
5173
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5175$as_echo_n "checking whether ln -s works... " >&6; }
5176LN_S=$as_ln_s
5177if test "$LN_S" = "ln -s"; then
5178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5179$as_echo "yes" >&6; }
5180else
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5182$as_echo "no, using $LN_S" >&6; }
5183fi
5184
5185case `pwd` in
5186  *\ * | *\	*)
5187    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5188$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5189esac
5190
5191
5192
5193macro_version='2.2.6b'
5194macro_revision='1.3017'
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208ltmain="$ac_aux_dir/ltmain.sh"
5209
5210# Make sure we can run config.sub.
5211$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5212  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5215$as_echo_n "checking build system type... " >&6; }
5216if test "${ac_cv_build+set}" = set; then :
5217  $as_echo_n "(cached) " >&6
5218else
5219  ac_build_alias=$build_alias
5220test "x$ac_build_alias" = x &&
5221  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5222test "x$ac_build_alias" = x &&
5223  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5224ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5225  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5226
5227fi
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5229$as_echo "$ac_cv_build" >&6; }
5230case $ac_cv_build in
5231*-*-*) ;;
5232*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5233esac
5234build=$ac_cv_build
5235ac_save_IFS=$IFS; IFS='-'
5236set x $ac_cv_build
5237shift
5238build_cpu=$1
5239build_vendor=$2
5240shift; shift
5241# Remember, the first character of IFS is used to create $*,
5242# except with old shells:
5243build_os=$*
5244IFS=$ac_save_IFS
5245case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5246
5247
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5249$as_echo_n "checking host system type... " >&6; }
5250if test "${ac_cv_host+set}" = set; then :
5251  $as_echo_n "(cached) " >&6
5252else
5253  if test "x$host_alias" = x; then
5254  ac_cv_host=$ac_cv_build
5255else
5256  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5257    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5258fi
5259
5260fi
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5262$as_echo "$ac_cv_host" >&6; }
5263case $ac_cv_host in
5264*-*-*) ;;
5265*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5266esac
5267host=$ac_cv_host
5268ac_save_IFS=$IFS; IFS='-'
5269set x $ac_cv_host
5270shift
5271host_cpu=$1
5272host_vendor=$2
5273shift; shift
5274# Remember, the first character of IFS is used to create $*,
5275# except with old shells:
5276host_os=$*
5277IFS=$ac_save_IFS
5278case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5279
5280
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5282$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5283if test "${ac_cv_path_SED+set}" = set; then :
5284  $as_echo_n "(cached) " >&6
5285else
5286            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5287     for ac_i in 1 2 3 4 5 6 7; do
5288       ac_script="$ac_script$as_nl$ac_script"
5289     done
5290     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5291     { ac_script=; unset ac_script;}
5292     if test -z "$SED"; then
5293  ac_path_SED_found=false
5294  # Loop through the user's path and test for each of PROGNAME-LIST
5295  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296for as_dir in $PATH
5297do
5298  IFS=$as_save_IFS
5299  test -z "$as_dir" && as_dir=.
5300    for ac_prog in sed gsed; do
5301    for ac_exec_ext in '' $ac_executable_extensions; do
5302      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5303      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5304# Check for GNU ac_path_SED and select it if it is found.
5305  # Check for GNU $ac_path_SED
5306case `"$ac_path_SED" --version 2>&1` in
5307*GNU*)
5308  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5309*)
5310  ac_count=0
5311  $as_echo_n 0123456789 >"conftest.in"
5312  while :
5313  do
5314    cat "conftest.in" "conftest.in" >"conftest.tmp"
5315    mv "conftest.tmp" "conftest.in"
5316    cp "conftest.in" "conftest.nl"
5317    $as_echo '' >> "conftest.nl"
5318    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5319    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5320    as_fn_arith $ac_count + 1 && ac_count=$as_val
5321    if test $ac_count -gt ${ac_path_SED_max-0}; then
5322      # Best one so far, save it but keep looking for a better one
5323      ac_cv_path_SED="$ac_path_SED"
5324      ac_path_SED_max=$ac_count
5325    fi
5326    # 10*(2^10) chars as input seems more than enough
5327    test $ac_count -gt 10 && break
5328  done
5329  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5330esac
5331
5332      $ac_path_SED_found && break 3
5333    done
5334  done
5335  done
5336IFS=$as_save_IFS
5337  if test -z "$ac_cv_path_SED"; then
5338    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5339  fi
5340else
5341  ac_cv_path_SED=$SED
5342fi
5343
5344fi
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5346$as_echo "$ac_cv_path_SED" >&6; }
5347 SED="$ac_cv_path_SED"
5348  rm -f conftest.sed
5349
5350test -z "$SED" && SED=sed
5351Xsed="$SED -e 1s/^X//"
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5364$as_echo_n "checking for fgrep... " >&6; }
5365if test "${ac_cv_path_FGREP+set}" = set; then :
5366  $as_echo_n "(cached) " >&6
5367else
5368  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5369   then ac_cv_path_FGREP="$GREP -F"
5370   else
5371     if test -z "$FGREP"; then
5372  ac_path_FGREP_found=false
5373  # Loop through the user's path and test for each of PROGNAME-LIST
5374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5376do
5377  IFS=$as_save_IFS
5378  test -z "$as_dir" && as_dir=.
5379    for ac_prog in fgrep; do
5380    for ac_exec_ext in '' $ac_executable_extensions; do
5381      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5382      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5383# Check for GNU ac_path_FGREP and select it if it is found.
5384  # Check for GNU $ac_path_FGREP
5385case `"$ac_path_FGREP" --version 2>&1` in
5386*GNU*)
5387  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5388*)
5389  ac_count=0
5390  $as_echo_n 0123456789 >"conftest.in"
5391  while :
5392  do
5393    cat "conftest.in" "conftest.in" >"conftest.tmp"
5394    mv "conftest.tmp" "conftest.in"
5395    cp "conftest.in" "conftest.nl"
5396    $as_echo 'FGREP' >> "conftest.nl"
5397    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5398    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5399    as_fn_arith $ac_count + 1 && ac_count=$as_val
5400    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5401      # Best one so far, save it but keep looking for a better one
5402      ac_cv_path_FGREP="$ac_path_FGREP"
5403      ac_path_FGREP_max=$ac_count
5404    fi
5405    # 10*(2^10) chars as input seems more than enough
5406    test $ac_count -gt 10 && break
5407  done
5408  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5409esac
5410
5411      $ac_path_FGREP_found && break 3
5412    done
5413  done
5414  done
5415IFS=$as_save_IFS
5416  if test -z "$ac_cv_path_FGREP"; then
5417    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5418  fi
5419else
5420  ac_cv_path_FGREP=$FGREP
5421fi
5422
5423   fi
5424fi
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5426$as_echo "$ac_cv_path_FGREP" >&6; }
5427 FGREP="$ac_cv_path_FGREP"
5428
5429
5430test -z "$GREP" && GREP=grep
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450# Check whether --with-gnu-ld was given.
5451if test "${with_gnu_ld+set}" = set; then :
5452  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5453else
5454  with_gnu_ld=no
5455fi
5456
5457ac_prog=ld
5458if test "$GCC" = yes; then
5459  # Check if gcc -print-prog-name=ld gives a path.
5460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5461$as_echo_n "checking for ld used by $CC... " >&6; }
5462  case $host in
5463  *-*-mingw*)
5464    # gcc leaves a trailing carriage return which upsets mingw
5465    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5466  *)
5467    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5468  esac
5469  case $ac_prog in
5470    # Accept absolute paths.
5471    [\\/]* | ?:[\\/]*)
5472      re_direlt='/[^/][^/]*/\.\./'
5473      # Canonicalize the pathname of ld
5474      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5475      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5476	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5477      done
5478      test -z "$LD" && LD="$ac_prog"
5479      ;;
5480  "")
5481    # If it fails, then pretend we aren't using GCC.
5482    ac_prog=ld
5483    ;;
5484  *)
5485    # If it is relative, then search for the first ld in PATH.
5486    with_gnu_ld=unknown
5487    ;;
5488  esac
5489elif test "$with_gnu_ld" = yes; then
5490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5491$as_echo_n "checking for GNU ld... " >&6; }
5492else
5493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5494$as_echo_n "checking for non-GNU ld... " >&6; }
5495fi
5496if test "${lt_cv_path_LD+set}" = set; then :
5497  $as_echo_n "(cached) " >&6
5498else
5499  if test -z "$LD"; then
5500  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5501  for ac_dir in $PATH; do
5502    IFS="$lt_save_ifs"
5503    test -z "$ac_dir" && ac_dir=.
5504    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5505      lt_cv_path_LD="$ac_dir/$ac_prog"
5506      # Check to see if the program is GNU ld.  I'd rather use --version,
5507      # but apparently some variants of GNU ld only accept -v.
5508      # Break only if it was the GNU/non-GNU ld that we prefer.
5509      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5510      *GNU* | *'with BFD'*)
5511	test "$with_gnu_ld" != no && break
5512	;;
5513      *)
5514	test "$with_gnu_ld" != yes && break
5515	;;
5516      esac
5517    fi
5518  done
5519  IFS="$lt_save_ifs"
5520else
5521  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5522fi
5523fi
5524
5525LD="$lt_cv_path_LD"
5526if test -n "$LD"; then
5527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5528$as_echo "$LD" >&6; }
5529else
5530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531$as_echo "no" >&6; }
5532fi
5533test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5535$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5536if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5537  $as_echo_n "(cached) " >&6
5538else
5539  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5540case `$LD -v 2>&1 </dev/null` in
5541*GNU* | *'with BFD'*)
5542  lt_cv_prog_gnu_ld=yes
5543  ;;
5544*)
5545  lt_cv_prog_gnu_ld=no
5546  ;;
5547esac
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5550$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5551with_gnu_ld=$lt_cv_prog_gnu_ld
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5562$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5563if test "${lt_cv_path_NM+set}" = set; then :
5564  $as_echo_n "(cached) " >&6
5565else
5566  if test -n "$NM"; then
5567  # Let the user override the test.
5568  lt_cv_path_NM="$NM"
5569else
5570  lt_nm_to_check="${ac_tool_prefix}nm"
5571  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5572    lt_nm_to_check="$lt_nm_to_check nm"
5573  fi
5574  for lt_tmp_nm in $lt_nm_to_check; do
5575    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5576    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5577      IFS="$lt_save_ifs"
5578      test -z "$ac_dir" && ac_dir=.
5579      tmp_nm="$ac_dir/$lt_tmp_nm"
5580      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5581	# Check to see if the nm accepts a BSD-compat flag.
5582	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5583	#   nm: unknown option "B" ignored
5584	# Tru64's nm complains that /dev/null is an invalid object file
5585	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5586	*/dev/null* | *'Invalid file or object type'*)
5587	  lt_cv_path_NM="$tmp_nm -B"
5588	  break
5589	  ;;
5590	*)
5591	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5592	  */dev/null*)
5593	    lt_cv_path_NM="$tmp_nm -p"
5594	    break
5595	    ;;
5596	  *)
5597	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5598	    continue # so that we can try to find one that supports BSD flags
5599	    ;;
5600	  esac
5601	  ;;
5602	esac
5603      fi
5604    done
5605    IFS="$lt_save_ifs"
5606  done
5607  : ${lt_cv_path_NM=no}
5608fi
5609fi
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5611$as_echo "$lt_cv_path_NM" >&6; }
5612if test "$lt_cv_path_NM" != "no"; then
5613  NM="$lt_cv_path_NM"
5614else
5615  # Didn't find any BSD compatible name lister, look for dumpbin.
5616  if test -n "$ac_tool_prefix"; then
5617  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5618  do
5619    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622$as_echo_n "checking for $ac_word... " >&6; }
5623if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5624  $as_echo_n "(cached) " >&6
5625else
5626  if test -n "$DUMPBIN"; then
5627  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5628else
5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632  IFS=$as_save_IFS
5633  test -z "$as_dir" && as_dir=.
5634    for ac_exec_ext in '' $ac_executable_extensions; do
5635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638    break 2
5639  fi
5640done
5641  done
5642IFS=$as_save_IFS
5643
5644fi
5645fi
5646DUMPBIN=$ac_cv_prog_DUMPBIN
5647if test -n "$DUMPBIN"; then
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5649$as_echo "$DUMPBIN" >&6; }
5650else
5651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652$as_echo "no" >&6; }
5653fi
5654
5655
5656    test -n "$DUMPBIN" && break
5657  done
5658fi
5659if test -z "$DUMPBIN"; then
5660  ac_ct_DUMPBIN=$DUMPBIN
5661  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5662do
5663  # Extract the first word of "$ac_prog", so it can be a program name with args.
5664set dummy $ac_prog; ac_word=$2
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666$as_echo_n "checking for $ac_word... " >&6; }
5667if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5668  $as_echo_n "(cached) " >&6
5669else
5670  if test -n "$ac_ct_DUMPBIN"; then
5671  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5672else
5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674for as_dir in $PATH
5675do
5676  IFS=$as_save_IFS
5677  test -z "$as_dir" && as_dir=.
5678    for ac_exec_ext in '' $ac_executable_extensions; do
5679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682    break 2
5683  fi
5684done
5685  done
5686IFS=$as_save_IFS
5687
5688fi
5689fi
5690ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5691if test -n "$ac_ct_DUMPBIN"; then
5692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5693$as_echo "$ac_ct_DUMPBIN" >&6; }
5694else
5695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696$as_echo "no" >&6; }
5697fi
5698
5699
5700  test -n "$ac_ct_DUMPBIN" && break
5701done
5702
5703  if test "x$ac_ct_DUMPBIN" = x; then
5704    DUMPBIN=":"
5705  else
5706    case $cross_compiling:$ac_tool_warned in
5707yes:)
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5710ac_tool_warned=yes ;;
5711esac
5712    DUMPBIN=$ac_ct_DUMPBIN
5713  fi
5714fi
5715
5716
5717  if test "$DUMPBIN" != ":"; then
5718    NM="$DUMPBIN"
5719  fi
5720fi
5721test -z "$NM" && NM=nm
5722
5723
5724
5725
5726
5727
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5729$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5730if test "${lt_cv_nm_interface+set}" = set; then :
5731  $as_echo_n "(cached) " >&6
5732else
5733  lt_cv_nm_interface="BSD nm"
5734  echo "int some_variable = 0;" > conftest.$ac_ext
5735  (eval echo "\"\$as_me:5735: $ac_compile\"" >&5)
5736  (eval "$ac_compile" 2>conftest.err)
5737  cat conftest.err >&5
5738  (eval echo "\"\$as_me:5738: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5739  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5740  cat conftest.err >&5
5741  (eval echo "\"\$as_me:5741: output\"" >&5)
5742  cat conftest.out >&5
5743  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5744    lt_cv_nm_interface="MS dumpbin"
5745  fi
5746  rm -f conftest*
5747fi
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5749$as_echo "$lt_cv_nm_interface" >&6; }
5750
5751# find the maximum length of command line arguments
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5753$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5754if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5755  $as_echo_n "(cached) " >&6
5756else
5757    i=0
5758  teststring="ABCD"
5759
5760  case $build_os in
5761  msdosdjgpp*)
5762    # On DJGPP, this test can blow up pretty badly due to problems in libc
5763    # (any single argument exceeding 2000 bytes causes a buffer overrun
5764    # during glob expansion).  Even if it were fixed, the result of this
5765    # check would be larger than it should be.
5766    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5767    ;;
5768
5769  gnu*)
5770    # Under GNU Hurd, this test is not required because there is
5771    # no limit to the length of command line arguments.
5772    # Libtool will interpret -1 as no limit whatsoever
5773    lt_cv_sys_max_cmd_len=-1;
5774    ;;
5775
5776  cygwin* | mingw* | cegcc*)
5777    # On Win9x/ME, this test blows up -- it succeeds, but takes
5778    # about 5 minutes as the teststring grows exponentially.
5779    # Worse, since 9x/ME are not pre-emptively multitasking,
5780    # you end up with a "frozen" computer, even though with patience
5781    # the test eventually succeeds (with a max line length of 256k).
5782    # Instead, let's just punt: use the minimum linelength reported by
5783    # all of the supported platforms: 8192 (on NT/2K/XP).
5784    lt_cv_sys_max_cmd_len=8192;
5785    ;;
5786
5787  amigaos*)
5788    # On AmigaOS with pdksh, this test takes hours, literally.
5789    # So we just punt and use a minimum line length of 8192.
5790    lt_cv_sys_max_cmd_len=8192;
5791    ;;
5792
5793  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5794    # This has been around since 386BSD, at least.  Likely further.
5795    if test -x /sbin/sysctl; then
5796      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5797    elif test -x /usr/sbin/sysctl; then
5798      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5799    else
5800      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5801    fi
5802    # And add a safety zone
5803    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5804    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5805    ;;
5806
5807  interix*)
5808    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5809    lt_cv_sys_max_cmd_len=196608
5810    ;;
5811
5812  osf*)
5813    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5814    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5815    # nice to cause kernel panics so lets avoid the loop below.
5816    # First set a reasonable default.
5817    lt_cv_sys_max_cmd_len=16384
5818    #
5819    if test -x /sbin/sysconfig; then
5820      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5821        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5822      esac
5823    fi
5824    ;;
5825  sco3.2v5*)
5826    lt_cv_sys_max_cmd_len=102400
5827    ;;
5828  sysv5* | sco5v6* | sysv4.2uw2*)
5829    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5830    if test -n "$kargmax"; then
5831      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5832    else
5833      lt_cv_sys_max_cmd_len=32768
5834    fi
5835    ;;
5836  *)
5837    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5838    if test -n "$lt_cv_sys_max_cmd_len"; then
5839      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5840      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5841    else
5842      # Make teststring a little bigger before we do anything with it.
5843      # a 1K string should be a reasonable start.
5844      for i in 1 2 3 4 5 6 7 8 ; do
5845        teststring=$teststring$teststring
5846      done
5847      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5848      # If test is not a shell built-in, we'll probably end up computing a
5849      # maximum length that is only half of the actual maximum length, but
5850      # we can't tell.
5851      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5852	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5853	      test $i != 17 # 1/2 MB should be enough
5854      do
5855        i=`expr $i + 1`
5856        teststring=$teststring$teststring
5857      done
5858      # Only check the string length outside the loop.
5859      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5860      teststring=
5861      # Add a significant safety factor because C++ compilers can tack on
5862      # massive amounts of additional arguments before passing them to the
5863      # linker.  It appears as though 1/2 is a usable value.
5864      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5865    fi
5866    ;;
5867  esac
5868
5869fi
5870
5871if test -n $lt_cv_sys_max_cmd_len ; then
5872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5873$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5874else
5875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5876$as_echo "none" >&6; }
5877fi
5878max_cmd_len=$lt_cv_sys_max_cmd_len
5879
5880
5881
5882
5883
5884
5885: ${CP="cp -f"}
5886: ${MV="mv -f"}
5887: ${RM="rm -f"}
5888
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5890$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5891# Try some XSI features
5892xsi_shell=no
5893( _lt_dummy="a/b/c"
5894  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5895      = c,a/b,, \
5896    && eval 'test $(( 1 + 1 )) -eq 2 \
5897    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5898  && xsi_shell=yes
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5900$as_echo "$xsi_shell" >&6; }
5901
5902
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5904$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5905lt_shell_append=no
5906( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5907    >/dev/null 2>&1 \
5908  && lt_shell_append=yes
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5910$as_echo "$lt_shell_append" >&6; }
5911
5912
5913if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5914  lt_unset=unset
5915else
5916  lt_unset=false
5917fi
5918
5919
5920
5921
5922
5923# test EBCDIC or ASCII
5924case `echo X|tr X '\101'` in
5925 A) # ASCII based system
5926    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5927  lt_SP2NL='tr \040 \012'
5928  lt_NL2SP='tr \015\012 \040\040'
5929  ;;
5930 *) # EBCDIC based system
5931  lt_SP2NL='tr \100 \n'
5932  lt_NL2SP='tr \r\n \100\100'
5933  ;;
5934esac
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5945$as_echo_n "checking for $LD option to reload object files... " >&6; }
5946if test "${lt_cv_ld_reload_flag+set}" = set; then :
5947  $as_echo_n "(cached) " >&6
5948else
5949  lt_cv_ld_reload_flag='-r'
5950fi
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5952$as_echo "$lt_cv_ld_reload_flag" >&6; }
5953reload_flag=$lt_cv_ld_reload_flag
5954case $reload_flag in
5955"" | " "*) ;;
5956*) reload_flag=" $reload_flag" ;;
5957esac
5958reload_cmds='$LD$reload_flag -o $output$reload_objs'
5959case $host_os in
5960  darwin*)
5961    if test "$GCC" = yes; then
5962      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5963    else
5964      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5965    fi
5966    ;;
5967esac
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977if test -n "$ac_tool_prefix"; then
5978  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5979set dummy ${ac_tool_prefix}objdump; ac_word=$2
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981$as_echo_n "checking for $ac_word... " >&6; }
5982if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5983  $as_echo_n "(cached) " >&6
5984else
5985  if test -n "$OBJDUMP"; then
5986  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5987else
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991  IFS=$as_save_IFS
5992  test -z "$as_dir" && as_dir=.
5993    for ac_exec_ext in '' $ac_executable_extensions; do
5994  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997    break 2
5998  fi
5999done
6000  done
6001IFS=$as_save_IFS
6002
6003fi
6004fi
6005OBJDUMP=$ac_cv_prog_OBJDUMP
6006if test -n "$OBJDUMP"; then
6007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6008$as_echo "$OBJDUMP" >&6; }
6009else
6010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011$as_echo "no" >&6; }
6012fi
6013
6014
6015fi
6016if test -z "$ac_cv_prog_OBJDUMP"; then
6017  ac_ct_OBJDUMP=$OBJDUMP
6018  # Extract the first word of "objdump", so it can be a program name with args.
6019set dummy objdump; ac_word=$2
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021$as_echo_n "checking for $ac_word... " >&6; }
6022if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6023  $as_echo_n "(cached) " >&6
6024else
6025  if test -n "$ac_ct_OBJDUMP"; then
6026  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6027else
6028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029for as_dir in $PATH
6030do
6031  IFS=$as_save_IFS
6032  test -z "$as_dir" && as_dir=.
6033    for ac_exec_ext in '' $ac_executable_extensions; do
6034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6035    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037    break 2
6038  fi
6039done
6040  done
6041IFS=$as_save_IFS
6042
6043fi
6044fi
6045ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6046if test -n "$ac_ct_OBJDUMP"; then
6047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6048$as_echo "$ac_ct_OBJDUMP" >&6; }
6049else
6050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051$as_echo "no" >&6; }
6052fi
6053
6054  if test "x$ac_ct_OBJDUMP" = x; then
6055    OBJDUMP="false"
6056  else
6057    case $cross_compiling:$ac_tool_warned in
6058yes:)
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6061ac_tool_warned=yes ;;
6062esac
6063    OBJDUMP=$ac_ct_OBJDUMP
6064  fi
6065else
6066  OBJDUMP="$ac_cv_prog_OBJDUMP"
6067fi
6068
6069test -z "$OBJDUMP" && OBJDUMP=objdump
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6080$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6081if test "${lt_cv_deplibs_check_method+set}" = set; then :
6082  $as_echo_n "(cached) " >&6
6083else
6084  lt_cv_file_magic_cmd='$MAGIC_CMD'
6085lt_cv_file_magic_test_file=
6086lt_cv_deplibs_check_method='unknown'
6087# Need to set the preceding variable on all platforms that support
6088# interlibrary dependencies.
6089# 'none' -- dependencies not supported.
6090# `unknown' -- same as none, but documents that we really don't know.
6091# 'pass_all' -- all dependencies passed with no checks.
6092# 'test_compile' -- check by making test program.
6093# 'file_magic [[regex]]' -- check by looking for files in library path
6094# which responds to the $file_magic_cmd with a given extended regex.
6095# If you have `file' or equivalent on your system and you're not sure
6096# whether `pass_all' will *always* work, you probably want this one.
6097
6098case $host_os in
6099aix[4-9]*)
6100  lt_cv_deplibs_check_method=pass_all
6101  ;;
6102
6103beos*)
6104  lt_cv_deplibs_check_method=pass_all
6105  ;;
6106
6107bsdi[45]*)
6108  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6109  lt_cv_file_magic_cmd='/usr/bin/file -L'
6110  lt_cv_file_magic_test_file=/shlib/libc.so
6111  ;;
6112
6113cygwin*)
6114  # func_win32_libid is a shell function defined in ltmain.sh
6115  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6116  lt_cv_file_magic_cmd='func_win32_libid'
6117  ;;
6118
6119mingw* | pw32*)
6120  # Base MSYS/MinGW do not provide the 'file' command needed by
6121  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6122  # unless we find 'file', for example because we are cross-compiling.
6123  if ( file / ) >/dev/null 2>&1; then
6124    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6125    lt_cv_file_magic_cmd='func_win32_libid'
6126  else
6127    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6128    lt_cv_file_magic_cmd='$OBJDUMP -f'
6129  fi
6130  ;;
6131
6132cegcc)
6133  # use the weaker test based on 'objdump'. See mingw*.
6134  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6135  lt_cv_file_magic_cmd='$OBJDUMP -f'
6136  ;;
6137
6138darwin* | rhapsody*)
6139  lt_cv_deplibs_check_method=pass_all
6140  ;;
6141
6142freebsd* | dragonfly*)
6143  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6144    case $host_cpu in
6145    i*86 )
6146      # Not sure whether the presence of OpenBSD here was a mistake.
6147      # Let's accept both of them until this is cleared up.
6148      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6149      lt_cv_file_magic_cmd=/usr/bin/file
6150      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6151      ;;
6152    esac
6153  else
6154    lt_cv_deplibs_check_method=pass_all
6155  fi
6156  ;;
6157
6158gnu*)
6159  lt_cv_deplibs_check_method=pass_all
6160  ;;
6161
6162hpux10.20* | hpux11*)
6163  lt_cv_file_magic_cmd=/usr/bin/file
6164  case $host_cpu in
6165  ia64*)
6166    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6167    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6168    ;;
6169  hppa*64*)
6170    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]'
6171    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6172    ;;
6173  *)
6174    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6175    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6176    ;;
6177  esac
6178  ;;
6179
6180interix[3-9]*)
6181  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6182  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6183  ;;
6184
6185irix5* | irix6* | nonstopux*)
6186  case $LD in
6187  *-32|*"-32 ") libmagic=32-bit;;
6188  *-n32|*"-n32 ") libmagic=N32;;
6189  *-64|*"-64 ") libmagic=64-bit;;
6190  *) libmagic=never-match;;
6191  esac
6192  lt_cv_deplibs_check_method=pass_all
6193  ;;
6194
6195# This must be Linux ELF.
6196linux* | k*bsd*-gnu)
6197  lt_cv_deplibs_check_method=pass_all
6198  ;;
6199
6200netbsd*)
6201  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6202    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6203  else
6204    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6205  fi
6206  ;;
6207
6208newos6*)
6209  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6210  lt_cv_file_magic_cmd=/usr/bin/file
6211  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6212  ;;
6213
6214*nto* | *qnx*)
6215  lt_cv_deplibs_check_method=pass_all
6216  ;;
6217
6218openbsd*)
6219  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6220    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6221  else
6222    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6223  fi
6224  ;;
6225
6226osf3* | osf4* | osf5*)
6227  lt_cv_deplibs_check_method=pass_all
6228  ;;
6229
6230rdos*)
6231  lt_cv_deplibs_check_method=pass_all
6232  ;;
6233
6234solaris*)
6235  lt_cv_deplibs_check_method=pass_all
6236  ;;
6237
6238sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6239  lt_cv_deplibs_check_method=pass_all
6240  ;;
6241
6242sysv4 | sysv4.3*)
6243  case $host_vendor in
6244  motorola)
6245    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]'
6246    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6247    ;;
6248  ncr)
6249    lt_cv_deplibs_check_method=pass_all
6250    ;;
6251  sequent)
6252    lt_cv_file_magic_cmd='/bin/file'
6253    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6254    ;;
6255  sni)
6256    lt_cv_file_magic_cmd='/bin/file'
6257    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6258    lt_cv_file_magic_test_file=/lib/libc.so
6259    ;;
6260  siemens)
6261    lt_cv_deplibs_check_method=pass_all
6262    ;;
6263  pc)
6264    lt_cv_deplibs_check_method=pass_all
6265    ;;
6266  esac
6267  ;;
6268
6269tpf*)
6270  lt_cv_deplibs_check_method=pass_all
6271  ;;
6272esac
6273
6274fi
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6276$as_echo "$lt_cv_deplibs_check_method" >&6; }
6277file_magic_cmd=$lt_cv_file_magic_cmd
6278deplibs_check_method=$lt_cv_deplibs_check_method
6279test -z "$deplibs_check_method" && deplibs_check_method=unknown
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292if test -n "$ac_tool_prefix"; then
6293  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6294set dummy ${ac_tool_prefix}ar; ac_word=$2
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296$as_echo_n "checking for $ac_word... " >&6; }
6297if test "${ac_cv_prog_AR+set}" = set; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  if test -n "$AR"; then
6301  ac_cv_prog_AR="$AR" # Let the user override the test.
6302else
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306  IFS=$as_save_IFS
6307  test -z "$as_dir" && as_dir=.
6308    for ac_exec_ext in '' $ac_executable_extensions; do
6309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310    ac_cv_prog_AR="${ac_tool_prefix}ar"
6311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312    break 2
6313  fi
6314done
6315  done
6316IFS=$as_save_IFS
6317
6318fi
6319fi
6320AR=$ac_cv_prog_AR
6321if test -n "$AR"; then
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6323$as_echo "$AR" >&6; }
6324else
6325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326$as_echo "no" >&6; }
6327fi
6328
6329
6330fi
6331if test -z "$ac_cv_prog_AR"; then
6332  ac_ct_AR=$AR
6333  # Extract the first word of "ar", so it can be a program name with args.
6334set dummy ar; ac_word=$2
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336$as_echo_n "checking for $ac_word... " >&6; }
6337if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6338  $as_echo_n "(cached) " >&6
6339else
6340  if test -n "$ac_ct_AR"; then
6341  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6342else
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346  IFS=$as_save_IFS
6347  test -z "$as_dir" && as_dir=.
6348    for ac_exec_ext in '' $ac_executable_extensions; do
6349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350    ac_cv_prog_ac_ct_AR="ar"
6351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352    break 2
6353  fi
6354done
6355  done
6356IFS=$as_save_IFS
6357
6358fi
6359fi
6360ac_ct_AR=$ac_cv_prog_ac_ct_AR
6361if test -n "$ac_ct_AR"; then
6362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6363$as_echo "$ac_ct_AR" >&6; }
6364else
6365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366$as_echo "no" >&6; }
6367fi
6368
6369  if test "x$ac_ct_AR" = x; then
6370    AR="false"
6371  else
6372    case $cross_compiling:$ac_tool_warned in
6373yes:)
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376ac_tool_warned=yes ;;
6377esac
6378    AR=$ac_ct_AR
6379  fi
6380else
6381  AR="$ac_cv_prog_AR"
6382fi
6383
6384test -z "$AR" && AR=ar
6385test -z "$AR_FLAGS" && AR_FLAGS=cru
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397if test -n "$ac_tool_prefix"; then
6398  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6399set dummy ${ac_tool_prefix}strip; ac_word=$2
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401$as_echo_n "checking for $ac_word... " >&6; }
6402if test "${ac_cv_prog_STRIP+set}" = set; then :
6403  $as_echo_n "(cached) " >&6
6404else
6405  if test -n "$STRIP"; then
6406  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6407else
6408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409for as_dir in $PATH
6410do
6411  IFS=$as_save_IFS
6412  test -z "$as_dir" && as_dir=.
6413    for ac_exec_ext in '' $ac_executable_extensions; do
6414  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417    break 2
6418  fi
6419done
6420  done
6421IFS=$as_save_IFS
6422
6423fi
6424fi
6425STRIP=$ac_cv_prog_STRIP
6426if test -n "$STRIP"; then
6427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6428$as_echo "$STRIP" >&6; }
6429else
6430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431$as_echo "no" >&6; }
6432fi
6433
6434
6435fi
6436if test -z "$ac_cv_prog_STRIP"; then
6437  ac_ct_STRIP=$STRIP
6438  # Extract the first word of "strip", so it can be a program name with args.
6439set dummy strip; ac_word=$2
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441$as_echo_n "checking for $ac_word... " >&6; }
6442if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  if test -n "$ac_ct_STRIP"; then
6446  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6447else
6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
6451  IFS=$as_save_IFS
6452  test -z "$as_dir" && as_dir=.
6453    for ac_exec_ext in '' $ac_executable_extensions; do
6454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455    ac_cv_prog_ac_ct_STRIP="strip"
6456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457    break 2
6458  fi
6459done
6460  done
6461IFS=$as_save_IFS
6462
6463fi
6464fi
6465ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6466if test -n "$ac_ct_STRIP"; then
6467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6468$as_echo "$ac_ct_STRIP" >&6; }
6469else
6470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471$as_echo "no" >&6; }
6472fi
6473
6474  if test "x$ac_ct_STRIP" = x; then
6475    STRIP=":"
6476  else
6477    case $cross_compiling:$ac_tool_warned in
6478yes:)
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481ac_tool_warned=yes ;;
6482esac
6483    STRIP=$ac_ct_STRIP
6484  fi
6485else
6486  STRIP="$ac_cv_prog_STRIP"
6487fi
6488
6489test -z "$STRIP" && STRIP=:
6490
6491
6492
6493
6494
6495
6496if test -n "$ac_tool_prefix"; then
6497  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6498set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500$as_echo_n "checking for $ac_word... " >&6; }
6501if test "${ac_cv_prog_RANLIB+set}" = set; then :
6502  $as_echo_n "(cached) " >&6
6503else
6504  if test -n "$RANLIB"; then
6505  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6506else
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510  IFS=$as_save_IFS
6511  test -z "$as_dir" && as_dir=.
6512    for ac_exec_ext in '' $ac_executable_extensions; do
6513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516    break 2
6517  fi
6518done
6519  done
6520IFS=$as_save_IFS
6521
6522fi
6523fi
6524RANLIB=$ac_cv_prog_RANLIB
6525if test -n "$RANLIB"; then
6526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6527$as_echo "$RANLIB" >&6; }
6528else
6529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530$as_echo "no" >&6; }
6531fi
6532
6533
6534fi
6535if test -z "$ac_cv_prog_RANLIB"; then
6536  ac_ct_RANLIB=$RANLIB
6537  # Extract the first word of "ranlib", so it can be a program name with args.
6538set dummy ranlib; ac_word=$2
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540$as_echo_n "checking for $ac_word... " >&6; }
6541if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6542  $as_echo_n "(cached) " >&6
6543else
6544  if test -n "$ac_ct_RANLIB"; then
6545  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6546else
6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550  IFS=$as_save_IFS
6551  test -z "$as_dir" && as_dir=.
6552    for ac_exec_ext in '' $ac_executable_extensions; do
6553  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554    ac_cv_prog_ac_ct_RANLIB="ranlib"
6555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556    break 2
6557  fi
6558done
6559  done
6560IFS=$as_save_IFS
6561
6562fi
6563fi
6564ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6565if test -n "$ac_ct_RANLIB"; then
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6567$as_echo "$ac_ct_RANLIB" >&6; }
6568else
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571fi
6572
6573  if test "x$ac_ct_RANLIB" = x; then
6574    RANLIB=":"
6575  else
6576    case $cross_compiling:$ac_tool_warned in
6577yes:)
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580ac_tool_warned=yes ;;
6581esac
6582    RANLIB=$ac_ct_RANLIB
6583  fi
6584else
6585  RANLIB="$ac_cv_prog_RANLIB"
6586fi
6587
6588test -z "$RANLIB" && RANLIB=:
6589
6590
6591
6592
6593
6594
6595# Determine commands to create old-style static archives.
6596old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6597old_postinstall_cmds='chmod 644 $oldlib'
6598old_postuninstall_cmds=
6599
6600if test -n "$RANLIB"; then
6601  case $host_os in
6602  openbsd*)
6603    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6604    ;;
6605  *)
6606    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6607    ;;
6608  esac
6609  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6610fi
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645# If no C compiler was specified, use CC.
6646LTCC=${LTCC-"$CC"}
6647
6648# If no C compiler flags were specified, use CFLAGS.
6649LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6650
6651# Allow CC to be a program name with arguments.
6652compiler=$CC
6653
6654
6655# Check for command to grab the raw symbol name followed by C symbol from nm.
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6657$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6658if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6659  $as_echo_n "(cached) " >&6
6660else
6661
6662# These are sane defaults that work on at least a few old systems.
6663# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6664
6665# Character class describing NM global symbol codes.
6666symcode='[BCDEGRST]'
6667
6668# Regexp to match symbols that can be accessed directly from C.
6669sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6670
6671# Define system-specific variables.
6672case $host_os in
6673aix*)
6674  symcode='[BCDT]'
6675  ;;
6676cygwin* | mingw* | pw32* | cegcc*)
6677  symcode='[ABCDGISTW]'
6678  ;;
6679hpux*)
6680  if test "$host_cpu" = ia64; then
6681    symcode='[ABCDEGRST]'
6682  fi
6683  ;;
6684irix* | nonstopux*)
6685  symcode='[BCDEGRST]'
6686  ;;
6687osf*)
6688  symcode='[BCDEGQRST]'
6689  ;;
6690solaris*)
6691  symcode='[BDRT]'
6692  ;;
6693sco3.2v5*)
6694  symcode='[DT]'
6695  ;;
6696sysv4.2uw2*)
6697  symcode='[DT]'
6698  ;;
6699sysv5* | sco5v6* | unixware* | OpenUNIX*)
6700  symcode='[ABDT]'
6701  ;;
6702sysv4)
6703  symcode='[DFNSTU]'
6704  ;;
6705esac
6706
6707# If we're using GNU nm, then use its standard symbol codes.
6708case `$NM -V 2>&1` in
6709*GNU* | *'with BFD'*)
6710  symcode='[ABCDGIRSTW]' ;;
6711esac
6712
6713# Transform an extracted symbol line into a proper C declaration.
6714# Some systems (esp. on ia64) link data and code symbols differently,
6715# so use this general approach.
6716lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6717
6718# Transform an extracted symbol line into symbol name and symbol address
6719lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6720lt_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'"
6721
6722# Handle CRLF in mingw tool chain
6723opt_cr=
6724case $build_os in
6725mingw*)
6726  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6727  ;;
6728esac
6729
6730# Try without a prefix underscore, then with it.
6731for ac_symprfx in "" "_"; do
6732
6733  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6734  symxfrm="\\1 $ac_symprfx\\2 \\2"
6735
6736  # Write the raw and C identifiers.
6737  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6738    # Fake it for dumpbin and say T for any non-static function
6739    # and D for any global variable.
6740    # Also find C++ and __fastcall symbols from MSVC++,
6741    # which start with @ or ?.
6742    lt_cv_sys_global_symbol_pipe="$AWK '"\
6743"     {last_section=section; section=\$ 3};"\
6744"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6745"     \$ 0!~/External *\|/{next};"\
6746"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6747"     {if(hide[section]) next};"\
6748"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6749"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6750"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6751"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6752"     ' prfx=^$ac_symprfx"
6753  else
6754    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6755  fi
6756
6757  # Check to see that the pipe works correctly.
6758  pipe_works=no
6759
6760  rm -f conftest*
6761  cat > conftest.$ac_ext <<_LT_EOF
6762#ifdef __cplusplus
6763extern "C" {
6764#endif
6765char nm_test_var;
6766void nm_test_func(void);
6767void nm_test_func(void){}
6768#ifdef __cplusplus
6769}
6770#endif
6771int main(){nm_test_var='a';nm_test_func();return(0);}
6772_LT_EOF
6773
6774  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6775  (eval $ac_compile) 2>&5
6776  ac_status=$?
6777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778  test $ac_status = 0; }; then
6779    # Now try to grab the symbols.
6780    nlist=conftest.nm
6781    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6782  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6783  ac_status=$?
6784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6785  test $ac_status = 0; } && test -s "$nlist"; then
6786      # Try sorting and uniquifying the output.
6787      if sort "$nlist" | uniq > "$nlist"T; then
6788	mv -f "$nlist"T "$nlist"
6789      else
6790	rm -f "$nlist"T
6791      fi
6792
6793      # Make sure that we snagged all the symbols we need.
6794      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6795	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6796	  cat <<_LT_EOF > conftest.$ac_ext
6797#ifdef __cplusplus
6798extern "C" {
6799#endif
6800
6801_LT_EOF
6802	  # Now generate the symbol file.
6803	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6804
6805	  cat <<_LT_EOF >> conftest.$ac_ext
6806
6807/* The mapping between symbol names and symbols.  */
6808const struct {
6809  const char *name;
6810  void       *address;
6811}
6812lt__PROGRAM__LTX_preloaded_symbols[] =
6813{
6814  { "@PROGRAM@", (void *) 0 },
6815_LT_EOF
6816	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6817	  cat <<\_LT_EOF >> conftest.$ac_ext
6818  {0, (void *) 0}
6819};
6820
6821/* This works around a problem in FreeBSD linker */
6822#ifdef FREEBSD_WORKAROUND
6823static const void *lt_preloaded_setup() {
6824  return lt__PROGRAM__LTX_preloaded_symbols;
6825}
6826#endif
6827
6828#ifdef __cplusplus
6829}
6830#endif
6831_LT_EOF
6832	  # Now try linking the two files.
6833	  mv conftest.$ac_objext conftstm.$ac_objext
6834	  lt_save_LIBS="$LIBS"
6835	  lt_save_CFLAGS="$CFLAGS"
6836	  LIBS="conftstm.$ac_objext"
6837	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6838	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6839  (eval $ac_link) 2>&5
6840  ac_status=$?
6841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6842  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6843	    pipe_works=yes
6844	  fi
6845	  LIBS="$lt_save_LIBS"
6846	  CFLAGS="$lt_save_CFLAGS"
6847	else
6848	  echo "cannot find nm_test_func in $nlist" >&5
6849	fi
6850      else
6851	echo "cannot find nm_test_var in $nlist" >&5
6852      fi
6853    else
6854      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6855    fi
6856  else
6857    echo "$progname: failed program was:" >&5
6858    cat conftest.$ac_ext >&5
6859  fi
6860  rm -rf conftest* conftst*
6861
6862  # Do not use the global_symbol_pipe unless it works.
6863  if test "$pipe_works" = yes; then
6864    break
6865  else
6866    lt_cv_sys_global_symbol_pipe=
6867  fi
6868done
6869
6870fi
6871
6872if test -z "$lt_cv_sys_global_symbol_pipe"; then
6873  lt_cv_sys_global_symbol_to_cdecl=
6874fi
6875if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6877$as_echo "failed" >&6; }
6878else
6879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6880$as_echo "ok" >&6; }
6881fi
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904# Check whether --enable-libtool-lock was given.
6905if test "${enable_libtool_lock+set}" = set; then :
6906  enableval=$enable_libtool_lock;
6907fi
6908
6909test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6910
6911# Some flags need to be propagated to the compiler or linker for good
6912# libtool support.
6913case $host in
6914ia64-*-hpux*)
6915  # Find out which ABI we are using.
6916  echo 'int i;' > conftest.$ac_ext
6917  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6918  (eval $ac_compile) 2>&5
6919  ac_status=$?
6920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6921  test $ac_status = 0; }; then
6922    case `/usr/bin/file conftest.$ac_objext` in
6923      *ELF-32*)
6924	HPUX_IA64_MODE="32"
6925	;;
6926      *ELF-64*)
6927	HPUX_IA64_MODE="64"
6928	;;
6929    esac
6930  fi
6931  rm -rf conftest*
6932  ;;
6933*-*-irix6*)
6934  # Find out which ABI we are using.
6935  echo '#line 6935 "configure"' > conftest.$ac_ext
6936  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6937  (eval $ac_compile) 2>&5
6938  ac_status=$?
6939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940  test $ac_status = 0; }; then
6941    if test "$lt_cv_prog_gnu_ld" = yes; then
6942      case `/usr/bin/file conftest.$ac_objext` in
6943	*32-bit*)
6944	  LD="${LD-ld} -melf32bsmip"
6945	  ;;
6946	*N32*)
6947	  LD="${LD-ld} -melf32bmipn32"
6948	  ;;
6949	*64-bit*)
6950	  LD="${LD-ld} -melf64bmip"
6951	;;
6952      esac
6953    else
6954      case `/usr/bin/file conftest.$ac_objext` in
6955	*32-bit*)
6956	  LD="${LD-ld} -32"
6957	  ;;
6958	*N32*)
6959	  LD="${LD-ld} -n32"
6960	  ;;
6961	*64-bit*)
6962	  LD="${LD-ld} -64"
6963	  ;;
6964      esac
6965    fi
6966  fi
6967  rm -rf conftest*
6968  ;;
6969
6970x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6971s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6972  # Find out which ABI we are using.
6973  echo 'int i;' > conftest.$ac_ext
6974  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6975  (eval $ac_compile) 2>&5
6976  ac_status=$?
6977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6978  test $ac_status = 0; }; then
6979    case `/usr/bin/file conftest.o` in
6980      *32-bit*)
6981	case $host in
6982	  x86_64-*kfreebsd*-gnu)
6983	    LD="${LD-ld} -m elf_i386_fbsd"
6984	    ;;
6985	  x86_64-*linux*)
6986	    LD="${LD-ld} -m elf_i386"
6987	    ;;
6988	  ppc64-*linux*|powerpc64-*linux*)
6989	    LD="${LD-ld} -m elf32ppclinux"
6990	    ;;
6991	  s390x-*linux*)
6992	    LD="${LD-ld} -m elf_s390"
6993	    ;;
6994	  sparc64-*linux*)
6995	    LD="${LD-ld} -m elf32_sparc"
6996	    ;;
6997	esac
6998	;;
6999      *64-bit*)
7000	case $host in
7001	  x86_64-*kfreebsd*-gnu)
7002	    LD="${LD-ld} -m elf_x86_64_fbsd"
7003	    ;;
7004	  x86_64-*linux*)
7005	    LD="${LD-ld} -m elf_x86_64"
7006	    ;;
7007	  ppc*-*linux*|powerpc*-*linux*)
7008	    LD="${LD-ld} -m elf64ppc"
7009	    ;;
7010	  s390*-*linux*|s390*-*tpf*)
7011	    LD="${LD-ld} -m elf64_s390"
7012	    ;;
7013	  sparc*-*linux*)
7014	    LD="${LD-ld} -m elf64_sparc"
7015	    ;;
7016	esac
7017	;;
7018    esac
7019  fi
7020  rm -rf conftest*
7021  ;;
7022
7023*-*-sco3.2v5*)
7024  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7025  SAVE_CFLAGS="$CFLAGS"
7026  CFLAGS="$CFLAGS -belf"
7027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7028$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7029if test "${lt_cv_cc_needs_belf+set}" = set; then :
7030  $as_echo_n "(cached) " >&6
7031else
7032  ac_ext=c
7033ac_cpp='$CPP $CPPFLAGS'
7034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036ac_compiler_gnu=$ac_cv_c_compiler_gnu
7037
7038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039/* end confdefs.h.  */
7040
7041int
7042main ()
7043{
7044
7045  ;
7046  return 0;
7047}
7048_ACEOF
7049if ac_fn_c_try_link "$LINENO"; then :
7050  lt_cv_cc_needs_belf=yes
7051else
7052  lt_cv_cc_needs_belf=no
7053fi
7054rm -f core conftest.err conftest.$ac_objext \
7055    conftest$ac_exeext conftest.$ac_ext
7056     ac_ext=c
7057ac_cpp='$CPP $CPPFLAGS'
7058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061
7062fi
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7064$as_echo "$lt_cv_cc_needs_belf" >&6; }
7065  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7066    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7067    CFLAGS="$SAVE_CFLAGS"
7068  fi
7069  ;;
7070sparc*-*solaris*)
7071  # Find out which ABI we are using.
7072  echo 'int i;' > conftest.$ac_ext
7073  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7074  (eval $ac_compile) 2>&5
7075  ac_status=$?
7076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7077  test $ac_status = 0; }; then
7078    case `/usr/bin/file conftest.o` in
7079    *64-bit*)
7080      case $lt_cv_prog_gnu_ld in
7081      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7082      *)
7083	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7084	  LD="${LD-ld} -64"
7085	fi
7086	;;
7087      esac
7088      ;;
7089    esac
7090  fi
7091  rm -rf conftest*
7092  ;;
7093esac
7094
7095need_locks="$enable_libtool_lock"
7096
7097
7098  case $host_os in
7099    rhapsody* | darwin*)
7100    if test -n "$ac_tool_prefix"; then
7101  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7102set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104$as_echo_n "checking for $ac_word... " >&6; }
7105if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7106  $as_echo_n "(cached) " >&6
7107else
7108  if test -n "$DSYMUTIL"; then
7109  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7110else
7111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112for as_dir in $PATH
7113do
7114  IFS=$as_save_IFS
7115  test -z "$as_dir" && as_dir=.
7116    for ac_exec_ext in '' $ac_executable_extensions; do
7117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120    break 2
7121  fi
7122done
7123  done
7124IFS=$as_save_IFS
7125
7126fi
7127fi
7128DSYMUTIL=$ac_cv_prog_DSYMUTIL
7129if test -n "$DSYMUTIL"; then
7130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7131$as_echo "$DSYMUTIL" >&6; }
7132else
7133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134$as_echo "no" >&6; }
7135fi
7136
7137
7138fi
7139if test -z "$ac_cv_prog_DSYMUTIL"; then
7140  ac_ct_DSYMUTIL=$DSYMUTIL
7141  # Extract the first word of "dsymutil", so it can be a program name with args.
7142set dummy dsymutil; ac_word=$2
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144$as_echo_n "checking for $ac_word... " >&6; }
7145if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7146  $as_echo_n "(cached) " >&6
7147else
7148  if test -n "$ac_ct_DSYMUTIL"; then
7149  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7150else
7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154  IFS=$as_save_IFS
7155  test -z "$as_dir" && as_dir=.
7156    for ac_exec_ext in '' $ac_executable_extensions; do
7157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7158    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160    break 2
7161  fi
7162done
7163  done
7164IFS=$as_save_IFS
7165
7166fi
7167fi
7168ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7169if test -n "$ac_ct_DSYMUTIL"; then
7170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7171$as_echo "$ac_ct_DSYMUTIL" >&6; }
7172else
7173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174$as_echo "no" >&6; }
7175fi
7176
7177  if test "x$ac_ct_DSYMUTIL" = x; then
7178    DSYMUTIL=":"
7179  else
7180    case $cross_compiling:$ac_tool_warned in
7181yes:)
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7184ac_tool_warned=yes ;;
7185esac
7186    DSYMUTIL=$ac_ct_DSYMUTIL
7187  fi
7188else
7189  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7190fi
7191
7192    if test -n "$ac_tool_prefix"; then
7193  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7194set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196$as_echo_n "checking for $ac_word... " >&6; }
7197if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7198  $as_echo_n "(cached) " >&6
7199else
7200  if test -n "$NMEDIT"; then
7201  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7202else
7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206  IFS=$as_save_IFS
7207  test -z "$as_dir" && as_dir=.
7208    for ac_exec_ext in '' $ac_executable_extensions; do
7209  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7210    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212    break 2
7213  fi
7214done
7215  done
7216IFS=$as_save_IFS
7217
7218fi
7219fi
7220NMEDIT=$ac_cv_prog_NMEDIT
7221if test -n "$NMEDIT"; then
7222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7223$as_echo "$NMEDIT" >&6; }
7224else
7225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226$as_echo "no" >&6; }
7227fi
7228
7229
7230fi
7231if test -z "$ac_cv_prog_NMEDIT"; then
7232  ac_ct_NMEDIT=$NMEDIT
7233  # Extract the first word of "nmedit", so it can be a program name with args.
7234set dummy nmedit; ac_word=$2
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236$as_echo_n "checking for $ac_word... " >&6; }
7237if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7238  $as_echo_n "(cached) " >&6
7239else
7240  if test -n "$ac_ct_NMEDIT"; then
7241  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7242else
7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246  IFS=$as_save_IFS
7247  test -z "$as_dir" && as_dir=.
7248    for ac_exec_ext in '' $ac_executable_extensions; do
7249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252    break 2
7253  fi
7254done
7255  done
7256IFS=$as_save_IFS
7257
7258fi
7259fi
7260ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7261if test -n "$ac_ct_NMEDIT"; then
7262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7263$as_echo "$ac_ct_NMEDIT" >&6; }
7264else
7265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266$as_echo "no" >&6; }
7267fi
7268
7269  if test "x$ac_ct_NMEDIT" = x; then
7270    NMEDIT=":"
7271  else
7272    case $cross_compiling:$ac_tool_warned in
7273yes:)
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7276ac_tool_warned=yes ;;
7277esac
7278    NMEDIT=$ac_ct_NMEDIT
7279  fi
7280else
7281  NMEDIT="$ac_cv_prog_NMEDIT"
7282fi
7283
7284    if test -n "$ac_tool_prefix"; then
7285  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7286set dummy ${ac_tool_prefix}lipo; ac_word=$2
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288$as_echo_n "checking for $ac_word... " >&6; }
7289if test "${ac_cv_prog_LIPO+set}" = set; then :
7290  $as_echo_n "(cached) " >&6
7291else
7292  if test -n "$LIPO"; then
7293  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7294else
7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298  IFS=$as_save_IFS
7299  test -z "$as_dir" && as_dir=.
7300    for ac_exec_ext in '' $ac_executable_extensions; do
7301  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304    break 2
7305  fi
7306done
7307  done
7308IFS=$as_save_IFS
7309
7310fi
7311fi
7312LIPO=$ac_cv_prog_LIPO
7313if test -n "$LIPO"; then
7314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7315$as_echo "$LIPO" >&6; }
7316else
7317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318$as_echo "no" >&6; }
7319fi
7320
7321
7322fi
7323if test -z "$ac_cv_prog_LIPO"; then
7324  ac_ct_LIPO=$LIPO
7325  # Extract the first word of "lipo", so it can be a program name with args.
7326set dummy lipo; ac_word=$2
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328$as_echo_n "checking for $ac_word... " >&6; }
7329if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7330  $as_echo_n "(cached) " >&6
7331else
7332  if test -n "$ac_ct_LIPO"; then
7333  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7334else
7335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336for as_dir in $PATH
7337do
7338  IFS=$as_save_IFS
7339  test -z "$as_dir" && as_dir=.
7340    for ac_exec_ext in '' $ac_executable_extensions; do
7341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342    ac_cv_prog_ac_ct_LIPO="lipo"
7343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344    break 2
7345  fi
7346done
7347  done
7348IFS=$as_save_IFS
7349
7350fi
7351fi
7352ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7353if test -n "$ac_ct_LIPO"; then
7354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7355$as_echo "$ac_ct_LIPO" >&6; }
7356else
7357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358$as_echo "no" >&6; }
7359fi
7360
7361  if test "x$ac_ct_LIPO" = x; then
7362    LIPO=":"
7363  else
7364    case $cross_compiling:$ac_tool_warned in
7365yes:)
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7368ac_tool_warned=yes ;;
7369esac
7370    LIPO=$ac_ct_LIPO
7371  fi
7372else
7373  LIPO="$ac_cv_prog_LIPO"
7374fi
7375
7376    if test -n "$ac_tool_prefix"; then
7377  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7378set dummy ${ac_tool_prefix}otool; ac_word=$2
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380$as_echo_n "checking for $ac_word... " >&6; }
7381if test "${ac_cv_prog_OTOOL+set}" = set; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  if test -n "$OTOOL"; then
7385  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7386else
7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390  IFS=$as_save_IFS
7391  test -z "$as_dir" && as_dir=.
7392    for ac_exec_ext in '' $ac_executable_extensions; do
7393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396    break 2
7397  fi
7398done
7399  done
7400IFS=$as_save_IFS
7401
7402fi
7403fi
7404OTOOL=$ac_cv_prog_OTOOL
7405if test -n "$OTOOL"; then
7406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7407$as_echo "$OTOOL" >&6; }
7408else
7409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410$as_echo "no" >&6; }
7411fi
7412
7413
7414fi
7415if test -z "$ac_cv_prog_OTOOL"; then
7416  ac_ct_OTOOL=$OTOOL
7417  # Extract the first word of "otool", so it can be a program name with args.
7418set dummy otool; ac_word=$2
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420$as_echo_n "checking for $ac_word... " >&6; }
7421if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  if test -n "$ac_ct_OTOOL"; then
7425  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7426else
7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430  IFS=$as_save_IFS
7431  test -z "$as_dir" && as_dir=.
7432    for ac_exec_ext in '' $ac_executable_extensions; do
7433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434    ac_cv_prog_ac_ct_OTOOL="otool"
7435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436    break 2
7437  fi
7438done
7439  done
7440IFS=$as_save_IFS
7441
7442fi
7443fi
7444ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7445if test -n "$ac_ct_OTOOL"; then
7446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7447$as_echo "$ac_ct_OTOOL" >&6; }
7448else
7449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
7451fi
7452
7453  if test "x$ac_ct_OTOOL" = x; then
7454    OTOOL=":"
7455  else
7456    case $cross_compiling:$ac_tool_warned in
7457yes:)
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7460ac_tool_warned=yes ;;
7461esac
7462    OTOOL=$ac_ct_OTOOL
7463  fi
7464else
7465  OTOOL="$ac_cv_prog_OTOOL"
7466fi
7467
7468    if test -n "$ac_tool_prefix"; then
7469  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7470set dummy ${ac_tool_prefix}otool64; ac_word=$2
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472$as_echo_n "checking for $ac_word... " >&6; }
7473if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7474  $as_echo_n "(cached) " >&6
7475else
7476  if test -n "$OTOOL64"; then
7477  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7478else
7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482  IFS=$as_save_IFS
7483  test -z "$as_dir" && as_dir=.
7484    for ac_exec_ext in '' $ac_executable_extensions; do
7485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488    break 2
7489  fi
7490done
7491  done
7492IFS=$as_save_IFS
7493
7494fi
7495fi
7496OTOOL64=$ac_cv_prog_OTOOL64
7497if test -n "$OTOOL64"; then
7498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7499$as_echo "$OTOOL64" >&6; }
7500else
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502$as_echo "no" >&6; }
7503fi
7504
7505
7506fi
7507if test -z "$ac_cv_prog_OTOOL64"; then
7508  ac_ct_OTOOL64=$OTOOL64
7509  # Extract the first word of "otool64", so it can be a program name with args.
7510set dummy otool64; ac_word=$2
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512$as_echo_n "checking for $ac_word... " >&6; }
7513if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  if test -n "$ac_ct_OTOOL64"; then
7517  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7518else
7519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520for as_dir in $PATH
7521do
7522  IFS=$as_save_IFS
7523  test -z "$as_dir" && as_dir=.
7524    for ac_exec_ext in '' $ac_executable_extensions; do
7525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526    ac_cv_prog_ac_ct_OTOOL64="otool64"
7527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528    break 2
7529  fi
7530done
7531  done
7532IFS=$as_save_IFS
7533
7534fi
7535fi
7536ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7537if test -n "$ac_ct_OTOOL64"; then
7538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7539$as_echo "$ac_ct_OTOOL64" >&6; }
7540else
7541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542$as_echo "no" >&6; }
7543fi
7544
7545  if test "x$ac_ct_OTOOL64" = x; then
7546    OTOOL64=":"
7547  else
7548    case $cross_compiling:$ac_tool_warned in
7549yes:)
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7552ac_tool_warned=yes ;;
7553esac
7554    OTOOL64=$ac_ct_OTOOL64
7555  fi
7556else
7557  OTOOL64="$ac_cv_prog_OTOOL64"
7558fi
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7587$as_echo_n "checking for -single_module linker flag... " >&6; }
7588if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7589  $as_echo_n "(cached) " >&6
7590else
7591  lt_cv_apple_cc_single_mod=no
7592      if test -z "${LT_MULTI_MODULE}"; then
7593	# By default we will add the -single_module flag. You can override
7594	# by either setting the environment variable LT_MULTI_MODULE
7595	# non-empty at configure time, or by adding -multi_module to the
7596	# link flags.
7597	rm -rf libconftest.dylib*
7598	echo "int foo(void){return 1;}" > conftest.c
7599	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7600-dynamiclib -Wl,-single_module conftest.c" >&5
7601	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7602	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7603        _lt_result=$?
7604	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7605	  lt_cv_apple_cc_single_mod=yes
7606	else
7607	  cat conftest.err >&5
7608	fi
7609	rm -rf libconftest.dylib*
7610	rm -f conftest.*
7611      fi
7612fi
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7614$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7616$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7617if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  lt_cv_ld_exported_symbols_list=no
7621      save_LDFLAGS=$LDFLAGS
7622      echo "_main" > conftest.sym
7623      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7624      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625/* end confdefs.h.  */
7626
7627int
7628main ()
7629{
7630
7631  ;
7632  return 0;
7633}
7634_ACEOF
7635if ac_fn_c_try_link "$LINENO"; then :
7636  lt_cv_ld_exported_symbols_list=yes
7637else
7638  lt_cv_ld_exported_symbols_list=no
7639fi
7640rm -f core conftest.err conftest.$ac_objext \
7641    conftest$ac_exeext conftest.$ac_ext
7642	LDFLAGS="$save_LDFLAGS"
7643
7644fi
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7646$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7647    case $host_os in
7648    rhapsody* | darwin1.[012])
7649      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7650    darwin1.*)
7651      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7652    darwin*) # darwin 5.x on
7653      # if running on 10.5 or later, the deployment target defaults
7654      # to the OS version, if on x86, and 10.4, the deployment
7655      # target defaults to 10.4. Don't you love it?
7656      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7657	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7658	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7659	10.[012]*)
7660	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7661	10.*)
7662	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7663      esac
7664    ;;
7665  esac
7666    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7667      _lt_dar_single_mod='$single_module'
7668    fi
7669    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7670      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7671    else
7672      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7673    fi
7674    if test "$DSYMUTIL" != ":"; then
7675      _lt_dsymutil='~$DSYMUTIL $lib || :'
7676    else
7677      _lt_dsymutil=
7678    fi
7679    ;;
7680  esac
7681
7682for ac_header in dlfcn.h
7683do :
7684  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7685"
7686if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7687  cat >>confdefs.h <<_ACEOF
7688#define HAVE_DLFCN_H 1
7689_ACEOF
7690
7691fi
7692
7693done
7694
7695
7696
7697# Set options
7698
7699
7700
7701        enable_dlopen=no
7702
7703
7704  enable_win32_dll=no
7705
7706
7707            # Check whether --enable-shared was given.
7708if test "${enable_shared+set}" = set; then :
7709  enableval=$enable_shared; p=${PACKAGE-default}
7710    case $enableval in
7711    yes) enable_shared=yes ;;
7712    no) enable_shared=no ;;
7713    *)
7714      enable_shared=no
7715      # Look at the argument we got.  We use all the common list separators.
7716      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7717      for pkg in $enableval; do
7718	IFS="$lt_save_ifs"
7719	if test "X$pkg" = "X$p"; then
7720	  enable_shared=yes
7721	fi
7722      done
7723      IFS="$lt_save_ifs"
7724      ;;
7725    esac
7726else
7727  enable_shared=yes
7728fi
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738  # Check whether --enable-static was given.
7739if test "${enable_static+set}" = set; then :
7740  enableval=$enable_static; p=${PACKAGE-default}
7741    case $enableval in
7742    yes) enable_static=yes ;;
7743    no) enable_static=no ;;
7744    *)
7745     enable_static=no
7746      # Look at the argument we got.  We use all the common list separators.
7747      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7748      for pkg in $enableval; do
7749	IFS="$lt_save_ifs"
7750	if test "X$pkg" = "X$p"; then
7751	  enable_static=yes
7752	fi
7753      done
7754      IFS="$lt_save_ifs"
7755      ;;
7756    esac
7757else
7758  enable_static=yes
7759fi
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770# Check whether --with-pic was given.
7771if test "${with_pic+set}" = set; then :
7772  withval=$with_pic; pic_mode="$withval"
7773else
7774  pic_mode=default
7775fi
7776
7777
7778test -z "$pic_mode" && pic_mode=default
7779
7780
7781
7782
7783
7784
7785
7786  # Check whether --enable-fast-install was given.
7787if test "${enable_fast_install+set}" = set; then :
7788  enableval=$enable_fast_install; p=${PACKAGE-default}
7789    case $enableval in
7790    yes) enable_fast_install=yes ;;
7791    no) enable_fast_install=no ;;
7792    *)
7793      enable_fast_install=no
7794      # Look at the argument we got.  We use all the common list separators.
7795      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7796      for pkg in $enableval; do
7797	IFS="$lt_save_ifs"
7798	if test "X$pkg" = "X$p"; then
7799	  enable_fast_install=yes
7800	fi
7801      done
7802      IFS="$lt_save_ifs"
7803      ;;
7804    esac
7805else
7806  enable_fast_install=yes
7807fi
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819# This can be used to rebuild libtool when needed
7820LIBTOOL_DEPS="$ltmain"
7821
7822# Always use our own libtool.
7823LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849test -z "$LN_S" && LN_S="ln -s"
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864if test -n "${ZSH_VERSION+set}" ; then
7865   setopt NO_GLOB_SUBST
7866fi
7867
7868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7869$as_echo_n "checking for objdir... " >&6; }
7870if test "${lt_cv_objdir+set}" = set; then :
7871  $as_echo_n "(cached) " >&6
7872else
7873  rm -f .libs 2>/dev/null
7874mkdir .libs 2>/dev/null
7875if test -d .libs; then
7876  lt_cv_objdir=.libs
7877else
7878  # MS-DOS does not allow filenames that begin with a dot.
7879  lt_cv_objdir=_libs
7880fi
7881rmdir .libs 2>/dev/null
7882fi
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7884$as_echo "$lt_cv_objdir" >&6; }
7885objdir=$lt_cv_objdir
7886
7887
7888
7889
7890
7891cat >>confdefs.h <<_ACEOF
7892#define LT_OBJDIR "$lt_cv_objdir/"
7893_ACEOF
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911case $host_os in
7912aix3*)
7913  # AIX sometimes has problems with the GCC collect2 program.  For some
7914  # reason, if we set the COLLECT_NAMES environment variable, the problems
7915  # vanish in a puff of smoke.
7916  if test "X${COLLECT_NAMES+set}" != Xset; then
7917    COLLECT_NAMES=
7918    export COLLECT_NAMES
7919  fi
7920  ;;
7921esac
7922
7923# Sed substitution that helps us do robust quoting.  It backslashifies
7924# metacharacters that are still active within double-quoted strings.
7925sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7926
7927# Same as above, but do not quote variable references.
7928double_quote_subst='s/\(["`\\]\)/\\\1/g'
7929
7930# Sed substitution to delay expansion of an escaped shell variable in a
7931# double_quote_subst'ed string.
7932delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7933
7934# Sed substitution to delay expansion of an escaped single quote.
7935delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7936
7937# Sed substitution to avoid accidental globbing in evaled expressions
7938no_glob_subst='s/\*/\\\*/g'
7939
7940# Global variables:
7941ofile=libtool
7942can_build_shared=yes
7943
7944# All known linkers require a `.a' archive for static linking (except MSVC,
7945# which needs '.lib').
7946libext=a
7947
7948with_gnu_ld="$lt_cv_prog_gnu_ld"
7949
7950old_CC="$CC"
7951old_CFLAGS="$CFLAGS"
7952
7953# Set sane defaults for various variables
7954test -z "$CC" && CC=cc
7955test -z "$LTCC" && LTCC=$CC
7956test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7957test -z "$LD" && LD=ld
7958test -z "$ac_objext" && ac_objext=o
7959
7960for cc_temp in $compiler""; do
7961  case $cc_temp in
7962    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7963    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7964    \-*) ;;
7965    *) break;;
7966  esac
7967done
7968cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7969
7970
7971# Only perform the check for file, if the check method requires it
7972test -z "$MAGIC_CMD" && MAGIC_CMD=file
7973case $deplibs_check_method in
7974file_magic*)
7975  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7976    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7977$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7978if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7979  $as_echo_n "(cached) " >&6
7980else
7981  case $MAGIC_CMD in
7982[\\/*] |  ?:[\\/]*)
7983  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7984  ;;
7985*)
7986  lt_save_MAGIC_CMD="$MAGIC_CMD"
7987  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7988  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7989  for ac_dir in $ac_dummy; do
7990    IFS="$lt_save_ifs"
7991    test -z "$ac_dir" && ac_dir=.
7992    if test -f $ac_dir/${ac_tool_prefix}file; then
7993      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7994      if test -n "$file_magic_test_file"; then
7995	case $deplibs_check_method in
7996	"file_magic "*)
7997	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7998	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7999	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8000	    $EGREP "$file_magic_regex" > /dev/null; then
8001	    :
8002	  else
8003	    cat <<_LT_EOF 1>&2
8004
8005*** Warning: the command libtool uses to detect shared libraries,
8006*** $file_magic_cmd, produces output that libtool cannot recognize.
8007*** The result is that libtool may fail to recognize shared libraries
8008*** as such.  This will affect the creation of libtool libraries that
8009*** depend on shared libraries, but programs linked with such libtool
8010*** libraries will work regardless of this problem.  Nevertheless, you
8011*** may want to report the problem to your system manager and/or to
8012*** bug-libtool@gnu.org
8013
8014_LT_EOF
8015	  fi ;;
8016	esac
8017      fi
8018      break
8019    fi
8020  done
8021  IFS="$lt_save_ifs"
8022  MAGIC_CMD="$lt_save_MAGIC_CMD"
8023  ;;
8024esac
8025fi
8026
8027MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8028if test -n "$MAGIC_CMD"; then
8029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8030$as_echo "$MAGIC_CMD" >&6; }
8031else
8032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033$as_echo "no" >&6; }
8034fi
8035
8036
8037
8038
8039
8040if test -z "$lt_cv_path_MAGIC_CMD"; then
8041  if test -n "$ac_tool_prefix"; then
8042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8043$as_echo_n "checking for file... " >&6; }
8044if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8045  $as_echo_n "(cached) " >&6
8046else
8047  case $MAGIC_CMD in
8048[\\/*] |  ?:[\\/]*)
8049  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8050  ;;
8051*)
8052  lt_save_MAGIC_CMD="$MAGIC_CMD"
8053  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8054  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8055  for ac_dir in $ac_dummy; do
8056    IFS="$lt_save_ifs"
8057    test -z "$ac_dir" && ac_dir=.
8058    if test -f $ac_dir/file; then
8059      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8060      if test -n "$file_magic_test_file"; then
8061	case $deplibs_check_method in
8062	"file_magic "*)
8063	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8064	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8065	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8066	    $EGREP "$file_magic_regex" > /dev/null; then
8067	    :
8068	  else
8069	    cat <<_LT_EOF 1>&2
8070
8071*** Warning: the command libtool uses to detect shared libraries,
8072*** $file_magic_cmd, produces output that libtool cannot recognize.
8073*** The result is that libtool may fail to recognize shared libraries
8074*** as such.  This will affect the creation of libtool libraries that
8075*** depend on shared libraries, but programs linked with such libtool
8076*** libraries will work regardless of this problem.  Nevertheless, you
8077*** may want to report the problem to your system manager and/or to
8078*** bug-libtool@gnu.org
8079
8080_LT_EOF
8081	  fi ;;
8082	esac
8083      fi
8084      break
8085    fi
8086  done
8087  IFS="$lt_save_ifs"
8088  MAGIC_CMD="$lt_save_MAGIC_CMD"
8089  ;;
8090esac
8091fi
8092
8093MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8094if test -n "$MAGIC_CMD"; then
8095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8096$as_echo "$MAGIC_CMD" >&6; }
8097else
8098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099$as_echo "no" >&6; }
8100fi
8101
8102
8103  else
8104    MAGIC_CMD=:
8105  fi
8106fi
8107
8108  fi
8109  ;;
8110esac
8111
8112# Use C for the default configuration in the libtool script
8113
8114lt_save_CC="$CC"
8115ac_ext=c
8116ac_cpp='$CPP $CPPFLAGS'
8117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119ac_compiler_gnu=$ac_cv_c_compiler_gnu
8120
8121
8122# Source file extension for C test sources.
8123ac_ext=c
8124
8125# Object file extension for compiled C test sources.
8126objext=o
8127objext=$objext
8128
8129# Code to be used in simple compile tests
8130lt_simple_compile_test_code="int some_variable = 0;"
8131
8132# Code to be used in simple link tests
8133lt_simple_link_test_code='int main(){return(0);}'
8134
8135
8136
8137
8138
8139
8140
8141# If no C compiler was specified, use CC.
8142LTCC=${LTCC-"$CC"}
8143
8144# If no C compiler flags were specified, use CFLAGS.
8145LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8146
8147# Allow CC to be a program name with arguments.
8148compiler=$CC
8149
8150# Save the default compiler, since it gets overwritten when the other
8151# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8152compiler_DEFAULT=$CC
8153
8154# save warnings/boilerplate of simple test code
8155ac_outfile=conftest.$ac_objext
8156echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8157eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8158_lt_compiler_boilerplate=`cat conftest.err`
8159$RM conftest*
8160
8161ac_outfile=conftest.$ac_objext
8162echo "$lt_simple_link_test_code" >conftest.$ac_ext
8163eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8164_lt_linker_boilerplate=`cat conftest.err`
8165$RM -r conftest*
8166
8167
8168## CAVEAT EMPTOR:
8169## There is no encapsulation within the following macros, do not change
8170## the running order or otherwise move them around unless you know exactly
8171## what you are doing...
8172if test -n "$compiler"; then
8173
8174lt_prog_compiler_no_builtin_flag=
8175
8176if test "$GCC" = yes; then
8177  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8178
8179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8180$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8181if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8182  $as_echo_n "(cached) " >&6
8183else
8184  lt_cv_prog_compiler_rtti_exceptions=no
8185   ac_outfile=conftest.$ac_objext
8186   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8187   lt_compiler_flag="-fno-rtti -fno-exceptions"
8188   # Insert the option either (1) after the last *FLAGS variable, or
8189   # (2) before a word containing "conftest.", or (3) at the end.
8190   # Note that $ac_compile itself does not contain backslashes and begins
8191   # with a dollar sign (not a hyphen), so the echo should work correctly.
8192   # The option is referenced via a variable to avoid confusing sed.
8193   lt_compile=`echo "$ac_compile" | $SED \
8194   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8195   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8196   -e 's:$: $lt_compiler_flag:'`
8197   (eval echo "\"\$as_me:8197: $lt_compile\"" >&5)
8198   (eval "$lt_compile" 2>conftest.err)
8199   ac_status=$?
8200   cat conftest.err >&5
8201   echo "$as_me:8201: \$? = $ac_status" >&5
8202   if (exit $ac_status) && test -s "$ac_outfile"; then
8203     # The compiler can only warn and ignore the option if not recognized
8204     # So say no if there are warnings other than the usual output.
8205     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8206     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8207     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8208       lt_cv_prog_compiler_rtti_exceptions=yes
8209     fi
8210   fi
8211   $RM conftest*
8212
8213fi
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8215$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8216
8217if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8218    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8219else
8220    :
8221fi
8222
8223fi
8224
8225
8226
8227
8228
8229
8230  lt_prog_compiler_wl=
8231lt_prog_compiler_pic=
8232lt_prog_compiler_static=
8233
8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8235$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8236
8237  if test "$GCC" = yes; then
8238    lt_prog_compiler_wl='-Wl,'
8239    lt_prog_compiler_static='-static'
8240
8241    case $host_os in
8242      aix*)
8243      # All AIX code is PIC.
8244      if test "$host_cpu" = ia64; then
8245	# AIX 5 now supports IA64 processor
8246	lt_prog_compiler_static='-Bstatic'
8247      fi
8248      ;;
8249
8250    amigaos*)
8251      case $host_cpu in
8252      powerpc)
8253            # see comment about AmigaOS4 .so support
8254            lt_prog_compiler_pic='-fPIC'
8255        ;;
8256      m68k)
8257            # FIXME: we need at least 68020 code to build shared libraries, but
8258            # adding the `-m68020' flag to GCC prevents building anything better,
8259            # like `-m68040'.
8260            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8261        ;;
8262      esac
8263      ;;
8264
8265    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8266      # PIC is the default for these OSes.
8267      ;;
8268
8269    mingw* | cygwin* | pw32* | os2* | cegcc*)
8270      # This hack is so that the source file can tell whether it is being
8271      # built for inclusion in a dll (and should export symbols for example).
8272      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8273      # (--disable-auto-import) libraries
8274      lt_prog_compiler_pic='-DDLL_EXPORT'
8275      ;;
8276
8277    darwin* | rhapsody*)
8278      # PIC is the default on this platform
8279      # Common symbols not allowed in MH_DYLIB files
8280      lt_prog_compiler_pic='-fno-common'
8281      ;;
8282
8283    hpux*)
8284      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8285      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8286      # sets the default TLS model and affects inlining.
8287      case $host_cpu in
8288      hppa*64*)
8289	# +Z the default
8290	;;
8291      *)
8292	lt_prog_compiler_pic='-fPIC'
8293	;;
8294      esac
8295      ;;
8296
8297    interix[3-9]*)
8298      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8299      # Instead, we relocate shared libraries at runtime.
8300      ;;
8301
8302    msdosdjgpp*)
8303      # Just because we use GCC doesn't mean we suddenly get shared libraries
8304      # on systems that don't support them.
8305      lt_prog_compiler_can_build_shared=no
8306      enable_shared=no
8307      ;;
8308
8309    *nto* | *qnx*)
8310      # QNX uses GNU C++, but need to define -shared option too, otherwise
8311      # it will coredump.
8312      lt_prog_compiler_pic='-fPIC -shared'
8313      ;;
8314
8315    sysv4*MP*)
8316      if test -d /usr/nec; then
8317	lt_prog_compiler_pic=-Kconform_pic
8318      fi
8319      ;;
8320
8321    *)
8322      lt_prog_compiler_pic='-fPIC'
8323      ;;
8324    esac
8325  else
8326    # PORTME Check for flag to pass linker flags through the system compiler.
8327    case $host_os in
8328    aix*)
8329      lt_prog_compiler_wl='-Wl,'
8330      if test "$host_cpu" = ia64; then
8331	# AIX 5 now supports IA64 processor
8332	lt_prog_compiler_static='-Bstatic'
8333      else
8334	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8335      fi
8336      ;;
8337
8338    mingw* | cygwin* | pw32* | os2* | cegcc*)
8339      # This hack is so that the source file can tell whether it is being
8340      # built for inclusion in a dll (and should export symbols for example).
8341      lt_prog_compiler_pic='-DDLL_EXPORT'
8342      ;;
8343
8344    hpux9* | hpux10* | hpux11*)
8345      lt_prog_compiler_wl='-Wl,'
8346      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8347      # not for PA HP-UX.
8348      case $host_cpu in
8349      hppa*64*|ia64*)
8350	# +Z the default
8351	;;
8352      *)
8353	lt_prog_compiler_pic='+Z'
8354	;;
8355      esac
8356      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8357      lt_prog_compiler_static='${wl}-a ${wl}archive'
8358      ;;
8359
8360    irix5* | irix6* | nonstopux*)
8361      lt_prog_compiler_wl='-Wl,'
8362      # PIC (with -KPIC) is the default.
8363      lt_prog_compiler_static='-non_shared'
8364      ;;
8365
8366    linux* | k*bsd*-gnu)
8367      case $cc_basename in
8368      # old Intel for x86_64 which still supported -KPIC.
8369      ecc*)
8370	lt_prog_compiler_wl='-Wl,'
8371	lt_prog_compiler_pic='-KPIC'
8372	lt_prog_compiler_static='-static'
8373        ;;
8374      # icc used to be incompatible with GCC.
8375      # ICC 10 doesn't accept -KPIC any more.
8376      icc* | ifort*)
8377	lt_prog_compiler_wl='-Wl,'
8378	lt_prog_compiler_pic='-fPIC'
8379	lt_prog_compiler_static='-static'
8380        ;;
8381      # Lahey Fortran 8.1.
8382      lf95*)
8383	lt_prog_compiler_wl='-Wl,'
8384	lt_prog_compiler_pic='--shared'
8385	lt_prog_compiler_static='--static'
8386	;;
8387      pgcc* | pgf77* | pgf90* | pgf95*)
8388        # Portland Group compilers (*not* the Pentium gcc compiler,
8389	# which looks to be a dead project)
8390	lt_prog_compiler_wl='-Wl,'
8391	lt_prog_compiler_pic='-fpic'
8392	lt_prog_compiler_static='-Bstatic'
8393        ;;
8394      ccc*)
8395        lt_prog_compiler_wl='-Wl,'
8396        # All Alpha code is PIC.
8397        lt_prog_compiler_static='-non_shared'
8398        ;;
8399      xl*)
8400	# IBM XL C 8.0/Fortran 10.1 on PPC
8401	lt_prog_compiler_wl='-Wl,'
8402	lt_prog_compiler_pic='-qpic'
8403	lt_prog_compiler_static='-qstaticlink'
8404	;;
8405      *)
8406	case `$CC -V 2>&1 | sed 5q` in
8407	*Sun\ C*)
8408	  # Sun C 5.9
8409	  lt_prog_compiler_pic='-KPIC'
8410	  lt_prog_compiler_static='-Bstatic'
8411	  lt_prog_compiler_wl='-Wl,'
8412	  ;;
8413	*Sun\ F*)
8414	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8415	  lt_prog_compiler_pic='-KPIC'
8416	  lt_prog_compiler_static='-Bstatic'
8417	  lt_prog_compiler_wl=''
8418	  ;;
8419	esac
8420	;;
8421      esac
8422      ;;
8423
8424    newsos6)
8425      lt_prog_compiler_pic='-KPIC'
8426      lt_prog_compiler_static='-Bstatic'
8427      ;;
8428
8429    *nto* | *qnx*)
8430      # QNX uses GNU C++, but need to define -shared option too, otherwise
8431      # it will coredump.
8432      lt_prog_compiler_pic='-fPIC -shared'
8433      ;;
8434
8435    osf3* | osf4* | osf5*)
8436      lt_prog_compiler_wl='-Wl,'
8437      # All OSF/1 code is PIC.
8438      lt_prog_compiler_static='-non_shared'
8439      ;;
8440
8441    rdos*)
8442      lt_prog_compiler_static='-non_shared'
8443      ;;
8444
8445    solaris*)
8446      lt_prog_compiler_pic='-KPIC'
8447      lt_prog_compiler_static='-Bstatic'
8448      case $cc_basename in
8449      f77* | f90* | f95*)
8450	lt_prog_compiler_wl='-Qoption ld ';;
8451      *)
8452	lt_prog_compiler_wl='-Wl,';;
8453      esac
8454      ;;
8455
8456    sunos4*)
8457      lt_prog_compiler_wl='-Qoption ld '
8458      lt_prog_compiler_pic='-PIC'
8459      lt_prog_compiler_static='-Bstatic'
8460      ;;
8461
8462    sysv4 | sysv4.2uw2* | sysv4.3*)
8463      lt_prog_compiler_wl='-Wl,'
8464      lt_prog_compiler_pic='-KPIC'
8465      lt_prog_compiler_static='-Bstatic'
8466      ;;
8467
8468    sysv4*MP*)
8469      if test -d /usr/nec ;then
8470	lt_prog_compiler_pic='-Kconform_pic'
8471	lt_prog_compiler_static='-Bstatic'
8472      fi
8473      ;;
8474
8475    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8476      lt_prog_compiler_wl='-Wl,'
8477      lt_prog_compiler_pic='-KPIC'
8478      lt_prog_compiler_static='-Bstatic'
8479      ;;
8480
8481    unicos*)
8482      lt_prog_compiler_wl='-Wl,'
8483      lt_prog_compiler_can_build_shared=no
8484      ;;
8485
8486    uts4*)
8487      lt_prog_compiler_pic='-pic'
8488      lt_prog_compiler_static='-Bstatic'
8489      ;;
8490
8491    *)
8492      lt_prog_compiler_can_build_shared=no
8493      ;;
8494    esac
8495  fi
8496
8497case $host_os in
8498  # For platforms which do not support PIC, -DPIC is meaningless:
8499  *djgpp*)
8500    lt_prog_compiler_pic=
8501    ;;
8502  *)
8503    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8504    ;;
8505esac
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8507$as_echo "$lt_prog_compiler_pic" >&6; }
8508
8509
8510
8511
8512
8513
8514#
8515# Check to make sure the PIC flag actually works.
8516#
8517if test -n "$lt_prog_compiler_pic"; then
8518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8519$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8520if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8521  $as_echo_n "(cached) " >&6
8522else
8523  lt_cv_prog_compiler_pic_works=no
8524   ac_outfile=conftest.$ac_objext
8525   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8526   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8527   # Insert the option either (1) after the last *FLAGS variable, or
8528   # (2) before a word containing "conftest.", or (3) at the end.
8529   # Note that $ac_compile itself does not contain backslashes and begins
8530   # with a dollar sign (not a hyphen), so the echo should work correctly.
8531   # The option is referenced via a variable to avoid confusing sed.
8532   lt_compile=`echo "$ac_compile" | $SED \
8533   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8534   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8535   -e 's:$: $lt_compiler_flag:'`
8536   (eval echo "\"\$as_me:8536: $lt_compile\"" >&5)
8537   (eval "$lt_compile" 2>conftest.err)
8538   ac_status=$?
8539   cat conftest.err >&5
8540   echo "$as_me:8540: \$? = $ac_status" >&5
8541   if (exit $ac_status) && test -s "$ac_outfile"; then
8542     # The compiler can only warn and ignore the option if not recognized
8543     # So say no if there are warnings other than the usual output.
8544     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8545     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8546     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8547       lt_cv_prog_compiler_pic_works=yes
8548     fi
8549   fi
8550   $RM conftest*
8551
8552fi
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8554$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8555
8556if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8557    case $lt_prog_compiler_pic in
8558     "" | " "*) ;;
8559     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8560     esac
8561else
8562    lt_prog_compiler_pic=
8563     lt_prog_compiler_can_build_shared=no
8564fi
8565
8566fi
8567
8568
8569
8570
8571
8572
8573#
8574# Check to make sure the static flag actually works.
8575#
8576wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8578$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8579if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8580  $as_echo_n "(cached) " >&6
8581else
8582  lt_cv_prog_compiler_static_works=no
8583   save_LDFLAGS="$LDFLAGS"
8584   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8585   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8586   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8587     # The linker can only warn and ignore the option if not recognized
8588     # So say no if there are warnings
8589     if test -s conftest.err; then
8590       # Append any errors to the config.log.
8591       cat conftest.err 1>&5
8592       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8593       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8594       if diff conftest.exp conftest.er2 >/dev/null; then
8595         lt_cv_prog_compiler_static_works=yes
8596       fi
8597     else
8598       lt_cv_prog_compiler_static_works=yes
8599     fi
8600   fi
8601   $RM -r conftest*
8602   LDFLAGS="$save_LDFLAGS"
8603
8604fi
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8606$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8607
8608if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8609    :
8610else
8611    lt_prog_compiler_static=
8612fi
8613
8614
8615
8616
8617
8618
8619
8620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8621$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8622if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8623  $as_echo_n "(cached) " >&6
8624else
8625  lt_cv_prog_compiler_c_o=no
8626   $RM -r conftest 2>/dev/null
8627   mkdir conftest
8628   cd conftest
8629   mkdir out
8630   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8631
8632   lt_compiler_flag="-o out/conftest2.$ac_objext"
8633   # Insert the option either (1) after the last *FLAGS variable, or
8634   # (2) before a word containing "conftest.", or (3) at the end.
8635   # Note that $ac_compile itself does not contain backslashes and begins
8636   # with a dollar sign (not a hyphen), so the echo should work correctly.
8637   lt_compile=`echo "$ac_compile" | $SED \
8638   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8639   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8640   -e 's:$: $lt_compiler_flag:'`
8641   (eval echo "\"\$as_me:8641: $lt_compile\"" >&5)
8642   (eval "$lt_compile" 2>out/conftest.err)
8643   ac_status=$?
8644   cat out/conftest.err >&5
8645   echo "$as_me:8645: \$? = $ac_status" >&5
8646   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8647   then
8648     # The compiler can only warn and ignore the option if not recognized
8649     # So say no if there are warnings
8650     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8651     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8652     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8653       lt_cv_prog_compiler_c_o=yes
8654     fi
8655   fi
8656   chmod u+w . 2>&5
8657   $RM conftest*
8658   # SGI C++ compiler will create directory out/ii_files/ for
8659   # template instantiation
8660   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8661   $RM out/* && rmdir out
8662   cd ..
8663   $RM -r conftest
8664   $RM conftest*
8665
8666fi
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8668$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8669
8670
8671
8672
8673
8674
8675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8676$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8677if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8678  $as_echo_n "(cached) " >&6
8679else
8680  lt_cv_prog_compiler_c_o=no
8681   $RM -r conftest 2>/dev/null
8682   mkdir conftest
8683   cd conftest
8684   mkdir out
8685   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8686
8687   lt_compiler_flag="-o out/conftest2.$ac_objext"
8688   # Insert the option either (1) after the last *FLAGS variable, or
8689   # (2) before a word containing "conftest.", or (3) at the end.
8690   # Note that $ac_compile itself does not contain backslashes and begins
8691   # with a dollar sign (not a hyphen), so the echo should work correctly.
8692   lt_compile=`echo "$ac_compile" | $SED \
8693   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8694   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8695   -e 's:$: $lt_compiler_flag:'`
8696   (eval echo "\"\$as_me:8696: $lt_compile\"" >&5)
8697   (eval "$lt_compile" 2>out/conftest.err)
8698   ac_status=$?
8699   cat out/conftest.err >&5
8700   echo "$as_me:8700: \$? = $ac_status" >&5
8701   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8702   then
8703     # The compiler can only warn and ignore the option if not recognized
8704     # So say no if there are warnings
8705     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8706     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8707     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8708       lt_cv_prog_compiler_c_o=yes
8709     fi
8710   fi
8711   chmod u+w . 2>&5
8712   $RM conftest*
8713   # SGI C++ compiler will create directory out/ii_files/ for
8714   # template instantiation
8715   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8716   $RM out/* && rmdir out
8717   cd ..
8718   $RM -r conftest
8719   $RM conftest*
8720
8721fi
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8723$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8724
8725
8726
8727
8728hard_links="nottested"
8729if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8730  # do not overwrite the value of need_locks provided by the user
8731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8732$as_echo_n "checking if we can lock with hard links... " >&6; }
8733  hard_links=yes
8734  $RM conftest*
8735  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8736  touch conftest.a
8737  ln conftest.a conftest.b 2>&5 || hard_links=no
8738  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8740$as_echo "$hard_links" >&6; }
8741  if test "$hard_links" = no; then
8742    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8743$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8744    need_locks=warn
8745  fi
8746else
8747  need_locks=no
8748fi
8749
8750
8751
8752
8753
8754
8755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8756$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8757
8758  runpath_var=
8759  allow_undefined_flag=
8760  always_export_symbols=no
8761  archive_cmds=
8762  archive_expsym_cmds=
8763  compiler_needs_object=no
8764  enable_shared_with_static_runtimes=no
8765  export_dynamic_flag_spec=
8766  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8767  hardcode_automatic=no
8768  hardcode_direct=no
8769  hardcode_direct_absolute=no
8770  hardcode_libdir_flag_spec=
8771  hardcode_libdir_flag_spec_ld=
8772  hardcode_libdir_separator=
8773  hardcode_minus_L=no
8774  hardcode_shlibpath_var=unsupported
8775  inherit_rpath=no
8776  link_all_deplibs=unknown
8777  module_cmds=
8778  module_expsym_cmds=
8779  old_archive_from_new_cmds=
8780  old_archive_from_expsyms_cmds=
8781  thread_safe_flag_spec=
8782  whole_archive_flag_spec=
8783  # include_expsyms should be a list of space-separated symbols to be *always*
8784  # included in the symbol list
8785  include_expsyms=
8786  # exclude_expsyms can be an extended regexp of symbols to exclude
8787  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8788  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8789  # as well as any symbol that contains `d'.
8790  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8791  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8792  # platforms (ab)use it in PIC code, but their linkers get confused if
8793  # the symbol is explicitly referenced.  Since portable code cannot
8794  # rely on this symbol name, it's probably fine to never include it in
8795  # preloaded symbol tables.
8796  # Exclude shared library initialization/finalization symbols.
8797  extract_expsyms_cmds=
8798
8799  case $host_os in
8800  cygwin* | mingw* | pw32* | cegcc*)
8801    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8802    # When not using gcc, we currently assume that we are using
8803    # Microsoft Visual C++.
8804    if test "$GCC" != yes; then
8805      with_gnu_ld=no
8806    fi
8807    ;;
8808  interix*)
8809    # we just hope/assume this is gcc and not c89 (= MSVC++)
8810    with_gnu_ld=yes
8811    ;;
8812  openbsd*)
8813    with_gnu_ld=no
8814    ;;
8815  esac
8816
8817  ld_shlibs=yes
8818  if test "$with_gnu_ld" = yes; then
8819    # If archive_cmds runs LD, not CC, wlarc should be empty
8820    wlarc='${wl}'
8821
8822    # Set some defaults for GNU ld with shared library support. These
8823    # are reset later if shared libraries are not supported. Putting them
8824    # here allows them to be overridden if necessary.
8825    runpath_var=LD_RUN_PATH
8826    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8827    export_dynamic_flag_spec='${wl}--export-dynamic'
8828    # ancient GNU ld didn't support --whole-archive et. al.
8829    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8830      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8831    else
8832      whole_archive_flag_spec=
8833    fi
8834    supports_anon_versioning=no
8835    case `$LD -v 2>&1` in
8836      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8837      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8838      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8839      *\ 2.11.*) ;; # other 2.11 versions
8840      *) supports_anon_versioning=yes ;;
8841    esac
8842
8843    # See if GNU ld supports shared libraries.
8844    case $host_os in
8845    aix[3-9]*)
8846      # On AIX/PPC, the GNU linker is very broken
8847      if test "$host_cpu" != ia64; then
8848	ld_shlibs=no
8849	cat <<_LT_EOF 1>&2
8850
8851*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8852*** to be unable to reliably create shared libraries on AIX.
8853*** Therefore, libtool is disabling shared libraries support.  If you
8854*** really care for shared libraries, you may want to modify your PATH
8855*** so that a non-GNU linker is found, and then restart.
8856
8857_LT_EOF
8858      fi
8859      ;;
8860
8861    amigaos*)
8862      case $host_cpu in
8863      powerpc)
8864            # see comment about AmigaOS4 .so support
8865            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866            archive_expsym_cmds=''
8867        ;;
8868      m68k)
8869            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)'
8870            hardcode_libdir_flag_spec='-L$libdir'
8871            hardcode_minus_L=yes
8872        ;;
8873      esac
8874      ;;
8875
8876    beos*)
8877      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8878	allow_undefined_flag=unsupported
8879	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8880	# support --undefined.  This deserves some investigation.  FIXME
8881	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882      else
8883	ld_shlibs=no
8884      fi
8885      ;;
8886
8887    cygwin* | mingw* | pw32* | cegcc*)
8888      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8889      # as there is no search path for DLLs.
8890      hardcode_libdir_flag_spec='-L$libdir'
8891      allow_undefined_flag=unsupported
8892      always_export_symbols=no
8893      enable_shared_with_static_runtimes=yes
8894      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8895
8896      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8897        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8898	# If the export-symbols file already is a .def file (1st line
8899	# is EXPORTS), use it as is; otherwise, prepend...
8900	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8901	  cp $export_symbols $output_objdir/$soname.def;
8902	else
8903	  echo EXPORTS > $output_objdir/$soname.def;
8904	  cat $export_symbols >> $output_objdir/$soname.def;
8905	fi~
8906	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8907      else
8908	ld_shlibs=no
8909      fi
8910      ;;
8911
8912    interix[3-9]*)
8913      hardcode_direct=no
8914      hardcode_shlibpath_var=no
8915      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916      export_dynamic_flag_spec='${wl}-E'
8917      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8918      # Instead, shared libraries are loaded at an image base (0x10000000 by
8919      # default) and relocated if they conflict, which is a slow very memory
8920      # consuming and fragmenting process.  To avoid this, we pick a random,
8921      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8922      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8923      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8924      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'
8925      ;;
8926
8927    gnu* | linux* | tpf* | k*bsd*-gnu)
8928      tmp_diet=no
8929      if test "$host_os" = linux-dietlibc; then
8930	case $cc_basename in
8931	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8932	esac
8933      fi
8934      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8935	 && test "$tmp_diet" = no
8936      then
8937	tmp_addflag=
8938	tmp_sharedflag='-shared'
8939	case $cc_basename,$host_cpu in
8940        pgcc*)				# Portland Group C compiler
8941	  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'
8942	  tmp_addflag=' $pic_flag'
8943	  ;;
8944	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8945	  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'
8946	  tmp_addflag=' $pic_flag -Mnomain' ;;
8947	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8948	  tmp_addflag=' -i_dynamic' ;;
8949	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8950	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8951	ifc* | ifort*)			# Intel Fortran compiler
8952	  tmp_addflag=' -nofor_main' ;;
8953	lf95*)				# Lahey Fortran 8.1
8954	  whole_archive_flag_spec=
8955	  tmp_sharedflag='--shared' ;;
8956	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8957	  tmp_sharedflag='-qmkshrobj'
8958	  tmp_addflag= ;;
8959	esac
8960	case `$CC -V 2>&1 | sed 5q` in
8961	*Sun\ C*)			# Sun C 5.9
8962	  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'
8963	  compiler_needs_object=yes
8964	  tmp_sharedflag='-G' ;;
8965	*Sun\ F*)			# Sun Fortran 8.3
8966	  tmp_sharedflag='-G' ;;
8967	esac
8968	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969
8970        if test "x$supports_anon_versioning" = xyes; then
8971          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8972	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8973	    echo "local: *; };" >> $output_objdir/$libname.ver~
8974	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8975        fi
8976
8977	case $cc_basename in
8978	xlf*)
8979	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8980	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8981	  hardcode_libdir_flag_spec=
8982	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8983	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8984	  if test "x$supports_anon_versioning" = xyes; then
8985	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8986	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8987	      echo "local: *; };" >> $output_objdir/$libname.ver~
8988	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8989	  fi
8990	  ;;
8991	esac
8992      else
8993        ld_shlibs=no
8994      fi
8995      ;;
8996
8997    netbsd*)
8998      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8999	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9000	wlarc=
9001      else
9002	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9003	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9004      fi
9005      ;;
9006
9007    solaris*)
9008      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9009	ld_shlibs=no
9010	cat <<_LT_EOF 1>&2
9011
9012*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9013*** create shared libraries on Solaris systems.  Therefore, libtool
9014*** is disabling shared libraries support.  We urge you to upgrade GNU
9015*** binutils to release 2.9.1 or newer.  Another option is to modify
9016*** your PATH or compiler configuration so that the native linker is
9017*** used, and then restart.
9018
9019_LT_EOF
9020      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9021	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9022	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9023      else
9024	ld_shlibs=no
9025      fi
9026      ;;
9027
9028    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9029      case `$LD -v 2>&1` in
9030        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9031	ld_shlibs=no
9032	cat <<_LT_EOF 1>&2
9033
9034*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9035*** reliably create shared libraries on SCO systems.  Therefore, libtool
9036*** is disabling shared libraries support.  We urge you to upgrade GNU
9037*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9038*** your PATH or compiler configuration so that the native linker is
9039*** used, and then restart.
9040
9041_LT_EOF
9042	;;
9043	*)
9044	  # For security reasons, it is highly recommended that you always
9045	  # use absolute paths for naming shared libraries, and exclude the
9046	  # DT_RUNPATH tag from executables and libraries.  But doing so
9047	  # requires that you compile everything twice, which is a pain.
9048	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9049	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9050	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9052	  else
9053	    ld_shlibs=no
9054	  fi
9055	;;
9056      esac
9057      ;;
9058
9059    sunos4*)
9060      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9061      wlarc=
9062      hardcode_direct=yes
9063      hardcode_shlibpath_var=no
9064      ;;
9065
9066    *)
9067      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9068	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9070      else
9071	ld_shlibs=no
9072      fi
9073      ;;
9074    esac
9075
9076    if test "$ld_shlibs" = no; then
9077      runpath_var=
9078      hardcode_libdir_flag_spec=
9079      export_dynamic_flag_spec=
9080      whole_archive_flag_spec=
9081    fi
9082  else
9083    # PORTME fill in a description of your system's linker (not GNU ld)
9084    case $host_os in
9085    aix3*)
9086      allow_undefined_flag=unsupported
9087      always_export_symbols=yes
9088      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'
9089      # Note: this linker hardcodes the directories in LIBPATH if there
9090      # are no directories specified by -L.
9091      hardcode_minus_L=yes
9092      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9093	# Neither direct hardcoding nor static linking is supported with a
9094	# broken collect2.
9095	hardcode_direct=unsupported
9096      fi
9097      ;;
9098
9099    aix[4-9]*)
9100      if test "$host_cpu" = ia64; then
9101	# On IA64, the linker does run time linking by default, so we don't
9102	# have to do anything special.
9103	aix_use_runtimelinking=no
9104	exp_sym_flag='-Bexport'
9105	no_entry_flag=""
9106      else
9107	# If we're using GNU nm, then we don't want the "-C" option.
9108	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9109	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9110	  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'
9111	else
9112	  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'
9113	fi
9114	aix_use_runtimelinking=no
9115
9116	# Test if we are trying to use run time linking or normal
9117	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9118	# need to do runtime linking.
9119	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9120	  for ld_flag in $LDFLAGS; do
9121	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9122	    aix_use_runtimelinking=yes
9123	    break
9124	  fi
9125	  done
9126	  ;;
9127	esac
9128
9129	exp_sym_flag='-bexport'
9130	no_entry_flag='-bnoentry'
9131      fi
9132
9133      # When large executables or shared objects are built, AIX ld can
9134      # have problems creating the table of contents.  If linking a library
9135      # or program results in "error TOC overflow" add -mminimal-toc to
9136      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9137      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9138
9139      archive_cmds=''
9140      hardcode_direct=yes
9141      hardcode_direct_absolute=yes
9142      hardcode_libdir_separator=':'
9143      link_all_deplibs=yes
9144      file_list_spec='${wl}-f,'
9145
9146      if test "$GCC" = yes; then
9147	case $host_os in aix4.[012]|aix4.[012].*)
9148	# We only want to do this on AIX 4.2 and lower, the check
9149	# below for broken collect2 doesn't work under 4.3+
9150	  collect2name=`${CC} -print-prog-name=collect2`
9151	  if test -f "$collect2name" &&
9152	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9153	  then
9154	  # We have reworked collect2
9155	  :
9156	  else
9157	  # We have old collect2
9158	  hardcode_direct=unsupported
9159	  # It fails to find uninstalled libraries when the uninstalled
9160	  # path is not listed in the libpath.  Setting hardcode_minus_L
9161	  # to unsupported forces relinking
9162	  hardcode_minus_L=yes
9163	  hardcode_libdir_flag_spec='-L$libdir'
9164	  hardcode_libdir_separator=
9165	  fi
9166	  ;;
9167	esac
9168	shared_flag='-shared'
9169	if test "$aix_use_runtimelinking" = yes; then
9170	  shared_flag="$shared_flag "'${wl}-G'
9171	fi
9172      else
9173	# not using gcc
9174	if test "$host_cpu" = ia64; then
9175	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9176	# chokes on -Wl,-G. The following line is correct:
9177	  shared_flag='-G'
9178	else
9179	  if test "$aix_use_runtimelinking" = yes; then
9180	    shared_flag='${wl}-G'
9181	  else
9182	    shared_flag='${wl}-bM:SRE'
9183	  fi
9184	fi
9185      fi
9186
9187      export_dynamic_flag_spec='${wl}-bexpall'
9188      # It seems that -bexpall does not export symbols beginning with
9189      # underscore (_), so it is better to generate a list of symbols to export.
9190      always_export_symbols=yes
9191      if test "$aix_use_runtimelinking" = yes; then
9192	# Warning - without using the other runtime loading flags (-brtl),
9193	# -berok will link without error, but may produce a broken library.
9194	allow_undefined_flag='-berok'
9195        # Determine the default libpath from the value encoded in an
9196        # empty executable.
9197        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198/* end confdefs.h.  */
9199
9200int
9201main ()
9202{
9203
9204  ;
9205  return 0;
9206}
9207_ACEOF
9208if ac_fn_c_try_link "$LINENO"; then :
9209
9210lt_aix_libpath_sed='
9211    /Import File Strings/,/^$/ {
9212	/^0/ {
9213	    s/^0  *\(.*\)$/\1/
9214	    p
9215	}
9216    }'
9217aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9218# Check for a 64-bit object if we didn't find anything.
9219if test -z "$aix_libpath"; then
9220  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9221fi
9222fi
9223rm -f core conftest.err conftest.$ac_objext \
9224    conftest$ac_exeext conftest.$ac_ext
9225if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9226
9227        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9228        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"
9229      else
9230	if test "$host_cpu" = ia64; then
9231	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9232	  allow_undefined_flag="-z nodefs"
9233	  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"
9234	else
9235	 # Determine the default libpath from the value encoded in an
9236	 # empty executable.
9237	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9238/* end confdefs.h.  */
9239
9240int
9241main ()
9242{
9243
9244  ;
9245  return 0;
9246}
9247_ACEOF
9248if ac_fn_c_try_link "$LINENO"; then :
9249
9250lt_aix_libpath_sed='
9251    /Import File Strings/,/^$/ {
9252	/^0/ {
9253	    s/^0  *\(.*\)$/\1/
9254	    p
9255	}
9256    }'
9257aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9258# Check for a 64-bit object if we didn't find anything.
9259if test -z "$aix_libpath"; then
9260  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9261fi
9262fi
9263rm -f core conftest.err conftest.$ac_objext \
9264    conftest$ac_exeext conftest.$ac_ext
9265if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9266
9267	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9268	  # Warning - without using the other run time loading flags,
9269	  # -berok will link without error, but may produce a broken library.
9270	  no_undefined_flag=' ${wl}-bernotok'
9271	  allow_undefined_flag=' ${wl}-berok'
9272	  # Exported symbols can be pulled into shared objects from archives
9273	  whole_archive_flag_spec='$convenience'
9274	  archive_cmds_need_lc=yes
9275	  # This is similar to how AIX traditionally builds its shared libraries.
9276	  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'
9277	fi
9278      fi
9279      ;;
9280
9281    amigaos*)
9282      case $host_cpu in
9283      powerpc)
9284            # see comment about AmigaOS4 .so support
9285            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286            archive_expsym_cmds=''
9287        ;;
9288      m68k)
9289            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)'
9290            hardcode_libdir_flag_spec='-L$libdir'
9291            hardcode_minus_L=yes
9292        ;;
9293      esac
9294      ;;
9295
9296    bsdi[45]*)
9297      export_dynamic_flag_spec=-rdynamic
9298      ;;
9299
9300    cygwin* | mingw* | pw32* | cegcc*)
9301      # When not using gcc, we currently assume that we are using
9302      # Microsoft Visual C++.
9303      # hardcode_libdir_flag_spec is actually meaningless, as there is
9304      # no search path for DLLs.
9305      hardcode_libdir_flag_spec=' '
9306      allow_undefined_flag=unsupported
9307      # Tell ltmain to make .lib files, not .a files.
9308      libext=lib
9309      # Tell ltmain to make .dll files, not .so files.
9310      shrext_cmds=".dll"
9311      # FIXME: Setting linknames here is a bad hack.
9312      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9313      # The linker will automatically build a .lib file if we build a DLL.
9314      old_archive_from_new_cmds='true'
9315      # FIXME: Should let the user specify the lib program.
9316      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9317      fix_srcfile_path='`cygpath -w "$srcfile"`'
9318      enable_shared_with_static_runtimes=yes
9319      ;;
9320
9321    darwin* | rhapsody*)
9322
9323
9324  archive_cmds_need_lc=no
9325  hardcode_direct=no
9326  hardcode_automatic=yes
9327  hardcode_shlibpath_var=unsupported
9328  whole_archive_flag_spec=''
9329  link_all_deplibs=yes
9330  allow_undefined_flag="$_lt_dar_allow_undefined"
9331  case $cc_basename in
9332     ifort*) _lt_dar_can_shared=yes ;;
9333     *) _lt_dar_can_shared=$GCC ;;
9334  esac
9335  if test "$_lt_dar_can_shared" = "yes"; then
9336    output_verbose_link_cmd=echo
9337    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9338    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9339    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}"
9340    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}"
9341
9342  else
9343  ld_shlibs=no
9344  fi
9345
9346      ;;
9347
9348    dgux*)
9349      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350      hardcode_libdir_flag_spec='-L$libdir'
9351      hardcode_shlibpath_var=no
9352      ;;
9353
9354    freebsd1*)
9355      ld_shlibs=no
9356      ;;
9357
9358    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9359    # support.  Future versions do this automatically, but an explicit c++rt0.o
9360    # does not break anything, and helps significantly (at the cost of a little
9361    # extra space).
9362    freebsd2.2*)
9363      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9364      hardcode_libdir_flag_spec='-R$libdir'
9365      hardcode_direct=yes
9366      hardcode_shlibpath_var=no
9367      ;;
9368
9369    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9370    freebsd2*)
9371      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9372      hardcode_direct=yes
9373      hardcode_minus_L=yes
9374      hardcode_shlibpath_var=no
9375      ;;
9376
9377    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9378    freebsd* | dragonfly*)
9379      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9380      hardcode_libdir_flag_spec='-R$libdir'
9381      hardcode_direct=yes
9382      hardcode_shlibpath_var=no
9383      ;;
9384
9385    hpux9*)
9386      if test "$GCC" = yes; then
9387	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'
9388      else
9389	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'
9390      fi
9391      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9392      hardcode_libdir_separator=:
9393      hardcode_direct=yes
9394
9395      # hardcode_minus_L: Not really in the search PATH,
9396      # but as the default location of the library.
9397      hardcode_minus_L=yes
9398      export_dynamic_flag_spec='${wl}-E'
9399      ;;
9400
9401    hpux10*)
9402      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9403	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9404      else
9405	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9406      fi
9407      if test "$with_gnu_ld" = no; then
9408	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9409	hardcode_libdir_flag_spec_ld='+b $libdir'
9410	hardcode_libdir_separator=:
9411	hardcode_direct=yes
9412	hardcode_direct_absolute=yes
9413	export_dynamic_flag_spec='${wl}-E'
9414	# hardcode_minus_L: Not really in the search PATH,
9415	# but as the default location of the library.
9416	hardcode_minus_L=yes
9417      fi
9418      ;;
9419
9420    hpux11*)
9421      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9422	case $host_cpu in
9423	hppa*64*)
9424	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9425	  ;;
9426	ia64*)
9427	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9428	  ;;
9429	*)
9430	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9431	  ;;
9432	esac
9433      else
9434	case $host_cpu in
9435	hppa*64*)
9436	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9437	  ;;
9438	ia64*)
9439	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9440	  ;;
9441	*)
9442	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9443	  ;;
9444	esac
9445      fi
9446      if test "$with_gnu_ld" = no; then
9447	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9448	hardcode_libdir_separator=:
9449
9450	case $host_cpu in
9451	hppa*64*|ia64*)
9452	  hardcode_direct=no
9453	  hardcode_shlibpath_var=no
9454	  ;;
9455	*)
9456	  hardcode_direct=yes
9457	  hardcode_direct_absolute=yes
9458	  export_dynamic_flag_spec='${wl}-E'
9459
9460	  # hardcode_minus_L: Not really in the search PATH,
9461	  # but as the default location of the library.
9462	  hardcode_minus_L=yes
9463	  ;;
9464	esac
9465      fi
9466      ;;
9467
9468    irix5* | irix6* | nonstopux*)
9469      if test "$GCC" = yes; then
9470	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'
9471	# Try to use the -exported_symbol ld option, if it does not
9472	# work, assume that -exports_file does not work either and
9473	# implicitly export all symbols.
9474        save_LDFLAGS="$LDFLAGS"
9475        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9476        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477/* end confdefs.h.  */
9478int foo(void) {}
9479_ACEOF
9480if ac_fn_c_try_link "$LINENO"; then :
9481  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'
9482
9483fi
9484rm -f core conftest.err conftest.$ac_objext \
9485    conftest$ac_exeext conftest.$ac_ext
9486        LDFLAGS="$save_LDFLAGS"
9487      else
9488	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'
9489	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'
9490      fi
9491      archive_cmds_need_lc='no'
9492      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9493      hardcode_libdir_separator=:
9494      inherit_rpath=yes
9495      link_all_deplibs=yes
9496      ;;
9497
9498    netbsd*)
9499      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9500	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9501      else
9502	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9503      fi
9504      hardcode_libdir_flag_spec='-R$libdir'
9505      hardcode_direct=yes
9506      hardcode_shlibpath_var=no
9507      ;;
9508
9509    newsos6)
9510      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511      hardcode_direct=yes
9512      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9513      hardcode_libdir_separator=:
9514      hardcode_shlibpath_var=no
9515      ;;
9516
9517    *nto* | *qnx*)
9518      ;;
9519
9520    openbsd*)
9521      if test -f /usr/libexec/ld.so; then
9522	hardcode_direct=yes
9523	hardcode_shlibpath_var=no
9524	hardcode_direct_absolute=yes
9525	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9526	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9527	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9528	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9529	  export_dynamic_flag_spec='${wl}-E'
9530	else
9531	  case $host_os in
9532	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9533	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9534	     hardcode_libdir_flag_spec='-R$libdir'
9535	     ;;
9536	   *)
9537	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9538	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9539	     ;;
9540	  esac
9541	fi
9542      else
9543	ld_shlibs=no
9544      fi
9545      ;;
9546
9547    os2*)
9548      hardcode_libdir_flag_spec='-L$libdir'
9549      hardcode_minus_L=yes
9550      allow_undefined_flag=unsupported
9551      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'
9552      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9553      ;;
9554
9555    osf3*)
9556      if test "$GCC" = yes; then
9557	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9558	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'
9559      else
9560	allow_undefined_flag=' -expect_unresolved \*'
9561	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'
9562      fi
9563      archive_cmds_need_lc='no'
9564      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565      hardcode_libdir_separator=:
9566      ;;
9567
9568    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9569      if test "$GCC" = yes; then
9570	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9571	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'
9572	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9573      else
9574	allow_undefined_flag=' -expect_unresolved \*'
9575	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'
9576	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~
9577	$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'
9578
9579	# Both c and cxx compiler support -rpath directly
9580	hardcode_libdir_flag_spec='-rpath $libdir'
9581      fi
9582      archive_cmds_need_lc='no'
9583      hardcode_libdir_separator=:
9584      ;;
9585
9586    solaris*)
9587      no_undefined_flag=' -z defs'
9588      if test "$GCC" = yes; then
9589	wlarc='${wl}'
9590	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9591	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9592	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9593      else
9594	case `$CC -V 2>&1` in
9595	*"Compilers 5.0"*)
9596	  wlarc=''
9597	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9599	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9600	  ;;
9601	*)
9602	  wlarc='${wl}'
9603	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9604	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9605	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9606	  ;;
9607	esac
9608      fi
9609      hardcode_libdir_flag_spec='-R$libdir'
9610      hardcode_shlibpath_var=no
9611      case $host_os in
9612      solaris2.[0-5] | solaris2.[0-5].*) ;;
9613      *)
9614	# The compiler driver will combine and reorder linker options,
9615	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9616	# but is careful enough not to reorder.
9617	# Supported since Solaris 2.6 (maybe 2.5.1?)
9618	if test "$GCC" = yes; then
9619	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9620	else
9621	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9622	fi
9623	;;
9624      esac
9625      link_all_deplibs=yes
9626      ;;
9627
9628    sunos4*)
9629      if test "x$host_vendor" = xsequent; then
9630	# Use $CC to link under sequent, because it throws in some extra .o
9631	# files that make .init and .fini sections work.
9632	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9633      else
9634	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9635      fi
9636      hardcode_libdir_flag_spec='-L$libdir'
9637      hardcode_direct=yes
9638      hardcode_minus_L=yes
9639      hardcode_shlibpath_var=no
9640      ;;
9641
9642    sysv4)
9643      case $host_vendor in
9644	sni)
9645	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646	  hardcode_direct=yes # is this really true???
9647	;;
9648	siemens)
9649	  ## LD is ld it makes a PLAMLIB
9650	  ## CC just makes a GrossModule.
9651	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9652	  reload_cmds='$CC -r -o $output$reload_objs'
9653	  hardcode_direct=no
9654        ;;
9655	motorola)
9656	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9658	;;
9659      esac
9660      runpath_var='LD_RUN_PATH'
9661      hardcode_shlibpath_var=no
9662      ;;
9663
9664    sysv4.3*)
9665      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666      hardcode_shlibpath_var=no
9667      export_dynamic_flag_spec='-Bexport'
9668      ;;
9669
9670    sysv4*MP*)
9671      if test -d /usr/nec; then
9672	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673	hardcode_shlibpath_var=no
9674	runpath_var=LD_RUN_PATH
9675	hardcode_runpath_var=yes
9676	ld_shlibs=yes
9677      fi
9678      ;;
9679
9680    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9681      no_undefined_flag='${wl}-z,text'
9682      archive_cmds_need_lc=no
9683      hardcode_shlibpath_var=no
9684      runpath_var='LD_RUN_PATH'
9685
9686      if test "$GCC" = yes; then
9687	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9688	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689      else
9690	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9691	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692      fi
9693      ;;
9694
9695    sysv5* | sco3.2v5* | sco5v6*)
9696      # Note: We can NOT use -z defs as we might desire, because we do not
9697      # link with -lc, and that would cause any symbols used from libc to
9698      # always be unresolved, which means just about no library would
9699      # ever link correctly.  If we're not using GNU ld we use -z text
9700      # though, which does catch some bad symbols but isn't as heavy-handed
9701      # as -z defs.
9702      no_undefined_flag='${wl}-z,text'
9703      allow_undefined_flag='${wl}-z,nodefs'
9704      archive_cmds_need_lc=no
9705      hardcode_shlibpath_var=no
9706      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9707      hardcode_libdir_separator=':'
9708      link_all_deplibs=yes
9709      export_dynamic_flag_spec='${wl}-Bexport'
9710      runpath_var='LD_RUN_PATH'
9711
9712      if test "$GCC" = yes; then
9713	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9715      else
9716	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718      fi
9719      ;;
9720
9721    uts4*)
9722      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723      hardcode_libdir_flag_spec='-L$libdir'
9724      hardcode_shlibpath_var=no
9725      ;;
9726
9727    *)
9728      ld_shlibs=no
9729      ;;
9730    esac
9731
9732    if test x$host_vendor = xsni; then
9733      case $host in
9734      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9735	export_dynamic_flag_spec='${wl}-Blargedynsym'
9736	;;
9737      esac
9738    fi
9739  fi
9740
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9742$as_echo "$ld_shlibs" >&6; }
9743test "$ld_shlibs" = no && can_build_shared=no
9744
9745with_gnu_ld=$with_gnu_ld
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761#
9762# Do we need to explicitly link libc?
9763#
9764case "x$archive_cmds_need_lc" in
9765x|xyes)
9766  # Assume -lc should be added
9767  archive_cmds_need_lc=yes
9768
9769  if test "$enable_shared" = yes && test "$GCC" = yes; then
9770    case $archive_cmds in
9771    *'~'*)
9772      # FIXME: we may have to deal with multi-command sequences.
9773      ;;
9774    '$CC '*)
9775      # Test whether the compiler implicitly links with -lc since on some
9776      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9777      # to ld, don't add -lc before -lgcc.
9778      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9779$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9780      $RM conftest*
9781      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9782
9783      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9784  (eval $ac_compile) 2>&5
9785  ac_status=$?
9786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9787  test $ac_status = 0; } 2>conftest.err; then
9788        soname=conftest
9789        lib=conftest
9790        libobjs=conftest.$ac_objext
9791        deplibs=
9792        wl=$lt_prog_compiler_wl
9793	pic_flag=$lt_prog_compiler_pic
9794        compiler_flags=-v
9795        linker_flags=-v
9796        verstring=
9797        output_objdir=.
9798        libname=conftest
9799        lt_save_allow_undefined_flag=$allow_undefined_flag
9800        allow_undefined_flag=
9801        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9802  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9803  ac_status=$?
9804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9805  test $ac_status = 0; }
9806        then
9807	  archive_cmds_need_lc=no
9808        else
9809	  archive_cmds_need_lc=yes
9810        fi
9811        allow_undefined_flag=$lt_save_allow_undefined_flag
9812      else
9813        cat conftest.err 1>&5
9814      fi
9815      $RM conftest*
9816      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9817$as_echo "$archive_cmds_need_lc" >&6; }
9818      ;;
9819    esac
9820  fi
9821  ;;
9822esac
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9981$as_echo_n "checking dynamic linker characteristics... " >&6; }
9982
9983if test "$GCC" = yes; then
9984  case $host_os in
9985    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9986    *) lt_awk_arg="/^libraries:/" ;;
9987  esac
9988  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9989  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9990    # if the path contains ";" then we assume it to be the separator
9991    # otherwise default to the standard path separator (i.e. ":") - it is
9992    # assumed that no part of a normal pathname contains ";" but that should
9993    # okay in the real world where ";" in dirpaths is itself problematic.
9994    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9995  else
9996    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9997  fi
9998  # Ok, now we have the path, separated by spaces, we can step through it
9999  # and add multilib dir if necessary.
10000  lt_tmp_lt_search_path_spec=
10001  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10002  for lt_sys_path in $lt_search_path_spec; do
10003    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10004      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10005    else
10006      test -d "$lt_sys_path" && \
10007	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10008    fi
10009  done
10010  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10011BEGIN {RS=" "; FS="/|\n";} {
10012  lt_foo="";
10013  lt_count=0;
10014  for (lt_i = NF; lt_i > 0; lt_i--) {
10015    if ($lt_i != "" && $lt_i != ".") {
10016      if ($lt_i == "..") {
10017        lt_count++;
10018      } else {
10019        if (lt_count == 0) {
10020          lt_foo="/" $lt_i lt_foo;
10021        } else {
10022          lt_count--;
10023        }
10024      }
10025    }
10026  }
10027  if (lt_foo != "") { lt_freq[lt_foo]++; }
10028  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10029}'`
10030  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10031else
10032  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10033fi
10034library_names_spec=
10035libname_spec='lib$name'
10036soname_spec=
10037shrext_cmds=".so"
10038postinstall_cmds=
10039postuninstall_cmds=
10040finish_cmds=
10041finish_eval=
10042shlibpath_var=
10043shlibpath_overrides_runpath=unknown
10044version_type=none
10045dynamic_linker="$host_os ld.so"
10046sys_lib_dlsearch_path_spec="/lib /usr/lib"
10047need_lib_prefix=unknown
10048hardcode_into_libs=no
10049
10050# when you set need_version to no, make sure it does not cause -set_version
10051# flags to be left without arguments
10052need_version=unknown
10053
10054case $host_os in
10055aix3*)
10056  version_type=linux
10057  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10058  shlibpath_var=LIBPATH
10059
10060  # AIX 3 has no versioning support, so we append a major version to the name.
10061  soname_spec='${libname}${release}${shared_ext}$major'
10062  ;;
10063
10064aix[4-9]*)
10065  version_type=linux
10066  need_lib_prefix=no
10067  need_version=no
10068  hardcode_into_libs=yes
10069  if test "$host_cpu" = ia64; then
10070    # AIX 5 supports IA64
10071    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10072    shlibpath_var=LD_LIBRARY_PATH
10073  else
10074    # With GCC up to 2.95.x, collect2 would create an import file
10075    # for dependence libraries.  The import file would start with
10076    # the line `#! .'.  This would cause the generated library to
10077    # depend on `.', always an invalid library.  This was fixed in
10078    # development snapshots of GCC prior to 3.0.
10079    case $host_os in
10080      aix4 | aix4.[01] | aix4.[01].*)
10081      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10082	   echo ' yes '
10083	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10084	:
10085      else
10086	can_build_shared=no
10087      fi
10088      ;;
10089    esac
10090    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10091    # soname into executable. Probably we can add versioning support to
10092    # collect2, so additional links can be useful in future.
10093    if test "$aix_use_runtimelinking" = yes; then
10094      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10095      # instead of lib<name>.a to let people know that these are not
10096      # typical AIX shared libraries.
10097      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098    else
10099      # We preserve .a as extension for shared libraries through AIX4.2
10100      # and later when we are not doing run time linking.
10101      library_names_spec='${libname}${release}.a $libname.a'
10102      soname_spec='${libname}${release}${shared_ext}$major'
10103    fi
10104    shlibpath_var=LIBPATH
10105  fi
10106  ;;
10107
10108amigaos*)
10109  case $host_cpu in
10110  powerpc)
10111    # Since July 2007 AmigaOS4 officially supports .so libraries.
10112    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10113    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114    ;;
10115  m68k)
10116    library_names_spec='$libname.ixlibrary $libname.a'
10117    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10118    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'
10119    ;;
10120  esac
10121  ;;
10122
10123beos*)
10124  library_names_spec='${libname}${shared_ext}'
10125  dynamic_linker="$host_os ld.so"
10126  shlibpath_var=LIBRARY_PATH
10127  ;;
10128
10129bsdi[45]*)
10130  version_type=linux
10131  need_version=no
10132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133  soname_spec='${libname}${release}${shared_ext}$major'
10134  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10135  shlibpath_var=LD_LIBRARY_PATH
10136  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10137  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10138  # the default ld.so.conf also contains /usr/contrib/lib and
10139  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10140  # libtool to hard-code these into programs
10141  ;;
10142
10143cygwin* | mingw* | pw32* | cegcc*)
10144  version_type=windows
10145  shrext_cmds=".dll"
10146  need_version=no
10147  need_lib_prefix=no
10148
10149  case $GCC,$host_os in
10150  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10151    library_names_spec='$libname.dll.a'
10152    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10153    postinstall_cmds='base_file=`basename \${file}`~
10154      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10155      dldir=$destdir/`dirname \$dlpath`~
10156      test -d \$dldir || mkdir -p \$dldir~
10157      $install_prog $dir/$dlname \$dldir/$dlname~
10158      chmod a+x \$dldir/$dlname~
10159      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10160        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10161      fi'
10162    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10163      dlpath=$dir/\$dldll~
10164       $RM \$dlpath'
10165    shlibpath_overrides_runpath=yes
10166
10167    case $host_os in
10168    cygwin*)
10169      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10170      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10171      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10172      ;;
10173    mingw* | cegcc*)
10174      # MinGW DLLs use traditional 'lib' prefix
10175      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10176      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10177      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10178        # It is most probably a Windows format PATH printed by
10179        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10180        # path with ; separators, and with drive letters. We can handle the
10181        # drive letters (cygwin fileutils understands them), so leave them,
10182        # especially as we might pass files found there to a mingw objdump,
10183        # which wouldn't understand a cygwinified path. Ahh.
10184        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10185      else
10186        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10187      fi
10188      ;;
10189    pw32*)
10190      # pw32 DLLs use 'pw' prefix rather than 'lib'
10191      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10192      ;;
10193    esac
10194    ;;
10195
10196  *)
10197    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10198    ;;
10199  esac
10200  dynamic_linker='Win32 ld.exe'
10201  # FIXME: first we should search . and the directory the executable is in
10202  shlibpath_var=PATH
10203  ;;
10204
10205darwin* | rhapsody*)
10206  dynamic_linker="$host_os dyld"
10207  version_type=darwin
10208  need_lib_prefix=no
10209  need_version=no
10210  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10211  soname_spec='${libname}${release}${major}$shared_ext'
10212  shlibpath_overrides_runpath=yes
10213  shlibpath_var=DYLD_LIBRARY_PATH
10214  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10215
10216  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10217  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10218  ;;
10219
10220dgux*)
10221  version_type=linux
10222  need_lib_prefix=no
10223  need_version=no
10224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10225  soname_spec='${libname}${release}${shared_ext}$major'
10226  shlibpath_var=LD_LIBRARY_PATH
10227  ;;
10228
10229freebsd1*)
10230  dynamic_linker=no
10231  ;;
10232
10233freebsd* | dragonfly*)
10234  # DragonFly does not have aout.  When/if they implement a new
10235  # versioning mechanism, adjust this.
10236  if test -x /usr/bin/objformat; then
10237    objformat=`/usr/bin/objformat`
10238  else
10239    case $host_os in
10240    freebsd[123]*) objformat=aout ;;
10241    *) objformat=elf ;;
10242    esac
10243  fi
10244  version_type=freebsd-$objformat
10245  case $version_type in
10246    freebsd-elf*)
10247      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10248      need_version=no
10249      need_lib_prefix=no
10250      ;;
10251    freebsd-*)
10252      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10253      need_version=yes
10254      ;;
10255  esac
10256  shlibpath_var=LD_LIBRARY_PATH
10257  case $host_os in
10258  freebsd2*)
10259    shlibpath_overrides_runpath=yes
10260    ;;
10261  freebsd3.[01]* | freebsdelf3.[01]*)
10262    shlibpath_overrides_runpath=yes
10263    hardcode_into_libs=yes
10264    ;;
10265  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10266  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10267    shlibpath_overrides_runpath=no
10268    hardcode_into_libs=yes
10269    ;;
10270  *) # from 4.6 on, and DragonFly
10271    shlibpath_overrides_runpath=yes
10272    hardcode_into_libs=yes
10273    ;;
10274  esac
10275  ;;
10276
10277gnu*)
10278  version_type=linux
10279  need_lib_prefix=no
10280  need_version=no
10281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10282  soname_spec='${libname}${release}${shared_ext}$major'
10283  shlibpath_var=LD_LIBRARY_PATH
10284  hardcode_into_libs=yes
10285  ;;
10286
10287hpux9* | hpux10* | hpux11*)
10288  # Give a soname corresponding to the major version so that dld.sl refuses to
10289  # link against other versions.
10290  version_type=sunos
10291  need_lib_prefix=no
10292  need_version=no
10293  case $host_cpu in
10294  ia64*)
10295    shrext_cmds='.so'
10296    hardcode_into_libs=yes
10297    dynamic_linker="$host_os dld.so"
10298    shlibpath_var=LD_LIBRARY_PATH
10299    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10300    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301    soname_spec='${libname}${release}${shared_ext}$major'
10302    if test "X$HPUX_IA64_MODE" = X32; then
10303      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10304    else
10305      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10306    fi
10307    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10308    ;;
10309  hppa*64*)
10310    shrext_cmds='.sl'
10311    hardcode_into_libs=yes
10312    dynamic_linker="$host_os dld.sl"
10313    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10314    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10315    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316    soname_spec='${libname}${release}${shared_ext}$major'
10317    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10318    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10319    ;;
10320  *)
10321    shrext_cmds='.sl'
10322    dynamic_linker="$host_os dld.sl"
10323    shlibpath_var=SHLIB_PATH
10324    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10325    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326    soname_spec='${libname}${release}${shared_ext}$major'
10327    ;;
10328  esac
10329  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10330  postinstall_cmds='chmod 555 $lib'
10331  ;;
10332
10333interix[3-9]*)
10334  version_type=linux
10335  need_lib_prefix=no
10336  need_version=no
10337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10338  soname_spec='${libname}${release}${shared_ext}$major'
10339  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10340  shlibpath_var=LD_LIBRARY_PATH
10341  shlibpath_overrides_runpath=no
10342  hardcode_into_libs=yes
10343  ;;
10344
10345irix5* | irix6* | nonstopux*)
10346  case $host_os in
10347    nonstopux*) version_type=nonstopux ;;
10348    *)
10349	if test "$lt_cv_prog_gnu_ld" = yes; then
10350		version_type=linux
10351	else
10352		version_type=irix
10353	fi ;;
10354  esac
10355  need_lib_prefix=no
10356  need_version=no
10357  soname_spec='${libname}${release}${shared_ext}$major'
10358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10359  case $host_os in
10360  irix5* | nonstopux*)
10361    libsuff= shlibsuff=
10362    ;;
10363  *)
10364    case $LD in # libtool.m4 will add one of these switches to LD
10365    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10366      libsuff= shlibsuff= libmagic=32-bit;;
10367    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10368      libsuff=32 shlibsuff=N32 libmagic=N32;;
10369    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10370      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10371    *) libsuff= shlibsuff= libmagic=never-match;;
10372    esac
10373    ;;
10374  esac
10375  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10376  shlibpath_overrides_runpath=no
10377  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10378  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10379  hardcode_into_libs=yes
10380  ;;
10381
10382# No shared lib support for Linux oldld, aout, or coff.
10383linux*oldld* | linux*aout* | linux*coff*)
10384  dynamic_linker=no
10385  ;;
10386
10387# This must be Linux ELF.
10388linux* | k*bsd*-gnu)
10389  version_type=linux
10390  need_lib_prefix=no
10391  need_version=no
10392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393  soname_spec='${libname}${release}${shared_ext}$major'
10394  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10395  shlibpath_var=LD_LIBRARY_PATH
10396  shlibpath_overrides_runpath=no
10397  # Some binutils ld are patched to set DT_RUNPATH
10398  save_LDFLAGS=$LDFLAGS
10399  save_libdir=$libdir
10400  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10401       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403/* end confdefs.h.  */
10404
10405int
10406main ()
10407{
10408
10409  ;
10410  return 0;
10411}
10412_ACEOF
10413if ac_fn_c_try_link "$LINENO"; then :
10414  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10415  shlibpath_overrides_runpath=yes
10416fi
10417fi
10418rm -f core conftest.err conftest.$ac_objext \
10419    conftest$ac_exeext conftest.$ac_ext
10420  LDFLAGS=$save_LDFLAGS
10421  libdir=$save_libdir
10422
10423  # This implies no fast_install, which is unacceptable.
10424  # Some rework will be needed to allow for fast_install
10425  # before this can be enabled.
10426  hardcode_into_libs=yes
10427
10428  # Add ABI-specific directories to the system library path.
10429  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10430
10431  # Append ld.so.conf contents to the search path
10432  if test -f /etc/ld.so.conf; then
10433    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' ' '`
10434    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10435  fi
10436
10437  # We used to test for /lib/ld.so.1 and disable shared libraries on
10438  # powerpc, because MkLinux only supported shared libraries with the
10439  # GNU dynamic linker.  Since this was broken with cross compilers,
10440  # most powerpc-linux boxes support dynamic linking these days and
10441  # people can always --disable-shared, the test was removed, and we
10442  # assume the GNU/Linux dynamic linker is in use.
10443  dynamic_linker='GNU/Linux ld.so'
10444  ;;
10445
10446netbsd*)
10447  version_type=sunos
10448  need_lib_prefix=no
10449  need_version=no
10450  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10451    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10452    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10453    dynamic_linker='NetBSD (a.out) ld.so'
10454  else
10455    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10456    soname_spec='${libname}${release}${shared_ext}$major'
10457    dynamic_linker='NetBSD ld.elf_so'
10458  fi
10459  shlibpath_var=LD_LIBRARY_PATH
10460  shlibpath_overrides_runpath=yes
10461  hardcode_into_libs=yes
10462  ;;
10463
10464newsos6)
10465  version_type=linux
10466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467  shlibpath_var=LD_LIBRARY_PATH
10468  shlibpath_overrides_runpath=yes
10469  ;;
10470
10471*nto* | *qnx*)
10472  version_type=qnx
10473  need_lib_prefix=no
10474  need_version=no
10475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476  soname_spec='${libname}${release}${shared_ext}$major'
10477  shlibpath_var=LD_LIBRARY_PATH
10478  shlibpath_overrides_runpath=no
10479  hardcode_into_libs=yes
10480  dynamic_linker='ldqnx.so'
10481  ;;
10482
10483openbsd*)
10484  version_type=sunos
10485  sys_lib_dlsearch_path_spec="/usr/lib"
10486  need_lib_prefix=no
10487  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10488  case $host_os in
10489    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10490    *)				need_version=no  ;;
10491  esac
10492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10493  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10494  shlibpath_var=LD_LIBRARY_PATH
10495  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10496    case $host_os in
10497      openbsd2.[89] | openbsd2.[89].*)
10498	shlibpath_overrides_runpath=no
10499	;;
10500      *)
10501	shlibpath_overrides_runpath=yes
10502	;;
10503      esac
10504  else
10505    shlibpath_overrides_runpath=yes
10506  fi
10507  ;;
10508
10509os2*)
10510  libname_spec='$name'
10511  shrext_cmds=".dll"
10512  need_lib_prefix=no
10513  library_names_spec='$libname${shared_ext} $libname.a'
10514  dynamic_linker='OS/2 ld.exe'
10515  shlibpath_var=LIBPATH
10516  ;;
10517
10518osf3* | osf4* | osf5*)
10519  version_type=osf
10520  need_lib_prefix=no
10521  need_version=no
10522  soname_spec='${libname}${release}${shared_ext}$major'
10523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524  shlibpath_var=LD_LIBRARY_PATH
10525  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10526  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10527  ;;
10528
10529rdos*)
10530  dynamic_linker=no
10531  ;;
10532
10533solaris*)
10534  version_type=linux
10535  need_lib_prefix=no
10536  need_version=no
10537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538  soname_spec='${libname}${release}${shared_ext}$major'
10539  shlibpath_var=LD_LIBRARY_PATH
10540  shlibpath_overrides_runpath=yes
10541  hardcode_into_libs=yes
10542  # ldd complains unless libraries are executable
10543  postinstall_cmds='chmod +x $lib'
10544  ;;
10545
10546sunos4*)
10547  version_type=sunos
10548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10549  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10550  shlibpath_var=LD_LIBRARY_PATH
10551  shlibpath_overrides_runpath=yes
10552  if test "$with_gnu_ld" = yes; then
10553    need_lib_prefix=no
10554  fi
10555  need_version=yes
10556  ;;
10557
10558sysv4 | sysv4.3*)
10559  version_type=linux
10560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561  soname_spec='${libname}${release}${shared_ext}$major'
10562  shlibpath_var=LD_LIBRARY_PATH
10563  case $host_vendor in
10564    sni)
10565      shlibpath_overrides_runpath=no
10566      need_lib_prefix=no
10567      runpath_var=LD_RUN_PATH
10568      ;;
10569    siemens)
10570      need_lib_prefix=no
10571      ;;
10572    motorola)
10573      need_lib_prefix=no
10574      need_version=no
10575      shlibpath_overrides_runpath=no
10576      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10577      ;;
10578  esac
10579  ;;
10580
10581sysv4*MP*)
10582  if test -d /usr/nec ;then
10583    version_type=linux
10584    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10585    soname_spec='$libname${shared_ext}.$major'
10586    shlibpath_var=LD_LIBRARY_PATH
10587  fi
10588  ;;
10589
10590sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10591  version_type=freebsd-elf
10592  need_lib_prefix=no
10593  need_version=no
10594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10595  soname_spec='${libname}${release}${shared_ext}$major'
10596  shlibpath_var=LD_LIBRARY_PATH
10597  shlibpath_overrides_runpath=yes
10598  hardcode_into_libs=yes
10599  if test "$with_gnu_ld" = yes; then
10600    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10601  else
10602    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10603    case $host_os in
10604      sco3.2v5*)
10605        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10606	;;
10607    esac
10608  fi
10609  sys_lib_dlsearch_path_spec='/usr/lib'
10610  ;;
10611
10612tpf*)
10613  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10614  version_type=linux
10615  need_lib_prefix=no
10616  need_version=no
10617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618  shlibpath_var=LD_LIBRARY_PATH
10619  shlibpath_overrides_runpath=no
10620  hardcode_into_libs=yes
10621  ;;
10622
10623uts4*)
10624  version_type=linux
10625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626  soname_spec='${libname}${release}${shared_ext}$major'
10627  shlibpath_var=LD_LIBRARY_PATH
10628  ;;
10629
10630*)
10631  dynamic_linker=no
10632  ;;
10633esac
10634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10635$as_echo "$dynamic_linker" >&6; }
10636test "$dynamic_linker" = no && can_build_shared=no
10637
10638variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10639if test "$GCC" = yes; then
10640  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10641fi
10642
10643if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10644  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10645fi
10646if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10647  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10648fi
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10737$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10738hardcode_action=
10739if test -n "$hardcode_libdir_flag_spec" ||
10740   test -n "$runpath_var" ||
10741   test "X$hardcode_automatic" = "Xyes" ; then
10742
10743  # We can hardcode non-existent directories.
10744  if test "$hardcode_direct" != no &&
10745     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10746     # have to relink, otherwise we might link with an installed library
10747     # when we should be linking with a yet-to-be-installed one
10748     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10749     test "$hardcode_minus_L" != no; then
10750    # Linking always hardcodes the temporary library directory.
10751    hardcode_action=relink
10752  else
10753    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10754    hardcode_action=immediate
10755  fi
10756else
10757  # We cannot hardcode anything, or else we can only hardcode existing
10758  # directories.
10759  hardcode_action=unsupported
10760fi
10761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10762$as_echo "$hardcode_action" >&6; }
10763
10764if test "$hardcode_action" = relink ||
10765   test "$inherit_rpath" = yes; then
10766  # Fast installation is not supported
10767  enable_fast_install=no
10768elif test "$shlibpath_overrides_runpath" = yes ||
10769     test "$enable_shared" = no; then
10770  # Fast installation is not necessary
10771  enable_fast_install=needless
10772fi
10773
10774
10775
10776
10777
10778
10779  if test "x$enable_dlopen" != xyes; then
10780  enable_dlopen=unknown
10781  enable_dlopen_self=unknown
10782  enable_dlopen_self_static=unknown
10783else
10784  lt_cv_dlopen=no
10785  lt_cv_dlopen_libs=
10786
10787  case $host_os in
10788  beos*)
10789    lt_cv_dlopen="load_add_on"
10790    lt_cv_dlopen_libs=
10791    lt_cv_dlopen_self=yes
10792    ;;
10793
10794  mingw* | pw32* | cegcc*)
10795    lt_cv_dlopen="LoadLibrary"
10796    lt_cv_dlopen_libs=
10797    ;;
10798
10799  cygwin*)
10800    lt_cv_dlopen="dlopen"
10801    lt_cv_dlopen_libs=
10802    ;;
10803
10804  darwin*)
10805  # if libdl is installed we need to link against it
10806    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10807$as_echo_n "checking for dlopen in -ldl... " >&6; }
10808if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10809  $as_echo_n "(cached) " >&6
10810else
10811  ac_check_lib_save_LIBS=$LIBS
10812LIBS="-ldl  $LIBS"
10813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814/* end confdefs.h.  */
10815
10816/* Override any GCC internal prototype to avoid an error.
10817   Use char because int might match the return type of a GCC
10818   builtin and then its argument prototype would still apply.  */
10819#ifdef __cplusplus
10820extern "C"
10821#endif
10822char dlopen ();
10823int
10824main ()
10825{
10826return dlopen ();
10827  ;
10828  return 0;
10829}
10830_ACEOF
10831if ac_fn_c_try_link "$LINENO"; then :
10832  ac_cv_lib_dl_dlopen=yes
10833else
10834  ac_cv_lib_dl_dlopen=no
10835fi
10836rm -f core conftest.err conftest.$ac_objext \
10837    conftest$ac_exeext conftest.$ac_ext
10838LIBS=$ac_check_lib_save_LIBS
10839fi
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10841$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10842if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10843  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10844else
10845
10846    lt_cv_dlopen="dyld"
10847    lt_cv_dlopen_libs=
10848    lt_cv_dlopen_self=yes
10849
10850fi
10851
10852    ;;
10853
10854  *)
10855    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10856if test "x$ac_cv_func_shl_load" = x""yes; then :
10857  lt_cv_dlopen="shl_load"
10858else
10859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10860$as_echo_n "checking for shl_load in -ldld... " >&6; }
10861if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10862  $as_echo_n "(cached) " >&6
10863else
10864  ac_check_lib_save_LIBS=$LIBS
10865LIBS="-ldld  $LIBS"
10866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867/* end confdefs.h.  */
10868
10869/* Override any GCC internal prototype to avoid an error.
10870   Use char because int might match the return type of a GCC
10871   builtin and then its argument prototype would still apply.  */
10872#ifdef __cplusplus
10873extern "C"
10874#endif
10875char shl_load ();
10876int
10877main ()
10878{
10879return shl_load ();
10880  ;
10881  return 0;
10882}
10883_ACEOF
10884if ac_fn_c_try_link "$LINENO"; then :
10885  ac_cv_lib_dld_shl_load=yes
10886else
10887  ac_cv_lib_dld_shl_load=no
10888fi
10889rm -f core conftest.err conftest.$ac_objext \
10890    conftest$ac_exeext conftest.$ac_ext
10891LIBS=$ac_check_lib_save_LIBS
10892fi
10893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10894$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10895if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10896  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10897else
10898  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10899if test "x$ac_cv_func_dlopen" = x""yes; then :
10900  lt_cv_dlopen="dlopen"
10901else
10902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10903$as_echo_n "checking for dlopen in -ldl... " >&6; }
10904if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10905  $as_echo_n "(cached) " >&6
10906else
10907  ac_check_lib_save_LIBS=$LIBS
10908LIBS="-ldl  $LIBS"
10909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910/* end confdefs.h.  */
10911
10912/* Override any GCC internal prototype to avoid an error.
10913   Use char because int might match the return type of a GCC
10914   builtin and then its argument prototype would still apply.  */
10915#ifdef __cplusplus
10916extern "C"
10917#endif
10918char dlopen ();
10919int
10920main ()
10921{
10922return dlopen ();
10923  ;
10924  return 0;
10925}
10926_ACEOF
10927if ac_fn_c_try_link "$LINENO"; then :
10928  ac_cv_lib_dl_dlopen=yes
10929else
10930  ac_cv_lib_dl_dlopen=no
10931fi
10932rm -f core conftest.err conftest.$ac_objext \
10933    conftest$ac_exeext conftest.$ac_ext
10934LIBS=$ac_check_lib_save_LIBS
10935fi
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10937$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10938if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10939  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10940else
10941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10942$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10943if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10944  $as_echo_n "(cached) " >&6
10945else
10946  ac_check_lib_save_LIBS=$LIBS
10947LIBS="-lsvld  $LIBS"
10948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949/* end confdefs.h.  */
10950
10951/* Override any GCC internal prototype to avoid an error.
10952   Use char because int might match the return type of a GCC
10953   builtin and then its argument prototype would still apply.  */
10954#ifdef __cplusplus
10955extern "C"
10956#endif
10957char dlopen ();
10958int
10959main ()
10960{
10961return dlopen ();
10962  ;
10963  return 0;
10964}
10965_ACEOF
10966if ac_fn_c_try_link "$LINENO"; then :
10967  ac_cv_lib_svld_dlopen=yes
10968else
10969  ac_cv_lib_svld_dlopen=no
10970fi
10971rm -f core conftest.err conftest.$ac_objext \
10972    conftest$ac_exeext conftest.$ac_ext
10973LIBS=$ac_check_lib_save_LIBS
10974fi
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10976$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10977if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10978  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10979else
10980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10981$as_echo_n "checking for dld_link in -ldld... " >&6; }
10982if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10983  $as_echo_n "(cached) " >&6
10984else
10985  ac_check_lib_save_LIBS=$LIBS
10986LIBS="-ldld  $LIBS"
10987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988/* end confdefs.h.  */
10989
10990/* Override any GCC internal prototype to avoid an error.
10991   Use char because int might match the return type of a GCC
10992   builtin and then its argument prototype would still apply.  */
10993#ifdef __cplusplus
10994extern "C"
10995#endif
10996char dld_link ();
10997int
10998main ()
10999{
11000return dld_link ();
11001  ;
11002  return 0;
11003}
11004_ACEOF
11005if ac_fn_c_try_link "$LINENO"; then :
11006  ac_cv_lib_dld_dld_link=yes
11007else
11008  ac_cv_lib_dld_dld_link=no
11009fi
11010rm -f core conftest.err conftest.$ac_objext \
11011    conftest$ac_exeext conftest.$ac_ext
11012LIBS=$ac_check_lib_save_LIBS
11013fi
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11015$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11016if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11017  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11018fi
11019
11020
11021fi
11022
11023
11024fi
11025
11026
11027fi
11028
11029
11030fi
11031
11032
11033fi
11034
11035    ;;
11036  esac
11037
11038  if test "x$lt_cv_dlopen" != xno; then
11039    enable_dlopen=yes
11040  else
11041    enable_dlopen=no
11042  fi
11043
11044  case $lt_cv_dlopen in
11045  dlopen)
11046    save_CPPFLAGS="$CPPFLAGS"
11047    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11048
11049    save_LDFLAGS="$LDFLAGS"
11050    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11051
11052    save_LIBS="$LIBS"
11053    LIBS="$lt_cv_dlopen_libs $LIBS"
11054
11055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11056$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11057if test "${lt_cv_dlopen_self+set}" = set; then :
11058  $as_echo_n "(cached) " >&6
11059else
11060  	  if test "$cross_compiling" = yes; then :
11061  lt_cv_dlopen_self=cross
11062else
11063  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11064  lt_status=$lt_dlunknown
11065  cat > conftest.$ac_ext <<_LT_EOF
11066#line 11066 "configure"
11067#include "confdefs.h"
11068
11069#if HAVE_DLFCN_H
11070#include <dlfcn.h>
11071#endif
11072
11073#include <stdio.h>
11074
11075#ifdef RTLD_GLOBAL
11076#  define LT_DLGLOBAL		RTLD_GLOBAL
11077#else
11078#  ifdef DL_GLOBAL
11079#    define LT_DLGLOBAL		DL_GLOBAL
11080#  else
11081#    define LT_DLGLOBAL		0
11082#  endif
11083#endif
11084
11085/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11086   find out it does not work in some platform. */
11087#ifndef LT_DLLAZY_OR_NOW
11088#  ifdef RTLD_LAZY
11089#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11090#  else
11091#    ifdef DL_LAZY
11092#      define LT_DLLAZY_OR_NOW		DL_LAZY
11093#    else
11094#      ifdef RTLD_NOW
11095#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11096#      else
11097#        ifdef DL_NOW
11098#          define LT_DLLAZY_OR_NOW	DL_NOW
11099#        else
11100#          define LT_DLLAZY_OR_NOW	0
11101#        endif
11102#      endif
11103#    endif
11104#  endif
11105#endif
11106
11107void fnord() { int i=42;}
11108int main ()
11109{
11110  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11111  int status = $lt_dlunknown;
11112
11113  if (self)
11114    {
11115      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11116      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11117      /* dlclose (self); */
11118    }
11119  else
11120    puts (dlerror ());
11121
11122  return status;
11123}
11124_LT_EOF
11125  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11126  (eval $ac_link) 2>&5
11127  ac_status=$?
11128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11129  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11130    (./conftest; exit; ) >&5 2>/dev/null
11131    lt_status=$?
11132    case x$lt_status in
11133      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11134      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11135      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11136    esac
11137  else :
11138    # compilation failed
11139    lt_cv_dlopen_self=no
11140  fi
11141fi
11142rm -fr conftest*
11143
11144
11145fi
11146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11147$as_echo "$lt_cv_dlopen_self" >&6; }
11148
11149    if test "x$lt_cv_dlopen_self" = xyes; then
11150      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11151      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11152$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11153if test "${lt_cv_dlopen_self_static+set}" = set; then :
11154  $as_echo_n "(cached) " >&6
11155else
11156  	  if test "$cross_compiling" = yes; then :
11157  lt_cv_dlopen_self_static=cross
11158else
11159  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11160  lt_status=$lt_dlunknown
11161  cat > conftest.$ac_ext <<_LT_EOF
11162#line 11162 "configure"
11163#include "confdefs.h"
11164
11165#if HAVE_DLFCN_H
11166#include <dlfcn.h>
11167#endif
11168
11169#include <stdio.h>
11170
11171#ifdef RTLD_GLOBAL
11172#  define LT_DLGLOBAL		RTLD_GLOBAL
11173#else
11174#  ifdef DL_GLOBAL
11175#    define LT_DLGLOBAL		DL_GLOBAL
11176#  else
11177#    define LT_DLGLOBAL		0
11178#  endif
11179#endif
11180
11181/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11182   find out it does not work in some platform. */
11183#ifndef LT_DLLAZY_OR_NOW
11184#  ifdef RTLD_LAZY
11185#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11186#  else
11187#    ifdef DL_LAZY
11188#      define LT_DLLAZY_OR_NOW		DL_LAZY
11189#    else
11190#      ifdef RTLD_NOW
11191#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11192#      else
11193#        ifdef DL_NOW
11194#          define LT_DLLAZY_OR_NOW	DL_NOW
11195#        else
11196#          define LT_DLLAZY_OR_NOW	0
11197#        endif
11198#      endif
11199#    endif
11200#  endif
11201#endif
11202
11203void fnord() { int i=42;}
11204int main ()
11205{
11206  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11207  int status = $lt_dlunknown;
11208
11209  if (self)
11210    {
11211      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11212      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11213      /* dlclose (self); */
11214    }
11215  else
11216    puts (dlerror ());
11217
11218  return status;
11219}
11220_LT_EOF
11221  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11222  (eval $ac_link) 2>&5
11223  ac_status=$?
11224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11226    (./conftest; exit; ) >&5 2>/dev/null
11227    lt_status=$?
11228    case x$lt_status in
11229      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11230      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11231      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11232    esac
11233  else :
11234    # compilation failed
11235    lt_cv_dlopen_self_static=no
11236  fi
11237fi
11238rm -fr conftest*
11239
11240
11241fi
11242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11243$as_echo "$lt_cv_dlopen_self_static" >&6; }
11244    fi
11245
11246    CPPFLAGS="$save_CPPFLAGS"
11247    LDFLAGS="$save_LDFLAGS"
11248    LIBS="$save_LIBS"
11249    ;;
11250  esac
11251
11252  case $lt_cv_dlopen_self in
11253  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11254  *) enable_dlopen_self=unknown ;;
11255  esac
11256
11257  case $lt_cv_dlopen_self_static in
11258  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11259  *) enable_dlopen_self_static=unknown ;;
11260  esac
11261fi
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279striplib=
11280old_striplib=
11281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11282$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11283if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11284  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11285  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11287$as_echo "yes" >&6; }
11288else
11289# FIXME - insert some real tests, host_os isn't really good enough
11290  case $host_os in
11291  darwin*)
11292    if test -n "$STRIP" ; then
11293      striplib="$STRIP -x"
11294      old_striplib="$STRIP -S"
11295      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11296$as_echo "yes" >&6; }
11297    else
11298      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299$as_echo "no" >&6; }
11300    fi
11301    ;;
11302  *)
11303    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304$as_echo "no" >&6; }
11305    ;;
11306  esac
11307fi
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320  # Report which library types will actually be built
11321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11322$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11324$as_echo "$can_build_shared" >&6; }
11325
11326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11327$as_echo_n "checking whether to build shared libraries... " >&6; }
11328  test "$can_build_shared" = "no" && enable_shared=no
11329
11330  # On AIX, shared libraries and static libraries use the same namespace, and
11331  # are all built from PIC.
11332  case $host_os in
11333  aix3*)
11334    test "$enable_shared" = yes && enable_static=no
11335    if test -n "$RANLIB"; then
11336      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11337      postinstall_cmds='$RANLIB $lib'
11338    fi
11339    ;;
11340
11341  aix[4-9]*)
11342    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11343      test "$enable_shared" = yes && enable_static=no
11344    fi
11345    ;;
11346  esac
11347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11348$as_echo "$enable_shared" >&6; }
11349
11350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11351$as_echo_n "checking whether to build static libraries... " >&6; }
11352  # Make sure either enable_shared or enable_static is yes.
11353  test "$enable_shared" = yes || enable_static=yes
11354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11355$as_echo "$enable_static" >&6; }
11356
11357
11358
11359
11360fi
11361ac_ext=c
11362ac_cpp='$CPP $CPPFLAGS'
11363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11365ac_compiler_gnu=$ac_cv_c_compiler_gnu
11366
11367CC="$lt_save_CC"
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381        ac_config_commands="$ac_config_commands libtool"
11382
11383
11384
11385
11386# Only expand once:
11387
11388
11389
11390## GNU gettext
11391
11392        MKINSTALLDIRS=
11393  if test -n "$ac_aux_dir"; then
11394    case "$ac_aux_dir" in
11395      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11396      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11397    esac
11398  fi
11399  if test -z "$MKINSTALLDIRS"; then
11400    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11401  fi
11402
11403
11404
11405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11406$as_echo_n "checking whether NLS is requested... " >&6; }
11407    # Check whether --enable-nls was given.
11408if test "${enable_nls+set}" = set; then :
11409  enableval=$enable_nls; USE_NLS=$enableval
11410else
11411  USE_NLS=yes
11412fi
11413
11414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11415$as_echo "$USE_NLS" >&6; }
11416
11417
11418
11419
11420
11421
11422# Prepare PATH_SEPARATOR.
11423# The user is always right.
11424if test "${PATH_SEPARATOR+set}" != set; then
11425  echo "#! /bin/sh" >conf$$.sh
11426  echo  "exit 0"   >>conf$$.sh
11427  chmod +x conf$$.sh
11428  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11429    PATH_SEPARATOR=';'
11430  else
11431    PATH_SEPARATOR=:
11432  fi
11433  rm -f conf$$.sh
11434fi
11435
11436# Find out how to test for executable files. Don't use a zero-byte file,
11437# as systems may use methods other than mode bits to determine executability.
11438cat >conf$$.file <<_ASEOF
11439#! /bin/sh
11440exit 0
11441_ASEOF
11442chmod +x conf$$.file
11443if test -x conf$$.file >/dev/null 2>&1; then
11444  ac_executable_p="test -x"
11445else
11446  ac_executable_p="test -f"
11447fi
11448rm -f conf$$.file
11449
11450# Extract the first word of "msgfmt", so it can be a program name with args.
11451set dummy msgfmt; ac_word=$2
11452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11453$as_echo_n "checking for $ac_word... " >&6; }
11454if test "${ac_cv_path_MSGFMT+set}" = set; then :
11455  $as_echo_n "(cached) " >&6
11456else
11457  case "$MSGFMT" in
11458  [\\/]* | ?:[\\/]*)
11459    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11460    ;;
11461  *)
11462    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11463    for ac_dir in $PATH; do
11464      IFS="$ac_save_IFS"
11465      test -z "$ac_dir" && ac_dir=.
11466      for ac_exec_ext in '' $ac_executable_extensions; do
11467        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11468          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11469     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11470            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11471            break 2
11472          fi
11473        fi
11474      done
11475    done
11476    IFS="$ac_save_IFS"
11477  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11478    ;;
11479esac
11480fi
11481MSGFMT="$ac_cv_path_MSGFMT"
11482if test "$MSGFMT" != ":"; then
11483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11484$as_echo "$MSGFMT" >&6; }
11485else
11486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487$as_echo "no" >&6; }
11488fi
11489
11490  # Extract the first word of "gmsgfmt", so it can be a program name with args.
11491set dummy gmsgfmt; ac_word=$2
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493$as_echo_n "checking for $ac_word... " >&6; }
11494if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11495  $as_echo_n "(cached) " >&6
11496else
11497  case $GMSGFMT in
11498  [\\/]* | ?:[\\/]*)
11499  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11500  ;;
11501  *)
11502  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503for as_dir in $PATH
11504do
11505  IFS=$as_save_IFS
11506  test -z "$as_dir" && as_dir=.
11507    for ac_exec_ext in '' $ac_executable_extensions; do
11508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11509    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11511    break 2
11512  fi
11513done
11514  done
11515IFS=$as_save_IFS
11516
11517  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11518  ;;
11519esac
11520fi
11521GMSGFMT=$ac_cv_path_GMSGFMT
11522if test -n "$GMSGFMT"; then
11523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11524$as_echo "$GMSGFMT" >&6; }
11525else
11526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527$as_echo "no" >&6; }
11528fi
11529
11530
11531
11532
11533# Prepare PATH_SEPARATOR.
11534# The user is always right.
11535if test "${PATH_SEPARATOR+set}" != set; then
11536  echo "#! /bin/sh" >conf$$.sh
11537  echo  "exit 0"   >>conf$$.sh
11538  chmod +x conf$$.sh
11539  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11540    PATH_SEPARATOR=';'
11541  else
11542    PATH_SEPARATOR=:
11543  fi
11544  rm -f conf$$.sh
11545fi
11546
11547# Find out how to test for executable files. Don't use a zero-byte file,
11548# as systems may use methods other than mode bits to determine executability.
11549cat >conf$$.file <<_ASEOF
11550#! /bin/sh
11551exit 0
11552_ASEOF
11553chmod +x conf$$.file
11554if test -x conf$$.file >/dev/null 2>&1; then
11555  ac_executable_p="test -x"
11556else
11557  ac_executable_p="test -f"
11558fi
11559rm -f conf$$.file
11560
11561# Extract the first word of "xgettext", so it can be a program name with args.
11562set dummy xgettext; ac_word=$2
11563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11564$as_echo_n "checking for $ac_word... " >&6; }
11565if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11566  $as_echo_n "(cached) " >&6
11567else
11568  case "$XGETTEXT" in
11569  [\\/]* | ?:[\\/]*)
11570    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11571    ;;
11572  *)
11573    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11574    for ac_dir in $PATH; do
11575      IFS="$ac_save_IFS"
11576      test -z "$ac_dir" && ac_dir=.
11577      for ac_exec_ext in '' $ac_executable_extensions; do
11578        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11579          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11580     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11581            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11582            break 2
11583          fi
11584        fi
11585      done
11586    done
11587    IFS="$ac_save_IFS"
11588  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11589    ;;
11590esac
11591fi
11592XGETTEXT="$ac_cv_path_XGETTEXT"
11593if test "$XGETTEXT" != ":"; then
11594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11595$as_echo "$XGETTEXT" >&6; }
11596else
11597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598$as_echo "no" >&6; }
11599fi
11600
11601    rm -f messages.po
11602
11603
11604# Prepare PATH_SEPARATOR.
11605# The user is always right.
11606if test "${PATH_SEPARATOR+set}" != set; then
11607  echo "#! /bin/sh" >conf$$.sh
11608  echo  "exit 0"   >>conf$$.sh
11609  chmod +x conf$$.sh
11610  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11611    PATH_SEPARATOR=';'
11612  else
11613    PATH_SEPARATOR=:
11614  fi
11615  rm -f conf$$.sh
11616fi
11617
11618# Find out how to test for executable files. Don't use a zero-byte file,
11619# as systems may use methods other than mode bits to determine executability.
11620cat >conf$$.file <<_ASEOF
11621#! /bin/sh
11622exit 0
11623_ASEOF
11624chmod +x conf$$.file
11625if test -x conf$$.file >/dev/null 2>&1; then
11626  ac_executable_p="test -x"
11627else
11628  ac_executable_p="test -f"
11629fi
11630rm -f conf$$.file
11631
11632# Extract the first word of "msgmerge", so it can be a program name with args.
11633set dummy msgmerge; ac_word=$2
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11635$as_echo_n "checking for $ac_word... " >&6; }
11636if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11637  $as_echo_n "(cached) " >&6
11638else
11639  case "$MSGMERGE" in
11640  [\\/]* | ?:[\\/]*)
11641    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11642    ;;
11643  *)
11644    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11645    for ac_dir in $PATH; do
11646      IFS="$ac_save_IFS"
11647      test -z "$ac_dir" && ac_dir=.
11648      for ac_exec_ext in '' $ac_executable_extensions; do
11649        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11650          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11651            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11652            break 2
11653          fi
11654        fi
11655      done
11656    done
11657    IFS="$ac_save_IFS"
11658  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11659    ;;
11660esac
11661fi
11662MSGMERGE="$ac_cv_path_MSGMERGE"
11663if test "$MSGMERGE" != ":"; then
11664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11665$as_echo "$MSGMERGE" >&6; }
11666else
11667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668$as_echo "no" >&6; }
11669fi
11670
11671
11672      if test "$GMSGFMT" != ":"; then
11673            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11674       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11675      : ;
11676    else
11677      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11678      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11679$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11680      GMSGFMT=":"
11681    fi
11682  fi
11683
11684      if test "$XGETTEXT" != ":"; then
11685            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11686       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11687      : ;
11688    else
11689      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11690$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11691      XGETTEXT=":"
11692    fi
11693        rm -f messages.po
11694  fi
11695
11696  ac_config_commands="$ac_config_commands default-1"
11697
11698
11699if test -n "$ac_tool_prefix"; then
11700  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11701set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11703$as_echo_n "checking for $ac_word... " >&6; }
11704if test "${ac_cv_prog_RANLIB+set}" = set; then :
11705  $as_echo_n "(cached) " >&6
11706else
11707  if test -n "$RANLIB"; then
11708  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11709else
11710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711for as_dir in $PATH
11712do
11713  IFS=$as_save_IFS
11714  test -z "$as_dir" && as_dir=.
11715    for ac_exec_ext in '' $ac_executable_extensions; do
11716  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11717    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11719    break 2
11720  fi
11721done
11722  done
11723IFS=$as_save_IFS
11724
11725fi
11726fi
11727RANLIB=$ac_cv_prog_RANLIB
11728if test -n "$RANLIB"; then
11729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11730$as_echo "$RANLIB" >&6; }
11731else
11732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733$as_echo "no" >&6; }
11734fi
11735
11736
11737fi
11738if test -z "$ac_cv_prog_RANLIB"; then
11739  ac_ct_RANLIB=$RANLIB
11740  # Extract the first word of "ranlib", so it can be a program name with args.
11741set dummy ranlib; ac_word=$2
11742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11743$as_echo_n "checking for $ac_word... " >&6; }
11744if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
11745  $as_echo_n "(cached) " >&6
11746else
11747  if test -n "$ac_ct_RANLIB"; then
11748  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11749else
11750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751for as_dir in $PATH
11752do
11753  IFS=$as_save_IFS
11754  test -z "$as_dir" && as_dir=.
11755    for ac_exec_ext in '' $ac_executable_extensions; do
11756  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11757    ac_cv_prog_ac_ct_RANLIB="ranlib"
11758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11759    break 2
11760  fi
11761done
11762  done
11763IFS=$as_save_IFS
11764
11765fi
11766fi
11767ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11768if test -n "$ac_ct_RANLIB"; then
11769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11770$as_echo "$ac_ct_RANLIB" >&6; }
11771else
11772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773$as_echo "no" >&6; }
11774fi
11775
11776  if test "x$ac_ct_RANLIB" = x; then
11777    RANLIB=":"
11778  else
11779    case $cross_compiling:$ac_tool_warned in
11780yes:)
11781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11783ac_tool_warned=yes ;;
11784esac
11785    RANLIB=$ac_ct_RANLIB
11786  fi
11787else
11788  RANLIB="$ac_cv_prog_RANLIB"
11789fi
11790
11791
11792        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
11793$as_echo_n "checking for strerror in -lcposix... " >&6; }
11794if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
11795  $as_echo_n "(cached) " >&6
11796else
11797  ac_check_lib_save_LIBS=$LIBS
11798LIBS="-lcposix  $LIBS"
11799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800/* end confdefs.h.  */
11801
11802/* Override any GCC internal prototype to avoid an error.
11803   Use char because int might match the return type of a GCC
11804   builtin and then its argument prototype would still apply.  */
11805#ifdef __cplusplus
11806extern "C"
11807#endif
11808char strerror ();
11809int
11810main ()
11811{
11812return strerror ();
11813  ;
11814  return 0;
11815}
11816_ACEOF
11817if ac_fn_c_try_link "$LINENO"; then :
11818  ac_cv_lib_cposix_strerror=yes
11819else
11820  ac_cv_lib_cposix_strerror=no
11821fi
11822rm -f core conftest.err conftest.$ac_objext \
11823    conftest$ac_exeext conftest.$ac_ext
11824LIBS=$ac_check_lib_save_LIBS
11825fi
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
11827$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
11828if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
11829  LIBS="$LIBS -lcposix"
11830fi
11831
11832
11833
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11835$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11836if test "${ac_cv_c_const+set}" = set; then :
11837  $as_echo_n "(cached) " >&6
11838else
11839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840/* end confdefs.h.  */
11841
11842int
11843main ()
11844{
11845/* FIXME: Include the comments suggested by Paul. */
11846#ifndef __cplusplus
11847  /* Ultrix mips cc rejects this.  */
11848  typedef int charset[2];
11849  const charset cs;
11850  /* SunOS 4.1.1 cc rejects this.  */
11851  char const *const *pcpcc;
11852  char **ppc;
11853  /* NEC SVR4.0.2 mips cc rejects this.  */
11854  struct point {int x, y;};
11855  static struct point const zero = {0,0};
11856  /* AIX XL C 1.02.0.0 rejects this.
11857     It does not let you subtract one const X* pointer from another in
11858     an arm of an if-expression whose if-part is not a constant
11859     expression */
11860  const char *g = "string";
11861  pcpcc = &g + (g ? g-g : 0);
11862  /* HPUX 7.0 cc rejects these. */
11863  ++pcpcc;
11864  ppc = (char**) pcpcc;
11865  pcpcc = (char const *const *) ppc;
11866  { /* SCO 3.2v4 cc rejects this.  */
11867    char *t;
11868    char const *s = 0 ? (char *) 0 : (char const *) 0;
11869
11870    *t++ = 0;
11871    if (s) return 0;
11872  }
11873  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11874    int x[] = {25, 17};
11875    const int *foo = &x[0];
11876    ++foo;
11877  }
11878  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11879    typedef const int *iptr;
11880    iptr p = 0;
11881    ++p;
11882  }
11883  { /* AIX XL C 1.02.0.0 rejects this saying
11884       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11885    struct s { int j; const int *ap[3]; };
11886    struct s *b; b->j = 5;
11887  }
11888  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11889    const int foo = 10;
11890    if (!foo) return 0;
11891  }
11892  return !cs[0] && !zero.x;
11893#endif
11894
11895  ;
11896  return 0;
11897}
11898_ACEOF
11899if ac_fn_c_try_compile "$LINENO"; then :
11900  ac_cv_c_const=yes
11901else
11902  ac_cv_c_const=no
11903fi
11904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11905fi
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11907$as_echo "$ac_cv_c_const" >&6; }
11908if test $ac_cv_c_const = no; then
11909
11910$as_echo "#define const /**/" >>confdefs.h
11911
11912fi
11913
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11915$as_echo_n "checking for inline... " >&6; }
11916if test "${ac_cv_c_inline+set}" = set; then :
11917  $as_echo_n "(cached) " >&6
11918else
11919  ac_cv_c_inline=no
11920for ac_kw in inline __inline__ __inline; do
11921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922/* end confdefs.h.  */
11923#ifndef __cplusplus
11924typedef int foo_t;
11925static $ac_kw foo_t static_foo () {return 0; }
11926$ac_kw foo_t foo () {return 0; }
11927#endif
11928
11929_ACEOF
11930if ac_fn_c_try_compile "$LINENO"; then :
11931  ac_cv_c_inline=$ac_kw
11932fi
11933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11934  test "$ac_cv_c_inline" != no && break
11935done
11936
11937fi
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11939$as_echo "$ac_cv_c_inline" >&6; }
11940
11941case $ac_cv_c_inline in
11942  inline | yes) ;;
11943  *)
11944    case $ac_cv_c_inline in
11945      no) ac_val=;;
11946      *) ac_val=$ac_cv_c_inline;;
11947    esac
11948    cat >>confdefs.h <<_ACEOF
11949#ifndef __cplusplus
11950#define inline $ac_val
11951#endif
11952_ACEOF
11953    ;;
11954esac
11955
11956ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11957if test "x$ac_cv_type_off_t" = x""yes; then :
11958
11959else
11960
11961cat >>confdefs.h <<_ACEOF
11962#define off_t long int
11963_ACEOF
11964
11965fi
11966
11967ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11968if test "x$ac_cv_type_size_t" = x""yes; then :
11969
11970else
11971
11972cat >>confdefs.h <<_ACEOF
11973#define size_t unsigned int
11974_ACEOF
11975
11976fi
11977
11978# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11979# for constant arguments.  Useless!
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11981$as_echo_n "checking for working alloca.h... " >&6; }
11982if test "${ac_cv_working_alloca_h+set}" = set; then :
11983  $as_echo_n "(cached) " >&6
11984else
11985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986/* end confdefs.h.  */
11987#include <alloca.h>
11988int
11989main ()
11990{
11991char *p = (char *) alloca (2 * sizeof (int));
11992			  if (p) return 0;
11993  ;
11994  return 0;
11995}
11996_ACEOF
11997if ac_fn_c_try_link "$LINENO"; then :
11998  ac_cv_working_alloca_h=yes
11999else
12000  ac_cv_working_alloca_h=no
12001fi
12002rm -f core conftest.err conftest.$ac_objext \
12003    conftest$ac_exeext conftest.$ac_ext
12004fi
12005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12006$as_echo "$ac_cv_working_alloca_h" >&6; }
12007if test $ac_cv_working_alloca_h = yes; then
12008
12009$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12010
12011fi
12012
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12014$as_echo_n "checking for alloca... " >&6; }
12015if test "${ac_cv_func_alloca_works+set}" = set; then :
12016  $as_echo_n "(cached) " >&6
12017else
12018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019/* end confdefs.h.  */
12020#ifdef __GNUC__
12021# define alloca __builtin_alloca
12022#else
12023# ifdef _MSC_VER
12024#  include <malloc.h>
12025#  define alloca _alloca
12026# else
12027#  ifdef HAVE_ALLOCA_H
12028#   include <alloca.h>
12029#  else
12030#   ifdef _AIX
12031 #pragma alloca
12032#   else
12033#    ifndef alloca /* predefined by HP cc +Olibcalls */
12034char *alloca ();
12035#    endif
12036#   endif
12037#  endif
12038# endif
12039#endif
12040
12041int
12042main ()
12043{
12044char *p = (char *) alloca (1);
12045				    if (p) return 0;
12046  ;
12047  return 0;
12048}
12049_ACEOF
12050if ac_fn_c_try_link "$LINENO"; then :
12051  ac_cv_func_alloca_works=yes
12052else
12053  ac_cv_func_alloca_works=no
12054fi
12055rm -f core conftest.err conftest.$ac_objext \
12056    conftest$ac_exeext conftest.$ac_ext
12057fi
12058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12059$as_echo "$ac_cv_func_alloca_works" >&6; }
12060
12061if test $ac_cv_func_alloca_works = yes; then
12062
12063$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12064
12065else
12066  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12067# that cause trouble.  Some versions do not even contain alloca or
12068# contain a buggy version.  If you still want to use their alloca,
12069# use ar to extract alloca.o from them instead of compiling alloca.c.
12070
12071ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12072
12073$as_echo "#define C_ALLOCA 1" >>confdefs.h
12074
12075
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12077$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12078if test "${ac_cv_os_cray+set}" = set; then :
12079  $as_echo_n "(cached) " >&6
12080else
12081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082/* end confdefs.h.  */
12083#if defined CRAY && ! defined CRAY2
12084webecray
12085#else
12086wenotbecray
12087#endif
12088
12089_ACEOF
12090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12091  $EGREP "webecray" >/dev/null 2>&1; then :
12092  ac_cv_os_cray=yes
12093else
12094  ac_cv_os_cray=no
12095fi
12096rm -f conftest*
12097
12098fi
12099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12100$as_echo "$ac_cv_os_cray" >&6; }
12101if test $ac_cv_os_cray = yes; then
12102  for ac_func in _getb67 GETB67 getb67; do
12103    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12104ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12105eval as_val=\$$as_ac_var
12106   if test "x$as_val" = x""yes; then :
12107
12108cat >>confdefs.h <<_ACEOF
12109#define CRAY_STACKSEG_END $ac_func
12110_ACEOF
12111
12112    break
12113fi
12114
12115  done
12116fi
12117
12118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12119$as_echo_n "checking stack direction for C alloca... " >&6; }
12120if test "${ac_cv_c_stack_direction+set}" = set; then :
12121  $as_echo_n "(cached) " >&6
12122else
12123  if test "$cross_compiling" = yes; then :
12124  ac_cv_c_stack_direction=0
12125else
12126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127/* end confdefs.h.  */
12128$ac_includes_default
12129int
12130find_stack_direction ()
12131{
12132  static char *addr = 0;
12133  auto char dummy;
12134  if (addr == 0)
12135    {
12136      addr = &dummy;
12137      return find_stack_direction ();
12138    }
12139  else
12140    return (&dummy > addr) ? 1 : -1;
12141}
12142
12143int
12144main ()
12145{
12146  return find_stack_direction () < 0;
12147}
12148_ACEOF
12149if ac_fn_c_try_run "$LINENO"; then :
12150  ac_cv_c_stack_direction=1
12151else
12152  ac_cv_c_stack_direction=-1
12153fi
12154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12155  conftest.$ac_objext conftest.beam conftest.$ac_ext
12156fi
12157
12158fi
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12160$as_echo "$ac_cv_c_stack_direction" >&6; }
12161cat >>confdefs.h <<_ACEOF
12162#define STACK_DIRECTION $ac_cv_c_stack_direction
12163_ACEOF
12164
12165
12166fi
12167
12168
12169
12170
12171  for ac_header in $ac_header_list
12172do :
12173  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12174ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12175"
12176eval as_val=\$$as_ac_Header
12177   if test "x$as_val" = x""yes; then :
12178  cat >>confdefs.h <<_ACEOF
12179#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12180_ACEOF
12181
12182fi
12183
12184done
12185
12186
12187
12188
12189
12190
12191
12192
12193for ac_func in getpagesize
12194do :
12195  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12196if test "x$ac_cv_func_getpagesize" = x""yes; then :
12197  cat >>confdefs.h <<_ACEOF
12198#define HAVE_GETPAGESIZE 1
12199_ACEOF
12200
12201fi
12202done
12203
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12205$as_echo_n "checking for working mmap... " >&6; }
12206if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12207  $as_echo_n "(cached) " >&6
12208else
12209  if test "$cross_compiling" = yes; then :
12210  ac_cv_func_mmap_fixed_mapped=no
12211else
12212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213/* end confdefs.h.  */
12214$ac_includes_default
12215/* malloc might have been renamed as rpl_malloc. */
12216#undef malloc
12217
12218/* Thanks to Mike Haertel and Jim Avera for this test.
12219   Here is a matrix of mmap possibilities:
12220	mmap private not fixed
12221	mmap private fixed at somewhere currently unmapped
12222	mmap private fixed at somewhere already mapped
12223	mmap shared not fixed
12224	mmap shared fixed at somewhere currently unmapped
12225	mmap shared fixed at somewhere already mapped
12226   For private mappings, we should verify that changes cannot be read()
12227   back from the file, nor mmap's back from the file at a different
12228   address.  (There have been systems where private was not correctly
12229   implemented like the infamous i386 svr4.0, and systems where the
12230   VM page cache was not coherent with the file system buffer cache
12231   like early versions of FreeBSD and possibly contemporary NetBSD.)
12232   For shared mappings, we should conversely verify that changes get
12233   propagated back to all the places they're supposed to be.
12234
12235   Grep wants private fixed already mapped.
12236   The main things grep needs to know about mmap are:
12237   * does it exist and is it safe to write into the mmap'd area
12238   * how to use it (BSD variants)  */
12239
12240#include <fcntl.h>
12241#include <sys/mman.h>
12242
12243#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12244char *malloc ();
12245#endif
12246
12247/* This mess was copied from the GNU getpagesize.h.  */
12248#ifndef HAVE_GETPAGESIZE
12249# ifdef _SC_PAGESIZE
12250#  define getpagesize() sysconf(_SC_PAGESIZE)
12251# else /* no _SC_PAGESIZE */
12252#  ifdef HAVE_SYS_PARAM_H
12253#   include <sys/param.h>
12254#   ifdef EXEC_PAGESIZE
12255#    define getpagesize() EXEC_PAGESIZE
12256#   else /* no EXEC_PAGESIZE */
12257#    ifdef NBPG
12258#     define getpagesize() NBPG * CLSIZE
12259#     ifndef CLSIZE
12260#      define CLSIZE 1
12261#     endif /* no CLSIZE */
12262#    else /* no NBPG */
12263#     ifdef NBPC
12264#      define getpagesize() NBPC
12265#     else /* no NBPC */
12266#      ifdef PAGESIZE
12267#       define getpagesize() PAGESIZE
12268#      endif /* PAGESIZE */
12269#     endif /* no NBPC */
12270#    endif /* no NBPG */
12271#   endif /* no EXEC_PAGESIZE */
12272#  else /* no HAVE_SYS_PARAM_H */
12273#   define getpagesize() 8192	/* punt totally */
12274#  endif /* no HAVE_SYS_PARAM_H */
12275# endif /* no _SC_PAGESIZE */
12276
12277#endif /* no HAVE_GETPAGESIZE */
12278
12279int
12280main ()
12281{
12282  char *data, *data2, *data3;
12283  const char *cdata2;
12284  int i, pagesize;
12285  int fd, fd2;
12286
12287  pagesize = getpagesize ();
12288
12289  /* First, make a file with some known garbage in it. */
12290  data = (char *) malloc (pagesize);
12291  if (!data)
12292    return 1;
12293  for (i = 0; i < pagesize; ++i)
12294    *(data + i) = rand ();
12295  umask (0);
12296  fd = creat ("conftest.mmap", 0600);
12297  if (fd < 0)
12298    return 2;
12299  if (write (fd, data, pagesize) != pagesize)
12300    return 3;
12301  close (fd);
12302
12303  /* Next, check that the tail of a page is zero-filled.  File must have
12304     non-zero length, otherwise we risk SIGBUS for entire page.  */
12305  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12306  if (fd2 < 0)
12307    return 4;
12308  cdata2 = "";
12309  if (write (fd2, cdata2, 1) != 1)
12310    return 5;
12311  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12312  if (data2 == MAP_FAILED)
12313    return 6;
12314  for (i = 0; i < pagesize; ++i)
12315    if (*(data2 + i))
12316      return 7;
12317  close (fd2);
12318  if (munmap (data2, pagesize))
12319    return 8;
12320
12321  /* Next, try to mmap the file at a fixed address which already has
12322     something else allocated at it.  If we can, also make sure that
12323     we see the same garbage.  */
12324  fd = open ("conftest.mmap", O_RDWR);
12325  if (fd < 0)
12326    return 9;
12327  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12328		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
12329    return 10;
12330  for (i = 0; i < pagesize; ++i)
12331    if (*(data + i) != *(data2 + i))
12332      return 11;
12333
12334  /* Finally, make sure that changes to the mapped area do not
12335     percolate back to the file as seen by read().  (This is a bug on
12336     some variants of i386 svr4.0.)  */
12337  for (i = 0; i < pagesize; ++i)
12338    *(data2 + i) = *(data2 + i) + 1;
12339  data3 = (char *) malloc (pagesize);
12340  if (!data3)
12341    return 12;
12342  if (read (fd, data3, pagesize) != pagesize)
12343    return 13;
12344  for (i = 0; i < pagesize; ++i)
12345    if (*(data + i) != *(data3 + i))
12346      return 14;
12347  close (fd);
12348  return 0;
12349}
12350_ACEOF
12351if ac_fn_c_try_run "$LINENO"; then :
12352  ac_cv_func_mmap_fixed_mapped=yes
12353else
12354  ac_cv_func_mmap_fixed_mapped=no
12355fi
12356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12357  conftest.$ac_objext conftest.beam conftest.$ac_ext
12358fi
12359
12360fi
12361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12362$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12363if test $ac_cv_func_mmap_fixed_mapped = yes; then
12364
12365$as_echo "#define HAVE_MMAP 1" >>confdefs.h
12366
12367fi
12368rm -f conftest.mmap conftest.txt
12369
12370
12371    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
12372$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12373if test "${ac_cv_gnu_library_2_1+set}" = set; then :
12374  $as_echo_n "(cached) " >&6
12375else
12376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377/* end confdefs.h.  */
12378
12379#include <features.h>
12380#ifdef __GNU_LIBRARY__
12381 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12382  Lucky GNU user
12383 #endif
12384#endif
12385
12386_ACEOF
12387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12388  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
12389  ac_cv_gnu_library_2_1=yes
12390else
12391  ac_cv_gnu_library_2_1=no
12392fi
12393rm -f conftest*
12394
12395
12396
12397fi
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12399$as_echo "$ac_cv_gnu_library_2_1" >&6; }
12400
12401    GLIBC21="$ac_cv_gnu_library_2_1"
12402
12403
12404
12405
12406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
12407$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
12408if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
12409  $as_echo_n "(cached) " >&6
12410else
12411
12412      if test "$cross_compiling" = yes; then :
12413
12414          # Guess based on the CPU.
12415          case "$host_cpu" in
12416            alpha* | i3456786 | m68k | s390*)
12417              gt_cv_int_divbyzero_sigfpe="guessing yes";;
12418            *)
12419              gt_cv_int_divbyzero_sigfpe="guessing no";;
12420          esac
12421
12422else
12423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424/* end confdefs.h.  */
12425
12426#include <stdlib.h>
12427#include <signal.h>
12428
12429static void
12430#ifdef __cplusplus
12431sigfpe_handler (int sig)
12432#else
12433sigfpe_handler (sig) int sig;
12434#endif
12435{
12436  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
12437  exit (sig != SIGFPE);
12438}
12439
12440int x = 1;
12441int y = 0;
12442int z;
12443int nan;
12444
12445int main ()
12446{
12447  signal (SIGFPE, sigfpe_handler);
12448/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
12449#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
12450  signal (SIGTRAP, sigfpe_handler);
12451#endif
12452/* Linux/SPARC yields signal SIGILL.  */
12453#if defined (__sparc__) && defined (__linux__)
12454  signal (SIGILL, sigfpe_handler);
12455#endif
12456
12457  z = x / y;
12458  nan = y / y;
12459  exit (1);
12460}
12461
12462_ACEOF
12463if ac_fn_c_try_run "$LINENO"; then :
12464  gt_cv_int_divbyzero_sigfpe=yes
12465else
12466  gt_cv_int_divbyzero_sigfpe=no
12467fi
12468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12469  conftest.$ac_objext conftest.beam conftest.$ac_ext
12470fi
12471
12472
12473fi
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
12475$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
12476  case "$gt_cv_int_divbyzero_sigfpe" in
12477    *yes) value=1;;
12478    *) value=0;;
12479  esac
12480
12481cat >>confdefs.h <<_ACEOF
12482#define INTDIV0_RAISES_SIGFPE $value
12483_ACEOF
12484
12485
12486
12487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12488$as_echo_n "checking for inttypes.h... " >&6; }
12489if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
12490  $as_echo_n "(cached) " >&6
12491else
12492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493/* end confdefs.h.  */
12494#include <sys/types.h>
12495#include <inttypes.h>
12496int
12497main ()
12498{
12499uintmax_t i = (uintmax_t) -1;
12500  ;
12501  return 0;
12502}
12503_ACEOF
12504if ac_fn_c_try_compile "$LINENO"; then :
12505  jm_ac_cv_header_inttypes_h=yes
12506else
12507  jm_ac_cv_header_inttypes_h=no
12508fi
12509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12510fi
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
12512$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
12513  if test $jm_ac_cv_header_inttypes_h = yes; then
12514
12515cat >>confdefs.h <<_ACEOF
12516#define HAVE_INTTYPES_H_WITH_UINTMAX 1
12517_ACEOF
12518
12519  fi
12520
12521
12522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12523$as_echo_n "checking for stdint.h... " >&6; }
12524if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
12525  $as_echo_n "(cached) " >&6
12526else
12527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528/* end confdefs.h.  */
12529#include <sys/types.h>
12530#include <stdint.h>
12531int
12532main ()
12533{
12534uintmax_t i = (uintmax_t) -1;
12535  ;
12536  return 0;
12537}
12538_ACEOF
12539if ac_fn_c_try_compile "$LINENO"; then :
12540  jm_ac_cv_header_stdint_h=yes
12541else
12542  jm_ac_cv_header_stdint_h=no
12543fi
12544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12545fi
12546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
12547$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
12548  if test $jm_ac_cv_header_stdint_h = yes; then
12549
12550cat >>confdefs.h <<_ACEOF
12551#define HAVE_STDINT_H_WITH_UINTMAX 1
12552_ACEOF
12553
12554  fi
12555
12556
12557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12558$as_echo_n "checking for unsigned long long... " >&6; }
12559if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
12560  $as_echo_n "(cached) " >&6
12561else
12562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563/* end confdefs.h.  */
12564unsigned long long ull = 1; int i = 63;
12565int
12566main ()
12567{
12568unsigned long long ullmax = (unsigned long long) -1;
12569     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12570  ;
12571  return 0;
12572}
12573_ACEOF
12574if ac_fn_c_try_link "$LINENO"; then :
12575  ac_cv_type_unsigned_long_long=yes
12576else
12577  ac_cv_type_unsigned_long_long=no
12578fi
12579rm -f core conftest.err conftest.$ac_objext \
12580    conftest$ac_exeext conftest.$ac_ext
12581fi
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
12583$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
12584  if test $ac_cv_type_unsigned_long_long = yes; then
12585
12586$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12587
12588  fi
12589
12590
12591
12592
12593  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
12594
12595    test $ac_cv_type_unsigned_long_long = yes \
12596      && ac_type='unsigned long long' \
12597      || ac_type='unsigned long'
12598
12599cat >>confdefs.h <<_ACEOF
12600#define uintmax_t $ac_type
12601_ACEOF
12602
12603  else
12604
12605$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
12606
12607  fi
12608
12609
12610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12611$as_echo_n "checking for inttypes.h... " >&6; }
12612if test "${gt_cv_header_inttypes_h+set}" = set; then :
12613  $as_echo_n "(cached) " >&6
12614else
12615
12616    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617/* end confdefs.h.  */
12618#include <sys/types.h>
12619#include <inttypes.h>
12620int
12621main ()
12622{
12623
12624  ;
12625  return 0;
12626}
12627_ACEOF
12628if ac_fn_c_try_compile "$LINENO"; then :
12629  gt_cv_header_inttypes_h=yes
12630else
12631  gt_cv_header_inttypes_h=no
12632fi
12633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12634
12635fi
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
12637$as_echo "$gt_cv_header_inttypes_h" >&6; }
12638  if test $gt_cv_header_inttypes_h = yes; then
12639
12640cat >>confdefs.h <<_ACEOF
12641#define HAVE_INTTYPES_H 1
12642_ACEOF
12643
12644  fi
12645
12646
12647
12648  if test $gt_cv_header_inttypes_h = yes; then
12649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12650$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12651if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
12652  $as_echo_n "(cached) " >&6
12653else
12654
12655        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656/* end confdefs.h.  */
12657#include <inttypes.h>
12658#ifdef PRId32
12659char *p = PRId32;
12660#endif
12661
12662int
12663main ()
12664{
12665
12666  ;
12667  return 0;
12668}
12669_ACEOF
12670if ac_fn_c_try_compile "$LINENO"; then :
12671  gt_cv_inttypes_pri_broken=no
12672else
12673  gt_cv_inttypes_pri_broken=yes
12674fi
12675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12676
12677fi
12678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12679$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12680  fi
12681  if test "$gt_cv_inttypes_pri_broken" = yes; then
12682
12683cat >>confdefs.h <<_ACEOF
12684#define PRI_MACROS_BROKEN 1
12685_ACEOF
12686
12687  fi
12688
12689
12690      if test "X$prefix" = "XNONE"; then
12691    acl_final_prefix="$ac_default_prefix"
12692  else
12693    acl_final_prefix="$prefix"
12694  fi
12695  if test "X$exec_prefix" = "XNONE"; then
12696    acl_final_exec_prefix='${prefix}'
12697  else
12698    acl_final_exec_prefix="$exec_prefix"
12699  fi
12700  acl_save_prefix="$prefix"
12701  prefix="$acl_final_prefix"
12702  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12703  prefix="$acl_save_prefix"
12704
12705
12706# Check whether --with-gnu-ld was given.
12707if test "${with_gnu_ld+set}" = set; then :
12708  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12709else
12710  with_gnu_ld=no
12711fi
12712
12713# Prepare PATH_SEPARATOR.
12714# The user is always right.
12715if test "${PATH_SEPARATOR+set}" != set; then
12716  echo "#! /bin/sh" >conf$$.sh
12717  echo  "exit 0"   >>conf$$.sh
12718  chmod +x conf$$.sh
12719  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12720    PATH_SEPARATOR=';'
12721  else
12722    PATH_SEPARATOR=:
12723  fi
12724  rm -f conf$$.sh
12725fi
12726ac_prog=ld
12727if test "$GCC" = yes; then
12728  # Check if gcc -print-prog-name=ld gives a path.
12729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12730$as_echo_n "checking for ld used by GCC... " >&6; }
12731  case $host in
12732  *-*-mingw*)
12733    # gcc leaves a trailing carriage return which upsets mingw
12734    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12735  *)
12736    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12737  esac
12738  case $ac_prog in
12739    # Accept absolute paths.
12740    [\\/]* | [A-Za-z]:[\\/]*)
12741      re_direlt='/[^/][^/]*/\.\./'
12742      # Canonicalize the path of ld
12743      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12744      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12745	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12746      done
12747      test -z "$LD" && LD="$ac_prog"
12748      ;;
12749  "")
12750    # If it fails, then pretend we aren't using GCC.
12751    ac_prog=ld
12752    ;;
12753  *)
12754    # If it is relative, then search for the first ld in PATH.
12755    with_gnu_ld=unknown
12756    ;;
12757  esac
12758elif test "$with_gnu_ld" = yes; then
12759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12760$as_echo_n "checking for GNU ld... " >&6; }
12761else
12762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12763$as_echo_n "checking for non-GNU ld... " >&6; }
12764fi
12765if test "${acl_cv_path_LD+set}" = set; then :
12766  $as_echo_n "(cached) " >&6
12767else
12768  if test -z "$LD"; then
12769  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12770  for ac_dir in $PATH; do
12771    test -z "$ac_dir" && ac_dir=.
12772    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12773      acl_cv_path_LD="$ac_dir/$ac_prog"
12774      # Check to see if the program is GNU ld.  I'd rather use --version,
12775      # but apparently some GNU ld's only accept -v.
12776      # Break only if it was the GNU/non-GNU ld that we prefer.
12777      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12778	test "$with_gnu_ld" != no && break
12779      else
12780	test "$with_gnu_ld" != yes && break
12781      fi
12782    fi
12783  done
12784  IFS="$ac_save_ifs"
12785else
12786  acl_cv_path_LD="$LD" # Let the user override the test with a path.
12787fi
12788fi
12789
12790LD="$acl_cv_path_LD"
12791if test -n "$LD"; then
12792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12793$as_echo "$LD" >&6; }
12794else
12795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796$as_echo "no" >&6; }
12797fi
12798test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12800$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12801if test "${acl_cv_prog_gnu_ld+set}" = set; then :
12802  $as_echo_n "(cached) " >&6
12803else
12804  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12805if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12806  acl_cv_prog_gnu_ld=yes
12807else
12808  acl_cv_prog_gnu_ld=no
12809fi
12810fi
12811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12812$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12813with_gnu_ld=$acl_cv_prog_gnu_ld
12814
12815
12816
12817                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12818$as_echo_n "checking for shared library run path origin... " >&6; }
12819if test "${acl_cv_rpath+set}" = set; then :
12820  $as_echo_n "(cached) " >&6
12821else
12822
12823    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12824    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12825    . ./conftest.sh
12826    rm -f ./conftest.sh
12827    acl_cv_rpath=done
12828
12829fi
12830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12831$as_echo "$acl_cv_rpath" >&6; }
12832  wl="$acl_cv_wl"
12833  libext="$acl_cv_libext"
12834  shlibext="$acl_cv_shlibext"
12835  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12836  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12837  hardcode_direct="$acl_cv_hardcode_direct"
12838  hardcode_minus_L="$acl_cv_hardcode_minus_L"
12839    # Check whether --enable-rpath was given.
12840if test "${enable_rpath+set}" = set; then :
12841  enableval=$enable_rpath; :
12842else
12843  enable_rpath=yes
12844fi
12845
12846
12847
12848
12849
12850
12851
12852
12853    use_additional=yes
12854
12855  acl_save_prefix="$prefix"
12856  prefix="$acl_final_prefix"
12857  acl_save_exec_prefix="$exec_prefix"
12858  exec_prefix="$acl_final_exec_prefix"
12859
12860    eval additional_includedir=\"$includedir\"
12861    eval additional_libdir=\"$libdir\"
12862
12863  exec_prefix="$acl_save_exec_prefix"
12864  prefix="$acl_save_prefix"
12865
12866
12867# Check whether --with-libiconv-prefix was given.
12868if test "${with_libiconv_prefix+set}" = set; then :
12869  withval=$with_libiconv_prefix;
12870    if test "X$withval" = "Xno"; then
12871      use_additional=no
12872    else
12873      if test "X$withval" = "X"; then
12874
12875  acl_save_prefix="$prefix"
12876  prefix="$acl_final_prefix"
12877  acl_save_exec_prefix="$exec_prefix"
12878  exec_prefix="$acl_final_exec_prefix"
12879
12880          eval additional_includedir=\"$includedir\"
12881          eval additional_libdir=\"$libdir\"
12882
12883  exec_prefix="$acl_save_exec_prefix"
12884  prefix="$acl_save_prefix"
12885
12886      else
12887        additional_includedir="$withval/include"
12888        additional_libdir="$withval/lib"
12889      fi
12890    fi
12891
12892fi
12893
12894      LIBICONV=
12895  LTLIBICONV=
12896  INCICONV=
12897  rpathdirs=
12898  ltrpathdirs=
12899  names_already_handled=
12900  names_next_round='iconv '
12901  while test -n "$names_next_round"; do
12902    names_this_round="$names_next_round"
12903    names_next_round=
12904    for name in $names_this_round; do
12905      already_handled=
12906      for n in $names_already_handled; do
12907        if test "$n" = "$name"; then
12908          already_handled=yes
12909          break
12910        fi
12911      done
12912      if test -z "$already_handled"; then
12913        names_already_handled="$names_already_handled $name"
12914                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12915        eval value=\"\$HAVE_LIB$uppername\"
12916        if test -n "$value"; then
12917          if test "$value" = yes; then
12918            eval value=\"\$LIB$uppername\"
12919            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12920            eval value=\"\$LTLIB$uppername\"
12921            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12922          else
12923                                    :
12924          fi
12925        else
12926                              found_dir=
12927          found_la=
12928          found_so=
12929          found_a=
12930          if test $use_additional = yes; then
12931            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12932              found_dir="$additional_libdir"
12933              found_so="$additional_libdir/lib$name.$shlibext"
12934              if test -f "$additional_libdir/lib$name.la"; then
12935                found_la="$additional_libdir/lib$name.la"
12936              fi
12937            else
12938              if test -f "$additional_libdir/lib$name.$libext"; then
12939                found_dir="$additional_libdir"
12940                found_a="$additional_libdir/lib$name.$libext"
12941                if test -f "$additional_libdir/lib$name.la"; then
12942                  found_la="$additional_libdir/lib$name.la"
12943                fi
12944              fi
12945            fi
12946          fi
12947          if test "X$found_dir" = "X"; then
12948            for x in $LDFLAGS $LTLIBICONV; do
12949
12950  acl_save_prefix="$prefix"
12951  prefix="$acl_final_prefix"
12952  acl_save_exec_prefix="$exec_prefix"
12953  exec_prefix="$acl_final_exec_prefix"
12954  eval x=\"$x\"
12955  exec_prefix="$acl_save_exec_prefix"
12956  prefix="$acl_save_prefix"
12957
12958              case "$x" in
12959                -L*)
12960                  dir=`echo "X$x" | sed -e 's/^X-L//'`
12961                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12962                    found_dir="$dir"
12963                    found_so="$dir/lib$name.$shlibext"
12964                    if test -f "$dir/lib$name.la"; then
12965                      found_la="$dir/lib$name.la"
12966                    fi
12967                  else
12968                    if test -f "$dir/lib$name.$libext"; then
12969                      found_dir="$dir"
12970                      found_a="$dir/lib$name.$libext"
12971                      if test -f "$dir/lib$name.la"; then
12972                        found_la="$dir/lib$name.la"
12973                      fi
12974                    fi
12975                  fi
12976                  ;;
12977              esac
12978              if test "X$found_dir" != "X"; then
12979                break
12980              fi
12981            done
12982          fi
12983          if test "X$found_dir" != "X"; then
12984                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12985            if test "X$found_so" != "X"; then
12986                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12987                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12988              else
12989                                                                                haveit=
12990                for x in $ltrpathdirs; do
12991                  if test "X$x" = "X$found_dir"; then
12992                    haveit=yes
12993                    break
12994                  fi
12995                done
12996                if test -z "$haveit"; then
12997                  ltrpathdirs="$ltrpathdirs $found_dir"
12998                fi
12999                                if test "$hardcode_direct" = yes; then
13000                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13001                else
13002                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13003                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13004                                                            haveit=
13005                    for x in $rpathdirs; do
13006                      if test "X$x" = "X$found_dir"; then
13007                        haveit=yes
13008                        break
13009                      fi
13010                    done
13011                    if test -z "$haveit"; then
13012                      rpathdirs="$rpathdirs $found_dir"
13013                    fi
13014                  else
13015                                                                                haveit=
13016                    for x in $LDFLAGS $LIBICONV; do
13017
13018  acl_save_prefix="$prefix"
13019  prefix="$acl_final_prefix"
13020  acl_save_exec_prefix="$exec_prefix"
13021  exec_prefix="$acl_final_exec_prefix"
13022  eval x=\"$x\"
13023  exec_prefix="$acl_save_exec_prefix"
13024  prefix="$acl_save_prefix"
13025
13026                      if test "X$x" = "X-L$found_dir"; then
13027                        haveit=yes
13028                        break
13029                      fi
13030                    done
13031                    if test -z "$haveit"; then
13032                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13033                    fi
13034                    if test "$hardcode_minus_L" != no; then
13035                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13036                    else
13037                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13038                    fi
13039                  fi
13040                fi
13041              fi
13042            else
13043              if test "X$found_a" != "X"; then
13044                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13045              else
13046                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13047              fi
13048            fi
13049                        additional_includedir=
13050            case "$found_dir" in
13051              */lib | */lib/)
13052                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13053                additional_includedir="$basedir/include"
13054                ;;
13055            esac
13056            if test "X$additional_includedir" != "X"; then
13057                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
13058                haveit=
13059                if test "X$additional_includedir" = "X/usr/local/include"; then
13060                  if test -n "$GCC"; then
13061                    case $host_os in
13062                      linux*) haveit=yes;;
13063                    esac
13064                  fi
13065                fi
13066                if test -z "$haveit"; then
13067                  for x in $CPPFLAGS $INCICONV; do
13068
13069  acl_save_prefix="$prefix"
13070  prefix="$acl_final_prefix"
13071  acl_save_exec_prefix="$exec_prefix"
13072  exec_prefix="$acl_final_exec_prefix"
13073  eval x=\"$x\"
13074  exec_prefix="$acl_save_exec_prefix"
13075  prefix="$acl_save_prefix"
13076
13077                    if test "X$x" = "X-I$additional_includedir"; then
13078                      haveit=yes
13079                      break
13080                    fi
13081                  done
13082                  if test -z "$haveit"; then
13083                    if test -d "$additional_includedir"; then
13084                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13085                    fi
13086                  fi
13087                fi
13088              fi
13089            fi
13090                        if test -n "$found_la"; then
13091                                                        save_libdir="$libdir"
13092              case "$found_la" in
13093                */* | *\\*) . "$found_la" ;;
13094                *) . "./$found_la" ;;
13095              esac
13096              libdir="$save_libdir"
13097                            for dep in $dependency_libs; do
13098                case "$dep" in
13099                  -L*)
13100                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13101                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
13102                      haveit=
13103                      if test "X$additional_libdir" = "X/usr/local/lib"; then
13104                        if test -n "$GCC"; then
13105                          case $host_os in
13106                            linux*) haveit=yes;;
13107                          esac
13108                        fi
13109                      fi
13110                      if test -z "$haveit"; then
13111                        haveit=
13112                        for x in $LDFLAGS $LIBICONV; do
13113
13114  acl_save_prefix="$prefix"
13115  prefix="$acl_final_prefix"
13116  acl_save_exec_prefix="$exec_prefix"
13117  exec_prefix="$acl_final_exec_prefix"
13118  eval x=\"$x\"
13119  exec_prefix="$acl_save_exec_prefix"
13120  prefix="$acl_save_prefix"
13121
13122                          if test "X$x" = "X-L$additional_libdir"; then
13123                            haveit=yes
13124                            break
13125                          fi
13126                        done
13127                        if test -z "$haveit"; then
13128                          if test -d "$additional_libdir"; then
13129                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13130                          fi
13131                        fi
13132                        haveit=
13133                        for x in $LDFLAGS $LTLIBICONV; do
13134
13135  acl_save_prefix="$prefix"
13136  prefix="$acl_final_prefix"
13137  acl_save_exec_prefix="$exec_prefix"
13138  exec_prefix="$acl_final_exec_prefix"
13139  eval x=\"$x\"
13140  exec_prefix="$acl_save_exec_prefix"
13141  prefix="$acl_save_prefix"
13142
13143                          if test "X$x" = "X-L$additional_libdir"; then
13144                            haveit=yes
13145                            break
13146                          fi
13147                        done
13148                        if test -z "$haveit"; then
13149                          if test -d "$additional_libdir"; then
13150                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13151                          fi
13152                        fi
13153                      fi
13154                    fi
13155                    ;;
13156                  -R*)
13157                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
13158                    if test "$enable_rpath" != no; then
13159                                                                  haveit=
13160                      for x in $rpathdirs; do
13161                        if test "X$x" = "X$dir"; then
13162                          haveit=yes
13163                          break
13164                        fi
13165                      done
13166                      if test -z "$haveit"; then
13167                        rpathdirs="$rpathdirs $dir"
13168                      fi
13169                                                                  haveit=
13170                      for x in $ltrpathdirs; do
13171                        if test "X$x" = "X$dir"; then
13172                          haveit=yes
13173                          break
13174                        fi
13175                      done
13176                      if test -z "$haveit"; then
13177                        ltrpathdirs="$ltrpathdirs $dir"
13178                      fi
13179                    fi
13180                    ;;
13181                  -l*)
13182                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13183                    ;;
13184                  *.la)
13185                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13186                    ;;
13187                  *)
13188                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13189                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13190                    ;;
13191                esac
13192              done
13193            fi
13194          else
13195                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13196            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13197          fi
13198        fi
13199      fi
13200    done
13201  done
13202  if test "X$rpathdirs" != "X"; then
13203    if test -n "$hardcode_libdir_separator"; then
13204                        alldirs=
13205      for found_dir in $rpathdirs; do
13206        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13207      done
13208            acl_save_libdir="$libdir"
13209      libdir="$alldirs"
13210      eval flag=\"$hardcode_libdir_flag_spec\"
13211      libdir="$acl_save_libdir"
13212      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13213    else
13214            for found_dir in $rpathdirs; do
13215        acl_save_libdir="$libdir"
13216        libdir="$found_dir"
13217        eval flag=\"$hardcode_libdir_flag_spec\"
13218        libdir="$acl_save_libdir"
13219        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13220      done
13221    fi
13222  fi
13223  if test "X$ltrpathdirs" != "X"; then
13224            for found_dir in $ltrpathdirs; do
13225      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13226    done
13227  fi
13228
13229
13230
13231
13232  for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
13233stdlib.h string.h unistd.h sys/param.h
13234do :
13235  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13236ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13237eval as_val=\$$as_ac_Header
13238   if test "x$as_val" = x""yes; then :
13239  cat >>confdefs.h <<_ACEOF
13240#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13241_ACEOF
13242
13243fi
13244
13245done
13246
13247  for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
13248geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
13249strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
13250__fsetlocking
13251do :
13252  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13253ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13254eval as_val=\$$as_ac_var
13255   if test "x$as_val" = x""yes; then :
13256  cat >>confdefs.h <<_ACEOF
13257#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13258_ACEOF
13259
13260fi
13261done
13262
13263
13264
13265
13266
13267
13268
13269          am_save_CPPFLAGS="$CPPFLAGS"
13270
13271  for element in $INCICONV; do
13272    haveit=
13273    for x in $CPPFLAGS; do
13274
13275  acl_save_prefix="$prefix"
13276  prefix="$acl_final_prefix"
13277  acl_save_exec_prefix="$exec_prefix"
13278  exec_prefix="$acl_final_exec_prefix"
13279  eval x=\"$x\"
13280  exec_prefix="$acl_save_exec_prefix"
13281  prefix="$acl_save_prefix"
13282
13283      if test "X$x" = "X$element"; then
13284        haveit=yes
13285        break
13286      fi
13287    done
13288    if test -z "$haveit"; then
13289      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13290    fi
13291  done
13292
13293
13294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13295$as_echo_n "checking for iconv... " >&6; }
13296if test "${am_cv_func_iconv+set}" = set; then :
13297  $as_echo_n "(cached) " >&6
13298else
13299
13300    am_cv_func_iconv="no, consider installing GNU libiconv"
13301    am_cv_lib_iconv=no
13302    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303/* end confdefs.h.  */
13304#include <stdlib.h>
13305#include <iconv.h>
13306int
13307main ()
13308{
13309iconv_t cd = iconv_open("","");
13310       iconv(cd,NULL,NULL,NULL,NULL);
13311       iconv_close(cd);
13312  ;
13313  return 0;
13314}
13315_ACEOF
13316if ac_fn_c_try_link "$LINENO"; then :
13317  am_cv_func_iconv=yes
13318fi
13319rm -f core conftest.err conftest.$ac_objext \
13320    conftest$ac_exeext conftest.$ac_ext
13321    if test "$am_cv_func_iconv" != yes; then
13322      am_save_LIBS="$LIBS"
13323      LIBS="$LIBS $LIBICONV"
13324      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325/* end confdefs.h.  */
13326#include <stdlib.h>
13327#include <iconv.h>
13328int
13329main ()
13330{
13331iconv_t cd = iconv_open("","");
13332         iconv(cd,NULL,NULL,NULL,NULL);
13333         iconv_close(cd);
13334  ;
13335  return 0;
13336}
13337_ACEOF
13338if ac_fn_c_try_link "$LINENO"; then :
13339  am_cv_lib_iconv=yes
13340        am_cv_func_iconv=yes
13341fi
13342rm -f core conftest.err conftest.$ac_objext \
13343    conftest$ac_exeext conftest.$ac_ext
13344      LIBS="$am_save_LIBS"
13345    fi
13346
13347fi
13348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13349$as_echo "$am_cv_func_iconv" >&6; }
13350  if test "$am_cv_func_iconv" = yes; then
13351
13352$as_echo "#define HAVE_ICONV 1" >>confdefs.h
13353
13354  fi
13355  if test "$am_cv_lib_iconv" = yes; then
13356    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13357$as_echo_n "checking how to link with libiconv... " >&6; }
13358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13359$as_echo "$LIBICONV" >&6; }
13360  else
13361            CPPFLAGS="$am_save_CPPFLAGS"
13362    LIBICONV=
13363    LTLIBICONV=
13364  fi
13365
13366
13367
13368  if test "$am_cv_func_iconv" = yes; then
13369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13370$as_echo_n "checking for iconv declaration... " >&6; }
13371    if test "${am_cv_proto_iconv+set}" = set; then :
13372  $as_echo_n "(cached) " >&6
13373else
13374
13375      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13376/* end confdefs.h.  */
13377
13378#include <stdlib.h>
13379#include <iconv.h>
13380extern
13381#ifdef __cplusplus
13382"C"
13383#endif
13384#if defined(__STDC__) || defined(__cplusplus)
13385size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13386#else
13387size_t iconv();
13388#endif
13389
13390int
13391main ()
13392{
13393
13394  ;
13395  return 0;
13396}
13397_ACEOF
13398if ac_fn_c_try_compile "$LINENO"; then :
13399  am_cv_proto_iconv_arg1=""
13400else
13401  am_cv_proto_iconv_arg1="const"
13402fi
13403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404      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);"
13405fi
13406
13407    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
13409         }$am_cv_proto_iconv" >&5
13410$as_echo "${ac_t:-
13411         }$am_cv_proto_iconv" >&6; }
13412
13413cat >>confdefs.h <<_ACEOF
13414#define ICONV_CONST $am_cv_proto_iconv_arg1
13415_ACEOF
13416
13417  fi
13418
13419
13420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13421$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13422if test "${am_cv_langinfo_codeset+set}" = set; then :
13423  $as_echo_n "(cached) " >&6
13424else
13425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426/* end confdefs.h.  */
13427#include <langinfo.h>
13428int
13429main ()
13430{
13431char* cs = nl_langinfo(CODESET);
13432  ;
13433  return 0;
13434}
13435_ACEOF
13436if ac_fn_c_try_link "$LINENO"; then :
13437  am_cv_langinfo_codeset=yes
13438else
13439  am_cv_langinfo_codeset=no
13440fi
13441rm -f core conftest.err conftest.$ac_objext \
13442    conftest$ac_exeext conftest.$ac_ext
13443
13444fi
13445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13446$as_echo "$am_cv_langinfo_codeset" >&6; }
13447  if test $am_cv_langinfo_codeset = yes; then
13448
13449$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13450
13451  fi
13452
13453  if test $ac_cv_header_locale_h = yes; then
13454
13455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13456$as_echo_n "checking for LC_MESSAGES... " >&6; }
13457if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13458  $as_echo_n "(cached) " >&6
13459else
13460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461/* end confdefs.h.  */
13462#include <locale.h>
13463int
13464main ()
13465{
13466return LC_MESSAGES
13467  ;
13468  return 0;
13469}
13470_ACEOF
13471if ac_fn_c_try_link "$LINENO"; then :
13472  am_cv_val_LC_MESSAGES=yes
13473else
13474  am_cv_val_LC_MESSAGES=no
13475fi
13476rm -f core conftest.err conftest.$ac_objext \
13477    conftest$ac_exeext conftest.$ac_ext
13478fi
13479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13480$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13481  if test $am_cv_val_LC_MESSAGES = yes; then
13482
13483$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13484
13485  fi
13486
13487  fi
13488
13489                      for ac_prog in bison
13490do
13491  # Extract the first word of "$ac_prog", so it can be a program name with args.
13492set dummy $ac_prog; ac_word=$2
13493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494$as_echo_n "checking for $ac_word... " >&6; }
13495if test "${ac_cv_prog_INTLBISON+set}" = set; then :
13496  $as_echo_n "(cached) " >&6
13497else
13498  if test -n "$INTLBISON"; then
13499  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13500else
13501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502for as_dir in $PATH
13503do
13504  IFS=$as_save_IFS
13505  test -z "$as_dir" && as_dir=.
13506    for ac_exec_ext in '' $ac_executable_extensions; do
13507  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13508    ac_cv_prog_INTLBISON="$ac_prog"
13509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13510    break 2
13511  fi
13512done
13513  done
13514IFS=$as_save_IFS
13515
13516fi
13517fi
13518INTLBISON=$ac_cv_prog_INTLBISON
13519if test -n "$INTLBISON"; then
13520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
13521$as_echo "$INTLBISON" >&6; }
13522else
13523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524$as_echo "no" >&6; }
13525fi
13526
13527
13528  test -n "$INTLBISON" && break
13529done
13530
13531  if test -z "$INTLBISON"; then
13532    ac_verc_fail=yes
13533  else
13534        { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
13535$as_echo_n "checking version of bison... " >&6; }
13536    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13537    case $ac_prog_version in
13538      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13539      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13540         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13541      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13542    esac
13543    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
13544$as_echo "$ac_prog_version" >&6; }
13545  fi
13546  if test $ac_verc_fail = yes; then
13547    INTLBISON=:
13548  fi
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13566$as_echo_n "checking whether NLS is requested... " >&6; }
13567    # Check whether --enable-nls was given.
13568if test "${enable_nls+set}" = set; then :
13569  enableval=$enable_nls; USE_NLS=$enableval
13570else
13571  USE_NLS=yes
13572fi
13573
13574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13575$as_echo "$USE_NLS" >&6; }
13576
13577
13578
13579
13580    BUILD_INCLUDED_LIBINTL=no
13581    USE_INCLUDED_LIBINTL=no
13582
13583  LIBINTL=
13584  LTLIBINTL=
13585  POSUB=
13586
13587    if test "$USE_NLS" = "yes"; then
13588    gt_use_preinstalled_gnugettext=no
13589
13590      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
13591$as_echo_n "checking whether included gettext is requested... " >&6; }
13592
13593# Check whether --with-included-gettext was given.
13594if test "${with_included_gettext+set}" = set; then :
13595  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13596else
13597  nls_cv_force_use_gnu_gettext=no
13598fi
13599
13600      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
13601$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
13602
13603      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13604      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13605
13606
13607
13608
13609
13610
13611        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13612$as_echo_n "checking for GNU gettext in libc... " >&6; }
13613if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
13614  $as_echo_n "(cached) " >&6
13615else
13616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617/* end confdefs.h.  */
13618#include <libintl.h>
13619extern int _nl_msg_cat_cntr;
13620extern int *_nl_domain_bindings;
13621int
13622main ()
13623{
13624bindtextdomain ("", "");
13625return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13626  ;
13627  return 0;
13628}
13629_ACEOF
13630if ac_fn_c_try_link "$LINENO"; then :
13631  gt_cv_func_gnugettext1_libc=yes
13632else
13633  gt_cv_func_gnugettext1_libc=no
13634fi
13635rm -f core conftest.err conftest.$ac_objext \
13636    conftest$ac_exeext conftest.$ac_ext
13637fi
13638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
13639$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
13640
13641        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13642
13643
13644
13645    use_additional=yes
13646
13647  acl_save_prefix="$prefix"
13648  prefix="$acl_final_prefix"
13649  acl_save_exec_prefix="$exec_prefix"
13650  exec_prefix="$acl_final_exec_prefix"
13651
13652    eval additional_includedir=\"$includedir\"
13653    eval additional_libdir=\"$libdir\"
13654
13655  exec_prefix="$acl_save_exec_prefix"
13656  prefix="$acl_save_prefix"
13657
13658
13659# Check whether --with-libintl-prefix was given.
13660if test "${with_libintl_prefix+set}" = set; then :
13661  withval=$with_libintl_prefix;
13662    if test "X$withval" = "Xno"; then
13663      use_additional=no
13664    else
13665      if test "X$withval" = "X"; then
13666
13667  acl_save_prefix="$prefix"
13668  prefix="$acl_final_prefix"
13669  acl_save_exec_prefix="$exec_prefix"
13670  exec_prefix="$acl_final_exec_prefix"
13671
13672          eval additional_includedir=\"$includedir\"
13673          eval additional_libdir=\"$libdir\"
13674
13675  exec_prefix="$acl_save_exec_prefix"
13676  prefix="$acl_save_prefix"
13677
13678      else
13679        additional_includedir="$withval/include"
13680        additional_libdir="$withval/lib"
13681      fi
13682    fi
13683
13684fi
13685
13686      LIBINTL=
13687  LTLIBINTL=
13688  INCINTL=
13689  rpathdirs=
13690  ltrpathdirs=
13691  names_already_handled=
13692  names_next_round='intl '
13693  while test -n "$names_next_round"; do
13694    names_this_round="$names_next_round"
13695    names_next_round=
13696    for name in $names_this_round; do
13697      already_handled=
13698      for n in $names_already_handled; do
13699        if test "$n" = "$name"; then
13700          already_handled=yes
13701          break
13702        fi
13703      done
13704      if test -z "$already_handled"; then
13705        names_already_handled="$names_already_handled $name"
13706                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13707        eval value=\"\$HAVE_LIB$uppername\"
13708        if test -n "$value"; then
13709          if test "$value" = yes; then
13710            eval value=\"\$LIB$uppername\"
13711            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13712            eval value=\"\$LTLIB$uppername\"
13713            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13714          else
13715                                    :
13716          fi
13717        else
13718                              found_dir=
13719          found_la=
13720          found_so=
13721          found_a=
13722          if test $use_additional = yes; then
13723            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13724              found_dir="$additional_libdir"
13725              found_so="$additional_libdir/lib$name.$shlibext"
13726              if test -f "$additional_libdir/lib$name.la"; then
13727                found_la="$additional_libdir/lib$name.la"
13728              fi
13729            else
13730              if test -f "$additional_libdir/lib$name.$libext"; then
13731                found_dir="$additional_libdir"
13732                found_a="$additional_libdir/lib$name.$libext"
13733                if test -f "$additional_libdir/lib$name.la"; then
13734                  found_la="$additional_libdir/lib$name.la"
13735                fi
13736              fi
13737            fi
13738          fi
13739          if test "X$found_dir" = "X"; then
13740            for x in $LDFLAGS $LTLIBINTL; do
13741
13742  acl_save_prefix="$prefix"
13743  prefix="$acl_final_prefix"
13744  acl_save_exec_prefix="$exec_prefix"
13745  exec_prefix="$acl_final_exec_prefix"
13746  eval x=\"$x\"
13747  exec_prefix="$acl_save_exec_prefix"
13748  prefix="$acl_save_prefix"
13749
13750              case "$x" in
13751                -L*)
13752                  dir=`echo "X$x" | sed -e 's/^X-L//'`
13753                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13754                    found_dir="$dir"
13755                    found_so="$dir/lib$name.$shlibext"
13756                    if test -f "$dir/lib$name.la"; then
13757                      found_la="$dir/lib$name.la"
13758                    fi
13759                  else
13760                    if test -f "$dir/lib$name.$libext"; then
13761                      found_dir="$dir"
13762                      found_a="$dir/lib$name.$libext"
13763                      if test -f "$dir/lib$name.la"; then
13764                        found_la="$dir/lib$name.la"
13765                      fi
13766                    fi
13767                  fi
13768                  ;;
13769              esac
13770              if test "X$found_dir" != "X"; then
13771                break
13772              fi
13773            done
13774          fi
13775          if test "X$found_dir" != "X"; then
13776                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13777            if test "X$found_so" != "X"; then
13778                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13779                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13780              else
13781                                                                                haveit=
13782                for x in $ltrpathdirs; do
13783                  if test "X$x" = "X$found_dir"; then
13784                    haveit=yes
13785                    break
13786                  fi
13787                done
13788                if test -z "$haveit"; then
13789                  ltrpathdirs="$ltrpathdirs $found_dir"
13790                fi
13791                                if test "$hardcode_direct" = yes; then
13792                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13793                else
13794                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13795                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13796                                                            haveit=
13797                    for x in $rpathdirs; do
13798                      if test "X$x" = "X$found_dir"; then
13799                        haveit=yes
13800                        break
13801                      fi
13802                    done
13803                    if test -z "$haveit"; then
13804                      rpathdirs="$rpathdirs $found_dir"
13805                    fi
13806                  else
13807                                                                                haveit=
13808                    for x in $LDFLAGS $LIBINTL; do
13809
13810  acl_save_prefix="$prefix"
13811  prefix="$acl_final_prefix"
13812  acl_save_exec_prefix="$exec_prefix"
13813  exec_prefix="$acl_final_exec_prefix"
13814  eval x=\"$x\"
13815  exec_prefix="$acl_save_exec_prefix"
13816  prefix="$acl_save_prefix"
13817
13818                      if test "X$x" = "X-L$found_dir"; then
13819                        haveit=yes
13820                        break
13821                      fi
13822                    done
13823                    if test -z "$haveit"; then
13824                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13825                    fi
13826                    if test "$hardcode_minus_L" != no; then
13827                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13828                    else
13829                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13830                    fi
13831                  fi
13832                fi
13833              fi
13834            else
13835              if test "X$found_a" != "X"; then
13836                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13837              else
13838                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13839              fi
13840            fi
13841                        additional_includedir=
13842            case "$found_dir" in
13843              */lib | */lib/)
13844                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13845                additional_includedir="$basedir/include"
13846                ;;
13847            esac
13848            if test "X$additional_includedir" != "X"; then
13849                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
13850                haveit=
13851                if test "X$additional_includedir" = "X/usr/local/include"; then
13852                  if test -n "$GCC"; then
13853                    case $host_os in
13854                      linux*) haveit=yes;;
13855                    esac
13856                  fi
13857                fi
13858                if test -z "$haveit"; then
13859                  for x in $CPPFLAGS $INCINTL; do
13860
13861  acl_save_prefix="$prefix"
13862  prefix="$acl_final_prefix"
13863  acl_save_exec_prefix="$exec_prefix"
13864  exec_prefix="$acl_final_exec_prefix"
13865  eval x=\"$x\"
13866  exec_prefix="$acl_save_exec_prefix"
13867  prefix="$acl_save_prefix"
13868
13869                    if test "X$x" = "X-I$additional_includedir"; then
13870                      haveit=yes
13871                      break
13872                    fi
13873                  done
13874                  if test -z "$haveit"; then
13875                    if test -d "$additional_includedir"; then
13876                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13877                    fi
13878                  fi
13879                fi
13880              fi
13881            fi
13882                        if test -n "$found_la"; then
13883                                                        save_libdir="$libdir"
13884              case "$found_la" in
13885                */* | *\\*) . "$found_la" ;;
13886                *) . "./$found_la" ;;
13887              esac
13888              libdir="$save_libdir"
13889                            for dep in $dependency_libs; do
13890                case "$dep" in
13891                  -L*)
13892                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13893                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
13894                      haveit=
13895                      if test "X$additional_libdir" = "X/usr/local/lib"; then
13896                        if test -n "$GCC"; then
13897                          case $host_os in
13898                            linux*) haveit=yes;;
13899                          esac
13900                        fi
13901                      fi
13902                      if test -z "$haveit"; then
13903                        haveit=
13904                        for x in $LDFLAGS $LIBINTL; do
13905
13906  acl_save_prefix="$prefix"
13907  prefix="$acl_final_prefix"
13908  acl_save_exec_prefix="$exec_prefix"
13909  exec_prefix="$acl_final_exec_prefix"
13910  eval x=\"$x\"
13911  exec_prefix="$acl_save_exec_prefix"
13912  prefix="$acl_save_prefix"
13913
13914                          if test "X$x" = "X-L$additional_libdir"; then
13915                            haveit=yes
13916                            break
13917                          fi
13918                        done
13919                        if test -z "$haveit"; then
13920                          if test -d "$additional_libdir"; then
13921                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13922                          fi
13923                        fi
13924                        haveit=
13925                        for x in $LDFLAGS $LTLIBINTL; do
13926
13927  acl_save_prefix="$prefix"
13928  prefix="$acl_final_prefix"
13929  acl_save_exec_prefix="$exec_prefix"
13930  exec_prefix="$acl_final_exec_prefix"
13931  eval x=\"$x\"
13932  exec_prefix="$acl_save_exec_prefix"
13933  prefix="$acl_save_prefix"
13934
13935                          if test "X$x" = "X-L$additional_libdir"; then
13936                            haveit=yes
13937                            break
13938                          fi
13939                        done
13940                        if test -z "$haveit"; then
13941                          if test -d "$additional_libdir"; then
13942                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13943                          fi
13944                        fi
13945                      fi
13946                    fi
13947                    ;;
13948                  -R*)
13949                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
13950                    if test "$enable_rpath" != no; then
13951                                                                  haveit=
13952                      for x in $rpathdirs; do
13953                        if test "X$x" = "X$dir"; then
13954                          haveit=yes
13955                          break
13956                        fi
13957                      done
13958                      if test -z "$haveit"; then
13959                        rpathdirs="$rpathdirs $dir"
13960                      fi
13961                                                                  haveit=
13962                      for x in $ltrpathdirs; do
13963                        if test "X$x" = "X$dir"; then
13964                          haveit=yes
13965                          break
13966                        fi
13967                      done
13968                      if test -z "$haveit"; then
13969                        ltrpathdirs="$ltrpathdirs $dir"
13970                      fi
13971                    fi
13972                    ;;
13973                  -l*)
13974                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13975                    ;;
13976                  *.la)
13977                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13978                    ;;
13979                  *)
13980                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13981                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13982                    ;;
13983                esac
13984              done
13985            fi
13986          else
13987                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13988            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13989          fi
13990        fi
13991      fi
13992    done
13993  done
13994  if test "X$rpathdirs" != "X"; then
13995    if test -n "$hardcode_libdir_separator"; then
13996                        alldirs=
13997      for found_dir in $rpathdirs; do
13998        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13999      done
14000            acl_save_libdir="$libdir"
14001      libdir="$alldirs"
14002      eval flag=\"$hardcode_libdir_flag_spec\"
14003      libdir="$acl_save_libdir"
14004      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14005    else
14006            for found_dir in $rpathdirs; do
14007        acl_save_libdir="$libdir"
14008        libdir="$found_dir"
14009        eval flag=\"$hardcode_libdir_flag_spec\"
14010        libdir="$acl_save_libdir"
14011        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14012      done
14013    fi
14014  fi
14015  if test "X$ltrpathdirs" != "X"; then
14016            for found_dir in $ltrpathdirs; do
14017      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14018    done
14019  fi
14020
14021          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14022$as_echo_n "checking for GNU gettext in libintl... " >&6; }
14023if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
14024  $as_echo_n "(cached) " >&6
14025else
14026  gt_save_CPPFLAGS="$CPPFLAGS"
14027            CPPFLAGS="$CPPFLAGS $INCINTL"
14028            gt_save_LIBS="$LIBS"
14029            LIBS="$LIBS $LIBINTL"
14030                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031/* end confdefs.h.  */
14032#include <libintl.h>
14033extern int _nl_msg_cat_cntr;
14034extern
14035#ifdef __cplusplus
14036"C"
14037#endif
14038const char *_nl_expand_alias ();
14039int
14040main ()
14041{
14042bindtextdomain ("", "");
14043return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14044  ;
14045  return 0;
14046}
14047_ACEOF
14048if ac_fn_c_try_link "$LINENO"; then :
14049  gt_cv_func_gnugettext1_libintl=yes
14050else
14051  gt_cv_func_gnugettext1_libintl=no
14052fi
14053rm -f core conftest.err conftest.$ac_objext \
14054    conftest$ac_exeext conftest.$ac_ext
14055                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14056              LIBS="$LIBS $LIBICONV"
14057              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14058/* end confdefs.h.  */
14059#include <libintl.h>
14060extern int _nl_msg_cat_cntr;
14061extern
14062#ifdef __cplusplus
14063"C"
14064#endif
14065const char *_nl_expand_alias ();
14066int
14067main ()
14068{
14069bindtextdomain ("", "");
14070return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14071  ;
14072  return 0;
14073}
14074_ACEOF
14075if ac_fn_c_try_link "$LINENO"; then :
14076  LIBINTL="$LIBINTL $LIBICONV"
14077                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14078                gt_cv_func_gnugettext1_libintl=yes
14079
14080fi
14081rm -f core conftest.err conftest.$ac_objext \
14082    conftest$ac_exeext conftest.$ac_ext
14083            fi
14084            CPPFLAGS="$gt_save_CPPFLAGS"
14085            LIBS="$gt_save_LIBS"
14086fi
14087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
14088$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
14089        fi
14090
14091                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14092           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14093                && test "$PACKAGE" != gettext-runtime \
14094                && test "$PACKAGE" != gettext-tools; }; then
14095          gt_use_preinstalled_gnugettext=yes
14096        else
14097                    LIBINTL=
14098          LTLIBINTL=
14099          INCINTL=
14100        fi
14101
14102
14103        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14104                              nls_cv_use_gnu_gettext=yes
14105        fi
14106      fi
14107
14108      if test "$nls_cv_use_gnu_gettext" = "yes"; then
14109                BUILD_INCLUDED_LIBINTL=yes
14110        USE_INCLUDED_LIBINTL=yes
14111        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14112        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14113        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14114      fi
14115
14116      if test "$gt_use_preinstalled_gnugettext" = "yes" \
14117         || test "$nls_cv_use_gnu_gettext" = "yes"; then
14118                CATOBJEXT=.gmo
14119      fi
14120
14121
14122    if test "$gt_use_preinstalled_gnugettext" = "yes" \
14123       || test "$nls_cv_use_gnu_gettext" = "yes"; then
14124
14125$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14126
14127    else
14128      USE_NLS=no
14129    fi
14130  fi
14131
14132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14133$as_echo_n "checking whether to use NLS... " >&6; }
14134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14135$as_echo "$USE_NLS" >&6; }
14136  if test "$USE_NLS" = "yes"; then
14137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14138$as_echo_n "checking where the gettext function comes from... " >&6; }
14139    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14140      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14141        gt_source="external libintl"
14142      else
14143        gt_source="libc"
14144      fi
14145    else
14146      gt_source="included intl directory"
14147    fi
14148    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14149$as_echo "$gt_source" >&6; }
14150  fi
14151
14152  if test "$USE_NLS" = "yes"; then
14153
14154    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14155      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14156        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14157$as_echo_n "checking how to link with libintl... " >&6; }
14158        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14159$as_echo "$LIBINTL" >&6; }
14160
14161  for element in $INCINTL; do
14162    haveit=
14163    for x in $CPPFLAGS; do
14164
14165  acl_save_prefix="$prefix"
14166  prefix="$acl_final_prefix"
14167  acl_save_exec_prefix="$exec_prefix"
14168  exec_prefix="$acl_final_exec_prefix"
14169  eval x=\"$x\"
14170  exec_prefix="$acl_save_exec_prefix"
14171  prefix="$acl_save_prefix"
14172
14173      if test "X$x" = "X$element"; then
14174        haveit=yes
14175        break
14176      fi
14177    done
14178    if test -z "$haveit"; then
14179      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14180    fi
14181  done
14182
14183      fi
14184
14185
14186$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14187
14188
14189$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14190
14191    fi
14192
14193        POSUB=po
14194  fi
14195
14196
14197            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14198      BUILD_INCLUDED_LIBINTL=yes
14199    fi
14200
14201
14202
14203
14204
14205        nls_cv_header_intl=
14206    nls_cv_header_libgt=
14207
14208        DATADIRNAME=share
14209
14210
14211        INSTOBJEXT=.mo
14212
14213
14214        GENCAT=gencat
14215
14216
14217        if test "$USE_INCLUDED_LIBINTL" = yes; then
14218      INTLOBJS="\$(GETTOBJS)"
14219    fi
14220
14221
14222        INTL_LIBTOOL_SUFFIX_PREFIX=
14223
14224
14225
14226    INTLLIBS="$LIBINTL"
14227
14228
14229
14230
14231
14232
14233
14234
14235## Checks for header files
14236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14237$as_echo_n "checking for ANSI C header files... " >&6; }
14238if test "${ac_cv_header_stdc+set}" = set; then :
14239  $as_echo_n "(cached) " >&6
14240else
14241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242/* end confdefs.h.  */
14243#include <stdlib.h>
14244#include <stdarg.h>
14245#include <string.h>
14246#include <float.h>
14247
14248int
14249main ()
14250{
14251
14252  ;
14253  return 0;
14254}
14255_ACEOF
14256if ac_fn_c_try_compile "$LINENO"; then :
14257  ac_cv_header_stdc=yes
14258else
14259  ac_cv_header_stdc=no
14260fi
14261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14262
14263if test $ac_cv_header_stdc = yes; then
14264  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266/* end confdefs.h.  */
14267#include <string.h>
14268
14269_ACEOF
14270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14271  $EGREP "memchr" >/dev/null 2>&1; then :
14272
14273else
14274  ac_cv_header_stdc=no
14275fi
14276rm -f conftest*
14277
14278fi
14279
14280if test $ac_cv_header_stdc = yes; then
14281  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283/* end confdefs.h.  */
14284#include <stdlib.h>
14285
14286_ACEOF
14287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14288  $EGREP "free" >/dev/null 2>&1; then :
14289
14290else
14291  ac_cv_header_stdc=no
14292fi
14293rm -f conftest*
14294
14295fi
14296
14297if test $ac_cv_header_stdc = yes; then
14298  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14299  if test "$cross_compiling" = yes; then :
14300  :
14301else
14302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303/* end confdefs.h.  */
14304#include <ctype.h>
14305#include <stdlib.h>
14306#if ((' ' & 0x0FF) == 0x020)
14307# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14308# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14309#else
14310# define ISLOWER(c) \
14311		   (('a' <= (c) && (c) <= 'i') \
14312		     || ('j' <= (c) && (c) <= 'r') \
14313		     || ('s' <= (c) && (c) <= 'z'))
14314# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14315#endif
14316
14317#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14318int
14319main ()
14320{
14321  int i;
14322  for (i = 0; i < 256; i++)
14323    if (XOR (islower (i), ISLOWER (i))
14324	|| toupper (i) != TOUPPER (i))
14325      return 2;
14326  return 0;
14327}
14328_ACEOF
14329if ac_fn_c_try_run "$LINENO"; then :
14330
14331else
14332  ac_cv_header_stdc=no
14333fi
14334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14335  conftest.$ac_objext conftest.beam conftest.$ac_ext
14336fi
14337
14338fi
14339fi
14340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14341$as_echo "$ac_cv_header_stdc" >&6; }
14342if test $ac_cv_header_stdc = yes; then
14343
14344$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14345
14346fi
14347
14348for ac_header in fcntl.h getopt.h libintl.h netdb.h pwd.h signal.h stdarg.h termios.h time.h
14349do :
14350  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14351ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14352eval as_val=\$$as_ac_Header
14353   if test "x$as_val" = x""yes; then :
14354  cat >>confdefs.h <<_ACEOF
14355#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14356_ACEOF
14357
14358fi
14359
14360done
14361
14362for ac_header in sys/fcntl.h sys/file.h sys/ioctl.h sys/resource.h
14363do :
14364  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14365ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14366eval as_val=\$$as_ac_Header
14367   if test "x$as_val" = x""yes; then :
14368  cat >>confdefs.h <<_ACEOF
14369#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14370_ACEOF
14371
14372fi
14373
14374done
14375
14376for ac_header in sys/socket.h sys/sockio.h sys/time.h sys/wait.h
14377do :
14378  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14379ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14380eval as_val=\$$as_ac_Header
14381   if test "x$as_val" = x""yes; then :
14382  cat >>confdefs.h <<_ACEOF
14383#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14384_ACEOF
14385
14386fi
14387
14388done
14389
14390for ac_header in sys/select.h
14391do :
14392  ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14393if test "x$ac_cv_header_sys_select_h" = x""yes; then :
14394  cat >>confdefs.h <<_ACEOF
14395#define HAVE_SYS_SELECT_H 1
14396_ACEOF
14397
14398fi
14399
14400done
14401
14402for ac_header in netinet/in.h
14403do :
14404  ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14405if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14406  cat >>confdefs.h <<_ACEOF
14407#define HAVE_NETINET_IN_H 1
14408_ACEOF
14409
14410fi
14411
14412done
14413
14414for ac_header in net/if.h
14415do :
14416  ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
14417if test "x$ac_cv_header_net_if_h" = x""yes; then :
14418  cat >>confdefs.h <<_ACEOF
14419#define HAVE_NET_IF_H 1
14420_ACEOF
14421
14422fi
14423
14424done
14425
14426for ac_header in arpa/inet.h
14427do :
14428  ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14429if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14430  cat >>confdefs.h <<_ACEOF
14431#define HAVE_ARPA_INET_H 1
14432_ACEOF
14433
14434fi
14435
14436done
14437
14438for ac_header in inttypes.h
14439do :
14440  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14441if test "x$ac_cv_header_inttypes_h" = x""yes; then :
14442  cat >>confdefs.h <<_ACEOF
14443#define HAVE_INTTYPES_H 1
14444_ACEOF
14445
14446fi
14447
14448done
14449
14450for ac_header in string.h
14451do :
14452  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14453if test "x$ac_cv_header_string_h" = x""yes; then :
14454  cat >>confdefs.h <<_ACEOF
14455#define HAVE_STRING_H 1
14456_ACEOF
14457
14458fi
14459
14460done
14461
14462for ac_header in poll.h
14463do :
14464  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
14465if test "x$ac_cv_header_poll_h" = x""yes; then :
14466  cat >>confdefs.h <<_ACEOF
14467#define HAVE_POLL_H 1
14468_ACEOF
14469
14470fi
14471
14472done
14473
14474for ac_header in langinfo.h
14475do :
14476  ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
14477if test "x$ac_cv_header_langinfo_h" = x""yes; then :
14478  cat >>confdefs.h <<_ACEOF
14479#define HAVE_LANGINFO_H 1
14480_ACEOF
14481
14482fi
14483
14484done
14485
14486for ac_header in stdio_ext.h
14487do :
14488  ac_fn_c_check_header_mongrel "$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default"
14489if test "x$ac_cv_header_stdio_ext_h" = x""yes; then :
14490  cat >>confdefs.h <<_ACEOF
14491#define HAVE_STDIO_EXT_H 1
14492_ACEOF
14493
14494fi
14495
14496done
14497
14498for ac_header in syslog.h
14499do :
14500  ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
14501if test "x$ac_cv_header_syslog_h" = x""yes; then :
14502  cat >>confdefs.h <<_ACEOF
14503#define HAVE_SYSLOG_H 1
14504_ACEOF
14505
14506fi
14507
14508done
14509
14510
14511
14512## Typedefs, structures, and compiler characteristics.
14513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14514$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14515if test "${ac_cv_c_const+set}" = set; then :
14516  $as_echo_n "(cached) " >&6
14517else
14518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519/* end confdefs.h.  */
14520
14521int
14522main ()
14523{
14524/* FIXME: Include the comments suggested by Paul. */
14525#ifndef __cplusplus
14526  /* Ultrix mips cc rejects this.  */
14527  typedef int charset[2];
14528  const charset cs;
14529  /* SunOS 4.1.1 cc rejects this.  */
14530  char const *const *pcpcc;
14531  char **ppc;
14532  /* NEC SVR4.0.2 mips cc rejects this.  */
14533  struct point {int x, y;};
14534  static struct point const zero = {0,0};
14535  /* AIX XL C 1.02.0.0 rejects this.
14536     It does not let you subtract one const X* pointer from another in
14537     an arm of an if-expression whose if-part is not a constant
14538     expression */
14539  const char *g = "string";
14540  pcpcc = &g + (g ? g-g : 0);
14541  /* HPUX 7.0 cc rejects these. */
14542  ++pcpcc;
14543  ppc = (char**) pcpcc;
14544  pcpcc = (char const *const *) ppc;
14545  { /* SCO 3.2v4 cc rejects this.  */
14546    char *t;
14547    char const *s = 0 ? (char *) 0 : (char const *) 0;
14548
14549    *t++ = 0;
14550    if (s) return 0;
14551  }
14552  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14553    int x[] = {25, 17};
14554    const int *foo = &x[0];
14555    ++foo;
14556  }
14557  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14558    typedef const int *iptr;
14559    iptr p = 0;
14560    ++p;
14561  }
14562  { /* AIX XL C 1.02.0.0 rejects this saying
14563       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14564    struct s { int j; const int *ap[3]; };
14565    struct s *b; b->j = 5;
14566  }
14567  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14568    const int foo = 10;
14569    if (!foo) return 0;
14570  }
14571  return !cs[0] && !zero.x;
14572#endif
14573
14574  ;
14575  return 0;
14576}
14577_ACEOF
14578if ac_fn_c_try_compile "$LINENO"; then :
14579  ac_cv_c_const=yes
14580else
14581  ac_cv_c_const=no
14582fi
14583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14584fi
14585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14586$as_echo "$ac_cv_c_const" >&6; }
14587if test $ac_cv_c_const = no; then
14588
14589$as_echo "#define const /**/" >>confdefs.h
14590
14591fi
14592
14593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14594$as_echo_n "checking for inline... " >&6; }
14595if test "${ac_cv_c_inline+set}" = set; then :
14596  $as_echo_n "(cached) " >&6
14597else
14598  ac_cv_c_inline=no
14599for ac_kw in inline __inline__ __inline; do
14600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601/* end confdefs.h.  */
14602#ifndef __cplusplus
14603typedef int foo_t;
14604static $ac_kw foo_t static_foo () {return 0; }
14605$ac_kw foo_t foo () {return 0; }
14606#endif
14607
14608_ACEOF
14609if ac_fn_c_try_compile "$LINENO"; then :
14610  ac_cv_c_inline=$ac_kw
14611fi
14612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14613  test "$ac_cv_c_inline" != no && break
14614done
14615
14616fi
14617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14618$as_echo "$ac_cv_c_inline" >&6; }
14619
14620case $ac_cv_c_inline in
14621  inline | yes) ;;
14622  *)
14623    case $ac_cv_c_inline in
14624      no) ac_val=;;
14625      *) ac_val=$ac_cv_c_inline;;
14626    esac
14627    cat >>confdefs.h <<_ACEOF
14628#ifndef __cplusplus
14629#define inline $ac_val
14630#endif
14631_ACEOF
14632    ;;
14633esac
14634
14635ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14636case $ac_cv_c_int32_t in #(
14637  no|yes) ;; #(
14638  *)
14639
14640cat >>confdefs.h <<_ACEOF
14641#define int32_t $ac_cv_c_int32_t
14642_ACEOF
14643;;
14644esac
14645
14646ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14647if test "x$ac_cv_type_pid_t" = x""yes; then :
14648
14649else
14650
14651cat >>confdefs.h <<_ACEOF
14652#define pid_t int
14653_ACEOF
14654
14655fi
14656
14657ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14658if test "x$ac_cv_type_ssize_t" = x""yes; then :
14659
14660else
14661
14662cat >>confdefs.h <<_ACEOF
14663#define ssize_t int
14664_ACEOF
14665
14666fi
14667
14668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14669$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14670if test "${ac_cv_type_uid_t+set}" = set; then :
14671  $as_echo_n "(cached) " >&6
14672else
14673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674/* end confdefs.h.  */
14675#include <sys/types.h>
14676
14677_ACEOF
14678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14679  $EGREP "uid_t" >/dev/null 2>&1; then :
14680  ac_cv_type_uid_t=yes
14681else
14682  ac_cv_type_uid_t=no
14683fi
14684rm -f conftest*
14685
14686fi
14687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14688$as_echo "$ac_cv_type_uid_t" >&6; }
14689if test $ac_cv_type_uid_t = no; then
14690
14691$as_echo "#define uid_t int" >>confdefs.h
14692
14693
14694$as_echo "#define gid_t int" >>confdefs.h
14695
14696fi
14697
14698ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14699case $ac_cv_c_uint16_t in #(
14700  no|yes) ;; #(
14701  *)
14702
14703
14704cat >>confdefs.h <<_ACEOF
14705#define uint16_t $ac_cv_c_uint16_t
14706_ACEOF
14707;;
14708  esac
14709
14710ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14711case $ac_cv_c_uint32_t in #(
14712  no|yes) ;; #(
14713  *)
14714
14715$as_echo "#define _UINT32_T 1" >>confdefs.h
14716
14717
14718cat >>confdefs.h <<_ACEOF
14719#define uint32_t $ac_cv_c_uint32_t
14720_ACEOF
14721;;
14722  esac
14723
14724ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14725case $ac_cv_c_uint64_t in #(
14726  no|yes) ;; #(
14727  *)
14728
14729$as_echo "#define _UINT64_T 1" >>confdefs.h
14730
14731
14732cat >>confdefs.h <<_ACEOF
14733#define uint64_t $ac_cv_c_uint64_t
14734_ACEOF
14735;;
14736  esac
14737
14738ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14739case $ac_cv_c_uint8_t in #(
14740  no|yes) ;; #(
14741  *)
14742
14743$as_echo "#define _UINT8_T 1" >>confdefs.h
14744
14745
14746cat >>confdefs.h <<_ACEOF
14747#define uint8_t $ac_cv_c_uint8_t
14748_ACEOF
14749;;
14750  esac
14751
14752ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14753if test "x$ac_cv_type_off_t" = x""yes; then :
14754
14755else
14756
14757cat >>confdefs.h <<_ACEOF
14758#define off_t long int
14759_ACEOF
14760
14761fi
14762
14763
14764ac_fn_c_check_type "$LINENO" "uchar uint uint8_t uint16_t uint32_t" "ac_cv_type_uchar_uint_uint8_t_uint16_t_uint32_t" "$ac_includes_default"
14765if test "x$ac_cv_type_uchar_uint_uint8_t_uint16_t_uint32_t" = x""yes; then :
14766
14767cat >>confdefs.h <<_ACEOF
14768#define HAVE_UCHAR_UINT_UINT8_T_UINT16_T_UINT32_T 1
14769_ACEOF
14770
14771
14772fi
14773
14774
14775## Library functions
14776for ac_header in stdlib.h
14777do :
14778  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14779if test "x$ac_cv_header_stdlib_h" = x""yes; then :
14780  cat >>confdefs.h <<_ACEOF
14781#define HAVE_STDLIB_H 1
14782_ACEOF
14783
14784fi
14785
14786done
14787
14788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14789$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14790if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
14791  $as_echo_n "(cached) " >&6
14792else
14793  if test "$cross_compiling" = yes; then :
14794  ac_cv_func_malloc_0_nonnull=no
14795else
14796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797/* end confdefs.h.  */
14798#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14799# include <stdlib.h>
14800#else
14801char *malloc ();
14802#endif
14803
14804int
14805main ()
14806{
14807return ! malloc (0);
14808  ;
14809  return 0;
14810}
14811_ACEOF
14812if ac_fn_c_try_run "$LINENO"; then :
14813  ac_cv_func_malloc_0_nonnull=yes
14814else
14815  ac_cv_func_malloc_0_nonnull=no
14816fi
14817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14818  conftest.$ac_objext conftest.beam conftest.$ac_ext
14819fi
14820
14821fi
14822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14823$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14824if test $ac_cv_func_malloc_0_nonnull = yes; then :
14825
14826$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14827
14828else
14829  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
14830
14831   case " $LIBOBJS " in
14832  *" malloc.$ac_objext "* ) ;;
14833  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14834 ;;
14835esac
14836
14837
14838$as_echo "#define malloc rpl_malloc" >>confdefs.h
14839
14840fi
14841
14842
14843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14844$as_echo_n "checking return type of signal handlers... " >&6; }
14845if test "${ac_cv_type_signal+set}" = set; then :
14846  $as_echo_n "(cached) " >&6
14847else
14848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849/* end confdefs.h.  */
14850#include <sys/types.h>
14851#include <signal.h>
14852
14853int
14854main ()
14855{
14856return *(signal (0, 0)) (0) == 1;
14857  ;
14858  return 0;
14859}
14860_ACEOF
14861if ac_fn_c_try_compile "$LINENO"; then :
14862  ac_cv_type_signal=int
14863else
14864  ac_cv_type_signal=void
14865fi
14866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867fi
14868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14869$as_echo "$ac_cv_type_signal" >&6; }
14870
14871cat >>confdefs.h <<_ACEOF
14872#define RETSIGTYPE $ac_cv_type_signal
14873_ACEOF
14874
14875
14876# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14877# for constant arguments.  Useless!
14878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14879$as_echo_n "checking for working alloca.h... " >&6; }
14880if test "${ac_cv_working_alloca_h+set}" = set; then :
14881  $as_echo_n "(cached) " >&6
14882else
14883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884/* end confdefs.h.  */
14885#include <alloca.h>
14886int
14887main ()
14888{
14889char *p = (char *) alloca (2 * sizeof (int));
14890			  if (p) return 0;
14891  ;
14892  return 0;
14893}
14894_ACEOF
14895if ac_fn_c_try_link "$LINENO"; then :
14896  ac_cv_working_alloca_h=yes
14897else
14898  ac_cv_working_alloca_h=no
14899fi
14900rm -f core conftest.err conftest.$ac_objext \
14901    conftest$ac_exeext conftest.$ac_ext
14902fi
14903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14904$as_echo "$ac_cv_working_alloca_h" >&6; }
14905if test $ac_cv_working_alloca_h = yes; then
14906
14907$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14908
14909fi
14910
14911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14912$as_echo_n "checking for alloca... " >&6; }
14913if test "${ac_cv_func_alloca_works+set}" = set; then :
14914  $as_echo_n "(cached) " >&6
14915else
14916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917/* end confdefs.h.  */
14918#ifdef __GNUC__
14919# define alloca __builtin_alloca
14920#else
14921# ifdef _MSC_VER
14922#  include <malloc.h>
14923#  define alloca _alloca
14924# else
14925#  ifdef HAVE_ALLOCA_H
14926#   include <alloca.h>
14927#  else
14928#   ifdef _AIX
14929 #pragma alloca
14930#   else
14931#    ifndef alloca /* predefined by HP cc +Olibcalls */
14932char *alloca ();
14933#    endif
14934#   endif
14935#  endif
14936# endif
14937#endif
14938
14939int
14940main ()
14941{
14942char *p = (char *) alloca (1);
14943				    if (p) return 0;
14944  ;
14945  return 0;
14946}
14947_ACEOF
14948if ac_fn_c_try_link "$LINENO"; then :
14949  ac_cv_func_alloca_works=yes
14950else
14951  ac_cv_func_alloca_works=no
14952fi
14953rm -f core conftest.err conftest.$ac_objext \
14954    conftest$ac_exeext conftest.$ac_ext
14955fi
14956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14957$as_echo "$ac_cv_func_alloca_works" >&6; }
14958
14959if test $ac_cv_func_alloca_works = yes; then
14960
14961$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14962
14963else
14964  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14965# that cause trouble.  Some versions do not even contain alloca or
14966# contain a buggy version.  If you still want to use their alloca,
14967# use ar to extract alloca.o from them instead of compiling alloca.c.
14968
14969ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14970
14971$as_echo "#define C_ALLOCA 1" >>confdefs.h
14972
14973
14974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14975$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14976if test "${ac_cv_os_cray+set}" = set; then :
14977  $as_echo_n "(cached) " >&6
14978else
14979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980/* end confdefs.h.  */
14981#if defined CRAY && ! defined CRAY2
14982webecray
14983#else
14984wenotbecray
14985#endif
14986
14987_ACEOF
14988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14989  $EGREP "webecray" >/dev/null 2>&1; then :
14990  ac_cv_os_cray=yes
14991else
14992  ac_cv_os_cray=no
14993fi
14994rm -f conftest*
14995
14996fi
14997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14998$as_echo "$ac_cv_os_cray" >&6; }
14999if test $ac_cv_os_cray = yes; then
15000  for ac_func in _getb67 GETB67 getb67; do
15001    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15002ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15003eval as_val=\$$as_ac_var
15004   if test "x$as_val" = x""yes; then :
15005
15006cat >>confdefs.h <<_ACEOF
15007#define CRAY_STACKSEG_END $ac_func
15008_ACEOF
15009
15010    break
15011fi
15012
15013  done
15014fi
15015
15016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15017$as_echo_n "checking stack direction for C alloca... " >&6; }
15018if test "${ac_cv_c_stack_direction+set}" = set; then :
15019  $as_echo_n "(cached) " >&6
15020else
15021  if test "$cross_compiling" = yes; then :
15022  ac_cv_c_stack_direction=0
15023else
15024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025/* end confdefs.h.  */
15026$ac_includes_default
15027int
15028find_stack_direction ()
15029{
15030  static char *addr = 0;
15031  auto char dummy;
15032  if (addr == 0)
15033    {
15034      addr = &dummy;
15035      return find_stack_direction ();
15036    }
15037  else
15038    return (&dummy > addr) ? 1 : -1;
15039}
15040
15041int
15042main ()
15043{
15044  return find_stack_direction () < 0;
15045}
15046_ACEOF
15047if ac_fn_c_try_run "$LINENO"; then :
15048  ac_cv_c_stack_direction=1
15049else
15050  ac_cv_c_stack_direction=-1
15051fi
15052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15053  conftest.$ac_objext conftest.beam conftest.$ac_ext
15054fi
15055
15056fi
15057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15058$as_echo "$ac_cv_c_stack_direction" >&6; }
15059cat >>confdefs.h <<_ACEOF
15060#define STACK_DIRECTION $ac_cv_c_stack_direction
15061_ACEOF
15062
15063
15064fi
15065
15066for ac_header in stdlib.h
15067do :
15068  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15069if test "x$ac_cv_header_stdlib_h" = x""yes; then :
15070  cat >>confdefs.h <<_ACEOF
15071#define HAVE_STDLIB_H 1
15072_ACEOF
15073
15074fi
15075
15076done
15077
15078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
15079$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
15080if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
15081  $as_echo_n "(cached) " >&6
15082else
15083  if test "$cross_compiling" = yes; then :
15084  ac_cv_func_realloc_0_nonnull=no
15085else
15086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087/* end confdefs.h.  */
15088#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15089# include <stdlib.h>
15090#else
15091char *realloc ();
15092#endif
15093
15094int
15095main ()
15096{
15097return ! realloc (0, 0);
15098  ;
15099  return 0;
15100}
15101_ACEOF
15102if ac_fn_c_try_run "$LINENO"; then :
15103  ac_cv_func_realloc_0_nonnull=yes
15104else
15105  ac_cv_func_realloc_0_nonnull=no
15106fi
15107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15108  conftest.$ac_objext conftest.beam conftest.$ac_ext
15109fi
15110
15111fi
15112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
15113$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15114if test $ac_cv_func_realloc_0_nonnull = yes; then :
15115
15116$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
15117
15118else
15119  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
15120
15121   case " $LIBOBJS " in
15122  *" realloc.$ac_objext "* ) ;;
15123  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
15124 ;;
15125esac
15126
15127
15128$as_echo "#define realloc rpl_realloc" >>confdefs.h
15129
15130fi
15131
15132
15133for ac_header in unistd.h
15134do :
15135  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15136if test "x$ac_cv_header_unistd_h" = x""yes; then :
15137  cat >>confdefs.h <<_ACEOF
15138#define HAVE_UNISTD_H 1
15139_ACEOF
15140
15141fi
15142
15143done
15144
15145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15146$as_echo_n "checking for working chown... " >&6; }
15147if test "${ac_cv_func_chown_works+set}" = set; then :
15148  $as_echo_n "(cached) " >&6
15149else
15150  if test "$cross_compiling" = yes; then :
15151  ac_cv_func_chown_works=no
15152else
15153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154/* end confdefs.h.  */
15155$ac_includes_default
15156#include <fcntl.h>
15157
15158int
15159main ()
15160{
15161  char *f = "conftest.chown";
15162  struct stat before, after;
15163
15164  if (creat (f, 0600) < 0)
15165    return 1;
15166  if (stat (f, &before) < 0)
15167    return 1;
15168  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15169    return 1;
15170  if (stat (f, &after) < 0)
15171    return 1;
15172  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15173
15174  ;
15175  return 0;
15176}
15177_ACEOF
15178if ac_fn_c_try_run "$LINENO"; then :
15179  ac_cv_func_chown_works=yes
15180else
15181  ac_cv_func_chown_works=no
15182fi
15183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15184  conftest.$ac_objext conftest.beam conftest.$ac_ext
15185fi
15186
15187rm -f conftest.chown
15188
15189fi
15190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15191$as_echo "$ac_cv_func_chown_works" >&6; }
15192if test $ac_cv_func_chown_works = yes; then
15193
15194$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15195
15196fi
15197
15198for ac_header in vfork.h
15199do :
15200  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15201if test "x$ac_cv_header_vfork_h" = x""yes; then :
15202  cat >>confdefs.h <<_ACEOF
15203#define HAVE_VFORK_H 1
15204_ACEOF
15205
15206fi
15207
15208done
15209
15210for ac_func in fork vfork
15211do :
15212  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15213ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15214eval as_val=\$$as_ac_var
15215   if test "x$as_val" = x""yes; then :
15216  cat >>confdefs.h <<_ACEOF
15217#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15218_ACEOF
15219
15220fi
15221done
15222
15223if test "x$ac_cv_func_fork" = xyes; then
15224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15225$as_echo_n "checking for working fork... " >&6; }
15226if test "${ac_cv_func_fork_works+set}" = set; then :
15227  $as_echo_n "(cached) " >&6
15228else
15229  if test "$cross_compiling" = yes; then :
15230  ac_cv_func_fork_works=cross
15231else
15232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233/* end confdefs.h.  */
15234$ac_includes_default
15235int
15236main ()
15237{
15238
15239	  /* By Ruediger Kuhlmann. */
15240	  return fork () < 0;
15241
15242  ;
15243  return 0;
15244}
15245_ACEOF
15246if ac_fn_c_try_run "$LINENO"; then :
15247  ac_cv_func_fork_works=yes
15248else
15249  ac_cv_func_fork_works=no
15250fi
15251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15252  conftest.$ac_objext conftest.beam conftest.$ac_ext
15253fi
15254
15255fi
15256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15257$as_echo "$ac_cv_func_fork_works" >&6; }
15258
15259else
15260  ac_cv_func_fork_works=$ac_cv_func_fork
15261fi
15262if test "x$ac_cv_func_fork_works" = xcross; then
15263  case $host in
15264    *-*-amigaos* | *-*-msdosdjgpp*)
15265      # Override, as these systems have only a dummy fork() stub
15266      ac_cv_func_fork_works=no
15267      ;;
15268    *)
15269      ac_cv_func_fork_works=yes
15270      ;;
15271  esac
15272  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15273$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15274fi
15275ac_cv_func_vfork_works=$ac_cv_func_vfork
15276if test "x$ac_cv_func_vfork" = xyes; then
15277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15278$as_echo_n "checking for working vfork... " >&6; }
15279if test "${ac_cv_func_vfork_works+set}" = set; then :
15280  $as_echo_n "(cached) " >&6
15281else
15282  if test "$cross_compiling" = yes; then :
15283  ac_cv_func_vfork_works=cross
15284else
15285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286/* end confdefs.h.  */
15287/* Thanks to Paul Eggert for this test.  */
15288$ac_includes_default
15289#include <sys/wait.h>
15290#ifdef HAVE_VFORK_H
15291# include <vfork.h>
15292#endif
15293/* On some sparc systems, changes by the child to local and incoming
15294   argument registers are propagated back to the parent.  The compiler
15295   is told about this with #include <vfork.h>, but some compilers
15296   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15297   static variable whose address is put into a register that is
15298   clobbered by the vfork.  */
15299static void
15300#ifdef __cplusplus
15301sparc_address_test (int arg)
15302# else
15303sparc_address_test (arg) int arg;
15304#endif
15305{
15306  static pid_t child;
15307  if (!child) {
15308    child = vfork ();
15309    if (child < 0) {
15310      perror ("vfork");
15311      _exit(2);
15312    }
15313    if (!child) {
15314      arg = getpid();
15315      write(-1, "", 0);
15316      _exit (arg);
15317    }
15318  }
15319}
15320
15321int
15322main ()
15323{
15324  pid_t parent = getpid ();
15325  pid_t child;
15326
15327  sparc_address_test (0);
15328
15329  child = vfork ();
15330
15331  if (child == 0) {
15332    /* Here is another test for sparc vfork register problems.  This
15333       test uses lots of local variables, at least as many local
15334       variables as main has allocated so far including compiler
15335       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15336       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15337       reuse the register of parent for one of the local variables,
15338       since it will think that parent can't possibly be used any more
15339       in this routine.  Assigning to the local variable will thus
15340       munge parent in the parent process.  */
15341    pid_t
15342      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15343      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15344    /* Convince the compiler that p..p7 are live; otherwise, it might
15345       use the same hardware register for all 8 local variables.  */
15346    if (p != p1 || p != p2 || p != p3 || p != p4
15347	|| p != p5 || p != p6 || p != p7)
15348      _exit(1);
15349
15350    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15351       from child file descriptors.  If the child closes a descriptor
15352       before it execs or exits, this munges the parent's descriptor
15353       as well.  Test for this by closing stdout in the child.  */
15354    _exit(close(fileno(stdout)) != 0);
15355  } else {
15356    int status;
15357    struct stat st;
15358
15359    while (wait(&status) != child)
15360      ;
15361    return (
15362	 /* Was there some problem with vforking?  */
15363	 child < 0
15364
15365	 /* Did the child fail?  (This shouldn't happen.)  */
15366	 || status
15367
15368	 /* Did the vfork/compiler bug occur?  */
15369	 || parent != getpid()
15370
15371	 /* Did the file descriptor bug occur?  */
15372	 || fstat(fileno(stdout), &st) != 0
15373	 );
15374  }
15375}
15376_ACEOF
15377if ac_fn_c_try_run "$LINENO"; then :
15378  ac_cv_func_vfork_works=yes
15379else
15380  ac_cv_func_vfork_works=no
15381fi
15382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15383  conftest.$ac_objext conftest.beam conftest.$ac_ext
15384fi
15385
15386fi
15387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15388$as_echo "$ac_cv_func_vfork_works" >&6; }
15389
15390fi;
15391if test "x$ac_cv_func_fork_works" = xcross; then
15392  ac_cv_func_vfork_works=$ac_cv_func_vfork
15393  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15394$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15395fi
15396
15397if test "x$ac_cv_func_vfork_works" = xyes; then
15398
15399$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15400
15401else
15402
15403$as_echo "#define vfork fork" >>confdefs.h
15404
15405fi
15406if test "x$ac_cv_func_fork_works" = xyes; then
15407
15408$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15409
15410fi
15411
15412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
15413$as_echo_n "checking for working strcoll... " >&6; }
15414if test "${ac_cv_func_strcoll_works+set}" = set; then :
15415  $as_echo_n "(cached) " >&6
15416else
15417  if test "$cross_compiling" = yes; then :
15418  ac_cv_func_strcoll_works=no
15419else
15420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421/* end confdefs.h.  */
15422$ac_includes_default
15423int
15424main ()
15425{
15426return (strcoll ("abc", "def") >= 0 ||
15427	 strcoll ("ABC", "DEF") >= 0 ||
15428	 strcoll ("123", "456") >= 0)
15429  ;
15430  return 0;
15431}
15432_ACEOF
15433if ac_fn_c_try_run "$LINENO"; then :
15434  ac_cv_func_strcoll_works=yes
15435else
15436  ac_cv_func_strcoll_works=no
15437fi
15438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15439  conftest.$ac_objext conftest.beam conftest.$ac_ext
15440fi
15441
15442fi
15443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
15444$as_echo "$ac_cv_func_strcoll_works" >&6; }
15445if test $ac_cv_func_strcoll_works = yes; then
15446
15447$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
15448
15449fi
15450
15451for ac_func in memset getpwuid shutdown inet_pton strsep strndup strdup strncmp
15452do :
15453  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15454ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15455eval as_val=\$$as_ac_var
15456   if test "x$as_val" = x""yes; then :
15457  cat >>confdefs.h <<_ACEOF
15458#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15459_ACEOF
15460
15461fi
15462done
15463
15464for ac_func in select poll
15465do :
15466  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15467ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15468eval as_val=\$$as_ac_var
15469   if test "x$as_val" = x""yes; then :
15470  cat >>confdefs.h <<_ACEOF
15471#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15472_ACEOF
15473
15474fi
15475done
15476
15477for ac_func in getaddrinfo getnameinfo
15478do :
15479  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15480ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15481eval as_val=\$$as_ac_var
15482   if test "x$as_val" = x""yes; then :
15483  cat >>confdefs.h <<_ACEOF
15484#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15485_ACEOF
15486
15487fi
15488done
15489
15490for ac_func in alarm
15491do :
15492  ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
15493if test "x$ac_cv_func_alarm" = x""yes; then :
15494  cat >>confdefs.h <<_ACEOF
15495#define HAVE_ALARM 1
15496_ACEOF
15497
15498fi
15499done
15500
15501for ac_func in gethostbyname
15502do :
15503  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15504if test "x$ac_cv_func_gethostbyname" = x""yes; then :
15505  cat >>confdefs.h <<_ACEOF
15506#define HAVE_GETHOSTBYNAME 1
15507_ACEOF
15508
15509fi
15510done
15511
15512for ac_func in gethostname
15513do :
15514  ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
15515if test "x$ac_cv_func_gethostname" = x""yes; then :
15516  cat >>confdefs.h <<_ACEOF
15517#define HAVE_GETHOSTNAME 1
15518_ACEOF
15519
15520fi
15521done
15522
15523for ac_func in gettimeofday
15524do :
15525  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15526if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15527  cat >>confdefs.h <<_ACEOF
15528#define HAVE_GETTIMEOFDAY 1
15529_ACEOF
15530
15531fi
15532done
15533
15534for ac_func in inet_ntoa
15535do :
15536  ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
15537if test "x$ac_cv_func_inet_ntoa" = x""yes; then :
15538  cat >>confdefs.h <<_ACEOF
15539#define HAVE_INET_NTOA 1
15540_ACEOF
15541
15542fi
15543done
15544
15545for ac_func in memchr
15546do :
15547  ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
15548if test "x$ac_cv_func_memchr" = x""yes; then :
15549  cat >>confdefs.h <<_ACEOF
15550#define HAVE_MEMCHR 1
15551_ACEOF
15552
15553fi
15554done
15555
15556for ac_func in memmove
15557do :
15558  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
15559if test "x$ac_cv_func_memmove" = x""yes; then :
15560  cat >>confdefs.h <<_ACEOF
15561#define HAVE_MEMMOVE 1
15562_ACEOF
15563
15564fi
15565done
15566
15567for ac_func in mkdir
15568do :
15569  ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
15570if test "x$ac_cv_func_mkdir" = x""yes; then :
15571  cat >>confdefs.h <<_ACEOF
15572#define HAVE_MKDIR 1
15573_ACEOF
15574
15575fi
15576done
15577
15578for ac_func in nl_langinfo
15579do :
15580  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
15581if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
15582  cat >>confdefs.h <<_ACEOF
15583#define HAVE_NL_LANGINFO 1
15584_ACEOF
15585
15586fi
15587done
15588
15589for ac_func in socket
15590do :
15591  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15592if test "x$ac_cv_func_socket" = x""yes; then :
15593  cat >>confdefs.h <<_ACEOF
15594#define HAVE_SOCKET 1
15595_ACEOF
15596
15597fi
15598done
15599
15600for ac_func in strchr
15601do :
15602  ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15603if test "x$ac_cv_func_strchr" = x""yes; then :
15604  cat >>confdefs.h <<_ACEOF
15605#define HAVE_STRCHR 1
15606_ACEOF
15607
15608fi
15609done
15610
15611for ac_func in strcspn
15612do :
15613  ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
15614if test "x$ac_cv_func_strcspn" = x""yes; then :
15615  cat >>confdefs.h <<_ACEOF
15616#define HAVE_STRCSPN 1
15617_ACEOF
15618
15619fi
15620done
15621
15622for ac_func in strerror
15623do :
15624  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
15625if test "x$ac_cv_func_strerror" = x""yes; then :
15626  cat >>confdefs.h <<_ACEOF
15627#define HAVE_STRERROR 1
15628_ACEOF
15629
15630fi
15631done
15632
15633for ac_func in strncasecmp
15634do :
15635  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
15636if test "x$ac_cv_func_strncasecmp" = x""yes; then :
15637  cat >>confdefs.h <<_ACEOF
15638#define HAVE_STRNCASECMP 1
15639_ACEOF
15640
15641fi
15642done
15643
15644for ac_func in strpbrk
15645do :
15646  ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
15647if test "x$ac_cv_func_strpbrk" = x""yes; then :
15648  cat >>confdefs.h <<_ACEOF
15649#define HAVE_STRPBRK 1
15650_ACEOF
15651
15652fi
15653done
15654
15655for ac_func in strrchr
15656do :
15657  ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15658if test "x$ac_cv_func_strrchr" = x""yes; then :
15659  cat >>confdefs.h <<_ACEOF
15660#define HAVE_STRRCHR 1
15661_ACEOF
15662
15663fi
15664done
15665
15666for ac_func in strstr
15667do :
15668  ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
15669if test "x$ac_cv_func_strstr" = x""yes; then :
15670  cat >>confdefs.h <<_ACEOF
15671#define HAVE_STRSTR 1
15672_ACEOF
15673
15674fi
15675done
15676
15677for ac_func in strtol
15678do :
15679  ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
15680if test "x$ac_cv_func_strtol" = x""yes; then :
15681  cat >>confdefs.h <<_ACEOF
15682#define HAVE_STRTOL 1
15683_ACEOF
15684
15685fi
15686done
15687
15688
15689
15690ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
15691if test "x$ac_cv_func_inet_ntop" = x""yes; then :
15692
15693$as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
15694
15695else
15696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lnsl" >&5
15697$as_echo_n "checking for inet_ntop in -lnsl... " >&6; }
15698if test "${ac_cv_lib_nsl_inet_ntop+set}" = set; then :
15699  $as_echo_n "(cached) " >&6
15700else
15701  ac_check_lib_save_LIBS=$LIBS
15702LIBS="-lnsl  $LIBS"
15703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15704/* end confdefs.h.  */
15705
15706/* Override any GCC internal prototype to avoid an error.
15707   Use char because int might match the return type of a GCC
15708   builtin and then its argument prototype would still apply.  */
15709#ifdef __cplusplus
15710extern "C"
15711#endif
15712char inet_ntop ();
15713int
15714main ()
15715{
15716return inet_ntop ();
15717  ;
15718  return 0;
15719}
15720_ACEOF
15721if ac_fn_c_try_link "$LINENO"; then :
15722  ac_cv_lib_nsl_inet_ntop=yes
15723else
15724  ac_cv_lib_nsl_inet_ntop=no
15725fi
15726rm -f core conftest.err conftest.$ac_objext \
15727    conftest$ac_exeext conftest.$ac_ext
15728LIBS=$ac_check_lib_save_LIBS
15729fi
15730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntop" >&5
15731$as_echo "$ac_cv_lib_nsl_inet_ntop" >&6; }
15732if test "x$ac_cv_lib_nsl_inet_ntop" = x""yes; then :
15733
15734$as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
15735
15736fi
15737
15738fi
15739
15740
15741
15742		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15743$as_echo_n "checking for socket in -lsocket... " >&6; }
15744if test "${ac_cv_lib_socket_socket+set}" = set; then :
15745  $as_echo_n "(cached) " >&6
15746else
15747  ac_check_lib_save_LIBS=$LIBS
15748LIBS="-lsocket  $LIBS"
15749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750/* end confdefs.h.  */
15751
15752/* Override any GCC internal prototype to avoid an error.
15753   Use char because int might match the return type of a GCC
15754   builtin and then its argument prototype would still apply.  */
15755#ifdef __cplusplus
15756extern "C"
15757#endif
15758char socket ();
15759int
15760main ()
15761{
15762return socket ();
15763  ;
15764  return 0;
15765}
15766_ACEOF
15767if ac_fn_c_try_link "$LINENO"; then :
15768  ac_cv_lib_socket_socket=yes
15769else
15770  ac_cv_lib_socket_socket=no
15771fi
15772rm -f core conftest.err conftest.$ac_objext \
15773    conftest$ac_exeext conftest.$ac_ext
15774LIBS=$ac_check_lib_save_LIBS
15775fi
15776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15777$as_echo "$ac_cv_lib_socket_socket" >&6; }
15778if test "x$ac_cv_lib_socket_socket" = x""yes; then :
15779  ac_mydns_need_libsocket=yes
15780else
15781  ac_mydns_need_libsocket=no
15782fi
15783
15784		test "$ac_mydns_need_libsocket" = yes && LIBSOCKET="-lsocket"
15785
15786
15787
15788
15789		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
15790$as_echo_n "checking for inet_addr in -lnsl... " >&6; }
15791if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
15792  $as_echo_n "(cached) " >&6
15793else
15794  ac_check_lib_save_LIBS=$LIBS
15795LIBS="-lnsl  $LIBS"
15796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797/* end confdefs.h.  */
15798
15799/* Override any GCC internal prototype to avoid an error.
15800   Use char because int might match the return type of a GCC
15801   builtin and then its argument prototype would still apply.  */
15802#ifdef __cplusplus
15803extern "C"
15804#endif
15805char inet_addr ();
15806int
15807main ()
15808{
15809return inet_addr ();
15810  ;
15811  return 0;
15812}
15813_ACEOF
15814if ac_fn_c_try_link "$LINENO"; then :
15815  ac_cv_lib_nsl_inet_addr=yes
15816else
15817  ac_cv_lib_nsl_inet_addr=no
15818fi
15819rm -f core conftest.err conftest.$ac_objext \
15820    conftest$ac_exeext conftest.$ac_ext
15821LIBS=$ac_check_lib_save_LIBS
15822fi
15823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
15824$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
15825if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
15826  ac_mydns_need_libnsl=yes
15827else
15828  ac_mydns_need_libnsl=no
15829fi
15830
15831		test "$ac_mydns_need_libnsl" = yes && LIBNSL="-lnsl"
15832
15833
15834
15835
15836		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
15837$as_echo_n "checking for floor in -lm... " >&6; }
15838if test "${ac_cv_lib_m_floor+set}" = set; then :
15839  $as_echo_n "(cached) " >&6
15840else
15841  ac_check_lib_save_LIBS=$LIBS
15842LIBS="-lm  $LIBS"
15843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844/* end confdefs.h.  */
15845
15846/* Override any GCC internal prototype to avoid an error.
15847   Use char because int might match the return type of a GCC
15848   builtin and then its argument prototype would still apply.  */
15849#ifdef __cplusplus
15850extern "C"
15851#endif
15852char floor ();
15853int
15854main ()
15855{
15856return floor ();
15857  ;
15858  return 0;
15859}
15860_ACEOF
15861if ac_fn_c_try_link "$LINENO"; then :
15862  ac_cv_lib_m_floor=yes
15863else
15864  ac_cv_lib_m_floor=no
15865fi
15866rm -f core conftest.err conftest.$ac_objext \
15867    conftest$ac_exeext conftest.$ac_ext
15868LIBS=$ac_check_lib_save_LIBS
15869fi
15870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
15871$as_echo "$ac_cv_lib_m_floor" >&6; }
15872if test "x$ac_cv_lib_m_floor" = x""yes; then :
15873  ac_mydns_need_libm=yes
15874else
15875  ac_mydns_need_libm=no
15876fi
15877
15878		test "$ac_mydns_need_libm" = yes && LIBM="-lm"
15879
15880
15881
15882
15883## Declarations
15884ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default"
15885if test "x$ac_cv_have_decl_strcasecmp" = x""yes; then :
15886  ac_have_decl=1
15887else
15888  ac_have_decl=0
15889fi
15890
15891cat >>confdefs.h <<_ACEOF
15892#define HAVE_DECL_STRCASECMP $ac_have_decl
15893_ACEOF
15894ac_fn_c_check_decl "$LINENO" "strcoll" "ac_cv_have_decl_strcoll" "$ac_includes_default"
15895if test "x$ac_cv_have_decl_strcoll" = x""yes; then :
15896  ac_have_decl=1
15897else
15898  ac_have_decl=0
15899fi
15900
15901cat >>confdefs.h <<_ACEOF
15902#define HAVE_DECL_STRCOLL $ac_have_decl
15903_ACEOF
15904ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
15905if test "x$ac_cv_have_decl_strerror" = x""yes; then :
15906  ac_have_decl=1
15907else
15908  ac_have_decl=0
15909fi
15910
15911cat >>confdefs.h <<_ACEOF
15912#define HAVE_DECL_STRERROR $ac_have_decl
15913_ACEOF
15914ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
15915if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then :
15916  ac_have_decl=1
15917else
15918  ac_have_decl=0
15919fi
15920
15921cat >>confdefs.h <<_ACEOF
15922#define HAVE_DECL_STRNCASECMP $ac_have_decl
15923_ACEOF
15924ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default"
15925if test "x$ac_cv_have_decl_strsep" = x""yes; then :
15926  ac_have_decl=1
15927else
15928  ac_have_decl=0
15929fi
15930
15931cat >>confdefs.h <<_ACEOF
15932#define HAVE_DECL_STRSEP $ac_have_decl
15933_ACEOF
15934ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
15935if test "x$ac_cv_have_decl_strndup" = x""yes; then :
15936  ac_have_decl=1
15937else
15938  ac_have_decl=0
15939fi
15940
15941cat >>confdefs.h <<_ACEOF
15942#define HAVE_DECL_STRNDUP $ac_have_decl
15943_ACEOF
15944ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
15945if test "x$ac_cv_have_decl_strdup" = x""yes; then :
15946  ac_have_decl=1
15947else
15948  ac_have_decl=0
15949fi
15950
15951cat >>confdefs.h <<_ACEOF
15952#define HAVE_DECL_STRDUP $ac_have_decl
15953_ACEOF
15954ac_fn_c_check_decl "$LINENO" "strncmp" "ac_cv_have_decl_strncmp" "$ac_includes_default"
15955if test "x$ac_cv_have_decl_strncmp" = x""yes; then :
15956  ac_have_decl=1
15957else
15958  ac_have_decl=0
15959fi
15960
15961cat >>confdefs.h <<_ACEOF
15962#define HAVE_DECL_STRNCMP $ac_have_decl
15963_ACEOF
15964
15965ac_fn_c_check_decl "$LINENO" "poll" "ac_cv_have_decl_poll" "$ac_includes_default"
15966if test "x$ac_cv_have_decl_poll" = x""yes; then :
15967  ac_have_decl=1
15968else
15969  ac_have_decl=0
15970fi
15971
15972cat >>confdefs.h <<_ACEOF
15973#define HAVE_DECL_POLL $ac_have_decl
15974_ACEOF
15975ac_fn_c_check_decl "$LINENO" "select" "ac_cv_have_decl_select" "$ac_includes_default"
15976if test "x$ac_cv_have_decl_select" = x""yes; then :
15977  ac_have_decl=1
15978else
15979  ac_have_decl=0
15980fi
15981
15982cat >>confdefs.h <<_ACEOF
15983#define HAVE_DECL_SELECT $ac_have_decl
15984_ACEOF
15985
15986
15987
15988##
15989## Package-specific variables
15990##
15991PACKAGE_HOMEPAGE="http://mydns.bboy.net"
15992PACKAGE_COPYRIGHT="Copyright (C) 2002-2005 Don Moore  2007-2008 Howard Wilkinson"
15993PACKAGE_AUTHOR="Don Moore <bboy@bboy.net>  Howard Wilkinson <howard@cohtech.com>"
15994
15995
15996##
15997## Some MyDNS-specific checks (see m4/mydns.m4)
15998##
15999
16000		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is supported" >&5
16001$as_echo_n "checking whether IPv6 is supported... " >&6; }
16002		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003/* end confdefs.h.  */
16004#include <netinet/in.h>
16005int
16006main ()
16007{
16008struct in6_addr addr; memset(&addr,0,sizeof(struct in6_addr));
16009  ;
16010  return 0;
16011}
16012_ACEOF
16013if ac_fn_c_try_compile "$LINENO"; then :
16014
16015$as_echo "#define HAVE_IPV6 1" >>confdefs.h
16016
16017				  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16018$as_echo "yes" >&6; }
16019else
16020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16021$as_echo "no" >&6; }
16022fi
16023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024
16025			#	Check IPv6 support
16026
16027		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5
16028$as_echo_n "checking for sa_len in struct sockaddr... " >&6; }
16029		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16030/* end confdefs.h.  */
16031
16032#if HAVE_SYS_TYPES_H
16033#	include <sys/types.h>
16034#endif
16035
16036#if HAVE_SYS_SOCKET_H
16037#	include <sys/socket.h>
16038#endif
16039
16040int
16041main ()
16042{
16043void *p = &((struct sockaddr *)0L)->sa_len;
16044  ;
16045  return 0;
16046}
16047_ACEOF
16048if ac_fn_c_try_compile "$LINENO"; then :
16049
16050$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
16051
16052		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16053$as_echo "yes" >&6; }
16054else
16055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16056$as_echo "no" >&6; }
16057fi
16058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16059
16060	#	Check for sa_len in struct sockaddr_in
16061
16062		PACKAGE_DATE=`date +"%b %Y"`
16063		PACKAGE_RELEASE_DATE=`date +"%B %d, %Y"`
16064
16065
16066
16067cat >>confdefs.h <<_ACEOF
16068#define PACKAGE_DATE "$PACKAGE_DATE"
16069_ACEOF
16070
16071
16072
16073
16074cat >>confdefs.h <<_ACEOF
16075#define PACKAGE_RELEASE_DATE "$PACKAGE_RELEASE_DATE"
16076_ACEOF
16077
16078
16079
16080
16081cat >>confdefs.h <<_ACEOF
16082#define PACKAGE_HOMEPAGE "$PACKAGE_HOMEPAGE"
16083_ACEOF
16084
16085
16086
16087
16088cat >>confdefs.h <<_ACEOF
16089#define PACKAGE_COPYRIGHT "$PACKAGE_COPYRIGHT"
16090_ACEOF
16091
16092
16093		COPYRIGHT_HOLDER=$PACKAGE_COPYRIGHT
16094
16095
16096
16097
16098cat >>confdefs.h <<_ACEOF
16099#define PACKAGE_AUTHOR "$PACKAGE_AUTHOR"
16100_ACEOF
16101
16102
16103		#	Set some package-specific variables
16104
16105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable alias patch" >&5
16106$as_echo_n "checking whether to enable alias patch... " >&6; }
16107		# Check whether --enable-alias was given.
16108if test "${enable_alias+set}" = set; then :
16109  enableval=$enable_alias;
16110				if test "$enableval" = yes
16111				then
16112
16113$as_echo "#define ALIAS_ENABLED 1" >>confdefs.h
16114
16115					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16116$as_echo "yes" >&6; }
16117				else
16118					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16119$as_echo "no" >&6; }
16120				fi
16121
16122else
16123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16124$as_echo "no" >&6; }
16125fi
16126
16127
16128			#	Enable David Phillips aliasing?
16129
16130		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MySQL" >&5
16131$as_echo_n "checking whether to support MySQL... " >&6; }
16132
16133# Check whether --with-mysql was given.
16134if test "${with_mysql+set}" = set; then :
16135  withval=$with_mysql;
16136				if test "$withval" = no
16137				then
16138					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16139$as_echo "no" >&6; }
16140				else
16141					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16142$as_echo "yes" >&6; }
16143
16144		libmysqlclient_dirs="/usr/local/mysql/lib /usr/local/lib/mysql /usr/local/lib /usr/lib/mysql /usr/lib /lib"
16145
16146# Check whether --with-mysql-lib was given.
16147if test "${with_mysql_lib+set}" = set; then :
16148  withval=$with_mysql_lib; libmysqlclient_dirs="$withval $libmysqlclient_dirs"
16149fi
16150
16151		libmysqlclient_found=no, libmysqlclient_ok=no
16152		for libmysqlclient_dir in $libmysqlclient_dirs; do
16153			if test "$libmysqlclient_found" != yes; then
16154				as_ac_File=`$as_echo "ac_cv_file_$libmysqlclient_dir/libmysqlclient_r.so" | $as_tr_sh`
16155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $libmysqlclient_dir/libmysqlclient_r.so" >&5
16156$as_echo_n "checking for $libmysqlclient_dir/libmysqlclient_r.so... " >&6; }
16157if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16158  $as_echo_n "(cached) " >&6
16159else
16160  test "$cross_compiling" = yes &&
16161  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16162if test -r "$libmysqlclient_dir/libmysqlclient_r.so"; then
16163  eval "$as_ac_File=yes"
16164else
16165  eval "$as_ac_File=no"
16166fi
16167fi
16168eval ac_res=\$$as_ac_File
16169	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16170$as_echo "$ac_res" >&6; }
16171eval as_val=\$$as_ac_File
16172   if test "x$as_val" = x""yes; then :
16173  libmysqlclient_found=yes
16174else
16175  libmysqlclient_found=no
16176fi
16177
16178				if test "$libmysqlclient_found" != yes; then
16179					as_ac_File=`$as_echo "ac_cv_file_$libmysqlclient_dir/libmysqlclient.so" | $as_tr_sh`
16180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $libmysqlclient_dir/libmysqlclient.so" >&5
16181$as_echo_n "checking for $libmysqlclient_dir/libmysqlclient.so... " >&6; }
16182if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16183  $as_echo_n "(cached) " >&6
16184else
16185  test "$cross_compiling" = yes &&
16186  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16187if test -r "$libmysqlclient_dir/libmysqlclient.so"; then
16188  eval "$as_ac_File=yes"
16189else
16190  eval "$as_ac_File=no"
16191fi
16192fi
16193eval ac_res=\$$as_ac_File
16194	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16195$as_echo "$ac_res" >&6; }
16196eval as_val=\$$as_ac_File
16197   if test "x$as_val" = x""yes; then :
16198  libmysqlclient_found=yes
16199else
16200  libmysqlclient_found=no
16201fi
16202
16203				fi
16204				if test "$libmysqlclient_found" != yes; then
16205					as_ac_File=`$as_echo "ac_cv_file_$libmysqlclient_dir/libmysqlclient.a" | $as_tr_sh`
16206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $libmysqlclient_dir/libmysqlclient.a" >&5
16207$as_echo_n "checking for $libmysqlclient_dir/libmysqlclient.a... " >&6; }
16208if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16209  $as_echo_n "(cached) " >&6
16210else
16211  test "$cross_compiling" = yes &&
16212  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16213if test -r "$libmysqlclient_dir/libmysqlclient.a"; then
16214  eval "$as_ac_File=yes"
16215else
16216  eval "$as_ac_File=no"
16217fi
16218fi
16219eval ac_res=\$$as_ac_File
16220	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16221$as_echo "$ac_res" >&6; }
16222eval as_val=\$$as_ac_File
16223   if test "x$as_val" = x""yes; then :
16224  libmysqlclient_found=yes
16225else
16226  libmysqlclient_found=no
16227fi
16228
16229				fi
16230				if test "$libmysqlclient_found" = yes; then
16231					## libmysqlclient depends on libz
16232					if ! test -n "$LIBZ"; then
16233
16234		ac_zlib_dirs="/lib /usr/lib /usr/local/lib"
16235
16236# Check whether --with-zlib was given.
16237if test "${with_zlib+set}" = set; then :
16238  withval=$with_zlib; ac_zlib_dirs="$withval $ac_zlib_dirs"
16239fi
16240
16241		ac_zlib_found=no, ac_zlib_ok=no
16242		for dir in $ac_zlib_dirs
16243		do
16244			if test "$ac_zlib_found" != yes
16245			then
16246				as_ac_File=`$as_echo "ac_cv_file_$dir/libz.so" | $as_tr_sh`
16247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/libz.so" >&5
16248$as_echo_n "checking for $dir/libz.so... " >&6; }
16249if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16250  $as_echo_n "(cached) " >&6
16251else
16252  test "$cross_compiling" = yes &&
16253  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16254if test -r "$dir/libz.so"; then
16255  eval "$as_ac_File=yes"
16256else
16257  eval "$as_ac_File=no"
16258fi
16259fi
16260eval ac_res=\$$as_ac_File
16261	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16262$as_echo "$ac_res" >&6; }
16263eval as_val=\$$as_ac_File
16264   if test "x$as_val" = x""yes; then :
16265  ac_zlib_found=yes
16266else
16267  ac_zlib_found=no
16268fi
16269
16270				if test "$ac_zlib_found" = yes
16271				then
16272					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
16273$as_echo_n "checking for deflate in -lz... " >&6; }
16274if test "${ac_cv_lib_z_deflate+set}" = set; then :
16275  $as_echo_n "(cached) " >&6
16276else
16277  ac_check_lib_save_LIBS=$LIBS
16278LIBS="-lz  $LIBS"
16279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280/* end confdefs.h.  */
16281
16282/* Override any GCC internal prototype to avoid an error.
16283   Use char because int might match the return type of a GCC
16284   builtin and then its argument prototype would still apply.  */
16285#ifdef __cplusplus
16286extern "C"
16287#endif
16288char deflate ();
16289int
16290main ()
16291{
16292return deflate ();
16293  ;
16294  return 0;
16295}
16296_ACEOF
16297if ac_fn_c_try_link "$LINENO"; then :
16298  ac_cv_lib_z_deflate=yes
16299else
16300  ac_cv_lib_z_deflate=no
16301fi
16302rm -f core conftest.err conftest.$ac_objext \
16303    conftest$ac_exeext conftest.$ac_ext
16304LIBS=$ac_check_lib_save_LIBS
16305fi
16306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
16307$as_echo "$ac_cv_lib_z_deflate" >&6; }
16308if test "x$ac_cv_lib_z_deflate" = x""yes; then :
16309  ac_zlib_ok=yes
16310else
16311  ac_zlib_ok=no
16312fi
16313
16314					if test "$ac_zlib_ok" = yes
16315					then
16316						LIBZ="-L$dir -lz"
16317					fi
16318				fi
16319			fi
16320		done
16321
16322
16323
16324					fi
16325					if ! test -n "$LIBZ"; then
16326						## No zlib
16327						as_fn_error "
16328
16329  ###
16330  ###  zlib compression library (libz.a) not found.
16331  ###
16332  ###  Please download and install the zlib compression
16333  ###  library from the following URL:
16334  ###
16335  ###       http://www.gzip.org/zlib/
16336  ###
16337  ###  (Error detail might be available in \`config.log')
16338  ###
16339" "$LINENO" 5
16340     				fi
16341					LIBMYSQLCLIENT="-L$libmysqlclient_dir -lmysqlclient"
16342					libmysqlclient_found=yes
16343				fi
16344			fi
16345		done
16346
16347
16348
16349
16350		ac_mydns_header_dirs="/usr/include /usr/include/mysql /usr/local/include \
16351									 /usr/local/include/mysql /usr/local/mysql/include"
16352		ac_mydns_header_found=no, ac_mydns_header_ok=no
16353
16354# Check whether --with-mysql-include was given.
16355if test "${with_mysql_include+set}" = set; then :
16356  withval=$with_mysql_include; ac_mydns_header_dirs="$withval $ac_mydns_header_dirs"
16357fi
16358
16359		for dir in $ac_mydns_header_dirs
16360		do
16361			if test "$ac_mydns_header_found" != yes
16362			then
16363				as_ac_File=`$as_echo "ac_cv_file_$dir/mysql.h" | $as_tr_sh`
16364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/mysql.h" >&5
16365$as_echo_n "checking for $dir/mysql.h... " >&6; }
16366if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16367  $as_echo_n "(cached) " >&6
16368else
16369  test "$cross_compiling" = yes &&
16370  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16371if test -r "$dir/mysql.h"; then
16372  eval "$as_ac_File=yes"
16373else
16374  eval "$as_ac_File=no"
16375fi
16376fi
16377eval ac_res=\$$as_ac_File
16378	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16379$as_echo "$ac_res" >&6; }
16380eval as_val=\$$as_ac_File
16381   if test "x$as_val" = x""yes; then :
16382  ac_mydns_header_found=yes
16383else
16384  ac_mydns_header_found=no
16385fi
16386
16387				test "$ac_mydns_header_found" = yes && MYSQL_INCLUDE="-I$dir"
16388			fi
16389		done
16390
16391
16392
16393				fi
16394
16395else
16396
16397				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16398$as_echo "yes" >&6; }
16399
16400		libmysqlclient_dirs="/usr/local/mysql/lib /usr/local/lib/mysql /usr/local/lib /usr/lib/mysql /usr/lib /lib"
16401
16402# Check whether --with-mysql-lib was given.
16403if test "${with_mysql_lib+set}" = set; then :
16404  withval=$with_mysql_lib; libmysqlclient_dirs="$withval $libmysqlclient_dirs"
16405fi
16406
16407		libmysqlclient_found=no, libmysqlclient_ok=no
16408		for libmysqlclient_dir in $libmysqlclient_dirs; do
16409			if test "$libmysqlclient_found" != yes; then
16410				as_ac_File=`$as_echo "ac_cv_file_$libmysqlclient_dir/libmysqlclient_r.so" | $as_tr_sh`
16411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $libmysqlclient_dir/libmysqlclient_r.so" >&5
16412$as_echo_n "checking for $libmysqlclient_dir/libmysqlclient_r.so... " >&6; }
16413if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16414  $as_echo_n "(cached) " >&6
16415else
16416  test "$cross_compiling" = yes &&
16417  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16418if test -r "$libmysqlclient_dir/libmysqlclient_r.so"; then
16419  eval "$as_ac_File=yes"
16420else
16421  eval "$as_ac_File=no"
16422fi
16423fi
16424eval ac_res=\$$as_ac_File
16425	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16426$as_echo "$ac_res" >&6; }
16427eval as_val=\$$as_ac_File
16428   if test "x$as_val" = x""yes; then :
16429  libmysqlclient_found=yes
16430else
16431  libmysqlclient_found=no
16432fi
16433
16434				if test "$libmysqlclient_found" != yes; then
16435					as_ac_File=`$as_echo "ac_cv_file_$libmysqlclient_dir/libmysqlclient.so" | $as_tr_sh`
16436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $libmysqlclient_dir/libmysqlclient.so" >&5
16437$as_echo_n "checking for $libmysqlclient_dir/libmysqlclient.so... " >&6; }
16438if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16439  $as_echo_n "(cached) " >&6
16440else
16441  test "$cross_compiling" = yes &&
16442  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16443if test -r "$libmysqlclient_dir/libmysqlclient.so"; then
16444  eval "$as_ac_File=yes"
16445else
16446  eval "$as_ac_File=no"
16447fi
16448fi
16449eval ac_res=\$$as_ac_File
16450	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16451$as_echo "$ac_res" >&6; }
16452eval as_val=\$$as_ac_File
16453   if test "x$as_val" = x""yes; then :
16454  libmysqlclient_found=yes
16455else
16456  libmysqlclient_found=no
16457fi
16458
16459				fi
16460				if test "$libmysqlclient_found" != yes; then
16461					as_ac_File=`$as_echo "ac_cv_file_$libmysqlclient_dir/libmysqlclient.a" | $as_tr_sh`
16462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $libmysqlclient_dir/libmysqlclient.a" >&5
16463$as_echo_n "checking for $libmysqlclient_dir/libmysqlclient.a... " >&6; }
16464if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16465  $as_echo_n "(cached) " >&6
16466else
16467  test "$cross_compiling" = yes &&
16468  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16469if test -r "$libmysqlclient_dir/libmysqlclient.a"; then
16470  eval "$as_ac_File=yes"
16471else
16472  eval "$as_ac_File=no"
16473fi
16474fi
16475eval ac_res=\$$as_ac_File
16476	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16477$as_echo "$ac_res" >&6; }
16478eval as_val=\$$as_ac_File
16479   if test "x$as_val" = x""yes; then :
16480  libmysqlclient_found=yes
16481else
16482  libmysqlclient_found=no
16483fi
16484
16485				fi
16486				if test "$libmysqlclient_found" = yes; then
16487					## libmysqlclient depends on libz
16488					if ! test -n "$LIBZ"; then
16489
16490		ac_zlib_dirs="/lib /usr/lib /usr/local/lib"
16491
16492# Check whether --with-zlib was given.
16493if test "${with_zlib+set}" = set; then :
16494  withval=$with_zlib; ac_zlib_dirs="$withval $ac_zlib_dirs"
16495fi
16496
16497		ac_zlib_found=no, ac_zlib_ok=no
16498		for dir in $ac_zlib_dirs
16499		do
16500			if test "$ac_zlib_found" != yes
16501			then
16502				as_ac_File=`$as_echo "ac_cv_file_$dir/libz.so" | $as_tr_sh`
16503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/libz.so" >&5
16504$as_echo_n "checking for $dir/libz.so... " >&6; }
16505if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16506  $as_echo_n "(cached) " >&6
16507else
16508  test "$cross_compiling" = yes &&
16509  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16510if test -r "$dir/libz.so"; then
16511  eval "$as_ac_File=yes"
16512else
16513  eval "$as_ac_File=no"
16514fi
16515fi
16516eval ac_res=\$$as_ac_File
16517	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16518$as_echo "$ac_res" >&6; }
16519eval as_val=\$$as_ac_File
16520   if test "x$as_val" = x""yes; then :
16521  ac_zlib_found=yes
16522else
16523  ac_zlib_found=no
16524fi
16525
16526				if test "$ac_zlib_found" = yes
16527				then
16528					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
16529$as_echo_n "checking for deflate in -lz... " >&6; }
16530if test "${ac_cv_lib_z_deflate+set}" = set; then :
16531  $as_echo_n "(cached) " >&6
16532else
16533  ac_check_lib_save_LIBS=$LIBS
16534LIBS="-lz  $LIBS"
16535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536/* end confdefs.h.  */
16537
16538/* Override any GCC internal prototype to avoid an error.
16539   Use char because int might match the return type of a GCC
16540   builtin and then its argument prototype would still apply.  */
16541#ifdef __cplusplus
16542extern "C"
16543#endif
16544char deflate ();
16545int
16546main ()
16547{
16548return deflate ();
16549  ;
16550  return 0;
16551}
16552_ACEOF
16553if ac_fn_c_try_link "$LINENO"; then :
16554  ac_cv_lib_z_deflate=yes
16555else
16556  ac_cv_lib_z_deflate=no
16557fi
16558rm -f core conftest.err conftest.$ac_objext \
16559    conftest$ac_exeext conftest.$ac_ext
16560LIBS=$ac_check_lib_save_LIBS
16561fi
16562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
16563$as_echo "$ac_cv_lib_z_deflate" >&6; }
16564if test "x$ac_cv_lib_z_deflate" = x""yes; then :
16565  ac_zlib_ok=yes
16566else
16567  ac_zlib_ok=no
16568fi
16569
16570					if test "$ac_zlib_ok" = yes
16571					then
16572						LIBZ="-L$dir -lz"
16573					fi
16574				fi
16575			fi
16576		done
16577
16578
16579
16580					fi
16581					if ! test -n "$LIBZ"; then
16582						## No zlib
16583						as_fn_error "
16584
16585  ###
16586  ###  zlib compression library (libz.a) not found.
16587  ###
16588  ###  Please download and install the zlib compression
16589  ###  library from the following URL:
16590  ###
16591  ###       http://www.gzip.org/zlib/
16592  ###
16593  ###  (Error detail might be available in \`config.log')
16594  ###
16595" "$LINENO" 5
16596     				fi
16597					LIBMYSQLCLIENT="-L$libmysqlclient_dir -lmysqlclient"
16598					libmysqlclient_found=yes
16599				fi
16600			fi
16601		done
16602
16603
16604
16605
16606		ac_mydns_header_dirs="/usr/include /usr/include/mysql /usr/local/include \
16607									 /usr/local/include/mysql /usr/local/mysql/include"
16608		ac_mydns_header_found=no, ac_mydns_header_ok=no
16609
16610# Check whether --with-mysql-include was given.
16611if test "${with_mysql_include+set}" = set; then :
16612  withval=$with_mysql_include; ac_mydns_header_dirs="$withval $ac_mydns_header_dirs"
16613fi
16614
16615		for dir in $ac_mydns_header_dirs
16616		do
16617			if test "$ac_mydns_header_found" != yes
16618			then
16619				as_ac_File=`$as_echo "ac_cv_file_$dir/mysql.h" | $as_tr_sh`
16620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/mysql.h" >&5
16621$as_echo_n "checking for $dir/mysql.h... " >&6; }
16622if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16623  $as_echo_n "(cached) " >&6
16624else
16625  test "$cross_compiling" = yes &&
16626  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16627if test -r "$dir/mysql.h"; then
16628  eval "$as_ac_File=yes"
16629else
16630  eval "$as_ac_File=no"
16631fi
16632fi
16633eval ac_res=\$$as_ac_File
16634	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16635$as_echo "$ac_res" >&6; }
16636eval as_val=\$$as_ac_File
16637   if test "x$as_val" = x""yes; then :
16638  ac_mydns_header_found=yes
16639else
16640  ac_mydns_header_found=no
16641fi
16642
16643				test "$ac_mydns_header_found" = yes && MYSQL_INCLUDE="-I$dir"
16644			fi
16645		done
16646
16647
16648
16649
16650
16651fi
16652
16653
16654			#	Check for MySQL support
16655
16656		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support PostgreSQL" >&5
16657$as_echo_n "checking whether to support PostgreSQL... " >&6; }
16658
16659# Check whether --with-pgsql was given.
16660if test "${with_pgsql+set}" = set; then :
16661  withval=$with_pgsql;
16662				if test "$withval" = no
16663				then
16664					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16665$as_echo "no" >&6; }
16666				else
16667					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16668$as_echo "yes" >&6; }
16669
16670		ac_mydns_lib_dirs="/usr/local/pgsql/lib /lib /usr/lib /usr/local/lib"
16671
16672# Check whether --with-pgsql-lib was given.
16673if test "${with_pgsql_lib+set}" = set; then :
16674  withval=$with_pgsql_lib; ac_mydns_lib_dirs="$withval $ac_mydns_lib_dirs"
16675fi
16676
16677		ac_mydns_lib_found=no, ac_mydns_lib_ok=no
16678		ac_mydns_libs="$LDFLAGS"
16679		for dir in $ac_mydns_lib_dirs
16680		do
16681			if test "$ac_mydns_lib_found" != yes
16682			then
16683				as_ac_File=`$as_echo "ac_cv_file_$dir/libpq.so" | $as_tr_sh`
16684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/libpq.so" >&5
16685$as_echo_n "checking for $dir/libpq.so... " >&6; }
16686if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16687  $as_echo_n "(cached) " >&6
16688else
16689  test "$cross_compiling" = yes &&
16690  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16691if test -r "$dir/libpq.so"; then
16692  eval "$as_ac_File=yes"
16693else
16694  eval "$as_ac_File=no"
16695fi
16696fi
16697eval ac_res=\$$as_ac_File
16698	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16699$as_echo "$ac_res" >&6; }
16700eval as_val=\$$as_ac_File
16701   if test "x$as_val" = x""yes; then :
16702  ac_mydns_lib_found=yes
16703else
16704  ac_mydns_lib_found=no
16705fi
16706
16707				if test "$ac_mydns_lib_found" = "yes"; then
16708					LIBPQ="-L$dir -lpq"
16709
16710				fi
16711			fi
16712		done
16713
16714
16715
16716
16717		ac_mydns_header_dirs="/usr/local/pgsql/include /usr/include/postgresql \
16718									 /usr/include /usr/local/include"
16719		ac_mydns_header_found=no, ac_mydns_header_ok=no
16720
16721# Check whether --with-pgsql-include was given.
16722if test "${with_pgsql_include+set}" = set; then :
16723  withval=$with_pgsql_include; ac_mydns_header_dirs="$withval $ac_mydns_header_dirs"
16724fi
16725
16726		for dir in $ac_mydns_header_dirs
16727		do
16728			if test "$ac_mydns_header_found" != yes
16729			then
16730				as_ac_File=`$as_echo "ac_cv_file_$dir/libpq-fe.h" | $as_tr_sh`
16731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/libpq-fe.h" >&5
16732$as_echo_n "checking for $dir/libpq-fe.h... " >&6; }
16733if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16734  $as_echo_n "(cached) " >&6
16735else
16736  test "$cross_compiling" = yes &&
16737  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16738if test -r "$dir/libpq-fe.h"; then
16739  eval "$as_ac_File=yes"
16740else
16741  eval "$as_ac_File=no"
16742fi
16743fi
16744eval ac_res=\$$as_ac_File
16745	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16746$as_echo "$ac_res" >&6; }
16747eval as_val=\$$as_ac_File
16748   if test "x$as_val" = x""yes; then :
16749  ac_mydns_header_found=yes
16750else
16751  ac_mydns_header_found=no
16752fi
16753
16754				if test "$ac_mydns_header_found" = yes
16755				then
16756					PQ_INCLUDE="-I$dir"
16757
16758					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL version number" >&5
16759$as_echo_n "checking for PostgreSQL version number... " >&6; }
16760					PG_VERSION=`grep "PG_VERSION " $dir/pg_config.h | cut -f3 -d' '`
16761					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_VERSION" >&5
16762$as_echo "$PG_VERSION" >&6; }
16763
16764cat >>confdefs.h <<_ACEOF
16765#define PGSQL_VERSION $PG_VERSION
16766_ACEOF
16767
16768
16769					as_ac_File=`$as_echo "ac_cv_file_$dir/pg_config.h" | $as_tr_sh`
16770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/pg_config.h" >&5
16771$as_echo_n "checking for $dir/pg_config.h... " >&6; }
16772if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16773  $as_echo_n "(cached) " >&6
16774else
16775  test "$cross_compiling" = yes &&
16776  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16777if test -r "$dir/pg_config.h"; then
16778  eval "$as_ac_File=yes"
16779else
16780  eval "$as_ac_File=no"
16781fi
16782fi
16783eval ac_res=\$$as_ac_File
16784	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16785$as_echo "$ac_res" >&6; }
16786eval as_val=\$$as_ac_File
16787   if test "x$as_val" = x""yes; then :
16788
16789$as_echo "#define HAVE_PGCONFIG 1" >>confdefs.h
16790
16791fi
16792
16793				fi
16794			fi
16795		done
16796
16797
16798
16799				fi
16800
16801else
16802
16803				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16804$as_echo "yes" >&6; }
16805
16806		ac_mydns_lib_dirs="/usr/local/pgsql/lib /lib /usr/lib /usr/local/lib"
16807
16808# Check whether --with-pgsql-lib was given.
16809if test "${with_pgsql_lib+set}" = set; then :
16810  withval=$with_pgsql_lib; ac_mydns_lib_dirs="$withval $ac_mydns_lib_dirs"
16811fi
16812
16813		ac_mydns_lib_found=no, ac_mydns_lib_ok=no
16814		ac_mydns_libs="$LDFLAGS"
16815		for dir in $ac_mydns_lib_dirs
16816		do
16817			if test "$ac_mydns_lib_found" != yes
16818			then
16819				as_ac_File=`$as_echo "ac_cv_file_$dir/libpq.so" | $as_tr_sh`
16820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/libpq.so" >&5
16821$as_echo_n "checking for $dir/libpq.so... " >&6; }
16822if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16823  $as_echo_n "(cached) " >&6
16824else
16825  test "$cross_compiling" = yes &&
16826  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16827if test -r "$dir/libpq.so"; then
16828  eval "$as_ac_File=yes"
16829else
16830  eval "$as_ac_File=no"
16831fi
16832fi
16833eval ac_res=\$$as_ac_File
16834	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16835$as_echo "$ac_res" >&6; }
16836eval as_val=\$$as_ac_File
16837   if test "x$as_val" = x""yes; then :
16838  ac_mydns_lib_found=yes
16839else
16840  ac_mydns_lib_found=no
16841fi
16842
16843				if test "$ac_mydns_lib_found" = "yes"; then
16844					LIBPQ="-L$dir -lpq"
16845
16846				fi
16847			fi
16848		done
16849
16850
16851
16852
16853		ac_mydns_header_dirs="/usr/local/pgsql/include /usr/include/postgresql \
16854									 /usr/include /usr/local/include"
16855		ac_mydns_header_found=no, ac_mydns_header_ok=no
16856
16857# Check whether --with-pgsql-include was given.
16858if test "${with_pgsql_include+set}" = set; then :
16859  withval=$with_pgsql_include; ac_mydns_header_dirs="$withval $ac_mydns_header_dirs"
16860fi
16861
16862		for dir in $ac_mydns_header_dirs
16863		do
16864			if test "$ac_mydns_header_found" != yes
16865			then
16866				as_ac_File=`$as_echo "ac_cv_file_$dir/libpq-fe.h" | $as_tr_sh`
16867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/libpq-fe.h" >&5
16868$as_echo_n "checking for $dir/libpq-fe.h... " >&6; }
16869if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16870  $as_echo_n "(cached) " >&6
16871else
16872  test "$cross_compiling" = yes &&
16873  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16874if test -r "$dir/libpq-fe.h"; then
16875  eval "$as_ac_File=yes"
16876else
16877  eval "$as_ac_File=no"
16878fi
16879fi
16880eval ac_res=\$$as_ac_File
16881	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16882$as_echo "$ac_res" >&6; }
16883eval as_val=\$$as_ac_File
16884   if test "x$as_val" = x""yes; then :
16885  ac_mydns_header_found=yes
16886else
16887  ac_mydns_header_found=no
16888fi
16889
16890				if test "$ac_mydns_header_found" = yes
16891				then
16892					PQ_INCLUDE="-I$dir"
16893
16894					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL version number" >&5
16895$as_echo_n "checking for PostgreSQL version number... " >&6; }
16896					PG_VERSION=`grep "PG_VERSION " $dir/pg_config.h | cut -f3 -d' '`
16897					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_VERSION" >&5
16898$as_echo "$PG_VERSION" >&6; }
16899
16900cat >>confdefs.h <<_ACEOF
16901#define PGSQL_VERSION $PG_VERSION
16902_ACEOF
16903
16904
16905					as_ac_File=`$as_echo "ac_cv_file_$dir/pg_config.h" | $as_tr_sh`
16906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/pg_config.h" >&5
16907$as_echo_n "checking for $dir/pg_config.h... " >&6; }
16908if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16909  $as_echo_n "(cached) " >&6
16910else
16911  test "$cross_compiling" = yes &&
16912  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16913if test -r "$dir/pg_config.h"; then
16914  eval "$as_ac_File=yes"
16915else
16916  eval "$as_ac_File=no"
16917fi
16918fi
16919eval ac_res=\$$as_ac_File
16920	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16921$as_echo "$ac_res" >&6; }
16922eval as_val=\$$as_ac_File
16923   if test "x$as_val" = x""yes; then :
16924
16925$as_echo "#define HAVE_PGCONFIG 1" >>confdefs.h
16926
16927fi
16928
16929				fi
16930			fi
16931		done
16932
16933
16934
16935
16936
16937fi
16938
16939
16940			#	Check for PostgreSQL support
16941
16942		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with OpenSSL support" >&5
16943$as_echo_n "checking whether to compile with OpenSSL support... " >&6; }
16944
16945# Check whether --with-openssl was given.
16946if test "${with_openssl+set}" = set; then :
16947  withval=$with_openssl;
16948				if test "$withval" = "yes"; then
16949					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16950$as_echo "yes" >&6; }
16951
16952		ac_ssl_lib_dirs="/lib /usr/lib /usr/local/lib /usr/ssl/lib /usr/local/ssl/lib"
16953
16954# Check whether --with-openssl-lib was given.
16955if test "${with_openssl_lib+set}" = set; then :
16956  withval=$with_openssl_lib; ac_ssl_lib_dirs="$withval $ac_ssl_lib_dirs"
16957fi
16958
16959		ac_ssl_lib_found=no
16960		ac_mydns_libs="$LDFLAGS"
16961		for dir in $ac_ssl_lib_dirs
16962		do
16963			if test "$ac_ssl_lib_found" != yes
16964			then
16965				as_ac_File=`$as_echo "ac_cv_file_$dir/libssl.so" | $as_tr_sh`
16966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/libssl.so" >&5
16967$as_echo_n "checking for $dir/libssl.so... " >&6; }
16968if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
16969  $as_echo_n "(cached) " >&6
16970else
16971  test "$cross_compiling" = yes &&
16972  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
16973if test -r "$dir/libssl.so"; then
16974  eval "$as_ac_File=yes"
16975else
16976  eval "$as_ac_File=no"
16977fi
16978fi
16979eval ac_res=\$$as_ac_File
16980	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16981$as_echo "$ac_res" >&6; }
16982eval as_val=\$$as_ac_File
16983   if test "x$as_val" = x""yes; then :
16984  ac_ssl_lib_found=yes
16985else
16986  ac_ssl_lib_found=no
16987fi
16988
16989				if test "$ac_ssl_lib_found" = yes
16990				then
16991					LIBSSL="-L$dir -lssl -lcrypto"
16992				fi
16993			fi
16994		done
16995		if test "$ac_ssl_lib_found" != yes
16996		then
16997			as_fn_error "
16998
16999  ###
17000  ###  OpenSSL libraries (libssl.so/libcrypto.so) not found!
17001  ###
17002  ###  If your OpenSSL libraries are in an unusual location,
17003  ###  specify the directory where they are located with:
17004  ###
17005  ###       --with-openssl-lib=DIR
17006  ###
17007  ###  If you don't have the OpenSSL development files on your
17008  ###  system, download and install them from the following URL:
17009  ###
17010  ###       http://www.openssl.org/
17011  ###
17012  ###  (Error detail might be available in \`config.log')
17013  ###
17014" "$LINENO" 5
17015		fi
17016
17017
17018
17019
17020		ac_ssl_header_dirs="/usr/include /usr/local/include /usr/include/ssl /usr/ssl/include /usr/local/ssl/include"
17021		ac_ssl_header_found=no, ac_ssl_header_ok=no
17022
17023# Check whether --with-openssl-include was given.
17024if test "${with_openssl_include+set}" = set; then :
17025  withval=$with_openssl_include; ac_ssl_header_dirs="$withval $ac_ssl_header_dirs"
17026fi
17027
17028		for dir in $ac_ssl_header_dirs
17029		do
17030			if test "$ac_ssl_header_found" != yes
17031			then
17032				as_ac_File=`$as_echo "ac_cv_file_$dir/openssl/ssl.h" | $as_tr_sh`
17033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/openssl/ssl.h" >&5
17034$as_echo_n "checking for $dir/openssl/ssl.h... " >&6; }
17035if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
17036  $as_echo_n "(cached) " >&6
17037else
17038  test "$cross_compiling" = yes &&
17039  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
17040if test -r "$dir/openssl/ssl.h"; then
17041  eval "$as_ac_File=yes"
17042else
17043  eval "$as_ac_File=no"
17044fi
17045fi
17046eval ac_res=\$$as_ac_File
17047	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17048$as_echo "$ac_res" >&6; }
17049eval as_val=\$$as_ac_File
17050   if test "x$as_val" = x""yes; then :
17051  ac_ssl_header_found=yes
17052else
17053  ac_ssl_header_found=no
17054fi
17055
17056				test "$ac_ssl_header_found" = yes && SSL_INCLUDE="-I$dir"
17057			fi
17058		done
17059		if test "$ac_ssl_header_found" != yes
17060		then
17061			as_fn_error "
17062
17063  ###
17064  ###  OpenSSL header file (openssl/ssl.h) not found!
17065  ###
17066  ###  If your OpenSSL header files are in an unusual location,
17067  ###  specify the directory where they are located with:
17068  ###
17069  ###       --with-openssl-include=DIR
17070  ###
17071  ###  If you don't have the OpenSSL development files on your
17072  ###  system, download and install them from the following URL:
17073  ###
17074  ###       http://www.openssl.org/
17075  ###
17076  ###  (Error detail might be available in \`config.log')
17077  ###
17078" "$LINENO" 5
17079
17080		fi
17081
17082$as_echo "#define WITH_SSL 1" >>confdefs.h
17083
17084
17085
17086
17087				else
17088					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17089$as_echo "no" >&6; }
17090				fi
17091
17092else
17093
17094				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095$as_echo "no" >&6; }
17096
17097
17098fi
17099
17100
17101			#	Check if OpenSSL is desired
17102
17103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default config file location" >&5
17104$as_echo_n "checking for default config file location... " >&6; }
17105
17106# Check whether --with-confdir was given.
17107if test "${with_confdir+set}" = set; then :
17108  withval=$with_confdir; ac_mydns_conf="$withval/mydns.conf"
17109else
17110  ac_mydns_conf="/etc/mydns.conf"
17111fi
17112
17113		MYDNS_CONF="$ac_mydns_conf"
17114
17115
17116cat >>confdefs.h <<_ACEOF
17117#define MYDNS_CONF "$MYDNS_CONF"
17118_ACEOF
17119
17120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYDNS_CONF" >&5
17121$as_echo "$MYDNS_CONF" >&6; }
17122
17123			#	Set conf file location
17124
17125		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static binary" >&5
17126$as_echo_n "checking whether to build static binary... " >&6; }
17127		# Check whether --enable-static-build was given.
17128if test "${enable_static_build+set}" = set; then :
17129  enableval=$enable_static_build;
17130				if test "$enableval" = yes
17131				then
17132					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17133$as_echo "yes" >&6; }
17134					LDFLAGS="$LDFLAGS -all-static"
17135					ac_mydns_static_build=yes
17136
17137
17138					## PostgreSQL client library needs libcrypt if statically compiled
17139					if test -n "$LIBPQ"; then
17140						LIBPQ="$LIBPQ -lcrypt"
17141					fi
17142
17143				else
17144					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17145$as_echo "no" >&6; }
17146				fi
17147
17148else
17149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17150$as_echo "no" >&6; }
17151fi
17152
17153
17154		#	Build static binary?
17155
17156		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
17157$as_echo_n "checking for MySQL support... " >&6; }
17158		if test -n "$LIBMYSQLCLIENT" -a -n "$MYSQL_INCLUDE"; then
17159			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17160$as_echo "yes" >&6; }
17161			mysql_found=yes
17162		else
17163			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17164$as_echo "no" >&6; }
17165			mysql_found=no
17166		fi
17167
17168		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
17169$as_echo_n "checking for PostgreSQL support... " >&6; }
17170		if test -n "$LIBPQ" -a -n "$PQ_INCLUDE"; then
17171			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17172$as_echo "yes" >&6; }
17173			pgsql_found=yes
17174		else
17175			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17176$as_echo "no" >&6; }
17177			pgsql_found=no
17178		fi
17179
17180		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which database to use" >&5
17181$as_echo_n "checking which database to use... " >&6; }
17182
17183		## Defaults for MySQL
17184		USE_DB_NAME="MySQL"
17185		LIBSQL="$LIBMYSQLCLIENT $LIBZ"
17186		SQLINCLUDE="$MYSQL_INCLUDE"
17187
17188		if test "$mysql_found" = yes -a "$pgsql_found" = yes; then
17189
17190$as_echo "#define USE_MYSQL 1" >>confdefs.h
17191
17192			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MySQL" >&5
17193$as_echo "MySQL" >&6; }
17194			{ $as_echo "$as_me:${as_lineno-$LINENO}:
17195
17196  ###
17197  ###  Both MySQL and PostgreSQL found!
17198  ###
17199  ###  MySQL used by default.  If you want to use
17200  ###  PostgreSQL instead, rerun this script with:
17201  ###
17202  ###       --without-mysql
17203  ###
17204" >&5
17205$as_echo "$as_me:
17206
17207  ###
17208  ###  Both MySQL and PostgreSQL found!
17209  ###
17210  ###  MySQL used by default.  If you want to use
17211  ###  PostgreSQL instead, rerun this script with:
17212  ###
17213  ###       --without-mysql
17214  ###
17215" >&6;}
17216		else
17217			if test "$mysql_found" = yes; then
17218
17219$as_echo "#define USE_MYSQL 1" >>confdefs.h
17220
17221				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MySQL" >&5
17222$as_echo "MySQL" >&6; }
17223			elif test "$pgsql_found" = yes; then
17224
17225$as_echo "#define USE_PGSQL 1" >>confdefs.h
17226
17227				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PostgreSQL" >&5
17228$as_echo "PostgreSQL" >&6; }
17229				USE_DB_NAME="PostgreSQL"
17230				LIBSQL="$LIBPQ"
17231				SQLINCLUDE="$PQ_INCLUDE"
17232			else
17233				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
17234$as_echo "none" >&6; }
17235				as_fn_error "No supported database found.  Either MySQL or PostgreSQL is required." "$LINENO" 5
17236			fi
17237		fi
17238
17239		if test "$mysql_found" = yes; then
17240			{ $as_echo "$as_me:${as_lineno-$LINENO}:
17241
17242  ###
17243  ###  If you have problems compiling with MySQL, specifically
17244  ###  a \"libz\" linker error, please read README.mysql for
17245  ###  more information.
17246  ###
17247" >&5
17248$as_echo "$as_me:
17249
17250  ###
17251  ###  If you have problems compiling with MySQL, specifically
17252  ###  a \"libz\" linker error, please read README.mysql for
17253  ###  more information.
17254  ###
17255" >&6;}
17256
17257		fi
17258
17259
17260
17261
17262			#	Choose between MySQL and PostgreSQL
17263
17264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
17265$as_echo_n "checking whether to enable profiling... " >&6; }
17266		# Check whether --enable-profiling was given.
17267if test "${enable_profiling+set}" = set; then :
17268  enableval=$enable_profiling;
17269				if test "$enableval" = yes
17270				then
17271
17272$as_echo "#define PROFILING 1" >>confdefs.h
17273
17274					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17275$as_echo "yes" >&6; }
17276					CFLAGS="-O -g -pg"
17277					LDFLAGS="$LDFLAGS -pg"
17278					PROFILE_ENABLED=yes
17279
17280
17281		ac_save_CFLAGS=$CFLAGS
17282		CFLAGS="-fno-inline-functions"
17283		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-inline-functions" >&5
17284$as_echo_n "checking whether $CC accepts -fno-inline-functions... " >&6; }
17285		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17286/* end confdefs.h.  */
17287
17288int
17289main ()
17290{
17291
17292  ;
17293  return 0;
17294}
17295_ACEOF
17296if ac_fn_c_try_compile "$LINENO"; then :
17297  ac_cv_prog_cc_optok=yes
17298else
17299  ac_cv_prog_cc_optok=no
17300fi
17301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17302		if test "$ac_cv_prog_cc_optok" = "yes"; then
17303			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17304$as_echo "yes" >&6; }
17305			CFLAGS="$ac_save_CFLAGS -fno-inline-functions"
17306		else
17307			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308$as_echo "no" >&6; }
17309			CFLAGS=$ac_save_CFLAGS
17310		fi
17311
17312
17313				else
17314					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17315$as_echo "no" >&6; }
17316				fi
17317
17318else
17319
17320				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17321$as_echo "no" >&6; }
17322
17323
17324fi
17325
17326
17327		#	Enable profiling?
17328
17329		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
17330$as_echo_n "checking whether to enable debugging... " >&6; }
17331		# Check whether --enable-debug was given.
17332if test "${enable_debug+set}" = set; then :
17333  enableval=$enable_debug;
17334				if test "$enableval" = yes
17335				then
17336					CFLAGS="-O -g"
17337
17338$as_echo "#define DEBUG_ENABLED 1" >>confdefs.h
17339
17340					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17341$as_echo "yes" >&6; }
17342
17343		ac_save_CFLAGS=$CFLAGS
17344		CFLAGS="-fno-inline"
17345		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-inline" >&5
17346$as_echo_n "checking whether $CC accepts -fno-inline... " >&6; }
17347		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17348/* end confdefs.h.  */
17349
17350int
17351main ()
17352{
17353
17354  ;
17355  return 0;
17356}
17357_ACEOF
17358if ac_fn_c_try_compile "$LINENO"; then :
17359  ac_cv_prog_cc_optok=yes
17360else
17361  ac_cv_prog_cc_optok=no
17362fi
17363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364		if test "$ac_cv_prog_cc_optok" = "yes"; then
17365			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17366$as_echo "yes" >&6; }
17367			CFLAGS="$ac_save_CFLAGS -fno-inline"
17368		else
17369			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17370$as_echo "no" >&6; }
17371			CFLAGS=$ac_save_CFLAGS
17372		fi
17373
17374
17375
17376		ac_save_CFLAGS=$CFLAGS
17377		CFLAGS="-Wall"
17378		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wall" >&5
17379$as_echo_n "checking whether $CC accepts -Wall... " >&6; }
17380		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17381/* end confdefs.h.  */
17382
17383int
17384main ()
17385{
17386
17387  ;
17388  return 0;
17389}
17390_ACEOF
17391if ac_fn_c_try_compile "$LINENO"; then :
17392  ac_cv_prog_cc_optok=yes
17393else
17394  ac_cv_prog_cc_optok=no
17395fi
17396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17397		if test "$ac_cv_prog_cc_optok" = "yes"; then
17398			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17399$as_echo "yes" >&6; }
17400			CFLAGS="$ac_save_CFLAGS -Wall"
17401		else
17402			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17403$as_echo "no" >&6; }
17404			CFLAGS=$ac_save_CFLAGS
17405		fi
17406
17407
17408
17409		ac_save_CFLAGS=$CFLAGS
17410		CFLAGS="-Wno-unused"
17411		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wno-unused" >&5
17412$as_echo_n "checking whether $CC accepts -Wno-unused... " >&6; }
17413		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414/* end confdefs.h.  */
17415
17416int
17417main ()
17418{
17419
17420  ;
17421  return 0;
17422}
17423_ACEOF
17424if ac_fn_c_try_compile "$LINENO"; then :
17425  ac_cv_prog_cc_optok=yes
17426else
17427  ac_cv_prog_cc_optok=no
17428fi
17429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17430		if test "$ac_cv_prog_cc_optok" = "yes"; then
17431			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17432$as_echo "yes" >&6; }
17433			CFLAGS="$ac_save_CFLAGS -Wno-unused"
17434		else
17435			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17436$as_echo "no" >&6; }
17437			CFLAGS=$ac_save_CFLAGS
17438		fi
17439
17440
17441
17442		ac_save_CFLAGS=$CFLAGS
17443		CFLAGS="-Werror"
17444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror" >&5
17445$as_echo_n "checking whether $CC accepts -Werror... " >&6; }
17446		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447/* end confdefs.h.  */
17448
17449int
17450main ()
17451{
17452
17453  ;
17454  return 0;
17455}
17456_ACEOF
17457if ac_fn_c_try_compile "$LINENO"; then :
17458  ac_cv_prog_cc_optok=yes
17459else
17460  ac_cv_prog_cc_optok=no
17461fi
17462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17463		if test "$ac_cv_prog_cc_optok" = "yes"; then
17464			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17465$as_echo "yes" >&6; }
17466			CFLAGS="$ac_save_CFLAGS -Werror"
17467		else
17468			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17469$as_echo "no" >&6; }
17470			CFLAGS=$ac_save_CFLAGS
17471		fi
17472
17473
17474				else
17475					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17476$as_echo "no" >&6; }
17477					if test -z "$PROFILE_ENABLED"; then
17478
17479		ac_save_CFLAGS=$CFLAGS
17480		CFLAGS="-finline-functions"
17481		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -finline-functions" >&5
17482$as_echo_n "checking whether $CC accepts -finline-functions... " >&6; }
17483		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17484/* end confdefs.h.  */
17485
17486int
17487main ()
17488{
17489
17490  ;
17491  return 0;
17492}
17493_ACEOF
17494if ac_fn_c_try_compile "$LINENO"; then :
17495  ac_cv_prog_cc_optok=yes
17496else
17497  ac_cv_prog_cc_optok=no
17498fi
17499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17500		if test "$ac_cv_prog_cc_optok" = "yes"; then
17501			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17502$as_echo "yes" >&6; }
17503			CFLAGS="$ac_save_CFLAGS -finline-functions"
17504		else
17505			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17506$as_echo "no" >&6; }
17507			CFLAGS=$ac_save_CFLAGS
17508		fi
17509
17510
17511					else
17512						LDFLAGS="$LDFLAGS -static"
17513					fi
17514				fi
17515
17516else
17517
17518				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17519$as_echo "no" >&6; }
17520				if test -z "$PROFILE_ENABLED"; then
17521
17522		ac_save_CFLAGS=$CFLAGS
17523		CFLAGS="-finline-functions"
17524		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -finline-functions" >&5
17525$as_echo_n "checking whether $CC accepts -finline-functions... " >&6; }
17526		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527/* end confdefs.h.  */
17528
17529int
17530main ()
17531{
17532
17533  ;
17534  return 0;
17535}
17536_ACEOF
17537if ac_fn_c_try_compile "$LINENO"; then :
17538  ac_cv_prog_cc_optok=yes
17539else
17540  ac_cv_prog_cc_optok=no
17541fi
17542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17543		if test "$ac_cv_prog_cc_optok" = "yes"; then
17544			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17545$as_echo "yes" >&6; }
17546			CFLAGS="$ac_save_CFLAGS -finline-functions"
17547		else
17548			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17549$as_echo "no" >&6; }
17550			CFLAGS=$ac_save_CFLAGS
17551		fi
17552
17553
17554				else
17555					LDFLAGS="$LDFLAGS -static"
17556				fi
17557
17558
17559fi
17560
17561
17562		ac_save_CFLAGS=$CFLAGS
17563		CFLAGS="-funsigned-char"
17564		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -funsigned-char" >&5
17565$as_echo_n "checking whether $CC accepts -funsigned-char... " >&6; }
17566		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17567/* end confdefs.h.  */
17568
17569int
17570main ()
17571{
17572
17573  ;
17574  return 0;
17575}
17576_ACEOF
17577if ac_fn_c_try_compile "$LINENO"; then :
17578  ac_cv_prog_cc_optok=yes
17579else
17580  ac_cv_prog_cc_optok=no
17581fi
17582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17583		if test "$ac_cv_prog_cc_optok" = "yes"; then
17584			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17585$as_echo "yes" >&6; }
17586			CFLAGS="$ac_save_CFLAGS -funsigned-char"
17587		else
17588			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17589$as_echo "no" >&6; }
17590			CFLAGS=$ac_save_CFLAGS
17591		fi
17592
17593
17594
17595		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS" >&5
17596$as_echo_n "checking CFLAGS... " >&6; }
17597		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5
17598$as_echo "$CFLAGS" >&6; }
17599
17600			#	Enable debugging?
17601
17602		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with Valgrind-friendly flags" >&5
17603$as_echo_n "checking whether to compile with Valgrind-friendly flags... " >&6; }
17604		# Check whether --enable-valgrind was given.
17605if test "${enable_valgrind+set}" = set; then :
17606  enableval=$enable_valgrind;
17607				if test "$enableval" = yes
17608				then
17609					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17610$as_echo "yes" >&6; }
17611					CFLAGS="-O -g"
17612
17613		ac_save_CFLAGS=$CFLAGS
17614		CFLAGS="-fno-inline"
17615		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-inline" >&5
17616$as_echo_n "checking whether $CC accepts -fno-inline... " >&6; }
17617		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618/* end confdefs.h.  */
17619
17620int
17621main ()
17622{
17623
17624  ;
17625  return 0;
17626}
17627_ACEOF
17628if ac_fn_c_try_compile "$LINENO"; then :
17629  ac_cv_prog_cc_optok=yes
17630else
17631  ac_cv_prog_cc_optok=no
17632fi
17633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634		if test "$ac_cv_prog_cc_optok" = "yes"; then
17635			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17636$as_echo "yes" >&6; }
17637			CFLAGS="$ac_save_CFLAGS -fno-inline"
17638		else
17639			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17640$as_echo "no" >&6; }
17641			CFLAGS=$ac_save_CFLAGS
17642		fi
17643
17644
17645
17646		ac_save_CFLAGS=$CFLAGS
17647		CFLAGS="-funsigned-char"
17648		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -funsigned-char" >&5
17649$as_echo_n "checking whether $CC accepts -funsigned-char... " >&6; }
17650		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17651/* end confdefs.h.  */
17652
17653int
17654main ()
17655{
17656
17657  ;
17658  return 0;
17659}
17660_ACEOF
17661if ac_fn_c_try_compile "$LINENO"; then :
17662  ac_cv_prog_cc_optok=yes
17663else
17664  ac_cv_prog_cc_optok=no
17665fi
17666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17667		if test "$ac_cv_prog_cc_optok" = "yes"; then
17668			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17669$as_echo "yes" >&6; }
17670			CFLAGS="$ac_save_CFLAGS -funsigned-char"
17671		else
17672			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17673$as_echo "no" >&6; }
17674			CFLAGS=$ac_save_CFLAGS
17675		fi
17676
17677
17678				else
17679					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17680$as_echo "no" >&6; }
17681				fi
17682
17683else
17684
17685				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17686$as_echo "no" >&6; }
17687
17688
17689fi
17690
17691
17692		#	Compile with Valgrind-friendly flags?
17693
17694		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with strict warning flags" >&5
17695$as_echo_n "checking whether to compile with strict warning flags... " >&6; }
17696		# Check whether --enable-strict-warnings was given.
17697if test "${enable_strict_warnings+set}" = set; then :
17698  enableval=$enable_strict_warnings;
17699				if test "$enableval" = yes
17700				then
17701					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17702$as_echo "yes" >&6; }
17703					CFLAGS="-O -g"
17704
17705		ac_save_CFLAGS=$CFLAGS
17706		CFLAGS="-W"
17707		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -W" >&5
17708$as_echo_n "checking whether $CC accepts -W... " >&6; }
17709		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17710/* end confdefs.h.  */
17711
17712int
17713main ()
17714{
17715
17716  ;
17717  return 0;
17718}
17719_ACEOF
17720if ac_fn_c_try_compile "$LINENO"; then :
17721  ac_cv_prog_cc_optok=yes
17722else
17723  ac_cv_prog_cc_optok=no
17724fi
17725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17726		if test "$ac_cv_prog_cc_optok" = "yes"; then
17727			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17728$as_echo "yes" >&6; }
17729			CFLAGS="$ac_save_CFLAGS -W"
17730		else
17731			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17732$as_echo "no" >&6; }
17733			CFLAGS=$ac_save_CFLAGS
17734		fi
17735
17736
17737
17738		ac_save_CFLAGS=$CFLAGS
17739		CFLAGS="-Wall"
17740		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wall" >&5
17741$as_echo_n "checking whether $CC accepts -Wall... " >&6; }
17742		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743/* end confdefs.h.  */
17744
17745int
17746main ()
17747{
17748
17749  ;
17750  return 0;
17751}
17752_ACEOF
17753if ac_fn_c_try_compile "$LINENO"; then :
17754  ac_cv_prog_cc_optok=yes
17755else
17756  ac_cv_prog_cc_optok=no
17757fi
17758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17759		if test "$ac_cv_prog_cc_optok" = "yes"; then
17760			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17761$as_echo "yes" >&6; }
17762			CFLAGS="$ac_save_CFLAGS -Wall"
17763		else
17764			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17765$as_echo "no" >&6; }
17766			CFLAGS=$ac_save_CFLAGS
17767		fi
17768
17769
17770#					AC_C_CFLAGS(-Wundef)
17771
17772		ac_save_CFLAGS=$CFLAGS
17773		CFLAGS="-Wendif-labels"
17774		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wendif-labels" >&5
17775$as_echo_n "checking whether $CC accepts -Wendif-labels... " >&6; }
17776		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777/* end confdefs.h.  */
17778
17779int
17780main ()
17781{
17782
17783  ;
17784  return 0;
17785}
17786_ACEOF
17787if ac_fn_c_try_compile "$LINENO"; then :
17788  ac_cv_prog_cc_optok=yes
17789else
17790  ac_cv_prog_cc_optok=no
17791fi
17792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793		if test "$ac_cv_prog_cc_optok" = "yes"; then
17794			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17795$as_echo "yes" >&6; }
17796			CFLAGS="$ac_save_CFLAGS -Wendif-labels"
17797		else
17798			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17799$as_echo "no" >&6; }
17800			CFLAGS=$ac_save_CFLAGS
17801		fi
17802
17803
17804
17805		ac_save_CFLAGS=$CFLAGS
17806		CFLAGS="-Wshadow"
17807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wshadow" >&5
17808$as_echo_n "checking whether $CC accepts -Wshadow... " >&6; }
17809		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810/* end confdefs.h.  */
17811
17812int
17813main ()
17814{
17815
17816  ;
17817  return 0;
17818}
17819_ACEOF
17820if ac_fn_c_try_compile "$LINENO"; then :
17821  ac_cv_prog_cc_optok=yes
17822else
17823  ac_cv_prog_cc_optok=no
17824fi
17825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17826		if test "$ac_cv_prog_cc_optok" = "yes"; then
17827			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17828$as_echo "yes" >&6; }
17829			CFLAGS="$ac_save_CFLAGS -Wshadow"
17830		else
17831			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17832$as_echo "no" >&6; }
17833			CFLAGS=$ac_save_CFLAGS
17834		fi
17835
17836
17837
17838		ac_save_CFLAGS=$CFLAGS
17839		CFLAGS="-Wpointer-arith"
17840		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wpointer-arith" >&5
17841$as_echo_n "checking whether $CC accepts -Wpointer-arith... " >&6; }
17842		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843/* end confdefs.h.  */
17844
17845int
17846main ()
17847{
17848
17849  ;
17850  return 0;
17851}
17852_ACEOF
17853if ac_fn_c_try_compile "$LINENO"; then :
17854  ac_cv_prog_cc_optok=yes
17855else
17856  ac_cv_prog_cc_optok=no
17857fi
17858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17859		if test "$ac_cv_prog_cc_optok" = "yes"; then
17860			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17861$as_echo "yes" >&6; }
17862			CFLAGS="$ac_save_CFLAGS -Wpointer-arith"
17863		else
17864			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17865$as_echo "no" >&6; }
17866			CFLAGS=$ac_save_CFLAGS
17867		fi
17868
17869
17870
17871		ac_save_CFLAGS=$CFLAGS
17872		CFLAGS="-Wcast-align"
17873		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wcast-align" >&5
17874$as_echo_n "checking whether $CC accepts -Wcast-align... " >&6; }
17875		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876/* end confdefs.h.  */
17877
17878int
17879main ()
17880{
17881
17882  ;
17883  return 0;
17884}
17885_ACEOF
17886if ac_fn_c_try_compile "$LINENO"; then :
17887  ac_cv_prog_cc_optok=yes
17888else
17889  ac_cv_prog_cc_optok=no
17890fi
17891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892		if test "$ac_cv_prog_cc_optok" = "yes"; then
17893			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17894$as_echo "yes" >&6; }
17895			CFLAGS="$ac_save_CFLAGS -Wcast-align"
17896		else
17897			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17898$as_echo "no" >&6; }
17899			CFLAGS=$ac_save_CFLAGS
17900		fi
17901
17902
17903
17904		ac_save_CFLAGS=$CFLAGS
17905		CFLAGS="-Wwrite-strings"
17906		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wwrite-strings" >&5
17907$as_echo_n "checking whether $CC accepts -Wwrite-strings... " >&6; }
17908		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909/* end confdefs.h.  */
17910
17911int
17912main ()
17913{
17914
17915  ;
17916  return 0;
17917}
17918_ACEOF
17919if ac_fn_c_try_compile "$LINENO"; then :
17920  ac_cv_prog_cc_optok=yes
17921else
17922  ac_cv_prog_cc_optok=no
17923fi
17924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17925		if test "$ac_cv_prog_cc_optok" = "yes"; then
17926			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17927$as_echo "yes" >&6; }
17928			CFLAGS="$ac_save_CFLAGS -Wwrite-strings"
17929		else
17930			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17931$as_echo "no" >&6; }
17932			CFLAGS=$ac_save_CFLAGS
17933		fi
17934
17935
17936
17937		ac_save_CFLAGS=$CFLAGS
17938		CFLAGS="-Wstrict-prototypes"
17939		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wstrict-prototypes" >&5
17940$as_echo_n "checking whether $CC accepts -Wstrict-prototypes... " >&6; }
17941		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942/* end confdefs.h.  */
17943
17944int
17945main ()
17946{
17947
17948  ;
17949  return 0;
17950}
17951_ACEOF
17952if ac_fn_c_try_compile "$LINENO"; then :
17953  ac_cv_prog_cc_optok=yes
17954else
17955  ac_cv_prog_cc_optok=no
17956fi
17957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17958		if test "$ac_cv_prog_cc_optok" = "yes"; then
17959			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17960$as_echo "yes" >&6; }
17961			CFLAGS="$ac_save_CFLAGS -Wstrict-prototypes"
17962		else
17963			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17964$as_echo "no" >&6; }
17965			CFLAGS=$ac_save_CFLAGS
17966		fi
17967
17968
17969
17970		ac_save_CFLAGS=$CFLAGS
17971		CFLAGS="-Wmissing-prototypes"
17972		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wmissing-prototypes" >&5
17973$as_echo_n "checking whether $CC accepts -Wmissing-prototypes... " >&6; }
17974		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975/* end confdefs.h.  */
17976
17977int
17978main ()
17979{
17980
17981  ;
17982  return 0;
17983}
17984_ACEOF
17985if ac_fn_c_try_compile "$LINENO"; then :
17986  ac_cv_prog_cc_optok=yes
17987else
17988  ac_cv_prog_cc_optok=no
17989fi
17990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17991		if test "$ac_cv_prog_cc_optok" = "yes"; then
17992			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17993$as_echo "yes" >&6; }
17994			CFLAGS="$ac_save_CFLAGS -Wmissing-prototypes"
17995		else
17996			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17997$as_echo "no" >&6; }
17998			CFLAGS=$ac_save_CFLAGS
17999		fi
18000
18001
18002
18003		ac_save_CFLAGS=$CFLAGS
18004		CFLAGS="-Wnested-externs"
18005		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wnested-externs" >&5
18006$as_echo_n "checking whether $CC accepts -Wnested-externs... " >&6; }
18007		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008/* end confdefs.h.  */
18009
18010int
18011main ()
18012{
18013
18014  ;
18015  return 0;
18016}
18017_ACEOF
18018if ac_fn_c_try_compile "$LINENO"; then :
18019  ac_cv_prog_cc_optok=yes
18020else
18021  ac_cv_prog_cc_optok=no
18022fi
18023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18024		if test "$ac_cv_prog_cc_optok" = "yes"; then
18025			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18026$as_echo "yes" >&6; }
18027			CFLAGS="$ac_save_CFLAGS -Wnested-externs"
18028		else
18029			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18030$as_echo "no" >&6; }
18031			CFLAGS=$ac_save_CFLAGS
18032		fi
18033
18034
18035
18036		ac_save_CFLAGS=$CFLAGS
18037		CFLAGS="-Winline"
18038		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Winline" >&5
18039$as_echo_n "checking whether $CC accepts -Winline... " >&6; }
18040		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041/* end confdefs.h.  */
18042
18043int
18044main ()
18045{
18046
18047  ;
18048  return 0;
18049}
18050_ACEOF
18051if ac_fn_c_try_compile "$LINENO"; then :
18052  ac_cv_prog_cc_optok=yes
18053else
18054  ac_cv_prog_cc_optok=no
18055fi
18056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18057		if test "$ac_cv_prog_cc_optok" = "yes"; then
18058			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18059$as_echo "yes" >&6; }
18060			CFLAGS="$ac_save_CFLAGS -Winline"
18061		else
18062			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18063$as_echo "no" >&6; }
18064			CFLAGS=$ac_save_CFLAGS
18065		fi
18066
18067
18068
18069		ac_save_CFLAGS=$CFLAGS
18070		CFLAGS="-Wdisabled-optimization"
18071		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wdisabled-optimization" >&5
18072$as_echo_n "checking whether $CC accepts -Wdisabled-optimization... " >&6; }
18073		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18074/* end confdefs.h.  */
18075
18076int
18077main ()
18078{
18079
18080  ;
18081  return 0;
18082}
18083_ACEOF
18084if ac_fn_c_try_compile "$LINENO"; then :
18085  ac_cv_prog_cc_optok=yes
18086else
18087  ac_cv_prog_cc_optok=no
18088fi
18089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090		if test "$ac_cv_prog_cc_optok" = "yes"; then
18091			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18092$as_echo "yes" >&6; }
18093			CFLAGS="$ac_save_CFLAGS -Wdisabled-optimization"
18094		else
18095			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18096$as_echo "no" >&6; }
18097			CFLAGS=$ac_save_CFLAGS
18098		fi
18099
18100
18101#					AC_C_CFLAGS(-std=c89)
18102#					AC_C_CFLAGS(-pedantic)
18103#					AC_C_CFLAGS(-Werror)
18104
18105		ac_save_CFLAGS=$CFLAGS
18106		CFLAGS="-funsigned-char"
18107		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -funsigned-char" >&5
18108$as_echo_n "checking whether $CC accepts -funsigned-char... " >&6; }
18109		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110/* end confdefs.h.  */
18111
18112int
18113main ()
18114{
18115
18116  ;
18117  return 0;
18118}
18119_ACEOF
18120if ac_fn_c_try_compile "$LINENO"; then :
18121  ac_cv_prog_cc_optok=yes
18122else
18123  ac_cv_prog_cc_optok=no
18124fi
18125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18126		if test "$ac_cv_prog_cc_optok" = "yes"; then
18127			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18128$as_echo "yes" >&6; }
18129			CFLAGS="$ac_save_CFLAGS -funsigned-char"
18130		else
18131			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18132$as_echo "no" >&6; }
18133			CFLAGS=$ac_save_CFLAGS
18134		fi
18135
18136
18137				else
18138					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139$as_echo "no" >&6; }
18140				fi
18141
18142else
18143
18144				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18145$as_echo "no" >&6; }
18146
18147
18148fi
18149
18150
18151		#	Compile with extra-strict warnings?
18152
18153		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable alternate column names" >&5
18154$as_echo_n "checking whether to enable alternate column names... " >&6; }
18155		# Check whether --enable-alt-names was given.
18156if test "${enable_alt_names+set}" = set; then :
18157  enableval=$enable_alt_names;
18158				if test "$enableval" = yes
18159				then
18160
18161$as_echo "#define DN_COLUMN_NAMES 1" >>confdefs.h
18162
18163					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18164$as_echo "yes" >&6; }
18165				else
18166					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18167$as_echo "no" >&6; }
18168				fi
18169
18170else
18171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18172$as_echo "no" >&6; }
18173fi
18174
18175
18176		#	Alternate column names for DN
18177
18178		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote server status" >&5
18179$as_echo_n "checking whether to enable remote server status... " >&6; }
18180		# Check whether --enable-status was given.
18181if test "${enable_status+set}" = set; then :
18182  enableval=$enable_status;
18183				if test "$enableval" = yes
18184				then
18185
18186$as_echo "#define STATUS_ENABLED 1" >>confdefs.h
18187
18188					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18189$as_echo "yes" >&6; }
18190				else
18191					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18192$as_echo "no" >&6; }
18193				fi
18194
18195else
18196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18197$as_echo "no" >&6; }
18198fi
18199
18200
18201		#	Enable the STATUS opcode to check server status
18202
18203		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable date/time in verbose output" >&5
18204$as_echo_n "checking whether to disable date/time in verbose output... " >&6; }
18205		# Check whether --enable-date-logging was given.
18206if test "${enable_date_logging+set}" = set; then :
18207  enableval=$enable_date_logging;
18208				if test "$enableval" = yes
18209				then
18210					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18211$as_echo "no" >&6; }
18212
18213$as_echo "#define DISABLE_DATE_LOGGING 0" >>confdefs.h
18214
18215				else
18216					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18217$as_echo "yes" >&6; }
18218
18219$as_echo "#define DISABLE_DATE_LOGGING 1" >>confdefs.h
18220
18221				fi
18222
18223else
18224
18225				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18226$as_echo "no" >&6; }
18227
18228$as_echo "#define DISABLE_DATE_LOGGING 0" >>confdefs.h
18229
18230
18231fi
18232
18233
18234		#	Disable date/time in verbose output?
18235
18236		## @WEBROOT@ def for builds on homepage
18237		WEBROOT="/www/htdocs/mydns"
18238
18239
18240		## intl include dir
18241		INTLINCLUDE="-I\$(top_srcdir)/intl"
18242
18243
18244		## Include path and library for lib/ (libmydnsutil)
18245		UTILDIR="\$(top_srcdir)/lib"
18246		UTILINCLUDE="-I$UTILDIR"
18247		LIBUTIL="$UTILDIR/libmydnsutil.a"
18248
18249
18250
18251
18252		## Include path and library for src/lib/ (libmydns)
18253		MYDNSDIR="\$(top_srcdir)/src/lib"
18254		MYDNSINCLUDE="-I$MYDNSDIR"
18255		LIBMYDNS="$MYDNSDIR/libmydns.a"
18256
18257
18258
18259
18260		## Documentation directory
18261		DOCDIR="\$(top_srcdir)/doc"
18262
18263
18264			#  Set variables containing dirs
18265
18266ac_config_files="$ac_config_files contrib/Makefile intl/Makefile po/Makefile.in m4/Makefile Makefile lib/Makefile src/Makefile src/lib/Makefile src/mydns/Makefile src/util/Makefile pkg/Makefile doc/Makefile doc/mydns.8 doc/mydnscheck.8 doc/mydns.conf.5 doc/mydns-conf.8 doc/mydnsexport.8 doc/mydnsimport.8 doc/mydnsptrconvert.8 pkg/mydns-mysql.spec pkg/mydns-postgres.spec"
18267
18268
18269cat >confcache <<\_ACEOF
18270# This file is a shell script that caches the results of configure
18271# tests run on this system so they can be shared between configure
18272# scripts and configure runs, see configure's option --config-cache.
18273# It is not useful on other systems.  If it contains results you don't
18274# want to keep, you may remove or edit it.
18275#
18276# config.status only pays attention to the cache file if you give it
18277# the --recheck option to rerun configure.
18278#
18279# `ac_cv_env_foo' variables (set or unset) will be overridden when
18280# loading this file, other *unset* `ac_cv_foo' will be assigned the
18281# following values.
18282
18283_ACEOF
18284
18285# The following way of writing the cache mishandles newlines in values,
18286# but we know of no workaround that is simple, portable, and efficient.
18287# So, we kill variables containing newlines.
18288# Ultrix sh set writes to stderr and can't be redirected directly,
18289# and sets the high bit in the cache file unless we assign to the vars.
18290(
18291  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18292    eval ac_val=\$$ac_var
18293    case $ac_val in #(
18294    *${as_nl}*)
18295      case $ac_var in #(
18296      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18297$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18298      esac
18299      case $ac_var in #(
18300      _ | IFS | as_nl) ;; #(
18301      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18302      *) { eval $ac_var=; unset $ac_var;} ;;
18303      esac ;;
18304    esac
18305  done
18306
18307  (set) 2>&1 |
18308    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18309    *${as_nl}ac_space=\ *)
18310      # `set' does not quote correctly, so add quotes: double-quote
18311      # substitution turns \\\\ into \\, and sed turns \\ into \.
18312      sed -n \
18313	"s/'/'\\\\''/g;
18314	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18315      ;; #(
18316    *)
18317      # `set' quotes correctly as required by POSIX, so do not add quotes.
18318      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18319      ;;
18320    esac |
18321    sort
18322) |
18323  sed '
18324     /^ac_cv_env_/b end
18325     t clear
18326     :clear
18327     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18328     t end
18329     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18330     :end' >>confcache
18331if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18332  if test -w "$cache_file"; then
18333    test "x$cache_file" != "x/dev/null" &&
18334      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18335$as_echo "$as_me: updating cache $cache_file" >&6;}
18336    cat confcache >$cache_file
18337  else
18338    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18339$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18340  fi
18341fi
18342rm -f confcache
18343
18344test "x$prefix" = xNONE && prefix=$ac_default_prefix
18345# Let make expand exec_prefix.
18346test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18347
18348DEFS=-DHAVE_CONFIG_H
18349
18350ac_libobjs=
18351ac_ltlibobjs=
18352for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18353  # 1. Remove the extension, and $U if already installed.
18354  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18355  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18356  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18357  #    will be set to the directory where LIBOBJS objects are built.
18358  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18359  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18360done
18361LIBOBJS=$ac_libobjs
18362
18363LTLIBOBJS=$ac_ltlibobjs
18364
18365
18366if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18367  as_fn_error "conditional \"AMDEP\" was never defined.
18368Usually this means the macro was only invoked conditionally." "$LINENO" 5
18369fi
18370if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18371  as_fn_error "conditional \"am__fastdepCC\" was never defined.
18372Usually this means the macro was only invoked conditionally." "$LINENO" 5
18373fi
18374 if test -n "$EXEEXT"; then
18375  am__EXEEXT_TRUE=
18376  am__EXEEXT_FALSE='#'
18377else
18378  am__EXEEXT_TRUE='#'
18379  am__EXEEXT_FALSE=
18380fi
18381
18382
18383: ${CONFIG_STATUS=./config.status}
18384ac_write_fail=0
18385ac_clean_files_save=$ac_clean_files
18386ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18387{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18388$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18389as_write_fail=0
18390cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18391#! $SHELL
18392# Generated by $as_me.
18393# Run this file to recreate the current configuration.
18394# Compiler output produced by configure, useful for debugging
18395# configure, is in config.log if it exists.
18396
18397debug=false
18398ac_cs_recheck=false
18399ac_cs_silent=false
18400
18401SHELL=\${CONFIG_SHELL-$SHELL}
18402export SHELL
18403_ASEOF
18404cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18405## -------------------- ##
18406## M4sh Initialization. ##
18407## -------------------- ##
18408
18409# Be more Bourne compatible
18410DUALCASE=1; export DUALCASE # for MKS sh
18411if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18412  emulate sh
18413  NULLCMD=:
18414  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18415  # is contrary to our usage.  Disable this feature.
18416  alias -g '${1+"$@"}'='"$@"'
18417  setopt NO_GLOB_SUBST
18418else
18419  case `(set -o) 2>/dev/null` in #(
18420  *posix*) :
18421    set -o posix ;; #(
18422  *) :
18423     ;;
18424esac
18425fi
18426
18427
18428as_nl='
18429'
18430export as_nl
18431# Printing a long string crashes Solaris 7 /usr/bin/printf.
18432as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18433as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18434as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18435# Prefer a ksh shell builtin over an external printf program on Solaris,
18436# but without wasting forks for bash or zsh.
18437if test -z "$BASH_VERSION$ZSH_VERSION" \
18438    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18439  as_echo='print -r --'
18440  as_echo_n='print -rn --'
18441elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18442  as_echo='printf %s\n'
18443  as_echo_n='printf %s'
18444else
18445  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18446    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18447    as_echo_n='/usr/ucb/echo -n'
18448  else
18449    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18450    as_echo_n_body='eval
18451      arg=$1;
18452      case $arg in #(
18453      *"$as_nl"*)
18454	expr "X$arg" : "X\\(.*\\)$as_nl";
18455	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18456      esac;
18457      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18458    '
18459    export as_echo_n_body
18460    as_echo_n='sh -c $as_echo_n_body as_echo'
18461  fi
18462  export as_echo_body
18463  as_echo='sh -c $as_echo_body as_echo'
18464fi
18465
18466# The user is always right.
18467if test "${PATH_SEPARATOR+set}" != set; then
18468  PATH_SEPARATOR=:
18469  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18470    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18471      PATH_SEPARATOR=';'
18472  }
18473fi
18474
18475
18476# IFS
18477# We need space, tab and new line, in precisely that order.  Quoting is
18478# there to prevent editors from complaining about space-tab.
18479# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18480# splitting by setting IFS to empty value.)
18481IFS=" ""	$as_nl"
18482
18483# Find who we are.  Look in the path if we contain no directory separator.
18484case $0 in #((
18485  *[\\/]* ) as_myself=$0 ;;
18486  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18487for as_dir in $PATH
18488do
18489  IFS=$as_save_IFS
18490  test -z "$as_dir" && as_dir=.
18491    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18492  done
18493IFS=$as_save_IFS
18494
18495     ;;
18496esac
18497# We did not find ourselves, most probably we were run as `sh COMMAND'
18498# in which case we are not to be found in the path.
18499if test "x$as_myself" = x; then
18500  as_myself=$0
18501fi
18502if test ! -f "$as_myself"; then
18503  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18504  exit 1
18505fi
18506
18507# Unset variables that we do not need and which cause bugs (e.g. in
18508# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18509# suppresses any "Segmentation fault" message there.  '((' could
18510# trigger a bug in pdksh 5.2.14.
18511for as_var in BASH_ENV ENV MAIL MAILPATH
18512do eval test x\${$as_var+set} = xset \
18513  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18514done
18515PS1='$ '
18516PS2='> '
18517PS4='+ '
18518
18519# NLS nuisances.
18520LC_ALL=C
18521export LC_ALL
18522LANGUAGE=C
18523export LANGUAGE
18524
18525# CDPATH.
18526(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18527
18528
18529# as_fn_error ERROR [LINENO LOG_FD]
18530# ---------------------------------
18531# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18532# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18533# script with status $?, using 1 if that was 0.
18534as_fn_error ()
18535{
18536  as_status=$?; test $as_status -eq 0 && as_status=1
18537  if test "$3"; then
18538    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18539    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18540  fi
18541  $as_echo "$as_me: error: $1" >&2
18542  as_fn_exit $as_status
18543} # as_fn_error
18544
18545
18546# as_fn_set_status STATUS
18547# -----------------------
18548# Set $? to STATUS, without forking.
18549as_fn_set_status ()
18550{
18551  return $1
18552} # as_fn_set_status
18553
18554# as_fn_exit STATUS
18555# -----------------
18556# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18557as_fn_exit ()
18558{
18559  set +e
18560  as_fn_set_status $1
18561  exit $1
18562} # as_fn_exit
18563
18564# as_fn_unset VAR
18565# ---------------
18566# Portably unset VAR.
18567as_fn_unset ()
18568{
18569  { eval $1=; unset $1;}
18570}
18571as_unset=as_fn_unset
18572# as_fn_append VAR VALUE
18573# ----------------------
18574# Append the text in VALUE to the end of the definition contained in VAR. Take
18575# advantage of any shell optimizations that allow amortized linear growth over
18576# repeated appends, instead of the typical quadratic growth present in naive
18577# implementations.
18578if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18579  eval 'as_fn_append ()
18580  {
18581    eval $1+=\$2
18582  }'
18583else
18584  as_fn_append ()
18585  {
18586    eval $1=\$$1\$2
18587  }
18588fi # as_fn_append
18589
18590# as_fn_arith ARG...
18591# ------------------
18592# Perform arithmetic evaluation on the ARGs, and store the result in the
18593# global $as_val. Take advantage of shells that can avoid forks. The arguments
18594# must be portable across $(()) and expr.
18595if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18596  eval 'as_fn_arith ()
18597  {
18598    as_val=$(( $* ))
18599  }'
18600else
18601  as_fn_arith ()
18602  {
18603    as_val=`expr "$@" || test $? -eq 1`
18604  }
18605fi # as_fn_arith
18606
18607
18608if expr a : '\(a\)' >/dev/null 2>&1 &&
18609   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18610  as_expr=expr
18611else
18612  as_expr=false
18613fi
18614
18615if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18616  as_basename=basename
18617else
18618  as_basename=false
18619fi
18620
18621if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18622  as_dirname=dirname
18623else
18624  as_dirname=false
18625fi
18626
18627as_me=`$as_basename -- "$0" ||
18628$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18629	 X"$0" : 'X\(//\)$' \| \
18630	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18631$as_echo X/"$0" |
18632    sed '/^.*\/\([^/][^/]*\)\/*$/{
18633	    s//\1/
18634	    q
18635	  }
18636	  /^X\/\(\/\/\)$/{
18637	    s//\1/
18638	    q
18639	  }
18640	  /^X\/\(\/\).*/{
18641	    s//\1/
18642	    q
18643	  }
18644	  s/.*/./; q'`
18645
18646# Avoid depending upon Character Ranges.
18647as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18648as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18649as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18650as_cr_digits='0123456789'
18651as_cr_alnum=$as_cr_Letters$as_cr_digits
18652
18653ECHO_C= ECHO_N= ECHO_T=
18654case `echo -n x` in #(((((
18655-n*)
18656  case `echo 'xy\c'` in
18657  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18658  xy)  ECHO_C='\c';;
18659  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18660       ECHO_T='	';;
18661  esac;;
18662*)
18663  ECHO_N='-n';;
18664esac
18665
18666rm -f conf$$ conf$$.exe conf$$.file
18667if test -d conf$$.dir; then
18668  rm -f conf$$.dir/conf$$.file
18669else
18670  rm -f conf$$.dir
18671  mkdir conf$$.dir 2>/dev/null
18672fi
18673if (echo >conf$$.file) 2>/dev/null; then
18674  if ln -s conf$$.file conf$$ 2>/dev/null; then
18675    as_ln_s='ln -s'
18676    # ... but there are two gotchas:
18677    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18678    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18679    # In both cases, we have to default to `cp -p'.
18680    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18681      as_ln_s='cp -p'
18682  elif ln conf$$.file conf$$ 2>/dev/null; then
18683    as_ln_s=ln
18684  else
18685    as_ln_s='cp -p'
18686  fi
18687else
18688  as_ln_s='cp -p'
18689fi
18690rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18691rmdir conf$$.dir 2>/dev/null
18692
18693
18694# as_fn_mkdir_p
18695# -------------
18696# Create "$as_dir" as a directory, including parents if necessary.
18697as_fn_mkdir_p ()
18698{
18699
18700  case $as_dir in #(
18701  -*) as_dir=./$as_dir;;
18702  esac
18703  test -d "$as_dir" || eval $as_mkdir_p || {
18704    as_dirs=
18705    while :; do
18706      case $as_dir in #(
18707      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18708      *) as_qdir=$as_dir;;
18709      esac
18710      as_dirs="'$as_qdir' $as_dirs"
18711      as_dir=`$as_dirname -- "$as_dir" ||
18712$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18713	 X"$as_dir" : 'X\(//\)[^/]' \| \
18714	 X"$as_dir" : 'X\(//\)$' \| \
18715	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18716$as_echo X"$as_dir" |
18717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18718	    s//\1/
18719	    q
18720	  }
18721	  /^X\(\/\/\)[^/].*/{
18722	    s//\1/
18723	    q
18724	  }
18725	  /^X\(\/\/\)$/{
18726	    s//\1/
18727	    q
18728	  }
18729	  /^X\(\/\).*/{
18730	    s//\1/
18731	    q
18732	  }
18733	  s/.*/./; q'`
18734      test -d "$as_dir" && break
18735    done
18736    test -z "$as_dirs" || eval "mkdir $as_dirs"
18737  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18738
18739
18740} # as_fn_mkdir_p
18741if mkdir -p . 2>/dev/null; then
18742  as_mkdir_p='mkdir -p "$as_dir"'
18743else
18744  test -d ./-p && rmdir ./-p
18745  as_mkdir_p=false
18746fi
18747
18748if test -x / >/dev/null 2>&1; then
18749  as_test_x='test -x'
18750else
18751  if ls -dL / >/dev/null 2>&1; then
18752    as_ls_L_option=L
18753  else
18754    as_ls_L_option=
18755  fi
18756  as_test_x='
18757    eval sh -c '\''
18758      if test -d "$1"; then
18759	test -d "$1/.";
18760      else
18761	case $1 in #(
18762	-*)set "./$1";;
18763	esac;
18764	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18765	???[sx]*):;;*)false;;esac;fi
18766    '\'' sh
18767  '
18768fi
18769as_executable_p=$as_test_x
18770
18771# Sed expression to map a string onto a valid CPP name.
18772as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18773
18774# Sed expression to map a string onto a valid variable name.
18775as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18776
18777
18778exec 6>&1
18779## ----------------------------------- ##
18780## Main body of $CONFIG_STATUS script. ##
18781## ----------------------------------- ##
18782_ASEOF
18783test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18784
18785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18786# Save the log message, to keep $0 and so on meaningful, and to
18787# report actual input values of CONFIG_FILES etc. instead of their
18788# values after options handling.
18789ac_log="
18790This file was extended by mydns $as_me 1.2.8.31, which was
18791generated by GNU Autoconf 2.65.  Invocation command line was
18792
18793  CONFIG_FILES    = $CONFIG_FILES
18794  CONFIG_HEADERS  = $CONFIG_HEADERS
18795  CONFIG_LINKS    = $CONFIG_LINKS
18796  CONFIG_COMMANDS = $CONFIG_COMMANDS
18797  $ $0 $@
18798
18799on `(hostname || uname -n) 2>/dev/null | sed 1q`
18800"
18801
18802_ACEOF
18803
18804case $ac_config_files in *"
18805"*) set x $ac_config_files; shift; ac_config_files=$*;;
18806esac
18807
18808case $ac_config_headers in *"
18809"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18810esac
18811
18812
18813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18814# Files that config.status was made for.
18815config_files="$ac_config_files"
18816config_headers="$ac_config_headers"
18817config_commands="$ac_config_commands"
18818
18819_ACEOF
18820
18821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18822ac_cs_usage="\
18823\`$as_me' instantiates files and other configuration actions
18824from templates according to the current configuration.  Unless the files
18825and actions are specified as TAGs, all are instantiated by default.
18826
18827Usage: $0 [OPTION]... [TAG]...
18828
18829  -h, --help       print this help, then exit
18830  -V, --version    print version number and configuration settings, then exit
18831      --config     print configuration, then exit
18832  -q, --quiet, --silent
18833                   do not print progress messages
18834  -d, --debug      don't remove temporary files
18835      --recheck    update $as_me by reconfiguring in the same conditions
18836      --file=FILE[:TEMPLATE]
18837                   instantiate the configuration file FILE
18838      --header=FILE[:TEMPLATE]
18839                   instantiate the configuration header FILE
18840
18841Configuration files:
18842$config_files
18843
18844Configuration headers:
18845$config_headers
18846
18847Configuration commands:
18848$config_commands
18849
18850Report bugs to <http://bugs.mydns-ng.com/>."
18851
18852_ACEOF
18853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18854ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18855ac_cs_version="\\
18856mydns config.status 1.2.8.31
18857configured by $0, generated by GNU Autoconf 2.65,
18858  with options \\"\$ac_cs_config\\"
18859
18860Copyright (C) 2009 Free Software Foundation, Inc.
18861This config.status script is free software; the Free Software Foundation
18862gives unlimited permission to copy, distribute and modify it."
18863
18864ac_pwd='$ac_pwd'
18865srcdir='$srcdir'
18866INSTALL='$INSTALL'
18867MKDIR_P='$MKDIR_P'
18868AWK='$AWK'
18869test -n "\$AWK" || AWK=awk
18870_ACEOF
18871
18872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18873# The default lists apply if the user does not specify any file.
18874ac_need_defaults=:
18875while test $# != 0
18876do
18877  case $1 in
18878  --*=*)
18879    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18880    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18881    ac_shift=:
18882    ;;
18883  *)
18884    ac_option=$1
18885    ac_optarg=$2
18886    ac_shift=shift
18887    ;;
18888  esac
18889
18890  case $ac_option in
18891  # Handling of the options.
18892  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18893    ac_cs_recheck=: ;;
18894  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18895    $as_echo "$ac_cs_version"; exit ;;
18896  --config | --confi | --conf | --con | --co | --c )
18897    $as_echo "$ac_cs_config"; exit ;;
18898  --debug | --debu | --deb | --de | --d | -d )
18899    debug=: ;;
18900  --file | --fil | --fi | --f )
18901    $ac_shift
18902    case $ac_optarg in
18903    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18904    esac
18905    as_fn_append CONFIG_FILES " '$ac_optarg'"
18906    ac_need_defaults=false;;
18907  --header | --heade | --head | --hea )
18908    $ac_shift
18909    case $ac_optarg in
18910    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18911    esac
18912    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18913    ac_need_defaults=false;;
18914  --he | --h)
18915    # Conflict between --help and --header
18916    as_fn_error "ambiguous option: \`$1'
18917Try \`$0 --help' for more information.";;
18918  --help | --hel | -h )
18919    $as_echo "$ac_cs_usage"; exit ;;
18920  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18921  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18922    ac_cs_silent=: ;;
18923
18924  # This is an error.
18925  -*) as_fn_error "unrecognized option: \`$1'
18926Try \`$0 --help' for more information." ;;
18927
18928  *) as_fn_append ac_config_targets " $1"
18929     ac_need_defaults=false ;;
18930
18931  esac
18932  shift
18933done
18934
18935ac_configure_extra_args=
18936
18937if $ac_cs_silent; then
18938  exec 6>/dev/null
18939  ac_configure_extra_args="$ac_configure_extra_args --silent"
18940fi
18941
18942_ACEOF
18943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18944if \$ac_cs_recheck; then
18945  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18946  shift
18947  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18948  CONFIG_SHELL='$SHELL'
18949  export CONFIG_SHELL
18950  exec "\$@"
18951fi
18952
18953_ACEOF
18954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18955exec 5>>config.log
18956{
18957  echo
18958  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18959## Running $as_me. ##
18960_ASBOX
18961  $as_echo "$ac_log"
18962} >&5
18963
18964_ACEOF
18965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18966#
18967# INIT-COMMANDS
18968#
18969AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18970
18971
18972# The HP-UX ksh and POSIX shell print the target directory to stdout
18973# if CDPATH is set.
18974(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18975
18976sed_quote_subst='$sed_quote_subst'
18977double_quote_subst='$double_quote_subst'
18978delay_variable_subst='$delay_variable_subst'
18979macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18980macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18981enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18982enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18983pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18984enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18985host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18986host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18987host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18988build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18989build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18990build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18991SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18992Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18993GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18994EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18995FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18996LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18997NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18998LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18999max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19000ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19001exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19002lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19003lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19004lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19005reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19006reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19007OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19008deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19009file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19010AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19011AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19012STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19013RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19014old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19015old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19016old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19017CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19018CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19019compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19020GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19021lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19022lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19023lt_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"`'
19024lt_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"`'
19025objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19026SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19027ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19028MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19029lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19030lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19031lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19032lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19033lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19034need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19035DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19036NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19037LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19038OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19039OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19040libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19041shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19042extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19043archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19044enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19045export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19046whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19047compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19048old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19049old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19050archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19051archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19052module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19053module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19054with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19055allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19056no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19057hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19058hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19059hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19060hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19061hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19062hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19063hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19064hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19065inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19066link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19067fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19068always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19069export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19070exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19071include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19072prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19073file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19074variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19075need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19076need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19077version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19078runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19079shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19080shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19081libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19082library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19083soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19084postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19085postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19086finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19087finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19088hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19089sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19090sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19091hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19092enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19093enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19094enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19095old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19096striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19097
19098LTCC='$LTCC'
19099LTCFLAGS='$LTCFLAGS'
19100compiler='$compiler_DEFAULT'
19101
19102# Quote evaled strings.
19103for var in SED \
19104GREP \
19105EGREP \
19106FGREP \
19107LD \
19108NM \
19109LN_S \
19110lt_SP2NL \
19111lt_NL2SP \
19112reload_flag \
19113OBJDUMP \
19114deplibs_check_method \
19115file_magic_cmd \
19116AR \
19117AR_FLAGS \
19118STRIP \
19119RANLIB \
19120CC \
19121CFLAGS \
19122compiler \
19123lt_cv_sys_global_symbol_pipe \
19124lt_cv_sys_global_symbol_to_cdecl \
19125lt_cv_sys_global_symbol_to_c_name_address \
19126lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19127SHELL \
19128ECHO \
19129lt_prog_compiler_no_builtin_flag \
19130lt_prog_compiler_wl \
19131lt_prog_compiler_pic \
19132lt_prog_compiler_static \
19133lt_cv_prog_compiler_c_o \
19134need_locks \
19135DSYMUTIL \
19136NMEDIT \
19137LIPO \
19138OTOOL \
19139OTOOL64 \
19140shrext_cmds \
19141export_dynamic_flag_spec \
19142whole_archive_flag_spec \
19143compiler_needs_object \
19144with_gnu_ld \
19145allow_undefined_flag \
19146no_undefined_flag \
19147hardcode_libdir_flag_spec \
19148hardcode_libdir_flag_spec_ld \
19149hardcode_libdir_separator \
19150fix_srcfile_path \
19151exclude_expsyms \
19152include_expsyms \
19153file_list_spec \
19154variables_saved_for_relink \
19155libname_spec \
19156library_names_spec \
19157soname_spec \
19158finish_eval \
19159old_striplib \
19160striplib; do
19161    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19162    *[\\\\\\\`\\"\\\$]*)
19163      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19164      ;;
19165    *)
19166      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19167      ;;
19168    esac
19169done
19170
19171# Double-quote double-evaled strings.
19172for var in reload_cmds \
19173old_postinstall_cmds \
19174old_postuninstall_cmds \
19175old_archive_cmds \
19176extract_expsyms_cmds \
19177old_archive_from_new_cmds \
19178old_archive_from_expsyms_cmds \
19179archive_cmds \
19180archive_expsym_cmds \
19181module_cmds \
19182module_expsym_cmds \
19183export_symbols_cmds \
19184prelink_cmds \
19185postinstall_cmds \
19186postuninstall_cmds \
19187finish_cmds \
19188sys_lib_search_path_spec \
19189sys_lib_dlsearch_path_spec; do
19190    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19191    *[\\\\\\\`\\"\\\$]*)
19192      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19193      ;;
19194    *)
19195      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19196      ;;
19197    esac
19198done
19199
19200# Fix-up fallback echo if it was mangled by the above quoting rules.
19201case \$lt_ECHO in
19202*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19203  ;;
19204esac
19205
19206ac_aux_dir='$ac_aux_dir'
19207xsi_shell='$xsi_shell'
19208lt_shell_append='$lt_shell_append'
19209
19210# See if we are running on zsh, and set the options which allow our
19211# commands through without removal of \ escapes INIT.
19212if test -n "\${ZSH_VERSION+set}" ; then
19213   setopt NO_GLOB_SUBST
19214fi
19215
19216
19217    PACKAGE='$PACKAGE'
19218    VERSION='$VERSION'
19219    TIMESTAMP='$TIMESTAMP'
19220    RM='$RM'
19221    ofile='$ofile'
19222
19223
19224
19225# Capture the value of obsolete ALL_LINGUAS because we need it to compute
19226    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19227    # from automake.
19228    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19229    # Capture the value of LINGUAS because we need it to compute CATALOGS.
19230    LINGUAS="${LINGUAS-%UNSET%}"
19231
19232
19233_ACEOF
19234
19235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19236
19237# Handling of arguments.
19238for ac_config_target in $ac_config_targets
19239do
19240  case $ac_config_target in
19241    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19242    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19243    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19244    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19245    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
19246    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
19247    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19248    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
19249    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19250    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19251    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19252    "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19253    "src/mydns/Makefile") CONFIG_FILES="$CONFIG_FILES src/mydns/Makefile" ;;
19254    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
19255    "pkg/Makefile") CONFIG_FILES="$CONFIG_FILES pkg/Makefile" ;;
19256    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19257    "doc/mydns.8") CONFIG_FILES="$CONFIG_FILES doc/mydns.8" ;;
19258    "doc/mydnscheck.8") CONFIG_FILES="$CONFIG_FILES doc/mydnscheck.8" ;;
19259    "doc/mydns.conf.5") CONFIG_FILES="$CONFIG_FILES doc/mydns.conf.5" ;;
19260    "doc/mydns-conf.8") CONFIG_FILES="$CONFIG_FILES doc/mydns-conf.8" ;;
19261    "doc/mydnsexport.8") CONFIG_FILES="$CONFIG_FILES doc/mydnsexport.8" ;;
19262    "doc/mydnsimport.8") CONFIG_FILES="$CONFIG_FILES doc/mydnsimport.8" ;;
19263    "doc/mydnsptrconvert.8") CONFIG_FILES="$CONFIG_FILES doc/mydnsptrconvert.8" ;;
19264    "pkg/mydns-mysql.spec") CONFIG_FILES="$CONFIG_FILES pkg/mydns-mysql.spec" ;;
19265    "pkg/mydns-postgres.spec") CONFIG_FILES="$CONFIG_FILES pkg/mydns-postgres.spec" ;;
19266
19267  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19268  esac
19269done
19270
19271
19272# If the user did not use the arguments to specify the items to instantiate,
19273# then the envvar interface is used.  Set only those that are not.
19274# We use the long form for the default assignment because of an extremely
19275# bizarre bug on SunOS 4.1.3.
19276if $ac_need_defaults; then
19277  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19278  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19279  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19280fi
19281
19282# Have a temporary directory for convenience.  Make it in the build tree
19283# simply because there is no reason against having it here, and in addition,
19284# creating and moving files from /tmp can sometimes cause problems.
19285# Hook for its removal unless debugging.
19286# Note that there is a small window in which the directory will not be cleaned:
19287# after its creation but before its name has been assigned to `$tmp'.
19288$debug ||
19289{
19290  tmp=
19291  trap 'exit_status=$?
19292  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19293' 0
19294  trap 'as_fn_exit 1' 1 2 13 15
19295}
19296# Create a (secure) tmp directory for tmp files.
19297
19298{
19299  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19300  test -n "$tmp" && test -d "$tmp"
19301}  ||
19302{
19303  tmp=./conf$$-$RANDOM
19304  (umask 077 && mkdir "$tmp")
19305} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19306
19307# Set up the scripts for CONFIG_FILES section.
19308# No need to generate them if there are no CONFIG_FILES.
19309# This happens for instance with `./config.status config.h'.
19310if test -n "$CONFIG_FILES"; then
19311
19312
19313ac_cr=`echo X | tr X '\015'`
19314# On cygwin, bash can eat \r inside `` if the user requested igncr.
19315# But we know of no other shell where ac_cr would be empty at this
19316# point, so we can use a bashism as a fallback.
19317if test "x$ac_cr" = x; then
19318  eval ac_cr=\$\'\\r\'
19319fi
19320ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19321if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19322  ac_cs_awk_cr='\r'
19323else
19324  ac_cs_awk_cr=$ac_cr
19325fi
19326
19327echo 'BEGIN {' >"$tmp/subs1.awk" &&
19328_ACEOF
19329
19330
19331{
19332  echo "cat >conf$$subs.awk <<_ACEOF" &&
19333  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19334  echo "_ACEOF"
19335} >conf$$subs.sh ||
19336  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19337ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19338ac_delim='%!_!# '
19339for ac_last_try in false false false false false :; do
19340  . ./conf$$subs.sh ||
19341    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19342
19343  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19344  if test $ac_delim_n = $ac_delim_num; then
19345    break
19346  elif $ac_last_try; then
19347    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19348  else
19349    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19350  fi
19351done
19352rm -f conf$$subs.sh
19353
19354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19355cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19356_ACEOF
19357sed -n '
19358h
19359s/^/S["/; s/!.*/"]=/
19360p
19361g
19362s/^[^!]*!//
19363:repl
19364t repl
19365s/'"$ac_delim"'$//
19366t delim
19367:nl
19368h
19369s/\(.\{148\}\)..*/\1/
19370t more1
19371s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19372p
19373n
19374b repl
19375:more1
19376s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19377p
19378g
19379s/.\{148\}//
19380t nl
19381:delim
19382h
19383s/\(.\{148\}\)..*/\1/
19384t more2
19385s/["\\]/\\&/g; s/^/"/; s/$/"/
19386p
19387b
19388:more2
19389s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19390p
19391g
19392s/.\{148\}//
19393t delim
19394' <conf$$subs.awk | sed '
19395/^[^""]/{
19396  N
19397  s/\n//
19398}
19399' >>$CONFIG_STATUS || ac_write_fail=1
19400rm -f conf$$subs.awk
19401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19402_ACAWK
19403cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19404  for (key in S) S_is_set[key] = 1
19405  FS = ""
19406
19407}
19408{
19409  line = $ 0
19410  nfields = split(line, field, "@")
19411  substed = 0
19412  len = length(field[1])
19413  for (i = 2; i < nfields; i++) {
19414    key = field[i]
19415    keylen = length(key)
19416    if (S_is_set[key]) {
19417      value = S[key]
19418      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19419      len += length(value) + length(field[++i])
19420      substed = 1
19421    } else
19422      len += 1 + keylen
19423  }
19424
19425  print line
19426}
19427
19428_ACAWK
19429_ACEOF
19430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19431if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19432  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19433else
19434  cat
19435fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19436  || as_fn_error "could not setup config files machinery" "$LINENO" 5
19437_ACEOF
19438
19439# VPATH may cause trouble with some makes, so we remove $(srcdir),
19440# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19441# trailing colons and then remove the whole line if VPATH becomes empty
19442# (actually we leave an empty line to preserve line numbers).
19443if test "x$srcdir" = x.; then
19444  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19445s/:*\$(srcdir):*/:/
19446s/:*\${srcdir}:*/:/
19447s/:*@srcdir@:*/:/
19448s/^\([^=]*=[	 ]*\):*/\1/
19449s/:*$//
19450s/^[^=]*=[	 ]*$//
19451}'
19452fi
19453
19454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19455fi # test -n "$CONFIG_FILES"
19456
19457# Set up the scripts for CONFIG_HEADERS section.
19458# No need to generate them if there are no CONFIG_HEADERS.
19459# This happens for instance with `./config.status Makefile'.
19460if test -n "$CONFIG_HEADERS"; then
19461cat >"$tmp/defines.awk" <<\_ACAWK ||
19462BEGIN {
19463_ACEOF
19464
19465# Transform confdefs.h into an awk script `defines.awk', embedded as
19466# here-document in config.status, that substitutes the proper values into
19467# config.h.in to produce config.h.
19468
19469# Create a delimiter string that does not exist in confdefs.h, to ease
19470# handling of long lines.
19471ac_delim='%!_!# '
19472for ac_last_try in false false :; do
19473  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19474  if test -z "$ac_t"; then
19475    break
19476  elif $ac_last_try; then
19477    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19478  else
19479    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19480  fi
19481done
19482
19483# For the awk script, D is an array of macro values keyed by name,
19484# likewise P contains macro parameters if any.  Preserve backslash
19485# newline sequences.
19486
19487ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19488sed -n '
19489s/.\{148\}/&'"$ac_delim"'/g
19490t rset
19491:rset
19492s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19493t def
19494d
19495:def
19496s/\\$//
19497t bsnl
19498s/["\\]/\\&/g
19499s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19500D["\1"]=" \3"/p
19501s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19502d
19503:bsnl
19504s/["\\]/\\&/g
19505s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19506D["\1"]=" \3\\\\\\n"\\/p
19507t cont
19508s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19509t cont
19510d
19511:cont
19512n
19513s/.\{148\}/&'"$ac_delim"'/g
19514t clear
19515:clear
19516s/\\$//
19517t bsnlc
19518s/["\\]/\\&/g; s/^/"/; s/$/"/p
19519d
19520:bsnlc
19521s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19522b cont
19523' <confdefs.h | sed '
19524s/'"$ac_delim"'/"\\\
19525"/g' >>$CONFIG_STATUS || ac_write_fail=1
19526
19527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19528  for (key in D) D_is_set[key] = 1
19529  FS = ""
19530}
19531/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19532  line = \$ 0
19533  split(line, arg, " ")
19534  if (arg[1] == "#") {
19535    defundef = arg[2]
19536    mac1 = arg[3]
19537  } else {
19538    defundef = substr(arg[1], 2)
19539    mac1 = arg[2]
19540  }
19541  split(mac1, mac2, "(") #)
19542  macro = mac2[1]
19543  prefix = substr(line, 1, index(line, defundef) - 1)
19544  if (D_is_set[macro]) {
19545    # Preserve the white space surrounding the "#".
19546    print prefix "define", macro P[macro] D[macro]
19547    next
19548  } else {
19549    # Replace #undef with comments.  This is necessary, for example,
19550    # in the case of _POSIX_SOURCE, which is predefined and required
19551    # on some systems where configure will not decide to define it.
19552    if (defundef == "undef") {
19553      print "/*", prefix defundef, macro, "*/"
19554      next
19555    }
19556  }
19557}
19558{ print }
19559_ACAWK
19560_ACEOF
19561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19562  as_fn_error "could not setup config headers machinery" "$LINENO" 5
19563fi # test -n "$CONFIG_HEADERS"
19564
19565
19566eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19567shift
19568for ac_tag
19569do
19570  case $ac_tag in
19571  :[FHLC]) ac_mode=$ac_tag; continue;;
19572  esac
19573  case $ac_mode$ac_tag in
19574  :[FHL]*:*);;
19575  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19576  :[FH]-) ac_tag=-:-;;
19577  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19578  esac
19579  ac_save_IFS=$IFS
19580  IFS=:
19581  set x $ac_tag
19582  IFS=$ac_save_IFS
19583  shift
19584  ac_file=$1
19585  shift
19586
19587  case $ac_mode in
19588  :L) ac_source=$1;;
19589  :[FH])
19590    ac_file_inputs=
19591    for ac_f
19592    do
19593      case $ac_f in
19594      -) ac_f="$tmp/stdin";;
19595      *) # Look for the file first in the build tree, then in the source tree
19596	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19597	 # because $ac_f cannot contain `:'.
19598	 test -f "$ac_f" ||
19599	   case $ac_f in
19600	   [\\/$]*) false;;
19601	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19602	   esac ||
19603	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19604      esac
19605      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19606      as_fn_append ac_file_inputs " '$ac_f'"
19607    done
19608
19609    # Let's still pretend it is `configure' which instantiates (i.e., don't
19610    # use $as_me), people would be surprised to read:
19611    #    /* config.h.  Generated by config.status.  */
19612    configure_input='Generated from '`
19613	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19614	`' by configure.'
19615    if test x"$ac_file" != x-; then
19616      configure_input="$ac_file.  $configure_input"
19617      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19618$as_echo "$as_me: creating $ac_file" >&6;}
19619    fi
19620    # Neutralize special characters interpreted by sed in replacement strings.
19621    case $configure_input in #(
19622    *\&* | *\|* | *\\* )
19623       ac_sed_conf_input=`$as_echo "$configure_input" |
19624       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19625    *) ac_sed_conf_input=$configure_input;;
19626    esac
19627
19628    case $ac_tag in
19629    *:-:* | *:-) cat >"$tmp/stdin" \
19630      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19631    esac
19632    ;;
19633  esac
19634
19635  ac_dir=`$as_dirname -- "$ac_file" ||
19636$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19637	 X"$ac_file" : 'X\(//\)[^/]' \| \
19638	 X"$ac_file" : 'X\(//\)$' \| \
19639	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19640$as_echo X"$ac_file" |
19641    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19642	    s//\1/
19643	    q
19644	  }
19645	  /^X\(\/\/\)[^/].*/{
19646	    s//\1/
19647	    q
19648	  }
19649	  /^X\(\/\/\)$/{
19650	    s//\1/
19651	    q
19652	  }
19653	  /^X\(\/\).*/{
19654	    s//\1/
19655	    q
19656	  }
19657	  s/.*/./; q'`
19658  as_dir="$ac_dir"; as_fn_mkdir_p
19659  ac_builddir=.
19660
19661case "$ac_dir" in
19662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19663*)
19664  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19665  # A ".." for each directory in $ac_dir_suffix.
19666  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19667  case $ac_top_builddir_sub in
19668  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19669  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19670  esac ;;
19671esac
19672ac_abs_top_builddir=$ac_pwd
19673ac_abs_builddir=$ac_pwd$ac_dir_suffix
19674# for backward compatibility:
19675ac_top_builddir=$ac_top_build_prefix
19676
19677case $srcdir in
19678  .)  # We are building in place.
19679    ac_srcdir=.
19680    ac_top_srcdir=$ac_top_builddir_sub
19681    ac_abs_top_srcdir=$ac_pwd ;;
19682  [\\/]* | ?:[\\/]* )  # Absolute name.
19683    ac_srcdir=$srcdir$ac_dir_suffix;
19684    ac_top_srcdir=$srcdir
19685    ac_abs_top_srcdir=$srcdir ;;
19686  *) # Relative name.
19687    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19688    ac_top_srcdir=$ac_top_build_prefix$srcdir
19689    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19690esac
19691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19692
19693
19694  case $ac_mode in
19695  :F)
19696  #
19697  # CONFIG_FILE
19698  #
19699
19700  case $INSTALL in
19701  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19702  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19703  esac
19704  ac_MKDIR_P=$MKDIR_P
19705  case $MKDIR_P in
19706  [\\/$]* | ?:[\\/]* ) ;;
19707  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19708  esac
19709_ACEOF
19710
19711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19712# If the template does not know about datarootdir, expand it.
19713# FIXME: This hack should be removed a few years after 2.60.
19714ac_datarootdir_hack=; ac_datarootdir_seen=
19715ac_sed_dataroot='
19716/datarootdir/ {
19717  p
19718  q
19719}
19720/@datadir@/p
19721/@docdir@/p
19722/@infodir@/p
19723/@localedir@/p
19724/@mandir@/p'
19725case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19726*datarootdir*) ac_datarootdir_seen=yes;;
19727*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19728  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19729$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19730_ACEOF
19731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19732  ac_datarootdir_hack='
19733  s&@datadir@&$datadir&g
19734  s&@docdir@&$docdir&g
19735  s&@infodir@&$infodir&g
19736  s&@localedir@&$localedir&g
19737  s&@mandir@&$mandir&g
19738  s&\\\${datarootdir}&$datarootdir&g' ;;
19739esac
19740_ACEOF
19741
19742# Neutralize VPATH when `$srcdir' = `.'.
19743# Shell code in configure.ac might set extrasub.
19744# FIXME: do we really want to maintain this feature?
19745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19746ac_sed_extra="$ac_vpsub
19747$extrasub
19748_ACEOF
19749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19750:t
19751/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19752s|@configure_input@|$ac_sed_conf_input|;t t
19753s&@top_builddir@&$ac_top_builddir_sub&;t t
19754s&@top_build_prefix@&$ac_top_build_prefix&;t t
19755s&@srcdir@&$ac_srcdir&;t t
19756s&@abs_srcdir@&$ac_abs_srcdir&;t t
19757s&@top_srcdir@&$ac_top_srcdir&;t t
19758s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19759s&@builddir@&$ac_builddir&;t t
19760s&@abs_builddir@&$ac_abs_builddir&;t t
19761s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19762s&@INSTALL@&$ac_INSTALL&;t t
19763s&@MKDIR_P@&$ac_MKDIR_P&;t t
19764$ac_datarootdir_hack
19765"
19766eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19767  || as_fn_error "could not create $ac_file" "$LINENO" 5
19768
19769test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19770  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19771  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19772  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19773which seems to be undefined.  Please make sure it is defined." >&5
19774$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19775which seems to be undefined.  Please make sure it is defined." >&2;}
19776
19777  rm -f "$tmp/stdin"
19778  case $ac_file in
19779  -) cat "$tmp/out" && rm -f "$tmp/out";;
19780  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19781  esac \
19782  || as_fn_error "could not create $ac_file" "$LINENO" 5
19783 ;;
19784  :H)
19785  #
19786  # CONFIG_HEADER
19787  #
19788  if test x"$ac_file" != x-; then
19789    {
19790      $as_echo "/* $configure_input  */" \
19791      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19792    } >"$tmp/config.h" \
19793      || as_fn_error "could not create $ac_file" "$LINENO" 5
19794    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19795      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19796$as_echo "$as_me: $ac_file is unchanged" >&6;}
19797    else
19798      rm -f "$ac_file"
19799      mv "$tmp/config.h" "$ac_file" \
19800	|| as_fn_error "could not create $ac_file" "$LINENO" 5
19801    fi
19802  else
19803    $as_echo "/* $configure_input  */" \
19804      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19805      || as_fn_error "could not create -" "$LINENO" 5
19806  fi
19807# Compute "$ac_file"'s index in $config_headers.
19808_am_arg="$ac_file"
19809_am_stamp_count=1
19810for _am_header in $config_headers :; do
19811  case $_am_header in
19812    $_am_arg | $_am_arg:* )
19813      break ;;
19814    * )
19815      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19816  esac
19817done
19818echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19819$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19820	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19821	 X"$_am_arg" : 'X\(//\)$' \| \
19822	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19823$as_echo X"$_am_arg" |
19824    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19825	    s//\1/
19826	    q
19827	  }
19828	  /^X\(\/\/\)[^/].*/{
19829	    s//\1/
19830	    q
19831	  }
19832	  /^X\(\/\/\)$/{
19833	    s//\1/
19834	    q
19835	  }
19836	  /^X\(\/\).*/{
19837	    s//\1/
19838	    q
19839	  }
19840	  s/.*/./; q'`/stamp-h$_am_stamp_count
19841 ;;
19842
19843  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19844$as_echo "$as_me: executing $ac_file commands" >&6;}
19845 ;;
19846  esac
19847
19848
19849  case $ac_file$ac_mode in
19850    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19851  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19852  # are listed without --file.  Let's play safe and only enable the eval
19853  # if we detect the quoting.
19854  case $CONFIG_FILES in
19855  *\'*) eval set x "$CONFIG_FILES" ;;
19856  *)   set x $CONFIG_FILES ;;
19857  esac
19858  shift
19859  for mf
19860  do
19861    # Strip MF so we end up with the name of the file.
19862    mf=`echo "$mf" | sed -e 's/:.*$//'`
19863    # Check whether this is an Automake generated Makefile or not.
19864    # We used to match only the files named `Makefile.in', but
19865    # some people rename them; so instead we look at the file content.
19866    # Grep'ing the first line is not enough: some people post-process
19867    # each Makefile.in and add a new line on top of each file to say so.
19868    # Grep'ing the whole file is not good either: AIX grep has a line
19869    # limit of 2048, but all sed's we know have understand at least 4000.
19870    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19871      dirpart=`$as_dirname -- "$mf" ||
19872$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19873	 X"$mf" : 'X\(//\)[^/]' \| \
19874	 X"$mf" : 'X\(//\)$' \| \
19875	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19876$as_echo X"$mf" |
19877    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19878	    s//\1/
19879	    q
19880	  }
19881	  /^X\(\/\/\)[^/].*/{
19882	    s//\1/
19883	    q
19884	  }
19885	  /^X\(\/\/\)$/{
19886	    s//\1/
19887	    q
19888	  }
19889	  /^X\(\/\).*/{
19890	    s//\1/
19891	    q
19892	  }
19893	  s/.*/./; q'`
19894    else
19895      continue
19896    fi
19897    # Extract the definition of DEPDIR, am__include, and am__quote
19898    # from the Makefile without running `make'.
19899    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19900    test -z "$DEPDIR" && continue
19901    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19902    test -z "am__include" && continue
19903    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19904    # When using ansi2knr, U may be empty or an underscore; expand it
19905    U=`sed -n 's/^U = //p' < "$mf"`
19906    # Find all dependency output files, they are included files with
19907    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19908    # simplest approach to changing $(DEPDIR) to its actual value in the
19909    # expansion.
19910    for file in `sed -n "
19911      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19912	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19913      # Make sure the directory exists.
19914      test -f "$dirpart/$file" && continue
19915      fdir=`$as_dirname -- "$file" ||
19916$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19917	 X"$file" : 'X\(//\)[^/]' \| \
19918	 X"$file" : 'X\(//\)$' \| \
19919	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19920$as_echo X"$file" |
19921    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19922	    s//\1/
19923	    q
19924	  }
19925	  /^X\(\/\/\)[^/].*/{
19926	    s//\1/
19927	    q
19928	  }
19929	  /^X\(\/\/\)$/{
19930	    s//\1/
19931	    q
19932	  }
19933	  /^X\(\/\).*/{
19934	    s//\1/
19935	    q
19936	  }
19937	  s/.*/./; q'`
19938      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19939      # echo "creating $dirpart/$file"
19940      echo '# dummy' > "$dirpart/$file"
19941    done
19942  done
19943}
19944 ;;
19945    "libtool":C)
19946
19947    # See if we are running on zsh, and set the options which allow our
19948    # commands through without removal of \ escapes.
19949    if test -n "${ZSH_VERSION+set}" ; then
19950      setopt NO_GLOB_SUBST
19951    fi
19952
19953    cfgfile="${ofile}T"
19954    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19955    $RM "$cfgfile"
19956
19957    cat <<_LT_EOF >> "$cfgfile"
19958#! $SHELL
19959
19960# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19961# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19962# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19963# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19964#
19965#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19966#                 2006, 2007, 2008 Free Software Foundation, Inc.
19967#   Written by Gordon Matzigkeit, 1996
19968#
19969#   This file is part of GNU Libtool.
19970#
19971# GNU Libtool is free software; you can redistribute it and/or
19972# modify it under the terms of the GNU General Public License as
19973# published by the Free Software Foundation; either version 2 of
19974# the License, or (at your option) any later version.
19975#
19976# As a special exception to the GNU General Public License,
19977# if you distribute this file as part of a program or library that
19978# is built using GNU Libtool, you may include this file under the
19979# same distribution terms that you use for the rest of that program.
19980#
19981# GNU Libtool is distributed in the hope that it will be useful,
19982# but WITHOUT ANY WARRANTY; without even the implied warranty of
19983# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19984# GNU General Public License for more details.
19985#
19986# You should have received a copy of the GNU General Public License
19987# along with GNU Libtool; see the file COPYING.  If not, a copy
19988# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19989# obtained by writing to the Free Software Foundation, Inc.,
19990# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19991
19992
19993# The names of the tagged configurations supported by this script.
19994available_tags=""
19995
19996# ### BEGIN LIBTOOL CONFIG
19997
19998# Which release of libtool.m4 was used?
19999macro_version=$macro_version
20000macro_revision=$macro_revision
20001
20002# Whether or not to build shared libraries.
20003build_libtool_libs=$enable_shared
20004
20005# Whether or not to build static libraries.
20006build_old_libs=$enable_static
20007
20008# What type of objects to build.
20009pic_mode=$pic_mode
20010
20011# Whether or not to optimize for fast installation.
20012fast_install=$enable_fast_install
20013
20014# The host system.
20015host_alias=$host_alias
20016host=$host
20017host_os=$host_os
20018
20019# The build system.
20020build_alias=$build_alias
20021build=$build
20022build_os=$build_os
20023
20024# A sed program that does not truncate output.
20025SED=$lt_SED
20026
20027# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20028Xsed="\$SED -e 1s/^X//"
20029
20030# A grep program that handles long lines.
20031GREP=$lt_GREP
20032
20033# An ERE matcher.
20034EGREP=$lt_EGREP
20035
20036# A literal string matcher.
20037FGREP=$lt_FGREP
20038
20039# A BSD- or MS-compatible name lister.
20040NM=$lt_NM
20041
20042# Whether we need soft or hard links.
20043LN_S=$lt_LN_S
20044
20045# What is the maximum length of a command?
20046max_cmd_len=$max_cmd_len
20047
20048# Object file suffix (normally "o").
20049objext=$ac_objext
20050
20051# Executable file suffix (normally "").
20052exeext=$exeext
20053
20054# whether the shell understands "unset".
20055lt_unset=$lt_unset
20056
20057# turn spaces into newlines.
20058SP2NL=$lt_lt_SP2NL
20059
20060# turn newlines into spaces.
20061NL2SP=$lt_lt_NL2SP
20062
20063# How to create reloadable object files.
20064reload_flag=$lt_reload_flag
20065reload_cmds=$lt_reload_cmds
20066
20067# An object symbol dumper.
20068OBJDUMP=$lt_OBJDUMP
20069
20070# Method to check whether dependent libraries are shared objects.
20071deplibs_check_method=$lt_deplibs_check_method
20072
20073# Command to use when deplibs_check_method == "file_magic".
20074file_magic_cmd=$lt_file_magic_cmd
20075
20076# The archiver.
20077AR=$lt_AR
20078AR_FLAGS=$lt_AR_FLAGS
20079
20080# A symbol stripping program.
20081STRIP=$lt_STRIP
20082
20083# Commands used to install an old-style archive.
20084RANLIB=$lt_RANLIB
20085old_postinstall_cmds=$lt_old_postinstall_cmds
20086old_postuninstall_cmds=$lt_old_postuninstall_cmds
20087
20088# A C compiler.
20089LTCC=$lt_CC
20090
20091# LTCC compiler flags.
20092LTCFLAGS=$lt_CFLAGS
20093
20094# Take the output of nm and produce a listing of raw symbols and C names.
20095global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20096
20097# Transform the output of nm in a proper C declaration.
20098global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20099
20100# Transform the output of nm in a C name address pair.
20101global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20102
20103# Transform the output of nm in a C name address pair when lib prefix is needed.
20104global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20105
20106# The name of the directory that contains temporary libtool files.
20107objdir=$objdir
20108
20109# Shell to use when invoking shell scripts.
20110SHELL=$lt_SHELL
20111
20112# An echo program that does not interpret backslashes.
20113ECHO=$lt_ECHO
20114
20115# Used to examine libraries when file_magic_cmd begins with "file".
20116MAGIC_CMD=$MAGIC_CMD
20117
20118# Must we lock files when doing compilation?
20119need_locks=$lt_need_locks
20120
20121# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20122DSYMUTIL=$lt_DSYMUTIL
20123
20124# Tool to change global to local symbols on Mac OS X.
20125NMEDIT=$lt_NMEDIT
20126
20127# Tool to manipulate fat objects and archives on Mac OS X.
20128LIPO=$lt_LIPO
20129
20130# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20131OTOOL=$lt_OTOOL
20132
20133# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20134OTOOL64=$lt_OTOOL64
20135
20136# Old archive suffix (normally "a").
20137libext=$libext
20138
20139# Shared library suffix (normally ".so").
20140shrext_cmds=$lt_shrext_cmds
20141
20142# The commands to extract the exported symbol list from a shared archive.
20143extract_expsyms_cmds=$lt_extract_expsyms_cmds
20144
20145# Variables whose values should be saved in libtool wrapper scripts and
20146# restored at link time.
20147variables_saved_for_relink=$lt_variables_saved_for_relink
20148
20149# Do we need the "lib" prefix for modules?
20150need_lib_prefix=$need_lib_prefix
20151
20152# Do we need a version for libraries?
20153need_version=$need_version
20154
20155# Library versioning type.
20156version_type=$version_type
20157
20158# Shared library runtime path variable.
20159runpath_var=$runpath_var
20160
20161# Shared library path variable.
20162shlibpath_var=$shlibpath_var
20163
20164# Is shlibpath searched before the hard-coded library search path?
20165shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20166
20167# Format of library name prefix.
20168libname_spec=$lt_libname_spec
20169
20170# List of archive names.  First name is the real one, the rest are links.
20171# The last name is the one that the linker finds with -lNAME
20172library_names_spec=$lt_library_names_spec
20173
20174# The coded name of the library, if different from the real name.
20175soname_spec=$lt_soname_spec
20176
20177# Command to use after installation of a shared archive.
20178postinstall_cmds=$lt_postinstall_cmds
20179
20180# Command to use after uninstallation of a shared archive.
20181postuninstall_cmds=$lt_postuninstall_cmds
20182
20183# Commands used to finish a libtool library installation in a directory.
20184finish_cmds=$lt_finish_cmds
20185
20186# As "finish_cmds", except a single script fragment to be evaled but
20187# not shown.
20188finish_eval=$lt_finish_eval
20189
20190# Whether we should hardcode library paths into libraries.
20191hardcode_into_libs=$hardcode_into_libs
20192
20193# Compile-time system search path for libraries.
20194sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20195
20196# Run-time system search path for libraries.
20197sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20198
20199# Whether dlopen is supported.
20200dlopen_support=$enable_dlopen
20201
20202# Whether dlopen of programs is supported.
20203dlopen_self=$enable_dlopen_self
20204
20205# Whether dlopen of statically linked programs is supported.
20206dlopen_self_static=$enable_dlopen_self_static
20207
20208# Commands to strip libraries.
20209old_striplib=$lt_old_striplib
20210striplib=$lt_striplib
20211
20212
20213# The linker used to build libraries.
20214LD=$lt_LD
20215
20216# Commands used to build an old-style archive.
20217old_archive_cmds=$lt_old_archive_cmds
20218
20219# A language specific compiler.
20220CC=$lt_compiler
20221
20222# Is the compiler the GNU compiler?
20223with_gcc=$GCC
20224
20225# Compiler flag to turn off builtin functions.
20226no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20227
20228# How to pass a linker flag through the compiler.
20229wl=$lt_lt_prog_compiler_wl
20230
20231# Additional compiler flags for building library objects.
20232pic_flag=$lt_lt_prog_compiler_pic
20233
20234# Compiler flag to prevent dynamic linking.
20235link_static_flag=$lt_lt_prog_compiler_static
20236
20237# Does compiler simultaneously support -c and -o options?
20238compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20239
20240# Whether or not to add -lc for building shared libraries.
20241build_libtool_need_lc=$archive_cmds_need_lc
20242
20243# Whether or not to disallow shared libs when runtime libs are static.
20244allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20245
20246# Compiler flag to allow reflexive dlopens.
20247export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20248
20249# Compiler flag to generate shared objects directly from archives.
20250whole_archive_flag_spec=$lt_whole_archive_flag_spec
20251
20252# Whether the compiler copes with passing no objects directly.
20253compiler_needs_object=$lt_compiler_needs_object
20254
20255# Create an old-style archive from a shared archive.
20256old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20257
20258# Create a temporary old-style archive to link instead of a shared archive.
20259old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20260
20261# Commands used to build a shared archive.
20262archive_cmds=$lt_archive_cmds
20263archive_expsym_cmds=$lt_archive_expsym_cmds
20264
20265# Commands used to build a loadable module if different from building
20266# a shared archive.
20267module_cmds=$lt_module_cmds
20268module_expsym_cmds=$lt_module_expsym_cmds
20269
20270# Whether we are building with GNU ld or not.
20271with_gnu_ld=$lt_with_gnu_ld
20272
20273# Flag that allows shared libraries with undefined symbols to be built.
20274allow_undefined_flag=$lt_allow_undefined_flag
20275
20276# Flag that enforces no undefined symbols.
20277no_undefined_flag=$lt_no_undefined_flag
20278
20279# Flag to hardcode \$libdir into a binary during linking.
20280# This must work even if \$libdir does not exist
20281hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20282
20283# If ld is used when linking, flag to hardcode \$libdir into a binary
20284# during linking.  This must work even if \$libdir does not exist.
20285hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20286
20287# Whether we need a single "-rpath" flag with a separated argument.
20288hardcode_libdir_separator=$lt_hardcode_libdir_separator
20289
20290# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20291# DIR into the resulting binary.
20292hardcode_direct=$hardcode_direct
20293
20294# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20295# DIR into the resulting binary and the resulting library dependency is
20296# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20297# library is relocated.
20298hardcode_direct_absolute=$hardcode_direct_absolute
20299
20300# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20301# into the resulting binary.
20302hardcode_minus_L=$hardcode_minus_L
20303
20304# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20305# into the resulting binary.
20306hardcode_shlibpath_var=$hardcode_shlibpath_var
20307
20308# Set to "yes" if building a shared library automatically hardcodes DIR
20309# into the library and all subsequent libraries and executables linked
20310# against it.
20311hardcode_automatic=$hardcode_automatic
20312
20313# Set to yes if linker adds runtime paths of dependent libraries
20314# to runtime path list.
20315inherit_rpath=$inherit_rpath
20316
20317# Whether libtool must link a program against all its dependency libraries.
20318link_all_deplibs=$link_all_deplibs
20319
20320# Fix the shell variable \$srcfile for the compiler.
20321fix_srcfile_path=$lt_fix_srcfile_path
20322
20323# Set to "yes" if exported symbols are required.
20324always_export_symbols=$always_export_symbols
20325
20326# The commands to list exported symbols.
20327export_symbols_cmds=$lt_export_symbols_cmds
20328
20329# Symbols that should not be listed in the preloaded symbols.
20330exclude_expsyms=$lt_exclude_expsyms
20331
20332# Symbols that must always be exported.
20333include_expsyms=$lt_include_expsyms
20334
20335# Commands necessary for linking programs (against libraries) with templates.
20336prelink_cmds=$lt_prelink_cmds
20337
20338# Specify filename containing input files.
20339file_list_spec=$lt_file_list_spec
20340
20341# How to hardcode a shared library path into an executable.
20342hardcode_action=$hardcode_action
20343
20344# ### END LIBTOOL CONFIG
20345
20346_LT_EOF
20347
20348  case $host_os in
20349  aix3*)
20350    cat <<\_LT_EOF >> "$cfgfile"
20351# AIX sometimes has problems with the GCC collect2 program.  For some
20352# reason, if we set the COLLECT_NAMES environment variable, the problems
20353# vanish in a puff of smoke.
20354if test "X${COLLECT_NAMES+set}" != Xset; then
20355  COLLECT_NAMES=
20356  export COLLECT_NAMES
20357fi
20358_LT_EOF
20359    ;;
20360  esac
20361
20362
20363ltmain="$ac_aux_dir/ltmain.sh"
20364
20365
20366  # We use sed instead of cat because bash on DJGPP gets confused if
20367  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20368  # text mode, it properly converts lines to CR/LF.  This bash problem
20369  # is reportedly fixed, but why not run on old versions too?
20370  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20371    || (rm -f "$cfgfile"; exit 1)
20372
20373  case $xsi_shell in
20374  yes)
20375    cat << \_LT_EOF >> "$cfgfile"
20376
20377# func_dirname file append nondir_replacement
20378# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20379# otherwise set result to NONDIR_REPLACEMENT.
20380func_dirname ()
20381{
20382  case ${1} in
20383    */*) func_dirname_result="${1%/*}${2}" ;;
20384    *  ) func_dirname_result="${3}" ;;
20385  esac
20386}
20387
20388# func_basename file
20389func_basename ()
20390{
20391  func_basename_result="${1##*/}"
20392}
20393
20394# func_dirname_and_basename file append nondir_replacement
20395# perform func_basename and func_dirname in a single function
20396# call:
20397#   dirname:  Compute the dirname of FILE.  If nonempty,
20398#             add APPEND to the result, otherwise set result
20399#             to NONDIR_REPLACEMENT.
20400#             value returned in "$func_dirname_result"
20401#   basename: Compute filename of FILE.
20402#             value retuned in "$func_basename_result"
20403# Implementation must be kept synchronized with func_dirname
20404# and func_basename. For efficiency, we do not delegate to
20405# those functions but instead duplicate the functionality here.
20406func_dirname_and_basename ()
20407{
20408  case ${1} in
20409    */*) func_dirname_result="${1%/*}${2}" ;;
20410    *  ) func_dirname_result="${3}" ;;
20411  esac
20412  func_basename_result="${1##*/}"
20413}
20414
20415# func_stripname prefix suffix name
20416# strip PREFIX and SUFFIX off of NAME.
20417# PREFIX and SUFFIX must not contain globbing or regex special
20418# characters, hashes, percent signs, but SUFFIX may contain a leading
20419# dot (in which case that matches only a dot).
20420func_stripname ()
20421{
20422  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20423  # positional parameters, so assign one to ordinary parameter first.
20424  func_stripname_result=${3}
20425  func_stripname_result=${func_stripname_result#"${1}"}
20426  func_stripname_result=${func_stripname_result%"${2}"}
20427}
20428
20429# func_opt_split
20430func_opt_split ()
20431{
20432  func_opt_split_opt=${1%%=*}
20433  func_opt_split_arg=${1#*=}
20434}
20435
20436# func_lo2o object
20437func_lo2o ()
20438{
20439  case ${1} in
20440    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20441    *)    func_lo2o_result=${1} ;;
20442  esac
20443}
20444
20445# func_xform libobj-or-source
20446func_xform ()
20447{
20448  func_xform_result=${1%.*}.lo
20449}
20450
20451# func_arith arithmetic-term...
20452func_arith ()
20453{
20454  func_arith_result=$(( $* ))
20455}
20456
20457# func_len string
20458# STRING may not start with a hyphen.
20459func_len ()
20460{
20461  func_len_result=${#1}
20462}
20463
20464_LT_EOF
20465    ;;
20466  *) # Bourne compatible functions.
20467    cat << \_LT_EOF >> "$cfgfile"
20468
20469# func_dirname file append nondir_replacement
20470# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20471# otherwise set result to NONDIR_REPLACEMENT.
20472func_dirname ()
20473{
20474  # Extract subdirectory from the argument.
20475  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20476  if test "X$func_dirname_result" = "X${1}"; then
20477    func_dirname_result="${3}"
20478  else
20479    func_dirname_result="$func_dirname_result${2}"
20480  fi
20481}
20482
20483# func_basename file
20484func_basename ()
20485{
20486  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20487}
20488
20489
20490# func_stripname prefix suffix name
20491# strip PREFIX and SUFFIX off of NAME.
20492# PREFIX and SUFFIX must not contain globbing or regex special
20493# characters, hashes, percent signs, but SUFFIX may contain a leading
20494# dot (in which case that matches only a dot).
20495# func_strip_suffix prefix name
20496func_stripname ()
20497{
20498  case ${2} in
20499    .*) func_stripname_result=`$ECHO "X${3}" \
20500           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20501    *)  func_stripname_result=`$ECHO "X${3}" \
20502           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20503  esac
20504}
20505
20506# sed scripts:
20507my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20508my_sed_long_arg='1s/^-[^=]*=//'
20509
20510# func_opt_split
20511func_opt_split ()
20512{
20513  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20514  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20515}
20516
20517# func_lo2o object
20518func_lo2o ()
20519{
20520  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20521}
20522
20523# func_xform libobj-or-source
20524func_xform ()
20525{
20526  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20527}
20528
20529# func_arith arithmetic-term...
20530func_arith ()
20531{
20532  func_arith_result=`expr "$@"`
20533}
20534
20535# func_len string
20536# STRING may not start with a hyphen.
20537func_len ()
20538{
20539  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20540}
20541
20542_LT_EOF
20543esac
20544
20545case $lt_shell_append in
20546  yes)
20547    cat << \_LT_EOF >> "$cfgfile"
20548
20549# func_append var value
20550# Append VALUE to the end of shell variable VAR.
20551func_append ()
20552{
20553  eval "$1+=\$2"
20554}
20555_LT_EOF
20556    ;;
20557  *)
20558    cat << \_LT_EOF >> "$cfgfile"
20559
20560# func_append var value
20561# Append VALUE to the end of shell variable VAR.
20562func_append ()
20563{
20564  eval "$1=\$$1\$2"
20565}
20566
20567_LT_EOF
20568    ;;
20569  esac
20570
20571
20572  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20573    || (rm -f "$cfgfile"; exit 1)
20574
20575  mv -f "$cfgfile" "$ofile" ||
20576    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20577  chmod +x "$ofile"
20578
20579 ;;
20580    "default-1":C)
20581    for ac_file in $CONFIG_FILES; do
20582      # Support "outfile[:infile[:infile...]]"
20583      case "$ac_file" in
20584        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20585      esac
20586      # PO directories have a Makefile.in generated from Makefile.in.in.
20587      case "$ac_file" in */Makefile.in)
20588        # Adjust a relative srcdir.
20589        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20590        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20591        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20592        # In autoconf-2.13 it is called $ac_given_srcdir.
20593        # In autoconf-2.50 it is called $srcdir.
20594        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20595        case "$ac_given_srcdir" in
20596          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20597          /*) top_srcdir="$ac_given_srcdir" ;;
20598          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
20599        esac
20600        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20601          rm -f "$ac_dir/POTFILES"
20602          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20603          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20604          POMAKEFILEDEPS="POTFILES.in"
20605          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20606          # on $ac_dir but don't depend on user-specified configuration
20607          # parameters.
20608          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20609            # The LINGUAS file contains the set of available languages.
20610            if test -n "$OBSOLETE_ALL_LINGUAS"; then
20611              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20612            fi
20613            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20614            # Hide the ALL_LINGUAS assigment from automake.
20615            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20616            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20617          else
20618            # The set of available languages was given in configure.in.
20619            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20620          fi
20621          case "$ac_given_srcdir" in
20622            .) srcdirpre= ;;
20623            *) srcdirpre='$(srcdir)/' ;;
20624          esac
20625          POFILES=
20626          GMOFILES=
20627          UPDATEPOFILES=
20628          DUMMYPOFILES=
20629          for lang in $ALL_LINGUAS; do
20630            POFILES="$POFILES $srcdirpre$lang.po"
20631            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20632            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20633            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20634          done
20635          # CATALOGS depends on both $ac_dir and the user's LINGUAS
20636          # environment variable.
20637          INST_LINGUAS=
20638          if test -n "$ALL_LINGUAS"; then
20639            for presentlang in $ALL_LINGUAS; do
20640              useit=no
20641              if test "%UNSET%" != "$LINGUAS"; then
20642                desiredlanguages="$LINGUAS"
20643              else
20644                desiredlanguages="$ALL_LINGUAS"
20645              fi
20646              for desiredlang in $desiredlanguages; do
20647                # Use the presentlang catalog if desiredlang is
20648                #   a. equal to presentlang, or
20649                #   b. a variant of presentlang (because in this case,
20650                #      presentlang can be used as a fallback for messages
20651                #      which are not translated in the desiredlang catalog).
20652                case "$desiredlang" in
20653                  "$presentlang"*) useit=yes;;
20654                esac
20655              done
20656              if test $useit = yes; then
20657                INST_LINGUAS="$INST_LINGUAS $presentlang"
20658              fi
20659            done
20660          fi
20661          CATALOGS=
20662          if test -n "$INST_LINGUAS"; then
20663            for lang in $INST_LINGUAS; do
20664              CATALOGS="$CATALOGS $lang.gmo"
20665            done
20666          fi
20667          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20668          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
20669          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20670            if test -f "$f"; then
20671              case "$f" in
20672                *.orig | *.bak | *~) ;;
20673                *) cat "$f" >> "$ac_dir/Makefile" ;;
20674              esac
20675            fi
20676          done
20677        fi
20678        ;;
20679      esac
20680    done ;;
20681
20682  esac
20683done # for ac_tag
20684
20685
20686as_fn_exit 0
20687_ACEOF
20688ac_clean_files=$ac_clean_files_save
20689
20690test $ac_write_fail = 0 ||
20691  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20692
20693
20694# configure is writing to config.log, and then calls config.status.
20695# config.status does its own redirection, appending to config.log.
20696# Unfortunately, on DOS this fails, as config.log is still kept open
20697# by configure, so config.status won't be able to write to it; its
20698# output is simply discarded.  So we exec the FD to /dev/null,
20699# effectively closing config.log, so it can be properly (re)opened and
20700# appended to by config.status.  When coming back to configure, we
20701# need to make the FD available again.
20702if test "$no_create" != yes; then
20703  ac_cs_success=:
20704  ac_config_status_args=
20705  test "$silent" = yes &&
20706    ac_config_status_args="$ac_config_status_args --quiet"
20707  exec 5>/dev/null
20708  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20709  exec 5>>config.log
20710  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20711  # would make configure fail if this is the last instruction.
20712  $ac_cs_success || as_fn_exit $?
20713fi
20714if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20715  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20716$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20717fi
20718
20719
20720echo
20721echo "  ###"
20722echo "  ###  MyDNS $PACKAGE_VERSION configured.  Using $USE_DB_NAME database."
20723echo "  ###"
20724echo "  ###  Type \"make\" to build, then \"make install\" to install."
20725echo "  ###"
20726echo
20727
20728## vi:set ts=3:
20729