1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173  if (eval "$as_required") 2>/dev/null; then :
174  as_have_required=yes
175else
176  as_have_required=no
177fi
178  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185  IFS=$as_save_IFS
186  test -z "$as_dir" && as_dir=.
187  as_found=:
188  case $as_dir in #(
189	 /*)
190	   for as_base in sh bash ksh sh5; do
191	     # Try only shells that exist, to save several forks.
192	     as_shell=$as_dir/$as_base
193	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195  CONFIG_SHELL=$as_shell as_have_required=yes
196		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  break 2
198fi
199fi
200	   done;;
201       esac
202  as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206  CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211      if test "x$CONFIG_SHELL" != x; then :
212  # We cannot yet assume a decent shell, so we have to provide a
213	# neutralization value for shells without unset; and this also
214	# works around shells that cannot unset nonexistent variables.
215	BASH_ENV=/dev/null
216	ENV=/dev/null
217	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218	export CONFIG_SHELL
219	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222    if test x$as_have_required = xno; then :
223  $as_echo "$0: This script requires a shell more modern than all"
224  $as_echo "$0: the shells that I found on your system."
225  if test x${ZSH_VERSION+set} = xset ; then
226    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228  else
229    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233  fi
234  exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252  { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261  return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269  set +e
270  as_fn_set_status $1
271  exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280  case $as_dir in #(
281  -*) as_dir=./$as_dir;;
282  esac
283  test -d "$as_dir" || eval $as_mkdir_p || {
284    as_dirs=
285    while :; do
286      case $as_dir in #(
287      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288      *) as_qdir=$as_dir;;
289      esac
290      as_dirs="'$as_qdir' $as_dirs"
291      as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293	 X"$as_dir" : 'X\(//\)[^/]' \| \
294	 X"$as_dir" : 'X\(//\)$' \| \
295	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298	    s//\1/
299	    q
300	  }
301	  /^X\(\/\/\)[^/].*/{
302	    s//\1/
303	    q
304	  }
305	  /^X\(\/\/\)$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\).*/{
310	    s//\1/
311	    q
312	  }
313	  s/.*/./; q'`
314      test -d "$as_dir" && break
315    done
316    test -z "$as_dirs" || eval "mkdir $as_dirs"
317  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328  eval 'as_fn_append ()
329  {
330    eval $1+=\$2
331  }'
332else
333  as_fn_append ()
334  {
335    eval $1=\$$1\$2
336  }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345  eval 'as_fn_arith ()
346  {
347    as_val=$(( $* ))
348  }'
349else
350  as_fn_arith ()
351  {
352    as_val=`expr "$@" || test $? -eq 1`
353  }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364  as_status=$?; test $as_status -eq 0 && as_status=1
365  if test "$3"; then
366    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368  fi
369  $as_echo "$as_me: error: $1" >&2
370  as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375  as_expr=expr
376else
377  as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381  as_basename=basename
382else
383  as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387  as_dirname=dirname
388else
389  as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394	 X"$0" : 'X\(//\)$' \| \
395	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397    sed '/^.*\/\([^/][^/]*\)\/*$/{
398	    s//\1/
399	    q
400	  }
401	  /^X\/\(\/\/\)$/{
402	    s//\1/
403	    q
404	  }
405	  /^X\/\(\/\).*/{
406	    s//\1/
407	    q
408	  }
409	  s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424  sed -n '
425    p
426    /[$]LINENO/=
427  ' <$as_myself |
428    sed '
429      s/[$]LINENO.*/&-/
430      t lineno
431      b
432      :lineno
433      N
434      :loop
435      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436      t loop
437      s/-\n.*//
438    ' >$as_me.lineno &&
439  chmod +x "$as_me.lineno" ||
440    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442  # Don't try to exec as it changes $[0], causing all sort of problems
443  # (the dirname of $[0] is not the place where we might find the
444  # original and so on.  Autoconf is especially sensitive to this).
445  . "./$as_me.lineno"
446  # Exit status is that of the last command.
447  exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453  case `echo 'xy\c'` in
454  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
455  xy)  ECHO_C='\c';;
456  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457       ECHO_T='	';;
458  esac;;
459*)
460  ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465  rm -f conf$$.dir/conf$$.file
466else
467  rm -f conf$$.dir
468  mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471  if ln -s conf$$.file conf$$ 2>/dev/null; then
472    as_ln_s='ln -s'
473    # ... but there are two gotchas:
474    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476    # In both cases, we have to default to `cp -p'.
477    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478      as_ln_s='cp -p'
479  elif ln conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s=ln
481  else
482    as_ln_s='cp -p'
483  fi
484else
485  as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491  as_mkdir_p='mkdir -p "$as_dir"'
492else
493  test -d ./-p && rmdir ./-p
494  as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498  as_test_x='test -x'
499else
500  if ls -dL / >/dev/null 2>&1; then
501    as_ls_L_option=L
502  else
503    as_ls_L_option=
504  fi
505  as_test_x='
506    eval sh -c '\''
507      if test -d "$1"; then
508	test -d "$1/.";
509      else
510	case $1 in #(
511	-*)set "./$1";;
512	esac;
513	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514	???[sx]*):;;*)false;;esac;fi
515    '\'' sh
516  '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528# Check that we are running under the correct shell.
529SHELL=${CONFIG_SHELL-/bin/sh}
530
531case X$ECHO in
532X*--fallback-echo)
533  # Remove one level of quotation (which was required for Make).
534  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
535  ;;
536esac
537
538echo=${ECHO-echo}
539if test "X$1" = X--no-reexec; then
540  # Discard the --no-reexec flag, and continue.
541  shift
542elif test "X$1" = X--fallback-echo; then
543  # Avoid inline document here, it may be left over
544  :
545elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
546  # Yippee, $echo works!
547  :
548else
549  # Restart under the correct shell.
550  exec $SHELL "$0" --no-reexec ${1+"$@"}
551fi
552
553if test "X$1" = X--fallback-echo; then
554  # used as fallback echo
555  shift
556  cat <<EOF
557$*
558EOF
559  exit 0
560fi
561
562# The HP-UX ksh and POSIX shell print the target directory to stdout
563# if CDPATH is set.
564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566if test -z "$ECHO"; then
567if test "X${echo_test_string+set}" != Xset; then
568# find a string as large as possible, as long as the shell can cope with it
569  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
572       echo_test_string=`eval $cmd` &&
573       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
574    then
575      break
576    fi
577  done
578fi
579
580if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
581   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
582   test "X$echo_testing_string" = "X$echo_test_string"; then
583  :
584else
585  # The Solaris, AIX, and Digital Unix default echo programs unquote
586  # backslashes.  This makes it impossible to quote backslashes using
587  #   echo "$something" | sed 's/\\/\\\\/g'
588  #
589  # So, first we look for a working echo in the user's PATH.
590
591  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
592  for dir in $PATH /usr/ucb; do
593    IFS="$lt_save_ifs"
594    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
595       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
596       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
597       test "X$echo_testing_string" = "X$echo_test_string"; then
598      echo="$dir/echo"
599      break
600    fi
601  done
602  IFS="$lt_save_ifs"
603
604  if test "X$echo" = Xecho; then
605    # We didn't find a better echo, so look for alternatives.
606    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
607       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
608       test "X$echo_testing_string" = "X$echo_test_string"; then
609      # This shell has a builtin print -r that does the trick.
610      echo='print -r'
611    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
612	 test "X$CONFIG_SHELL" != X/bin/ksh; then
613      # If we have ksh, try running configure again with it.
614      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
615      export ORIGINAL_CONFIG_SHELL
616      CONFIG_SHELL=/bin/ksh
617      export CONFIG_SHELL
618      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
619    else
620      # Try using printf.
621      echo='printf %s\n'
622      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
623	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
624	 test "X$echo_testing_string" = "X$echo_test_string"; then
625	# Cool, printf works
626	:
627      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
628	   test "X$echo_testing_string" = 'X\t' &&
629	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
630	   test "X$echo_testing_string" = "X$echo_test_string"; then
631	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632	export CONFIG_SHELL
633	SHELL="$CONFIG_SHELL"
634	export SHELL
635	echo="$CONFIG_SHELL $0 --fallback-echo"
636      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637	   test "X$echo_testing_string" = 'X\t' &&
638	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639	   test "X$echo_testing_string" = "X$echo_test_string"; then
640	echo="$CONFIG_SHELL $0 --fallback-echo"
641      else
642	# maybe with a smaller string...
643	prev=:
644
645	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
646	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
647	  then
648	    break
649	  fi
650	  prev="$cmd"
651	done
652
653	if test "$prev" != 'sed 50q "$0"'; then
654	  echo_test_string=`eval $prev`
655	  export echo_test_string
656	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657	else
658	  # Oops.  We lost completely, so just stick with echo.
659	  echo=echo
660	fi
661      fi
662    fi
663  fi
664fi
665fi
666
667# Copy echo and quote the copy suitably for passing to libtool from
668# the Makefile, instead of quoting the original, which is used later.
669ECHO=$echo
670if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
671   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
672fi
673
674
675
676
677tagnames=${tagnames+${tagnames},}CXX
678
679tagnames=${tagnames+${tagnames},}F77
680
681exec 7<&0 </dev/null 6>&1
682
683# Name of the host.
684# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
685# so uname gets run too.
686ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687
688#
689# Initializations.
690#
691ac_default_prefix=/usr/local
692ac_clean_files=
693ac_config_libobj_dir=.
694LIBOBJS=
695cross_compiling=no
696subdirs=
697MFLAGS=
698MAKEFLAGS=
699
700# Identity of this package.
701PACKAGE_NAME=
702PACKAGE_TARNAME=
703PACKAGE_VERSION=
704PACKAGE_STRING=
705PACKAGE_BUGREPORT=
706PACKAGE_URL=
707
708ac_unique_file="build/apr_common.m4"
709# Factoring default headers for most tests.
710ac_includes_default="\
711#include <stdio.h>
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef STDC_HEADERS
719# include <stdlib.h>
720# include <stddef.h>
721#else
722# ifdef HAVE_STDLIB_H
723#  include <stdlib.h>
724# endif
725#endif
726#ifdef HAVE_STRING_H
727# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728#  include <memory.h>
729# endif
730# include <string.h>
731#endif
732#ifdef HAVE_STRINGS_H
733# include <strings.h>
734#endif
735#ifdef HAVE_INTTYPES_H
736# include <inttypes.h>
737#endif
738#ifdef HAVE_STDINT_H
739# include <stdint.h>
740#endif
741#ifdef HAVE_UNISTD_H
742# include <unistd.h>
743#endif"
744
745ac_subst_vars='LTLIBOBJS
746LIBOBJS
747INCLUDE_OUTPUTS
748INCLUDE_RULES
749LT_NO_INSTALL
750LIBTOOL_LIBS
751DEFAULT_OSDIR
752OSDIR
753INCLUDES
754LDLIBS
755NOTEST_INCLUDES
756NOTEST_LIBS
757NOTEST_LDFLAGS
758NOTEST_CFLAGS
759NOTEST_CPPFLAGS
760EXTRA_INCLUDES
761EXTRA_LIBS
762EXTRA_LDFLAGS
763EXTRA_CFLAGS
764EXTRA_CPPFLAGS
765apr_has_user
766apr_thread_func
767apr_procattr_user_set_requires_password
768apr_has_xthread_files
769have_unicode_fs
770have_ipv6
771have_sa_storage
772have_sctp
773acceptfilter
774have_corkable_tcp
775apr_tcp_nopush_flag
776file_as_socket
777have_in_addr
778osuuid
779rand
780proclockglobal
781pthreadser
782procpthreadser
783fcntlser
784posixser
785sysvser
786flockser
787hasprocpthreadser
788hasfcntlser
789hasposixser
790hassysvser
791hasflockser
792have_union_semun
793struct_rlimit
794have_proc_invoked
795oc
796aprdso
797have_memchr
798have_strstr
799have_strdup
800have_strcasecmp
801have_stricmp
802have_strncasecmp
803have_strnicmp
804ino_t_value
805have_iovec
806aprlfs
807bigendian
808stdint
809uint64_literal
810int64_literal
811pid_t_fmt
812off_t_fmt
813size_t_fmt
814ssize_t_fmt
815uint64_t_hex_fmt
816uint64_t_fmt
817int64_t_fmt
818socklen_t_value
819ssize_t_value
820size_t_value
821off_t_value
822int64_value
823long_value
824int_value
825short_value
826voidp_size
827winsock2h
828windowsh
829semaphoreh
830pthreadh
831processh
832sys_waith
833signalh
834unistdh
835timeh
836sys_unh
837sys_uioh
838sys_timeh
839sys_typesh
840sys_sockioh
841sys_socketh
842sys_signalh
843sys_sendfileh
844sys_ioctlh
845stringsh
846stringh
847stdlibh
848stdioh
849stdargh
850netinet_tcph
851netinet_sctp_uioh
852netinet_sctph
853netinet_inh
854sys_syslimitsh
855netdbh
856limitsh
857ioh
858fcntlh
859direnth
860errnoh
861crypth
862ctypeh
863conioh
864arpa_ineth
865have_memmove
866mmap
867have_getrlimit
868have_setrlimit
869have_sigaction
870have_inet_network
871o_nonblock_inherited
872tcp_nodelay_inherited
873have_inet_addr
874fork
875apr_inaddr_none
876sendfile
877ALLOCA
878sharedmem
879havewin32shm
880haveos2shm
881havebeosarea
882haveshmget
883havemmapshm
884havemmaptmp
885usewin32shm
886useos2shm
887usebeosarea
888useshmget
889usemmapshm
890usemmaptmp
891havemmapanon
892havemmapzero
893haveshmgetanon
894usemmapanon
895usemmapzero
896useshmgetanon
897have_sigwait
898have_sigsuspend
899threads
900INSTALL_SUBDIRS
901eolstr
902proc_mutex_is_global
903OBJECTS_PLATFORM
904MKDEP
905LT_VERSION
906LT_LDFLAGS
907LTFLAGS
908shlibpath_var
909export_lib_target
910lib_target
911so_ext
912link
913lt_compile
914installbuilddir
915LIBTOOL
916ac_ct_F77
917FFLAGS
918F77
919CXXCPP
920ac_ct_CXX
921CXXFLAGS
922CXX
923OBJDUMP
924DLLTOOL
925NMEDIT
926DSYMUTIL
927STRIP
928ECHO
929APR_LIBNAME
930apr_charset_ebcdic
931EGREP
932GREP
933AR
934ASCPP
935AS
936RM
937INSTALL_DATA
938INSTALL_SCRIPT
939INSTALL_PROGRAM
940RANLIB
941LN_S
942AWK
943CPP
944SET_MAKE
945SED
946OBJEXT
947EXEEXT
948ac_ct_CC
949CPPFLAGS
950LDFLAGS
951CFLAGS
952CC
953APR_MAJOR_VERSION
954APR_DOTTED_VERSION
955apr_builders
956top_builddir
957APR_CONFIG_LOCATION
958apr_builddir
959apr_srcdir
960target_os
961target_vendor
962target_cpu
963target
964host_os
965host_vendor
966host_cpu
967host
968build_os
969build_vendor
970build_cpu
971build
972target_alias
973host_alias
974build_alias
975LIBS
976ECHO_T
977ECHO_N
978ECHO_C
979DEFS
980mandir
981localedir
982libdir
983psdir
984pdfdir
985dvidir
986htmldir
987infodir
988docdir
989oldincludedir
990includedir
991localstatedir
992sharedstatedir
993sysconfdir
994datadir
995datarootdir
996libexecdir
997sbindir
998bindir
999program_transform_name
1000prefix
1001exec_prefix
1002PACKAGE_URL
1003PACKAGE_BUGREPORT
1004PACKAGE_STRING
1005PACKAGE_VERSION
1006PACKAGE_TARNAME
1007PACKAGE_NAME
1008PATH_SEPARATOR
1009SHELL'
1010ac_subst_files=''
1011ac_user_opts='
1012enable_option_checking
1013enable_layout
1014enable_experimental_libtool
1015enable_shared
1016enable_static
1017enable_fast_install
1018with_gnu_ld
1019enable_libtool_lock
1020with_pic
1021with_tags
1022with_installbuilddir
1023with_libtool
1024enable_debug
1025enable_maintainer_mode
1026enable_profile
1027enable_pool_debug
1028enable_malloc_debug
1029enable_lfs
1030enable_nonportable_atomics
1031enable_threads
1032with_efence
1033with_sendfile
1034enable_allocator_uses_mmap
1035enable_dso
1036enable_other_child
1037with_egd
1038with_devrandom
1039enable_ipv6
1040'
1041      ac_precious_vars='build_alias
1042host_alias
1043target_alias
1044CC
1045CFLAGS
1046LDFLAGS
1047LIBS
1048CPPFLAGS
1049CPP
1050CXX
1051CXXFLAGS
1052CCC
1053CXXCPP
1054F77
1055FFLAGS'
1056
1057
1058# Initialize some variables set by options.
1059ac_init_help=
1060ac_init_version=false
1061ac_unrecognized_opts=
1062ac_unrecognized_sep=
1063# The variables have the same names as the options, with
1064# dashes changed to underlines.
1065cache_file=/dev/null
1066exec_prefix=NONE
1067no_create=
1068no_recursion=
1069prefix=NONE
1070program_prefix=NONE
1071program_suffix=NONE
1072program_transform_name=s,x,x,
1073silent=
1074site=
1075srcdir=
1076verbose=
1077x_includes=NONE
1078x_libraries=NONE
1079
1080# Installation directory options.
1081# These are left unexpanded so users can "make install exec_prefix=/foo"
1082# and all the variables that are supposed to be based on exec_prefix
1083# by default will actually change.
1084# Use braces instead of parens because sh, perl, etc. also accept them.
1085# (The list follows the same order as the GNU Coding Standards.)
1086bindir='${exec_prefix}/bin'
1087sbindir='${exec_prefix}/sbin'
1088libexecdir='${exec_prefix}/libexec'
1089datarootdir='${prefix}/share'
1090datadir='${datarootdir}'
1091sysconfdir='${prefix}/etc'
1092sharedstatedir='${prefix}/com'
1093localstatedir='${prefix}/var'
1094includedir='${prefix}/include'
1095oldincludedir='/usr/include'
1096docdir='${datarootdir}/doc/${PACKAGE}'
1097infodir='${datarootdir}/info'
1098htmldir='${docdir}'
1099dvidir='${docdir}'
1100pdfdir='${docdir}'
1101psdir='${docdir}'
1102libdir='${exec_prefix}/lib'
1103localedir='${datarootdir}/locale'
1104mandir='${datarootdir}/man'
1105
1106ac_prev=
1107ac_dashdash=
1108for ac_option
1109do
1110  # If the previous option needs an argument, assign it.
1111  if test -n "$ac_prev"; then
1112    eval $ac_prev=\$ac_option
1113    ac_prev=
1114    continue
1115  fi
1116
1117  case $ac_option in
1118  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1119  *)	ac_optarg=yes ;;
1120  esac
1121
1122  # Accept the important Cygnus configure options, so we can diagnose typos.
1123
1124  case $ac_dashdash$ac_option in
1125  --)
1126    ac_dashdash=yes ;;
1127
1128  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1129    ac_prev=bindir ;;
1130  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1131    bindir=$ac_optarg ;;
1132
1133  -build | --build | --buil | --bui | --bu)
1134    ac_prev=build_alias ;;
1135  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1136    build_alias=$ac_optarg ;;
1137
1138  -cache-file | --cache-file | --cache-fil | --cache-fi \
1139  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1140    ac_prev=cache_file ;;
1141  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1142  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1143    cache_file=$ac_optarg ;;
1144
1145  --config-cache | -C)
1146    cache_file=config.cache ;;
1147
1148  -datadir | --datadir | --datadi | --datad)
1149    ac_prev=datadir ;;
1150  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1151    datadir=$ac_optarg ;;
1152
1153  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1154  | --dataroo | --dataro | --datar)
1155    ac_prev=datarootdir ;;
1156  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1157  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1158    datarootdir=$ac_optarg ;;
1159
1160  -disable-* | --disable-*)
1161    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1162    # Reject names that are not valid shell variable names.
1163    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164      as_fn_error "invalid feature name: $ac_useropt"
1165    ac_useropt_orig=$ac_useropt
1166    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167    case $ac_user_opts in
1168      *"
1169"enable_$ac_useropt"
1170"*) ;;
1171      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1172	 ac_unrecognized_sep=', ';;
1173    esac
1174    eval enable_$ac_useropt=no ;;
1175
1176  -docdir | --docdir | --docdi | --doc | --do)
1177    ac_prev=docdir ;;
1178  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1179    docdir=$ac_optarg ;;
1180
1181  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1182    ac_prev=dvidir ;;
1183  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1184    dvidir=$ac_optarg ;;
1185
1186  -enable-* | --enable-*)
1187    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1188    # Reject names that are not valid shell variable names.
1189    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190      as_fn_error "invalid feature name: $ac_useropt"
1191    ac_useropt_orig=$ac_useropt
1192    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193    case $ac_user_opts in
1194      *"
1195"enable_$ac_useropt"
1196"*) ;;
1197      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1198	 ac_unrecognized_sep=', ';;
1199    esac
1200    eval enable_$ac_useropt=\$ac_optarg ;;
1201
1202  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1203  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1204  | --exec | --exe | --ex)
1205    ac_prev=exec_prefix ;;
1206  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1207  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1208  | --exec=* | --exe=* | --ex=*)
1209    exec_prefix=$ac_optarg ;;
1210
1211  -gas | --gas | --ga | --g)
1212    # Obsolete; use --with-gas.
1213    with_gas=yes ;;
1214
1215  -help | --help | --hel | --he | -h)
1216    ac_init_help=long ;;
1217  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1218    ac_init_help=recursive ;;
1219  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1220    ac_init_help=short ;;
1221
1222  -host | --host | --hos | --ho)
1223    ac_prev=host_alias ;;
1224  -host=* | --host=* | --hos=* | --ho=*)
1225    host_alias=$ac_optarg ;;
1226
1227  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1228    ac_prev=htmldir ;;
1229  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1230  | --ht=*)
1231    htmldir=$ac_optarg ;;
1232
1233  -includedir | --includedir | --includedi | --included | --include \
1234  | --includ | --inclu | --incl | --inc)
1235    ac_prev=includedir ;;
1236  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1237  | --includ=* | --inclu=* | --incl=* | --inc=*)
1238    includedir=$ac_optarg ;;
1239
1240  -infodir | --infodir | --infodi | --infod | --info | --inf)
1241    ac_prev=infodir ;;
1242  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1243    infodir=$ac_optarg ;;
1244
1245  -libdir | --libdir | --libdi | --libd)
1246    ac_prev=libdir ;;
1247  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1248    libdir=$ac_optarg ;;
1249
1250  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1251  | --libexe | --libex | --libe)
1252    ac_prev=libexecdir ;;
1253  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1254  | --libexe=* | --libex=* | --libe=*)
1255    libexecdir=$ac_optarg ;;
1256
1257  -localedir | --localedir | --localedi | --localed | --locale)
1258    ac_prev=localedir ;;
1259  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1260    localedir=$ac_optarg ;;
1261
1262  -localstatedir | --localstatedir | --localstatedi | --localstated \
1263  | --localstate | --localstat | --localsta | --localst | --locals)
1264    ac_prev=localstatedir ;;
1265  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1266  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1267    localstatedir=$ac_optarg ;;
1268
1269  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1270    ac_prev=mandir ;;
1271  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1272    mandir=$ac_optarg ;;
1273
1274  -nfp | --nfp | --nf)
1275    # Obsolete; use --without-fp.
1276    with_fp=no ;;
1277
1278  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1279  | --no-cr | --no-c | -n)
1280    no_create=yes ;;
1281
1282  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1283  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1284    no_recursion=yes ;;
1285
1286  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1287  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1288  | --oldin | --oldi | --old | --ol | --o)
1289    ac_prev=oldincludedir ;;
1290  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1291  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1292  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1293    oldincludedir=$ac_optarg ;;
1294
1295  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1296    ac_prev=prefix ;;
1297  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1298    prefix=$ac_optarg ;;
1299
1300  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1301  | --program-pre | --program-pr | --program-p)
1302    ac_prev=program_prefix ;;
1303  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1304  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1305    program_prefix=$ac_optarg ;;
1306
1307  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1308  | --program-suf | --program-su | --program-s)
1309    ac_prev=program_suffix ;;
1310  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1311  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1312    program_suffix=$ac_optarg ;;
1313
1314  -program-transform-name | --program-transform-name \
1315  | --program-transform-nam | --program-transform-na \
1316  | --program-transform-n | --program-transform- \
1317  | --program-transform | --program-transfor \
1318  | --program-transfo | --program-transf \
1319  | --program-trans | --program-tran \
1320  | --progr-tra | --program-tr | --program-t)
1321    ac_prev=program_transform_name ;;
1322  -program-transform-name=* | --program-transform-name=* \
1323  | --program-transform-nam=* | --program-transform-na=* \
1324  | --program-transform-n=* | --program-transform-=* \
1325  | --program-transform=* | --program-transfor=* \
1326  | --program-transfo=* | --program-transf=* \
1327  | --program-trans=* | --program-tran=* \
1328  | --progr-tra=* | --program-tr=* | --program-t=*)
1329    program_transform_name=$ac_optarg ;;
1330
1331  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1332    ac_prev=pdfdir ;;
1333  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1334    pdfdir=$ac_optarg ;;
1335
1336  -psdir | --psdir | --psdi | --psd | --ps)
1337    ac_prev=psdir ;;
1338  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1339    psdir=$ac_optarg ;;
1340
1341  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1342  | -silent | --silent | --silen | --sile | --sil)
1343    silent=yes ;;
1344
1345  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1346    ac_prev=sbindir ;;
1347  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1348  | --sbi=* | --sb=*)
1349    sbindir=$ac_optarg ;;
1350
1351  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1352  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1353  | --sharedst | --shareds | --shared | --share | --shar \
1354  | --sha | --sh)
1355    ac_prev=sharedstatedir ;;
1356  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1357  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1358  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1359  | --sha=* | --sh=*)
1360    sharedstatedir=$ac_optarg ;;
1361
1362  -site | --site | --sit)
1363    ac_prev=site ;;
1364  -site=* | --site=* | --sit=*)
1365    site=$ac_optarg ;;
1366
1367  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1368    ac_prev=srcdir ;;
1369  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1370    srcdir=$ac_optarg ;;
1371
1372  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1373  | --syscon | --sysco | --sysc | --sys | --sy)
1374    ac_prev=sysconfdir ;;
1375  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1376  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1377    sysconfdir=$ac_optarg ;;
1378
1379  -target | --target | --targe | --targ | --tar | --ta | --t)
1380    ac_prev=target_alias ;;
1381  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1382    target_alias=$ac_optarg ;;
1383
1384  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1385    verbose=yes ;;
1386
1387  -version | --version | --versio | --versi | --vers | -V)
1388    ac_init_version=: ;;
1389
1390  -with-* | --with-*)
1391    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1392    # Reject names that are not valid shell variable names.
1393    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1394      as_fn_error "invalid package name: $ac_useropt"
1395    ac_useropt_orig=$ac_useropt
1396    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397    case $ac_user_opts in
1398      *"
1399"with_$ac_useropt"
1400"*) ;;
1401      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1402	 ac_unrecognized_sep=', ';;
1403    esac
1404    eval with_$ac_useropt=\$ac_optarg ;;
1405
1406  -without-* | --without-*)
1407    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1408    # Reject names that are not valid shell variable names.
1409    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1410      as_fn_error "invalid package name: $ac_useropt"
1411    ac_useropt_orig=$ac_useropt
1412    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1413    case $ac_user_opts in
1414      *"
1415"with_$ac_useropt"
1416"*) ;;
1417      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1418	 ac_unrecognized_sep=', ';;
1419    esac
1420    eval with_$ac_useropt=no ;;
1421
1422  --x)
1423    # Obsolete; use --with-x.
1424    with_x=yes ;;
1425
1426  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1427  | --x-incl | --x-inc | --x-in | --x-i)
1428    ac_prev=x_includes ;;
1429  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1430  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1431    x_includes=$ac_optarg ;;
1432
1433  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1434  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1435    ac_prev=x_libraries ;;
1436  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1437  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1438    x_libraries=$ac_optarg ;;
1439
1440  -*) as_fn_error "unrecognized option: \`$ac_option'
1441Try \`$0 --help' for more information."
1442    ;;
1443
1444  *=*)
1445    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1446    # Reject names that are not valid shell variable names.
1447    case $ac_envvar in #(
1448      '' | [0-9]* | *[!_$as_cr_alnum]* )
1449      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1450    esac
1451    eval $ac_envvar=\$ac_optarg
1452    export $ac_envvar ;;
1453
1454  *)
1455    # FIXME: should be removed in autoconf 3.0.
1456    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1457    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1458      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1459    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1460    ;;
1461
1462  esac
1463done
1464
1465if test -n "$ac_prev"; then
1466  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1467  as_fn_error "missing argument to $ac_option"
1468fi
1469
1470if test -n "$ac_unrecognized_opts"; then
1471  case $enable_option_checking in
1472    no) ;;
1473    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1474    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1475  esac
1476fi
1477
1478# Check all directory arguments for consistency.
1479for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1480		datadir sysconfdir sharedstatedir localstatedir includedir \
1481		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1482		libdir localedir mandir
1483do
1484  eval ac_val=\$$ac_var
1485  # Remove trailing slashes.
1486  case $ac_val in
1487    */ )
1488      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1489      eval $ac_var=\$ac_val;;
1490  esac
1491  # Be sure to have absolute directory names.
1492  case $ac_val in
1493    [\\/$]* | ?:[\\/]* )  continue;;
1494    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1495  esac
1496  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1497done
1498
1499# There might be people who depend on the old broken behavior: `$host'
1500# used to hold the argument of --host etc.
1501# FIXME: To remove some day.
1502build=$build_alias
1503host=$host_alias
1504target=$target_alias
1505
1506# FIXME: To remove some day.
1507if test "x$host_alias" != x; then
1508  if test "x$build_alias" = x; then
1509    cross_compiling=maybe
1510    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1511    If a cross compiler is detected then cross compile mode will be used." >&2
1512  elif test "x$build_alias" != "x$host_alias"; then
1513    cross_compiling=yes
1514  fi
1515fi
1516
1517ac_tool_prefix=
1518test -n "$host_alias" && ac_tool_prefix=$host_alias-
1519
1520test "$silent" = yes && exec 6>/dev/null
1521
1522
1523ac_pwd=`pwd` && test -n "$ac_pwd" &&
1524ac_ls_di=`ls -di .` &&
1525ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1526  as_fn_error "working directory cannot be determined"
1527test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1528  as_fn_error "pwd does not report name of working directory"
1529
1530
1531# Find the source files, if location was not specified.
1532if test -z "$srcdir"; then
1533  ac_srcdir_defaulted=yes
1534  # Try the directory containing this script, then the parent directory.
1535  ac_confdir=`$as_dirname -- "$as_myself" ||
1536$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1537	 X"$as_myself" : 'X\(//\)[^/]' \| \
1538	 X"$as_myself" : 'X\(//\)$' \| \
1539	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1540$as_echo X"$as_myself" |
1541    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1542	    s//\1/
1543	    q
1544	  }
1545	  /^X\(\/\/\)[^/].*/{
1546	    s//\1/
1547	    q
1548	  }
1549	  /^X\(\/\/\)$/{
1550	    s//\1/
1551	    q
1552	  }
1553	  /^X\(\/\).*/{
1554	    s//\1/
1555	    q
1556	  }
1557	  s/.*/./; q'`
1558  srcdir=$ac_confdir
1559  if test ! -r "$srcdir/$ac_unique_file"; then
1560    srcdir=..
1561  fi
1562else
1563  ac_srcdir_defaulted=no
1564fi
1565if test ! -r "$srcdir/$ac_unique_file"; then
1566  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1567  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1568fi
1569ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1570ac_abs_confdir=`(
1571	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1572	pwd)`
1573# When building in place, set srcdir=.
1574if test "$ac_abs_confdir" = "$ac_pwd"; then
1575  srcdir=.
1576fi
1577# Remove unnecessary trailing slashes from srcdir.
1578# Double slashes in file names in object file debugging info
1579# mess up M-x gdb in Emacs.
1580case $srcdir in
1581*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1582esac
1583for ac_var in $ac_precious_vars; do
1584  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1585  eval ac_env_${ac_var}_value=\$${ac_var}
1586  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1587  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1588done
1589
1590#
1591# Report the --help message.
1592#
1593if test "$ac_init_help" = "long"; then
1594  # Omit some internal or obsolete options to make the list less imposing.
1595  # This message is too long to be a string in the A/UX 3.1 sh.
1596  cat <<_ACEOF
1597\`configure' configures this package to adapt to many kinds of systems.
1598
1599Usage: $0 [OPTION]... [VAR=VALUE]...
1600
1601To assign environment variables (e.g., CC, CFLAGS...), specify them as
1602VAR=VALUE.  See below for descriptions of some of the useful variables.
1603
1604Defaults for the options are specified in brackets.
1605
1606Configuration:
1607  -h, --help              display this help and exit
1608      --help=short        display options specific to this package
1609      --help=recursive    display the short help of all the included packages
1610  -V, --version           display version information and exit
1611  -q, --quiet, --silent   do not print \`checking...' messages
1612      --cache-file=FILE   cache test results in FILE [disabled]
1613  -C, --config-cache      alias for \`--cache-file=config.cache'
1614  -n, --no-create         do not create output files
1615      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1616
1617Installation directories:
1618  --prefix=PREFIX         install architecture-independent files in PREFIX
1619                          [$ac_default_prefix]
1620  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1621                          [PREFIX]
1622
1623By default, \`make install' will install all the files in
1624\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1625an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1626for instance \`--prefix=\$HOME'.
1627
1628For better control, use the options below.
1629
1630Fine tuning of the installation directories:
1631  --bindir=DIR            user executables [EPREFIX/bin]
1632  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1633  --libexecdir=DIR        program executables [EPREFIX/libexec]
1634  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1635  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1636  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1637  --libdir=DIR            object code libraries [EPREFIX/lib]
1638  --includedir=DIR        C header files [PREFIX/include]
1639  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1640  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1641  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1642  --infodir=DIR           info documentation [DATAROOTDIR/info]
1643  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1644  --mandir=DIR            man documentation [DATAROOTDIR/man]
1645  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1646  --htmldir=DIR           html documentation [DOCDIR]
1647  --dvidir=DIR            dvi documentation [DOCDIR]
1648  --pdfdir=DIR            pdf documentation [DOCDIR]
1649  --psdir=DIR             ps documentation [DOCDIR]
1650_ACEOF
1651
1652  cat <<\_ACEOF
1653
1654System types:
1655  --build=BUILD     configure for building on BUILD [guessed]
1656  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1657  --target=TARGET   configure for building compilers for TARGET [HOST]
1658_ACEOF
1659fi
1660
1661if test -n "$ac_init_help"; then
1662
1663  cat <<\_ACEOF
1664
1665Optional Features:
1666  --disable-option-checking  ignore unrecognized --enable/--with options
1667  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1668  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1669  --enable-layout=LAYOUT
1670  --enable-experimental-libtool Use experimental custom libtool
1671  --enable-shared[=PKGS]  build shared libraries [default=yes]
1672  --enable-static[=PKGS]  build static libraries [default=yes]
1673  --enable-fast-install[=PKGS]
1674                          optimize for fast installation [default=yes]
1675  --disable-libtool-lock  avoid locking (might break parallel builds)
1676  --enable-debug          Turn on debugging and compile time warnings
1677  --enable-maintainer-mode  Turn on debugging and compile time warnings
1678  --enable-profile        Turn on profiling for the build (GCC)
1679  --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all]    Turn on pools debugging
1680  --enable-malloc-debug   Switch on malloc_debug for BeOS
1681  --disable-lfs           Disable large file support on 32-bit platforms
1682  --enable-nonportable-atomics  Use optimized atomic code which may produce nonportable binaries
1683  --enable-threads        Enable threading support in APR.
1684  --enable-allocator-uses-mmap    Use mmap in apr_allocator instead of malloc (experimental)
1685  --disable-dso           Disable DSO support
1686  --enable-other-child    Enable reliable child processes
1687  --disable-ipv6          Disable IPv6 support in APR.
1688
1689Optional Packages:
1690  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1691  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1692  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1693  --with-pic              try to use only PIC/non-PIC objects [default=use
1694                          both]
1695  --with-tags[=TAGS]      include additional configurations [automatic]
1696  --with-installbuilddir=DIR location to store APR build files (defaults to '${datadir}/build')
1697  --without-libtool       avoid using libtool to link the library
1698  --with-efence[=DIR]     path to Electric Fence installation
1699  --with-sendfile         Override decision to use sendfile
1700  --with-egd[=DIR]        use EGD-compatible socket
1701  --with-devrandom[=DEV]  use /dev/random or compatible [searches by default]
1702
1703Some influential environment variables:
1704  CC          C compiler command
1705  CFLAGS      C compiler flags
1706  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1707              nonstandard directory <lib dir>
1708  LIBS        libraries to pass to the linker, e.g. -l<library>
1709  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1710              you have headers in a nonstandard directory <include dir>
1711  CPP         C preprocessor
1712  CXX         C++ compiler command
1713  CXXFLAGS    C++ compiler flags
1714  CXXCPP      C++ preprocessor
1715  F77         Fortran 77 compiler command
1716  FFLAGS      Fortran 77 compiler flags
1717
1718Use these variables to override the choices made by `configure' or to help
1719it to find libraries and programs with nonstandard names/locations.
1720
1721Report bugs to the package provider.
1722_ACEOF
1723ac_status=$?
1724fi
1725
1726if test "$ac_init_help" = "recursive"; then
1727  # If there are subdirs, report their specific --help.
1728  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1729    test -d "$ac_dir" ||
1730      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1731      continue
1732    ac_builddir=.
1733
1734case "$ac_dir" in
1735.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1736*)
1737  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1738  # A ".." for each directory in $ac_dir_suffix.
1739  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740  case $ac_top_builddir_sub in
1741  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1743  esac ;;
1744esac
1745ac_abs_top_builddir=$ac_pwd
1746ac_abs_builddir=$ac_pwd$ac_dir_suffix
1747# for backward compatibility:
1748ac_top_builddir=$ac_top_build_prefix
1749
1750case $srcdir in
1751  .)  # We are building in place.
1752    ac_srcdir=.
1753    ac_top_srcdir=$ac_top_builddir_sub
1754    ac_abs_top_srcdir=$ac_pwd ;;
1755  [\\/]* | ?:[\\/]* )  # Absolute name.
1756    ac_srcdir=$srcdir$ac_dir_suffix;
1757    ac_top_srcdir=$srcdir
1758    ac_abs_top_srcdir=$srcdir ;;
1759  *) # Relative name.
1760    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761    ac_top_srcdir=$ac_top_build_prefix$srcdir
1762    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1763esac
1764ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1765
1766    cd "$ac_dir" || { ac_status=$?; continue; }
1767    # Check for guested configure.
1768    if test -f "$ac_srcdir/configure.gnu"; then
1769      echo &&
1770      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1771    elif test -f "$ac_srcdir/configure"; then
1772      echo &&
1773      $SHELL "$ac_srcdir/configure" --help=recursive
1774    else
1775      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1776    fi || ac_status=$?
1777    cd "$ac_pwd" || { ac_status=$?; break; }
1778  done
1779fi
1780
1781test -n "$ac_init_help" && exit $ac_status
1782if $ac_init_version; then
1783  cat <<\_ACEOF
1784configure
1785generated by GNU Autoconf 2.64
1786
1787Copyright (C) 2009 Free Software Foundation, Inc.
1788This configure script is free software; the Free Software Foundation
1789gives unlimited permission to copy, distribute and modify it.
1790_ACEOF
1791  exit
1792fi
1793
1794## ------------------------ ##
1795## Autoconf initialization. ##
1796## ------------------------ ##
1797
1798# ac_fn_c_try_compile LINENO
1799# --------------------------
1800# Try to compile conftest.$ac_ext, and return whether this succeeded.
1801ac_fn_c_try_compile ()
1802{
1803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804  rm -f conftest.$ac_objext
1805  if { { ac_try="$ac_compile"
1806case "(($ac_try" in
1807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808  *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812  (eval "$ac_compile") 2>conftest.err
1813  ac_status=$?
1814  if test -s conftest.err; then
1815    grep -v '^ *+' conftest.err >conftest.er1
1816    cat conftest.er1 >&5
1817    mv -f conftest.er1 conftest.err
1818  fi
1819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820  test $ac_status = 0; } && {
1821	 test -z "$ac_c_werror_flag" ||
1822	 test ! -s conftest.err
1823       } && test -s conftest.$ac_objext; then :
1824  ac_retval=0
1825else
1826  $as_echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829	ac_retval=1
1830fi
1831  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832  return $ac_retval
1833
1834} # ac_fn_c_try_compile
1835
1836# ac_fn_c_try_cpp LINENO
1837# ----------------------
1838# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839ac_fn_c_try_cpp ()
1840{
1841  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842  if { { ac_try="$ac_cpp conftest.$ac_ext"
1843case "(($ac_try" in
1844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845  *) ac_try_echo=$ac_try;;
1846esac
1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848$as_echo "$ac_try_echo"; } >&5
1849  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1850  ac_status=$?
1851  if test -s conftest.err; then
1852    grep -v '^ *+' conftest.err >conftest.er1
1853    cat conftest.er1 >&5
1854    mv -f conftest.er1 conftest.err
1855  fi
1856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857  test $ac_status = 0; } >/dev/null && {
1858	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1859	 test ! -s conftest.err
1860       }; then :
1861  ac_retval=0
1862else
1863  $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866    ac_retval=1
1867fi
1868  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869  return $ac_retval
1870
1871} # ac_fn_c_try_cpp
1872
1873# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874# -------------------------------------------------------
1875# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876# the include files in INCLUDES and setting the cache variable VAR
1877# accordingly.
1878ac_fn_c_check_header_mongrel ()
1879{
1880  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
1884if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885  $as_echo_n "(cached) " >&6
1886fi
1887eval ac_res=\$$3
1888	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890else
1891  # Is the header compilable?
1892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893$as_echo_n "checking $2 usability... " >&6; }
1894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h.  */
1896$4
1897#include <$2>
1898_ACEOF
1899if ac_fn_c_try_compile "$LINENO"; then :
1900  ac_header_compiler=yes
1901else
1902  ac_header_compiler=no
1903fi
1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906$as_echo "$ac_header_compiler" >&6; }
1907
1908# Is the header present?
1909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910$as_echo_n "checking $2 presence... " >&6; }
1911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912/* end confdefs.h.  */
1913#include <$2>
1914_ACEOF
1915if ac_fn_c_try_cpp "$LINENO"; then :
1916  ac_header_preproc=yes
1917else
1918  ac_header_preproc=no
1919fi
1920rm -f conftest.err conftest.$ac_ext
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922$as_echo "$ac_header_preproc" >&6; }
1923
1924# So?  What about this header?
1925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1926  yes:no: )
1927    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931    ;;
1932  no:yes:* )
1933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1936$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1937    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1940$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1941    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943    ;;
1944esac
1945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
1947if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948  $as_echo_n "(cached) " >&6
1949else
1950  eval "$3=\$ac_header_compiler"
1951fi
1952eval ac_res=\$$3
1953	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955fi
1956  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957
1958} # ac_fn_c_check_header_mongrel
1959
1960# ac_fn_c_try_run LINENO
1961# ----------------------
1962# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1963# that executables *can* be run.
1964ac_fn_c_try_run ()
1965{
1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967  if { { ac_try="$ac_link"
1968case "(($ac_try" in
1969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970  *) ac_try_echo=$ac_try;;
1971esac
1972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973$as_echo "$ac_try_echo"; } >&5
1974  (eval "$ac_link") 2>&5
1975  ac_status=$?
1976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1978  { { case "(($ac_try" in
1979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980  *) ac_try_echo=$ac_try;;
1981esac
1982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983$as_echo "$ac_try_echo"; } >&5
1984  (eval "$ac_try") 2>&5
1985  ac_status=$?
1986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987  test $ac_status = 0; }; }; then :
1988  ac_retval=0
1989else
1990  $as_echo "$as_me: program exited with status $ac_status" >&5
1991       $as_echo "$as_me: failed program was:" >&5
1992sed 's/^/| /' conftest.$ac_ext >&5
1993
1994       ac_retval=$ac_status
1995fi
1996  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1998  return $ac_retval
1999
2000} # ac_fn_c_try_run
2001
2002# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2003# -------------------------------------------------------
2004# Tests whether HEADER exists and can be compiled using the include files in
2005# INCLUDES, setting the cache variable VAR accordingly.
2006ac_fn_c_check_header_compile ()
2007{
2008  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010$as_echo_n "checking for $2... " >&6; }
2011if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012  $as_echo_n "(cached) " >&6
2013else
2014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h.  */
2016$4
2017#include <$2>
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020  eval "$3=yes"
2021else
2022  eval "$3=no"
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025fi
2026eval ac_res=\$$3
2027	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028$as_echo "$ac_res" >&6; }
2029  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030
2031} # ac_fn_c_check_header_compile
2032
2033# ac_fn_c_try_link LINENO
2034# -----------------------
2035# Try to link conftest.$ac_ext, and return whether this succeeded.
2036ac_fn_c_try_link ()
2037{
2038  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039  rm -f conftest.$ac_objext conftest$ac_exeext
2040  if { { ac_try="$ac_link"
2041case "(($ac_try" in
2042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043  *) ac_try_echo=$ac_try;;
2044esac
2045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2046$as_echo "$ac_try_echo"; } >&5
2047  (eval "$ac_link") 2>conftest.err
2048  ac_status=$?
2049  if test -s conftest.err; then
2050    grep -v '^ *+' conftest.err >conftest.er1
2051    cat conftest.er1 >&5
2052    mv -f conftest.er1 conftest.err
2053  fi
2054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055  test $ac_status = 0; } && {
2056	 test -z "$ac_c_werror_flag" ||
2057	 test ! -s conftest.err
2058       } && test -s conftest$ac_exeext && {
2059	 test "$cross_compiling" = yes ||
2060	 $as_test_x conftest$ac_exeext
2061       }; then :
2062  ac_retval=0
2063else
2064  $as_echo "$as_me: failed program was:" >&5
2065sed 's/^/| /' conftest.$ac_ext >&5
2066
2067	ac_retval=1
2068fi
2069  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2070  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2071  # interfere with the next link command; also delete a directory that is
2072  # left behind by Apple's compiler.  We do this before executing the actions.
2073  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2075  return $ac_retval
2076
2077} # ac_fn_c_try_link
2078
2079# ac_fn_c_check_func LINENO FUNC VAR
2080# ----------------------------------
2081# Tests whether FUNC exists, setting the cache variable VAR accordingly
2082ac_fn_c_check_func ()
2083{
2084  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086$as_echo_n "checking for $2... " >&6; }
2087if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2088  $as_echo_n "(cached) " >&6
2089else
2090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h.  */
2092/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2093   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2094#define $2 innocuous_$2
2095
2096/* System header to define __stub macros and hopefully few prototypes,
2097    which can conflict with char $2 (); below.
2098    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2099    <limits.h> exists even on freestanding compilers.  */
2100
2101#ifdef __STDC__
2102# include <limits.h>
2103#else
2104# include <assert.h>
2105#endif
2106
2107#undef $2
2108
2109/* Override any GCC internal prototype to avoid an error.
2110   Use char because int might match the return type of a GCC
2111   builtin and then its argument prototype would still apply.  */
2112#ifdef __cplusplus
2113extern "C"
2114#endif
2115char $2 ();
2116/* The GNU C library defines this for functions which it implements
2117    to always fail with ENOSYS.  Some functions are actually named
2118    something starting with __ and the normal name is an alias.  */
2119#if defined __stub_$2 || defined __stub___$2
2120choke me
2121#endif
2122
2123int
2124main ()
2125{
2126return $2 ();
2127  ;
2128  return 0;
2129}
2130_ACEOF
2131if ac_fn_c_try_link "$LINENO"; then :
2132  eval "$3=yes"
2133else
2134  eval "$3=no"
2135fi
2136rm -f core conftest.err conftest.$ac_objext \
2137    conftest$ac_exeext conftest.$ac_ext
2138fi
2139eval ac_res=\$$3
2140	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141$as_echo "$ac_res" >&6; }
2142  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2143
2144} # ac_fn_c_check_func
2145
2146# ac_fn_cxx_try_compile LINENO
2147# ----------------------------
2148# Try to compile conftest.$ac_ext, and return whether this succeeded.
2149ac_fn_cxx_try_compile ()
2150{
2151  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152  rm -f conftest.$ac_objext
2153  if { { ac_try="$ac_compile"
2154case "(($ac_try" in
2155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156  *) ac_try_echo=$ac_try;;
2157esac
2158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159$as_echo "$ac_try_echo"; } >&5
2160  (eval "$ac_compile") 2>conftest.err
2161  ac_status=$?
2162  if test -s conftest.err; then
2163    grep -v '^ *+' conftest.err >conftest.er1
2164    cat conftest.er1 >&5
2165    mv -f conftest.er1 conftest.err
2166  fi
2167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168  test $ac_status = 0; } && {
2169	 test -z "$ac_cxx_werror_flag" ||
2170	 test ! -s conftest.err
2171       } && test -s conftest.$ac_objext; then :
2172  ac_retval=0
2173else
2174  $as_echo "$as_me: failed program was:" >&5
2175sed 's/^/| /' conftest.$ac_ext >&5
2176
2177	ac_retval=1
2178fi
2179  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180  return $ac_retval
2181
2182} # ac_fn_cxx_try_compile
2183
2184# ac_fn_cxx_try_cpp LINENO
2185# ------------------------
2186# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2187ac_fn_cxx_try_cpp ()
2188{
2189  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190  if { { ac_try="$ac_cpp conftest.$ac_ext"
2191case "(($ac_try" in
2192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193  *) ac_try_echo=$ac_try;;
2194esac
2195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196$as_echo "$ac_try_echo"; } >&5
2197  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2198  ac_status=$?
2199  if test -s conftest.err; then
2200    grep -v '^ *+' conftest.err >conftest.er1
2201    cat conftest.er1 >&5
2202    mv -f conftest.er1 conftest.err
2203  fi
2204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205  test $ac_status = 0; } >/dev/null && {
2206	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2207	 test ! -s conftest.err
2208       }; then :
2209  ac_retval=0
2210else
2211  $as_echo "$as_me: failed program was:" >&5
2212sed 's/^/| /' conftest.$ac_ext >&5
2213
2214    ac_retval=1
2215fi
2216  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2217  return $ac_retval
2218
2219} # ac_fn_cxx_try_cpp
2220
2221# ac_fn_cxx_try_link LINENO
2222# -------------------------
2223# Try to link conftest.$ac_ext, and return whether this succeeded.
2224ac_fn_cxx_try_link ()
2225{
2226  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227  rm -f conftest.$ac_objext conftest$ac_exeext
2228  if { { ac_try="$ac_link"
2229case "(($ac_try" in
2230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231  *) ac_try_echo=$ac_try;;
2232esac
2233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234$as_echo "$ac_try_echo"; } >&5
2235  (eval "$ac_link") 2>conftest.err
2236  ac_status=$?
2237  if test -s conftest.err; then
2238    grep -v '^ *+' conftest.err >conftest.er1
2239    cat conftest.er1 >&5
2240    mv -f conftest.er1 conftest.err
2241  fi
2242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243  test $ac_status = 0; } && {
2244	 test -z "$ac_cxx_werror_flag" ||
2245	 test ! -s conftest.err
2246       } && test -s conftest$ac_exeext && {
2247	 test "$cross_compiling" = yes ||
2248	 $as_test_x conftest$ac_exeext
2249       }; then :
2250  ac_retval=0
2251else
2252  $as_echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255	ac_retval=1
2256fi
2257  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2258  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2259  # interfere with the next link command; also delete a directory that is
2260  # left behind by Apple's compiler.  We do this before executing the actions.
2261  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2262  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263  return $ac_retval
2264
2265} # ac_fn_cxx_try_link
2266
2267# ac_fn_f77_try_compile LINENO
2268# ----------------------------
2269# Try to compile conftest.$ac_ext, and return whether this succeeded.
2270ac_fn_f77_try_compile ()
2271{
2272  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273  rm -f conftest.$ac_objext
2274  if { { ac_try="$ac_compile"
2275case "(($ac_try" in
2276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277  *) ac_try_echo=$ac_try;;
2278esac
2279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280$as_echo "$ac_try_echo"; } >&5
2281  (eval "$ac_compile") 2>conftest.err
2282  ac_status=$?
2283  if test -s conftest.err; then
2284    grep -v '^ *+' conftest.err >conftest.er1
2285    cat conftest.er1 >&5
2286    mv -f conftest.er1 conftest.err
2287  fi
2288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2289  test $ac_status = 0; } && {
2290	 test -z "$ac_f77_werror_flag" ||
2291	 test ! -s conftest.err
2292       } && test -s conftest.$ac_objext; then :
2293  ac_retval=0
2294else
2295  $as_echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298	ac_retval=1
2299fi
2300  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2301  return $ac_retval
2302
2303} # ac_fn_f77_try_compile
2304
2305# ac_fn_f77_try_link LINENO
2306# -------------------------
2307# Try to link conftest.$ac_ext, and return whether this succeeded.
2308ac_fn_f77_try_link ()
2309{
2310  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311  rm -f conftest.$ac_objext conftest$ac_exeext
2312  if { { ac_try="$ac_link"
2313case "(($ac_try" in
2314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315  *) ac_try_echo=$ac_try;;
2316esac
2317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2318$as_echo "$ac_try_echo"; } >&5
2319  (eval "$ac_link") 2>conftest.err
2320  ac_status=$?
2321  if test -s conftest.err; then
2322    grep -v '^ *+' conftest.err >conftest.er1
2323    cat conftest.er1 >&5
2324    mv -f conftest.er1 conftest.err
2325  fi
2326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2327  test $ac_status = 0; } && {
2328	 test -z "$ac_f77_werror_flag" ||
2329	 test ! -s conftest.err
2330       } && test -s conftest$ac_exeext && {
2331	 test "$cross_compiling" = yes ||
2332	 $as_test_x conftest$ac_exeext
2333       }; then :
2334  ac_retval=0
2335else
2336  $as_echo "$as_me: failed program was:" >&5
2337sed 's/^/| /' conftest.$ac_ext >&5
2338
2339	ac_retval=1
2340fi
2341  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2342  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2343  # interfere with the next link command; also delete a directory that is
2344  # left behind by Apple's compiler.  We do this before executing the actions.
2345  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2346  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347  return $ac_retval
2348
2349} # ac_fn_f77_try_link
2350
2351# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2352# --------------------------------------------
2353# Tries to find the compile-time value of EXPR in a program that includes
2354# INCLUDES, setting VAR accordingly. Returns whether the value could be
2355# computed
2356ac_fn_c_compute_int ()
2357{
2358  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359  if test "$cross_compiling" = yes; then
2360    # Depending upon the size, compute the lo and hi bounds.
2361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362/* end confdefs.h.  */
2363$4
2364int
2365main ()
2366{
2367static int test_array [1 - 2 * !(($2) >= 0)];
2368test_array [0] = 0
2369
2370  ;
2371  return 0;
2372}
2373_ACEOF
2374if ac_fn_c_try_compile "$LINENO"; then :
2375  ac_lo=0 ac_mid=0
2376  while :; do
2377    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378/* end confdefs.h.  */
2379$4
2380int
2381main ()
2382{
2383static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2384test_array [0] = 0
2385
2386  ;
2387  return 0;
2388}
2389_ACEOF
2390if ac_fn_c_try_compile "$LINENO"; then :
2391  ac_hi=$ac_mid; break
2392else
2393  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2394			if test $ac_lo -le $ac_mid; then
2395			  ac_lo= ac_hi=
2396			  break
2397			fi
2398			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2399fi
2400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401  done
2402else
2403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404/* end confdefs.h.  */
2405$4
2406int
2407main ()
2408{
2409static int test_array [1 - 2 * !(($2) < 0)];
2410test_array [0] = 0
2411
2412  ;
2413  return 0;
2414}
2415_ACEOF
2416if ac_fn_c_try_compile "$LINENO"; then :
2417  ac_hi=-1 ac_mid=-1
2418  while :; do
2419    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420/* end confdefs.h.  */
2421$4
2422int
2423main ()
2424{
2425static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2426test_array [0] = 0
2427
2428  ;
2429  return 0;
2430}
2431_ACEOF
2432if ac_fn_c_try_compile "$LINENO"; then :
2433  ac_lo=$ac_mid; break
2434else
2435  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2436			if test $ac_mid -le $ac_hi; then
2437			  ac_lo= ac_hi=
2438			  break
2439			fi
2440			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2441fi
2442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443  done
2444else
2445  ac_lo= ac_hi=
2446fi
2447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448fi
2449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450# Binary search between lo and hi bounds.
2451while test "x$ac_lo" != "x$ac_hi"; do
2452  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454/* end confdefs.h.  */
2455$4
2456int
2457main ()
2458{
2459static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2460test_array [0] = 0
2461
2462  ;
2463  return 0;
2464}
2465_ACEOF
2466if ac_fn_c_try_compile "$LINENO"; then :
2467  ac_hi=$ac_mid
2468else
2469  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2470fi
2471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2472done
2473case $ac_lo in #((
2474?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2475'') ac_retval=1 ;;
2476esac
2477  else
2478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479/* end confdefs.h.  */
2480$4
2481static long int longval () { return $2; }
2482static unsigned long int ulongval () { return $2; }
2483#include <stdio.h>
2484#include <stdlib.h>
2485int
2486main ()
2487{
2488
2489  FILE *f = fopen ("conftest.val", "w");
2490  if (! f)
2491    return 1;
2492  if (($2) < 0)
2493    {
2494      long int i = longval ();
2495      if (i != ($2))
2496	return 1;
2497      fprintf (f, "%ld", i);
2498    }
2499  else
2500    {
2501      unsigned long int i = ulongval ();
2502      if (i != ($2))
2503	return 1;
2504      fprintf (f, "%lu", i);
2505    }
2506  /* Do not output a trailing newline, as this causes \r\n confusion
2507     on some platforms.  */
2508  return ferror (f) || fclose (f) != 0;
2509
2510  ;
2511  return 0;
2512}
2513_ACEOF
2514if ac_fn_c_try_run "$LINENO"; then :
2515  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2516else
2517  ac_retval=1
2518fi
2519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2520  conftest.$ac_objext conftest.beam conftest.$ac_ext
2521rm -f conftest.val
2522
2523  fi
2524  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2525  return $ac_retval
2526
2527} # ac_fn_c_compute_int
2528
2529# ac_fn_c_check_decl LINENO SYMBOL VAR
2530# ------------------------------------
2531# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2532ac_fn_c_check_decl ()
2533{
2534  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2536$as_echo_n "checking whether $2 is declared... " >&6; }
2537if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2538  $as_echo_n "(cached) " >&6
2539else
2540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541/* end confdefs.h.  */
2542$4
2543int
2544main ()
2545{
2546#ifndef $2
2547  (void) $2;
2548#endif
2549
2550  ;
2551  return 0;
2552}
2553_ACEOF
2554if ac_fn_c_try_compile "$LINENO"; then :
2555  eval "$3=yes"
2556else
2557  eval "$3=no"
2558fi
2559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560fi
2561eval ac_res=\$$3
2562	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563$as_echo "$ac_res" >&6; }
2564  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565
2566} # ac_fn_c_check_decl
2567
2568# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2569# -------------------------------------------
2570# Tests whether TYPE exists after having included INCLUDES, setting cache
2571# variable VAR accordingly.
2572ac_fn_c_check_type ()
2573{
2574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2576$as_echo_n "checking for $2... " >&6; }
2577if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2578  $as_echo_n "(cached) " >&6
2579else
2580  eval "$3=no"
2581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582/* end confdefs.h.  */
2583$4
2584int
2585main ()
2586{
2587if (sizeof ($2))
2588	 return 0;
2589  ;
2590  return 0;
2591}
2592_ACEOF
2593if ac_fn_c_try_compile "$LINENO"; then :
2594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595/* end confdefs.h.  */
2596$4
2597int
2598main ()
2599{
2600if (sizeof (($2)))
2601	    return 0;
2602  ;
2603  return 0;
2604}
2605_ACEOF
2606if ac_fn_c_try_compile "$LINENO"; then :
2607
2608else
2609  eval "$3=yes"
2610fi
2611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612fi
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
2615eval ac_res=\$$3
2616	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2617$as_echo "$ac_res" >&6; }
2618  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2619
2620} # ac_fn_c_check_type
2621
2622# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2623# ----------------------------------------------------
2624# Tries to find if the field MEMBER exists in type AGGR, after including
2625# INCLUDES, setting cache variable VAR accordingly.
2626ac_fn_c_check_member ()
2627{
2628  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2630$as_echo_n "checking for $2.$3... " >&6; }
2631if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2632  $as_echo_n "(cached) " >&6
2633else
2634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635/* end confdefs.h.  */
2636$5
2637int
2638main ()
2639{
2640static $2 ac_aggr;
2641if (ac_aggr.$3)
2642return 0;
2643  ;
2644  return 0;
2645}
2646_ACEOF
2647if ac_fn_c_try_compile "$LINENO"; then :
2648  eval "$4=yes"
2649else
2650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651/* end confdefs.h.  */
2652$5
2653int
2654main ()
2655{
2656static $2 ac_aggr;
2657if (sizeof ac_aggr.$3)
2658return 0;
2659  ;
2660  return 0;
2661}
2662_ACEOF
2663if ac_fn_c_try_compile "$LINENO"; then :
2664  eval "$4=yes"
2665else
2666  eval "$4=no"
2667fi
2668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669fi
2670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671fi
2672eval ac_res=\$$4
2673	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674$as_echo "$ac_res" >&6; }
2675  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2676
2677} # ac_fn_c_check_member
2678cat >config.log <<_ACEOF
2679This file contains any messages produced by compilers while
2680running configure, to aid debugging if configure makes a mistake.
2681
2682It was created by $as_me, which was
2683generated by GNU Autoconf 2.64.  Invocation command line was
2684
2685  $ $0 $@
2686
2687_ACEOF
2688exec 5>>config.log
2689{
2690cat <<_ASUNAME
2691## --------- ##
2692## Platform. ##
2693## --------- ##
2694
2695hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2696uname -m = `(uname -m) 2>/dev/null || echo unknown`
2697uname -r = `(uname -r) 2>/dev/null || echo unknown`
2698uname -s = `(uname -s) 2>/dev/null || echo unknown`
2699uname -v = `(uname -v) 2>/dev/null || echo unknown`
2700
2701/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2702/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2703
2704/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2705/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2706/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2707/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2708/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2709/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2710/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2711
2712_ASUNAME
2713
2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717  IFS=$as_save_IFS
2718  test -z "$as_dir" && as_dir=.
2719    $as_echo "PATH: $as_dir"
2720  done
2721IFS=$as_save_IFS
2722
2723} >&5
2724
2725cat >&5 <<_ACEOF
2726
2727
2728## ----------- ##
2729## Core tests. ##
2730## ----------- ##
2731
2732_ACEOF
2733
2734
2735# Keep a trace of the command line.
2736# Strip out --no-create and --no-recursion so they do not pile up.
2737# Strip out --silent because we don't want to record it for future runs.
2738# Also quote any args containing shell meta-characters.
2739# Make two passes to allow for proper duplicate-argument suppression.
2740ac_configure_args=
2741ac_configure_args0=
2742ac_configure_args1=
2743ac_must_keep_next=false
2744for ac_pass in 1 2
2745do
2746  for ac_arg
2747  do
2748    case $ac_arg in
2749    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2750    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2751    | -silent | --silent | --silen | --sile | --sil)
2752      continue ;;
2753    *\'*)
2754      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2755    esac
2756    case $ac_pass in
2757    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2758    2)
2759      as_fn_append ac_configure_args1 " '$ac_arg'"
2760      if test $ac_must_keep_next = true; then
2761	ac_must_keep_next=false # Got value, back to normal.
2762      else
2763	case $ac_arg in
2764	  *=* | --config-cache | -C | -disable-* | --disable-* \
2765	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2766	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2767	  | -with-* | --with-* | -without-* | --without-* | --x)
2768	    case "$ac_configure_args0 " in
2769	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2770	    esac
2771	    ;;
2772	  -* ) ac_must_keep_next=true ;;
2773	esac
2774      fi
2775      as_fn_append ac_configure_args " '$ac_arg'"
2776      ;;
2777    esac
2778  done
2779done
2780{ ac_configure_args0=; unset ac_configure_args0;}
2781{ ac_configure_args1=; unset ac_configure_args1;}
2782
2783# When interrupted or exit'd, cleanup temporary files, and complete
2784# config.log.  We remove comments because anyway the quotes in there
2785# would cause problems or look ugly.
2786# WARNING: Use '\'' to represent an apostrophe within the trap.
2787# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2788trap 'exit_status=$?
2789  # Save into config.log some information that might help in debugging.
2790  {
2791    echo
2792
2793    cat <<\_ASBOX
2794## ---------------- ##
2795## Cache variables. ##
2796## ---------------- ##
2797_ASBOX
2798    echo
2799    # The following way of writing the cache mishandles newlines in values,
2800(
2801  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2802    eval ac_val=\$$ac_var
2803    case $ac_val in #(
2804    *${as_nl}*)
2805      case $ac_var in #(
2806      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2807$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2808      esac
2809      case $ac_var in #(
2810      _ | IFS | as_nl) ;; #(
2811      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2812      *) { eval $ac_var=; unset $ac_var;} ;;
2813      esac ;;
2814    esac
2815  done
2816  (set) 2>&1 |
2817    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2818    *${as_nl}ac_space=\ *)
2819      sed -n \
2820	"s/'\''/'\''\\\\'\'''\''/g;
2821	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2822      ;; #(
2823    *)
2824      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2825      ;;
2826    esac |
2827    sort
2828)
2829    echo
2830
2831    cat <<\_ASBOX
2832## ----------------- ##
2833## Output variables. ##
2834## ----------------- ##
2835_ASBOX
2836    echo
2837    for ac_var in $ac_subst_vars
2838    do
2839      eval ac_val=\$$ac_var
2840      case $ac_val in
2841      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2842      esac
2843      $as_echo "$ac_var='\''$ac_val'\''"
2844    done | sort
2845    echo
2846
2847    if test -n "$ac_subst_files"; then
2848      cat <<\_ASBOX
2849## ------------------- ##
2850## File substitutions. ##
2851## ------------------- ##
2852_ASBOX
2853      echo
2854      for ac_var in $ac_subst_files
2855      do
2856	eval ac_val=\$$ac_var
2857	case $ac_val in
2858	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2859	esac
2860	$as_echo "$ac_var='\''$ac_val'\''"
2861      done | sort
2862      echo
2863    fi
2864
2865    if test -s confdefs.h; then
2866      cat <<\_ASBOX
2867## ----------- ##
2868## confdefs.h. ##
2869## ----------- ##
2870_ASBOX
2871      echo
2872      cat confdefs.h
2873      echo
2874    fi
2875    test "$ac_signal" != 0 &&
2876      $as_echo "$as_me: caught signal $ac_signal"
2877    $as_echo "$as_me: exit $exit_status"
2878  } >&5
2879  rm -f core *.core core.conftest.* &&
2880    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2881    exit $exit_status
2882' 0
2883for ac_signal in 1 2 13 15; do
2884  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2885done
2886ac_signal=0
2887
2888# confdefs.h avoids OS command line length limits that DEFS can exceed.
2889rm -f -r conftest* confdefs.h
2890
2891$as_echo "/* confdefs.h */" > confdefs.h
2892
2893# Predefined preprocessor variables.
2894
2895cat >>confdefs.h <<_ACEOF
2896#define PACKAGE_NAME "$PACKAGE_NAME"
2897_ACEOF
2898
2899cat >>confdefs.h <<_ACEOF
2900#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2901_ACEOF
2902
2903cat >>confdefs.h <<_ACEOF
2904#define PACKAGE_VERSION "$PACKAGE_VERSION"
2905_ACEOF
2906
2907cat >>confdefs.h <<_ACEOF
2908#define PACKAGE_STRING "$PACKAGE_STRING"
2909_ACEOF
2910
2911cat >>confdefs.h <<_ACEOF
2912#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2913_ACEOF
2914
2915cat >>confdefs.h <<_ACEOF
2916#define PACKAGE_URL "$PACKAGE_URL"
2917_ACEOF
2918
2919
2920# Let the site file select an alternate cache file if it wants to.
2921# Prefer an explicitly selected file to automatically selected ones.
2922ac_site_file1=NONE
2923ac_site_file2=NONE
2924if test -n "$CONFIG_SITE"; then
2925  ac_site_file1=$CONFIG_SITE
2926elif test "x$prefix" != xNONE; then
2927  ac_site_file1=$prefix/share/config.site
2928  ac_site_file2=$prefix/etc/config.site
2929else
2930  ac_site_file1=$ac_default_prefix/share/config.site
2931  ac_site_file2=$ac_default_prefix/etc/config.site
2932fi
2933for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2934do
2935  test "x$ac_site_file" = xNONE && continue
2936  if test -r "$ac_site_file"; then
2937    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2938$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2939    sed 's/^/| /' "$ac_site_file" >&5
2940    . "$ac_site_file"
2941  fi
2942done
2943
2944if test -r "$cache_file"; then
2945  # Some versions of bash will fail to source /dev/null (special
2946  # files actually), so we avoid doing that.
2947  if test -f "$cache_file"; then
2948    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2949$as_echo "$as_me: loading cache $cache_file" >&6;}
2950    case $cache_file in
2951      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2952      *)                      . "./$cache_file";;
2953    esac
2954  fi
2955else
2956  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2957$as_echo "$as_me: creating cache $cache_file" >&6;}
2958  >$cache_file
2959fi
2960
2961# Check that the precious variables saved in the cache have kept the same
2962# value.
2963ac_cache_corrupted=false
2964for ac_var in $ac_precious_vars; do
2965  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2966  eval ac_new_set=\$ac_env_${ac_var}_set
2967  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2968  eval ac_new_val=\$ac_env_${ac_var}_value
2969  case $ac_old_set,$ac_new_set in
2970    set,)
2971      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2972$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2973      ac_cache_corrupted=: ;;
2974    ,set)
2975      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2976$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2977      ac_cache_corrupted=: ;;
2978    ,);;
2979    *)
2980      if test "x$ac_old_val" != "x$ac_new_val"; then
2981	# differences in whitespace do not lead to failure.
2982	ac_old_val_w=`echo x $ac_old_val`
2983	ac_new_val_w=`echo x $ac_new_val`
2984	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2985	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2986$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2987	  ac_cache_corrupted=:
2988	else
2989	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2990$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2991	  eval $ac_var=\$ac_old_val
2992	fi
2993	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2994$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2995	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2996$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2997      fi;;
2998  esac
2999  # Pass precious variables to config.status.
3000  if test "$ac_new_set" = set; then
3001    case $ac_new_val in
3002    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3003    *) ac_arg=$ac_var=$ac_new_val ;;
3004    esac
3005    case " $ac_configure_args " in
3006      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3007      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3008    esac
3009  fi
3010done
3011if $ac_cache_corrupted; then
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3015$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3016  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3017fi
3018## -------------------- ##
3019## Main body of script. ##
3020## -------------------- ##
3021
3022ac_ext=c
3023ac_cpp='$CPP $CPPFLAGS'
3024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027
3028
3029ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
3030
3031
3032ac_aux_dir=
3033for ac_dir in build "$srcdir"/build; do
3034  for ac_t in install-sh install.sh shtool; do
3035    if test -f "$ac_dir/$ac_t"; then
3036      ac_aux_dir=$ac_dir
3037      ac_install_sh="$ac_aux_dir/$ac_t -c"
3038      break 2
3039    fi
3040  done
3041done
3042if test -z "$ac_aux_dir"; then
3043  as_fn_error "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
3044fi
3045
3046# These three variables are undocumented and unsupported,
3047# and are intended to be withdrawn in a future Autoconf release.
3048# They can cause serious problems if a builder's source tree is in a directory
3049# whose full name contains unusual characters.
3050ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3051ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3052ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
3211## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
3212## 2008  Free Software Foundation, Inc.
3213## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3214##
3215## This file is free software; the Free Software Foundation gives
3216## unlimited permission to copy and/or distribute it, with or without
3217## modifications, as long as this notice is preserved.
3218
3219# serial 52 AC_PROG_LIBTOOL
3220
3221
3222# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
3223# -----------------------------------------------------------
3224# If this macro is not defined by Autoconf, define it here.
3225
3226
3227
3228# AC_PROG_LIBTOOL
3229# ---------------
3230# AC_PROG_LIBTOOL
3231
3232
3233# _AC_PROG_LIBTOOL
3234# ----------------
3235# _AC_PROG_LIBTOOL
3236
3237
3238# AC_LIBTOOL_SETUP
3239# ----------------
3240# AC_LIBTOOL_SETUP
3241
3242
3243# _LT_AC_SYS_COMPILER
3244# -------------------
3245# _LT_AC_SYS_COMPILER
3246
3247
3248# _LT_CC_BASENAME(CC)
3249# -------------------
3250# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
3251
3252
3253
3254# _LT_COMPILER_BOILERPLATE
3255# ------------------------
3256# Check for compiler boilerplate output or warnings with
3257# the simple compiler test code.
3258# _LT_COMPILER_BOILERPLATE
3259
3260
3261# _LT_LINKER_BOILERPLATE
3262# ----------------------
3263# Check for linker boilerplate output or warnings with
3264# the simple link test code.
3265# _LT_LINKER_BOILERPLATE
3266
3267# _LT_REQUIRED_DARWIN_CHECKS
3268# --------------------------
3269# Check for some things on darwin
3270
3271
3272# _LT_AC_SYS_LIBPATH_AIX
3273# ----------------------
3274# Links a minimal program and checks the executable
3275# for the system default hardcoded library path. In most cases,
3276# this is /usr/lib:/lib, but when the MPI compilers are used
3277# the location of the communication and MPI libs are included too.
3278# If we don't find anything, use the default library path according
3279# to the aix ld manual.
3280# _LT_AC_SYS_LIBPATH_AIX
3281
3282
3283# _LT_AC_SHELL_INIT(ARG)
3284# ----------------------
3285# _LT_AC_SHELL_INIT
3286
3287
3288# _LT_AC_PROG_ECHO_BACKSLASH
3289# --------------------------
3290# Add some code to the start of the generated configure script which
3291# will find an echo command which doesn't interpret backslashes.
3292# _LT_AC_PROG_ECHO_BACKSLASH
3293
3294
3295# _LT_AC_LOCK
3296# -----------
3297# _LT_AC_LOCK
3298
3299
3300# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3301#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3302# ----------------------------------------------------------------
3303# Check whether the given compiler option works
3304# AC_LIBTOOL_COMPILER_OPTION
3305
3306
3307# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3308#                          [ACTION-SUCCESS], [ACTION-FAILURE])
3309# ------------------------------------------------------------
3310# Check whether the given compiler option works
3311# AC_LIBTOOL_LINKER_OPTION
3312
3313
3314# AC_LIBTOOL_SYS_MAX_CMD_LEN
3315# --------------------------
3316# AC_LIBTOOL_SYS_MAX_CMD_LEN
3317
3318
3319# _LT_AC_CHECK_DLFCN
3320# ------------------
3321# _LT_AC_CHECK_DLFCN
3322
3323
3324# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3325#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3326# ---------------------------------------------------------------------
3327# _LT_AC_TRY_DLOPEN_SELF
3328
3329
3330# AC_LIBTOOL_DLOPEN_SELF
3331# ----------------------
3332# AC_LIBTOOL_DLOPEN_SELF
3333
3334
3335# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
3336# ---------------------------------
3337# Check to see if options -c and -o are simultaneously supported by compiler
3338# AC_LIBTOOL_PROG_CC_C_O
3339
3340
3341# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
3342# -----------------------------------------
3343# Check to see if we can do hard links to lock some files if needed
3344# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
3345
3346
3347# AC_LIBTOOL_OBJDIR
3348# -----------------
3349# AC_LIBTOOL_OBJDIR
3350
3351
3352# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
3353# ----------------------------------------------
3354# Check hardcoding attributes.
3355# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
3356
3357
3358# AC_LIBTOOL_SYS_LIB_STRIP
3359# ------------------------
3360# AC_LIBTOOL_SYS_LIB_STRIP
3361
3362
3363# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3364# -----------------------------
3365# PORTME Fill in your ld.so characteristics
3366# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3367
3368
3369# _LT_AC_TAGCONFIG
3370# ----------------
3371# _LT_AC_TAGCONFIG
3372
3373
3374# AC_LIBTOOL_DLOPEN
3375# -----------------
3376# enable checks for dlopen support
3377# AC_LIBTOOL_DLOPEN
3378
3379
3380# AC_LIBTOOL_WIN32_DLL
3381# --------------------
3382# declare package support for building win32 DLLs
3383# AC_LIBTOOL_WIN32_DLL
3384
3385
3386# AC_ENABLE_SHARED([DEFAULT])
3387# ---------------------------
3388# implement the --enable-shared flag
3389# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3390# AC_ENABLE_SHARED
3391
3392
3393# AC_DISABLE_SHARED
3394# -----------------
3395# set the default shared flag to --disable-shared
3396# AC_DISABLE_SHARED
3397
3398
3399# AC_ENABLE_STATIC([DEFAULT])
3400# ---------------------------
3401# implement the --enable-static flag
3402# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3403# AC_ENABLE_STATIC
3404
3405
3406# AC_DISABLE_STATIC
3407# -----------------
3408# set the default static flag to --disable-static
3409# AC_DISABLE_STATIC
3410
3411
3412# AC_ENABLE_FAST_INSTALL([DEFAULT])
3413# ---------------------------------
3414# implement the --enable-fast-install flag
3415# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3416# AC_ENABLE_FAST_INSTALL
3417
3418
3419# AC_DISABLE_FAST_INSTALL
3420# -----------------------
3421# set the default to --disable-fast-install
3422# AC_DISABLE_FAST_INSTALL
3423
3424
3425# AC_LIBTOOL_PICMODE([MODE])
3426# --------------------------
3427# implement the --with-pic flag
3428# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
3429# AC_LIBTOOL_PICMODE
3430
3431
3432# AC_PROG_EGREP
3433# -------------
3434# This is predefined starting with Autoconf 2.54, so this conditional
3435# definition can be removed once we require Autoconf 2.54 or later.
3436
3437
3438
3439# AC_PATH_TOOL_PREFIX
3440# -------------------
3441# find a file program which can recognize shared library
3442# AC_PATH_TOOL_PREFIX
3443
3444
3445# AC_PATH_MAGIC
3446# -------------
3447# find a file program which can recognize a shared library
3448# AC_PATH_MAGIC
3449
3450
3451# AC_PROG_LD
3452# ----------
3453# find the pathname to the GNU or non-GNU linker
3454# AC_PROG_LD
3455
3456
3457# AC_PROG_LD_GNU
3458# --------------
3459# AC_PROG_LD_GNU
3460
3461
3462# AC_PROG_LD_RELOAD_FLAG
3463# ----------------------
3464# find reload flag for linker
3465#   -- PORTME Some linkers may need a different reload flag.
3466# AC_PROG_LD_RELOAD_FLAG
3467
3468
3469# AC_DEPLIBS_CHECK_METHOD
3470# -----------------------
3471# how to check for library dependencies
3472#  -- PORTME fill in with the dynamic library characteristics
3473# AC_DEPLIBS_CHECK_METHOD
3474
3475
3476# AC_PROG_NM
3477# ----------
3478# find the pathname to a BSD-compatible name lister
3479# AC_PROG_NM
3480
3481
3482# AC_CHECK_LIBM
3483# -------------
3484# check for math library
3485# AC_CHECK_LIBM
3486
3487
3488# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3489# -----------------------------------
3490# sets LIBLTDL to the link flags for the libltdl convenience library and
3491# LTDLINCL to the include flags for the libltdl header and adds
3492# --enable-ltdl-convenience to the configure arguments.  Note that
3493# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3494# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
3495# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3496# (note the single quotes!).  If your package is not flat and you're not
3497# using automake, define top_builddir and top_srcdir appropriately in
3498# the Makefiles.
3499# AC_LIBLTDL_CONVENIENCE
3500
3501
3502# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3503# -----------------------------------
3504# sets LIBLTDL to the link flags for the libltdl installable library and
3505# LTDLINCL to the include flags for the libltdl header and adds
3506# --enable-ltdl-install to the configure arguments.  Note that
3507# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3508# and an installed libltdl is not found, it is assumed to be `libltdl'.
3509# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3510# '${top_srcdir}/' (note the single quotes!).  If your package is not
3511# flat and you're not using automake, define top_builddir and top_srcdir
3512# appropriately in the Makefiles.
3513# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3514# AC_LIBLTDL_INSTALLABLE
3515
3516
3517# AC_LIBTOOL_CXX
3518# --------------
3519# enable support for C++ libraries
3520# AC_LIBTOOL_CXX
3521
3522
3523# _LT_AC_LANG_CXX
3524# ---------------
3525# _LT_AC_LANG_CXX
3526
3527# _LT_AC_PROG_CXXCPP
3528# ------------------
3529# _LT_AC_PROG_CXXCPP
3530
3531# AC_LIBTOOL_F77
3532# --------------
3533# enable support for Fortran 77 libraries
3534# AC_LIBTOOL_F77
3535
3536
3537# _LT_AC_LANG_F77
3538# ---------------
3539# _LT_AC_LANG_F77
3540
3541
3542# AC_LIBTOOL_GCJ
3543# --------------
3544# enable support for GCJ libraries
3545# AC_LIBTOOL_GCJ
3546
3547
3548# _LT_AC_LANG_GCJ
3549# ---------------
3550# _LT_AC_LANG_GCJ
3551
3552
3553# AC_LIBTOOL_RC
3554# -------------
3555# enable support for Windows resource files
3556# AC_LIBTOOL_RC
3557
3558
3559# AC_LIBTOOL_LANG_C_CONFIG
3560# ------------------------
3561# Ensure that the configuration vars for the C compiler are
3562# suitably defined.  Those variables are subsequently used by
3563# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3564
3565# AC_LIBTOOL_LANG_C_CONFIG
3566
3567
3568# AC_LIBTOOL_LANG_CXX_CONFIG
3569# --------------------------
3570# Ensure that the configuration vars for the C compiler are
3571# suitably defined.  Those variables are subsequently used by
3572# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3573
3574# AC_LIBTOOL_LANG_CXX_CONFIG
3575
3576# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3577# ------------------------------------
3578# Figure out "hidden" library dependencies from verbose
3579# compiler output when linking a shared library.
3580# Parse the compiler output and extract the necessary
3581# objects, libraries and library flags.
3582# AC_LIBTOOL_POSTDEP_PREDEP
3583
3584# AC_LIBTOOL_LANG_F77_CONFIG
3585# --------------------------
3586# Ensure that the configuration vars for the C compiler are
3587# suitably defined.  Those variables are subsequently used by
3588# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3589
3590# AC_LIBTOOL_LANG_F77_CONFIG
3591
3592
3593# AC_LIBTOOL_LANG_GCJ_CONFIG
3594# --------------------------
3595# Ensure that the configuration vars for the C compiler are
3596# suitably defined.  Those variables are subsequently used by
3597# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3598
3599# AC_LIBTOOL_LANG_GCJ_CONFIG
3600
3601
3602# AC_LIBTOOL_LANG_RC_CONFIG
3603# -------------------------
3604# Ensure that the configuration vars for the Windows resource compiler are
3605# suitably defined.  Those variables are subsequently used by
3606# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3607
3608# AC_LIBTOOL_LANG_RC_CONFIG
3609
3610
3611# AC_LIBTOOL_CONFIG([TAGNAME])
3612# ----------------------------
3613# If TAGNAME is not passed, then create an initial libtool script
3614# with a default configuration from the untagged config vars.  Otherwise
3615# add code to config.status for appending the configuration named by
3616# TAGNAME from the matching tagged config vars.
3617# AC_LIBTOOL_CONFIG
3618
3619
3620# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
3621# -------------------------------------------
3622# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
3623
3624
3625# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3626# ---------------------------------
3627 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3628
3629
3630# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
3631# ---------------------------------------
3632
3633
3634
3635# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
3636# ------------------------------------
3637# See if the linker supports building shared libraries.
3638# AC_LIBTOOL_PROG_LD_SHLIBS
3639
3640
3641# _LT_AC_FILE_LTDLL_C
3642# -------------------
3643# Be careful that the start marker always follows a newline.
3644# _LT_AC_FILE_LTDLL_C
3645
3646
3647# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
3648# ---------------------------------
3649
3650
3651
3652# old names
3653
3654
3655
3656
3657
3658
3659
3660
3661# This is just to silence aclocal about the macro not being used
3662
3663
3664
3665
3666
3667
3668
3669# Cheap backport of AS_EXECUTABLE_P and required macros
3670# from Autoconf 2.59; we should not use $as_executable_p directly.
3671
3672# _AS_TEST_PREPARE
3673# ----------------
3674# _AS_TEST_PREPARE
3675
3676# AS_EXECUTABLE_P
3677# ---------------
3678# Check whether a file is executable.
3679# AS_EXECUTABLE_P
3680
3681############################################################
3682# NOTE: This macro has been submitted for inclusion into   #
3683#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
3684#  a released version of Autoconf we should remove this    #
3685#  macro and use it instead.                               #
3686############################################################
3687# LT_AC_PROG_SED
3688# --------------
3689# Check for a fully-functional sed program, that truncates
3690# as few characters as possible.  Prefer GNU sed if found.
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704  apr_ste_save_CPPFLAGS="$CPPFLAGS"
3705
3706
3707  apr_ste_save_CFLAGS="$CFLAGS"
3708
3709
3710  apr_ste_save_LDFLAGS="$LDFLAGS"
3711
3712
3713  apr_ste_save_LIBS="$LIBS"
3714
3715
3716  apr_ste_save_INCLUDES="$INCLUDES"
3717
3718
3719
3720  rm -f config.nice
3721  cat >config.nice<<EOF
3722#! /bin/sh
3723#
3724# Created by configure
3725
3726EOF
3727  if test -n "$CC"; then
3728    echo "CC=\"$CC\"; export CC" >> config.nice
3729  fi
3730  if test -n "$CFLAGS"; then
3731    echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
3732  fi
3733  if test -n "$CPPFLAGS"; then
3734    echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
3735  fi
3736  if test -n "$LDFLAGS"; then
3737    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
3738  fi
3739  if test -n "$LTFLAGS"; then
3740    echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
3741  fi
3742  if test -n "$LIBS"; then
3743    echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
3744  fi
3745  if test -n "$INCLUDES"; then
3746    echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
3747  fi
3748  if test -n "$NOTEST_CFLAGS"; then
3749    echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
3750  fi
3751  if test -n "$NOTEST_CPPFLAGS"; then
3752    echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
3753  fi
3754  if test -n "$NOTEST_LDFLAGS"; then
3755    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
3756  fi
3757  if test -n "$NOTEST_LIBS"; then
3758    echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
3759  fi
3760
3761  # Retrieve command-line arguments.
3762  eval "set x $0 $ac_configure_args"
3763  shift
3764
3765  for arg
3766  do
3767
3768ap_last=
3769ap_cur="$arg"
3770while test "x${ap_cur}" != "x${ap_last}";
3771do
3772  ap_last="${ap_cur}"
3773  ap_cur=`eval "echo ${ap_cur}"`
3774done
3775arg="${ap_cur}"
3776
3777    echo "\"$arg\" \\" >> config.nice
3778  done
3779  echo '"$@"' >> config.nice
3780  chmod +x config.nice
3781
3782
3783# Make sure we can run config.sub.
3784$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3785  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3786
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3788$as_echo_n "checking build system type... " >&6; }
3789if test "${ac_cv_build+set}" = set; then :
3790  $as_echo_n "(cached) " >&6
3791else
3792  ac_build_alias=$build_alias
3793test "x$ac_build_alias" = x &&
3794  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3795test "x$ac_build_alias" = x &&
3796  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3797ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3798  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3799
3800fi
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3802$as_echo "$ac_cv_build" >&6; }
3803case $ac_cv_build in
3804*-*-*) ;;
3805*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3806esac
3807build=$ac_cv_build
3808ac_save_IFS=$IFS; IFS='-'
3809set x $ac_cv_build
3810shift
3811build_cpu=$1
3812build_vendor=$2
3813shift; shift
3814# Remember, the first character of IFS is used to create $*,
3815# except with old shells:
3816build_os=$*
3817IFS=$ac_save_IFS
3818case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3819
3820
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3822$as_echo_n "checking host system type... " >&6; }
3823if test "${ac_cv_host+set}" = set; then :
3824  $as_echo_n "(cached) " >&6
3825else
3826  if test "x$host_alias" = x; then
3827  ac_cv_host=$ac_cv_build
3828else
3829  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3830    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3831fi
3832
3833fi
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3835$as_echo "$ac_cv_host" >&6; }
3836case $ac_cv_host in
3837*-*-*) ;;
3838*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3839esac
3840host=$ac_cv_host
3841ac_save_IFS=$IFS; IFS='-'
3842set x $ac_cv_host
3843shift
3844host_cpu=$1
3845host_vendor=$2
3846shift; shift
3847# Remember, the first character of IFS is used to create $*,
3848# except with old shells:
3849host_os=$*
3850IFS=$ac_save_IFS
3851case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3852
3853
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3855$as_echo_n "checking target system type... " >&6; }
3856if test "${ac_cv_target+set}" = set; then :
3857  $as_echo_n "(cached) " >&6
3858else
3859  if test "x$target_alias" = x; then
3860  ac_cv_target=$ac_cv_host
3861else
3862  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3863    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3864fi
3865
3866fi
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3868$as_echo "$ac_cv_target" >&6; }
3869case $ac_cv_target in
3870*-*-*) ;;
3871*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3872esac
3873target=$ac_cv_target
3874ac_save_IFS=$IFS; IFS='-'
3875set x $ac_cv_target
3876shift
3877target_cpu=$1
3878target_vendor=$2
3879shift; shift
3880# Remember, the first character of IFS is used to create $*,
3881# except with old shells:
3882target_os=$*
3883IFS=$ac_save_IFS
3884case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3885
3886
3887# The aliases save the names the user supplied, while $host etc.
3888# will get canonicalized.
3889test -n "$target_alias" &&
3890  test "$program_prefix$program_suffix$program_transform_name" = \
3891    NONENONEs,x,x, &&
3892  program_prefix=${target_alias}-
3893
3894echo "Configuring APR library"
3895echo "Platform: $host"
3896
3897
3898
3899# Absolute source/build directory
3900apr_srcdir=`(cd $srcdir && pwd)`
3901apr_builddir=`pwd`
3902
3903
3904
3905if test "$apr_builddir" != "$apr_srcdir"; then
3906  USE_VPATH=1
3907  APR_CONFIG_LOCATION=build
3908else
3909  APR_CONFIG_LOCATION=source
3910fi
3911
3912
3913
3914# Libtool might need this symbol -- it must point to the location of
3915# the generated libtool script (not necessarily the "top" build dir).
3916#
3917top_builddir="$apr_builddir"
3918
3919
3920# Directory containing apr build macros, helpers, and make rules
3921# NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
3922#
3923apr_buildout=$apr_builddir/build
3924apr_builders=$apr_srcdir/build
3925
3926
3927MKDIR=$apr_builders/mkdir.sh
3928
3929
3930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
3931$as_echo_n "checking for working mkdir -p... " >&6; }
3932if test "${ac_cv_mkdir_p+set}" = set; then :
3933  $as_echo_n "(cached) " >&6
3934else
3935
3936    test -d conftestdir && rm -rf conftestdir
3937    mkdir -p conftestdir/somedir >/dev/null 2>&1
3938    if test -d conftestdir/somedir; then
3939      ac_cv_mkdir_p=yes
3940    else
3941      ac_cv_mkdir_p=no
3942    fi
3943    rm -rf conftestdir
3944
3945fi
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
3947$as_echo "$ac_cv_mkdir_p" >&6; }
3948  if test "$ac_cv_mkdir_p" = "yes"; then
3949      mkdir_p="mkdir -p"
3950  else
3951      mkdir_p="$apr_builders/mkdir.sh"
3952  fi
3953
3954
3955# get our version information
3956get_version="$apr_builders/get-version.sh"
3957version_hdr="$apr_srcdir/include/apr_version.h"
3958APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
3959APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
3960
3961
3962
3963
3964echo "APR Version: ${APR_DOTTED_VERSION}"
3965
3966
3967# Check whether --enable-layout was given.
3968if test "${enable_layout+set}" = set; then :
3969  enableval=$enable_layout;
3970  LAYOUT=$enableval
3971
3972fi
3973
3974
3975if test -z "$LAYOUT"; then
3976  LAYOUT="apr"
3977fi
3978
3979  if test ! -f $srcdir/config.layout; then
3980    echo "** Error: Layout file $srcdir/config.layout not found"
3981    echo "** Error: Cannot use undefined layout '$LAYOUT'"
3982    exit 1
3983  fi
3984  # Catch layout names including a slash which will otherwise
3985  # confuse the heck out of the sed script.
3986  case $LAYOUT in
3987  */*)
3988    echo "** Error: $LAYOUT is not a valid layout name"
3989    exit 1 ;;
3990  esac
3991  pldconf=./config.pld
3992
3993  sed -e "1s/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*//;1t" \
3994      -e "1,/[ 	]*<[lL]ayout[ 	]*$LAYOUT[ 	]*>[ 	]*/d" \
3995      -e '/[ 	]*<\/Layout>[ 	]*/,$d' \
3996      -e "s/^[ 	]*//g" \
3997      -e "s/:[ 	]*/=\'/g" \
3998      -e "s/[ 	]*$/'/g" \
3999      $srcdir/config.layout > $pldconf
4000  layout_name=$LAYOUT
4001  if test ! -s $pldconf; then
4002    echo "** Error: unable to find layout $layout_name"
4003    exit 1
4004  fi
4005  . $pldconf
4006  rm $pldconf
4007  for var in prefix exec_prefix bindir sbindir libexecdir mandir \
4008             sysconfdir datadir includedir localstatedir runtimedir \
4009             logfiledir libdir installbuilddir libsuffix ; do
4010    eval "val=\"\$$var\""
4011    case $val in
4012      *+)
4013        val=`echo $val | sed -e 's;\+$;;'`
4014        eval "$var=\"\$val\""
4015        autosuffix=yes
4016        ;;
4017      *)
4018        autosuffix=no
4019        ;;
4020    esac
4021    val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
4022    val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
4023    if test "$autosuffix" = "yes"; then
4024      if echo $val | grep apache >/dev/null; then
4025        addtarget=no
4026      else
4027        addtarget=yes
4028      fi
4029      if test "$addtarget" = "yes"; then
4030        val="$val/apache2"
4031      fi
4032    fi
4033    eval "$var='$val'"
4034  done
4035
4036
4037
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
4039$as_echo_n "checking for chosen layout... " >&6; }
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
4041$as_echo "$layout_name" >&6; }
4042
4043
4044ac_prev=
4045# Retrieve the command-line arguments.  The eval is needed because
4046# the arguments are quoted to preserve accuracy.
4047eval "set x $ac_configure_args"
4048shift
4049for ac_option
4050do
4051  # If the previous option needs an argument, assign it.
4052  if test -n "$ac_prev"; then
4053    eval "$ac_prev=\$ac_option"
4054    ac_prev=
4055    continue
4056  fi
4057
4058  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
4059
4060  case $ac_option in
4061
4062  -bindir | --bindir | --bindi | --bind | --bin | --bi)
4063    ac_prev=bindir ;;
4064  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4065    bindir="$ac_optarg" ;;
4066
4067  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
4068    ac_prev=datadir ;;
4069  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
4070  | --da=*)
4071    datadir="$ac_optarg" ;;
4072
4073  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
4074  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
4075  | --exec | --exe | --ex)
4076    ac_prev=exec_prefix ;;
4077  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
4078  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
4079  | --exec=* | --exe=* | --ex=*)
4080    exec_prefix="$ac_optarg" ;;
4081
4082  -includedir | --includedir | --includedi | --included | --include \
4083  | --includ | --inclu | --incl | --inc)
4084    ac_prev=includedir ;;
4085  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
4086  | --includ=* | --inclu=* | --incl=* | --inc=*)
4087    includedir="$ac_optarg" ;;
4088
4089  -infodir | --infodir | --infodi | --infod | --info | --inf)
4090    ac_prev=infodir ;;
4091  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
4092    infodir="$ac_optarg" ;;
4093
4094  -libdir | --libdir | --libdi | --libd)
4095    ac_prev=libdir ;;
4096  -libdir=* | --libdir=* | --libdi=* | --libd=*)
4097    libdir="$ac_optarg" ;;
4098
4099  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
4100  | --libexe | --libex | --libe)
4101    ac_prev=libexecdir ;;
4102  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
4103  | --libexe=* | --libex=* | --libe=*)
4104    libexecdir="$ac_optarg" ;;
4105
4106  -localstatedir | --localstatedir | --localstatedi | --localstated \
4107  | --localstate | --localstat | --localsta | --localst \
4108  | --locals | --local | --loca | --loc | --lo)
4109    ac_prev=localstatedir ;;
4110  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
4111  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
4112  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
4113    localstatedir="$ac_optarg" ;;
4114
4115  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
4116    ac_prev=mandir ;;
4117  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
4118    mandir="$ac_optarg" ;;
4119
4120  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4121    ac_prev=prefix ;;
4122  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4123    prefix="$ac_optarg" ;;
4124
4125  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
4126    ac_prev=sbindir ;;
4127  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
4128  | --sbi=* | --sb=*)
4129    sbindir="$ac_optarg" ;;
4130
4131  -sharedstatedir | --sharedstatedir | --sharedstatedi \
4132  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
4133  | --sharedst | --shareds | --shared | --share | --shar \
4134  | --sha | --sh)
4135    ac_prev=sharedstatedir ;;
4136  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
4137  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
4138  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
4139  | --sha=* | --sh=*)
4140    sharedstatedir="$ac_optarg" ;;
4141
4142  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
4143  | --syscon | --sysco | --sysc | --sys | --sy)
4144    ac_prev=sysconfdir ;;
4145  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
4146  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
4147    sysconfdir="$ac_optarg" ;;
4148
4149  esac
4150done
4151
4152# Be sure to have absolute paths.
4153for ac_var in exec_prefix prefix
4154do
4155  eval ac_val=$`echo $ac_var`
4156  case $ac_val in
4157    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
4158    *)  as_fn_error "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
4159  esac
4160done
4161
4162
4163
4164
4165case "$host" in
4166  *-apple-aux3*)
4167
4168  if test -z "$CC"; then
4169    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
4170    CC="gcc"
4171  fi
4172
4173      ;;
4174  bs2000*-siemens-sysv*)
4175
4176  if test -z "$CC"; then
4177    test "x$silent" != "xyes" && echo "  setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
4178    CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
4179  fi
4180
4181      ;;
4182  *convex-v11*)
4183
4184  if test -z "$CC"; then
4185    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
4186    CC="cc"
4187  fi
4188
4189      ;;
4190  *-ibm-os390)
4191
4192  if test -z "$CC"; then
4193    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
4194    CC="cc"
4195  fi
4196
4197      ;;
4198  *-ibm-as400)
4199
4200  if test -z "$CC"; then
4201    test "x$silent" != "xyes" && echo "  setting CC to \"icc\""
4202    CC="icc"
4203  fi
4204
4205      ;;
4206  *-isc4*)
4207
4208  if test -z "$CC"; then
4209    test "x$silent" != "xyes" && echo "  setting CC to \"gcc\""
4210    CC="gcc"
4211  fi
4212
4213      ;;
4214  m88k-*-CX/SX|CYBER)
4215
4216  if test -z "$CC"; then
4217    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
4218    CC="cc"
4219  fi
4220
4221      ;;
4222  *-next-openstep*)
4223
4224  if test -z "$CC"; then
4225    test "x$silent" != "xyes" && echo "  setting CC to \"cc\""
4226    CC="cc"
4227  fi
4228
4229      ;;
4230  *-qnx32)
4231
4232  if test -z "$CC"; then
4233    test "x$silent" != "xyes" && echo "  setting CC to \"cc -F\""
4234    CC="cc -F"
4235  fi
4236
4237      ;;
4238  *-tandem-oss)
4239
4240  if test -z "$CC"; then
4241    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
4242    CC="c89"
4243  fi
4244
4245      ;;
4246  TPF)
4247
4248  if test -z "$CC"; then
4249    test "x$silent" != "xyes" && echo "  setting CC to \"c89\""
4250    CC="c89"
4251  fi
4252
4253      ;;
4254esac
4255
4256
4257ac_ext=c
4258ac_cpp='$CPP $CPPFLAGS'
4259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262if test -n "$ac_tool_prefix"; then
4263  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4264set dummy ${ac_tool_prefix}gcc; ac_word=$2
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266$as_echo_n "checking for $ac_word... " >&6; }
4267if test "${ac_cv_prog_CC+set}" = set; then :
4268  $as_echo_n "(cached) " >&6
4269else
4270  if test -n "$CC"; then
4271  ac_cv_prog_CC="$CC" # Let the user override the test.
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276  IFS=$as_save_IFS
4277  test -z "$as_dir" && as_dir=.
4278    for ac_exec_ext in '' $ac_executable_extensions; do
4279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282    break 2
4283  fi
4284done
4285  done
4286IFS=$as_save_IFS
4287
4288fi
4289fi
4290CC=$ac_cv_prog_CC
4291if test -n "$CC"; then
4292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293$as_echo "$CC" >&6; }
4294else
4295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296$as_echo "no" >&6; }
4297fi
4298
4299
4300fi
4301if test -z "$ac_cv_prog_CC"; then
4302  ac_ct_CC=$CC
4303  # Extract the first word of "gcc", so it can be a program name with args.
4304set dummy gcc; ac_word=$2
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
4307if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4308  $as_echo_n "(cached) " >&6
4309else
4310  if test -n "$ac_ct_CC"; then
4311  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4312else
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316  IFS=$as_save_IFS
4317  test -z "$as_dir" && as_dir=.
4318    for ac_exec_ext in '' $ac_executable_extensions; do
4319  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320    ac_cv_prog_ac_ct_CC="gcc"
4321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322    break 2
4323  fi
4324done
4325  done
4326IFS=$as_save_IFS
4327
4328fi
4329fi
4330ac_ct_CC=$ac_cv_prog_ac_ct_CC
4331if test -n "$ac_ct_CC"; then
4332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4333$as_echo "$ac_ct_CC" >&6; }
4334else
4335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336$as_echo "no" >&6; }
4337fi
4338
4339  if test "x$ac_ct_CC" = x; then
4340    CC=""
4341  else
4342    case $cross_compiling:$ac_tool_warned in
4343yes:)
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346ac_tool_warned=yes ;;
4347esac
4348    CC=$ac_ct_CC
4349  fi
4350else
4351  CC="$ac_cv_prog_CC"
4352fi
4353
4354if test -z "$CC"; then
4355          if test -n "$ac_tool_prefix"; then
4356    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4357set dummy ${ac_tool_prefix}cc; ac_word=$2
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359$as_echo_n "checking for $ac_word... " >&6; }
4360if test "${ac_cv_prog_CC+set}" = set; then :
4361  $as_echo_n "(cached) " >&6
4362else
4363  if test -n "$CC"; then
4364  ac_cv_prog_CC="$CC" # Let the user override the test.
4365else
4366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369  IFS=$as_save_IFS
4370  test -z "$as_dir" && as_dir=.
4371    for ac_exec_ext in '' $ac_executable_extensions; do
4372  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373    ac_cv_prog_CC="${ac_tool_prefix}cc"
4374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375    break 2
4376  fi
4377done
4378  done
4379IFS=$as_save_IFS
4380
4381fi
4382fi
4383CC=$ac_cv_prog_CC
4384if test -n "$CC"; then
4385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4386$as_echo "$CC" >&6; }
4387else
4388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389$as_echo "no" >&6; }
4390fi
4391
4392
4393  fi
4394fi
4395if test -z "$CC"; then
4396  # Extract the first word of "cc", so it can be a program name with args.
4397set dummy cc; ac_word=$2
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399$as_echo_n "checking for $ac_word... " >&6; }
4400if test "${ac_cv_prog_CC+set}" = set; then :
4401  $as_echo_n "(cached) " >&6
4402else
4403  if test -n "$CC"; then
4404  ac_cv_prog_CC="$CC" # Let the user override the test.
4405else
4406  ac_prog_rejected=no
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410  IFS=$as_save_IFS
4411  test -z "$as_dir" && as_dir=.
4412    for ac_exec_ext in '' $ac_executable_extensions; do
4413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4415       ac_prog_rejected=yes
4416       continue
4417     fi
4418    ac_cv_prog_CC="cc"
4419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420    break 2
4421  fi
4422done
4423  done
4424IFS=$as_save_IFS
4425
4426if test $ac_prog_rejected = yes; then
4427  # We found a bogon in the path, so make sure we never use it.
4428  set dummy $ac_cv_prog_CC
4429  shift
4430  if test $# != 0; then
4431    # We chose a different compiler from the bogus one.
4432    # However, it has the same basename, so the bogon will be chosen
4433    # first if we set CC to just the basename; use the full file name.
4434    shift
4435    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4436  fi
4437fi
4438fi
4439fi
4440CC=$ac_cv_prog_CC
4441if test -n "$CC"; then
4442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4443$as_echo "$CC" >&6; }
4444else
4445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446$as_echo "no" >&6; }
4447fi
4448
4449
4450fi
4451if test -z "$CC"; then
4452  if test -n "$ac_tool_prefix"; then
4453  for ac_prog in cl.exe
4454  do
4455    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4456set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458$as_echo_n "checking for $ac_word... " >&6; }
4459if test "${ac_cv_prog_CC+set}" = set; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462  if test -n "$CC"; then
4463  ac_cv_prog_CC="$CC" # Let the user override the test.
4464else
4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468  IFS=$as_save_IFS
4469  test -z "$as_dir" && as_dir=.
4470    for ac_exec_ext in '' $ac_executable_extensions; do
4471  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474    break 2
4475  fi
4476done
4477  done
4478IFS=$as_save_IFS
4479
4480fi
4481fi
4482CC=$ac_cv_prog_CC
4483if test -n "$CC"; then
4484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4485$as_echo "$CC" >&6; }
4486else
4487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488$as_echo "no" >&6; }
4489fi
4490
4491
4492    test -n "$CC" && break
4493  done
4494fi
4495if test -z "$CC"; then
4496  ac_ct_CC=$CC
4497  for ac_prog in cl.exe
4498do
4499  # Extract the first word of "$ac_prog", so it can be a program name with args.
4500set dummy $ac_prog; ac_word=$2
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502$as_echo_n "checking for $ac_word... " >&6; }
4503if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506  if test -n "$ac_ct_CC"; then
4507  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4508else
4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512  IFS=$as_save_IFS
4513  test -z "$as_dir" && as_dir=.
4514    for ac_exec_ext in '' $ac_executable_extensions; do
4515  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516    ac_cv_prog_ac_ct_CC="$ac_prog"
4517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518    break 2
4519  fi
4520done
4521  done
4522IFS=$as_save_IFS
4523
4524fi
4525fi
4526ac_ct_CC=$ac_cv_prog_ac_ct_CC
4527if test -n "$ac_ct_CC"; then
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4529$as_echo "$ac_ct_CC" >&6; }
4530else
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532$as_echo "no" >&6; }
4533fi
4534
4535
4536  test -n "$ac_ct_CC" && break
4537done
4538
4539  if test "x$ac_ct_CC" = x; then
4540    CC=""
4541  else
4542    case $cross_compiling:$ac_tool_warned in
4543yes:)
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4546ac_tool_warned=yes ;;
4547esac
4548    CC=$ac_ct_CC
4549  fi
4550fi
4551
4552fi
4553
4554
4555test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557as_fn_error "no acceptable C compiler found in \$PATH
4558See \`config.log' for more details." "$LINENO" 5; }
4559
4560# Provide some information about the compiler.
4561$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4562set X $ac_compile
4563ac_compiler=$2
4564for ac_option in --version -v -V -qversion; do
4565  { { ac_try="$ac_compiler $ac_option >&5"
4566case "(($ac_try" in
4567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568  *) ac_try_echo=$ac_try;;
4569esac
4570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571$as_echo "$ac_try_echo"; } >&5
4572  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4573  ac_status=$?
4574  if test -s conftest.err; then
4575    sed '10a\
4576... rest of stderr output deleted ...
4577         10q' conftest.err >conftest.er1
4578    cat conftest.er1 >&5
4579    rm -f conftest.er1 conftest.err
4580  fi
4581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4582  test $ac_status = 0; }
4583done
4584
4585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h.  */
4587#include <stdio.h>
4588int
4589main ()
4590{
4591FILE *f = fopen ("conftest.out", "w");
4592 return ferror (f) || fclose (f) != 0;
4593
4594  ;
4595  return 0;
4596}
4597_ACEOF
4598ac_clean_files_save=$ac_clean_files
4599ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4600# Try to create an executable without -o first, disregard a.out.
4601# It will help us diagnose broken compilers, and finding out an intuition
4602# of exeext.
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4604$as_echo_n "checking for C compiler default output file name... " >&6; }
4605ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4606
4607# The possible output files:
4608ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4609
4610ac_rmfiles=
4611for ac_file in $ac_files
4612do
4613  case $ac_file in
4614    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4615    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4616  esac
4617done
4618rm -f $ac_rmfiles
4619
4620if { { ac_try="$ac_link_default"
4621case "(($ac_try" in
4622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623  *) ac_try_echo=$ac_try;;
4624esac
4625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626$as_echo "$ac_try_echo"; } >&5
4627  (eval "$ac_link_default") 2>&5
4628  ac_status=$?
4629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630  test $ac_status = 0; }; then :
4631  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4632# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4633# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4634# so that the user can short-circuit this test for compilers unknown to
4635# Autoconf.
4636for ac_file in $ac_files ''
4637do
4638  test -f "$ac_file" || continue
4639  case $ac_file in
4640    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4641	;;
4642    [ab].out )
4643	# We found the default executable, but exeext='' is most
4644	# certainly right.
4645	break;;
4646    *.* )
4647	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4648	then :; else
4649	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4650	fi
4651	# We set ac_cv_exeext here because the later test for it is not
4652	# safe: cross compilers may not add the suffix if given an `-o'
4653	# argument, so we may need to know it at that point already.
4654	# Even if this section looks crufty: it has the advantage of
4655	# actually working.
4656	break;;
4657    * )
4658	break;;
4659  esac
4660done
4661test "$ac_cv_exeext" = no && ac_cv_exeext=
4662
4663else
4664  ac_file=''
4665fi
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4667$as_echo "$ac_file" >&6; }
4668if test -z "$ac_file"; then :
4669  $as_echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4674{ as_fn_set_status 77
4675as_fn_error "C compiler cannot create executables
4676See \`config.log' for more details." "$LINENO" 5; }; }
4677fi
4678ac_exeext=$ac_cv_exeext
4679
4680# Check that the compiler produces executables we can run.  If not, either
4681# the compiler is broken, or we cross compile.
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4683$as_echo_n "checking whether the C compiler works... " >&6; }
4684# If not cross compiling, check that we can run a simple program.
4685if test "$cross_compiling" != yes; then
4686  if { ac_try='./$ac_file'
4687  { { case "(($ac_try" in
4688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689  *) ac_try_echo=$ac_try;;
4690esac
4691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4692$as_echo "$ac_try_echo"; } >&5
4693  (eval "$ac_try") 2>&5
4694  ac_status=$?
4695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696  test $ac_status = 0; }; }; then
4697    cross_compiling=no
4698  else
4699    if test "$cross_compiling" = maybe; then
4700	cross_compiling=yes
4701    else
4702	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704as_fn_error "cannot run C compiled programs.
4705If you meant to cross compile, use \`--host'.
4706See \`config.log' for more details." "$LINENO" 5; }
4707    fi
4708  fi
4709fi
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4711$as_echo "yes" >&6; }
4712
4713rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4714ac_clean_files=$ac_clean_files_save
4715# Check that the compiler produces executables we can run.  If not, either
4716# the compiler is broken, or we cross compile.
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4718$as_echo_n "checking whether we are cross compiling... " >&6; }
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4720$as_echo "$cross_compiling" >&6; }
4721
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4723$as_echo_n "checking for suffix of executables... " >&6; }
4724if { { ac_try="$ac_link"
4725case "(($ac_try" in
4726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727  *) ac_try_echo=$ac_try;;
4728esac
4729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4730$as_echo "$ac_try_echo"; } >&5
4731  (eval "$ac_link") 2>&5
4732  ac_status=$?
4733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4734  test $ac_status = 0; }; then :
4735  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4736# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4737# work properly (i.e., refer to `conftest.exe'), while it won't with
4738# `rm'.
4739for ac_file in conftest.exe conftest conftest.*; do
4740  test -f "$ac_file" || continue
4741  case $ac_file in
4742    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4743    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4744	  break;;
4745    * ) break;;
4746  esac
4747done
4748else
4749  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4751as_fn_error "cannot compute suffix of executables: cannot compile and link
4752See \`config.log' for more details." "$LINENO" 5; }
4753fi
4754rm -f conftest$ac_cv_exeext
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4756$as_echo "$ac_cv_exeext" >&6; }
4757
4758rm -f conftest.$ac_ext
4759EXEEXT=$ac_cv_exeext
4760ac_exeext=$EXEEXT
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4762$as_echo_n "checking for suffix of object files... " >&6; }
4763if test "${ac_cv_objext+set}" = set; then :
4764  $as_echo_n "(cached) " >&6
4765else
4766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767/* end confdefs.h.  */
4768
4769int
4770main ()
4771{
4772
4773  ;
4774  return 0;
4775}
4776_ACEOF
4777rm -f conftest.o conftest.obj
4778if { { ac_try="$ac_compile"
4779case "(($ac_try" in
4780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781  *) ac_try_echo=$ac_try;;
4782esac
4783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4784$as_echo "$ac_try_echo"; } >&5
4785  (eval "$ac_compile") 2>&5
4786  ac_status=$?
4787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4788  test $ac_status = 0; }; then :
4789  for ac_file in conftest.o conftest.obj conftest.*; do
4790  test -f "$ac_file" || continue;
4791  case $ac_file in
4792    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4793    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4794       break;;
4795  esac
4796done
4797else
4798  $as_echo "$as_me: failed program was:" >&5
4799sed 's/^/| /' conftest.$ac_ext >&5
4800
4801{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4803as_fn_error "cannot compute suffix of object files: cannot compile
4804See \`config.log' for more details." "$LINENO" 5; }
4805fi
4806rm -f conftest.$ac_cv_objext conftest.$ac_ext
4807fi
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4809$as_echo "$ac_cv_objext" >&6; }
4810OBJEXT=$ac_cv_objext
4811ac_objext=$OBJEXT
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4813$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4814if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4815  $as_echo_n "(cached) " >&6
4816else
4817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818/* end confdefs.h.  */
4819
4820int
4821main ()
4822{
4823#ifndef __GNUC__
4824       choke me
4825#endif
4826
4827  ;
4828  return 0;
4829}
4830_ACEOF
4831if ac_fn_c_try_compile "$LINENO"; then :
4832  ac_compiler_gnu=yes
4833else
4834  ac_compiler_gnu=no
4835fi
4836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837ac_cv_c_compiler_gnu=$ac_compiler_gnu
4838
4839fi
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4841$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4842if test $ac_compiler_gnu = yes; then
4843  GCC=yes
4844else
4845  GCC=
4846fi
4847ac_test_CFLAGS=${CFLAGS+set}
4848ac_save_CFLAGS=$CFLAGS
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4850$as_echo_n "checking whether $CC accepts -g... " >&6; }
4851if test "${ac_cv_prog_cc_g+set}" = set; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  ac_save_c_werror_flag=$ac_c_werror_flag
4855   ac_c_werror_flag=yes
4856   ac_cv_prog_cc_g=no
4857   CFLAGS="-g"
4858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859/* end confdefs.h.  */
4860
4861int
4862main ()
4863{
4864
4865  ;
4866  return 0;
4867}
4868_ACEOF
4869if ac_fn_c_try_compile "$LINENO"; then :
4870  ac_cv_prog_cc_g=yes
4871else
4872  CFLAGS=""
4873      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874/* end confdefs.h.  */
4875
4876int
4877main ()
4878{
4879
4880  ;
4881  return 0;
4882}
4883_ACEOF
4884if ac_fn_c_try_compile "$LINENO"; then :
4885
4886else
4887  ac_c_werror_flag=$ac_save_c_werror_flag
4888	 CFLAGS="-g"
4889	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890/* end confdefs.h.  */
4891
4892int
4893main ()
4894{
4895
4896  ;
4897  return 0;
4898}
4899_ACEOF
4900if ac_fn_c_try_compile "$LINENO"; then :
4901  ac_cv_prog_cc_g=yes
4902fi
4903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904fi
4905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906fi
4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908   ac_c_werror_flag=$ac_save_c_werror_flag
4909fi
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4911$as_echo "$ac_cv_prog_cc_g" >&6; }
4912if test "$ac_test_CFLAGS" = set; then
4913  CFLAGS=$ac_save_CFLAGS
4914elif test $ac_cv_prog_cc_g = yes; then
4915  if test "$GCC" = yes; then
4916    CFLAGS="-g -O2"
4917  else
4918    CFLAGS="-g"
4919  fi
4920else
4921  if test "$GCC" = yes; then
4922    CFLAGS="-O2"
4923  else
4924    CFLAGS=
4925  fi
4926fi
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4928$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4929if test "${ac_cv_prog_cc_c89+set}" = set; then :
4930  $as_echo_n "(cached) " >&6
4931else
4932  ac_cv_prog_cc_c89=no
4933ac_save_CC=$CC
4934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935/* end confdefs.h.  */
4936#include <stdarg.h>
4937#include <stdio.h>
4938#include <sys/types.h>
4939#include <sys/stat.h>
4940/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4941struct buf { int x; };
4942FILE * (*rcsopen) (struct buf *, struct stat *, int);
4943static char *e (p, i)
4944     char **p;
4945     int i;
4946{
4947  return p[i];
4948}
4949static char *f (char * (*g) (char **, int), char **p, ...)
4950{
4951  char *s;
4952  va_list v;
4953  va_start (v,p);
4954  s = g (p, va_arg (v,int));
4955  va_end (v);
4956  return s;
4957}
4958
4959/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4960   function prototypes and stuff, but not '\xHH' hex character constants.
4961   These don't provoke an error unfortunately, instead are silently treated
4962   as 'x'.  The following induces an error, until -std is added to get
4963   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4964   array size at least.  It's necessary to write '\x00'==0 to get something
4965   that's true only with -std.  */
4966int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4967
4968/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4969   inside strings and character constants.  */
4970#define FOO(x) 'x'
4971int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4972
4973int test (int i, double x);
4974struct s1 {int (*f) (int a);};
4975struct s2 {int (*f) (double a);};
4976int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4977int argc;
4978char **argv;
4979int
4980main ()
4981{
4982return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4983  ;
4984  return 0;
4985}
4986_ACEOF
4987for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4988	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4989do
4990  CC="$ac_save_CC $ac_arg"
4991  if ac_fn_c_try_compile "$LINENO"; then :
4992  ac_cv_prog_cc_c89=$ac_arg
4993fi
4994rm -f core conftest.err conftest.$ac_objext
4995  test "x$ac_cv_prog_cc_c89" != "xno" && break
4996done
4997rm -f conftest.$ac_ext
4998CC=$ac_save_CC
4999
5000fi
5001# AC_CACHE_VAL
5002case "x$ac_cv_prog_cc_c89" in
5003  x)
5004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5005$as_echo "none needed" >&6; } ;;
5006  xno)
5007    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5008$as_echo "unsupported" >&6; } ;;
5009  *)
5010    CC="$CC $ac_cv_prog_cc_c89"
5011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5012$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5013esac
5014if test "x$ac_cv_prog_cc_c89" != xno; then :
5015
5016fi
5017
5018ac_ext=c
5019ac_cpp='$CPP $CPPFLAGS'
5020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023
5024
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5026$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5027if test "${ac_cv_path_SED+set}" = set; then :
5028  $as_echo_n "(cached) " >&6
5029else
5030            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5031     for ac_i in 1 2 3 4 5 6 7; do
5032       ac_script="$ac_script$as_nl$ac_script"
5033     done
5034     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5035     { ac_script=; unset ac_script;}
5036     if test -z "$SED"; then
5037  ac_path_SED_found=false
5038  # Loop through the user's path and test for each of PROGNAME-LIST
5039  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040for as_dir in $PATH
5041do
5042  IFS=$as_save_IFS
5043  test -z "$as_dir" && as_dir=.
5044    for ac_prog in sed gsed; do
5045    for ac_exec_ext in '' $ac_executable_extensions; do
5046      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5047      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5048# Check for GNU ac_path_SED and select it if it is found.
5049  # Check for GNU $ac_path_SED
5050case `"$ac_path_SED" --version 2>&1` in
5051*GNU*)
5052  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5053*)
5054  ac_count=0
5055  $as_echo_n 0123456789 >"conftest.in"
5056  while :
5057  do
5058    cat "conftest.in" "conftest.in" >"conftest.tmp"
5059    mv "conftest.tmp" "conftest.in"
5060    cp "conftest.in" "conftest.nl"
5061    $as_echo '' >> "conftest.nl"
5062    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5063    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5064    as_fn_arith $ac_count + 1 && ac_count=$as_val
5065    if test $ac_count -gt ${ac_path_SED_max-0}; then
5066      # Best one so far, save it but keep looking for a better one
5067      ac_cv_path_SED="$ac_path_SED"
5068      ac_path_SED_max=$ac_count
5069    fi
5070    # 10*(2^10) chars as input seems more than enough
5071    test $ac_count -gt 10 && break
5072  done
5073  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5074esac
5075
5076      $ac_path_SED_found && break 3
5077    done
5078  done
5079  done
5080IFS=$as_save_IFS
5081  if test -z "$ac_cv_path_SED"; then
5082    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5083  fi
5084else
5085  ac_cv_path_SED=$SED
5086fi
5087
5088fi
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5090$as_echo "$ac_cv_path_SED" >&6; }
5091 SED="$ac_cv_path_SED"
5092  rm -f conftest.sed
5093
5094
5095
5096if test "x$apr_preload_done" != "xyes" ; then
5097
5098  apr_preload_done="yes"
5099
5100  echo "Applying APR hints file rules for $host"
5101
5102  case "$host" in
5103    *mint)
5104
5105  if test "x$CPPFLAGS" = "x"; then
5106    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMINT\""
5107    CPPFLAGS="-DMINT"
5108  else
5109    apr_addto_bugger="-DMINT"
5110    for i in $apr_addto_bugger; do
5111      apr_addto_duplicate="0"
5112      for j in $CPPFLAGS; do
5113        if test "x$i" = "x$j"; then
5114          apr_addto_duplicate="1"
5115          break
5116        fi
5117      done
5118      if test $apr_addto_duplicate = "0"; then
5119        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5120        CPPFLAGS="$CPPFLAGS $i"
5121      fi
5122    done
5123  fi
5124
5125
5126  if test "x$LIBS" = "x"; then
5127    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lportlib\""
5128    LIBS="-lportlib"
5129  else
5130    apr_addto_bugger="-lportlib"
5131    for i in $apr_addto_bugger; do
5132      apr_addto_duplicate="0"
5133      for j in $LIBS; do
5134        if test "x$i" = "x$j"; then
5135          apr_addto_duplicate="1"
5136          break
5137        fi
5138      done
5139      if test $apr_addto_duplicate = "0"; then
5140        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
5141        LIBS="$LIBS $i"
5142      fi
5143    done
5144  fi
5145
5146	;;
5147    *MPE/iX*)
5148
5149  if test "x$CPPFLAGS" = "x"; then
5150    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
5151    CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5152  else
5153    apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5154    for i in $apr_addto_bugger; do
5155      apr_addto_duplicate="0"
5156      for j in $CPPFLAGS; do
5157        if test "x$i" = "x$j"; then
5158          apr_addto_duplicate="1"
5159          break
5160        fi
5161      done
5162      if test $apr_addto_duplicate = "0"; then
5163        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5164        CPPFLAGS="$CPPFLAGS $i"
5165      fi
5166    done
5167  fi
5168
5169
5170  if test "x$LIBS" = "x"; then
5171    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lsvipc -lcurses\""
5172    LIBS="-lsvipc -lcurses"
5173  else
5174    apr_addto_bugger="-lsvipc -lcurses"
5175    for i in $apr_addto_bugger; do
5176      apr_addto_duplicate="0"
5177      for j in $LIBS; do
5178        if test "x$i" = "x$j"; then
5179          apr_addto_duplicate="1"
5180          break
5181        fi
5182      done
5183      if test $apr_addto_duplicate = "0"; then
5184        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
5185        LIBS="$LIBS $i"
5186      fi
5187    done
5188  fi
5189
5190
5191  if test "x$LDFLAGS" = "x"; then
5192    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
5193    LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
5194  else
5195    apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
5196    for i in $apr_addto_bugger; do
5197      apr_addto_duplicate="0"
5198      for j in $LDFLAGS; do
5199        if test "x$i" = "x$j"; then
5200          apr_addto_duplicate="1"
5201          break
5202        fi
5203      done
5204      if test $apr_addto_duplicate = "0"; then
5205        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
5206        LDFLAGS="$LDFLAGS $i"
5207      fi
5208    done
5209  fi
5210
5211	;;
5212    *-apple-aux3*)
5213
5214  if test "x$CPPFLAGS" = "x"; then
5215    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
5216    CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
5217  else
5218    apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
5219    for i in $apr_addto_bugger; do
5220      apr_addto_duplicate="0"
5221      for j in $CPPFLAGS; do
5222        if test "x$i" = "x$j"; then
5223          apr_addto_duplicate="1"
5224          break
5225        fi
5226      done
5227      if test $apr_addto_duplicate = "0"; then
5228        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5229        CPPFLAGS="$CPPFLAGS $i"
5230      fi
5231    done
5232  fi
5233
5234
5235  if test "x$LIBS" = "x"; then
5236    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lposix -lbsd\""
5237    LIBS="-lposix -lbsd"
5238  else
5239    apr_addto_bugger="-lposix -lbsd"
5240    for i in $apr_addto_bugger; do
5241      apr_addto_duplicate="0"
5242      for j in $LIBS; do
5243        if test "x$i" = "x$j"; then
5244          apr_addto_duplicate="1"
5245          break
5246        fi
5247      done
5248      if test $apr_addto_duplicate = "0"; then
5249        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
5250        LIBS="$LIBS $i"
5251      fi
5252    done
5253  fi
5254
5255
5256  if test "x$LDFLAGS" = "x"; then
5257    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-s\""
5258    LDFLAGS="-s"
5259  else
5260    apr_addto_bugger="-s"
5261    for i in $apr_addto_bugger; do
5262      apr_addto_duplicate="0"
5263      for j in $LDFLAGS; do
5264        if test "x$i" = "x$j"; then
5265          apr_addto_duplicate="1"
5266          break
5267        fi
5268      done
5269      if test $apr_addto_duplicate = "0"; then
5270        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
5271        LDFLAGS="$LDFLAGS $i"
5272      fi
5273    done
5274  fi
5275
5276
5277  test "x$silent" != "xyes" && echo "  forcing SHELL to \"/bin/ksh\""
5278  SHELL="/bin/ksh"
5279
5280	;;
5281    *-ibm-aix*)
5282
5283  if test "x$CPPFLAGS" = "x"; then
5284    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
5285    CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
5286  else
5287    apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
5288    for i in $apr_addto_bugger; do
5289      apr_addto_duplicate="0"
5290      for j in $CPPFLAGS; do
5291        if test "x$i" = "x$j"; then
5292          apr_addto_duplicate="1"
5293          break
5294        fi
5295      done
5296      if test $apr_addto_duplicate = "0"; then
5297        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5298        CPPFLAGS="$CPPFLAGS $i"
5299      fi
5300    done
5301  fi
5302
5303                case $host in
5304            *-ibm-aix4.3)
5305
5306  if test "x$CPPFLAGS" = "x"; then
5307    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
5308    CPPFLAGS="-D_USE_IRS"
5309  else
5310    apr_addto_bugger="-D_USE_IRS"
5311    for i in $apr_addto_bugger; do
5312      apr_addto_duplicate="0"
5313      for j in $CPPFLAGS; do
5314        if test "x$i" = "x$j"; then
5315          apr_addto_duplicate="1"
5316          break
5317        fi
5318      done
5319      if test $apr_addto_duplicate = "0"; then
5320        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5321        CPPFLAGS="$CPPFLAGS $i"
5322      fi
5323    done
5324  fi
5325
5326	        ;;
5327            *-ibm-aix5*)
5328
5329  if test "x$CPPFLAGS" = "x"; then
5330    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
5331    CPPFLAGS="-D_USE_IRS"
5332  else
5333    apr_addto_bugger="-D_USE_IRS"
5334    for i in $apr_addto_bugger; do
5335      apr_addto_duplicate="0"
5336      for j in $CPPFLAGS; do
5337        if test "x$i" = "x$j"; then
5338          apr_addto_duplicate="1"
5339          break
5340        fi
5341      done
5342      if test $apr_addto_duplicate = "0"; then
5343        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5344        CPPFLAGS="$CPPFLAGS $i"
5345      fi
5346    done
5347  fi
5348
5349	        ;;
5350            *-ibm-aix4.3.*)
5351
5352  if test "x$CPPFLAGS" = "x"; then
5353    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_USE_IRS\""
5354    CPPFLAGS="-D_USE_IRS"
5355  else
5356    apr_addto_bugger="-D_USE_IRS"
5357    for i in $apr_addto_bugger; do
5358      apr_addto_duplicate="0"
5359      for j in $CPPFLAGS; do
5360        if test "x$i" = "x$j"; then
5361          apr_addto_duplicate="1"
5362          break
5363        fi
5364      done
5365      if test $apr_addto_duplicate = "0"; then
5366        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5367        CPPFLAGS="$CPPFLAGS $i"
5368      fi
5369    done
5370  fi
5371
5372                ;;
5373        esac
5374                if $CC 2>&1 | grep 'xlc' > /dev/null; then
5375
5376  if test -z "$AIX_XLC"; then
5377    test "x$silent" != "xyes" && echo "  setting AIX_XLC to \"yes\""
5378    AIX_XLC="yes"
5379  fi
5380
5381
5382  if test "x$CFLAGS" = "x"; then
5383    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qHALT=E\""
5384    CFLAGS="-qHALT=E"
5385  else
5386    apr_addto_bugger="-qHALT=E"
5387    for i in $apr_addto_bugger; do
5388      apr_addto_duplicate="0"
5389      for j in $CFLAGS; do
5390        if test "x$i" = "x$j"; then
5391          apr_addto_duplicate="1"
5392          break
5393        fi
5394      done
5395      if test $apr_addto_duplicate = "0"; then
5396        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
5397        CFLAGS="$CFLAGS $i"
5398      fi
5399    done
5400  fi
5401
5402        fi
5403
5404  if test -z "$apr_sysvsem_is_global"; then
5405    test "x$silent" != "xyes" && echo "  setting apr_sysvsem_is_global to \"yes\""
5406    apr_sysvsem_is_global="yes"
5407  fi
5408
5409
5410  if test -z "$apr_lock_method"; then
5411    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
5412    apr_lock_method="USE_SYSVSEM_SERIALIZE"
5413  fi
5414
5415        case $host in
5416            *-ibm-aix3* | *-ibm-aix4.1.*)
5417                ;;
5418            *)
5419
5420  if test "x$LDFLAGS" = "x"; then
5421    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Wl,-brtl\""
5422    LDFLAGS="-Wl,-brtl"
5423  else
5424    apr_addto_bugger="-Wl,-brtl"
5425    for i in $apr_addto_bugger; do
5426      apr_addto_duplicate="0"
5427      for j in $LDFLAGS; do
5428        if test "x$i" = "x$j"; then
5429          apr_addto_duplicate="1"
5430          break
5431        fi
5432      done
5433      if test $apr_addto_duplicate = "0"; then
5434        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
5435        LDFLAGS="$LDFLAGS $i"
5436      fi
5437    done
5438  fi
5439
5440                ;;
5441	esac
5442        ;;
5443    *-apollo-*)
5444
5445  if test "x$CPPFLAGS" = "x"; then
5446    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPOLLO\""
5447    CPPFLAGS="-DAPOLLO"
5448  else
5449    apr_addto_bugger="-DAPOLLO"
5450    for i in $apr_addto_bugger; do
5451      apr_addto_duplicate="0"
5452      for j in $CPPFLAGS; do
5453        if test "x$i" = "x$j"; then
5454          apr_addto_duplicate="1"
5455          break
5456        fi
5457      done
5458      if test $apr_addto_duplicate = "0"; then
5459        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5460        CPPFLAGS="$CPPFLAGS $i"
5461      fi
5462    done
5463  fi
5464
5465	;;
5466    *-dg-dgux*)
5467
5468  if test "x$CPPFLAGS" = "x"; then
5469    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDGUX\""
5470    CPPFLAGS="-DDGUX"
5471  else
5472    apr_addto_bugger="-DDGUX"
5473    for i in $apr_addto_bugger; do
5474      apr_addto_duplicate="0"
5475      for j in $CPPFLAGS; do
5476        if test "x$i" = "x$j"; then
5477          apr_addto_duplicate="1"
5478          break
5479        fi
5480      done
5481      if test $apr_addto_duplicate = "0"; then
5482        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5483        CPPFLAGS="$CPPFLAGS $i"
5484      fi
5485    done
5486  fi
5487
5488	;;
5489    *-os2*)
5490
5491  test "x$silent" != "xyes" && echo "  forcing SHELL to \"sh\""
5492  SHELL="sh"
5493
5494
5495  if test -z "$apr_gethostbyname_is_thread_safe"; then
5496    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
5497    apr_gethostbyname_is_thread_safe="yes"
5498  fi
5499
5500
5501  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
5502    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
5503    apr_gethostbyaddr_is_thread_safe="yes"
5504  fi
5505
5506
5507  if test -z "$apr_getservbyname_is_thread_safe"; then
5508    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
5509    apr_getservbyname_is_thread_safe="yes"
5510  fi
5511
5512	;;
5513    *-hi-hiux)
5514
5515  if test "x$CPPFLAGS" = "x"; then
5516    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHIUX\""
5517    CPPFLAGS="-DHIUX"
5518  else
5519    apr_addto_bugger="-DHIUX"
5520    for i in $apr_addto_bugger; do
5521      apr_addto_duplicate="0"
5522      for j in $CPPFLAGS; do
5523        if test "x$i" = "x$j"; then
5524          apr_addto_duplicate="1"
5525          break
5526        fi
5527      done
5528      if test $apr_addto_duplicate = "0"; then
5529        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5530        CPPFLAGS="$CPPFLAGS $i"
5531      fi
5532    done
5533  fi
5534
5535	;;
5536    *-hp-hpux11.*)
5537
5538  if test "x$CPPFLAGS" = "x"; then
5539    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE\""
5540    CPPFLAGS="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
5541  else
5542    apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
5543    for i in $apr_addto_bugger; do
5544      apr_addto_duplicate="0"
5545      for j in $CPPFLAGS; do
5546        if test "x$i" = "x$j"; then
5547          apr_addto_duplicate="1"
5548          break
5549        fi
5550      done
5551      if test $apr_addto_duplicate = "0"; then
5552        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5553        CPPFLAGS="$CPPFLAGS $i"
5554      fi
5555    done
5556  fi
5557
5558	;;
5559    *-hp-hpux10.*)
5560 	case $host in
5561 	  *-hp-hpux10.01)
5562
5563  if test "x$CPPFLAGS" = "x"; then
5564    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
5565    CPPFLAGS="-DSELECT_NEEDS_CAST"
5566  else
5567    apr_addto_bugger="-DSELECT_NEEDS_CAST"
5568    for i in $apr_addto_bugger; do
5569      apr_addto_duplicate="0"
5570      for j in $CPPFLAGS; do
5571        if test "x$i" = "x$j"; then
5572          apr_addto_duplicate="1"
5573          break
5574        fi
5575      done
5576      if test $apr_addto_duplicate = "0"; then
5577        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5578        CPPFLAGS="$CPPFLAGS $i"
5579      fi
5580    done
5581  fi
5582
5583	       ;;
5584 	esac
5585
5586  if test "x$CPPFLAGS" = "x"; then
5587    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT\""
5588    CPPFLAGS="-D_REENTRANT"
5589  else
5590    apr_addto_bugger="-D_REENTRANT"
5591    for i in $apr_addto_bugger; do
5592      apr_addto_duplicate="0"
5593      for j in $CPPFLAGS; do
5594        if test "x$i" = "x$j"; then
5595          apr_addto_duplicate="1"
5596          break
5597        fi
5598      done
5599      if test $apr_addto_duplicate = "0"; then
5600        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5601        CPPFLAGS="$CPPFLAGS $i"
5602      fi
5603    done
5604  fi
5605
5606	;;
5607    *-hp-hpux*)
5608
5609  if test "x$CPPFLAGS" = "x"; then
5610    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
5611    CPPFLAGS="-DHPUX -D_REENTRANT"
5612  else
5613    apr_addto_bugger="-DHPUX -D_REENTRANT"
5614    for i in $apr_addto_bugger; do
5615      apr_addto_duplicate="0"
5616      for j in $CPPFLAGS; do
5617        if test "x$i" = "x$j"; then
5618          apr_addto_duplicate="1"
5619          break
5620        fi
5621      done
5622      if test $apr_addto_duplicate = "0"; then
5623        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5624        CPPFLAGS="$CPPFLAGS $i"
5625      fi
5626    done
5627  fi
5628
5629	;;
5630    *-linux*)
5631        case `uname -r` in
5632	    2.* )
5633  if test "x$CPPFLAGS" = "x"; then
5634    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DLINUX=2\""
5635    CPPFLAGS="-DLINUX=2"
5636  else
5637    apr_addto_bugger="-DLINUX=2"
5638    for i in $apr_addto_bugger; do
5639      apr_addto_duplicate="0"
5640      for j in $CPPFLAGS; do
5641        if test "x$i" = "x$j"; then
5642          apr_addto_duplicate="1"
5643          break
5644        fi
5645      done
5646      if test $apr_addto_duplicate = "0"; then
5647        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5648        CPPFLAGS="$CPPFLAGS $i"
5649      fi
5650    done
5651  fi
5652
5653	           ;;
5654	    1.* )
5655  if test "x$CPPFLAGS" = "x"; then
5656    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DLINUX=1\""
5657    CPPFLAGS="-DLINUX=1"
5658  else
5659    apr_addto_bugger="-DLINUX=1"
5660    for i in $apr_addto_bugger; do
5661      apr_addto_duplicate="0"
5662      for j in $CPPFLAGS; do
5663        if test "x$i" = "x$j"; then
5664          apr_addto_duplicate="1"
5665          break
5666        fi
5667      done
5668      if test $apr_addto_duplicate = "0"; then
5669        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5670        CPPFLAGS="$CPPFLAGS $i"
5671      fi
5672    done
5673  fi
5674
5675	           ;;
5676	    * )
5677	           ;;
5678        esac
5679
5680  if test "x$CPPFLAGS" = "x"; then
5681    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
5682    CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
5683  else
5684    apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
5685    for i in $apr_addto_bugger; do
5686      apr_addto_duplicate="0"
5687      for j in $CPPFLAGS; do
5688        if test "x$i" = "x$j"; then
5689          apr_addto_duplicate="1"
5690          break
5691        fi
5692      done
5693      if test $apr_addto_duplicate = "0"; then
5694        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5695        CPPFLAGS="$CPPFLAGS $i"
5696      fi
5697    done
5698  fi
5699
5700	;;
5701    *-GNU*)
5702
5703  if test "x$CPPFLAGS" = "x"; then
5704    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DHURD -D_GNU_SOURCE\""
5705    CPPFLAGS="-DHURD -D_GNU_SOURCE"
5706  else
5707    apr_addto_bugger="-DHURD -D_GNU_SOURCE"
5708    for i in $apr_addto_bugger; do
5709      apr_addto_duplicate="0"
5710      for j in $CPPFLAGS; do
5711        if test "x$i" = "x$j"; then
5712          apr_addto_duplicate="1"
5713          break
5714        fi
5715      done
5716      if test $apr_addto_duplicate = "0"; then
5717        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5718        CPPFLAGS="$CPPFLAGS $i"
5719      fi
5720    done
5721  fi
5722
5723	;;
5724    *-lynx-lynxos)
5725
5726  if test "x$CPPFLAGS" = "x"; then
5727    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
5728    CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
5729  else
5730    apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
5731    for i in $apr_addto_bugger; do
5732      apr_addto_duplicate="0"
5733      for j in $CPPFLAGS; do
5734        if test "x$i" = "x$j"; then
5735          apr_addto_duplicate="1"
5736          break
5737        fi
5738      done
5739      if test $apr_addto_duplicate = "0"; then
5740        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5741        CPPFLAGS="$CPPFLAGS $i"
5742      fi
5743    done
5744  fi
5745
5746
5747  if test "x$LIBS" = "x"; then
5748    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbsd\""
5749    LIBS="-lbsd"
5750  else
5751    apr_addto_bugger="-lbsd"
5752    for i in $apr_addto_bugger; do
5753      apr_addto_duplicate="0"
5754      for j in $LIBS; do
5755        if test "x$i" = "x$j"; then
5756          apr_addto_duplicate="1"
5757          break
5758        fi
5759      done
5760      if test $apr_addto_duplicate = "0"; then
5761        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
5762        LIBS="$LIBS $i"
5763      fi
5764    done
5765  fi
5766
5767	;;
5768    *486-*-bsdi*)
5769
5770  if test "x$CFLAGS" = "x"; then
5771    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-m486\""
5772    CFLAGS="-m486"
5773  else
5774    apr_addto_bugger="-m486"
5775    for i in $apr_addto_bugger; do
5776      apr_addto_duplicate="0"
5777      for j in $CFLAGS; do
5778        if test "x$i" = "x$j"; then
5779          apr_addto_duplicate="1"
5780          break
5781        fi
5782      done
5783      if test $apr_addto_duplicate = "0"; then
5784        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
5785        CFLAGS="$CFLAGS $i"
5786      fi
5787    done
5788  fi
5789
5790	;;
5791    *-*-bsdi*)
5792        case $host in
5793            *bsdi4.1)
5794
5795  if test "x$CFLAGS" = "x"; then
5796    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-D_REENTRANT\""
5797    CFLAGS="-D_REENTRANT"
5798  else
5799    apr_addto_bugger="-D_REENTRANT"
5800    for i in $apr_addto_bugger; do
5801      apr_addto_duplicate="0"
5802      for j in $CFLAGS; do
5803        if test "x$i" = "x$j"; then
5804          apr_addto_duplicate="1"
5805          break
5806        fi
5807      done
5808      if test $apr_addto_duplicate = "0"; then
5809        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
5810        CFLAGS="$CFLAGS $i"
5811      fi
5812    done
5813  fi
5814
5815                ;;
5816        esac
5817        ;;
5818    *-openbsd*)
5819
5820  if test "x$CPPFLAGS" = "x"; then
5821    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREADS\""
5822    CPPFLAGS="-D_POSIX_THREADS"
5823  else
5824    apr_addto_bugger="-D_POSIX_THREADS"
5825    for i in $apr_addto_bugger; do
5826      apr_addto_duplicate="0"
5827      for j in $CPPFLAGS; do
5828        if test "x$i" = "x$j"; then
5829          apr_addto_duplicate="1"
5830          break
5831        fi
5832      done
5833      if test $apr_addto_duplicate = "0"; then
5834        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5835        CPPFLAGS="$CPPFLAGS $i"
5836      fi
5837    done
5838  fi
5839
5840        # binding to an ephemeral port fails on OpenBSD so override
5841        # the test for O_NONBLOCK inheritance across accept().
5842
5843  if test -z "$ac_cv_o_nonblock_inherited"; then
5844    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
5845    ac_cv_o_nonblock_inherited="yes"
5846  fi
5847
5848	;;
5849    *-netbsd*)
5850
5851  if test "x$CPPFLAGS" = "x"; then
5852    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNETBSD\""
5853    CPPFLAGS="-DNETBSD"
5854  else
5855    apr_addto_bugger="-DNETBSD"
5856    for i in $apr_addto_bugger; do
5857      apr_addto_duplicate="0"
5858      for j in $CPPFLAGS; do
5859        if test "x$i" = "x$j"; then
5860          apr_addto_duplicate="1"
5861          break
5862        fi
5863      done
5864      if test $apr_addto_duplicate = "0"; then
5865        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5866        CPPFLAGS="$CPPFLAGS $i"
5867      fi
5868    done
5869  fi
5870
5871        # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
5872
5873  if test -z "$ac_cv_o_nonblock_inherited"; then
5874    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
5875    ac_cv_o_nonblock_inherited="yes"
5876  fi
5877
5878	;;
5879    *-freebsd*)
5880
5881  if test -z "$apr_lock_method"; then
5882    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
5883    apr_lock_method="USE_FLOCK_SERIALIZE"
5884  fi
5885
5886        if test -x /sbin/sysctl; then
5887            os_version=`/sbin/sysctl -n kern.osreldate`
5888        else
5889            os_version=000000
5890        fi
5891        # 502102 is when libc_r switched to libpthread (aka libkse).
5892        if test $os_version -ge "502102"; then
5893          apr_cv_pthreads_cflags="none"
5894          apr_cv_pthreads_lib="-lpthread"
5895        else
5896
5897  if test "x$CPPFLAGS" = "x"; then
5898    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\""
5899    CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT"
5900  else
5901    apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT"
5902    for i in $apr_addto_bugger; do
5903      apr_addto_duplicate="0"
5904      for j in $CPPFLAGS; do
5905        if test "x$i" = "x$j"; then
5906          apr_addto_duplicate="1"
5907          break
5908        fi
5909      done
5910      if test $apr_addto_duplicate = "0"; then
5911        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5912        CPPFLAGS="$CPPFLAGS $i"
5913      fi
5914    done
5915  fi
5916
5917
5918  if test -z "$enable_threads"; then
5919    test "x$silent" != "xyes" && echo "  setting enable_threads to \"no\""
5920    enable_threads="no"
5921  fi
5922
5923        fi
5924        # prevent use of KQueue before FreeBSD 4.8
5925        if test $os_version -lt "480000"; then
5926
5927  if test -z "$ac_cv_func_kqueue"; then
5928    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
5929    ac_cv_func_kqueue="no"
5930  fi
5931
5932        fi
5933	;;
5934    *-k*bsd*-gnu)
5935
5936  if test "x$CPPFLAGS" = "x"; then
5937    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
5938    CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
5939  else
5940    apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
5941    for i in $apr_addto_bugger; do
5942      apr_addto_duplicate="0"
5943      for j in $CPPFLAGS; do
5944        if test "x$i" = "x$j"; then
5945          apr_addto_duplicate="1"
5946          break
5947        fi
5948      done
5949      if test $apr_addto_duplicate = "0"; then
5950        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5951        CPPFLAGS="$CPPFLAGS $i"
5952      fi
5953    done
5954  fi
5955
5956        ;;
5957    *-next-nextstep*)
5958
5959  if test -z "$CFLAGS"; then
5960    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
5961    CFLAGS="-O"
5962  fi
5963
5964
5965  if test "x$CPPFLAGS" = "x"; then
5966    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
5967    CPPFLAGS="-DNEXT"
5968  else
5969    apr_addto_bugger="-DNEXT"
5970    for i in $apr_addto_bugger; do
5971      apr_addto_duplicate="0"
5972      for j in $CPPFLAGS; do
5973        if test "x$i" = "x$j"; then
5974          apr_addto_duplicate="1"
5975          break
5976        fi
5977      done
5978      if test $apr_addto_duplicate = "0"; then
5979        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
5980        CPPFLAGS="$CPPFLAGS $i"
5981      fi
5982    done
5983  fi
5984
5985	;;
5986    *-next-openstep*)
5987
5988  if test -z "$CFLAGS"; then
5989    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
5990    CFLAGS="-O"
5991  fi
5992
5993
5994  if test "x$CPPFLAGS" = "x"; then
5995    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEXT\""
5996    CPPFLAGS="-DNEXT"
5997  else
5998    apr_addto_bugger="-DNEXT"
5999    for i in $apr_addto_bugger; do
6000      apr_addto_duplicate="0"
6001      for j in $CPPFLAGS; do
6002        if test "x$i" = "x$j"; then
6003          apr_addto_duplicate="1"
6004          break
6005        fi
6006      done
6007      if test $apr_addto_duplicate = "0"; then
6008        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6009        CPPFLAGS="$CPPFLAGS $i"
6010      fi
6011    done
6012  fi
6013
6014	;;
6015    *-apple-rhapsody*)
6016
6017  if test "x$CPPFLAGS" = "x"; then
6018    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DRHAPSODY\""
6019    CPPFLAGS="-DRHAPSODY"
6020  else
6021    apr_addto_bugger="-DRHAPSODY"
6022    for i in $apr_addto_bugger; do
6023      apr_addto_duplicate="0"
6024      for j in $CPPFLAGS; do
6025        if test "x$i" = "x$j"; then
6026          apr_addto_duplicate="1"
6027          break
6028        fi
6029      done
6030      if test $apr_addto_duplicate = "0"; then
6031        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6032        CPPFLAGS="$CPPFLAGS $i"
6033      fi
6034    done
6035  fi
6036
6037	;;
6038    *-apple-darwin*)
6039
6040  if test "x$CPPFLAGS" = "x"; then
6041    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK\""
6042    CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
6043  else
6044    apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
6045    for i in $apr_addto_bugger; do
6046      apr_addto_duplicate="0"
6047      for j in $CPPFLAGS; do
6048        if test "x$i" = "x$j"; then
6049          apr_addto_duplicate="1"
6050          break
6051        fi
6052      done
6053      if test $apr_addto_duplicate = "0"; then
6054        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6055        CPPFLAGS="$CPPFLAGS $i"
6056      fi
6057    done
6058  fi
6059
6060
6061  if test -z "$apr_posixsem_is_global"; then
6062    test "x$silent" != "xyes" && echo "  setting apr_posixsem_is_global to \"yes\""
6063    apr_posixsem_is_global="yes"
6064  fi
6065
6066        case $host in
6067            *-apple-darwin[1-9].*)
6068                # APR's use of kqueue has triggered kernel panics for some
6069                # 10.5.x (Darwin 9.x) users when running the entire test suite.
6070                # In 10.4.x, use of kqueue would cause the socket tests to hang.
6071                # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues
6072
6073  if test -z "$ac_cv_func_kqueue"; then
6074    test "x$silent" != "xyes" && echo "  setting ac_cv_func_kqueue to \"no\""
6075    ac_cv_func_kqueue="no"
6076  fi
6077
6078
6079  if test -z "$ac_cv_func_poll"; then
6080    test "x$silent" != "xyes" && echo "  setting ac_cv_func_poll to \"no\""
6081    ac_cv_func_poll="no"
6082  fi
6083 # See issue 34332
6084            ;;
6085            *-apple-darwin10.*)
6086
6087  if test "x$CPPFLAGS" = "x"; then
6088    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DDARWIN_10\""
6089    CPPFLAGS="-DDARWIN_10"
6090  else
6091    apr_addto_bugger="-DDARWIN_10"
6092    for i in $apr_addto_bugger; do
6093      apr_addto_duplicate="0"
6094      for j in $CPPFLAGS; do
6095        if test "x$i" = "x$j"; then
6096          apr_addto_duplicate="1"
6097          break
6098        fi
6099      done
6100      if test $apr_addto_duplicate = "0"; then
6101        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6102        CPPFLAGS="$CPPFLAGS $i"
6103      fi
6104    done
6105  fi
6106
6107            ;;
6108        esac
6109	;;
6110    *-dec-osf*)
6111
6112  if test "x$CPPFLAGS" = "x"; then
6113    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DOSF1\""
6114    CPPFLAGS="-DOSF1"
6115  else
6116    apr_addto_bugger="-DOSF1"
6117    for i in $apr_addto_bugger; do
6118      apr_addto_duplicate="0"
6119      for j in $CPPFLAGS; do
6120        if test "x$i" = "x$j"; then
6121          apr_addto_duplicate="1"
6122          break
6123        fi
6124      done
6125      if test $apr_addto_duplicate = "0"; then
6126        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6127        CPPFLAGS="$CPPFLAGS $i"
6128      fi
6129    done
6130  fi
6131
6132        # process-shared mutexes don't seem to work in Tru64 5.0
6133
6134  if test -z "$apr_cv_process_shared_works"; then
6135    test "x$silent" != "xyes" && echo "  setting apr_cv_process_shared_works to \"no\""
6136    apr_cv_process_shared_works="no"
6137  fi
6138
6139	;;
6140    *-nto-qnx*)
6141	;;
6142    *-qnx)
6143
6144  if test "x$CPPFLAGS" = "x"; then
6145    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
6146    CPPFLAGS="-DQNX"
6147  else
6148    apr_addto_bugger="-DQNX"
6149    for i in $apr_addto_bugger; do
6150      apr_addto_duplicate="0"
6151      for j in $CPPFLAGS; do
6152        if test "x$i" = "x$j"; then
6153          apr_addto_duplicate="1"
6154          break
6155        fi
6156      done
6157      if test $apr_addto_duplicate = "0"; then
6158        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6159        CPPFLAGS="$CPPFLAGS $i"
6160      fi
6161    done
6162  fi
6163
6164
6165  if test "x$LIBS" = "x"; then
6166    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
6167    LIBS="-N128k -lunix"
6168  else
6169    apr_addto_bugger="-N128k -lunix"
6170    for i in $apr_addto_bugger; do
6171      apr_addto_duplicate="0"
6172      for j in $LIBS; do
6173        if test "x$i" = "x$j"; then
6174          apr_addto_duplicate="1"
6175          break
6176        fi
6177      done
6178      if test $apr_addto_duplicate = "0"; then
6179        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6180        LIBS="$LIBS $i"
6181      fi
6182    done
6183  fi
6184
6185	;;
6186    *-qnx32)
6187
6188  if test "x$CPPFLAGS" = "x"; then
6189    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DQNX\""
6190    CPPFLAGS="-DQNX"
6191  else
6192    apr_addto_bugger="-DQNX"
6193    for i in $apr_addto_bugger; do
6194      apr_addto_duplicate="0"
6195      for j in $CPPFLAGS; do
6196        if test "x$i" = "x$j"; then
6197          apr_addto_duplicate="1"
6198          break
6199        fi
6200      done
6201      if test $apr_addto_duplicate = "0"; then
6202        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6203        CPPFLAGS="$CPPFLAGS $i"
6204      fi
6205    done
6206  fi
6207
6208
6209  if test "x$CFLAGS" = "x"; then
6210    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-mf -3\""
6211    CFLAGS="-mf -3"
6212  else
6213    apr_addto_bugger="-mf -3"
6214    for i in $apr_addto_bugger; do
6215      apr_addto_duplicate="0"
6216      for j in $CFLAGS; do
6217        if test "x$i" = "x$j"; then
6218          apr_addto_duplicate="1"
6219          break
6220        fi
6221      done
6222      if test $apr_addto_duplicate = "0"; then
6223        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6224        CFLAGS="$CFLAGS $i"
6225      fi
6226    done
6227  fi
6228
6229
6230  if test "x$LIBS" = "x"; then
6231    test "x$silent" != "xyes" && echo "  setting LIBS to \"-N128k -lunix\""
6232    LIBS="-N128k -lunix"
6233  else
6234    apr_addto_bugger="-N128k -lunix"
6235    for i in $apr_addto_bugger; do
6236      apr_addto_duplicate="0"
6237      for j in $LIBS; do
6238        if test "x$i" = "x$j"; then
6239          apr_addto_duplicate="1"
6240          break
6241        fi
6242      done
6243      if test $apr_addto_duplicate = "0"; then
6244        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6245        LIBS="$LIBS $i"
6246      fi
6247    done
6248  fi
6249
6250	;;
6251    *-isc4*)
6252
6253  if test "x$CPPFLAGS" = "x"; then
6254    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-posix -DISC\""
6255    CPPFLAGS="-posix -DISC"
6256  else
6257    apr_addto_bugger="-posix -DISC"
6258    for i in $apr_addto_bugger; do
6259      apr_addto_duplicate="0"
6260      for j in $CPPFLAGS; do
6261        if test "x$i" = "x$j"; then
6262          apr_addto_duplicate="1"
6263          break
6264        fi
6265      done
6266      if test $apr_addto_duplicate = "0"; then
6267        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6268        CPPFLAGS="$CPPFLAGS $i"
6269      fi
6270    done
6271  fi
6272
6273
6274  if test "x$LDFLAGS" = "x"; then
6275    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-posix\""
6276    LDFLAGS="-posix"
6277  else
6278    apr_addto_bugger="-posix"
6279    for i in $apr_addto_bugger; do
6280      apr_addto_duplicate="0"
6281      for j in $LDFLAGS; do
6282        if test "x$i" = "x$j"; then
6283          apr_addto_duplicate="1"
6284          break
6285        fi
6286      done
6287      if test $apr_addto_duplicate = "0"; then
6288        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
6289        LDFLAGS="$LDFLAGS $i"
6290      fi
6291    done
6292  fi
6293
6294
6295  if test "x$LIBS" = "x"; then
6296    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet\""
6297    LIBS="-linet"
6298  else
6299    apr_addto_bugger="-linet"
6300    for i in $apr_addto_bugger; do
6301      apr_addto_duplicate="0"
6302      for j in $LIBS; do
6303        if test "x$i" = "x$j"; then
6304          apr_addto_duplicate="1"
6305          break
6306        fi
6307      done
6308      if test $apr_addto_duplicate = "0"; then
6309        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6310        LIBS="$LIBS $i"
6311      fi
6312    done
6313  fi
6314
6315	;;
6316    *-sco3.2v[234]*)
6317
6318  if test "x$CPPFLAGS" = "x"; then
6319    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
6320    CPPFLAGS="-DSCO -D_REENTRANT"
6321  else
6322    apr_addto_bugger="-DSCO -D_REENTRANT"
6323    for i in $apr_addto_bugger; do
6324      apr_addto_duplicate="0"
6325      for j in $CPPFLAGS; do
6326        if test "x$i" = "x$j"; then
6327          apr_addto_duplicate="1"
6328          break
6329        fi
6330      done
6331      if test $apr_addto_duplicate = "0"; then
6332        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6333        CPPFLAGS="$CPPFLAGS $i"
6334      fi
6335    done
6336  fi
6337
6338	if test "$GCC" = "no"; then
6339
6340  if test "x$CFLAGS" = "x"; then
6341    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Oacgiltz\""
6342    CFLAGS="-Oacgiltz"
6343  else
6344    apr_addto_bugger="-Oacgiltz"
6345    for i in $apr_addto_bugger; do
6346      apr_addto_duplicate="0"
6347      for j in $CFLAGS; do
6348        if test "x$i" = "x$j"; then
6349          apr_addto_duplicate="1"
6350          break
6351        fi
6352      done
6353      if test $apr_addto_duplicate = "0"; then
6354        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
6355        CFLAGS="$CFLAGS $i"
6356      fi
6357    done
6358  fi
6359
6360	fi
6361
6362  if test "x$LIBS" = "x"; then
6363    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
6364    LIBS="-lPW -lmalloc"
6365  else
6366    apr_addto_bugger="-lPW -lmalloc"
6367    for i in $apr_addto_bugger; do
6368      apr_addto_duplicate="0"
6369      for j in $LIBS; do
6370        if test "x$i" = "x$j"; then
6371          apr_addto_duplicate="1"
6372          break
6373        fi
6374      done
6375      if test $apr_addto_duplicate = "0"; then
6376        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6377        LIBS="$LIBS $i"
6378      fi
6379    done
6380  fi
6381
6382	;;
6383    *-sco3.2v5*)
6384
6385  if test "x$CPPFLAGS" = "x"; then
6386    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
6387    CPPFLAGS="-DSCO5 -D_REENTRANT"
6388  else
6389    apr_addto_bugger="-DSCO5 -D_REENTRANT"
6390    for i in $apr_addto_bugger; do
6391      apr_addto_duplicate="0"
6392      for j in $CPPFLAGS; do
6393        if test "x$i" = "x$j"; then
6394          apr_addto_duplicate="1"
6395          break
6396        fi
6397      done
6398      if test $apr_addto_duplicate = "0"; then
6399        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6400        CPPFLAGS="$CPPFLAGS $i"
6401      fi
6402    done
6403  fi
6404
6405	;;
6406    *-sco_sv*|*-SCO_SV*)
6407
6408  if test "x$CPPFLAGS" = "x"; then
6409    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
6410    CPPFLAGS="-DSCO -D_REENTRANT"
6411  else
6412    apr_addto_bugger="-DSCO -D_REENTRANT"
6413    for i in $apr_addto_bugger; do
6414      apr_addto_duplicate="0"
6415      for j in $CPPFLAGS; do
6416        if test "x$i" = "x$j"; then
6417          apr_addto_duplicate="1"
6418          break
6419        fi
6420      done
6421      if test $apr_addto_duplicate = "0"; then
6422        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6423        CPPFLAGS="$CPPFLAGS $i"
6424      fi
6425    done
6426  fi
6427
6428
6429  if test "x$LIBS" = "x"; then
6430    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW -lmalloc\""
6431    LIBS="-lPW -lmalloc"
6432  else
6433    apr_addto_bugger="-lPW -lmalloc"
6434    for i in $apr_addto_bugger; do
6435      apr_addto_duplicate="0"
6436      for j in $LIBS; do
6437        if test "x$i" = "x$j"; then
6438          apr_addto_duplicate="1"
6439          break
6440        fi
6441      done
6442      if test $apr_addto_duplicate = "0"; then
6443        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6444        LIBS="$LIBS $i"
6445      fi
6446    done
6447  fi
6448
6449	;;
6450    *-solaris2*)
6451    	PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
6452
6453  if test "x$CPPFLAGS" = "x"; then
6454    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
6455    CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
6456  else
6457    apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
6458    for i in $apr_addto_bugger; do
6459      apr_addto_duplicate="0"
6460      for j in $CPPFLAGS; do
6461        if test "x$i" = "x$j"; then
6462          apr_addto_duplicate="1"
6463          break
6464        fi
6465      done
6466      if test $apr_addto_duplicate = "0"; then
6467        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6468        CPPFLAGS="$CPPFLAGS $i"
6469      fi
6470    done
6471  fi
6472
6473        if test $PLATOSVERS -ge 10; then
6474
6475  if test -z "$apr_lock_method"; then
6476    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_PROC_PTHREAD_SERIALIZE\""
6477    apr_lock_method="USE_PROC_PTHREAD_SERIALIZE"
6478  fi
6479
6480        else
6481
6482  if test -z "$apr_lock_method"; then
6483    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
6484    apr_lock_method="USE_FCNTL_SERIALIZE"
6485  fi
6486
6487        fi
6488        # readdir64_r error handling seems broken on Solaris (at least
6489        # up till 2.8) -- it will return -1 at end-of-directory.
6490
6491  if test -z "$ac_cv_func_readdir64_r"; then
6492    test "x$silent" != "xyes" && echo "  setting ac_cv_func_readdir64_r to \"no\""
6493    ac_cv_func_readdir64_r="no"
6494  fi
6495
6496	;;
6497    *-sunos4*)
6498
6499  if test "x$CPPFLAGS" = "x"; then
6500    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSUNOS4\""
6501    CPPFLAGS="-DSUNOS4"
6502  else
6503    apr_addto_bugger="-DSUNOS4"
6504    for i in $apr_addto_bugger; do
6505      apr_addto_duplicate="0"
6506      for j in $CPPFLAGS; do
6507        if test "x$i" = "x$j"; then
6508          apr_addto_duplicate="1"
6509          break
6510        fi
6511      done
6512      if test $apr_addto_duplicate = "0"; then
6513        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6514        CPPFLAGS="$CPPFLAGS $i"
6515      fi
6516    done
6517  fi
6518
6519	;;
6520    *-unixware1)
6521
6522  if test "x$CPPFLAGS" = "x"; then
6523    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=100\""
6524    CPPFLAGS="-DUW=100"
6525  else
6526    apr_addto_bugger="-DUW=100"
6527    for i in $apr_addto_bugger; do
6528      apr_addto_duplicate="0"
6529      for j in $CPPFLAGS; do
6530        if test "x$i" = "x$j"; then
6531          apr_addto_duplicate="1"
6532          break
6533        fi
6534      done
6535      if test $apr_addto_duplicate = "0"; then
6536        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6537        CPPFLAGS="$CPPFLAGS $i"
6538      fi
6539    done
6540  fi
6541
6542	;;
6543    *-unixware2)
6544
6545  if test "x$CPPFLAGS" = "x"; then
6546    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=200\""
6547    CPPFLAGS="-DUW=200"
6548  else
6549    apr_addto_bugger="-DUW=200"
6550    for i in $apr_addto_bugger; do
6551      apr_addto_duplicate="0"
6552      for j in $CPPFLAGS; do
6553        if test "x$i" = "x$j"; then
6554          apr_addto_duplicate="1"
6555          break
6556        fi
6557      done
6558      if test $apr_addto_duplicate = "0"; then
6559        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6560        CPPFLAGS="$CPPFLAGS $i"
6561      fi
6562    done
6563  fi
6564
6565
6566  if test "x$LIBS" = "x"; then
6567    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
6568    LIBS="-lgen"
6569  else
6570    apr_addto_bugger="-lgen"
6571    for i in $apr_addto_bugger; do
6572      apr_addto_duplicate="0"
6573      for j in $LIBS; do
6574        if test "x$i" = "x$j"; then
6575          apr_addto_duplicate="1"
6576          break
6577        fi
6578      done
6579      if test $apr_addto_duplicate = "0"; then
6580        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6581        LIBS="$LIBS $i"
6582      fi
6583    done
6584  fi
6585
6586	;;
6587    *-unixware211)
6588
6589  if test "x$CPPFLAGS" = "x"; then
6590    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=211\""
6591    CPPFLAGS="-DUW=211"
6592  else
6593    apr_addto_bugger="-DUW=211"
6594    for i in $apr_addto_bugger; do
6595      apr_addto_duplicate="0"
6596      for j in $CPPFLAGS; do
6597        if test "x$i" = "x$j"; then
6598          apr_addto_duplicate="1"
6599          break
6600        fi
6601      done
6602      if test $apr_addto_duplicate = "0"; then
6603        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6604        CPPFLAGS="$CPPFLAGS $i"
6605      fi
6606    done
6607  fi
6608
6609
6610  if test "x$LIBS" = "x"; then
6611    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
6612    LIBS="-lgen"
6613  else
6614    apr_addto_bugger="-lgen"
6615    for i in $apr_addto_bugger; do
6616      apr_addto_duplicate="0"
6617      for j in $LIBS; do
6618        if test "x$i" = "x$j"; then
6619          apr_addto_duplicate="1"
6620          break
6621        fi
6622      done
6623      if test $apr_addto_duplicate = "0"; then
6624        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6625        LIBS="$LIBS $i"
6626      fi
6627    done
6628  fi
6629
6630	;;
6631    *-unixware212)
6632
6633  if test "x$CPPFLAGS" = "x"; then
6634    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=212\""
6635    CPPFLAGS="-DUW=212"
6636  else
6637    apr_addto_bugger="-DUW=212"
6638    for i in $apr_addto_bugger; do
6639      apr_addto_duplicate="0"
6640      for j in $CPPFLAGS; do
6641        if test "x$i" = "x$j"; then
6642          apr_addto_duplicate="1"
6643          break
6644        fi
6645      done
6646      if test $apr_addto_duplicate = "0"; then
6647        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6648        CPPFLAGS="$CPPFLAGS $i"
6649      fi
6650    done
6651  fi
6652
6653
6654  if test "x$LIBS" = "x"; then
6655    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
6656    LIBS="-lgen"
6657  else
6658    apr_addto_bugger="-lgen"
6659    for i in $apr_addto_bugger; do
6660      apr_addto_duplicate="0"
6661      for j in $LIBS; do
6662        if test "x$i" = "x$j"; then
6663          apr_addto_duplicate="1"
6664          break
6665        fi
6666      done
6667      if test $apr_addto_duplicate = "0"; then
6668        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6669        LIBS="$LIBS $i"
6670      fi
6671    done
6672  fi
6673
6674	;;
6675    *-unixware7)
6676
6677  if test "x$CPPFLAGS" = "x"; then
6678    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUW=700\""
6679    CPPFLAGS="-DUW=700"
6680  else
6681    apr_addto_bugger="-DUW=700"
6682    for i in $apr_addto_bugger; do
6683      apr_addto_duplicate="0"
6684      for j in $CPPFLAGS; do
6685        if test "x$i" = "x$j"; then
6686          apr_addto_duplicate="1"
6687          break
6688        fi
6689      done
6690      if test $apr_addto_duplicate = "0"; then
6691        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6692        CPPFLAGS="$CPPFLAGS $i"
6693      fi
6694    done
6695  fi
6696
6697
6698  if test "x$LIBS" = "x"; then
6699    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
6700    LIBS="-lgen"
6701  else
6702    apr_addto_bugger="-lgen"
6703    for i in $apr_addto_bugger; do
6704      apr_addto_duplicate="0"
6705      for j in $LIBS; do
6706        if test "x$i" = "x$j"; then
6707          apr_addto_duplicate="1"
6708          break
6709        fi
6710      done
6711      if test $apr_addto_duplicate = "0"; then
6712        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6713        LIBS="$LIBS $i"
6714      fi
6715    done
6716  fi
6717
6718	;;
6719    maxion-*-sysv4*)
6720
6721  if test "x$CPPFLAGS" = "x"; then
6722    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
6723    CPPFLAGS="-DSVR4"
6724  else
6725    apr_addto_bugger="-DSVR4"
6726    for i in $apr_addto_bugger; do
6727      apr_addto_duplicate="0"
6728      for j in $CPPFLAGS; do
6729        if test "x$i" = "x$j"; then
6730          apr_addto_duplicate="1"
6731          break
6732        fi
6733      done
6734      if test $apr_addto_duplicate = "0"; then
6735        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6736        CPPFLAGS="$CPPFLAGS $i"
6737      fi
6738    done
6739  fi
6740
6741
6742  if test "x$LIBS" = "x"; then
6743    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -lgen\""
6744    LIBS="-lc -lgen"
6745  else
6746    apr_addto_bugger="-lc -lgen"
6747    for i in $apr_addto_bugger; do
6748      apr_addto_duplicate="0"
6749      for j in $LIBS; do
6750        if test "x$i" = "x$j"; then
6751          apr_addto_duplicate="1"
6752          break
6753        fi
6754      done
6755      if test $apr_addto_duplicate = "0"; then
6756        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6757        LIBS="$LIBS $i"
6758      fi
6759    done
6760  fi
6761
6762	;;
6763    *-*-powermax*)
6764
6765  if test "x$CPPFLAGS" = "x"; then
6766    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
6767    CPPFLAGS="-DSVR4"
6768  else
6769    apr_addto_bugger="-DSVR4"
6770    for i in $apr_addto_bugger; do
6771      apr_addto_duplicate="0"
6772      for j in $CPPFLAGS; do
6773        if test "x$i" = "x$j"; then
6774          apr_addto_duplicate="1"
6775          break
6776        fi
6777      done
6778      if test $apr_addto_duplicate = "0"; then
6779        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6780        CPPFLAGS="$CPPFLAGS $i"
6781      fi
6782    done
6783  fi
6784
6785
6786  if test "x$LIBS" = "x"; then
6787    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lgen\""
6788    LIBS="-lgen"
6789  else
6790    apr_addto_bugger="-lgen"
6791    for i in $apr_addto_bugger; do
6792      apr_addto_duplicate="0"
6793      for j in $LIBS; do
6794        if test "x$i" = "x$j"; then
6795          apr_addto_duplicate="1"
6796          break
6797        fi
6798      done
6799      if test $apr_addto_duplicate = "0"; then
6800        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6801        LIBS="$LIBS $i"
6802      fi
6803    done
6804  fi
6805
6806	;;
6807    TPF)
6808
6809  if test "x$CPPFLAGS" = "x"; then
6810    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\""
6811    CPPFLAGS="-DTPF -D_POSIX_SOURCE"
6812  else
6813    apr_addto_bugger="-DTPF -D_POSIX_SOURCE"
6814    for i in $apr_addto_bugger; do
6815      apr_addto_duplicate="0"
6816      for j in $CPPFLAGS; do
6817        if test "x$i" = "x$j"; then
6818          apr_addto_duplicate="1"
6819          break
6820        fi
6821      done
6822      if test $apr_addto_duplicate = "0"; then
6823        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6824        CPPFLAGS="$CPPFLAGS $i"
6825      fi
6826    done
6827  fi
6828
6829       ;;
6830    bs2000*-siemens-sysv*)
6831
6832  if test -z "$CFLAGS"; then
6833    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
6834    CFLAGS="-O"
6835  fi
6836
6837
6838  if test "x$CPPFLAGS" = "x"; then
6839    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\""
6840    CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER"
6841  else
6842    apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER"
6843    for i in $apr_addto_bugger; do
6844      apr_addto_duplicate="0"
6845      for j in $CPPFLAGS; do
6846        if test "x$i" = "x$j"; then
6847          apr_addto_duplicate="1"
6848          break
6849        fi
6850      done
6851      if test $apr_addto_duplicate = "0"; then
6852        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6853        CPPFLAGS="$CPPFLAGS $i"
6854      fi
6855    done
6856  fi
6857
6858
6859  if test "x$LIBS" = "x"; then
6860    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lsocket\""
6861    LIBS="-lsocket"
6862  else
6863    apr_addto_bugger="-lsocket"
6864    for i in $apr_addto_bugger; do
6865      apr_addto_duplicate="0"
6866      for j in $LIBS; do
6867        if test "x$i" = "x$j"; then
6868          apr_addto_duplicate="1"
6869          break
6870        fi
6871      done
6872      if test $apr_addto_duplicate = "0"; then
6873        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6874        LIBS="$LIBS $i"
6875      fi
6876    done
6877  fi
6878
6879
6880  if test -z "$enable_threads"; then
6881    test "x$silent" != "xyes" && echo "  setting enable_threads to \"no\""
6882    enable_threads="no"
6883  fi
6884
6885	;;
6886    *-siemens-sysv4*)
6887
6888  if test "x$CPPFLAGS" = "x"; then
6889    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\""
6890    CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
6891  else
6892    apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
6893    for i in $apr_addto_bugger; do
6894      apr_addto_duplicate="0"
6895      for j in $CPPFLAGS; do
6896        if test "x$i" = "x$j"; then
6897          apr_addto_duplicate="1"
6898          break
6899        fi
6900      done
6901      if test $apr_addto_duplicate = "0"; then
6902        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6903        CPPFLAGS="$CPPFLAGS $i"
6904      fi
6905    done
6906  fi
6907
6908
6909  if test "x$LIBS" = "x"; then
6910    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
6911    LIBS="-lc"
6912  else
6913    apr_addto_bugger="-lc"
6914    for i in $apr_addto_bugger; do
6915      apr_addto_duplicate="0"
6916      for j in $LIBS; do
6917        if test "x$i" = "x$j"; then
6918          apr_addto_duplicate="1"
6919          break
6920        fi
6921      done
6922      if test $apr_addto_duplicate = "0"; then
6923        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6924        LIBS="$LIBS $i"
6925      fi
6926    done
6927  fi
6928
6929	;;
6930    pyramid-pyramid-svr4)
6931
6932  if test "x$CPPFLAGS" = "x"; then
6933    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\""
6934    CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE"
6935  else
6936    apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE"
6937    for i in $apr_addto_bugger; do
6938      apr_addto_duplicate="0"
6939      for j in $CPPFLAGS; do
6940        if test "x$i" = "x$j"; then
6941          apr_addto_duplicate="1"
6942          break
6943        fi
6944      done
6945      if test $apr_addto_duplicate = "0"; then
6946        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6947        CPPFLAGS="$CPPFLAGS $i"
6948      fi
6949    done
6950  fi
6951
6952
6953  if test "x$LIBS" = "x"; then
6954    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
6955    LIBS="-lc"
6956  else
6957    apr_addto_bugger="-lc"
6958    for i in $apr_addto_bugger; do
6959      apr_addto_duplicate="0"
6960      for j in $LIBS; do
6961        if test "x$i" = "x$j"; then
6962          apr_addto_duplicate="1"
6963          break
6964        fi
6965      done
6966      if test $apr_addto_duplicate = "0"; then
6967        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
6968        LIBS="$LIBS $i"
6969      fi
6970    done
6971  fi
6972
6973	;;
6974    DS/90\ 7000-*-sysv4*)
6975
6976  if test "x$CPPFLAGS" = "x"; then
6977    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUXPDS\""
6978    CPPFLAGS="-DUXPDS"
6979  else
6980    apr_addto_bugger="-DUXPDS"
6981    for i in $apr_addto_bugger; do
6982      apr_addto_duplicate="0"
6983      for j in $CPPFLAGS; do
6984        if test "x$i" = "x$j"; then
6985          apr_addto_duplicate="1"
6986          break
6987        fi
6988      done
6989      if test $apr_addto_duplicate = "0"; then
6990        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
6991        CPPFLAGS="$CPPFLAGS $i"
6992      fi
6993    done
6994  fi
6995
6996	;;
6997    *-tandem-sysv4*)
6998
6999  if test "x$CPPFLAGS" = "x"; then
7000    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7001    CPPFLAGS="-DSVR4"
7002  else
7003    apr_addto_bugger="-DSVR4"
7004    for i in $apr_addto_bugger; do
7005      apr_addto_duplicate="0"
7006      for j in $CPPFLAGS; do
7007        if test "x$i" = "x$j"; then
7008          apr_addto_duplicate="1"
7009          break
7010        fi
7011      done
7012      if test $apr_addto_duplicate = "0"; then
7013        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7014        CPPFLAGS="$CPPFLAGS $i"
7015      fi
7016    done
7017  fi
7018
7019	;;
7020    *-ncr-sysv4)
7021
7022  if test "x$CPPFLAGS" = "x"; then
7023    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
7024    CPPFLAGS="-DSVR4 -DMPRAS"
7025  else
7026    apr_addto_bugger="-DSVR4 -DMPRAS"
7027    for i in $apr_addto_bugger; do
7028      apr_addto_duplicate="0"
7029      for j in $CPPFLAGS; do
7030        if test "x$i" = "x$j"; then
7031          apr_addto_duplicate="1"
7032          break
7033        fi
7034      done
7035      if test $apr_addto_duplicate = "0"; then
7036        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7037        CPPFLAGS="$CPPFLAGS $i"
7038      fi
7039    done
7040  fi
7041
7042
7043  if test "x$LIBS" = "x"; then
7044    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
7045    LIBS="-lc -L/usr/ucblib -lucb"
7046  else
7047    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
7048    for i in $apr_addto_bugger; do
7049      apr_addto_duplicate="0"
7050      for j in $LIBS; do
7051        if test "x$i" = "x$j"; then
7052          apr_addto_duplicate="1"
7053          break
7054        fi
7055      done
7056      if test $apr_addto_duplicate = "0"; then
7057        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7058        LIBS="$LIBS $i"
7059      fi
7060    done
7061  fi
7062
7063	;;
7064    *-sysv4*)
7065
7066  if test "x$CPPFLAGS" = "x"; then
7067    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7068    CPPFLAGS="-DSVR4"
7069  else
7070    apr_addto_bugger="-DSVR4"
7071    for i in $apr_addto_bugger; do
7072      apr_addto_duplicate="0"
7073      for j in $CPPFLAGS; do
7074        if test "x$i" = "x$j"; then
7075          apr_addto_duplicate="1"
7076          break
7077        fi
7078      done
7079      if test $apr_addto_duplicate = "0"; then
7080        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7081        CPPFLAGS="$CPPFLAGS $i"
7082      fi
7083    done
7084  fi
7085
7086
7087  if test "x$LIBS" = "x"; then
7088    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7089    LIBS="-lc"
7090  else
7091    apr_addto_bugger="-lc"
7092    for i in $apr_addto_bugger; do
7093      apr_addto_duplicate="0"
7094      for j in $LIBS; do
7095        if test "x$i" = "x$j"; then
7096          apr_addto_duplicate="1"
7097          break
7098        fi
7099      done
7100      if test $apr_addto_duplicate = "0"; then
7101        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7102        LIBS="$LIBS $i"
7103      fi
7104    done
7105  fi
7106
7107	;;
7108    88k-encore-sysv4)
7109
7110  if test "x$CPPFLAGS" = "x"; then
7111    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DENCORE\""
7112    CPPFLAGS="-DSVR4 -DENCORE"
7113  else
7114    apr_addto_bugger="-DSVR4 -DENCORE"
7115    for i in $apr_addto_bugger; do
7116      apr_addto_duplicate="0"
7117      for j in $CPPFLAGS; do
7118        if test "x$i" = "x$j"; then
7119          apr_addto_duplicate="1"
7120          break
7121        fi
7122      done
7123      if test $apr_addto_duplicate = "0"; then
7124        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7125        CPPFLAGS="$CPPFLAGS $i"
7126      fi
7127    done
7128  fi
7129
7130
7131  if test "x$LIBS" = "x"; then
7132    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lPW\""
7133    LIBS="-lPW"
7134  else
7135    apr_addto_bugger="-lPW"
7136    for i in $apr_addto_bugger; do
7137      apr_addto_duplicate="0"
7138      for j in $LIBS; do
7139        if test "x$i" = "x$j"; then
7140          apr_addto_duplicate="1"
7141          break
7142        fi
7143      done
7144      if test $apr_addto_duplicate = "0"; then
7145        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7146        LIBS="$LIBS $i"
7147      fi
7148    done
7149  fi
7150
7151	;;
7152    *-uts*)
7153	PLATOSVERS=`echo $host | sed 's/^.*,//'`
7154	case $PLATOSVERS in
7155	    2*)
7156  if test "x$CPPFLAGS" = "x"; then
7157    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DUTS21\""
7158    CPPFLAGS="-DUTS21"
7159  else
7160    apr_addto_bugger="-DUTS21"
7161    for i in $apr_addto_bugger; do
7162      apr_addto_duplicate="0"
7163      for j in $CPPFLAGS; do
7164        if test "x$i" = "x$j"; then
7165          apr_addto_duplicate="1"
7166          break
7167        fi
7168      done
7169      if test $apr_addto_duplicate = "0"; then
7170        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7171        CPPFLAGS="$CPPFLAGS $i"
7172      fi
7173    done
7174  fi
7175
7176
7177  if test "x$CFLAGS" = "x"; then
7178    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa -eft\""
7179    CFLAGS="-Xa -eft"
7180  else
7181    apr_addto_bugger="-Xa -eft"
7182    for i in $apr_addto_bugger; do
7183      apr_addto_duplicate="0"
7184      for j in $CFLAGS; do
7185        if test "x$i" = "x$j"; then
7186          apr_addto_duplicate="1"
7187          break
7188        fi
7189      done
7190      if test $apr_addto_duplicate = "0"; then
7191        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7192        CFLAGS="$CFLAGS $i"
7193      fi
7194    done
7195  fi
7196
7197
7198  if test "x$LIBS" = "x"; then
7199    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbsd -la\""
7200    LIBS="-lbsd -la"
7201  else
7202    apr_addto_bugger="-lbsd -la"
7203    for i in $apr_addto_bugger; do
7204      apr_addto_duplicate="0"
7205      for j in $LIBS; do
7206        if test "x$i" = "x$j"; then
7207          apr_addto_duplicate="1"
7208          break
7209        fi
7210      done
7211      if test $apr_addto_duplicate = "0"; then
7212        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7213        LIBS="$LIBS $i"
7214      fi
7215    done
7216  fi
7217
7218	        ;;
7219	    *)
7220  if test "x$CPPFLAGS" = "x"; then
7221    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
7222    CPPFLAGS="-DSVR4"
7223  else
7224    apr_addto_bugger="-DSVR4"
7225    for i in $apr_addto_bugger; do
7226      apr_addto_duplicate="0"
7227      for j in $CPPFLAGS; do
7228        if test "x$i" = "x$j"; then
7229          apr_addto_duplicate="1"
7230          break
7231        fi
7232      done
7233      if test $apr_addto_duplicate = "0"; then
7234        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7235        CPPFLAGS="$CPPFLAGS $i"
7236      fi
7237    done
7238  fi
7239
7240
7241  if test "x$CFLAGS" = "x"; then
7242    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa\""
7243    CFLAGS="-Xa"
7244  else
7245    apr_addto_bugger="-Xa"
7246    for i in $apr_addto_bugger; do
7247      apr_addto_duplicate="0"
7248      for j in $CFLAGS; do
7249        if test "x$i" = "x$j"; then
7250          apr_addto_duplicate="1"
7251          break
7252        fi
7253      done
7254      if test $apr_addto_duplicate = "0"; then
7255        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7256        CFLAGS="$CFLAGS $i"
7257      fi
7258    done
7259  fi
7260
7261	        ;;
7262	esac
7263	;;
7264    *-ultrix)
7265
7266  if test "x$CPPFLAGS" = "x"; then
7267    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DULTRIX\""
7268    CPPFLAGS="-DULTRIX"
7269  else
7270    apr_addto_bugger="-DULTRIX"
7271    for i in $apr_addto_bugger; do
7272      apr_addto_duplicate="0"
7273      for j in $CPPFLAGS; do
7274        if test "x$i" = "x$j"; then
7275          apr_addto_duplicate="1"
7276          break
7277        fi
7278      done
7279      if test $apr_addto_duplicate = "0"; then
7280        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7281        CPPFLAGS="$CPPFLAGS $i"
7282      fi
7283    done
7284  fi
7285
7286
7287  test "x$silent" != "xyes" && echo "  forcing SHELL to \"/bin/sh5\""
7288  SHELL="/bin/sh5"
7289
7290	;;
7291    *powerpc-tenon-machten*)
7292
7293  if test "x$LDFLAGS" = "x"; then
7294    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\""
7295    LDFLAGS="-Xlstack=0x14000 -Xldelcsect"
7296  else
7297    apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect"
7298    for i in $apr_addto_bugger; do
7299      apr_addto_duplicate="0"
7300      for j in $LDFLAGS; do
7301        if test "x$i" = "x$j"; then
7302          apr_addto_duplicate="1"
7303          break
7304        fi
7305      done
7306      if test $apr_addto_duplicate = "0"; then
7307        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
7308        LDFLAGS="$LDFLAGS $i"
7309      fi
7310    done
7311  fi
7312
7313	;;
7314    *-machten*)
7315
7316  if test "x$LDFLAGS" = "x"; then
7317    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-stack 0x14000\""
7318    LDFLAGS="-stack 0x14000"
7319  else
7320    apr_addto_bugger="-stack 0x14000"
7321    for i in $apr_addto_bugger; do
7322      apr_addto_duplicate="0"
7323      for j in $LDFLAGS; do
7324        if test "x$i" = "x$j"; then
7325          apr_addto_duplicate="1"
7326          break
7327        fi
7328      done
7329      if test $apr_addto_duplicate = "0"; then
7330        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
7331        LDFLAGS="$LDFLAGS $i"
7332      fi
7333    done
7334  fi
7335
7336	;;
7337    *convex-v11*)
7338
7339  if test "x$CPPFLAGS" = "x"; then
7340    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DCONVEXOS11\""
7341    CPPFLAGS="-DCONVEXOS11"
7342  else
7343    apr_addto_bugger="-DCONVEXOS11"
7344    for i in $apr_addto_bugger; do
7345      apr_addto_duplicate="0"
7346      for j in $CPPFLAGS; do
7347        if test "x$i" = "x$j"; then
7348          apr_addto_duplicate="1"
7349          break
7350        fi
7351      done
7352      if test $apr_addto_duplicate = "0"; then
7353        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7354        CPPFLAGS="$CPPFLAGS $i"
7355      fi
7356    done
7357  fi
7358
7359
7360  if test -z "$CFLAGS"; then
7361    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O1\""
7362    CFLAGS="-O1"
7363  fi
7364
7365
7366  if test "x$CFLAGS" = "x"; then
7367    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-ext\""
7368    CFLAGS="-ext"
7369  else
7370    apr_addto_bugger="-ext"
7371    for i in $apr_addto_bugger; do
7372      apr_addto_duplicate="0"
7373      for j in $CFLAGS; do
7374        if test "x$i" = "x$j"; then
7375          apr_addto_duplicate="1"
7376          break
7377        fi
7378      done
7379      if test $apr_addto_duplicate = "0"; then
7380        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7381        CFLAGS="$CFLAGS $i"
7382      fi
7383    done
7384  fi
7385
7386	;;
7387    i860-intel-osf1)
7388
7389  if test "x$CPPFLAGS" = "x"; then
7390    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DPARAGON\""
7391    CPPFLAGS="-DPARAGON"
7392  else
7393    apr_addto_bugger="-DPARAGON"
7394    for i in $apr_addto_bugger; do
7395      apr_addto_duplicate="0"
7396      for j in $CPPFLAGS; do
7397        if test "x$i" = "x$j"; then
7398          apr_addto_duplicate="1"
7399          break
7400        fi
7401      done
7402      if test $apr_addto_duplicate = "0"; then
7403        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7404        CPPFLAGS="$CPPFLAGS $i"
7405      fi
7406    done
7407  fi
7408
7409	;;
7410    *-sequent-ptx2.*.*)
7411
7412  if test "x$CPPFLAGS" = "x"; then
7413    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=20\""
7414    CPPFLAGS="-DSEQUENT=20"
7415  else
7416    apr_addto_bugger="-DSEQUENT=20"
7417    for i in $apr_addto_bugger; do
7418      apr_addto_duplicate="0"
7419      for j in $CPPFLAGS; do
7420        if test "x$i" = "x$j"; then
7421          apr_addto_duplicate="1"
7422          break
7423        fi
7424      done
7425      if test $apr_addto_duplicate = "0"; then
7426        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7427        CPPFLAGS="$CPPFLAGS $i"
7428      fi
7429    done
7430  fi
7431
7432
7433  if test "x$CFLAGS" = "x"; then
7434    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
7435    CFLAGS="-Wc,-pw"
7436  else
7437    apr_addto_bugger="-Wc,-pw"
7438    for i in $apr_addto_bugger; do
7439      apr_addto_duplicate="0"
7440      for j in $CFLAGS; do
7441        if test "x$i" = "x$j"; then
7442          apr_addto_duplicate="1"
7443          break
7444        fi
7445      done
7446      if test $apr_addto_duplicate = "0"; then
7447        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7448        CFLAGS="$CFLAGS $i"
7449      fi
7450    done
7451  fi
7452
7453
7454  if test "x$LIBS" = "x"; then
7455    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet -lc -lseq\""
7456    LIBS="-linet -lc -lseq"
7457  else
7458    apr_addto_bugger="-linet -lc -lseq"
7459    for i in $apr_addto_bugger; do
7460      apr_addto_duplicate="0"
7461      for j in $LIBS; do
7462        if test "x$i" = "x$j"; then
7463          apr_addto_duplicate="1"
7464          break
7465        fi
7466      done
7467      if test $apr_addto_duplicate = "0"; then
7468        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7469        LIBS="$LIBS $i"
7470      fi
7471    done
7472  fi
7473
7474	;;
7475    *-sequent-ptx4.0.*)
7476
7477  if test "x$CPPFLAGS" = "x"; then
7478    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=40\""
7479    CPPFLAGS="-DSEQUENT=40"
7480  else
7481    apr_addto_bugger="-DSEQUENT=40"
7482    for i in $apr_addto_bugger; do
7483      apr_addto_duplicate="0"
7484      for j in $CPPFLAGS; do
7485        if test "x$i" = "x$j"; then
7486          apr_addto_duplicate="1"
7487          break
7488        fi
7489      done
7490      if test $apr_addto_duplicate = "0"; then
7491        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7492        CPPFLAGS="$CPPFLAGS $i"
7493      fi
7494    done
7495  fi
7496
7497
7498  if test "x$CFLAGS" = "x"; then
7499    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
7500    CFLAGS="-Wc,-pw"
7501  else
7502    apr_addto_bugger="-Wc,-pw"
7503    for i in $apr_addto_bugger; do
7504      apr_addto_duplicate="0"
7505      for j in $CFLAGS; do
7506        if test "x$i" = "x$j"; then
7507          apr_addto_duplicate="1"
7508          break
7509        fi
7510      done
7511      if test $apr_addto_duplicate = "0"; then
7512        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7513        CFLAGS="$CFLAGS $i"
7514      fi
7515    done
7516  fi
7517
7518
7519  if test "x$LIBS" = "x"; then
7520    test "x$silent" != "xyes" && echo "  setting LIBS to \"-linet -lc\""
7521    LIBS="-linet -lc"
7522  else
7523    apr_addto_bugger="-linet -lc"
7524    for i in $apr_addto_bugger; do
7525      apr_addto_duplicate="0"
7526      for j in $LIBS; do
7527        if test "x$i" = "x$j"; then
7528          apr_addto_duplicate="1"
7529          break
7530        fi
7531      done
7532      if test $apr_addto_duplicate = "0"; then
7533        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7534        LIBS="$LIBS $i"
7535      fi
7536    done
7537  fi
7538
7539	;;
7540    *-sequent-ptx4.[123].*)
7541
7542  if test "x$CPPFLAGS" = "x"; then
7543    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=41\""
7544    CPPFLAGS="-DSEQUENT=41"
7545  else
7546    apr_addto_bugger="-DSEQUENT=41"
7547    for i in $apr_addto_bugger; do
7548      apr_addto_duplicate="0"
7549      for j in $CPPFLAGS; do
7550        if test "x$i" = "x$j"; then
7551          apr_addto_duplicate="1"
7552          break
7553        fi
7554      done
7555      if test $apr_addto_duplicate = "0"; then
7556        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7557        CPPFLAGS="$CPPFLAGS $i"
7558      fi
7559    done
7560  fi
7561
7562
7563  if test "x$CFLAGS" = "x"; then
7564    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
7565    CFLAGS="-Wc,-pw"
7566  else
7567    apr_addto_bugger="-Wc,-pw"
7568    for i in $apr_addto_bugger; do
7569      apr_addto_duplicate="0"
7570      for j in $CFLAGS; do
7571        if test "x$i" = "x$j"; then
7572          apr_addto_duplicate="1"
7573          break
7574        fi
7575      done
7576      if test $apr_addto_duplicate = "0"; then
7577        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7578        CFLAGS="$CFLAGS $i"
7579      fi
7580    done
7581  fi
7582
7583
7584  if test "x$LIBS" = "x"; then
7585    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7586    LIBS="-lc"
7587  else
7588    apr_addto_bugger="-lc"
7589    for i in $apr_addto_bugger; do
7590      apr_addto_duplicate="0"
7591      for j in $LIBS; do
7592        if test "x$i" = "x$j"; then
7593          apr_addto_duplicate="1"
7594          break
7595        fi
7596      done
7597      if test $apr_addto_duplicate = "0"; then
7598        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7599        LIBS="$LIBS $i"
7600      fi
7601    done
7602  fi
7603
7604	;;
7605    *-sequent-ptx4.4.*)
7606
7607  if test "x$CPPFLAGS" = "x"; then
7608    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=44\""
7609    CPPFLAGS="-DSEQUENT=44"
7610  else
7611    apr_addto_bugger="-DSEQUENT=44"
7612    for i in $apr_addto_bugger; do
7613      apr_addto_duplicate="0"
7614      for j in $CPPFLAGS; do
7615        if test "x$i" = "x$j"; then
7616          apr_addto_duplicate="1"
7617          break
7618        fi
7619      done
7620      if test $apr_addto_duplicate = "0"; then
7621        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7622        CPPFLAGS="$CPPFLAGS $i"
7623      fi
7624    done
7625  fi
7626
7627
7628  if test "x$CFLAGS" = "x"; then
7629    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
7630    CFLAGS="-Wc,-pw"
7631  else
7632    apr_addto_bugger="-Wc,-pw"
7633    for i in $apr_addto_bugger; do
7634      apr_addto_duplicate="0"
7635      for j in $CFLAGS; do
7636        if test "x$i" = "x$j"; then
7637          apr_addto_duplicate="1"
7638          break
7639        fi
7640      done
7641      if test $apr_addto_duplicate = "0"; then
7642        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7643        CFLAGS="$CFLAGS $i"
7644      fi
7645    done
7646  fi
7647
7648
7649  if test "x$LIBS" = "x"; then
7650    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7651    LIBS="-lc"
7652  else
7653    apr_addto_bugger="-lc"
7654    for i in $apr_addto_bugger; do
7655      apr_addto_duplicate="0"
7656      for j in $LIBS; do
7657        if test "x$i" = "x$j"; then
7658          apr_addto_duplicate="1"
7659          break
7660        fi
7661      done
7662      if test $apr_addto_duplicate = "0"; then
7663        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7664        LIBS="$LIBS $i"
7665      fi
7666    done
7667  fi
7668
7669	;;
7670    *-sequent-ptx4.5.*)
7671
7672  if test "x$CPPFLAGS" = "x"; then
7673    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=45\""
7674    CPPFLAGS="-DSEQUENT=45"
7675  else
7676    apr_addto_bugger="-DSEQUENT=45"
7677    for i in $apr_addto_bugger; do
7678      apr_addto_duplicate="0"
7679      for j in $CPPFLAGS; do
7680        if test "x$i" = "x$j"; then
7681          apr_addto_duplicate="1"
7682          break
7683        fi
7684      done
7685      if test $apr_addto_duplicate = "0"; then
7686        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7687        CPPFLAGS="$CPPFLAGS $i"
7688      fi
7689    done
7690  fi
7691
7692
7693  if test "x$CFLAGS" = "x"; then
7694    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
7695    CFLAGS="-Wc,-pw"
7696  else
7697    apr_addto_bugger="-Wc,-pw"
7698    for i in $apr_addto_bugger; do
7699      apr_addto_duplicate="0"
7700      for j in $CFLAGS; do
7701        if test "x$i" = "x$j"; then
7702          apr_addto_duplicate="1"
7703          break
7704        fi
7705      done
7706      if test $apr_addto_duplicate = "0"; then
7707        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7708        CFLAGS="$CFLAGS $i"
7709      fi
7710    done
7711  fi
7712
7713
7714  if test "x$LIBS" = "x"; then
7715    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7716    LIBS="-lc"
7717  else
7718    apr_addto_bugger="-lc"
7719    for i in $apr_addto_bugger; do
7720      apr_addto_duplicate="0"
7721      for j in $LIBS; do
7722        if test "x$i" = "x$j"; then
7723          apr_addto_duplicate="1"
7724          break
7725        fi
7726      done
7727      if test $apr_addto_duplicate = "0"; then
7728        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7729        LIBS="$LIBS $i"
7730      fi
7731    done
7732  fi
7733
7734	;;
7735    *-sequent-ptx5.0.*)
7736
7737  if test "x$CPPFLAGS" = "x"; then
7738    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSEQUENT=50\""
7739    CPPFLAGS="-DSEQUENT=50"
7740  else
7741    apr_addto_bugger="-DSEQUENT=50"
7742    for i in $apr_addto_bugger; do
7743      apr_addto_duplicate="0"
7744      for j in $CPPFLAGS; do
7745        if test "x$i" = "x$j"; then
7746          apr_addto_duplicate="1"
7747          break
7748        fi
7749      done
7750      if test $apr_addto_duplicate = "0"; then
7751        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7752        CPPFLAGS="$CPPFLAGS $i"
7753      fi
7754    done
7755  fi
7756
7757
7758  if test "x$CFLAGS" = "x"; then
7759    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wc,-pw\""
7760    CFLAGS="-Wc,-pw"
7761  else
7762    apr_addto_bugger="-Wc,-pw"
7763    for i in $apr_addto_bugger; do
7764      apr_addto_duplicate="0"
7765      for j in $CFLAGS; do
7766        if test "x$i" = "x$j"; then
7767          apr_addto_duplicate="1"
7768          break
7769        fi
7770      done
7771      if test $apr_addto_duplicate = "0"; then
7772        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
7773        CFLAGS="$CFLAGS $i"
7774      fi
7775    done
7776  fi
7777
7778
7779  if test "x$LIBS" = "x"; then
7780    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc\""
7781    LIBS="-lc"
7782  else
7783    apr_addto_bugger="-lc"
7784    for i in $apr_addto_bugger; do
7785      apr_addto_duplicate="0"
7786      for j in $LIBS; do
7787        if test "x$i" = "x$j"; then
7788          apr_addto_duplicate="1"
7789          break
7790        fi
7791      done
7792      if test $apr_addto_duplicate = "0"; then
7793        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7794        LIBS="$LIBS $i"
7795      fi
7796    done
7797  fi
7798
7799	;;
7800    *NEWS-OS*)
7801
7802  if test "x$CPPFLAGS" = "x"; then
7803    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DNEWSOS\""
7804    CPPFLAGS="-DNEWSOS"
7805  else
7806    apr_addto_bugger="-DNEWSOS"
7807    for i in $apr_addto_bugger; do
7808      apr_addto_duplicate="0"
7809      for j in $CPPFLAGS; do
7810        if test "x$i" = "x$j"; then
7811          apr_addto_duplicate="1"
7812          break
7813        fi
7814      done
7815      if test $apr_addto_duplicate = "0"; then
7816        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7817        CPPFLAGS="$CPPFLAGS $i"
7818      fi
7819    done
7820  fi
7821
7822	;;
7823    *-riscix)
7824
7825  if test "x$CPPFLAGS" = "x"; then
7826    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DRISCIX\""
7827    CPPFLAGS="-DRISCIX"
7828  else
7829    apr_addto_bugger="-DRISCIX"
7830    for i in $apr_addto_bugger; do
7831      apr_addto_duplicate="0"
7832      for j in $CPPFLAGS; do
7833        if test "x$i" = "x$j"; then
7834          apr_addto_duplicate="1"
7835          break
7836        fi
7837      done
7838      if test $apr_addto_duplicate = "0"; then
7839        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7840        CPPFLAGS="$CPPFLAGS $i"
7841      fi
7842    done
7843  fi
7844
7845
7846  if test -z "$CFLAGS"; then
7847    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O\""
7848    CFLAGS="-O"
7849  fi
7850
7851	;;
7852    *-irix*)
7853
7854  if test "x$CPPFLAGS" = "x"; then
7855    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\""
7856    CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
7857  else
7858    apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS"
7859    for i in $apr_addto_bugger; do
7860      apr_addto_duplicate="0"
7861      for j in $CPPFLAGS; do
7862        if test "x$i" = "x$j"; then
7863          apr_addto_duplicate="1"
7864          break
7865        fi
7866      done
7867      if test $apr_addto_duplicate = "0"; then
7868        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7869        CPPFLAGS="$CPPFLAGS $i"
7870      fi
7871    done
7872  fi
7873
7874	;;
7875    *beos*)
7876
7877  if test "x$CPPFLAGS" = "x"; then
7878    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBEOS\""
7879    CPPFLAGS="-DBEOS"
7880  else
7881    apr_addto_bugger="-DBEOS"
7882    for i in $apr_addto_bugger; do
7883      apr_addto_duplicate="0"
7884      for j in $CPPFLAGS; do
7885        if test "x$i" = "x$j"; then
7886          apr_addto_duplicate="1"
7887          break
7888        fi
7889      done
7890      if test $apr_addto_duplicate = "0"; then
7891        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7892        CPPFLAGS="$CPPFLAGS $i"
7893      fi
7894    done
7895  fi
7896
7897        PLATOSVERS=`uname -r`
7898
7899  if test -z "$apr_process_lock_is_global"; then
7900    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
7901    apr_process_lock_is_global="yes"
7902  fi
7903
7904        case $PLATOSVERS in
7905            5.0.4)
7906
7907  if test "x$LDFLAGS" = "x"; then
7908    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L/boot/beos/system/lib\""
7909    LDFLAGS="-L/boot/beos/system/lib"
7910  else
7911    apr_addto_bugger="-L/boot/beos/system/lib"
7912    for i in $apr_addto_bugger; do
7913      apr_addto_duplicate="0"
7914      for j in $LDFLAGS; do
7915        if test "x$i" = "x$j"; then
7916          apr_addto_duplicate="1"
7917          break
7918        fi
7919      done
7920      if test $apr_addto_duplicate = "0"; then
7921        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
7922        LDFLAGS="$LDFLAGS $i"
7923      fi
7924    done
7925  fi
7926
7927
7928  if test "x$LIBS" = "x"; then
7929    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbind -lsocket\""
7930    LIBS="-lbind -lsocket"
7931  else
7932    apr_addto_bugger="-lbind -lsocket"
7933    for i in $apr_addto_bugger; do
7934      apr_addto_duplicate="0"
7935      for j in $LIBS; do
7936        if test "x$i" = "x$j"; then
7937          apr_addto_duplicate="1"
7938          break
7939        fi
7940      done
7941      if test $apr_addto_duplicate = "0"; then
7942        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
7943        LIBS="$LIBS $i"
7944      fi
7945    done
7946  fi
7947
7948
7949  if test "x$CPPFLAGS" = "x"; then
7950    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBONE7\""
7951    CPPFLAGS="-DBONE7"
7952  else
7953    apr_addto_bugger="-DBONE7"
7954    for i in $apr_addto_bugger; do
7955      apr_addto_duplicate="0"
7956      for j in $CPPFLAGS; do
7957        if test "x$i" = "x$j"; then
7958          apr_addto_duplicate="1"
7959          break
7960        fi
7961      done
7962      if test $apr_addto_duplicate = "0"; then
7963        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
7964        CPPFLAGS="$CPPFLAGS $i"
7965      fi
7966    done
7967  fi
7968
7969                ;;
7970            5.1)
7971
7972  if test "x$LDFLAGS" = "x"; then
7973    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L/boot/beos/system/lib\""
7974    LDFLAGS="-L/boot/beos/system/lib"
7975  else
7976    apr_addto_bugger="-L/boot/beos/system/lib"
7977    for i in $apr_addto_bugger; do
7978      apr_addto_duplicate="0"
7979      for j in $LDFLAGS; do
7980        if test "x$i" = "x$j"; then
7981          apr_addto_duplicate="1"
7982          break
7983        fi
7984      done
7985      if test $apr_addto_duplicate = "0"; then
7986        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
7987        LDFLAGS="$LDFLAGS $i"
7988      fi
7989    done
7990  fi
7991
7992
7993  if test "x$LIBS" = "x"; then
7994    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lbind -lsocket\""
7995    LIBS="-lbind -lsocket"
7996  else
7997    apr_addto_bugger="-lbind -lsocket"
7998    for i in $apr_addto_bugger; do
7999      apr_addto_duplicate="0"
8000      for j in $LIBS; do
8001        if test "x$i" = "x$j"; then
8002          apr_addto_duplicate="1"
8003          break
8004        fi
8005      done
8006      if test $apr_addto_duplicate = "0"; then
8007        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8008        LIBS="$LIBS $i"
8009      fi
8010    done
8011  fi
8012
8013                ;;
8014	esac
8015
8016  if test "x$CPPFLAGS" = "x"; then
8017    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK\""
8018    CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK"
8019  else
8020    apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK"
8021    for i in $apr_addto_bugger; do
8022      apr_addto_duplicate="0"
8023      for j in $CPPFLAGS; do
8024        if test "x$i" = "x$j"; then
8025          apr_addto_duplicate="1"
8026          break
8027        fi
8028      done
8029      if test $apr_addto_duplicate = "0"; then
8030        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8031        CPPFLAGS="$CPPFLAGS $i"
8032      fi
8033    done
8034  fi
8035
8036        ;;
8037    4850-*.*)
8038
8039  if test "x$CPPFLAGS" = "x"; then
8040    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
8041    CPPFLAGS="-DSVR4 -DMPRAS"
8042  else
8043    apr_addto_bugger="-DSVR4 -DMPRAS"
8044    for i in $apr_addto_bugger; do
8045      apr_addto_duplicate="0"
8046      for j in $CPPFLAGS; do
8047        if test "x$i" = "x$j"; then
8048          apr_addto_duplicate="1"
8049          break
8050        fi
8051      done
8052      if test $apr_addto_duplicate = "0"; then
8053        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8054        CPPFLAGS="$CPPFLAGS $i"
8055      fi
8056    done
8057  fi
8058
8059
8060  if test "x$LIBS" = "x"; then
8061    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8062    LIBS="-lc -L/usr/ucblib -lucb"
8063  else
8064    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8065    for i in $apr_addto_bugger; do
8066      apr_addto_duplicate="0"
8067      for j in $LIBS; do
8068        if test "x$i" = "x$j"; then
8069          apr_addto_duplicate="1"
8070          break
8071        fi
8072      done
8073      if test $apr_addto_duplicate = "0"; then
8074        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8075        LIBS="$LIBS $i"
8076      fi
8077    done
8078  fi
8079
8080	;;
8081    drs6000*)
8082
8083  if test "x$CPPFLAGS" = "x"; then
8084    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DSVR4\""
8085    CPPFLAGS="-DSVR4"
8086  else
8087    apr_addto_bugger="-DSVR4"
8088    for i in $apr_addto_bugger; do
8089      apr_addto_duplicate="0"
8090      for j in $CPPFLAGS; do
8091        if test "x$i" = "x$j"; then
8092          apr_addto_duplicate="1"
8093          break
8094        fi
8095      done
8096      if test $apr_addto_duplicate = "0"; then
8097        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8098        CPPFLAGS="$CPPFLAGS $i"
8099      fi
8100    done
8101  fi
8102
8103
8104  if test "x$LIBS" = "x"; then
8105    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8106    LIBS="-lc -L/usr/ucblib -lucb"
8107  else
8108    apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8109    for i in $apr_addto_bugger; do
8110      apr_addto_duplicate="0"
8111      for j in $LIBS; do
8112        if test "x$i" = "x$j"; then
8113          apr_addto_duplicate="1"
8114          break
8115        fi
8116      done
8117      if test $apr_addto_duplicate = "0"; then
8118        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
8119        LIBS="$LIBS $i"
8120      fi
8121    done
8122  fi
8123
8124	;;
8125    m88k-*-CX/SX|CYBER)
8126
8127  if test "x$CPPFLAGS" = "x"; then
8128    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_CX_SX\""
8129    CPPFLAGS="-D_CX_SX"
8130  else
8131    apr_addto_bugger="-D_CX_SX"
8132    for i in $apr_addto_bugger; do
8133      apr_addto_duplicate="0"
8134      for j in $CPPFLAGS; do
8135        if test "x$i" = "x$j"; then
8136          apr_addto_duplicate="1"
8137          break
8138        fi
8139      done
8140      if test $apr_addto_duplicate = "0"; then
8141        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8142        CPPFLAGS="$CPPFLAGS $i"
8143      fi
8144    done
8145  fi
8146
8147
8148  if test "x$CFLAGS" = "x"; then
8149    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Xa\""
8150    CFLAGS="-Xa"
8151  else
8152    apr_addto_bugger="-Xa"
8153    for i in $apr_addto_bugger; do
8154      apr_addto_duplicate="0"
8155      for j in $CFLAGS; do
8156        if test "x$i" = "x$j"; then
8157          apr_addto_duplicate="1"
8158          break
8159        fi
8160      done
8161      if test $apr_addto_duplicate = "0"; then
8162        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
8163        CFLAGS="$CFLAGS $i"
8164      fi
8165    done
8166  fi
8167
8168	;;
8169    *-tandem-oss)
8170
8171  if test "x$CPPFLAGS" = "x"; then
8172    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\""
8173    CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8174  else
8175    apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8176    for i in $apr_addto_bugger; do
8177      apr_addto_duplicate="0"
8178      for j in $CPPFLAGS; do
8179        if test "x$i" = "x$j"; then
8180          apr_addto_duplicate="1"
8181          break
8182        fi
8183      done
8184      if test $apr_addto_duplicate = "0"; then
8185        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8186        CPPFLAGS="$CPPFLAGS $i"
8187      fi
8188    done
8189  fi
8190
8191	;;
8192    *-ibm-os390)
8193
8194  if test -z "$apr_lock_method"; then
8195    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
8196    apr_lock_method="USE_SYSVSEM_SERIALIZE"
8197  fi
8198
8199
8200  if test -z "$apr_sysvsem_is_global"; then
8201    test "x$silent" != "xyes" && echo "  setting apr_sysvsem_is_global to \"yes\""
8202    apr_sysvsem_is_global="yes"
8203  fi
8204
8205
8206  if test -z "$apr_gethostbyname_is_thread_safe"; then
8207    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
8208    apr_gethostbyname_is_thread_safe="yes"
8209  fi
8210
8211
8212  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
8213    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
8214    apr_gethostbyaddr_is_thread_safe="yes"
8215  fi
8216
8217
8218  if test -z "$apr_getservbyname_is_thread_safe"; then
8219    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
8220    apr_getservbyname_is_thread_safe="yes"
8221  fi
8222
8223
8224$as_echo "#define HAVE_ZOS_PTHREADS 1" >>confdefs.h
8225
8226
8227  if test "x$CPPFLAGS" = "x"; then
8228    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\""
8229    CPPFLAGS="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
8230  else
8231    apr_addto_bugger="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
8232    for i in $apr_addto_bugger; do
8233      apr_addto_duplicate="0"
8234      for j in $CPPFLAGS; do
8235        if test "x$i" = "x$j"; then
8236          apr_addto_duplicate="1"
8237          break
8238        fi
8239      done
8240      if test $apr_addto_duplicate = "0"; then
8241        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8242        CPPFLAGS="$CPPFLAGS $i"
8243      fi
8244    done
8245  fi
8246
8247        ;;
8248    *-ibm-as400)
8249
8250  if test -z "$apr_lock_method"; then
8251    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
8252    apr_lock_method="USE_SYSVSEM_SERIALIZE"
8253  fi
8254
8255
8256  if test -z "$apr_process_lock_is_global"; then
8257    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
8258    apr_process_lock_is_global="yes"
8259  fi
8260
8261
8262  if test -z "$apr_gethostbyname_is_thread_safe"; then
8263    test "x$silent" != "xyes" && echo "  setting apr_gethostbyname_is_thread_safe to \"yes\""
8264    apr_gethostbyname_is_thread_safe="yes"
8265  fi
8266
8267
8268  if test -z "$apr_gethostbyaddr_is_thread_safe"; then
8269    test "x$silent" != "xyes" && echo "  setting apr_gethostbyaddr_is_thread_safe to \"yes\""
8270    apr_gethostbyaddr_is_thread_safe="yes"
8271  fi
8272
8273
8274  if test -z "$apr_getservbyname_is_thread_safe"; then
8275    test "x$silent" != "xyes" && echo "  setting apr_getservbyname_is_thread_safe to \"yes\""
8276    apr_getservbyname_is_thread_safe="yes"
8277  fi
8278
8279        ;;
8280    *cygwin*)
8281
8282  if test "x$CPPFLAGS" = "x"; then
8283    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DCYGWIN\""
8284    CPPFLAGS="-DCYGWIN"
8285  else
8286    apr_addto_bugger="-DCYGWIN"
8287    for i in $apr_addto_bugger; do
8288      apr_addto_duplicate="0"
8289      for j in $CPPFLAGS; do
8290        if test "x$i" = "x$j"; then
8291          apr_addto_duplicate="1"
8292          break
8293        fi
8294      done
8295      if test $apr_addto_duplicate = "0"; then
8296        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8297        CPPFLAGS="$CPPFLAGS $i"
8298      fi
8299    done
8300  fi
8301
8302	;;
8303    *mingw*)
8304
8305  if test "x$CPPFLAGS" = "x"; then
8306    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DWIN32 -D__MSVCRT__\""
8307    CPPFLAGS="-DWIN32 -D__MSVCRT__"
8308  else
8309    apr_addto_bugger="-DWIN32 -D__MSVCRT__"
8310    for i in $apr_addto_bugger; do
8311      apr_addto_duplicate="0"
8312      for j in $CPPFLAGS; do
8313        if test "x$i" = "x$j"; then
8314          apr_addto_duplicate="1"
8315          break
8316        fi
8317      done
8318      if test $apr_addto_duplicate = "0"; then
8319        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
8320        CPPFLAGS="$CPPFLAGS $i"
8321      fi
8322    done
8323  fi
8324
8325
8326  if test "x$LDFLAGS" = "x"; then
8327    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-Wl,--enable-auto-import,--subsystem,console\""
8328    LDFLAGS="-Wl,--enable-auto-import,--subsystem,console"
8329  else
8330    apr_addto_bugger="-Wl,--enable-auto-import,--subsystem,console"
8331    for i in $apr_addto_bugger; do
8332      apr_addto_duplicate="0"
8333      for j in $LDFLAGS; do
8334        if test "x$i" = "x$j"; then
8335          apr_addto_duplicate="1"
8336          break
8337        fi
8338      done
8339      if test $apr_addto_duplicate = "0"; then
8340        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
8341        LDFLAGS="$LDFLAGS $i"
8342      fi
8343    done
8344  fi
8345
8346
8347  if test -z "$have_unicode_fs"; then
8348    test "x$silent" != "xyes" && echo "  setting have_unicode_fs to \"1\""
8349    have_unicode_fs="1"
8350  fi
8351
8352
8353  if test -z "$have_proc_invoked"; then
8354    test "x$silent" != "xyes" && echo "  setting have_proc_invoked to \"1\""
8355    have_proc_invoked="1"
8356  fi
8357
8358
8359  if test -z "$apr_lock_method"; then
8360    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"win32\""
8361    apr_lock_method="win32"
8362  fi
8363
8364
8365  if test -z "$apr_process_lock_is_global"; then
8366    test "x$silent" != "xyes" && echo "  setting apr_process_lock_is_global to \"yes\""
8367    apr_process_lock_is_global="yes"
8368  fi
8369
8370
8371  if test -z "$apr_cv_use_lfs64"; then
8372    test "x$silent" != "xyes" && echo "  setting apr_cv_use_lfs64 to \"yes\""
8373    apr_cv_use_lfs64="yes"
8374  fi
8375
8376
8377  if test -z "$apr_cv_osuuid"; then
8378    test "x$silent" != "xyes" && echo "  setting apr_cv_osuuid to \"yes\""
8379    apr_cv_osuuid="yes"
8380  fi
8381
8382
8383  if test -z "$apr_cv_tcp_nodelay_with_cork"; then
8384    test "x$silent" != "xyes" && echo "  setting apr_cv_tcp_nodelay_with_cork to \"no\""
8385    apr_cv_tcp_nodelay_with_cork="no"
8386  fi
8387
8388
8389  if test -z "$apr_thread_func"; then
8390    test "x$silent" != "xyes" && echo "  setting apr_thread_func to \"__stdcall\""
8391    apr_thread_func="__stdcall"
8392  fi
8393
8394
8395  if test -z "$ac_cv_o_nonblock_inherited"; then
8396    test "x$silent" != "xyes" && echo "  setting ac_cv_o_nonblock_inherited to \"yes\""
8397    ac_cv_o_nonblock_inherited="yes"
8398  fi
8399
8400
8401  if test -z "$ac_cv_tcp_nodelay_inherited"; then
8402    test "x$silent" != "xyes" && echo "  setting ac_cv_tcp_nodelay_inherited to \"yes\""
8403    ac_cv_tcp_nodelay_inherited="yes"
8404  fi
8405
8406
8407  if test -z "$ac_cv_file__dev_zero"; then
8408    test "x$silent" != "xyes" && echo "  setting ac_cv_file__dev_zero to \"no\""
8409    ac_cv_file__dev_zero="no"
8410  fi
8411
8412
8413  if test -z "$ac_cv_func_setpgrp_void"; then
8414    test "x$silent" != "xyes" && echo "  setting ac_cv_func_setpgrp_void to \"no\""
8415    ac_cv_func_setpgrp_void="no"
8416  fi
8417
8418
8419  if test -z "$ac_cv_func_mmap"; then
8420    test "x$silent" != "xyes" && echo "  setting ac_cv_func_mmap to \"yes\""
8421    ac_cv_func_mmap="yes"
8422  fi
8423
8424
8425  if test -z "$ac_cv_define_sockaddr_in6"; then
8426    test "x$silent" != "xyes" && echo "  setting ac_cv_define_sockaddr_in6 to \"yes\""
8427    ac_cv_define_sockaddr_in6="yes"
8428  fi
8429
8430
8431  if test -z "$ac_cv_working_getaddrinfo"; then
8432    test "x$silent" != "xyes" && echo "  setting ac_cv_working_getaddrinfo to \"yes\""
8433    ac_cv_working_getaddrinfo="yes"
8434  fi
8435
8436
8437  if test -z "$ac_cv_working_getnameinfo"; then
8438    test "x$silent" != "xyes" && echo "  setting ac_cv_working_getnameinfo to \"yes\""
8439    ac_cv_working_getnameinfo="yes"
8440  fi
8441
8442
8443  if test -z "$ac_cv_func_gai_strerror"; then
8444    test "x$silent" != "xyes" && echo "  setting ac_cv_func_gai_strerror to \"yes\""
8445    ac_cv_func_gai_strerror="yes"
8446  fi
8447
8448        case $host in
8449            *mingw32*)
8450
8451  if test -z "$apr_has_xthread_files"; then
8452    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"1\""
8453    apr_has_xthread_files="1"
8454  fi
8455
8456
8457  if test -z "$apr_has_user"; then
8458    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"1\""
8459    apr_has_user="1"
8460  fi
8461
8462
8463  if test -z "$apr_procattr_user_set_requires_password"; then
8464    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"1\""
8465    apr_procattr_user_set_requires_password="1"
8466  fi
8467
8468
8469  if test -z "$ac_cv_func_sendfile"; then
8470    test "x$silent" != "xyes" && echo "  setting ac_cv_func_sendfile to \"yes\""
8471    ac_cv_func_sendfile="yes"
8472  fi
8473
8474                ;;
8475            *mingwce)
8476
8477  if test -z "$apr_has_xthread_files"; then
8478    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"0\""
8479    apr_has_xthread_files="0"
8480  fi
8481
8482
8483  if test -z "$apr_has_user"; then
8484    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"0\""
8485    apr_has_user="0"
8486  fi
8487
8488
8489  if test -z "$apr_procattr_user_set_requires_password"; then
8490    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"0\""
8491    apr_procattr_user_set_requires_password="0"
8492  fi
8493
8494
8495  if test -z "$ac_cv_func_sendfile"; then
8496    test "x$silent" != "xyes" && echo "  setting ac_cv_func_sendfile to \"no\""
8497    ac_cv_func_sendfile="no"
8498  fi
8499
8500                ;;
8501        esac
8502        ;;
8503  esac
8504
8505fi
8506
8507
8508DEFAULT_OSDIR="unix"
8509echo "(Default will be ${DEFAULT_OSDIR})"
8510
8511apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random"
8512
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8514$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8515set x ${MAKE-make}
8516ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8517if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8518  $as_echo_n "(cached) " >&6
8519else
8520  cat >conftest.make <<\_ACEOF
8521SHELL = /bin/sh
8522all:
8523	@echo '@@@%%%=$(MAKE)=@@@%%%'
8524_ACEOF
8525# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8526case `${MAKE-make} -f conftest.make 2>/dev/null` in
8527  *@@@%%%=?*=@@@%%%*)
8528    eval ac_cv_prog_make_${ac_make}_set=yes;;
8529  *)
8530    eval ac_cv_prog_make_${ac_make}_set=no;;
8531esac
8532rm -f conftest.make
8533fi
8534if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8536$as_echo "yes" >&6; }
8537  SET_MAKE=
8538else
8539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
8541  SET_MAKE="MAKE=${MAKE-make}"
8542fi
8543
8544ac_ext=c
8545ac_cpp='$CPP $CPPFLAGS'
8546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8548ac_compiler_gnu=$ac_cv_c_compiler_gnu
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8550$as_echo_n "checking how to run the C preprocessor... " >&6; }
8551# On Suns, sometimes $CPP names a directory.
8552if test -n "$CPP" && test -d "$CPP"; then
8553  CPP=
8554fi
8555if test -z "$CPP"; then
8556  if test "${ac_cv_prog_CPP+set}" = set; then :
8557  $as_echo_n "(cached) " >&6
8558else
8559      # Double quotes because CPP needs to be expanded
8560    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8561    do
8562      ac_preproc_ok=false
8563for ac_c_preproc_warn_flag in '' yes
8564do
8565  # Use a header file that comes with gcc, so configuring glibc
8566  # with a fresh cross-compiler works.
8567  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8568  # <limits.h> exists even on freestanding compilers.
8569  # On the NeXT, cc -E runs the code through the compiler's parser,
8570  # not just through cpp. "Syntax error" is here to catch this case.
8571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572/* end confdefs.h.  */
8573#ifdef __STDC__
8574# include <limits.h>
8575#else
8576# include <assert.h>
8577#endif
8578		     Syntax error
8579_ACEOF
8580if ac_fn_c_try_cpp "$LINENO"; then :
8581
8582else
8583  # Broken: fails on valid input.
8584continue
8585fi
8586rm -f conftest.err conftest.$ac_ext
8587
8588  # OK, works on sane cases.  Now check whether nonexistent headers
8589  # can be detected and how.
8590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591/* end confdefs.h.  */
8592#include <ac_nonexistent.h>
8593_ACEOF
8594if ac_fn_c_try_cpp "$LINENO"; then :
8595  # Broken: success on invalid input.
8596continue
8597else
8598  # Passes both tests.
8599ac_preproc_ok=:
8600break
8601fi
8602rm -f conftest.err conftest.$ac_ext
8603
8604done
8605# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8606rm -f conftest.err conftest.$ac_ext
8607if $ac_preproc_ok; then :
8608  break
8609fi
8610
8611    done
8612    ac_cv_prog_CPP=$CPP
8613
8614fi
8615  CPP=$ac_cv_prog_CPP
8616else
8617  ac_cv_prog_CPP=$CPP
8618fi
8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8620$as_echo "$CPP" >&6; }
8621ac_preproc_ok=false
8622for ac_c_preproc_warn_flag in '' yes
8623do
8624  # Use a header file that comes with gcc, so configuring glibc
8625  # with a fresh cross-compiler works.
8626  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8627  # <limits.h> exists even on freestanding compilers.
8628  # On the NeXT, cc -E runs the code through the compiler's parser,
8629  # not just through cpp. "Syntax error" is here to catch this case.
8630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631/* end confdefs.h.  */
8632#ifdef __STDC__
8633# include <limits.h>
8634#else
8635# include <assert.h>
8636#endif
8637		     Syntax error
8638_ACEOF
8639if ac_fn_c_try_cpp "$LINENO"; then :
8640
8641else
8642  # Broken: fails on valid input.
8643continue
8644fi
8645rm -f conftest.err conftest.$ac_ext
8646
8647  # OK, works on sane cases.  Now check whether nonexistent headers
8648  # can be detected and how.
8649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650/* end confdefs.h.  */
8651#include <ac_nonexistent.h>
8652_ACEOF
8653if ac_fn_c_try_cpp "$LINENO"; then :
8654  # Broken: success on invalid input.
8655continue
8656else
8657  # Passes both tests.
8658ac_preproc_ok=:
8659break
8660fi
8661rm -f conftest.err conftest.$ac_ext
8662
8663done
8664# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8665rm -f conftest.err conftest.$ac_ext
8666if $ac_preproc_ok; then :
8667
8668else
8669  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8671as_fn_error "C preprocessor \"$CPP\" fails sanity check
8672See \`config.log' for more details." "$LINENO" 5; }
8673fi
8674
8675ac_ext=c
8676ac_cpp='$CPP $CPPFLAGS'
8677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8679ac_compiler_gnu=$ac_cv_c_compiler_gnu
8680
8681for ac_prog in gawk mawk nawk awk
8682do
8683  # Extract the first word of "$ac_prog", so it can be a program name with args.
8684set dummy $ac_prog; ac_word=$2
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686$as_echo_n "checking for $ac_word... " >&6; }
8687if test "${ac_cv_prog_AWK+set}" = set; then :
8688  $as_echo_n "(cached) " >&6
8689else
8690  if test -n "$AWK"; then
8691  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8692else
8693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694for as_dir in $PATH
8695do
8696  IFS=$as_save_IFS
8697  test -z "$as_dir" && as_dir=.
8698    for ac_exec_ext in '' $ac_executable_extensions; do
8699  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8700    ac_cv_prog_AWK="$ac_prog"
8701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702    break 2
8703  fi
8704done
8705  done
8706IFS=$as_save_IFS
8707
8708fi
8709fi
8710AWK=$ac_cv_prog_AWK
8711if test -n "$AWK"; then
8712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8713$as_echo "$AWK" >&6; }
8714else
8715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716$as_echo "no" >&6; }
8717fi
8718
8719
8720  test -n "$AWK" && break
8721done
8722
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8724$as_echo_n "checking whether ln -s works... " >&6; }
8725LN_S=$as_ln_s
8726if test "$LN_S" = "ln -s"; then
8727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8728$as_echo "yes" >&6; }
8729else
8730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8731$as_echo "no, using $LN_S" >&6; }
8732fi
8733
8734if test -n "$ac_tool_prefix"; then
8735  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8736set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738$as_echo_n "checking for $ac_word... " >&6; }
8739if test "${ac_cv_prog_RANLIB+set}" = set; then :
8740  $as_echo_n "(cached) " >&6
8741else
8742  if test -n "$RANLIB"; then
8743  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8744else
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748  IFS=$as_save_IFS
8749  test -z "$as_dir" && as_dir=.
8750    for ac_exec_ext in '' $ac_executable_extensions; do
8751  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8752    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754    break 2
8755  fi
8756done
8757  done
8758IFS=$as_save_IFS
8759
8760fi
8761fi
8762RANLIB=$ac_cv_prog_RANLIB
8763if test -n "$RANLIB"; then
8764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8765$as_echo "$RANLIB" >&6; }
8766else
8767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768$as_echo "no" >&6; }
8769fi
8770
8771
8772fi
8773if test -z "$ac_cv_prog_RANLIB"; then
8774  ac_ct_RANLIB=$RANLIB
8775  # Extract the first word of "ranlib", so it can be a program name with args.
8776set dummy ranlib; ac_word=$2
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778$as_echo_n "checking for $ac_word... " >&6; }
8779if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8780  $as_echo_n "(cached) " >&6
8781else
8782  if test -n "$ac_ct_RANLIB"; then
8783  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8784else
8785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786for as_dir in $PATH
8787do
8788  IFS=$as_save_IFS
8789  test -z "$as_dir" && as_dir=.
8790    for ac_exec_ext in '' $ac_executable_extensions; do
8791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792    ac_cv_prog_ac_ct_RANLIB="ranlib"
8793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794    break 2
8795  fi
8796done
8797  done
8798IFS=$as_save_IFS
8799
8800fi
8801fi
8802ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8803if test -n "$ac_ct_RANLIB"; then
8804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8805$as_echo "$ac_ct_RANLIB" >&6; }
8806else
8807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808$as_echo "no" >&6; }
8809fi
8810
8811  if test "x$ac_ct_RANLIB" = x; then
8812    RANLIB=":"
8813  else
8814    case $cross_compiling:$ac_tool_warned in
8815yes:)
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8818ac_tool_warned=yes ;;
8819esac
8820    RANLIB=$ac_ct_RANLIB
8821  fi
8822else
8823  RANLIB="$ac_cv_prog_RANLIB"
8824fi
8825
8826# Find a good install program.  We prefer a C program (faster),
8827# so one script is as good as another.  But avoid the broken or
8828# incompatible versions:
8829# SysV /etc/install, /usr/sbin/install
8830# SunOS /usr/etc/install
8831# IRIX /sbin/install
8832# AIX /bin/install
8833# AmigaOS /C/install, which installs bootblocks on floppy discs
8834# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8835# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8836# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8837# OS/2's system install, which has a completely different semantic
8838# ./install, which can be erroneously created by make from ./install.sh.
8839# Reject install programs that cannot install multiple files.
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8841$as_echo_n "checking for a BSD-compatible install... " >&6; }
8842if test -z "$INSTALL"; then
8843if test "${ac_cv_path_install+set}" = set; then :
8844  $as_echo_n "(cached) " >&6
8845else
8846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847for as_dir in $PATH
8848do
8849  IFS=$as_save_IFS
8850  test -z "$as_dir" && as_dir=.
8851    # Account for people who put trailing slashes in PATH elements.
8852case $as_dir/ in #((
8853  ./ | .// | /[cC]/* | \
8854  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8855  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8856  /usr/ucb/* ) ;;
8857  *)
8858    # OSF1 and SCO ODT 3.0 have their own names for install.
8859    # Don't use installbsd from OSF since it installs stuff as root
8860    # by default.
8861    for ac_prog in ginstall scoinst install; do
8862      for ac_exec_ext in '' $ac_executable_extensions; do
8863	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
8864	  if test $ac_prog = install &&
8865	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8866	    # AIX install.  It has an incompatible calling convention.
8867	    :
8868	  elif test $ac_prog = install &&
8869	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8870	    # program-specific install script used by HP pwplus--don't use.
8871	    :
8872	  else
8873	    rm -rf conftest.one conftest.two conftest.dir
8874	    echo one > conftest.one
8875	    echo two > conftest.two
8876	    mkdir conftest.dir
8877	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8878	      test -s conftest.one && test -s conftest.two &&
8879	      test -s conftest.dir/conftest.one &&
8880	      test -s conftest.dir/conftest.two
8881	    then
8882	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8883	      break 3
8884	    fi
8885	  fi
8886	fi
8887      done
8888    done
8889    ;;
8890esac
8891
8892  done
8893IFS=$as_save_IFS
8894
8895rm -rf conftest.one conftest.two conftest.dir
8896
8897fi
8898  if test "${ac_cv_path_install+set}" = set; then
8899    INSTALL=$ac_cv_path_install
8900  else
8901    # As a last resort, use the slow shell script.  Don't cache a
8902    # value for INSTALL within a source directory, because that will
8903    # break other packages using the cache if that directory is
8904    # removed, or if the value is a relative name.
8905    INSTALL=$ac_install_sh
8906  fi
8907fi
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8909$as_echo "$INSTALL" >&6; }
8910
8911# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8912# It thinks the first close brace ends the variable substitution.
8913test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8914
8915test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8916
8917test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8918
8919# Extract the first word of "rm", so it can be a program name with args.
8920set dummy rm; ac_word=$2
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922$as_echo_n "checking for $ac_word... " >&6; }
8923if test "${ac_cv_prog_RM+set}" = set; then :
8924  $as_echo_n "(cached) " >&6
8925else
8926  if test -n "$RM"; then
8927  ac_cv_prog_RM="$RM" # Let the user override the test.
8928else
8929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930for as_dir in $PATH
8931do
8932  IFS=$as_save_IFS
8933  test -z "$as_dir" && as_dir=.
8934    for ac_exec_ext in '' $ac_executable_extensions; do
8935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8936    ac_cv_prog_RM="rm"
8937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938    break 2
8939  fi
8940done
8941  done
8942IFS=$as_save_IFS
8943
8944fi
8945fi
8946RM=$ac_cv_prog_RM
8947if test -n "$RM"; then
8948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8949$as_echo "$RM" >&6; }
8950else
8951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952$as_echo "no" >&6; }
8953fi
8954
8955
8956# Extract the first word of "as", so it can be a program name with args.
8957set dummy as; ac_word=$2
8958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8959$as_echo_n "checking for $ac_word... " >&6; }
8960if test "${ac_cv_prog_AS+set}" = set; then :
8961  $as_echo_n "(cached) " >&6
8962else
8963  if test -n "$AS"; then
8964  ac_cv_prog_AS="$AS" # Let the user override the test.
8965else
8966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967for as_dir in $PATH
8968do
8969  IFS=$as_save_IFS
8970  test -z "$as_dir" && as_dir=.
8971    for ac_exec_ext in '' $ac_executable_extensions; do
8972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8973    ac_cv_prog_AS="as"
8974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8975    break 2
8976  fi
8977done
8978  done
8979IFS=$as_save_IFS
8980
8981fi
8982fi
8983AS=$ac_cv_prog_AS
8984if test -n "$AS"; then
8985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8986$as_echo "$AS" >&6; }
8987else
8988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989$as_echo "no" >&6; }
8990fi
8991
8992
8993# Extract the first word of "cpp", so it can be a program name with args.
8994set dummy cpp; ac_word=$2
8995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996$as_echo_n "checking for $ac_word... " >&6; }
8997if test "${ac_cv_prog_ASCPP+set}" = set; then :
8998  $as_echo_n "(cached) " >&6
8999else
9000  if test -n "$ASCPP"; then
9001  ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test.
9002else
9003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004for as_dir in $PATH
9005do
9006  IFS=$as_save_IFS
9007  test -z "$as_dir" && as_dir=.
9008    for ac_exec_ext in '' $ac_executable_extensions; do
9009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9010    ac_cv_prog_ASCPP="cpp"
9011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012    break 2
9013  fi
9014done
9015  done
9016IFS=$as_save_IFS
9017
9018fi
9019fi
9020ASCPP=$ac_cv_prog_ASCPP
9021if test -n "$ASCPP"; then
9022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCPP" >&5
9023$as_echo "$ASCPP" >&6; }
9024else
9025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026$as_echo "no" >&6; }
9027fi
9028
9029
9030if test -n "$ac_tool_prefix"; then
9031  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9032set dummy ${ac_tool_prefix}ar; ac_word=$2
9033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9034$as_echo_n "checking for $ac_word... " >&6; }
9035if test "${ac_cv_prog_AR+set}" = set; then :
9036  $as_echo_n "(cached) " >&6
9037else
9038  if test -n "$AR"; then
9039  ac_cv_prog_AR="$AR" # Let the user override the test.
9040else
9041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042for as_dir in $PATH
9043do
9044  IFS=$as_save_IFS
9045  test -z "$as_dir" && as_dir=.
9046    for ac_exec_ext in '' $ac_executable_extensions; do
9047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9048    ac_cv_prog_AR="${ac_tool_prefix}ar"
9049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050    break 2
9051  fi
9052done
9053  done
9054IFS=$as_save_IFS
9055
9056fi
9057fi
9058AR=$ac_cv_prog_AR
9059if test -n "$AR"; then
9060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9061$as_echo "$AR" >&6; }
9062else
9063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064$as_echo "no" >&6; }
9065fi
9066
9067
9068fi
9069if test -z "$ac_cv_prog_AR"; then
9070  ac_ct_AR=$AR
9071  # Extract the first word of "ar", so it can be a program name with args.
9072set dummy ar; ac_word=$2
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074$as_echo_n "checking for $ac_word... " >&6; }
9075if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9076  $as_echo_n "(cached) " >&6
9077else
9078  if test -n "$ac_ct_AR"; then
9079  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9080else
9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084  IFS=$as_save_IFS
9085  test -z "$as_dir" && as_dir=.
9086    for ac_exec_ext in '' $ac_executable_extensions; do
9087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9088    ac_cv_prog_ac_ct_AR="ar"
9089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090    break 2
9091  fi
9092done
9093  done
9094IFS=$as_save_IFS
9095
9096fi
9097fi
9098ac_ct_AR=$ac_cv_prog_ac_ct_AR
9099if test -n "$ac_ct_AR"; then
9100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9101$as_echo "$ac_ct_AR" >&6; }
9102else
9103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104$as_echo "no" >&6; }
9105fi
9106
9107  if test "x$ac_ct_AR" = x; then
9108    AR="ar"
9109  else
9110    case $cross_compiling:$ac_tool_warned in
9111yes:)
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9114ac_tool_warned=yes ;;
9115esac
9116    AR=$ac_ct_AR
9117  fi
9118else
9119  AR="$ac_cv_prog_AR"
9120fi
9121
9122
9123
9124
9125
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9127$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
9128if test "${ac_cv_path_GREP+set}" = set; then :
9129  $as_echo_n "(cached) " >&6
9130else
9131  if test -z "$GREP"; then
9132  ac_path_GREP_found=false
9133  # Loop through the user's path and test for each of PROGNAME-LIST
9134  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9136do
9137  IFS=$as_save_IFS
9138  test -z "$as_dir" && as_dir=.
9139    for ac_prog in grep ggrep; do
9140    for ac_exec_ext in '' $ac_executable_extensions; do
9141      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9142      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
9143# Check for GNU ac_path_GREP and select it if it is found.
9144  # Check for GNU $ac_path_GREP
9145case `"$ac_path_GREP" --version 2>&1` in
9146*GNU*)
9147  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9148*)
9149  ac_count=0
9150  $as_echo_n 0123456789 >"conftest.in"
9151  while :
9152  do
9153    cat "conftest.in" "conftest.in" >"conftest.tmp"
9154    mv "conftest.tmp" "conftest.in"
9155    cp "conftest.in" "conftest.nl"
9156    $as_echo 'GREP' >> "conftest.nl"
9157    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9158    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9159    as_fn_arith $ac_count + 1 && ac_count=$as_val
9160    if test $ac_count -gt ${ac_path_GREP_max-0}; then
9161      # Best one so far, save it but keep looking for a better one
9162      ac_cv_path_GREP="$ac_path_GREP"
9163      ac_path_GREP_max=$ac_count
9164    fi
9165    # 10*(2^10) chars as input seems more than enough
9166    test $ac_count -gt 10 && break
9167  done
9168  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9169esac
9170
9171      $ac_path_GREP_found && break 3
9172    done
9173  done
9174  done
9175IFS=$as_save_IFS
9176  if test -z "$ac_cv_path_GREP"; then
9177    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9178  fi
9179else
9180  ac_cv_path_GREP=$GREP
9181fi
9182
9183fi
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9185$as_echo "$ac_cv_path_GREP" >&6; }
9186 GREP="$ac_cv_path_GREP"
9187
9188
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9190$as_echo_n "checking for egrep... " >&6; }
9191if test "${ac_cv_path_EGREP+set}" = set; then :
9192  $as_echo_n "(cached) " >&6
9193else
9194  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9195   then ac_cv_path_EGREP="$GREP -E"
9196   else
9197     if test -z "$EGREP"; then
9198  ac_path_EGREP_found=false
9199  # Loop through the user's path and test for each of PROGNAME-LIST
9200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9202do
9203  IFS=$as_save_IFS
9204  test -z "$as_dir" && as_dir=.
9205    for ac_prog in egrep; do
9206    for ac_exec_ext in '' $ac_executable_extensions; do
9207      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9208      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9209# Check for GNU ac_path_EGREP and select it if it is found.
9210  # Check for GNU $ac_path_EGREP
9211case `"$ac_path_EGREP" --version 2>&1` in
9212*GNU*)
9213  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9214*)
9215  ac_count=0
9216  $as_echo_n 0123456789 >"conftest.in"
9217  while :
9218  do
9219    cat "conftest.in" "conftest.in" >"conftest.tmp"
9220    mv "conftest.tmp" "conftest.in"
9221    cp "conftest.in" "conftest.nl"
9222    $as_echo 'EGREP' >> "conftest.nl"
9223    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9224    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9225    as_fn_arith $ac_count + 1 && ac_count=$as_val
9226    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9227      # Best one so far, save it but keep looking for a better one
9228      ac_cv_path_EGREP="$ac_path_EGREP"
9229      ac_path_EGREP_max=$ac_count
9230    fi
9231    # 10*(2^10) chars as input seems more than enough
9232    test $ac_count -gt 10 && break
9233  done
9234  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9235esac
9236
9237      $ac_path_EGREP_found && break 3
9238    done
9239  done
9240  done
9241IFS=$as_save_IFS
9242  if test -z "$ac_cv_path_EGREP"; then
9243    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9244  fi
9245else
9246  ac_cv_path_EGREP=$EGREP
9247fi
9248
9249   fi
9250fi
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9252$as_echo "$ac_cv_path_EGREP" >&6; }
9253 EGREP="$ac_cv_path_EGREP"
9254
9255
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9257$as_echo_n "checking for ANSI C header files... " >&6; }
9258if test "${ac_cv_header_stdc+set}" = set; then :
9259  $as_echo_n "(cached) " >&6
9260else
9261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262/* end confdefs.h.  */
9263#include <stdlib.h>
9264#include <stdarg.h>
9265#include <string.h>
9266#include <float.h>
9267
9268int
9269main ()
9270{
9271
9272  ;
9273  return 0;
9274}
9275_ACEOF
9276if ac_fn_c_try_compile "$LINENO"; then :
9277  ac_cv_header_stdc=yes
9278else
9279  ac_cv_header_stdc=no
9280fi
9281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9282
9283if test $ac_cv_header_stdc = yes; then
9284  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h.  */
9287#include <string.h>
9288
9289_ACEOF
9290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9291  $EGREP "memchr" >/dev/null 2>&1; then :
9292
9293else
9294  ac_cv_header_stdc=no
9295fi
9296rm -f conftest*
9297
9298fi
9299
9300if test $ac_cv_header_stdc = yes; then
9301  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h.  */
9304#include <stdlib.h>
9305
9306_ACEOF
9307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9308  $EGREP "free" >/dev/null 2>&1; then :
9309
9310else
9311  ac_cv_header_stdc=no
9312fi
9313rm -f conftest*
9314
9315fi
9316
9317if test $ac_cv_header_stdc = yes; then
9318  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9319  if test "$cross_compiling" = yes; then :
9320  :
9321else
9322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323/* end confdefs.h.  */
9324#include <ctype.h>
9325#include <stdlib.h>
9326#if ((' ' & 0x0FF) == 0x020)
9327# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9328# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9329#else
9330# define ISLOWER(c) \
9331		   (('a' <= (c) && (c) <= 'i') \
9332		     || ('j' <= (c) && (c) <= 'r') \
9333		     || ('s' <= (c) && (c) <= 'z'))
9334# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9335#endif
9336
9337#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9338int
9339main ()
9340{
9341  int i;
9342  for (i = 0; i < 256; i++)
9343    if (XOR (islower (i), ISLOWER (i))
9344	|| toupper (i) != TOUPPER (i))
9345      return 2;
9346  return 0;
9347}
9348_ACEOF
9349if ac_fn_c_try_run "$LINENO"; then :
9350
9351else
9352  ac_cv_header_stdc=no
9353fi
9354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9355  conftest.$ac_objext conftest.beam conftest.$ac_ext
9356fi
9357
9358fi
9359fi
9360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9361$as_echo "$ac_cv_header_stdc" >&6; }
9362if test $ac_cv_header_stdc = yes; then
9363
9364$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9365
9366fi
9367
9368# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9369for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9370		  inttypes.h stdint.h unistd.h
9371do :
9372  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9373ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9374"
9375eval as_val=\$$as_ac_Header
9376   if test "x$as_val" = x""yes; then :
9377  cat >>confdefs.h <<_ACEOF
9378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9379_ACEOF
9380
9381fi
9382
9383done
9384
9385
9386
9387  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
9388if test "x$ac_cv_header_minix_config_h" = x""yes; then :
9389  MINIX=yes
9390else
9391  MINIX=
9392fi
9393
9394
9395  if test "$MINIX" = yes; then
9396
9397$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
9398
9399
9400$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
9401
9402
9403$as_echo "#define _MINIX 1" >>confdefs.h
9404
9405  fi
9406
9407
9408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
9409$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
9410if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
9411  $as_echo_n "(cached) " >&6
9412else
9413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414/* end confdefs.h.  */
9415
9416#	  define __EXTENSIONS__ 1
9417	  $ac_includes_default
9418int
9419main ()
9420{
9421
9422  ;
9423  return 0;
9424}
9425_ACEOF
9426if ac_fn_c_try_compile "$LINENO"; then :
9427  ac_cv_safe_to_define___extensions__=yes
9428else
9429  ac_cv_safe_to_define___extensions__=no
9430fi
9431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432fi
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
9434$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
9435  test $ac_cv_safe_to_define___extensions__ = yes &&
9436    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
9437
9438  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
9439
9440  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
9441
9442  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
9443
9444  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
9445
9446
9447
9448
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
9450$as_echo_n "checking for library containing strerror... " >&6; }
9451if test "${ac_cv_search_strerror+set}" = set; then :
9452  $as_echo_n "(cached) " >&6
9453else
9454  ac_func_search_save_LIBS=$LIBS
9455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456/* end confdefs.h.  */
9457
9458/* Override any GCC internal prototype to avoid an error.
9459   Use char because int might match the return type of a GCC
9460   builtin and then its argument prototype would still apply.  */
9461#ifdef __cplusplus
9462extern "C"
9463#endif
9464char strerror ();
9465int
9466main ()
9467{
9468return strerror ();
9469  ;
9470  return 0;
9471}
9472_ACEOF
9473for ac_lib in '' cposix; do
9474  if test -z "$ac_lib"; then
9475    ac_res="none required"
9476  else
9477    ac_res=-l$ac_lib
9478    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9479  fi
9480  if ac_fn_c_try_link "$LINENO"; then :
9481  ac_cv_search_strerror=$ac_res
9482fi
9483rm -f core conftest.err conftest.$ac_objext \
9484    conftest$ac_exeext
9485  if test "${ac_cv_search_strerror+set}" = set; then :
9486  break
9487fi
9488done
9489if test "${ac_cv_search_strerror+set}" = set; then :
9490
9491else
9492  ac_cv_search_strerror=no
9493fi
9494rm conftest.$ac_ext
9495LIBS=$ac_func_search_save_LIBS
9496fi
9497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
9498$as_echo "$ac_cv_search_strerror" >&6; }
9499ac_res=$ac_cv_search_strerror
9500if test "$ac_res" != no; then :
9501  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9502
9503fi
9504
9505
9506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
9507$as_echo_n "checking whether system uses EBCDIC... " >&6; }
9508if test "${ac_cv_ebcdic+set}" = set; then :
9509  $as_echo_n "(cached) " >&6
9510else
9511
9512  if test "$cross_compiling" = yes; then :
9513
9514  ac_cv_ebcdic="no"
9515
9516else
9517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518/* end confdefs.h.  */
9519
9520int main(void) {
9521  return (unsigned char)'A' != (unsigned char)0xC1;
9522}
9523
9524_ACEOF
9525if ac_fn_c_try_run "$LINENO"; then :
9526
9527  ac_cv_ebcdic="yes"
9528
9529else
9530
9531  ac_cv_ebcdic="no"
9532
9533fi
9534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9535  conftest.$ac_objext conftest.beam conftest.$ac_ext
9536fi
9537
9538fi
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
9540$as_echo "$ac_cv_ebcdic" >&6; }
9541  if test "$ac_cv_ebcdic" = "yes"; then
9542    apr_charset_ebcdic=1
9543  else
9544    apr_charset_ebcdic=0
9545  fi
9546
9547
9548
9549APR_LIBNAME="apr${libsuffix}"
9550
9551
9552echo "performing libtool configuration..."
9553
9554# Check whether --enable-experimental-libtool was given.
9555if test "${enable_experimental_libtool+set}" = set; then :
9556  enableval=$enable_experimental_libtool; experimental_libtool=$enableval
9557else
9558  experimental_libtool=no
9559fi
9560
9561
9562if test "x$Xsed" = "x"; then
9563  Xsed="$SED -e 1s/^X//"
9564fi
9565
9566case $host in
9567*-os2*)
9568    # Use a custom-made libtool replacement
9569    echo "using aplibtool"
9570    LIBTOOL="$srcdir/build/aplibtool"
9571    gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c
9572    ;;
9573*)
9574    if test "x$LTFLAGS" = "x"; then
9575        LTFLAGS='--silent'
9576    fi
9577    if test "$experimental_libtool" = "yes"; then
9578        # Use a custom-made libtool replacement
9579        echo "using jlibtool"
9580        LIBTOOL="$apr_builddir/libtool"
9581        LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c"
9582        $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC
9583        eval `$apr_builddir/libtool --config | grep "^shlibpath_var=[A-Z_]*$"`
9584        if test "x$shlibpath_var" = "x"; then
9585            shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
9586        fi
9587    else
9588
9589
9590# Check whether --enable-shared was given.
9591if test "${enable_shared+set}" = set; then :
9592  enableval=$enable_shared; p=${PACKAGE-default}
9593    case $enableval in
9594    yes) enable_shared=yes ;;
9595    no) enable_shared=no ;;
9596    *)
9597      enable_shared=no
9598      # Look at the argument we got.  We use all the common list separators.
9599      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9600      for pkg in $enableval; do
9601	IFS="$lt_save_ifs"
9602	if test "X$pkg" = "X$p"; then
9603	  enable_shared=yes
9604	fi
9605      done
9606      IFS="$lt_save_ifs"
9607      ;;
9608    esac
9609else
9610  enable_shared=yes
9611fi
9612
9613
9614# Check whether --enable-static was given.
9615if test "${enable_static+set}" = set; then :
9616  enableval=$enable_static; p=${PACKAGE-default}
9617    case $enableval in
9618    yes) enable_static=yes ;;
9619    no) enable_static=no ;;
9620    *)
9621     enable_static=no
9622      # Look at the argument we got.  We use all the common list separators.
9623      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9624      for pkg in $enableval; do
9625	IFS="$lt_save_ifs"
9626	if test "X$pkg" = "X$p"; then
9627	  enable_static=yes
9628	fi
9629      done
9630      IFS="$lt_save_ifs"
9631      ;;
9632    esac
9633else
9634  enable_static=yes
9635fi
9636
9637
9638# Check whether --enable-fast-install was given.
9639if test "${enable_fast_install+set}" = set; then :
9640  enableval=$enable_fast_install; p=${PACKAGE-default}
9641    case $enableval in
9642    yes) enable_fast_install=yes ;;
9643    no) enable_fast_install=no ;;
9644    *)
9645      enable_fast_install=no
9646      # Look at the argument we got.  We use all the common list separators.
9647      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9648      for pkg in $enableval; do
9649	IFS="$lt_save_ifs"
9650	if test "X$pkg" = "X$p"; then
9651	  enable_fast_install=yes
9652	fi
9653      done
9654      IFS="$lt_save_ifs"
9655      ;;
9656    esac
9657else
9658  enable_fast_install=yes
9659fi
9660
9661
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9663$as_echo_n "checking for a sed that does not truncate output... " >&6; }
9664if test "${lt_cv_path_SED+set}" = set; then :
9665  $as_echo_n "(cached) " >&6
9666else
9667  # Loop through the user's path and test for sed and gsed.
9668# Then use that list of sed's as ones to test for truncation.
9669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670for as_dir in $PATH
9671do
9672  IFS=$as_save_IFS
9673  test -z "$as_dir" && as_dir=.
9674  for lt_ac_prog in sed gsed; do
9675    for ac_exec_ext in '' $ac_executable_extensions; do
9676      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
9677        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9678      fi
9679    done
9680  done
9681done
9682IFS=$as_save_IFS
9683lt_ac_max=0
9684lt_ac_count=0
9685# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9686# along with /bin/sed that truncates output.
9687for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9688  test ! -f $lt_ac_sed && continue
9689  cat /dev/null > conftest.in
9690  lt_ac_count=0
9691  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9692  # Check for GNU sed and select it if it is found.
9693  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9694    lt_cv_path_SED=$lt_ac_sed
9695    break
9696  fi
9697  while true; do
9698    cat conftest.in conftest.in >conftest.tmp
9699    mv conftest.tmp conftest.in
9700    cp conftest.in conftest.nl
9701    echo >>conftest.nl
9702    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9703    cmp -s conftest.out conftest.nl || break
9704    # 10000 chars as input seems more than enough
9705    test $lt_ac_count -gt 10 && break
9706    lt_ac_count=`expr $lt_ac_count + 1`
9707    if test $lt_ac_count -gt $lt_ac_max; then
9708      lt_ac_max=$lt_ac_count
9709      lt_cv_path_SED=$lt_ac_sed
9710    fi
9711  done
9712done
9713
9714fi
9715
9716SED=$lt_cv_path_SED
9717
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9719$as_echo "$SED" >&6; }
9720
9721
9722# Check whether --with-gnu-ld was given.
9723if test "${with_gnu_ld+set}" = set; then :
9724  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9725else
9726  with_gnu_ld=no
9727fi
9728
9729ac_prog=ld
9730if test "$GCC" = yes; then
9731  # Check if gcc -print-prog-name=ld gives a path.
9732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9733$as_echo_n "checking for ld used by $CC... " >&6; }
9734  case $host in
9735  *-*-mingw*)
9736    # gcc leaves a trailing carriage return which upsets mingw
9737    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9738  *)
9739    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9740  esac
9741  case $ac_prog in
9742    # Accept absolute paths.
9743    [\\/]* | ?:[\\/]*)
9744      re_direlt='/[^/][^/]*/\.\./'
9745      # Canonicalize the pathname of ld
9746      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9747      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9748	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9749      done
9750      test -z "$LD" && LD="$ac_prog"
9751      ;;
9752  "")
9753    # If it fails, then pretend we aren't using GCC.
9754    ac_prog=ld
9755    ;;
9756  *)
9757    # If it is relative, then search for the first ld in PATH.
9758    with_gnu_ld=unknown
9759    ;;
9760  esac
9761elif test "$with_gnu_ld" = yes; then
9762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9763$as_echo_n "checking for GNU ld... " >&6; }
9764else
9765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9766$as_echo_n "checking for non-GNU ld... " >&6; }
9767fi
9768if test "${lt_cv_path_LD+set}" = set; then :
9769  $as_echo_n "(cached) " >&6
9770else
9771  if test -z "$LD"; then
9772  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9773  for ac_dir in $PATH; do
9774    IFS="$lt_save_ifs"
9775    test -z "$ac_dir" && ac_dir=.
9776    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9777      lt_cv_path_LD="$ac_dir/$ac_prog"
9778      # Check to see if the program is GNU ld.  I'd rather use --version,
9779      # but apparently some variants of GNU ld only accept -v.
9780      # Break only if it was the GNU/non-GNU ld that we prefer.
9781      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9782      *GNU* | *'with BFD'*)
9783	test "$with_gnu_ld" != no && break
9784	;;
9785      *)
9786	test "$with_gnu_ld" != yes && break
9787	;;
9788      esac
9789    fi
9790  done
9791  IFS="$lt_save_ifs"
9792else
9793  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9794fi
9795fi
9796
9797LD="$lt_cv_path_LD"
9798if test -n "$LD"; then
9799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9800$as_echo "$LD" >&6; }
9801else
9802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803$as_echo "no" >&6; }
9804fi
9805test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9807$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9808if test "${lt_cv_prog_gnu_ld+set}" = set; then :
9809  $as_echo_n "(cached) " >&6
9810else
9811  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9812case `$LD -v 2>&1 </dev/null` in
9813*GNU* | *'with BFD'*)
9814  lt_cv_prog_gnu_ld=yes
9815  ;;
9816*)
9817  lt_cv_prog_gnu_ld=no
9818  ;;
9819esac
9820fi
9821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9822$as_echo "$lt_cv_prog_gnu_ld" >&6; }
9823with_gnu_ld=$lt_cv_prog_gnu_ld
9824
9825
9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9827$as_echo_n "checking for $LD option to reload object files... " >&6; }
9828if test "${lt_cv_ld_reload_flag+set}" = set; then :
9829  $as_echo_n "(cached) " >&6
9830else
9831  lt_cv_ld_reload_flag='-r'
9832fi
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9834$as_echo "$lt_cv_ld_reload_flag" >&6; }
9835reload_flag=$lt_cv_ld_reload_flag
9836case $reload_flag in
9837"" | " "*) ;;
9838*) reload_flag=" $reload_flag" ;;
9839esac
9840reload_cmds='$LD$reload_flag -o $output$reload_objs'
9841case $host_os in
9842  darwin*)
9843    if test "$GCC" = yes; then
9844      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9845    else
9846      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9847    fi
9848    ;;
9849esac
9850
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
9852$as_echo_n "checking for BSD-compatible nm... " >&6; }
9853if test "${lt_cv_path_NM+set}" = set; then :
9854  $as_echo_n "(cached) " >&6
9855else
9856  if test -n "$NM"; then
9857  # Let the user override the test.
9858  lt_cv_path_NM="$NM"
9859else
9860  lt_nm_to_check="${ac_tool_prefix}nm"
9861  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9862    lt_nm_to_check="$lt_nm_to_check nm"
9863  fi
9864  for lt_tmp_nm in $lt_nm_to_check; do
9865    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9866    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9867      IFS="$lt_save_ifs"
9868      test -z "$ac_dir" && ac_dir=.
9869      tmp_nm="$ac_dir/$lt_tmp_nm"
9870      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9871	# Check to see if the nm accepts a BSD-compat flag.
9872	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
9873	#   nm: unknown option "B" ignored
9874	# Tru64's nm complains that /dev/null is an invalid object file
9875	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9876	*/dev/null* | *'Invalid file or object type'*)
9877	  lt_cv_path_NM="$tmp_nm -B"
9878	  break
9879	  ;;
9880	*)
9881	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9882	  */dev/null*)
9883	    lt_cv_path_NM="$tmp_nm -p"
9884	    break
9885	    ;;
9886	  *)
9887	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9888	    continue # so that we can try to find one that supports BSD flags
9889	    ;;
9890	  esac
9891	  ;;
9892	esac
9893      fi
9894    done
9895    IFS="$lt_save_ifs"
9896  done
9897  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9898fi
9899fi
9900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9901$as_echo "$lt_cv_path_NM" >&6; }
9902NM="$lt_cv_path_NM"
9903
9904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9905$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9906if test "${lt_cv_deplibs_check_method+set}" = set; then :
9907  $as_echo_n "(cached) " >&6
9908else
9909  lt_cv_file_magic_cmd='$MAGIC_CMD'
9910lt_cv_file_magic_test_file=
9911lt_cv_deplibs_check_method='unknown'
9912# Need to set the preceding variable on all platforms that support
9913# interlibrary dependencies.
9914# 'none' -- dependencies not supported.
9915# `unknown' -- same as none, but documents that we really don't know.
9916# 'pass_all' -- all dependencies passed with no checks.
9917# 'test_compile' -- check by making test program.
9918# 'file_magic [[regex]]' -- check by looking for files in library path
9919# which responds to the $file_magic_cmd with a given extended regex.
9920# If you have `file' or equivalent on your system and you're not sure
9921# whether `pass_all' will *always* work, you probably want this one.
9922
9923case $host_os in
9924aix[4-9]*)
9925  lt_cv_deplibs_check_method=pass_all
9926  ;;
9927
9928beos*)
9929  lt_cv_deplibs_check_method=pass_all
9930  ;;
9931
9932bsdi[45]*)
9933  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9934  lt_cv_file_magic_cmd='/usr/bin/file -L'
9935  lt_cv_file_magic_test_file=/shlib/libc.so
9936  ;;
9937
9938cygwin*)
9939  # func_win32_libid is a shell function defined in ltmain.sh
9940  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9941  lt_cv_file_magic_cmd='func_win32_libid'
9942  ;;
9943
9944mingw* | pw32*)
9945  # Base MSYS/MinGW do not provide the 'file' command needed by
9946  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9947  # unless we find 'file', for example because we are cross-compiling.
9948  if ( file / ) >/dev/null 2>&1; then
9949    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9950    lt_cv_file_magic_cmd='func_win32_libid'
9951  else
9952    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9953    lt_cv_file_magic_cmd='$OBJDUMP -f'
9954  fi
9955  ;;
9956
9957darwin* | rhapsody*)
9958  lt_cv_deplibs_check_method=pass_all
9959  ;;
9960
9961freebsd* | dragonfly*)
9962  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9963    case $host_cpu in
9964    i*86 )
9965      # Not sure whether the presence of OpenBSD here was a mistake.
9966      # Let's accept both of them until this is cleared up.
9967      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9968      lt_cv_file_magic_cmd=/usr/bin/file
9969      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9970      ;;
9971    esac
9972  else
9973    lt_cv_deplibs_check_method=pass_all
9974  fi
9975  ;;
9976
9977gnu*)
9978  lt_cv_deplibs_check_method=pass_all
9979  ;;
9980
9981hpux10.20* | hpux11*)
9982  lt_cv_file_magic_cmd=/usr/bin/file
9983  case $host_cpu in
9984  ia64*)
9985    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9986    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9987    ;;
9988  hppa*64*)
9989    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]'
9990    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9991    ;;
9992  *)
9993    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9994    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9995    ;;
9996  esac
9997  ;;
9998
9999interix[3-9]*)
10000  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10001  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10002  ;;
10003
10004irix5* | irix6* | nonstopux*)
10005  case $LD in
10006  *-32|*"-32 ") libmagic=32-bit;;
10007  *-n32|*"-n32 ") libmagic=N32;;
10008  *-64|*"-64 ") libmagic=64-bit;;
10009  *) libmagic=never-match;;
10010  esac
10011  lt_cv_deplibs_check_method=pass_all
10012  ;;
10013
10014# This must be Linux ELF.
10015linux* | k*bsd*-gnu)
10016  lt_cv_deplibs_check_method=pass_all
10017  ;;
10018
10019netbsd*)
10020  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10021    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10022  else
10023    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10024  fi
10025  ;;
10026
10027newos6*)
10028  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10029  lt_cv_file_magic_cmd=/usr/bin/file
10030  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10031  ;;
10032
10033nto-qnx*)
10034  lt_cv_deplibs_check_method=unknown
10035  ;;
10036
10037openbsd*)
10038  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10039    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10040  else
10041    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10042  fi
10043  ;;
10044
10045osf3* | osf4* | osf5*)
10046  lt_cv_deplibs_check_method=pass_all
10047  ;;
10048
10049rdos*)
10050  lt_cv_deplibs_check_method=pass_all
10051  ;;
10052
10053solaris*)
10054  lt_cv_deplibs_check_method=pass_all
10055  ;;
10056
10057sysv4 | sysv4.3*)
10058  case $host_vendor in
10059  motorola)
10060    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]'
10061    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10062    ;;
10063  ncr)
10064    lt_cv_deplibs_check_method=pass_all
10065    ;;
10066  sequent)
10067    lt_cv_file_magic_cmd='/bin/file'
10068    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10069    ;;
10070  sni)
10071    lt_cv_file_magic_cmd='/bin/file'
10072    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10073    lt_cv_file_magic_test_file=/lib/libc.so
10074    ;;
10075  siemens)
10076    lt_cv_deplibs_check_method=pass_all
10077    ;;
10078  pc)
10079    lt_cv_deplibs_check_method=pass_all
10080    ;;
10081  esac
10082  ;;
10083
10084sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10085  lt_cv_deplibs_check_method=pass_all
10086  ;;
10087esac
10088
10089fi
10090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10091$as_echo "$lt_cv_deplibs_check_method" >&6; }
10092file_magic_cmd=$lt_cv_file_magic_cmd
10093deplibs_check_method=$lt_cv_deplibs_check_method
10094test -z "$deplibs_check_method" && deplibs_check_method=unknown
10095
10096
10097
10098
10099# If no C compiler was specified, use CC.
10100LTCC=${LTCC-"$CC"}
10101
10102# If no C compiler flags were specified, use CFLAGS.
10103LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10104
10105# Allow CC to be a program name with arguments.
10106compiler=$CC
10107
10108# Check whether --enable-libtool-lock was given.
10109if test "${enable_libtool_lock+set}" = set; then :
10110  enableval=$enable_libtool_lock;
10111fi
10112
10113test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10114
10115# Some flags need to be propagated to the compiler or linker for good
10116# libtool support.
10117case $host in
10118ia64-*-hpux*)
10119  # Find out which ABI we are using.
10120  echo 'int i;' > conftest.$ac_ext
10121  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10122  (eval $ac_compile) 2>&5
10123  ac_status=$?
10124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10125  test $ac_status = 0; }; then
10126    case `/usr/bin/file conftest.$ac_objext` in
10127    *ELF-32*)
10128      HPUX_IA64_MODE="32"
10129      ;;
10130    *ELF-64*)
10131      HPUX_IA64_MODE="64"
10132      ;;
10133    esac
10134  fi
10135  rm -rf conftest*
10136  ;;
10137*-*-irix6*)
10138  # Find out which ABI we are using.
10139  echo '#line 10139 "configure"' > conftest.$ac_ext
10140  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10141  (eval $ac_compile) 2>&5
10142  ac_status=$?
10143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10144  test $ac_status = 0; }; then
10145   if test "$lt_cv_prog_gnu_ld" = yes; then
10146    case `/usr/bin/file conftest.$ac_objext` in
10147    *32-bit*)
10148      LD="${LD-ld} -melf32bsmip"
10149      ;;
10150    *N32*)
10151      LD="${LD-ld} -melf32bmipn32"
10152      ;;
10153    *64-bit*)
10154      LD="${LD-ld} -melf64bmip"
10155      ;;
10156    esac
10157   else
10158    case `/usr/bin/file conftest.$ac_objext` in
10159    *32-bit*)
10160      LD="${LD-ld} -32"
10161      ;;
10162    *N32*)
10163      LD="${LD-ld} -n32"
10164      ;;
10165    *64-bit*)
10166      LD="${LD-ld} -64"
10167      ;;
10168    esac
10169   fi
10170  fi
10171  rm -rf conftest*
10172  ;;
10173
10174x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10175s390*-*linux*|sparc*-*linux*)
10176  # Find out which ABI we are using.
10177  echo 'int i;' > conftest.$ac_ext
10178  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10179  (eval $ac_compile) 2>&5
10180  ac_status=$?
10181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10182  test $ac_status = 0; }; then
10183    case `/usr/bin/file conftest.o` in
10184    *32-bit*)
10185      case $host in
10186        x86_64-*kfreebsd*-gnu)
10187          LD="${LD-ld} -m elf_i386_fbsd"
10188          ;;
10189        x86_64-*linux*)
10190          LD="${LD-ld} -m elf_i386"
10191          ;;
10192        ppc64-*linux*|powerpc64-*linux*)
10193          LD="${LD-ld} -m elf32ppclinux"
10194          ;;
10195        s390x-*linux*)
10196          LD="${LD-ld} -m elf_s390"
10197          ;;
10198        sparc64-*linux*)
10199          LD="${LD-ld} -m elf32_sparc"
10200          ;;
10201      esac
10202      ;;
10203    *64-bit*)
10204      case $host in
10205        x86_64-*kfreebsd*-gnu)
10206          LD="${LD-ld} -m elf_x86_64_fbsd"
10207          ;;
10208        x86_64-*linux*)
10209          LD="${LD-ld} -m elf_x86_64"
10210          ;;
10211        ppc*-*linux*|powerpc*-*linux*)
10212          LD="${LD-ld} -m elf64ppc"
10213          ;;
10214        s390*-*linux*)
10215          LD="${LD-ld} -m elf64_s390"
10216          ;;
10217        sparc*-*linux*)
10218          LD="${LD-ld} -m elf64_sparc"
10219          ;;
10220      esac
10221      ;;
10222    esac
10223  fi
10224  rm -rf conftest*
10225  ;;
10226
10227*-*-sco3.2v5*)
10228  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10229  SAVE_CFLAGS="$CFLAGS"
10230  CFLAGS="$CFLAGS -belf"
10231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10232$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10233if test "${lt_cv_cc_needs_belf+set}" = set; then :
10234  $as_echo_n "(cached) " >&6
10235else
10236  ac_ext=c
10237ac_cpp='$CPP $CPPFLAGS'
10238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10240ac_compiler_gnu=$ac_cv_c_compiler_gnu
10241
10242     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243/* end confdefs.h.  */
10244
10245int
10246main ()
10247{
10248
10249  ;
10250  return 0;
10251}
10252_ACEOF
10253if ac_fn_c_try_link "$LINENO"; then :
10254  lt_cv_cc_needs_belf=yes
10255else
10256  lt_cv_cc_needs_belf=no
10257fi
10258rm -f core conftest.err conftest.$ac_objext \
10259    conftest$ac_exeext conftest.$ac_ext
10260     ac_ext=c
10261ac_cpp='$CPP $CPPFLAGS'
10262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10264ac_compiler_gnu=$ac_cv_c_compiler_gnu
10265
10266fi
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10268$as_echo "$lt_cv_cc_needs_belf" >&6; }
10269  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10270    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10271    CFLAGS="$SAVE_CFLAGS"
10272  fi
10273  ;;
10274sparc*-*solaris*)
10275  # Find out which ABI we are using.
10276  echo 'int i;' > conftest.$ac_ext
10277  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10278  (eval $ac_compile) 2>&5
10279  ac_status=$?
10280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10281  test $ac_status = 0; }; then
10282    case `/usr/bin/file conftest.o` in
10283    *64-bit*)
10284      case $lt_cv_prog_gnu_ld in
10285      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10286      *)
10287        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10288	  LD="${LD-ld} -64"
10289	fi
10290	;;
10291      esac
10292      ;;
10293    esac
10294  fi
10295  rm -rf conftest*
10296  ;;
10297
10298*-*-cygwin* | *-*-mingw* | *-*-pw32*)
10299  if test -n "$ac_tool_prefix"; then
10300  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10301set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10303$as_echo_n "checking for $ac_word... " >&6; }
10304if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
10305  $as_echo_n "(cached) " >&6
10306else
10307  if test -n "$DLLTOOL"; then
10308  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10309else
10310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311for as_dir in $PATH
10312do
10313  IFS=$as_save_IFS
10314  test -z "$as_dir" && as_dir=.
10315    for ac_exec_ext in '' $ac_executable_extensions; do
10316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10317    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10319    break 2
10320  fi
10321done
10322  done
10323IFS=$as_save_IFS
10324
10325fi
10326fi
10327DLLTOOL=$ac_cv_prog_DLLTOOL
10328if test -n "$DLLTOOL"; then
10329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10330$as_echo "$DLLTOOL" >&6; }
10331else
10332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333$as_echo "no" >&6; }
10334fi
10335
10336
10337fi
10338if test -z "$ac_cv_prog_DLLTOOL"; then
10339  ac_ct_DLLTOOL=$DLLTOOL
10340  # Extract the first word of "dlltool", so it can be a program name with args.
10341set dummy dlltool; ac_word=$2
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343$as_echo_n "checking for $ac_word... " >&6; }
10344if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
10345  $as_echo_n "(cached) " >&6
10346else
10347  if test -n "$ac_ct_DLLTOOL"; then
10348  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10349else
10350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351for as_dir in $PATH
10352do
10353  IFS=$as_save_IFS
10354  test -z "$as_dir" && as_dir=.
10355    for ac_exec_ext in '' $ac_executable_extensions; do
10356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10357    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10359    break 2
10360  fi
10361done
10362  done
10363IFS=$as_save_IFS
10364
10365fi
10366fi
10367ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10368if test -n "$ac_ct_DLLTOOL"; then
10369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10370$as_echo "$ac_ct_DLLTOOL" >&6; }
10371else
10372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373$as_echo "no" >&6; }
10374fi
10375
10376  if test "x$ac_ct_DLLTOOL" = x; then
10377    DLLTOOL="false"
10378  else
10379    case $cross_compiling:$ac_tool_warned in
10380yes:)
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10383ac_tool_warned=yes ;;
10384esac
10385    DLLTOOL=$ac_ct_DLLTOOL
10386  fi
10387else
10388  DLLTOOL="$ac_cv_prog_DLLTOOL"
10389fi
10390
10391  if test -n "$ac_tool_prefix"; then
10392  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10393set dummy ${ac_tool_prefix}as; ac_word=$2
10394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395$as_echo_n "checking for $ac_word... " >&6; }
10396if test "${ac_cv_prog_AS+set}" = set; then :
10397  $as_echo_n "(cached) " >&6
10398else
10399  if test -n "$AS"; then
10400  ac_cv_prog_AS="$AS" # Let the user override the test.
10401else
10402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403for as_dir in $PATH
10404do
10405  IFS=$as_save_IFS
10406  test -z "$as_dir" && as_dir=.
10407    for ac_exec_ext in '' $ac_executable_extensions; do
10408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10409    ac_cv_prog_AS="${ac_tool_prefix}as"
10410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10411    break 2
10412  fi
10413done
10414  done
10415IFS=$as_save_IFS
10416
10417fi
10418fi
10419AS=$ac_cv_prog_AS
10420if test -n "$AS"; then
10421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10422$as_echo "$AS" >&6; }
10423else
10424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425$as_echo "no" >&6; }
10426fi
10427
10428
10429fi
10430if test -z "$ac_cv_prog_AS"; then
10431  ac_ct_AS=$AS
10432  # Extract the first word of "as", so it can be a program name with args.
10433set dummy as; ac_word=$2
10434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10435$as_echo_n "checking for $ac_word... " >&6; }
10436if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
10437  $as_echo_n "(cached) " >&6
10438else
10439  if test -n "$ac_ct_AS"; then
10440  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10441else
10442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443for as_dir in $PATH
10444do
10445  IFS=$as_save_IFS
10446  test -z "$as_dir" && as_dir=.
10447    for ac_exec_ext in '' $ac_executable_extensions; do
10448  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10449    ac_cv_prog_ac_ct_AS="as"
10450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10451    break 2
10452  fi
10453done
10454  done
10455IFS=$as_save_IFS
10456
10457fi
10458fi
10459ac_ct_AS=$ac_cv_prog_ac_ct_AS
10460if test -n "$ac_ct_AS"; then
10461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10462$as_echo "$ac_ct_AS" >&6; }
10463else
10464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465$as_echo "no" >&6; }
10466fi
10467
10468  if test "x$ac_ct_AS" = x; then
10469    AS="false"
10470  else
10471    case $cross_compiling:$ac_tool_warned in
10472yes:)
10473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10475ac_tool_warned=yes ;;
10476esac
10477    AS=$ac_ct_AS
10478  fi
10479else
10480  AS="$ac_cv_prog_AS"
10481fi
10482
10483  if test -n "$ac_tool_prefix"; then
10484  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10485set dummy ${ac_tool_prefix}objdump; ac_word=$2
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487$as_echo_n "checking for $ac_word... " >&6; }
10488if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10489  $as_echo_n "(cached) " >&6
10490else
10491  if test -n "$OBJDUMP"; then
10492  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10493else
10494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495for as_dir in $PATH
10496do
10497  IFS=$as_save_IFS
10498  test -z "$as_dir" && as_dir=.
10499    for ac_exec_ext in '' $ac_executable_extensions; do
10500  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10501    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10503    break 2
10504  fi
10505done
10506  done
10507IFS=$as_save_IFS
10508
10509fi
10510fi
10511OBJDUMP=$ac_cv_prog_OBJDUMP
10512if test -n "$OBJDUMP"; then
10513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10514$as_echo "$OBJDUMP" >&6; }
10515else
10516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517$as_echo "no" >&6; }
10518fi
10519
10520
10521fi
10522if test -z "$ac_cv_prog_OBJDUMP"; then
10523  ac_ct_OBJDUMP=$OBJDUMP
10524  # Extract the first word of "objdump", so it can be a program name with args.
10525set dummy objdump; ac_word=$2
10526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10527$as_echo_n "checking for $ac_word... " >&6; }
10528if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
10529  $as_echo_n "(cached) " >&6
10530else
10531  if test -n "$ac_ct_OBJDUMP"; then
10532  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10533else
10534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535for as_dir in $PATH
10536do
10537  IFS=$as_save_IFS
10538  test -z "$as_dir" && as_dir=.
10539    for ac_exec_ext in '' $ac_executable_extensions; do
10540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10541    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543    break 2
10544  fi
10545done
10546  done
10547IFS=$as_save_IFS
10548
10549fi
10550fi
10551ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10552if test -n "$ac_ct_OBJDUMP"; then
10553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10554$as_echo "$ac_ct_OBJDUMP" >&6; }
10555else
10556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557$as_echo "no" >&6; }
10558fi
10559
10560  if test "x$ac_ct_OBJDUMP" = x; then
10561    OBJDUMP="false"
10562  else
10563    case $cross_compiling:$ac_tool_warned in
10564yes:)
10565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10567ac_tool_warned=yes ;;
10568esac
10569    OBJDUMP=$ac_ct_OBJDUMP
10570  fi
10571else
10572  OBJDUMP="$ac_cv_prog_OBJDUMP"
10573fi
10574
10575  ;;
10576
10577esac
10578
10579need_locks="$enable_libtool_lock"
10580
10581
10582for ac_header in dlfcn.h
10583do :
10584  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10585if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10586  cat >>confdefs.h <<_ACEOF
10587#define HAVE_DLFCN_H 1
10588_ACEOF
10589
10590fi
10591
10592done
10593
10594ac_ext=cpp
10595ac_cpp='$CXXCPP $CPPFLAGS'
10596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10599if test -z "$CXX"; then
10600  if test -n "$CCC"; then
10601    CXX=$CCC
10602  else
10603    if test -n "$ac_tool_prefix"; then
10604  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10605  do
10606    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10609$as_echo_n "checking for $ac_word... " >&6; }
10610if test "${ac_cv_prog_CXX+set}" = set; then :
10611  $as_echo_n "(cached) " >&6
10612else
10613  if test -n "$CXX"; then
10614  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10615else
10616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10617for as_dir in $PATH
10618do
10619  IFS=$as_save_IFS
10620  test -z "$as_dir" && as_dir=.
10621    for ac_exec_ext in '' $ac_executable_extensions; do
10622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10623    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10625    break 2
10626  fi
10627done
10628  done
10629IFS=$as_save_IFS
10630
10631fi
10632fi
10633CXX=$ac_cv_prog_CXX
10634if test -n "$CXX"; then
10635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10636$as_echo "$CXX" >&6; }
10637else
10638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639$as_echo "no" >&6; }
10640fi
10641
10642
10643    test -n "$CXX" && break
10644  done
10645fi
10646if test -z "$CXX"; then
10647  ac_ct_CXX=$CXX
10648  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10649do
10650  # Extract the first word of "$ac_prog", so it can be a program name with args.
10651set dummy $ac_prog; ac_word=$2
10652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10653$as_echo_n "checking for $ac_word... " >&6; }
10654if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10655  $as_echo_n "(cached) " >&6
10656else
10657  if test -n "$ac_ct_CXX"; then
10658  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10659else
10660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661for as_dir in $PATH
10662do
10663  IFS=$as_save_IFS
10664  test -z "$as_dir" && as_dir=.
10665    for ac_exec_ext in '' $ac_executable_extensions; do
10666  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10667    ac_cv_prog_ac_ct_CXX="$ac_prog"
10668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10669    break 2
10670  fi
10671done
10672  done
10673IFS=$as_save_IFS
10674
10675fi
10676fi
10677ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10678if test -n "$ac_ct_CXX"; then
10679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10680$as_echo "$ac_ct_CXX" >&6; }
10681else
10682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683$as_echo "no" >&6; }
10684fi
10685
10686
10687  test -n "$ac_ct_CXX" && break
10688done
10689
10690  if test "x$ac_ct_CXX" = x; then
10691    CXX="g++"
10692  else
10693    case $cross_compiling:$ac_tool_warned in
10694yes:)
10695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10697ac_tool_warned=yes ;;
10698esac
10699    CXX=$ac_ct_CXX
10700  fi
10701fi
10702
10703  fi
10704fi
10705# Provide some information about the compiler.
10706$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10707set X $ac_compile
10708ac_compiler=$2
10709for ac_option in --version -v -V -qversion; do
10710  { { ac_try="$ac_compiler $ac_option >&5"
10711case "(($ac_try" in
10712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713  *) ac_try_echo=$ac_try;;
10714esac
10715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10716$as_echo "$ac_try_echo"; } >&5
10717  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10718  ac_status=$?
10719  if test -s conftest.err; then
10720    sed '10a\
10721... rest of stderr output deleted ...
10722         10q' conftest.err >conftest.er1
10723    cat conftest.er1 >&5
10724    rm -f conftest.er1 conftest.err
10725  fi
10726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10727  test $ac_status = 0; }
10728done
10729
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10731$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10732if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10733  $as_echo_n "(cached) " >&6
10734else
10735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736/* end confdefs.h.  */
10737
10738int
10739main ()
10740{
10741#ifndef __GNUC__
10742       choke me
10743#endif
10744
10745  ;
10746  return 0;
10747}
10748_ACEOF
10749if ac_fn_cxx_try_compile "$LINENO"; then :
10750  ac_compiler_gnu=yes
10751else
10752  ac_compiler_gnu=no
10753fi
10754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10756
10757fi
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10759$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10760if test $ac_compiler_gnu = yes; then
10761  GXX=yes
10762else
10763  GXX=
10764fi
10765ac_test_CXXFLAGS=${CXXFLAGS+set}
10766ac_save_CXXFLAGS=$CXXFLAGS
10767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10768$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10769if test "${ac_cv_prog_cxx_g+set}" = set; then :
10770  $as_echo_n "(cached) " >&6
10771else
10772  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10773   ac_cxx_werror_flag=yes
10774   ac_cv_prog_cxx_g=no
10775   CXXFLAGS="-g"
10776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h.  */
10778
10779int
10780main ()
10781{
10782
10783  ;
10784  return 0;
10785}
10786_ACEOF
10787if ac_fn_cxx_try_compile "$LINENO"; then :
10788  ac_cv_prog_cxx_g=yes
10789else
10790  CXXFLAGS=""
10791      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792/* end confdefs.h.  */
10793
10794int
10795main ()
10796{
10797
10798  ;
10799  return 0;
10800}
10801_ACEOF
10802if ac_fn_cxx_try_compile "$LINENO"; then :
10803
10804else
10805  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10806	 CXXFLAGS="-g"
10807	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808/* end confdefs.h.  */
10809
10810int
10811main ()
10812{
10813
10814  ;
10815  return 0;
10816}
10817_ACEOF
10818if ac_fn_cxx_try_compile "$LINENO"; then :
10819  ac_cv_prog_cxx_g=yes
10820fi
10821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10822fi
10823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824fi
10825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10826   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10827fi
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10829$as_echo "$ac_cv_prog_cxx_g" >&6; }
10830if test "$ac_test_CXXFLAGS" = set; then
10831  CXXFLAGS=$ac_save_CXXFLAGS
10832elif test $ac_cv_prog_cxx_g = yes; then
10833  if test "$GXX" = yes; then
10834    CXXFLAGS="-g -O2"
10835  else
10836    CXXFLAGS="-g"
10837  fi
10838else
10839  if test "$GXX" = yes; then
10840    CXXFLAGS="-O2"
10841  else
10842    CXXFLAGS=
10843  fi
10844fi
10845ac_ext=cpp
10846ac_cpp='$CXXCPP $CPPFLAGS'
10847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10850
10851
10852
10853if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10854    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10855    (test "X$CXX" != "Xg++"))) ; then
10856  ac_ext=cpp
10857ac_cpp='$CXXCPP $CPPFLAGS'
10858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10862$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10863if test -z "$CXXCPP"; then
10864  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10865  $as_echo_n "(cached) " >&6
10866else
10867      # Double quotes because CXXCPP needs to be expanded
10868    for CXXCPP in "$CXX -E" "/lib/cpp"
10869    do
10870      ac_preproc_ok=false
10871for ac_cxx_preproc_warn_flag in '' yes
10872do
10873  # Use a header file that comes with gcc, so configuring glibc
10874  # with a fresh cross-compiler works.
10875  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10876  # <limits.h> exists even on freestanding compilers.
10877  # On the NeXT, cc -E runs the code through the compiler's parser,
10878  # not just through cpp. "Syntax error" is here to catch this case.
10879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880/* end confdefs.h.  */
10881#ifdef __STDC__
10882# include <limits.h>
10883#else
10884# include <assert.h>
10885#endif
10886		     Syntax error
10887_ACEOF
10888if ac_fn_cxx_try_cpp "$LINENO"; then :
10889
10890else
10891  # Broken: fails on valid input.
10892continue
10893fi
10894rm -f conftest.err conftest.$ac_ext
10895
10896  # OK, works on sane cases.  Now check whether nonexistent headers
10897  # can be detected and how.
10898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899/* end confdefs.h.  */
10900#include <ac_nonexistent.h>
10901_ACEOF
10902if ac_fn_cxx_try_cpp "$LINENO"; then :
10903  # Broken: success on invalid input.
10904continue
10905else
10906  # Passes both tests.
10907ac_preproc_ok=:
10908break
10909fi
10910rm -f conftest.err conftest.$ac_ext
10911
10912done
10913# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10914rm -f conftest.err conftest.$ac_ext
10915if $ac_preproc_ok; then :
10916  break
10917fi
10918
10919    done
10920    ac_cv_prog_CXXCPP=$CXXCPP
10921
10922fi
10923  CXXCPP=$ac_cv_prog_CXXCPP
10924else
10925  ac_cv_prog_CXXCPP=$CXXCPP
10926fi
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10928$as_echo "$CXXCPP" >&6; }
10929ac_preproc_ok=false
10930for ac_cxx_preproc_warn_flag in '' yes
10931do
10932  # Use a header file that comes with gcc, so configuring glibc
10933  # with a fresh cross-compiler works.
10934  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10935  # <limits.h> exists even on freestanding compilers.
10936  # On the NeXT, cc -E runs the code through the compiler's parser,
10937  # not just through cpp. "Syntax error" is here to catch this case.
10938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h.  */
10940#ifdef __STDC__
10941# include <limits.h>
10942#else
10943# include <assert.h>
10944#endif
10945		     Syntax error
10946_ACEOF
10947if ac_fn_cxx_try_cpp "$LINENO"; then :
10948
10949else
10950  # Broken: fails on valid input.
10951continue
10952fi
10953rm -f conftest.err conftest.$ac_ext
10954
10955  # OK, works on sane cases.  Now check whether nonexistent headers
10956  # can be detected and how.
10957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958/* end confdefs.h.  */
10959#include <ac_nonexistent.h>
10960_ACEOF
10961if ac_fn_cxx_try_cpp "$LINENO"; then :
10962  # Broken: success on invalid input.
10963continue
10964else
10965  # Passes both tests.
10966ac_preproc_ok=:
10967break
10968fi
10969rm -f conftest.err conftest.$ac_ext
10970
10971done
10972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10973rm -f conftest.err conftest.$ac_ext
10974if $ac_preproc_ok; then :
10975
10976else
10977  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10979as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
10980See \`config.log' for more details." "$LINENO" 5; }
10981fi
10982
10983ac_ext=cpp
10984ac_cpp='$CXXCPP $CPPFLAGS'
10985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10988
10989fi
10990
10991
10992ac_ext=f
10993ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10994ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10995ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10996if test -n "$ac_tool_prefix"; then
10997  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
10998  do
10999    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11000set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11002$as_echo_n "checking for $ac_word... " >&6; }
11003if test "${ac_cv_prog_F77+set}" = set; then :
11004  $as_echo_n "(cached) " >&6
11005else
11006  if test -n "$F77"; then
11007  ac_cv_prog_F77="$F77" # Let the user override the test.
11008else
11009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11010for as_dir in $PATH
11011do
11012  IFS=$as_save_IFS
11013  test -z "$as_dir" && as_dir=.
11014    for ac_exec_ext in '' $ac_executable_extensions; do
11015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11016    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11018    break 2
11019  fi
11020done
11021  done
11022IFS=$as_save_IFS
11023
11024fi
11025fi
11026F77=$ac_cv_prog_F77
11027if test -n "$F77"; then
11028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
11029$as_echo "$F77" >&6; }
11030else
11031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032$as_echo "no" >&6; }
11033fi
11034
11035
11036    test -n "$F77" && break
11037  done
11038fi
11039if test -z "$F77"; then
11040  ac_ct_F77=$F77
11041  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
11042do
11043  # Extract the first word of "$ac_prog", so it can be a program name with args.
11044set dummy $ac_prog; ac_word=$2
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046$as_echo_n "checking for $ac_word... " >&6; }
11047if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
11048  $as_echo_n "(cached) " >&6
11049else
11050  if test -n "$ac_ct_F77"; then
11051  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11052else
11053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054for as_dir in $PATH
11055do
11056  IFS=$as_save_IFS
11057  test -z "$as_dir" && as_dir=.
11058    for ac_exec_ext in '' $ac_executable_extensions; do
11059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11060    ac_cv_prog_ac_ct_F77="$ac_prog"
11061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11062    break 2
11063  fi
11064done
11065  done
11066IFS=$as_save_IFS
11067
11068fi
11069fi
11070ac_ct_F77=$ac_cv_prog_ac_ct_F77
11071if test -n "$ac_ct_F77"; then
11072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
11073$as_echo "$ac_ct_F77" >&6; }
11074else
11075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076$as_echo "no" >&6; }
11077fi
11078
11079
11080  test -n "$ac_ct_F77" && break
11081done
11082
11083  if test "x$ac_ct_F77" = x; then
11084    F77=""
11085  else
11086    case $cross_compiling:$ac_tool_warned in
11087yes:)
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11090ac_tool_warned=yes ;;
11091esac
11092    F77=$ac_ct_F77
11093  fi
11094fi
11095
11096
11097# Provide some information about the compiler.
11098$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
11099set X $ac_compile
11100ac_compiler=$2
11101for ac_option in --version -v -V -qversion; do
11102  { { ac_try="$ac_compiler $ac_option >&5"
11103case "(($ac_try" in
11104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105  *) ac_try_echo=$ac_try;;
11106esac
11107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11108$as_echo "$ac_try_echo"; } >&5
11109  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11110  ac_status=$?
11111  if test -s conftest.err; then
11112    sed '10a\
11113... rest of stderr output deleted ...
11114         10q' conftest.err >conftest.er1
11115    cat conftest.er1 >&5
11116    rm -f conftest.er1 conftest.err
11117  fi
11118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11119  test $ac_status = 0; }
11120done
11121rm -f a.out
11122
11123# If we don't use `.F' as extension, the preprocessor is not run on the
11124# input file.  (Note that this only needs to work for GNU compilers.)
11125ac_save_ext=$ac_ext
11126ac_ext=F
11127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
11128$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
11129if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
11130  $as_echo_n "(cached) " >&6
11131else
11132  cat > conftest.$ac_ext <<_ACEOF
11133      program main
11134#ifndef __GNUC__
11135       choke me
11136#endif
11137
11138      end
11139_ACEOF
11140if ac_fn_f77_try_compile "$LINENO"; then :
11141  ac_compiler_gnu=yes
11142else
11143  ac_compiler_gnu=no
11144fi
11145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11146ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11147
11148fi
11149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
11150$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
11151ac_ext=$ac_save_ext
11152ac_test_FFLAGS=${FFLAGS+set}
11153ac_save_FFLAGS=$FFLAGS
11154FFLAGS=
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
11156$as_echo_n "checking whether $F77 accepts -g... " >&6; }
11157if test "${ac_cv_prog_f77_g+set}" = set; then :
11158  $as_echo_n "(cached) " >&6
11159else
11160  FFLAGS=-g
11161cat > conftest.$ac_ext <<_ACEOF
11162      program main
11163
11164      end
11165_ACEOF
11166if ac_fn_f77_try_compile "$LINENO"; then :
11167  ac_cv_prog_f77_g=yes
11168else
11169  ac_cv_prog_f77_g=no
11170fi
11171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11172
11173fi
11174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
11175$as_echo "$ac_cv_prog_f77_g" >&6; }
11176if test "$ac_test_FFLAGS" = set; then
11177  FFLAGS=$ac_save_FFLAGS
11178elif test $ac_cv_prog_f77_g = yes; then
11179  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11180    FFLAGS="-g -O2"
11181  else
11182    FFLAGS="-g"
11183  fi
11184else
11185  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11186    FFLAGS="-O2"
11187  else
11188    FFLAGS=
11189  fi
11190fi
11191
11192if test $ac_compiler_gnu = yes; then
11193  G77=yes
11194else
11195  G77=
11196fi
11197ac_ext=c
11198ac_cpp='$CPP $CPPFLAGS'
11199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11201ac_compiler_gnu=$ac_cv_c_compiler_gnu
11202
11203
11204
11205# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11206# find the maximum length of command line arguments
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11208$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11209if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11210  $as_echo_n "(cached) " >&6
11211else
11212    i=0
11213  teststring="ABCD"
11214
11215  case $build_os in
11216  msdosdjgpp*)
11217    # On DJGPP, this test can blow up pretty badly due to problems in libc
11218    # (any single argument exceeding 2000 bytes causes a buffer overrun
11219    # during glob expansion).  Even if it were fixed, the result of this
11220    # check would be larger than it should be.
11221    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11222    ;;
11223
11224  gnu*)
11225    # Under GNU Hurd, this test is not required because there is
11226    # no limit to the length of command line arguments.
11227    # Libtool will interpret -1 as no limit whatsoever
11228    lt_cv_sys_max_cmd_len=-1;
11229    ;;
11230
11231  cygwin* | mingw*)
11232    # On Win9x/ME, this test blows up -- it succeeds, but takes
11233    # about 5 minutes as the teststring grows exponentially.
11234    # Worse, since 9x/ME are not pre-emptively multitasking,
11235    # you end up with a "frozen" computer, even though with patience
11236    # the test eventually succeeds (with a max line length of 256k).
11237    # Instead, let's just punt: use the minimum linelength reported by
11238    # all of the supported platforms: 8192 (on NT/2K/XP).
11239    lt_cv_sys_max_cmd_len=8192;
11240    ;;
11241
11242  amigaos*)
11243    # On AmigaOS with pdksh, this test takes hours, literally.
11244    # So we just punt and use a minimum line length of 8192.
11245    lt_cv_sys_max_cmd_len=8192;
11246    ;;
11247
11248  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11249    # This has been around since 386BSD, at least.  Likely further.
11250    if test -x /sbin/sysctl; then
11251      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11252    elif test -x /usr/sbin/sysctl; then
11253      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11254    else
11255      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11256    fi
11257    # And add a safety zone
11258    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11259    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11260    ;;
11261
11262  interix*)
11263    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11264    lt_cv_sys_max_cmd_len=196608
11265    ;;
11266
11267  osf*)
11268    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11269    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11270    # nice to cause kernel panics so lets avoid the loop below.
11271    # First set a reasonable default.
11272    lt_cv_sys_max_cmd_len=16384
11273    #
11274    if test -x /sbin/sysconfig; then
11275      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11276        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11277      esac
11278    fi
11279    ;;
11280  sco3.2v5*)
11281    lt_cv_sys_max_cmd_len=102400
11282    ;;
11283  sysv5* | sco5v6* | sysv4.2uw2*)
11284    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11285    if test -n "$kargmax"; then
11286      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
11287    else
11288      lt_cv_sys_max_cmd_len=32768
11289    fi
11290    ;;
11291  *)
11292    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11293    if test -n "$lt_cv_sys_max_cmd_len"; then
11294      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11295      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11296    else
11297      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11298      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11299	       = "XX$teststring") >/dev/null 2>&1 &&
11300	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
11301	      lt_cv_sys_max_cmd_len=$new_result &&
11302	      test $i != 17 # 1/2 MB should be enough
11303      do
11304        i=`expr $i + 1`
11305        teststring=$teststring$teststring
11306      done
11307      teststring=
11308      # Add a significant safety factor because C++ compilers can tack on massive
11309      # amounts of additional arguments before passing them to the linker.
11310      # It appears as though 1/2 is a usable value.
11311      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11312    fi
11313    ;;
11314  esac
11315
11316fi
11317
11318if test -n $lt_cv_sys_max_cmd_len ; then
11319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11320$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11321else
11322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11323$as_echo "none" >&6; }
11324fi
11325
11326
11327
11328
11329
11330# Check for command to grab the raw symbol name followed by C symbol from nm.
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11332$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11333if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
11334  $as_echo_n "(cached) " >&6
11335else
11336
11337# These are sane defaults that work on at least a few old systems.
11338# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11339
11340# Character class describing NM global symbol codes.
11341symcode='[BCDEGRST]'
11342
11343# Regexp to match symbols that can be accessed directly from C.
11344sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11345
11346# Transform an extracted symbol line into a proper C declaration
11347lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11348
11349# Transform an extracted symbol line into symbol name and symbol address
11350lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
11351
11352# Define system-specific variables.
11353case $host_os in
11354aix*)
11355  symcode='[BCDT]'
11356  ;;
11357cygwin* | mingw* | pw32*)
11358  symcode='[ABCDGISTW]'
11359  ;;
11360hpux*) # Its linker distinguishes data from code symbols
11361  if test "$host_cpu" = ia64; then
11362    symcode='[ABCDEGRST]'
11363  fi
11364  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11365  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
11366  ;;
11367linux* | k*bsd*-gnu)
11368  if test "$host_cpu" = ia64; then
11369    symcode='[ABCDGIRSTW]'
11370    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11371    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
11372  fi
11373  ;;
11374irix* | nonstopux*)
11375  symcode='[BCDEGRST]'
11376  ;;
11377osf*)
11378  symcode='[BCDEGQRST]'
11379  ;;
11380solaris*)
11381  symcode='[BDRT]'
11382  ;;
11383sco3.2v5*)
11384  symcode='[DT]'
11385  ;;
11386sysv4.2uw2*)
11387  symcode='[DT]'
11388  ;;
11389sysv5* | sco5v6* | unixware* | OpenUNIX*)
11390  symcode='[ABDT]'
11391  ;;
11392sysv4)
11393  symcode='[DFNSTU]'
11394  ;;
11395esac
11396
11397# Handle CRLF in mingw tool chain
11398opt_cr=
11399case $build_os in
11400mingw*)
11401  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11402  ;;
11403esac
11404
11405# If we're using GNU nm, then use its standard symbol codes.
11406case `$NM -V 2>&1` in
11407*GNU* | *'with BFD'*)
11408  symcode='[ABCDGIRSTW]' ;;
11409esac
11410
11411# Try without a prefix undercore, then with it.
11412for ac_symprfx in "" "_"; do
11413
11414  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11415  symxfrm="\\1 $ac_symprfx\\2 \\2"
11416
11417  # Write the raw and C identifiers.
11418  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11419
11420  # Check to see that the pipe works correctly.
11421  pipe_works=no
11422
11423  rm -f conftest*
11424  cat > conftest.$ac_ext <<EOF
11425#ifdef __cplusplus
11426extern "C" {
11427#endif
11428char nm_test_var;
11429void nm_test_func(){}
11430#ifdef __cplusplus
11431}
11432#endif
11433int main(){nm_test_var='a';nm_test_func();return(0);}
11434EOF
11435
11436  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11437  (eval $ac_compile) 2>&5
11438  ac_status=$?
11439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11440  test $ac_status = 0; }; then
11441    # Now try to grab the symbols.
11442    nlist=conftest.nm
11443    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
11444  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11445  ac_status=$?
11446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11447  test $ac_status = 0; } && test -s "$nlist"; then
11448      # Try sorting and uniquifying the output.
11449      if sort "$nlist" | uniq > "$nlist"T; then
11450	mv -f "$nlist"T "$nlist"
11451      else
11452	rm -f "$nlist"T
11453      fi
11454
11455      # Make sure that we snagged all the symbols we need.
11456      if grep ' nm_test_var$' "$nlist" >/dev/null; then
11457	if grep ' nm_test_func$' "$nlist" >/dev/null; then
11458	  cat <<EOF > conftest.$ac_ext
11459#ifdef __cplusplus
11460extern "C" {
11461#endif
11462
11463EOF
11464	  # Now generate the symbol file.
11465	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11466
11467	  cat <<EOF >> conftest.$ac_ext
11468#if defined (__STDC__) && __STDC__
11469# define lt_ptr_t void *
11470#else
11471# define lt_ptr_t char *
11472# define const
11473#endif
11474
11475/* The mapping between symbol names and symbols. */
11476const struct {
11477  const char *name;
11478  lt_ptr_t address;
11479}
11480lt_preloaded_symbols[] =
11481{
11482EOF
11483	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11484	  cat <<\EOF >> conftest.$ac_ext
11485  {0, (lt_ptr_t) 0}
11486};
11487
11488#ifdef __cplusplus
11489}
11490#endif
11491EOF
11492	  # Now try linking the two files.
11493	  mv conftest.$ac_objext conftstm.$ac_objext
11494	  lt_save_LIBS="$LIBS"
11495	  lt_save_CFLAGS="$CFLAGS"
11496	  LIBS="conftstm.$ac_objext"
11497	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11498	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11499  (eval $ac_link) 2>&5
11500  ac_status=$?
11501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11502  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11503	    pipe_works=yes
11504	  fi
11505	  LIBS="$lt_save_LIBS"
11506	  CFLAGS="$lt_save_CFLAGS"
11507	else
11508	  echo "cannot find nm_test_func in $nlist" >&5
11509	fi
11510      else
11511	echo "cannot find nm_test_var in $nlist" >&5
11512      fi
11513    else
11514      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11515    fi
11516  else
11517    echo "$progname: failed program was:" >&5
11518    cat conftest.$ac_ext >&5
11519  fi
11520  rm -rf conftest* conftst*
11521
11522  # Do not use the global_symbol_pipe unless it works.
11523  if test "$pipe_works" = yes; then
11524    break
11525  else
11526    lt_cv_sys_global_symbol_pipe=
11527  fi
11528done
11529
11530fi
11531
11532if test -z "$lt_cv_sys_global_symbol_pipe"; then
11533  lt_cv_sys_global_symbol_to_cdecl=
11534fi
11535if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11537$as_echo "failed" >&6; }
11538else
11539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11540$as_echo "ok" >&6; }
11541fi
11542
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11544$as_echo_n "checking for objdir... " >&6; }
11545if test "${lt_cv_objdir+set}" = set; then :
11546  $as_echo_n "(cached) " >&6
11547else
11548  rm -f .libs 2>/dev/null
11549mkdir .libs 2>/dev/null
11550if test -d .libs; then
11551  lt_cv_objdir=.libs
11552else
11553  # MS-DOS does not allow filenames that begin with a dot.
11554  lt_cv_objdir=_libs
11555fi
11556rmdir .libs 2>/dev/null
11557fi
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11559$as_echo "$lt_cv_objdir" >&6; }
11560objdir=$lt_cv_objdir
11561
11562
11563
11564
11565
11566case $host_os in
11567aix3*)
11568  # AIX sometimes has problems with the GCC collect2 program.  For some
11569  # reason, if we set the COLLECT_NAMES environment variable, the problems
11570  # vanish in a puff of smoke.
11571  if test "X${COLLECT_NAMES+set}" != Xset; then
11572    COLLECT_NAMES=
11573    export COLLECT_NAMES
11574  fi
11575  ;;
11576esac
11577
11578# Sed substitution that helps us do robust quoting.  It backslashifies
11579# metacharacters that are still active within double-quoted strings.
11580Xsed='sed -e 1s/^X//'
11581sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11582
11583# Same as above, but do not quote variable references.
11584double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11585
11586# Sed substitution to delay expansion of an escaped shell variable in a
11587# double_quote_subst'ed string.
11588delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11589
11590# Sed substitution to avoid accidental globbing in evaled expressions
11591no_glob_subst='s/\*/\\\*/g'
11592
11593# Constants:
11594rm="rm -f"
11595
11596# Global variables:
11597default_ofile=libtool
11598can_build_shared=yes
11599
11600# All known linkers require a `.a' archive for static linking (except MSVC,
11601# which needs '.lib').
11602libext=a
11603ltmain="$ac_aux_dir/ltmain.sh"
11604ofile="$default_ofile"
11605with_gnu_ld="$lt_cv_prog_gnu_ld"
11606
11607if test -n "$ac_tool_prefix"; then
11608  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11609set dummy ${ac_tool_prefix}ar; ac_word=$2
11610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11611$as_echo_n "checking for $ac_word... " >&6; }
11612if test "${ac_cv_prog_AR+set}" = set; then :
11613  $as_echo_n "(cached) " >&6
11614else
11615  if test -n "$AR"; then
11616  ac_cv_prog_AR="$AR" # Let the user override the test.
11617else
11618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619for as_dir in $PATH
11620do
11621  IFS=$as_save_IFS
11622  test -z "$as_dir" && as_dir=.
11623    for ac_exec_ext in '' $ac_executable_extensions; do
11624  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11625    ac_cv_prog_AR="${ac_tool_prefix}ar"
11626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11627    break 2
11628  fi
11629done
11630  done
11631IFS=$as_save_IFS
11632
11633fi
11634fi
11635AR=$ac_cv_prog_AR
11636if test -n "$AR"; then
11637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11638$as_echo "$AR" >&6; }
11639else
11640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641$as_echo "no" >&6; }
11642fi
11643
11644
11645fi
11646if test -z "$ac_cv_prog_AR"; then
11647  ac_ct_AR=$AR
11648  # Extract the first word of "ar", so it can be a program name with args.
11649set dummy ar; ac_word=$2
11650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11651$as_echo_n "checking for $ac_word... " >&6; }
11652if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
11653  $as_echo_n "(cached) " >&6
11654else
11655  if test -n "$ac_ct_AR"; then
11656  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11657else
11658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11659for as_dir in $PATH
11660do
11661  IFS=$as_save_IFS
11662  test -z "$as_dir" && as_dir=.
11663    for ac_exec_ext in '' $ac_executable_extensions; do
11664  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11665    ac_cv_prog_ac_ct_AR="ar"
11666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11667    break 2
11668  fi
11669done
11670  done
11671IFS=$as_save_IFS
11672
11673fi
11674fi
11675ac_ct_AR=$ac_cv_prog_ac_ct_AR
11676if test -n "$ac_ct_AR"; then
11677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11678$as_echo "$ac_ct_AR" >&6; }
11679else
11680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681$as_echo "no" >&6; }
11682fi
11683
11684  if test "x$ac_ct_AR" = x; then
11685    AR="false"
11686  else
11687    case $cross_compiling:$ac_tool_warned in
11688yes:)
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11691ac_tool_warned=yes ;;
11692esac
11693    AR=$ac_ct_AR
11694  fi
11695else
11696  AR="$ac_cv_prog_AR"
11697fi
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
11791if test -n "$ac_tool_prefix"; then
11792  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11793set dummy ${ac_tool_prefix}strip; ac_word=$2
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795$as_echo_n "checking for $ac_word... " >&6; }
11796if test "${ac_cv_prog_STRIP+set}" = set; then :
11797  $as_echo_n "(cached) " >&6
11798else
11799  if test -n "$STRIP"; then
11800  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11801else
11802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803for as_dir in $PATH
11804do
11805  IFS=$as_save_IFS
11806  test -z "$as_dir" && as_dir=.
11807    for ac_exec_ext in '' $ac_executable_extensions; do
11808  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11809    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11811    break 2
11812  fi
11813done
11814  done
11815IFS=$as_save_IFS
11816
11817fi
11818fi
11819STRIP=$ac_cv_prog_STRIP
11820if test -n "$STRIP"; then
11821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11822$as_echo "$STRIP" >&6; }
11823else
11824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825$as_echo "no" >&6; }
11826fi
11827
11828
11829fi
11830if test -z "$ac_cv_prog_STRIP"; then
11831  ac_ct_STRIP=$STRIP
11832  # Extract the first word of "strip", so it can be a program name with args.
11833set dummy strip; ac_word=$2
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835$as_echo_n "checking for $ac_word... " >&6; }
11836if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
11837  $as_echo_n "(cached) " >&6
11838else
11839  if test -n "$ac_ct_STRIP"; then
11840  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11841else
11842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843for as_dir in $PATH
11844do
11845  IFS=$as_save_IFS
11846  test -z "$as_dir" && as_dir=.
11847    for ac_exec_ext in '' $ac_executable_extensions; do
11848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11849    ac_cv_prog_ac_ct_STRIP="strip"
11850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851    break 2
11852  fi
11853done
11854  done
11855IFS=$as_save_IFS
11856
11857fi
11858fi
11859ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11860if test -n "$ac_ct_STRIP"; then
11861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11862$as_echo "$ac_ct_STRIP" >&6; }
11863else
11864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865$as_echo "no" >&6; }
11866fi
11867
11868  if test "x$ac_ct_STRIP" = x; then
11869    STRIP=":"
11870  else
11871    case $cross_compiling:$ac_tool_warned in
11872yes:)
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11875ac_tool_warned=yes ;;
11876esac
11877    STRIP=$ac_ct_STRIP
11878  fi
11879else
11880  STRIP="$ac_cv_prog_STRIP"
11881fi
11882
11883
11884old_CC="$CC"
11885old_CFLAGS="$CFLAGS"
11886
11887# Set sane defaults for various variables
11888test -z "$AR" && AR=ar
11889test -z "$AR_FLAGS" && AR_FLAGS=cru
11890test -z "$AS" && AS=as
11891test -z "$CC" && CC=cc
11892test -z "$LTCC" && LTCC=$CC
11893test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11894test -z "$DLLTOOL" && DLLTOOL=dlltool
11895test -z "$LD" && LD=ld
11896test -z "$LN_S" && LN_S="ln -s"
11897test -z "$MAGIC_CMD" && MAGIC_CMD=file
11898test -z "$NM" && NM=nm
11899test -z "$SED" && SED=sed
11900test -z "$OBJDUMP" && OBJDUMP=objdump
11901test -z "$RANLIB" && RANLIB=:
11902test -z "$STRIP" && STRIP=:
11903test -z "$ac_objext" && ac_objext=o
11904
11905# Determine commands to create old-style static archives.
11906old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11907old_postinstall_cmds='chmod 644 $oldlib'
11908old_postuninstall_cmds=
11909
11910if test -n "$RANLIB"; then
11911  case $host_os in
11912  openbsd*)
11913    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11914    ;;
11915  *)
11916    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11917    ;;
11918  esac
11919  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11920fi
11921
11922for cc_temp in $compiler""; do
11923  case $cc_temp in
11924    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11925    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11926    \-*) ;;
11927    *) break;;
11928  esac
11929done
11930cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11931
11932
11933# Only perform the check for file, if the check method requires it
11934case $deplibs_check_method in
11935file_magic*)
11936  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11938$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11939if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11940  $as_echo_n "(cached) " >&6
11941else
11942  case $MAGIC_CMD in
11943[\\/*] |  ?:[\\/]*)
11944  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11945  ;;
11946*)
11947  lt_save_MAGIC_CMD="$MAGIC_CMD"
11948  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11949  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11950  for ac_dir in $ac_dummy; do
11951    IFS="$lt_save_ifs"
11952    test -z "$ac_dir" && ac_dir=.
11953    if test -f $ac_dir/${ac_tool_prefix}file; then
11954      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11955      if test -n "$file_magic_test_file"; then
11956	case $deplibs_check_method in
11957	"file_magic "*)
11958	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11959	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11960	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11961	    $EGREP "$file_magic_regex" > /dev/null; then
11962	    :
11963	  else
11964	    cat <<EOF 1>&2
11965
11966*** Warning: the command libtool uses to detect shared libraries,
11967*** $file_magic_cmd, produces output that libtool cannot recognize.
11968*** The result is that libtool may fail to recognize shared libraries
11969*** as such.  This will affect the creation of libtool libraries that
11970*** depend on shared libraries, but programs linked with such libtool
11971*** libraries will work regardless of this problem.  Nevertheless, you
11972*** may want to report the problem to your system manager and/or to
11973*** bug-libtool@gnu.org
11974
11975EOF
11976	  fi ;;
11977	esac
11978      fi
11979      break
11980    fi
11981  done
11982  IFS="$lt_save_ifs"
11983  MAGIC_CMD="$lt_save_MAGIC_CMD"
11984  ;;
11985esac
11986fi
11987
11988MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11989if test -n "$MAGIC_CMD"; then
11990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11991$as_echo "$MAGIC_CMD" >&6; }
11992else
11993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994$as_echo "no" >&6; }
11995fi
11996
11997if test -z "$lt_cv_path_MAGIC_CMD"; then
11998  if test -n "$ac_tool_prefix"; then
11999    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12000$as_echo_n "checking for file... " >&6; }
12001if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12002  $as_echo_n "(cached) " >&6
12003else
12004  case $MAGIC_CMD in
12005[\\/*] |  ?:[\\/]*)
12006  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12007  ;;
12008*)
12009  lt_save_MAGIC_CMD="$MAGIC_CMD"
12010  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12011  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12012  for ac_dir in $ac_dummy; do
12013    IFS="$lt_save_ifs"
12014    test -z "$ac_dir" && ac_dir=.
12015    if test -f $ac_dir/file; then
12016      lt_cv_path_MAGIC_CMD="$ac_dir/file"
12017      if test -n "$file_magic_test_file"; then
12018	case $deplibs_check_method in
12019	"file_magic "*)
12020	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12021	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12022	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12023	    $EGREP "$file_magic_regex" > /dev/null; then
12024	    :
12025	  else
12026	    cat <<EOF 1>&2
12027
12028*** Warning: the command libtool uses to detect shared libraries,
12029*** $file_magic_cmd, produces output that libtool cannot recognize.
12030*** The result is that libtool may fail to recognize shared libraries
12031*** as such.  This will affect the creation of libtool libraries that
12032*** depend on shared libraries, but programs linked with such libtool
12033*** libraries will work regardless of this problem.  Nevertheless, you
12034*** may want to report the problem to your system manager and/or to
12035*** bug-libtool@gnu.org
12036
12037EOF
12038	  fi ;;
12039	esac
12040      fi
12041      break
12042    fi
12043  done
12044  IFS="$lt_save_ifs"
12045  MAGIC_CMD="$lt_save_MAGIC_CMD"
12046  ;;
12047esac
12048fi
12049
12050MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12051if test -n "$MAGIC_CMD"; then
12052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12053$as_echo "$MAGIC_CMD" >&6; }
12054else
12055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056$as_echo "no" >&6; }
12057fi
12058
12059  else
12060    MAGIC_CMD=:
12061  fi
12062fi
12063
12064  fi
12065  ;;
12066esac
12067
12068
12069  case $host_os in
12070    rhapsody* | darwin*)
12071    if test -n "$ac_tool_prefix"; then
12072  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12073set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075$as_echo_n "checking for $ac_word... " >&6; }
12076if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12077  $as_echo_n "(cached) " >&6
12078else
12079  if test -n "$DSYMUTIL"; then
12080  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12081else
12082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083for as_dir in $PATH
12084do
12085  IFS=$as_save_IFS
12086  test -z "$as_dir" && as_dir=.
12087    for ac_exec_ext in '' $ac_executable_extensions; do
12088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12089    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12091    break 2
12092  fi
12093done
12094  done
12095IFS=$as_save_IFS
12096
12097fi
12098fi
12099DSYMUTIL=$ac_cv_prog_DSYMUTIL
12100if test -n "$DSYMUTIL"; then
12101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12102$as_echo "$DSYMUTIL" >&6; }
12103else
12104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105$as_echo "no" >&6; }
12106fi
12107
12108
12109fi
12110if test -z "$ac_cv_prog_DSYMUTIL"; then
12111  ac_ct_DSYMUTIL=$DSYMUTIL
12112  # Extract the first word of "dsymutil", so it can be a program name with args.
12113set dummy dsymutil; ac_word=$2
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115$as_echo_n "checking for $ac_word... " >&6; }
12116if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12117  $as_echo_n "(cached) " >&6
12118else
12119  if test -n "$ac_ct_DSYMUTIL"; then
12120  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12121else
12122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123for as_dir in $PATH
12124do
12125  IFS=$as_save_IFS
12126  test -z "$as_dir" && as_dir=.
12127    for ac_exec_ext in '' $ac_executable_extensions; do
12128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12129    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12131    break 2
12132  fi
12133done
12134  done
12135IFS=$as_save_IFS
12136
12137fi
12138fi
12139ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12140if test -n "$ac_ct_DSYMUTIL"; then
12141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12142$as_echo "$ac_ct_DSYMUTIL" >&6; }
12143else
12144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145$as_echo "no" >&6; }
12146fi
12147
12148  if test "x$ac_ct_DSYMUTIL" = x; then
12149    DSYMUTIL=":"
12150  else
12151    case $cross_compiling:$ac_tool_warned in
12152yes:)
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12155ac_tool_warned=yes ;;
12156esac
12157    DSYMUTIL=$ac_ct_DSYMUTIL
12158  fi
12159else
12160  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12161fi
12162
12163    if test -n "$ac_tool_prefix"; then
12164  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12165set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12167$as_echo_n "checking for $ac_word... " >&6; }
12168if test "${ac_cv_prog_NMEDIT+set}" = set; then :
12169  $as_echo_n "(cached) " >&6
12170else
12171  if test -n "$NMEDIT"; then
12172  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12173else
12174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175for as_dir in $PATH
12176do
12177  IFS=$as_save_IFS
12178  test -z "$as_dir" && as_dir=.
12179    for ac_exec_ext in '' $ac_executable_extensions; do
12180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12181    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12183    break 2
12184  fi
12185done
12186  done
12187IFS=$as_save_IFS
12188
12189fi
12190fi
12191NMEDIT=$ac_cv_prog_NMEDIT
12192if test -n "$NMEDIT"; then
12193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12194$as_echo "$NMEDIT" >&6; }
12195else
12196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197$as_echo "no" >&6; }
12198fi
12199
12200
12201fi
12202if test -z "$ac_cv_prog_NMEDIT"; then
12203  ac_ct_NMEDIT=$NMEDIT
12204  # Extract the first word of "nmedit", so it can be a program name with args.
12205set dummy nmedit; ac_word=$2
12206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12207$as_echo_n "checking for $ac_word... " >&6; }
12208if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
12209  $as_echo_n "(cached) " >&6
12210else
12211  if test -n "$ac_ct_NMEDIT"; then
12212  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12213else
12214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12215for as_dir in $PATH
12216do
12217  IFS=$as_save_IFS
12218  test -z "$as_dir" && as_dir=.
12219    for ac_exec_ext in '' $ac_executable_extensions; do
12220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12221    ac_cv_prog_ac_ct_NMEDIT="nmedit"
12222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12223    break 2
12224  fi
12225done
12226  done
12227IFS=$as_save_IFS
12228
12229fi
12230fi
12231ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12232if test -n "$ac_ct_NMEDIT"; then
12233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12234$as_echo "$ac_ct_NMEDIT" >&6; }
12235else
12236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12237$as_echo "no" >&6; }
12238fi
12239
12240  if test "x$ac_ct_NMEDIT" = x; then
12241    NMEDIT=":"
12242  else
12243    case $cross_compiling:$ac_tool_warned in
12244yes:)
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12247ac_tool_warned=yes ;;
12248esac
12249    NMEDIT=$ac_ct_NMEDIT
12250  fi
12251else
12252  NMEDIT="$ac_cv_prog_NMEDIT"
12253fi
12254
12255
12256    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12257$as_echo_n "checking for -single_module linker flag... " >&6; }
12258if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
12259  $as_echo_n "(cached) " >&6
12260else
12261  lt_cv_apple_cc_single_mod=no
12262      if test -z "${LT_MULTI_MODULE}"; then
12263   # By default we will add the -single_module flag. You can override
12264   # by either setting the environment variable LT_MULTI_MODULE
12265   # non-empty at configure time, or by adding -multi_module to the
12266   # link flags.
12267   echo "int foo(void){return 1;}" > conftest.c
12268   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12269     -dynamiclib ${wl}-single_module conftest.c
12270   if test -f libconftest.dylib; then
12271     lt_cv_apple_cc_single_mod=yes
12272     rm -rf libconftest.dylib*
12273   fi
12274   rm conftest.c
12275      fi
12276fi
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12278$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12279    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12280$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12281if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
12282  $as_echo_n "(cached) " >&6
12283else
12284  lt_cv_ld_exported_symbols_list=no
12285      save_LDFLAGS=$LDFLAGS
12286      echo "_main" > conftest.sym
12287      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12288      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289/* end confdefs.h.  */
12290
12291int
12292main ()
12293{
12294
12295  ;
12296  return 0;
12297}
12298_ACEOF
12299if ac_fn_c_try_link "$LINENO"; then :
12300  lt_cv_ld_exported_symbols_list=yes
12301else
12302  lt_cv_ld_exported_symbols_list=no
12303fi
12304rm -f core conftest.err conftest.$ac_objext \
12305    conftest$ac_exeext conftest.$ac_ext
12306   LDFLAGS="$save_LDFLAGS"
12307
12308fi
12309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12310$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12311    case $host_os in
12312    rhapsody* | darwin1.[0123])
12313      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12314    darwin1.*)
12315     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12316    darwin*)
12317      # if running on 10.5 or later, the deployment target defaults
12318      # to the OS version, if on x86, and 10.4, the deployment
12319      # target defaults to 10.4. Don't you love it?
12320      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12321   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12322     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12323   10.[012]*)
12324     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12325   10.*)
12326     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12327      esac
12328    ;;
12329  esac
12330    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12331      _lt_dar_single_mod='$single_module'
12332    fi
12333    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12334      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12335    else
12336      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
12337    fi
12338    if test "$DSYMUTIL" != ":"; then
12339      _lt_dsymutil="~$DSYMUTIL \$lib || :"
12340    else
12341      _lt_dsymutil=
12342    fi
12343    ;;
12344  esac
12345
12346
12347enable_dlopen=no
12348enable_win32_dll=yes
12349
12350# Check whether --enable-libtool-lock was given.
12351if test "${enable_libtool_lock+set}" = set; then :
12352  enableval=$enable_libtool_lock;
12353fi
12354
12355test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12356
12357
12358# Check whether --with-pic was given.
12359if test "${with_pic+set}" = set; then :
12360  withval=$with_pic; pic_mode="$withval"
12361else
12362  pic_mode=default
12363fi
12364
12365test -z "$pic_mode" && pic_mode=default
12366
12367# Use C for the default configuration in the libtool script
12368tagname=
12369lt_save_CC="$CC"
12370ac_ext=c
12371ac_cpp='$CPP $CPPFLAGS'
12372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12374ac_compiler_gnu=$ac_cv_c_compiler_gnu
12375
12376
12377# Source file extension for C test sources.
12378ac_ext=c
12379
12380# Object file extension for compiled C test sources.
12381objext=o
12382objext=$objext
12383
12384# Code to be used in simple compile tests
12385lt_simple_compile_test_code="int some_variable = 0;"
12386
12387# Code to be used in simple link tests
12388lt_simple_link_test_code='int main(){return(0);}'
12389
12390
12391# If no C compiler was specified, use CC.
12392LTCC=${LTCC-"$CC"}
12393
12394# If no C compiler flags were specified, use CFLAGS.
12395LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12396
12397# Allow CC to be a program name with arguments.
12398compiler=$CC
12399
12400
12401# save warnings/boilerplate of simple test code
12402ac_outfile=conftest.$ac_objext
12403echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12404eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12405_lt_compiler_boilerplate=`cat conftest.err`
12406$rm conftest*
12407
12408ac_outfile=conftest.$ac_objext
12409echo "$lt_simple_link_test_code" >conftest.$ac_ext
12410eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12411_lt_linker_boilerplate=`cat conftest.err`
12412$rm -r conftest*
12413
12414
12415## CAVEAT EMPTOR:
12416## There is no encapsulation within the following macros, do not change
12417## the running order or otherwise move them around unless you know exactly
12418## what you are doing...
12419
12420lt_prog_compiler_no_builtin_flag=
12421
12422if test "$GCC" = yes; then
12423  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12424
12425
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12427$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12428if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12429  $as_echo_n "(cached) " >&6
12430else
12431  lt_cv_prog_compiler_rtti_exceptions=no
12432  ac_outfile=conftest.$ac_objext
12433   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12434   lt_compiler_flag="-fno-rtti -fno-exceptions"
12435   # Insert the option either (1) after the last *FLAGS variable, or
12436   # (2) before a word containing "conftest.", or (3) at the end.
12437   # Note that $ac_compile itself does not contain backslashes and begins
12438   # with a dollar sign (not a hyphen), so the echo should work correctly.
12439   # The option is referenced via a variable to avoid confusing sed.
12440   lt_compile=`echo "$ac_compile" | $SED \
12441   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12442   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12443   -e 's:$: $lt_compiler_flag:'`
12444   (eval echo "\"\$as_me:12444: $lt_compile\"" >&5)
12445   (eval "$lt_compile" 2>conftest.err)
12446   ac_status=$?
12447   cat conftest.err >&5
12448   echo "$as_me:12448: \$? = $ac_status" >&5
12449   if (exit $ac_status) && test -s "$ac_outfile"; then
12450     # The compiler can only warn and ignore the option if not recognized
12451     # So say no if there are warnings other than the usual output.
12452     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12453     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12454     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12455       lt_cv_prog_compiler_rtti_exceptions=yes
12456     fi
12457   fi
12458   $rm conftest*
12459
12460fi
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12462$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12463
12464if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12465    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12466else
12467    :
12468fi
12469
12470fi
12471
12472lt_prog_compiler_wl=
12473lt_prog_compiler_pic=
12474lt_prog_compiler_static=
12475
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12477$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12478
12479  if test "$GCC" = yes; then
12480    lt_prog_compiler_wl='-Wl,'
12481    lt_prog_compiler_static='-static'
12482
12483    case $host_os in
12484      aix*)
12485      # All AIX code is PIC.
12486      if test "$host_cpu" = ia64; then
12487	# AIX 5 now supports IA64 processor
12488	lt_prog_compiler_static='-Bstatic'
12489      fi
12490      ;;
12491
12492    amigaos*)
12493      # FIXME: we need at least 68020 code to build shared libraries, but
12494      # adding the `-m68020' flag to GCC prevents building anything better,
12495      # like `-m68040'.
12496      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12497      ;;
12498
12499    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12500      # PIC is the default for these OSes.
12501      ;;
12502
12503    mingw* | cygwin* | pw32* | os2*)
12504      # This hack is so that the source file can tell whether it is being
12505      # built for inclusion in a dll (and should export symbols for example).
12506      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12507      # (--disable-auto-import) libraries
12508      lt_prog_compiler_pic='-DDLL_EXPORT'
12509      ;;
12510
12511    darwin* | rhapsody*)
12512      # PIC is the default on this platform
12513      # Common symbols not allowed in MH_DYLIB files
12514      lt_prog_compiler_pic='-fno-common'
12515      ;;
12516
12517    interix[3-9]*)
12518      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12519      # Instead, we relocate shared libraries at runtime.
12520      ;;
12521
12522    msdosdjgpp*)
12523      # Just because we use GCC doesn't mean we suddenly get shared libraries
12524      # on systems that don't support them.
12525      lt_prog_compiler_can_build_shared=no
12526      enable_shared=no
12527      ;;
12528
12529    sysv4*MP*)
12530      if test -d /usr/nec; then
12531	lt_prog_compiler_pic=-Kconform_pic
12532      fi
12533      ;;
12534
12535    hpux*)
12536      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12537      # not for PA HP-UX.
12538      case $host_cpu in
12539      hppa*64*|ia64*)
12540	# +Z the default
12541	;;
12542      *)
12543	lt_prog_compiler_pic='-fPIC'
12544	;;
12545      esac
12546      ;;
12547
12548    *)
12549      lt_prog_compiler_pic='-fPIC'
12550      ;;
12551    esac
12552  else
12553    # PORTME Check for flag to pass linker flags through the system compiler.
12554    case $host_os in
12555    aix*)
12556      lt_prog_compiler_wl='-Wl,'
12557      if test "$host_cpu" = ia64; then
12558	# AIX 5 now supports IA64 processor
12559	lt_prog_compiler_static='-Bstatic'
12560      else
12561	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12562      fi
12563      ;;
12564      darwin*)
12565        # PIC is the default on this platform
12566        # Common symbols not allowed in MH_DYLIB files
12567       case $cc_basename in
12568         xlc*)
12569         lt_prog_compiler_pic='-qnocommon'
12570         lt_prog_compiler_wl='-Wl,'
12571         ;;
12572       esac
12573       ;;
12574
12575    mingw* | cygwin* | pw32* | os2*)
12576      # This hack is so that the source file can tell whether it is being
12577      # built for inclusion in a dll (and should export symbols for example).
12578      lt_prog_compiler_pic='-DDLL_EXPORT'
12579      ;;
12580
12581    hpux9* | hpux10* | hpux11*)
12582      lt_prog_compiler_wl='-Wl,'
12583      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12584      # not for PA HP-UX.
12585      case $host_cpu in
12586      hppa*64*|ia64*)
12587	# +Z the default
12588	;;
12589      *)
12590	lt_prog_compiler_pic='+Z'
12591	;;
12592      esac
12593      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12594      lt_prog_compiler_static='${wl}-a ${wl}archive'
12595      ;;
12596
12597    irix5* | irix6* | nonstopux*)
12598      lt_prog_compiler_wl='-Wl,'
12599      # PIC (with -KPIC) is the default.
12600      lt_prog_compiler_static='-non_shared'
12601      ;;
12602
12603    newsos6)
12604      lt_prog_compiler_pic='-KPIC'
12605      lt_prog_compiler_static='-Bstatic'
12606      ;;
12607
12608    linux* | k*bsd*-gnu)
12609      case $cc_basename in
12610      icc* | ecc*)
12611	lt_prog_compiler_wl='-Wl,'
12612	lt_prog_compiler_pic='-KPIC'
12613	lt_prog_compiler_static='-static'
12614        ;;
12615      pgcc* | pgf77* | pgf90* | pgf95*)
12616        # Portland Group compilers (*not* the Pentium gcc compiler,
12617	# which looks to be a dead project)
12618	lt_prog_compiler_wl='-Wl,'
12619	lt_prog_compiler_pic='-fpic'
12620	lt_prog_compiler_static='-Bstatic'
12621        ;;
12622      ccc*)
12623        lt_prog_compiler_wl='-Wl,'
12624        # All Alpha code is PIC.
12625        lt_prog_compiler_static='-non_shared'
12626        ;;
12627      *)
12628        case `$CC -V 2>&1 | sed 5q` in
12629	*Sun\ C*)
12630	  # Sun C 5.9
12631	  lt_prog_compiler_pic='-KPIC'
12632	  lt_prog_compiler_static='-Bstatic'
12633	  lt_prog_compiler_wl='-Wl,'
12634	  ;;
12635	*Sun\ F*)
12636	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12637	  lt_prog_compiler_pic='-KPIC'
12638	  lt_prog_compiler_static='-Bstatic'
12639	  lt_prog_compiler_wl=''
12640	  ;;
12641	esac
12642	;;
12643      esac
12644      ;;
12645
12646    osf3* | osf4* | osf5*)
12647      lt_prog_compiler_wl='-Wl,'
12648      # All OSF/1 code is PIC.
12649      lt_prog_compiler_static='-non_shared'
12650      ;;
12651
12652    rdos*)
12653      lt_prog_compiler_static='-non_shared'
12654      ;;
12655
12656    solaris*)
12657      lt_prog_compiler_pic='-KPIC'
12658      lt_prog_compiler_static='-Bstatic'
12659      case $cc_basename in
12660      f77* | f90* | f95*)
12661	lt_prog_compiler_wl='-Qoption ld ';;
12662      *)
12663	lt_prog_compiler_wl='-Wl,';;
12664      esac
12665      ;;
12666
12667    sunos4*)
12668      lt_prog_compiler_wl='-Qoption ld '
12669      lt_prog_compiler_pic='-PIC'
12670      lt_prog_compiler_static='-Bstatic'
12671      ;;
12672
12673    sysv4 | sysv4.2uw2* | sysv4.3*)
12674      lt_prog_compiler_wl='-Wl,'
12675      lt_prog_compiler_pic='-KPIC'
12676      lt_prog_compiler_static='-Bstatic'
12677      ;;
12678
12679    sysv4*MP*)
12680      if test -d /usr/nec ;then
12681	lt_prog_compiler_pic='-Kconform_pic'
12682	lt_prog_compiler_static='-Bstatic'
12683      fi
12684      ;;
12685
12686    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12687      lt_prog_compiler_wl='-Wl,'
12688      lt_prog_compiler_pic='-KPIC'
12689      lt_prog_compiler_static='-Bstatic'
12690      ;;
12691
12692    unicos*)
12693      lt_prog_compiler_wl='-Wl,'
12694      lt_prog_compiler_can_build_shared=no
12695      ;;
12696
12697    uts4*)
12698      lt_prog_compiler_pic='-pic'
12699      lt_prog_compiler_static='-Bstatic'
12700      ;;
12701
12702    *)
12703      lt_prog_compiler_can_build_shared=no
12704      ;;
12705    esac
12706  fi
12707
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12709$as_echo "$lt_prog_compiler_pic" >&6; }
12710
12711#
12712# Check to make sure the PIC flag actually works.
12713#
12714if test -n "$lt_prog_compiler_pic"; then
12715
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12717$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12718if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12719  $as_echo_n "(cached) " >&6
12720else
12721  lt_cv_prog_compiler_pic_works=no
12722  ac_outfile=conftest.$ac_objext
12723   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12724   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12725   # Insert the option either (1) after the last *FLAGS variable, or
12726   # (2) before a word containing "conftest.", or (3) at the end.
12727   # Note that $ac_compile itself does not contain backslashes and begins
12728   # with a dollar sign (not a hyphen), so the echo should work correctly.
12729   # The option is referenced via a variable to avoid confusing sed.
12730   lt_compile=`echo "$ac_compile" | $SED \
12731   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12732   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12733   -e 's:$: $lt_compiler_flag:'`
12734   (eval echo "\"\$as_me:12734: $lt_compile\"" >&5)
12735   (eval "$lt_compile" 2>conftest.err)
12736   ac_status=$?
12737   cat conftest.err >&5
12738   echo "$as_me:12738: \$? = $ac_status" >&5
12739   if (exit $ac_status) && test -s "$ac_outfile"; then
12740     # The compiler can only warn and ignore the option if not recognized
12741     # So say no if there are warnings other than the usual output.
12742     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12743     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12744     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12745       lt_cv_prog_compiler_pic_works=yes
12746     fi
12747   fi
12748   $rm conftest*
12749
12750fi
12751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12752$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12753
12754if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12755    case $lt_prog_compiler_pic in
12756     "" | " "*) ;;
12757     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12758     esac
12759else
12760    lt_prog_compiler_pic=
12761     lt_prog_compiler_can_build_shared=no
12762fi
12763
12764fi
12765case $host_os in
12766  # For platforms which do not support PIC, -DPIC is meaningless:
12767  *djgpp*)
12768    lt_prog_compiler_pic=
12769    ;;
12770  *)
12771    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12772    ;;
12773esac
12774
12775#
12776# Check to make sure the static flag actually works.
12777#
12778wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12780$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12781if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12782  $as_echo_n "(cached) " >&6
12783else
12784  lt_cv_prog_compiler_static_works=no
12785   save_LDFLAGS="$LDFLAGS"
12786   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12787   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12788   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12789     # The linker can only warn and ignore the option if not recognized
12790     # So say no if there are warnings
12791     if test -s conftest.err; then
12792       # Append any errors to the config.log.
12793       cat conftest.err 1>&5
12794       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12795       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12796       if diff conftest.exp conftest.er2 >/dev/null; then
12797         lt_cv_prog_compiler_static_works=yes
12798       fi
12799     else
12800       lt_cv_prog_compiler_static_works=yes
12801     fi
12802   fi
12803   $rm -r conftest*
12804   LDFLAGS="$save_LDFLAGS"
12805
12806fi
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12808$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12809
12810if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12811    :
12812else
12813    lt_prog_compiler_static=
12814fi
12815
12816
12817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12818$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12819if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12820  $as_echo_n "(cached) " >&6
12821else
12822  lt_cv_prog_compiler_c_o=no
12823   $rm -r conftest 2>/dev/null
12824   mkdir conftest
12825   cd conftest
12826   mkdir out
12827   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12828
12829   lt_compiler_flag="-o out/conftest2.$ac_objext"
12830   # Insert the option either (1) after the last *FLAGS variable, or
12831   # (2) before a word containing "conftest.", or (3) at the end.
12832   # Note that $ac_compile itself does not contain backslashes and begins
12833   # with a dollar sign (not a hyphen), so the echo should work correctly.
12834   lt_compile=`echo "$ac_compile" | $SED \
12835   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12836   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12837   -e 's:$: $lt_compiler_flag:'`
12838   (eval echo "\"\$as_me:12838: $lt_compile\"" >&5)
12839   (eval "$lt_compile" 2>out/conftest.err)
12840   ac_status=$?
12841   cat out/conftest.err >&5
12842   echo "$as_me:12842: \$? = $ac_status" >&5
12843   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12844   then
12845     # The compiler can only warn and ignore the option if not recognized
12846     # So say no if there are warnings
12847     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12848     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12849     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12850       lt_cv_prog_compiler_c_o=yes
12851     fi
12852   fi
12853   chmod u+w . 2>&5
12854   $rm conftest*
12855   # SGI C++ compiler will create directory out/ii_files/ for
12856   # template instantiation
12857   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12858   $rm out/* && rmdir out
12859   cd ..
12860   rmdir conftest
12861   $rm conftest*
12862
12863fi
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12865$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12866
12867
12868hard_links="nottested"
12869if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12870  # do not overwrite the value of need_locks provided by the user
12871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12872$as_echo_n "checking if we can lock with hard links... " >&6; }
12873  hard_links=yes
12874  $rm conftest*
12875  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12876  touch conftest.a
12877  ln conftest.a conftest.b 2>&5 || hard_links=no
12878  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12880$as_echo "$hard_links" >&6; }
12881  if test "$hard_links" = no; then
12882    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12883$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12884    need_locks=warn
12885  fi
12886else
12887  need_locks=no
12888fi
12889
12890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12891$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12892
12893  runpath_var=
12894  allow_undefined_flag=
12895  enable_shared_with_static_runtimes=no
12896  archive_cmds=
12897  archive_expsym_cmds=
12898  old_archive_From_new_cmds=
12899  old_archive_from_expsyms_cmds=
12900  export_dynamic_flag_spec=
12901  whole_archive_flag_spec=
12902  thread_safe_flag_spec=
12903  hardcode_libdir_flag_spec=
12904  hardcode_libdir_flag_spec_ld=
12905  hardcode_libdir_separator=
12906  hardcode_direct=no
12907  hardcode_minus_L=no
12908  hardcode_shlibpath_var=unsupported
12909  link_all_deplibs=unknown
12910  hardcode_automatic=no
12911  module_cmds=
12912  module_expsym_cmds=
12913  always_export_symbols=no
12914  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12915  # include_expsyms should be a list of space-separated symbols to be *always*
12916  # included in the symbol list
12917  include_expsyms=
12918  # exclude_expsyms can be an extended regexp of symbols to exclude
12919  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12920  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12921  # as well as any symbol that contains `d'.
12922  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12923  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12924  # platforms (ab)use it in PIC code, but their linkers get confused if
12925  # the symbol is explicitly referenced.  Since portable code cannot
12926  # rely on this symbol name, it's probably fine to never include it in
12927  # preloaded symbol tables.
12928  # Exclude shared library initialization/finalization symbols.
12929  extract_expsyms_cmds=
12930  # Just being paranoid about ensuring that cc_basename is set.
12931  for cc_temp in $compiler""; do
12932  case $cc_temp in
12933    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12934    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12935    \-*) ;;
12936    *) break;;
12937  esac
12938done
12939cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12940
12941  case $host_os in
12942  cygwin* | mingw* | pw32*)
12943    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12944    # When not using gcc, we currently assume that we are using
12945    # Microsoft Visual C++.
12946    if test "$GCC" != yes; then
12947      with_gnu_ld=no
12948    fi
12949    ;;
12950  interix*)
12951    # we just hope/assume this is gcc and not c89 (= MSVC++)
12952    with_gnu_ld=yes
12953    ;;
12954  openbsd*)
12955    with_gnu_ld=no
12956    ;;
12957  esac
12958
12959  ld_shlibs=yes
12960  if test "$with_gnu_ld" = yes; then
12961    # If archive_cmds runs LD, not CC, wlarc should be empty
12962    wlarc='${wl}'
12963
12964    # Set some defaults for GNU ld with shared library support. These
12965    # are reset later if shared libraries are not supported. Putting them
12966    # here allows them to be overridden if necessary.
12967    runpath_var=LD_RUN_PATH
12968    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12969    export_dynamic_flag_spec='${wl}--export-dynamic'
12970    # ancient GNU ld didn't support --whole-archive et. al.
12971    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12972	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12973      else
12974  	whole_archive_flag_spec=
12975    fi
12976    supports_anon_versioning=no
12977    case `$LD -v 2>/dev/null` in
12978      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12979      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12980      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12981      *\ 2.11.*) ;; # other 2.11 versions
12982      *) supports_anon_versioning=yes ;;
12983    esac
12984
12985    # See if GNU ld supports shared libraries.
12986    case $host_os in
12987    aix[3-9]*)
12988      # On AIX/PPC, the GNU linker is very broken
12989      if test "$host_cpu" != ia64; then
12990	ld_shlibs=no
12991	cat <<EOF 1>&2
12992
12993*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12994*** to be unable to reliably create shared libraries on AIX.
12995*** Therefore, libtool is disabling shared libraries support.  If you
12996*** really care for shared libraries, you may want to modify your PATH
12997*** so that a non-GNU linker is found, and then restart.
12998
12999EOF
13000      fi
13001      ;;
13002
13003    amigaos*)
13004      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)'
13005      hardcode_libdir_flag_spec='-L$libdir'
13006      hardcode_minus_L=yes
13007
13008      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13009      # that the semantics of dynamic libraries on AmigaOS, at least up
13010      # to version 4, is to share data among multiple programs linked
13011      # with the same dynamic library.  Since this doesn't match the
13012      # behavior of shared libraries on other platforms, we can't use
13013      # them.
13014      ld_shlibs=no
13015      ;;
13016
13017    beos*)
13018      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13019	allow_undefined_flag=unsupported
13020	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13021	# support --undefined.  This deserves some investigation.  FIXME
13022	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13023      else
13024	ld_shlibs=no
13025      fi
13026      ;;
13027
13028    cygwin* | mingw* | pw32*)
13029      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13030      # as there is no search path for DLLs.
13031      hardcode_libdir_flag_spec='-L$libdir'
13032      allow_undefined_flag=unsupported
13033      always_export_symbols=no
13034      enable_shared_with_static_runtimes=yes
13035      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13036
13037      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13038        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13039	# If the export-symbols file already is a .def file (1st line
13040	# is EXPORTS), use it as is; otherwise, prepend...
13041	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13042	  cp $export_symbols $output_objdir/$soname.def;
13043	else
13044	  echo EXPORTS > $output_objdir/$soname.def;
13045	  cat $export_symbols >> $output_objdir/$soname.def;
13046	fi~
13047	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13048      else
13049	ld_shlibs=no
13050      fi
13051      ;;
13052
13053    interix[3-9]*)
13054      hardcode_direct=no
13055      hardcode_shlibpath_var=no
13056      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13057      export_dynamic_flag_spec='${wl}-E'
13058      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13059      # Instead, shared libraries are loaded at an image base (0x10000000 by
13060      # default) and relocated if they conflict, which is a slow very memory
13061      # consuming and fragmenting process.  To avoid this, we pick a random,
13062      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13063      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13064      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13065      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'
13066      ;;
13067
13068    gnu* | linux* | k*bsd*-gnu)
13069      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13070	tmp_addflag=
13071	case $cc_basename,$host_cpu in
13072	pgcc*)				# Portland Group C compiler
13073	  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'
13074	  tmp_addflag=' $pic_flag'
13075	  ;;
13076	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13077	  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'
13078	  tmp_addflag=' $pic_flag -Mnomain' ;;
13079	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13080	  tmp_addflag=' -i_dynamic' ;;
13081	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13082	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13083	ifc* | ifort*)			# Intel Fortran compiler
13084	  tmp_addflag=' -nofor_main' ;;
13085	esac
13086	case `$CC -V 2>&1 | sed 5q` in
13087	*Sun\ C*)			# Sun C 5.9
13088	  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'
13089	  tmp_sharedflag='-G' ;;
13090	*Sun\ F*)			# Sun Fortran 8.3
13091	  tmp_sharedflag='-G' ;;
13092	*)
13093	  tmp_sharedflag='-shared' ;;
13094	esac
13095	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13096
13097	if test $supports_anon_versioning = yes; then
13098	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13099  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13100  $echo "local: *; };" >> $output_objdir/$libname.ver~
13101	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13102	fi
13103      else
13104	ld_shlibs=no
13105      fi
13106      ;;
13107
13108    netbsd*)
13109      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13110	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13111	wlarc=
13112      else
13113	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13114	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13115      fi
13116      ;;
13117
13118    solaris*)
13119      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13120	ld_shlibs=no
13121	cat <<EOF 1>&2
13122
13123*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13124*** create shared libraries on Solaris systems.  Therefore, libtool
13125*** is disabling shared libraries support.  We urge you to upgrade GNU
13126*** binutils to release 2.9.1 or newer.  Another option is to modify
13127*** your PATH or compiler configuration so that the native linker is
13128*** used, and then restart.
13129
13130EOF
13131      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13132	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13133	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13134      else
13135	ld_shlibs=no
13136      fi
13137      ;;
13138
13139    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13140      case `$LD -v 2>&1` in
13141        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13142	ld_shlibs=no
13143	cat <<_LT_EOF 1>&2
13144
13145*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13146*** reliably create shared libraries on SCO systems.  Therefore, libtool
13147*** is disabling shared libraries support.  We urge you to upgrade GNU
13148*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13149*** your PATH or compiler configuration so that the native linker is
13150*** used, and then restart.
13151
13152_LT_EOF
13153	;;
13154	*)
13155	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13156	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13157	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13158	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13159	  else
13160	    ld_shlibs=no
13161	  fi
13162	;;
13163      esac
13164      ;;
13165
13166    sunos4*)
13167      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13168      wlarc=
13169      hardcode_direct=yes
13170      hardcode_shlibpath_var=no
13171      ;;
13172
13173    *)
13174      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13175	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13176	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13177      else
13178	ld_shlibs=no
13179      fi
13180      ;;
13181    esac
13182
13183    if test "$ld_shlibs" = no; then
13184      runpath_var=
13185      hardcode_libdir_flag_spec=
13186      export_dynamic_flag_spec=
13187      whole_archive_flag_spec=
13188    fi
13189  else
13190    # PORTME fill in a description of your system's linker (not GNU ld)
13191    case $host_os in
13192    aix3*)
13193      allow_undefined_flag=unsupported
13194      always_export_symbols=yes
13195      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'
13196      # Note: this linker hardcodes the directories in LIBPATH if there
13197      # are no directories specified by -L.
13198      hardcode_minus_L=yes
13199      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13200	# Neither direct hardcoding nor static linking is supported with a
13201	# broken collect2.
13202	hardcode_direct=unsupported
13203      fi
13204      ;;
13205
13206    aix[4-9]*)
13207      if test "$host_cpu" = ia64; then
13208	# On IA64, the linker does run time linking by default, so we don't
13209	# have to do anything special.
13210	aix_use_runtimelinking=no
13211	exp_sym_flag='-Bexport'
13212	no_entry_flag=""
13213      else
13214	# If we're using GNU nm, then we don't want the "-C" option.
13215	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13216	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13217	  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'
13218	else
13219	  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'
13220	fi
13221	aix_use_runtimelinking=no
13222
13223	# Test if we are trying to use run time linking or normal
13224	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13225	# need to do runtime linking.
13226	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13227	  for ld_flag in $LDFLAGS; do
13228  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13229  	    aix_use_runtimelinking=yes
13230  	    break
13231  	  fi
13232	  done
13233	  ;;
13234	esac
13235
13236	exp_sym_flag='-bexport'
13237	no_entry_flag='-bnoentry'
13238      fi
13239
13240      # When large executables or shared objects are built, AIX ld can
13241      # have problems creating the table of contents.  If linking a library
13242      # or program results in "error TOC overflow" add -mminimal-toc to
13243      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13244      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13245
13246      archive_cmds=''
13247      hardcode_direct=yes
13248      hardcode_libdir_separator=':'
13249      link_all_deplibs=yes
13250
13251      if test "$GCC" = yes; then
13252	case $host_os in aix4.[012]|aix4.[012].*)
13253	# We only want to do this on AIX 4.2 and lower, the check
13254	# below for broken collect2 doesn't work under 4.3+
13255	  collect2name=`${CC} -print-prog-name=collect2`
13256	  if test -f "$collect2name" && \
13257  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13258	  then
13259  	  # We have reworked collect2
13260  	  :
13261	  else
13262  	  # We have old collect2
13263  	  hardcode_direct=unsupported
13264  	  # It fails to find uninstalled libraries when the uninstalled
13265  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13266  	  # to unsupported forces relinking
13267  	  hardcode_minus_L=yes
13268  	  hardcode_libdir_flag_spec='-L$libdir'
13269  	  hardcode_libdir_separator=
13270	  fi
13271	  ;;
13272	esac
13273	shared_flag='-shared'
13274	if test "$aix_use_runtimelinking" = yes; then
13275	  shared_flag="$shared_flag "'${wl}-G'
13276	fi
13277      else
13278	# not using gcc
13279	if test "$host_cpu" = ia64; then
13280  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13281  	# chokes on -Wl,-G. The following line is correct:
13282	  shared_flag='-G'
13283	else
13284	  if test "$aix_use_runtimelinking" = yes; then
13285	    shared_flag='${wl}-G'
13286	  else
13287	    shared_flag='${wl}-bM:SRE'
13288	  fi
13289	fi
13290      fi
13291
13292      # It seems that -bexpall does not export symbols beginning with
13293      # underscore (_), so it is better to generate a list of symbols to export.
13294      always_export_symbols=yes
13295      if test "$aix_use_runtimelinking" = yes; then
13296	# Warning - without using the other runtime loading flags (-brtl),
13297	# -berok will link without error, but may produce a broken library.
13298	allow_undefined_flag='-berok'
13299       # Determine the default libpath from the value encoded in an empty executable.
13300       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301/* end confdefs.h.  */
13302
13303int
13304main ()
13305{
13306
13307  ;
13308  return 0;
13309}
13310_ACEOF
13311if ac_fn_c_try_link "$LINENO"; then :
13312
13313lt_aix_libpath_sed='
13314    /Import File Strings/,/^$/ {
13315	/^0/ {
13316	    s/^0  *\(.*\)$/\1/
13317	    p
13318	}
13319    }'
13320aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13321# Check for a 64-bit object if we didn't find anything.
13322if test -z "$aix_libpath"; then
13323  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13324fi
13325fi
13326rm -f core conftest.err conftest.$ac_objext \
13327    conftest$ac_exeext conftest.$ac_ext
13328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13329
13330       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13331	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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13332       else
13333	if test "$host_cpu" = ia64; then
13334	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13335	  allow_undefined_flag="-z nodefs"
13336	  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"
13337	else
13338	 # Determine the default libpath from the value encoded in an empty executable.
13339	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340/* end confdefs.h.  */
13341
13342int
13343main ()
13344{
13345
13346  ;
13347  return 0;
13348}
13349_ACEOF
13350if ac_fn_c_try_link "$LINENO"; then :
13351
13352lt_aix_libpath_sed='
13353    /Import File Strings/,/^$/ {
13354	/^0/ {
13355	    s/^0  *\(.*\)$/\1/
13356	    p
13357	}
13358    }'
13359aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13360# Check for a 64-bit object if we didn't find anything.
13361if test -z "$aix_libpath"; then
13362  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13363fi
13364fi
13365rm -f core conftest.err conftest.$ac_objext \
13366    conftest$ac_exeext conftest.$ac_ext
13367if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13368
13369	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13370	  # Warning - without using the other run time loading flags,
13371	  # -berok will link without error, but may produce a broken library.
13372	  no_undefined_flag=' ${wl}-bernotok'
13373	  allow_undefined_flag=' ${wl}-berok'
13374	  # Exported symbols can be pulled into shared objects from archives
13375	  whole_archive_flag_spec='$convenience'
13376	  archive_cmds_need_lc=yes
13377	  # This is similar to how AIX traditionally builds its shared libraries.
13378	  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'
13379	fi
13380      fi
13381      ;;
13382
13383    amigaos*)
13384      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)'
13385      hardcode_libdir_flag_spec='-L$libdir'
13386      hardcode_minus_L=yes
13387      # see comment about different semantics on the GNU ld section
13388      ld_shlibs=no
13389      ;;
13390
13391    bsdi[45]*)
13392      export_dynamic_flag_spec=-rdynamic
13393      ;;
13394
13395    cygwin* | mingw* | pw32*)
13396      # When not using gcc, we currently assume that we are using
13397      # Microsoft Visual C++.
13398      # hardcode_libdir_flag_spec is actually meaningless, as there is
13399      # no search path for DLLs.
13400      hardcode_libdir_flag_spec=' '
13401      allow_undefined_flag=unsupported
13402      # Tell ltmain to make .lib files, not .a files.
13403      libext=lib
13404      # Tell ltmain to make .dll files, not .so files.
13405      shrext_cmds=".dll"
13406      # FIXME: Setting linknames here is a bad hack.
13407      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13408      # The linker will automatically build a .lib file if we build a DLL.
13409      old_archive_From_new_cmds='true'
13410      # FIXME: Should let the user specify the lib program.
13411      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13412      fix_srcfile_path='`cygpath -w "$srcfile"`'
13413      enable_shared_with_static_runtimes=yes
13414      ;;
13415
13416    darwin* | rhapsody*)
13417      case $host_os in
13418        rhapsody* | darwin1.[012])
13419         allow_undefined_flag='${wl}-undefined ${wl}suppress'
13420         ;;
13421       *) # Darwin 1.3 on
13422         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13423           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13424         else
13425           case ${MACOSX_DEPLOYMENT_TARGET} in
13426             10.[012])
13427               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13428               ;;
13429             10.*)
13430               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13431               ;;
13432           esac
13433         fi
13434         ;;
13435      esac
13436      archive_cmds_need_lc=no
13437      hardcode_direct=no
13438      hardcode_automatic=yes
13439      hardcode_shlibpath_var=unsupported
13440      whole_archive_flag_spec=''
13441      link_all_deplibs=yes
13442    if test "$GCC" = yes ; then
13443    	output_verbose_link_cmd='echo'
13444        archive_cmds="\$CC \$RC_CFLAGS -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13445        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13446        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}"
13447        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}"
13448    else
13449      case $cc_basename in
13450        xlc*)
13451         output_verbose_link_cmd='echo'
13452         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13453         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13454          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13455         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13456          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13457          ;;
13458       *)
13459         ld_shlibs=no
13460          ;;
13461      esac
13462    fi
13463      ;;
13464
13465    dgux*)
13466      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13467      hardcode_libdir_flag_spec='-L$libdir'
13468      hardcode_shlibpath_var=no
13469      ;;
13470
13471    freebsd1*)
13472      ld_shlibs=no
13473      ;;
13474
13475    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13476    # support.  Future versions do this automatically, but an explicit c++rt0.o
13477    # does not break anything, and helps significantly (at the cost of a little
13478    # extra space).
13479    freebsd2.2*)
13480      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13481      hardcode_libdir_flag_spec='-R$libdir'
13482      hardcode_direct=yes
13483      hardcode_shlibpath_var=no
13484      ;;
13485
13486    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13487    freebsd2*)
13488      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13489      hardcode_direct=yes
13490      hardcode_minus_L=yes
13491      hardcode_shlibpath_var=no
13492      ;;
13493
13494    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13495    freebsd* | dragonfly*)
13496      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13497      hardcode_libdir_flag_spec='-R$libdir'
13498      hardcode_direct=yes
13499      hardcode_shlibpath_var=no
13500      ;;
13501
13502    hpux9*)
13503      if test "$GCC" = yes; then
13504	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'
13505      else
13506	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'
13507      fi
13508      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13509      hardcode_libdir_separator=:
13510      hardcode_direct=yes
13511
13512      # hardcode_minus_L: Not really in the search PATH,
13513      # but as the default location of the library.
13514      hardcode_minus_L=yes
13515      export_dynamic_flag_spec='${wl}-E'
13516      ;;
13517
13518    hpux10*)
13519      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13520	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13521      else
13522	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13523      fi
13524      if test "$with_gnu_ld" = no; then
13525	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13526	hardcode_libdir_separator=:
13527
13528	hardcode_direct=yes
13529	export_dynamic_flag_spec='${wl}-E'
13530
13531	# hardcode_minus_L: Not really in the search PATH,
13532	# but as the default location of the library.
13533	hardcode_minus_L=yes
13534      fi
13535      ;;
13536
13537    hpux11*)
13538      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13539	case $host_cpu in
13540	hppa*64*)
13541	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13542	  ;;
13543	ia64*)
13544	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13545	  ;;
13546	*)
13547	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13548	  ;;
13549	esac
13550      else
13551	case $host_cpu in
13552	hppa*64*)
13553	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13554	  ;;
13555	ia64*)
13556	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13557	  ;;
13558	*)
13559	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13560	  ;;
13561	esac
13562      fi
13563      if test "$with_gnu_ld" = no; then
13564	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13565	hardcode_libdir_separator=:
13566
13567	case $host_cpu in
13568	hppa*64*|ia64*)
13569	  hardcode_libdir_flag_spec_ld='+b $libdir'
13570	  hardcode_direct=no
13571	  hardcode_shlibpath_var=no
13572	  ;;
13573	*)
13574	  hardcode_direct=yes
13575	  export_dynamic_flag_spec='${wl}-E'
13576
13577	  # hardcode_minus_L: Not really in the search PATH,
13578	  # but as the default location of the library.
13579	  hardcode_minus_L=yes
13580	  ;;
13581	esac
13582      fi
13583      ;;
13584
13585    irix5* | irix6* | nonstopux*)
13586      if test "$GCC" = yes; then
13587	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13588      else
13589	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13590	hardcode_libdir_flag_spec_ld='-rpath $libdir'
13591      fi
13592      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13593      hardcode_libdir_separator=:
13594      link_all_deplibs=yes
13595      ;;
13596
13597    netbsd*)
13598      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13599	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13600      else
13601	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13602      fi
13603      hardcode_libdir_flag_spec='-R$libdir'
13604      hardcode_direct=yes
13605      hardcode_shlibpath_var=no
13606      ;;
13607
13608    newsos6)
13609      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13610      hardcode_direct=yes
13611      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13612      hardcode_libdir_separator=:
13613      hardcode_shlibpath_var=no
13614      ;;
13615
13616    openbsd*)
13617      if test -f /usr/libexec/ld.so; then
13618	hardcode_direct=yes
13619	hardcode_shlibpath_var=no
13620	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13621	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13622	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13623	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13624	  export_dynamic_flag_spec='${wl}-E'
13625	else
13626	  case $host_os in
13627	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13628	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13629	     hardcode_libdir_flag_spec='-R$libdir'
13630	     ;;
13631	   *)
13632	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13633	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13634	     ;;
13635	  esac
13636        fi
13637      else
13638	ld_shlibs=no
13639      fi
13640      ;;
13641
13642    os2*)
13643      hardcode_libdir_flag_spec='-L$libdir'
13644      hardcode_minus_L=yes
13645      allow_undefined_flag=unsupported
13646      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'
13647      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13648      ;;
13649
13650    osf3*)
13651      if test "$GCC" = yes; then
13652	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13653	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13654      else
13655	allow_undefined_flag=' -expect_unresolved \*'
13656	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13657      fi
13658      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13659      hardcode_libdir_separator=:
13660      ;;
13661
13662    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13663      if test "$GCC" = yes; then
13664	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13665	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13666	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13667      else
13668	allow_undefined_flag=' -expect_unresolved \*'
13669	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13670	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13671	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13672
13673	# Both c and cxx compiler support -rpath directly
13674	hardcode_libdir_flag_spec='-rpath $libdir'
13675      fi
13676      hardcode_libdir_separator=:
13677      ;;
13678
13679    solaris*)
13680      no_undefined_flag=' -z text'
13681      if test "$GCC" = yes; then
13682	wlarc='${wl}'
13683	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13684	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13685	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13686      else
13687	wlarc=''
13688	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13689	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13690  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13691      fi
13692      hardcode_libdir_flag_spec='-R$libdir'
13693      hardcode_shlibpath_var=no
13694      case $host_os in
13695      solaris2.[0-5] | solaris2.[0-5].*) ;;
13696      *)
13697	# The compiler driver will combine and reorder linker options,
13698	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13699	# but is careful enough not to reorder.
13700 	# Supported since Solaris 2.6 (maybe 2.5.1?)
13701	if test "$GCC" = yes; then
13702	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13703	else
13704	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13705	fi
13706	;;
13707      esac
13708      link_all_deplibs=yes
13709      ;;
13710
13711    sunos4*)
13712      if test "x$host_vendor" = xsequent; then
13713	# Use $CC to link under sequent, because it throws in some extra .o
13714	# files that make .init and .fini sections work.
13715	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13716      else
13717	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13718      fi
13719      hardcode_libdir_flag_spec='-L$libdir'
13720      hardcode_direct=yes
13721      hardcode_minus_L=yes
13722      hardcode_shlibpath_var=no
13723      ;;
13724
13725    sysv4)
13726      case $host_vendor in
13727	sni)
13728	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13729	  hardcode_direct=yes # is this really true???
13730	;;
13731	siemens)
13732	  ## LD is ld it makes a PLAMLIB
13733	  ## CC just makes a GrossModule.
13734	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13735	  reload_cmds='$CC -r -o $output$reload_objs'
13736	  hardcode_direct=no
13737        ;;
13738	motorola)
13739	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13740	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13741	;;
13742      esac
13743      runpath_var='LD_RUN_PATH'
13744      hardcode_shlibpath_var=no
13745      ;;
13746
13747    sysv4.3*)
13748      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13749      hardcode_shlibpath_var=no
13750      export_dynamic_flag_spec='-Bexport'
13751      ;;
13752
13753    sysv4*MP*)
13754      if test -d /usr/nec; then
13755	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13756	hardcode_shlibpath_var=no
13757	runpath_var=LD_RUN_PATH
13758	hardcode_runpath_var=yes
13759	ld_shlibs=yes
13760      fi
13761      ;;
13762
13763    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13764      no_undefined_flag='${wl}-z,text'
13765      archive_cmds_need_lc=no
13766      hardcode_shlibpath_var=no
13767      runpath_var='LD_RUN_PATH'
13768
13769      if test "$GCC" = yes; then
13770	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13771	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13772      else
13773	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13774	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13775      fi
13776      ;;
13777
13778    sysv5* | sco3.2v5* | sco5v6*)
13779      # Note: We can NOT use -z defs as we might desire, because we do not
13780      # link with -lc, and that would cause any symbols used from libc to
13781      # always be unresolved, which means just about no library would
13782      # ever link correctly.  If we're not using GNU ld we use -z text
13783      # though, which does catch some bad symbols but isn't as heavy-handed
13784      # as -z defs.
13785      no_undefined_flag='${wl}-z,text'
13786      allow_undefined_flag='${wl}-z,nodefs'
13787      archive_cmds_need_lc=no
13788      hardcode_shlibpath_var=no
13789      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13790      hardcode_libdir_separator=':'
13791      link_all_deplibs=yes
13792      export_dynamic_flag_spec='${wl}-Bexport'
13793      runpath_var='LD_RUN_PATH'
13794
13795      if test "$GCC" = yes; then
13796	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13797	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13798      else
13799	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13800	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13801      fi
13802      ;;
13803
13804    uts4*)
13805      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13806      hardcode_libdir_flag_spec='-L$libdir'
13807      hardcode_shlibpath_var=no
13808      ;;
13809
13810    *)
13811      ld_shlibs=no
13812      ;;
13813    esac
13814  fi
13815
13816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13817$as_echo "$ld_shlibs" >&6; }
13818test "$ld_shlibs" = no && can_build_shared=no
13819
13820#
13821# Do we need to explicitly link libc?
13822#
13823case "x$archive_cmds_need_lc" in
13824x|xyes)
13825  # Assume -lc should be added
13826  archive_cmds_need_lc=yes
13827
13828  if test "$enable_shared" = yes && test "$GCC" = yes; then
13829    case $archive_cmds in
13830    *'~'*)
13831      # FIXME: we may have to deal with multi-command sequences.
13832      ;;
13833    '$CC '*)
13834      # Test whether the compiler implicitly links with -lc since on some
13835      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13836      # to ld, don't add -lc before -lgcc.
13837      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13838$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13839      $rm conftest*
13840      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13841
13842      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13843  (eval $ac_compile) 2>&5
13844  ac_status=$?
13845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13846  test $ac_status = 0; } 2>conftest.err; then
13847        soname=conftest
13848        lib=conftest
13849        libobjs=conftest.$ac_objext
13850        deplibs=
13851        wl=$lt_prog_compiler_wl
13852	pic_flag=$lt_prog_compiler_pic
13853        compiler_flags=-v
13854        linker_flags=-v
13855        verstring=
13856        output_objdir=.
13857        libname=conftest
13858        lt_save_allow_undefined_flag=$allow_undefined_flag
13859        allow_undefined_flag=
13860        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13861  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13862  ac_status=$?
13863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13864  test $ac_status = 0; }
13865        then
13866	  archive_cmds_need_lc=no
13867        else
13868	  archive_cmds_need_lc=yes
13869        fi
13870        allow_undefined_flag=$lt_save_allow_undefined_flag
13871      else
13872        cat conftest.err 1>&5
13873      fi
13874      $rm conftest*
13875      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13876$as_echo "$archive_cmds_need_lc" >&6; }
13877      ;;
13878    esac
13879  fi
13880  ;;
13881esac
13882
13883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13884$as_echo_n "checking dynamic linker characteristics... " >&6; }
13885library_names_spec=
13886libname_spec='lib$name'
13887soname_spec=
13888shrext_cmds=".so"
13889postinstall_cmds=
13890postuninstall_cmds=
13891finish_cmds=
13892finish_eval=
13893shlibpath_var=
13894shlibpath_overrides_runpath=unknown
13895version_type=none
13896dynamic_linker="$host_os ld.so"
13897sys_lib_dlsearch_path_spec="/lib /usr/lib"
13898
13899if test "$GCC" = yes; then
13900  case $host_os in
13901    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13902    *) lt_awk_arg="/^libraries:/" ;;
13903  esac
13904  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13905  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
13906    # if the path contains ";" then we assume it to be the separator
13907    # otherwise default to the standard path separator (i.e. ":") - it is
13908    # assumed that no part of a normal pathname contains ";" but that should
13909    # okay in the real world where ";" in dirpaths is itself problematic.
13910    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13911  else
13912    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13913  fi
13914  # Ok, now we have the path, separated by spaces, we can step through it
13915  # and add multilib dir if necessary.
13916  lt_tmp_lt_search_path_spec=
13917  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13918  for lt_sys_path in $lt_search_path_spec; do
13919    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13920      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13921    else
13922      test -d "$lt_sys_path" && \
13923	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13924    fi
13925  done
13926  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
13927BEGIN {RS=" "; FS="/|\n";} {
13928  lt_foo="";
13929  lt_count=0;
13930  for (lt_i = NF; lt_i > 0; lt_i--) {
13931    if ($lt_i != "" && $lt_i != ".") {
13932      if ($lt_i == "..") {
13933        lt_count++;
13934      } else {
13935        if (lt_count == 0) {
13936          lt_foo="/" $lt_i lt_foo;
13937        } else {
13938          lt_count--;
13939        }
13940      }
13941    }
13942  }
13943  if (lt_foo != "") { lt_freq[lt_foo]++; }
13944  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13945}'`
13946  sys_lib_search_path_spec=`echo $lt_search_path_spec`
13947else
13948  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13949fi
13950need_lib_prefix=unknown
13951hardcode_into_libs=no
13952
13953# when you set need_version to no, make sure it does not cause -set_version
13954# flags to be left without arguments
13955need_version=unknown
13956
13957case $host_os in
13958aix3*)
13959  version_type=linux
13960  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13961  shlibpath_var=LIBPATH
13962
13963  # AIX 3 has no versioning support, so we append a major version to the name.
13964  soname_spec='${libname}${release}${shared_ext}$major'
13965  ;;
13966
13967aix[4-9]*)
13968  version_type=linux
13969  need_lib_prefix=no
13970  need_version=no
13971  hardcode_into_libs=yes
13972  if test "$host_cpu" = ia64; then
13973    # AIX 5 supports IA64
13974    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13975    shlibpath_var=LD_LIBRARY_PATH
13976  else
13977    # With GCC up to 2.95.x, collect2 would create an import file
13978    # for dependence libraries.  The import file would start with
13979    # the line `#! .'.  This would cause the generated library to
13980    # depend on `.', always an invalid library.  This was fixed in
13981    # development snapshots of GCC prior to 3.0.
13982    case $host_os in
13983      aix4 | aix4.[01] | aix4.[01].*)
13984      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13985	   echo ' yes '
13986	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13987	:
13988      else
13989	can_build_shared=no
13990      fi
13991      ;;
13992    esac
13993    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13994    # soname into executable. Probably we can add versioning support to
13995    # collect2, so additional links can be useful in future.
13996    if test "$aix_use_runtimelinking" = yes; then
13997      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13998      # instead of lib<name>.a to let people know that these are not
13999      # typical AIX shared libraries.
14000      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001    else
14002      # We preserve .a as extension for shared libraries through AIX4.2
14003      # and later when we are not doing run time linking.
14004      library_names_spec='${libname}${release}.a $libname.a'
14005      soname_spec='${libname}${release}${shared_ext}$major'
14006    fi
14007    shlibpath_var=LIBPATH
14008  fi
14009  ;;
14010
14011amigaos*)
14012  library_names_spec='$libname.ixlibrary $libname.a'
14013  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14014  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'
14015  ;;
14016
14017beos*)
14018  library_names_spec='${libname}${shared_ext}'
14019  dynamic_linker="$host_os ld.so"
14020  shlibpath_var=LIBRARY_PATH
14021  ;;
14022
14023bsdi[45]*)
14024  version_type=linux
14025  need_version=no
14026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14027  soname_spec='${libname}${release}${shared_ext}$major'
14028  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14029  shlibpath_var=LD_LIBRARY_PATH
14030  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14031  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14032  # the default ld.so.conf also contains /usr/contrib/lib and
14033  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14034  # libtool to hard-code these into programs
14035  ;;
14036
14037cygwin* | mingw* | pw32*)
14038  version_type=windows
14039  shrext_cmds=".dll"
14040  need_version=no
14041  need_lib_prefix=no
14042
14043  case $GCC,$host_os in
14044  yes,cygwin* | yes,mingw* | yes,pw32*)
14045    library_names_spec='$libname.dll.a'
14046    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14047    postinstall_cmds='base_file=`basename \${file}`~
14048      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14049      dldir=$destdir/`dirname \$dlpath`~
14050      test -d \$dldir || mkdir -p \$dldir~
14051      $install_prog $dir/$dlname \$dldir/$dlname~
14052      chmod a+x \$dldir/$dlname'
14053    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14054      dlpath=$dir/\$dldll~
14055       $rm \$dlpath'
14056    shlibpath_overrides_runpath=yes
14057
14058    case $host_os in
14059    cygwin*)
14060      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14061      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14062      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14063      ;;
14064    mingw*)
14065      # MinGW DLLs use traditional 'lib' prefix
14066      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14067      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14068      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14069        # It is most probably a Windows format PATH printed by
14070        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14071        # path with ; separators, and with drive letters. We can handle the
14072        # drive letters (cygwin fileutils understands them), so leave them,
14073        # especially as we might pass files found there to a mingw objdump,
14074        # which wouldn't understand a cygwinified path. Ahh.
14075        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14076      else
14077        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14078      fi
14079      ;;
14080    pw32*)
14081      # pw32 DLLs use 'pw' prefix rather than 'lib'
14082      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14083      ;;
14084    esac
14085    ;;
14086
14087  *)
14088    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14089    ;;
14090  esac
14091  dynamic_linker='Win32 ld.exe'
14092  # FIXME: first we should search . and the directory the executable is in
14093  shlibpath_var=PATH
14094  ;;
14095
14096darwin* | rhapsody*)
14097  dynamic_linker="$host_os dyld"
14098  version_type=darwin
14099  need_lib_prefix=no
14100  need_version=no
14101  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14102  soname_spec='${libname}${release}${major}$shared_ext'
14103  shlibpath_overrides_runpath=yes
14104  shlibpath_var=DYLD_LIBRARY_PATH
14105  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14106
14107  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14108  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14109  ;;
14110
14111dgux*)
14112  version_type=linux
14113  need_lib_prefix=no
14114  need_version=no
14115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14116  soname_spec='${libname}${release}${shared_ext}$major'
14117  shlibpath_var=LD_LIBRARY_PATH
14118  ;;
14119
14120freebsd1*)
14121  dynamic_linker=no
14122  ;;
14123
14124freebsd* | dragonfly*)
14125  # DragonFly does not have aout.  When/if they implement a new
14126  # versioning mechanism, adjust this.
14127  if test -x /usr/bin/objformat; then
14128    objformat=`/usr/bin/objformat`
14129  else
14130    case $host_os in
14131    freebsd[123]*) objformat=aout ;;
14132    *) objformat=elf ;;
14133    esac
14134  fi
14135  version_type=freebsd-$objformat
14136  case $version_type in
14137    freebsd-elf*)
14138      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14139      need_version=no
14140      need_lib_prefix=no
14141      ;;
14142    freebsd-*)
14143      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14144      need_version=yes
14145      ;;
14146  esac
14147  shlibpath_var=LD_LIBRARY_PATH
14148  case $host_os in
14149  freebsd2*)
14150    shlibpath_overrides_runpath=yes
14151    ;;
14152  freebsd3.[01]* | freebsdelf3.[01]*)
14153    shlibpath_overrides_runpath=yes
14154    hardcode_into_libs=yes
14155    ;;
14156  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14157  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14158    shlibpath_overrides_runpath=no
14159    hardcode_into_libs=yes
14160    ;;
14161  *) # from 4.6 on, and DragonFly
14162    shlibpath_overrides_runpath=yes
14163    hardcode_into_libs=yes
14164    ;;
14165  esac
14166  ;;
14167
14168gnu*)
14169  version_type=linux
14170  need_lib_prefix=no
14171  need_version=no
14172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14173  soname_spec='${libname}${release}${shared_ext}$major'
14174  shlibpath_var=LD_LIBRARY_PATH
14175  hardcode_into_libs=yes
14176  ;;
14177
14178hpux9* | hpux10* | hpux11*)
14179  # Give a soname corresponding to the major version so that dld.sl refuses to
14180  # link against other versions.
14181  version_type=sunos
14182  need_lib_prefix=no
14183  need_version=no
14184  case $host_cpu in
14185  ia64*)
14186    shrext_cmds='.so'
14187    hardcode_into_libs=yes
14188    dynamic_linker="$host_os dld.so"
14189    shlibpath_var=LD_LIBRARY_PATH
14190    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14191    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14192    soname_spec='${libname}${release}${shared_ext}$major'
14193    if test "X$HPUX_IA64_MODE" = X32; then
14194      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14195    else
14196      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14197    fi
14198    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14199    ;;
14200   hppa*64*)
14201     shrext_cmds='.sl'
14202     hardcode_into_libs=yes
14203     dynamic_linker="$host_os dld.sl"
14204     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14205     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14207     soname_spec='${libname}${release}${shared_ext}$major'
14208     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14209     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14210     ;;
14211   *)
14212    shrext_cmds='.sl'
14213    dynamic_linker="$host_os dld.sl"
14214    shlibpath_var=SHLIB_PATH
14215    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14216    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14217    soname_spec='${libname}${release}${shared_ext}$major'
14218    ;;
14219  esac
14220  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14221  postinstall_cmds='chmod 555 $lib'
14222  ;;
14223
14224interix[3-9]*)
14225  version_type=linux
14226  need_lib_prefix=no
14227  need_version=no
14228  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14229  soname_spec='${libname}${release}${shared_ext}$major'
14230  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14231  shlibpath_var=LD_LIBRARY_PATH
14232  shlibpath_overrides_runpath=no
14233  hardcode_into_libs=yes
14234  ;;
14235
14236irix5* | irix6* | nonstopux*)
14237  case $host_os in
14238    nonstopux*) version_type=nonstopux ;;
14239    *)
14240	if test "$lt_cv_prog_gnu_ld" = yes; then
14241		version_type=linux
14242	else
14243		version_type=irix
14244	fi ;;
14245  esac
14246  need_lib_prefix=no
14247  need_version=no
14248  soname_spec='${libname}${release}${shared_ext}$major'
14249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14250  case $host_os in
14251  irix5* | nonstopux*)
14252    libsuff= shlibsuff=
14253    ;;
14254  *)
14255    case $LD in # libtool.m4 will add one of these switches to LD
14256    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14257      libsuff= shlibsuff= libmagic=32-bit;;
14258    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14259      libsuff=32 shlibsuff=N32 libmagic=N32;;
14260    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14261      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14262    *) libsuff= shlibsuff= libmagic=never-match;;
14263    esac
14264    ;;
14265  esac
14266  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14267  shlibpath_overrides_runpath=no
14268  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14269  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14270  hardcode_into_libs=yes
14271  ;;
14272
14273# No shared lib support for Linux oldld, aout, or coff.
14274linux*oldld* | linux*aout* | linux*coff*)
14275  dynamic_linker=no
14276  ;;
14277
14278# This must be Linux ELF.
14279linux* | k*bsd*-gnu)
14280  version_type=linux
14281  need_lib_prefix=no
14282  need_version=no
14283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14284  soname_spec='${libname}${release}${shared_ext}$major'
14285  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14286  shlibpath_var=LD_LIBRARY_PATH
14287  shlibpath_overrides_runpath=no
14288  # This implies no fast_install, which is unacceptable.
14289  # Some rework will be needed to allow for fast_install
14290  # before this can be enabled.
14291  hardcode_into_libs=yes
14292
14293  # Append ld.so.conf contents to the search path
14294  if test -f /etc/ld.so.conf; then
14295    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' ' '`
14296    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14297  fi
14298
14299  # We used to test for /lib/ld.so.1 and disable shared libraries on
14300  # powerpc, because MkLinux only supported shared libraries with the
14301  # GNU dynamic linker.  Since this was broken with cross compilers,
14302  # most powerpc-linux boxes support dynamic linking these days and
14303  # people can always --disable-shared, the test was removed, and we
14304  # assume the GNU/Linux dynamic linker is in use.
14305  dynamic_linker='GNU/Linux ld.so'
14306  ;;
14307
14308netbsd*)
14309  version_type=sunos
14310  need_lib_prefix=no
14311  need_version=no
14312  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14313    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14314    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14315    dynamic_linker='NetBSD (a.out) ld.so'
14316  else
14317    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14318    soname_spec='${libname}${release}${shared_ext}$major'
14319    dynamic_linker='NetBSD ld.elf_so'
14320  fi
14321  shlibpath_var=LD_LIBRARY_PATH
14322  shlibpath_overrides_runpath=yes
14323  hardcode_into_libs=yes
14324  ;;
14325
14326newsos6)
14327  version_type=linux
14328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14329  shlibpath_var=LD_LIBRARY_PATH
14330  shlibpath_overrides_runpath=yes
14331  ;;
14332
14333nto-qnx*)
14334  version_type=linux
14335  need_lib_prefix=no
14336  need_version=no
14337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14338  soname_spec='${libname}${release}${shared_ext}$major'
14339  shlibpath_var=LD_LIBRARY_PATH
14340  shlibpath_overrides_runpath=yes
14341  ;;
14342
14343openbsd*)
14344  version_type=sunos
14345  sys_lib_dlsearch_path_spec="/usr/lib"
14346  need_lib_prefix=no
14347  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14348  case $host_os in
14349    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14350    *)                         need_version=no  ;;
14351  esac
14352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14353  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14354  shlibpath_var=LD_LIBRARY_PATH
14355  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14356    case $host_os in
14357      openbsd2.[89] | openbsd2.[89].*)
14358	shlibpath_overrides_runpath=no
14359	;;
14360      *)
14361	shlibpath_overrides_runpath=yes
14362	;;
14363      esac
14364  else
14365    shlibpath_overrides_runpath=yes
14366  fi
14367  ;;
14368
14369os2*)
14370  libname_spec='$name'
14371  shrext_cmds=".dll"
14372  need_lib_prefix=no
14373  library_names_spec='$libname${shared_ext} $libname.a'
14374  dynamic_linker='OS/2 ld.exe'
14375  shlibpath_var=LIBPATH
14376  ;;
14377
14378osf3* | osf4* | osf5*)
14379  version_type=osf
14380  need_lib_prefix=no
14381  need_version=no
14382  soname_spec='${libname}${release}${shared_ext}$major'
14383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384  shlibpath_var=LD_LIBRARY_PATH
14385  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14386  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14387  ;;
14388
14389rdos*)
14390  dynamic_linker=no
14391  ;;
14392
14393solaris*)
14394  version_type=linux
14395  need_lib_prefix=no
14396  need_version=no
14397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14398  soname_spec='${libname}${release}${shared_ext}$major'
14399  shlibpath_var=LD_LIBRARY_PATH
14400  shlibpath_overrides_runpath=yes
14401  hardcode_into_libs=yes
14402  # ldd complains unless libraries are executable
14403  postinstall_cmds='chmod +x $lib'
14404  ;;
14405
14406sunos4*)
14407  version_type=sunos
14408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14409  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14410  shlibpath_var=LD_LIBRARY_PATH
14411  shlibpath_overrides_runpath=yes
14412  if test "$with_gnu_ld" = yes; then
14413    need_lib_prefix=no
14414  fi
14415  need_version=yes
14416  ;;
14417
14418sysv4 | sysv4.3*)
14419  version_type=linux
14420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14421  soname_spec='${libname}${release}${shared_ext}$major'
14422  shlibpath_var=LD_LIBRARY_PATH
14423  case $host_vendor in
14424    sni)
14425      shlibpath_overrides_runpath=no
14426      need_lib_prefix=no
14427      export_dynamic_flag_spec='${wl}-Blargedynsym'
14428      runpath_var=LD_RUN_PATH
14429      ;;
14430    siemens)
14431      need_lib_prefix=no
14432      ;;
14433    motorola)
14434      need_lib_prefix=no
14435      need_version=no
14436      shlibpath_overrides_runpath=no
14437      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14438      ;;
14439  esac
14440  ;;
14441
14442sysv4*MP*)
14443  if test -d /usr/nec ;then
14444    version_type=linux
14445    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14446    soname_spec='$libname${shared_ext}.$major'
14447    shlibpath_var=LD_LIBRARY_PATH
14448  fi
14449  ;;
14450
14451sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14452  version_type=freebsd-elf
14453  need_lib_prefix=no
14454  need_version=no
14455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14456  soname_spec='${libname}${release}${shared_ext}$major'
14457  shlibpath_var=LD_LIBRARY_PATH
14458  hardcode_into_libs=yes
14459  if test "$with_gnu_ld" = yes; then
14460    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14461    shlibpath_overrides_runpath=no
14462  else
14463    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14464    shlibpath_overrides_runpath=yes
14465    case $host_os in
14466      sco3.2v5*)
14467        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14468	;;
14469    esac
14470  fi
14471  sys_lib_dlsearch_path_spec='/usr/lib'
14472  ;;
14473
14474uts4*)
14475  version_type=linux
14476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477  soname_spec='${libname}${release}${shared_ext}$major'
14478  shlibpath_var=LD_LIBRARY_PATH
14479  ;;
14480
14481*)
14482  dynamic_linker=no
14483  ;;
14484esac
14485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14486$as_echo "$dynamic_linker" >&6; }
14487test "$dynamic_linker" = no && can_build_shared=no
14488
14489if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
14490  $as_echo_n "(cached) " >&6
14491else
14492  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14493fi
14494
14495sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14496if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
14497  $as_echo_n "(cached) " >&6
14498else
14499  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14500fi
14501
14502sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14503
14504variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14505if test "$GCC" = yes; then
14506  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14507fi
14508
14509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14510$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14511hardcode_action=
14512if test -n "$hardcode_libdir_flag_spec" || \
14513   test -n "$runpath_var" || \
14514   test "X$hardcode_automatic" = "Xyes" ; then
14515
14516  # We can hardcode non-existant directories.
14517  if test "$hardcode_direct" != no &&
14518     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14519     # have to relink, otherwise we might link with an installed library
14520     # when we should be linking with a yet-to-be-installed one
14521     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14522     test "$hardcode_minus_L" != no; then
14523    # Linking always hardcodes the temporary library directory.
14524    hardcode_action=relink
14525  else
14526    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14527    hardcode_action=immediate
14528  fi
14529else
14530  # We cannot hardcode anything, or else we can only hardcode existing
14531  # directories.
14532  hardcode_action=unsupported
14533fi
14534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14535$as_echo "$hardcode_action" >&6; }
14536
14537if test "$hardcode_action" = relink; then
14538  # Fast installation is not supported
14539  enable_fast_install=no
14540elif test "$shlibpath_overrides_runpath" = yes ||
14541     test "$enable_shared" = no; then
14542  # Fast installation is not necessary
14543  enable_fast_install=needless
14544fi
14545
14546striplib=
14547old_striplib=
14548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14549$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14550if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14551  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14552  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14554$as_echo "yes" >&6; }
14555else
14556# FIXME - insert some real tests, host_os isn't really good enough
14557  case $host_os in
14558   darwin*)
14559       if test -n "$STRIP" ; then
14560         striplib="$STRIP -x"
14561         old_striplib="$STRIP -S"
14562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14563$as_echo "yes" >&6; }
14564       else
14565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566$as_echo "no" >&6; }
14567fi
14568       ;;
14569   *)
14570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14571$as_echo "no" >&6; }
14572    ;;
14573  esac
14574fi
14575
14576if test "x$enable_dlopen" != xyes; then
14577  enable_dlopen=unknown
14578  enable_dlopen_self=unknown
14579  enable_dlopen_self_static=unknown
14580else
14581  lt_cv_dlopen=no
14582  lt_cv_dlopen_libs=
14583
14584  case $host_os in
14585  beos*)
14586    lt_cv_dlopen="load_add_on"
14587    lt_cv_dlopen_libs=
14588    lt_cv_dlopen_self=yes
14589    ;;
14590
14591  mingw* | pw32*)
14592    lt_cv_dlopen="LoadLibrary"
14593    lt_cv_dlopen_libs=
14594   ;;
14595
14596  cygwin*)
14597    lt_cv_dlopen="dlopen"
14598    lt_cv_dlopen_libs=
14599   ;;
14600
14601  darwin*)
14602  # if libdl is installed we need to link against it
14603    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14604$as_echo_n "checking for dlopen in -ldl... " >&6; }
14605if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14606  $as_echo_n "(cached) " >&6
14607else
14608  ac_check_lib_save_LIBS=$LIBS
14609LIBS="-ldl  $LIBS"
14610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14611/* end confdefs.h.  */
14612
14613/* Override any GCC internal prototype to avoid an error.
14614   Use char because int might match the return type of a GCC
14615   builtin and then its argument prototype would still apply.  */
14616#ifdef __cplusplus
14617extern "C"
14618#endif
14619char dlopen ();
14620int
14621main ()
14622{
14623return dlopen ();
14624  ;
14625  return 0;
14626}
14627_ACEOF
14628if ac_fn_c_try_link "$LINENO"; then :
14629  ac_cv_lib_dl_dlopen=yes
14630else
14631  ac_cv_lib_dl_dlopen=no
14632fi
14633rm -f core conftest.err conftest.$ac_objext \
14634    conftest$ac_exeext conftest.$ac_ext
14635LIBS=$ac_check_lib_save_LIBS
14636fi
14637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14638$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14639if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14640  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14641else
14642
14643    lt_cv_dlopen="dyld"
14644    lt_cv_dlopen_libs=
14645    lt_cv_dlopen_self=yes
14646
14647fi
14648
14649   ;;
14650
14651  *)
14652    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14653if test "x$ac_cv_func_shl_load" = x""yes; then :
14654  lt_cv_dlopen="shl_load"
14655else
14656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14657$as_echo_n "checking for shl_load in -ldld... " >&6; }
14658if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14659  $as_echo_n "(cached) " >&6
14660else
14661  ac_check_lib_save_LIBS=$LIBS
14662LIBS="-ldld  $LIBS"
14663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664/* end confdefs.h.  */
14665
14666/* Override any GCC internal prototype to avoid an error.
14667   Use char because int might match the return type of a GCC
14668   builtin and then its argument prototype would still apply.  */
14669#ifdef __cplusplus
14670extern "C"
14671#endif
14672char shl_load ();
14673int
14674main ()
14675{
14676return shl_load ();
14677  ;
14678  return 0;
14679}
14680_ACEOF
14681if ac_fn_c_try_link "$LINENO"; then :
14682  ac_cv_lib_dld_shl_load=yes
14683else
14684  ac_cv_lib_dld_shl_load=no
14685fi
14686rm -f core conftest.err conftest.$ac_objext \
14687    conftest$ac_exeext conftest.$ac_ext
14688LIBS=$ac_check_lib_save_LIBS
14689fi
14690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14691$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14692if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14693  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14694else
14695  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14696if test "x$ac_cv_func_dlopen" = x""yes; then :
14697  lt_cv_dlopen="dlopen"
14698else
14699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14700$as_echo_n "checking for dlopen in -ldl... " >&6; }
14701if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14702  $as_echo_n "(cached) " >&6
14703else
14704  ac_check_lib_save_LIBS=$LIBS
14705LIBS="-ldl  $LIBS"
14706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707/* end confdefs.h.  */
14708
14709/* Override any GCC internal prototype to avoid an error.
14710   Use char because int might match the return type of a GCC
14711   builtin and then its argument prototype would still apply.  */
14712#ifdef __cplusplus
14713extern "C"
14714#endif
14715char dlopen ();
14716int
14717main ()
14718{
14719return dlopen ();
14720  ;
14721  return 0;
14722}
14723_ACEOF
14724if ac_fn_c_try_link "$LINENO"; then :
14725  ac_cv_lib_dl_dlopen=yes
14726else
14727  ac_cv_lib_dl_dlopen=no
14728fi
14729rm -f core conftest.err conftest.$ac_objext \
14730    conftest$ac_exeext conftest.$ac_ext
14731LIBS=$ac_check_lib_save_LIBS
14732fi
14733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14734$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14735if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14736  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14737else
14738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14739$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14740if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14741  $as_echo_n "(cached) " >&6
14742else
14743  ac_check_lib_save_LIBS=$LIBS
14744LIBS="-lsvld  $LIBS"
14745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746/* end confdefs.h.  */
14747
14748/* Override any GCC internal prototype to avoid an error.
14749   Use char because int might match the return type of a GCC
14750   builtin and then its argument prototype would still apply.  */
14751#ifdef __cplusplus
14752extern "C"
14753#endif
14754char dlopen ();
14755int
14756main ()
14757{
14758return dlopen ();
14759  ;
14760  return 0;
14761}
14762_ACEOF
14763if ac_fn_c_try_link "$LINENO"; then :
14764  ac_cv_lib_svld_dlopen=yes
14765else
14766  ac_cv_lib_svld_dlopen=no
14767fi
14768rm -f core conftest.err conftest.$ac_objext \
14769    conftest$ac_exeext conftest.$ac_ext
14770LIBS=$ac_check_lib_save_LIBS
14771fi
14772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14773$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14774if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14775  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14776else
14777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14778$as_echo_n "checking for dld_link in -ldld... " >&6; }
14779if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14780  $as_echo_n "(cached) " >&6
14781else
14782  ac_check_lib_save_LIBS=$LIBS
14783LIBS="-ldld  $LIBS"
14784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785/* end confdefs.h.  */
14786
14787/* Override any GCC internal prototype to avoid an error.
14788   Use char because int might match the return type of a GCC
14789   builtin and then its argument prototype would still apply.  */
14790#ifdef __cplusplus
14791extern "C"
14792#endif
14793char dld_link ();
14794int
14795main ()
14796{
14797return dld_link ();
14798  ;
14799  return 0;
14800}
14801_ACEOF
14802if ac_fn_c_try_link "$LINENO"; then :
14803  ac_cv_lib_dld_dld_link=yes
14804else
14805  ac_cv_lib_dld_dld_link=no
14806fi
14807rm -f core conftest.err conftest.$ac_objext \
14808    conftest$ac_exeext conftest.$ac_ext
14809LIBS=$ac_check_lib_save_LIBS
14810fi
14811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14812$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14813if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14814  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14815fi
14816
14817
14818fi
14819
14820
14821fi
14822
14823
14824fi
14825
14826
14827fi
14828
14829
14830fi
14831
14832    ;;
14833  esac
14834
14835  if test "x$lt_cv_dlopen" != xno; then
14836    enable_dlopen=yes
14837  else
14838    enable_dlopen=no
14839  fi
14840
14841  case $lt_cv_dlopen in
14842  dlopen)
14843    save_CPPFLAGS="$CPPFLAGS"
14844    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14845
14846    save_LDFLAGS="$LDFLAGS"
14847    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14848
14849    save_LIBS="$LIBS"
14850    LIBS="$lt_cv_dlopen_libs $LIBS"
14851
14852    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14853$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14854if test "${lt_cv_dlopen_self+set}" = set; then :
14855  $as_echo_n "(cached) " >&6
14856else
14857  	  if test "$cross_compiling" = yes; then :
14858  lt_cv_dlopen_self=cross
14859else
14860  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14861  lt_status=$lt_dlunknown
14862  cat > conftest.$ac_ext <<EOF
14863#line 14863 "configure"
14864#include "confdefs.h"
14865
14866#if HAVE_DLFCN_H
14867#include <dlfcn.h>
14868#endif
14869
14870#include <stdio.h>
14871
14872#ifdef RTLD_GLOBAL
14873#  define LT_DLGLOBAL		RTLD_GLOBAL
14874#else
14875#  ifdef DL_GLOBAL
14876#    define LT_DLGLOBAL		DL_GLOBAL
14877#  else
14878#    define LT_DLGLOBAL		0
14879#  endif
14880#endif
14881
14882/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14883   find out it does not work in some platform. */
14884#ifndef LT_DLLAZY_OR_NOW
14885#  ifdef RTLD_LAZY
14886#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14887#  else
14888#    ifdef DL_LAZY
14889#      define LT_DLLAZY_OR_NOW		DL_LAZY
14890#    else
14891#      ifdef RTLD_NOW
14892#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14893#      else
14894#        ifdef DL_NOW
14895#          define LT_DLLAZY_OR_NOW	DL_NOW
14896#        else
14897#          define LT_DLLAZY_OR_NOW	0
14898#        endif
14899#      endif
14900#    endif
14901#  endif
14902#endif
14903
14904#ifdef __cplusplus
14905extern "C" void exit (int);
14906#endif
14907
14908void fnord() { int i=42;}
14909int main ()
14910{
14911  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14912  int status = $lt_dlunknown;
14913
14914  if (self)
14915    {
14916      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14917      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14918      /* dlclose (self); */
14919    }
14920  else
14921    puts (dlerror ());
14922
14923    exit (status);
14924}
14925EOF
14926  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14927  (eval $ac_link) 2>&5
14928  ac_status=$?
14929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14930  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14931    (./conftest; exit; ) >&5 2>/dev/null
14932    lt_status=$?
14933    case x$lt_status in
14934      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14935      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14936      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14937    esac
14938  else :
14939    # compilation failed
14940    lt_cv_dlopen_self=no
14941  fi
14942fi
14943rm -fr conftest*
14944
14945
14946fi
14947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14948$as_echo "$lt_cv_dlopen_self" >&6; }
14949
14950    if test "x$lt_cv_dlopen_self" = xyes; then
14951      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14952      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14953$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14954if test "${lt_cv_dlopen_self_static+set}" = set; then :
14955  $as_echo_n "(cached) " >&6
14956else
14957  	  if test "$cross_compiling" = yes; then :
14958  lt_cv_dlopen_self_static=cross
14959else
14960  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14961  lt_status=$lt_dlunknown
14962  cat > conftest.$ac_ext <<EOF
14963#line 14963 "configure"
14964#include "confdefs.h"
14965
14966#if HAVE_DLFCN_H
14967#include <dlfcn.h>
14968#endif
14969
14970#include <stdio.h>
14971
14972#ifdef RTLD_GLOBAL
14973#  define LT_DLGLOBAL		RTLD_GLOBAL
14974#else
14975#  ifdef DL_GLOBAL
14976#    define LT_DLGLOBAL		DL_GLOBAL
14977#  else
14978#    define LT_DLGLOBAL		0
14979#  endif
14980#endif
14981
14982/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14983   find out it does not work in some platform. */
14984#ifndef LT_DLLAZY_OR_NOW
14985#  ifdef RTLD_LAZY
14986#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14987#  else
14988#    ifdef DL_LAZY
14989#      define LT_DLLAZY_OR_NOW		DL_LAZY
14990#    else
14991#      ifdef RTLD_NOW
14992#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14993#      else
14994#        ifdef DL_NOW
14995#          define LT_DLLAZY_OR_NOW	DL_NOW
14996#        else
14997#          define LT_DLLAZY_OR_NOW	0
14998#        endif
14999#      endif
15000#    endif
15001#  endif
15002#endif
15003
15004#ifdef __cplusplus
15005extern "C" void exit (int);
15006#endif
15007
15008void fnord() { int i=42;}
15009int main ()
15010{
15011  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15012  int status = $lt_dlunknown;
15013
15014  if (self)
15015    {
15016      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15017      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15018      /* dlclose (self); */
15019    }
15020  else
15021    puts (dlerror ());
15022
15023    exit (status);
15024}
15025EOF
15026  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15027  (eval $ac_link) 2>&5
15028  ac_status=$?
15029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15031    (./conftest; exit; ) >&5 2>/dev/null
15032    lt_status=$?
15033    case x$lt_status in
15034      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15035      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15036      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15037    esac
15038  else :
15039    # compilation failed
15040    lt_cv_dlopen_self_static=no
15041  fi
15042fi
15043rm -fr conftest*
15044
15045
15046fi
15047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15048$as_echo "$lt_cv_dlopen_self_static" >&6; }
15049    fi
15050
15051    CPPFLAGS="$save_CPPFLAGS"
15052    LDFLAGS="$save_LDFLAGS"
15053    LIBS="$save_LIBS"
15054    ;;
15055  esac
15056
15057  case $lt_cv_dlopen_self in
15058  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15059  *) enable_dlopen_self=unknown ;;
15060  esac
15061
15062  case $lt_cv_dlopen_self_static in
15063  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15064  *) enable_dlopen_self_static=unknown ;;
15065  esac
15066fi
15067
15068
15069# Report which library types will actually be built
15070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15071$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15073$as_echo "$can_build_shared" >&6; }
15074
15075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15076$as_echo_n "checking whether to build shared libraries... " >&6; }
15077test "$can_build_shared" = "no" && enable_shared=no
15078
15079# On AIX, shared libraries and static libraries use the same namespace, and
15080# are all built from PIC.
15081case $host_os in
15082aix3*)
15083  test "$enable_shared" = yes && enable_static=no
15084  if test -n "$RANLIB"; then
15085    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15086    postinstall_cmds='$RANLIB $lib'
15087  fi
15088  ;;
15089
15090aix[4-9]*)
15091  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15092    test "$enable_shared" = yes && enable_static=no
15093  fi
15094    ;;
15095esac
15096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15097$as_echo "$enable_shared" >&6; }
15098
15099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15100$as_echo_n "checking whether to build static libraries... " >&6; }
15101# Make sure either enable_shared or enable_static is yes.
15102test "$enable_shared" = yes || enable_static=yes
15103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15104$as_echo "$enable_static" >&6; }
15105
15106# The else clause should only fire when bootstrapping the
15107# libtool distribution, otherwise you forgot to ship ltmain.sh
15108# with your package, and you will get complaints that there are
15109# no rules to generate ltmain.sh.
15110if test -f "$ltmain"; then
15111  # See if we are running on zsh, and set the options which allow our commands through
15112  # without removal of \ escapes.
15113  if test -n "${ZSH_VERSION+set}" ; then
15114    setopt NO_GLOB_SUBST
15115  fi
15116  # Now quote all the things that may contain metacharacters while being
15117  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15118  # variables and quote the copies for generation of the libtool script.
15119  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15120    SED SHELL STRIP \
15121    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15122    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15123    deplibs_check_method reload_flag reload_cmds need_locks \
15124    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15125    lt_cv_sys_global_symbol_to_c_name_address \
15126    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15127    old_postinstall_cmds old_postuninstall_cmds \
15128    compiler \
15129    CC \
15130    LD \
15131    lt_prog_compiler_wl \
15132    lt_prog_compiler_pic \
15133    lt_prog_compiler_static \
15134    lt_prog_compiler_no_builtin_flag \
15135    export_dynamic_flag_spec \
15136    thread_safe_flag_spec \
15137    whole_archive_flag_spec \
15138    enable_shared_with_static_runtimes \
15139    old_archive_cmds \
15140    old_archive_from_new_cmds \
15141    predep_objects \
15142    postdep_objects \
15143    predeps \
15144    postdeps \
15145    compiler_lib_search_path \
15146    compiler_lib_search_dirs \
15147    archive_cmds \
15148    archive_expsym_cmds \
15149    postinstall_cmds \
15150    postuninstall_cmds \
15151    old_archive_from_expsyms_cmds \
15152    allow_undefined_flag \
15153    no_undefined_flag \
15154    export_symbols_cmds \
15155    hardcode_libdir_flag_spec \
15156    hardcode_libdir_flag_spec_ld \
15157    hardcode_libdir_separator \
15158    hardcode_automatic \
15159    module_cmds \
15160    module_expsym_cmds \
15161    lt_cv_prog_compiler_c_o \
15162    fix_srcfile_path \
15163    exclude_expsyms \
15164    include_expsyms; do
15165
15166    case $var in
15167    old_archive_cmds | \
15168    old_archive_from_new_cmds | \
15169    archive_cmds | \
15170    archive_expsym_cmds | \
15171    module_cmds | \
15172    module_expsym_cmds | \
15173    old_archive_from_expsyms_cmds | \
15174    export_symbols_cmds | \
15175    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15176    postinstall_cmds | postuninstall_cmds | \
15177    old_postinstall_cmds | old_postuninstall_cmds | \
15178    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15179      # Double-quote double-evaled strings.
15180      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15181      ;;
15182    *)
15183      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15184      ;;
15185    esac
15186  done
15187
15188  case $lt_echo in
15189  *'\$0 --fallback-echo"')
15190    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15191    ;;
15192  esac
15193
15194cfgfile="${ofile}T"
15195  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15196  $rm -f "$cfgfile"
15197  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
15198$as_echo "$as_me: creating $ofile" >&6;}
15199
15200  cat <<__EOF__ >> "$cfgfile"
15201#! $SHELL
15202
15203# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15204# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15205# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15206#
15207# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
15208# Free Software Foundation, Inc.
15209#
15210# This file is part of GNU Libtool:
15211# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15212#
15213# This program is free software; you can redistribute it and/or modify
15214# it under the terms of the GNU General Public License as published by
15215# the Free Software Foundation; either version 2 of the License, or
15216# (at your option) any later version.
15217#
15218# This program is distributed in the hope that it will be useful, but
15219# WITHOUT ANY WARRANTY; without even the implied warranty of
15220# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15221# General Public License for more details.
15222#
15223# You should have received a copy of the GNU General Public License
15224# along with this program; if not, write to the Free Software
15225# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15226#
15227# As a special exception to the GNU General Public License, if you
15228# distribute this file as part of a program that contains a
15229# configuration script generated by Autoconf, you may include it under
15230# the same distribution terms that you use for the rest of that program.
15231
15232# A sed program that does not truncate output.
15233SED=$lt_SED
15234
15235# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15236Xsed="$SED -e 1s/^X//"
15237
15238# The HP-UX ksh and POSIX shell print the target directory to stdout
15239# if CDPATH is set.
15240(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15241
15242# The names of the tagged configurations supported by this script.
15243available_tags=
15244
15245# ### BEGIN LIBTOOL CONFIG
15246
15247# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15248
15249# Shell to use when invoking shell scripts.
15250SHELL=$lt_SHELL
15251
15252# Whether or not to build shared libraries.
15253build_libtool_libs=$enable_shared
15254
15255# Whether or not to build static libraries.
15256build_old_libs=$enable_static
15257
15258# Whether or not to add -lc for building shared libraries.
15259build_libtool_need_lc=$archive_cmds_need_lc
15260
15261# Whether or not to disallow shared libs when runtime libs are static
15262allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15263
15264# Whether or not to optimize for fast installation.
15265fast_install=$enable_fast_install
15266
15267# The host system.
15268host_alias=$host_alias
15269host=$host
15270host_os=$host_os
15271
15272# The build system.
15273build_alias=$build_alias
15274build=$build
15275build_os=$build_os
15276
15277# An echo program that does not interpret backslashes.
15278echo=$lt_echo
15279
15280# The archiver.
15281AR=$lt_AR
15282AR_FLAGS=$lt_AR_FLAGS
15283
15284# A C compiler.
15285LTCC=$lt_LTCC
15286
15287# LTCC compiler flags.
15288LTCFLAGS=$lt_LTCFLAGS
15289
15290# A language-specific compiler.
15291CC=$lt_compiler
15292
15293# Is the compiler the GNU C compiler?
15294with_gcc=$GCC
15295
15296# An ERE matcher.
15297EGREP=$lt_EGREP
15298
15299# The linker used to build libraries.
15300LD=$lt_LD
15301
15302# Whether we need hard or soft links.
15303LN_S=$lt_LN_S
15304
15305# A BSD-compatible nm program.
15306NM=$lt_NM
15307
15308# A symbol stripping program
15309STRIP=$lt_STRIP
15310
15311# Used to examine libraries when file_magic_cmd begins "file"
15312MAGIC_CMD=$MAGIC_CMD
15313
15314# Used on cygwin: DLL creation program.
15315DLLTOOL="$DLLTOOL"
15316
15317# Used on cygwin: object dumper.
15318OBJDUMP="$OBJDUMP"
15319
15320# Used on cygwin: assembler.
15321AS="$AS"
15322
15323# The name of the directory that contains temporary libtool files.
15324objdir=$objdir
15325
15326# How to create reloadable object files.
15327reload_flag=$lt_reload_flag
15328reload_cmds=$lt_reload_cmds
15329
15330# How to pass a linker flag through the compiler.
15331wl=$lt_lt_prog_compiler_wl
15332
15333# Object file suffix (normally "o").
15334objext="$ac_objext"
15335
15336# Old archive suffix (normally "a").
15337libext="$libext"
15338
15339# Shared library suffix (normally ".so").
15340shrext_cmds='$shrext_cmds'
15341
15342# Executable file suffix (normally "").
15343exeext="$exeext"
15344
15345# Additional compiler flags for building library objects.
15346pic_flag=$lt_lt_prog_compiler_pic
15347pic_mode=$pic_mode
15348
15349# What is the maximum length of a command?
15350max_cmd_len=$lt_cv_sys_max_cmd_len
15351
15352# Does compiler simultaneously support -c and -o options?
15353compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15354
15355# Must we lock files when doing compilation?
15356need_locks=$lt_need_locks
15357
15358# Do we need the lib prefix for modules?
15359need_lib_prefix=$need_lib_prefix
15360
15361# Do we need a version for libraries?
15362need_version=$need_version
15363
15364# Whether dlopen is supported.
15365dlopen_support=$enable_dlopen
15366
15367# Whether dlopen of programs is supported.
15368dlopen_self=$enable_dlopen_self
15369
15370# Whether dlopen of statically linked programs is supported.
15371dlopen_self_static=$enable_dlopen_self_static
15372
15373# Compiler flag to prevent dynamic linking.
15374link_static_flag=$lt_lt_prog_compiler_static
15375
15376# Compiler flag to turn off builtin functions.
15377no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15378
15379# Compiler flag to allow reflexive dlopens.
15380export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15381
15382# Compiler flag to generate shared objects directly from archives.
15383whole_archive_flag_spec=$lt_whole_archive_flag_spec
15384
15385# Compiler flag to generate thread-safe objects.
15386thread_safe_flag_spec=$lt_thread_safe_flag_spec
15387
15388# Library versioning type.
15389version_type=$version_type
15390
15391# Format of library name prefix.
15392libname_spec=$lt_libname_spec
15393
15394# List of archive names.  First name is the real one, the rest are links.
15395# The last name is the one that the linker finds with -lNAME.
15396library_names_spec=$lt_library_names_spec
15397
15398# The coded name of the library, if different from the real name.
15399soname_spec=$lt_soname_spec
15400
15401# Commands used to build and install an old-style archive.
15402RANLIB=$lt_RANLIB
15403old_archive_cmds=$lt_old_archive_cmds
15404old_postinstall_cmds=$lt_old_postinstall_cmds
15405old_postuninstall_cmds=$lt_old_postuninstall_cmds
15406
15407# Create an old-style archive from a shared archive.
15408old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15409
15410# Create a temporary old-style archive to link instead of a shared archive.
15411old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15412
15413# Commands used to build and install a shared archive.
15414archive_cmds=$lt_archive_cmds
15415archive_expsym_cmds=$lt_archive_expsym_cmds
15416postinstall_cmds=$lt_postinstall_cmds
15417postuninstall_cmds=$lt_postuninstall_cmds
15418
15419# Commands used to build a loadable module (assumed same as above if empty)
15420module_cmds=$lt_module_cmds
15421module_expsym_cmds=$lt_module_expsym_cmds
15422
15423# Commands to strip libraries.
15424old_striplib=$lt_old_striplib
15425striplib=$lt_striplib
15426
15427# Dependencies to place before the objects being linked to create a
15428# shared library.
15429predep_objects=$lt_predep_objects
15430
15431# Dependencies to place after the objects being linked to create a
15432# shared library.
15433postdep_objects=$lt_postdep_objects
15434
15435# Dependencies to place before the objects being linked to create a
15436# shared library.
15437predeps=$lt_predeps
15438
15439# Dependencies to place after the objects being linked to create a
15440# shared library.
15441postdeps=$lt_postdeps
15442
15443# The directories searched by this compiler when creating a shared
15444# library
15445compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
15446
15447# The library search path used internally by the compiler when linking
15448# a shared library.
15449compiler_lib_search_path=$lt_compiler_lib_search_path
15450
15451# Method to check whether dependent libraries are shared objects.
15452deplibs_check_method=$lt_deplibs_check_method
15453
15454# Command to use when deplibs_check_method == file_magic.
15455file_magic_cmd=$lt_file_magic_cmd
15456
15457# Flag that allows shared libraries with undefined symbols to be built.
15458allow_undefined_flag=$lt_allow_undefined_flag
15459
15460# Flag that forces no undefined symbols.
15461no_undefined_flag=$lt_no_undefined_flag
15462
15463# Commands used to finish a libtool library installation in a directory.
15464finish_cmds=$lt_finish_cmds
15465
15466# Same as above, but a single script fragment to be evaled but not shown.
15467finish_eval=$lt_finish_eval
15468
15469# Take the output of nm and produce a listing of raw symbols and C names.
15470global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15471
15472# Transform the output of nm in a proper C declaration
15473global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15474
15475# Transform the output of nm in a C name address pair
15476global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15477
15478# This is the shared library runtime path variable.
15479runpath_var=$runpath_var
15480
15481# This is the shared library path variable.
15482shlibpath_var=$shlibpath_var
15483
15484# Is shlibpath searched before the hard-coded library search path?
15485shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15486
15487# How to hardcode a shared library path into an executable.
15488hardcode_action=$hardcode_action
15489
15490# Whether we should hardcode library paths into libraries.
15491hardcode_into_libs=$hardcode_into_libs
15492
15493# Flag to hardcode \$libdir into a binary during linking.
15494# This must work even if \$libdir does not exist.
15495hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15496
15497# If ld is used when linking, flag to hardcode \$libdir into
15498# a binary during linking. This must work even if \$libdir does
15499# not exist.
15500hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15501
15502# Whether we need a single -rpath flag with a separated argument.
15503hardcode_libdir_separator=$lt_hardcode_libdir_separator
15504
15505# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15506# resulting binary.
15507hardcode_direct=$hardcode_direct
15508
15509# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15510# resulting binary.
15511hardcode_minus_L=$hardcode_minus_L
15512
15513# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15514# the resulting binary.
15515hardcode_shlibpath_var=$hardcode_shlibpath_var
15516
15517# Set to yes if building a shared library automatically hardcodes DIR into the library
15518# and all subsequent libraries and executables linked against it.
15519hardcode_automatic=$hardcode_automatic
15520
15521# Variables whose values should be saved in libtool wrapper scripts and
15522# restored at relink time.
15523variables_saved_for_relink="$variables_saved_for_relink"
15524
15525# Whether libtool must link a program against all its dependency libraries.
15526link_all_deplibs=$link_all_deplibs
15527
15528# Compile-time system search path for libraries
15529sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15530
15531# Run-time system search path for libraries
15532sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15533
15534# Fix the shell variable \$srcfile for the compiler.
15535fix_srcfile_path=$lt_fix_srcfile_path
15536
15537# Set to yes if exported symbols are required.
15538always_export_symbols=$always_export_symbols
15539
15540# The commands to list exported symbols.
15541export_symbols_cmds=$lt_export_symbols_cmds
15542
15543# The commands to extract the exported symbol list from a shared archive.
15544extract_expsyms_cmds=$lt_extract_expsyms_cmds
15545
15546# Symbols that should not be listed in the preloaded symbols.
15547exclude_expsyms=$lt_exclude_expsyms
15548
15549# Symbols that must always be exported.
15550include_expsyms=$lt_include_expsyms
15551
15552# ### END LIBTOOL CONFIG
15553
15554__EOF__
15555
15556
15557  case $host_os in
15558  aix3*)
15559    cat <<\EOF >> "$cfgfile"
15560
15561# AIX sometimes has problems with the GCC collect2 program.  For some
15562# reason, if we set the COLLECT_NAMES environment variable, the problems
15563# vanish in a puff of smoke.
15564if test "X${COLLECT_NAMES+set}" != Xset; then
15565  COLLECT_NAMES=
15566  export COLLECT_NAMES
15567fi
15568EOF
15569    ;;
15570  esac
15571
15572  # We use sed instead of cat because bash on DJGPP gets confused if
15573  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15574  # text mode, it properly converts lines to CR/LF.  This bash problem
15575  # is reportedly fixed, but why not run on old versions too?
15576  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15577
15578  mv -f "$cfgfile" "$ofile" || \
15579    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15580  chmod +x "$ofile"
15581
15582else
15583  # If there is no Makefile yet, we rely on a make rule to execute
15584  # `config.status --recheck' to rerun these tests and create the
15585  # libtool script then.
15586  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15587  if test -f "$ltmain_in"; then
15588    test -f Makefile && make "$ltmain"
15589  fi
15590fi
15591
15592
15593ac_ext=c
15594ac_cpp='$CPP $CPPFLAGS'
15595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15597ac_compiler_gnu=$ac_cv_c_compiler_gnu
15598
15599CC="$lt_save_CC"
15600
15601
15602# Check whether --with-tags was given.
15603if test "${with_tags+set}" = set; then :
15604  withval=$with_tags; tagnames="$withval"
15605fi
15606
15607
15608if test -f "$ltmain" && test -n "$tagnames"; then
15609  if test ! -f "${ofile}"; then
15610    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
15611$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15612  fi
15613
15614  if test -z "$LTCC"; then
15615    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15616    if test -z "$LTCC"; then
15617      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15618$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15619    else
15620      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15621$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15622    fi
15623  fi
15624  if test -z "$LTCFLAGS"; then
15625    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
15626  fi
15627
15628  # Extract list of available tagged configurations in $ofile.
15629  # Note that this assumes the entire list is on one line.
15630  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15631
15632  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15633  for tagname in $tagnames; do
15634    IFS="$lt_save_ifs"
15635    # Check whether tagname contains only valid characters
15636    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15637    "") ;;
15638    *)  as_fn_error "invalid tag name: $tagname" "$LINENO" 5
15639	;;
15640    esac
15641
15642    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15643    then
15644      as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
15645    fi
15646
15647    # Update the list of available tags.
15648    if test -n "$tagname"; then
15649      echo appending configuration tag \"$tagname\" to $ofile
15650
15651      case $tagname in
15652      CXX)
15653	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15654	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15655	    (test "X$CXX" != "Xg++"))) ; then
15656	  ac_ext=cpp
15657ac_cpp='$CXXCPP $CPPFLAGS'
15658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15661
15662
15663
15664
15665archive_cmds_need_lc_CXX=no
15666allow_undefined_flag_CXX=
15667always_export_symbols_CXX=no
15668archive_expsym_cmds_CXX=
15669export_dynamic_flag_spec_CXX=
15670hardcode_direct_CXX=no
15671hardcode_libdir_flag_spec_CXX=
15672hardcode_libdir_flag_spec_ld_CXX=
15673hardcode_libdir_separator_CXX=
15674hardcode_minus_L_CXX=no
15675hardcode_shlibpath_var_CXX=unsupported
15676hardcode_automatic_CXX=no
15677module_cmds_CXX=
15678module_expsym_cmds_CXX=
15679link_all_deplibs_CXX=unknown
15680old_archive_cmds_CXX=$old_archive_cmds
15681no_undefined_flag_CXX=
15682whole_archive_flag_spec_CXX=
15683enable_shared_with_static_runtimes_CXX=no
15684
15685# Dependencies to place before and after the object being linked:
15686predep_objects_CXX=
15687postdep_objects_CXX=
15688predeps_CXX=
15689postdeps_CXX=
15690compiler_lib_search_path_CXX=
15691compiler_lib_search_dirs_CXX=
15692
15693# Source file extension for C++ test sources.
15694ac_ext=cpp
15695
15696# Object file extension for compiled C++ test sources.
15697objext=o
15698objext_CXX=$objext
15699
15700# Code to be used in simple compile tests
15701lt_simple_compile_test_code="int some_variable = 0;"
15702
15703# Code to be used in simple link tests
15704lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15705
15706# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15707
15708# If no C compiler was specified, use CC.
15709LTCC=${LTCC-"$CC"}
15710
15711# If no C compiler flags were specified, use CFLAGS.
15712LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15713
15714# Allow CC to be a program name with arguments.
15715compiler=$CC
15716
15717
15718# save warnings/boilerplate of simple test code
15719ac_outfile=conftest.$ac_objext
15720echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15721eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15722_lt_compiler_boilerplate=`cat conftest.err`
15723$rm conftest*
15724
15725ac_outfile=conftest.$ac_objext
15726echo "$lt_simple_link_test_code" >conftest.$ac_ext
15727eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15728_lt_linker_boilerplate=`cat conftest.err`
15729$rm -r conftest*
15730
15731
15732# Allow CC to be a program name with arguments.
15733lt_save_CC=$CC
15734lt_save_LD=$LD
15735lt_save_GCC=$GCC
15736GCC=$GXX
15737lt_save_with_gnu_ld=$with_gnu_ld
15738lt_save_path_LD=$lt_cv_path_LD
15739if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15740  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15741else
15742  $as_unset lt_cv_prog_gnu_ld
15743fi
15744if test -n "${lt_cv_path_LDCXX+set}"; then
15745  lt_cv_path_LD=$lt_cv_path_LDCXX
15746else
15747  $as_unset lt_cv_path_LD
15748fi
15749test -z "${LDCXX+set}" || LD=$LDCXX
15750CC=${CXX-"c++"}
15751compiler=$CC
15752compiler_CXX=$CC
15753for cc_temp in $compiler""; do
15754  case $cc_temp in
15755    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15756    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15757    \-*) ;;
15758    *) break;;
15759  esac
15760done
15761cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15762
15763
15764# We don't want -fno-exception wen compiling C++ code, so set the
15765# no_builtin_flag separately
15766if test "$GXX" = yes; then
15767  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15768else
15769  lt_prog_compiler_no_builtin_flag_CXX=
15770fi
15771
15772if test "$GXX" = yes; then
15773  # Set up default GNU C++ configuration
15774
15775
15776# Check whether --with-gnu-ld was given.
15777if test "${with_gnu_ld+set}" = set; then :
15778  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15779else
15780  with_gnu_ld=no
15781fi
15782
15783ac_prog=ld
15784if test "$GCC" = yes; then
15785  # Check if gcc -print-prog-name=ld gives a path.
15786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15787$as_echo_n "checking for ld used by $CC... " >&6; }
15788  case $host in
15789  *-*-mingw*)
15790    # gcc leaves a trailing carriage return which upsets mingw
15791    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15792  *)
15793    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15794  esac
15795  case $ac_prog in
15796    # Accept absolute paths.
15797    [\\/]* | ?:[\\/]*)
15798      re_direlt='/[^/][^/]*/\.\./'
15799      # Canonicalize the pathname of ld
15800      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15801      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15802	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15803      done
15804      test -z "$LD" && LD="$ac_prog"
15805      ;;
15806  "")
15807    # If it fails, then pretend we aren't using GCC.
15808    ac_prog=ld
15809    ;;
15810  *)
15811    # If it is relative, then search for the first ld in PATH.
15812    with_gnu_ld=unknown
15813    ;;
15814  esac
15815elif test "$with_gnu_ld" = yes; then
15816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15817$as_echo_n "checking for GNU ld... " >&6; }
15818else
15819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15820$as_echo_n "checking for non-GNU ld... " >&6; }
15821fi
15822if test "${lt_cv_path_LD+set}" = set; then :
15823  $as_echo_n "(cached) " >&6
15824else
15825  if test -z "$LD"; then
15826  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15827  for ac_dir in $PATH; do
15828    IFS="$lt_save_ifs"
15829    test -z "$ac_dir" && ac_dir=.
15830    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15831      lt_cv_path_LD="$ac_dir/$ac_prog"
15832      # Check to see if the program is GNU ld.  I'd rather use --version,
15833      # but apparently some variants of GNU ld only accept -v.
15834      # Break only if it was the GNU/non-GNU ld that we prefer.
15835      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15836      *GNU* | *'with BFD'*)
15837	test "$with_gnu_ld" != no && break
15838	;;
15839      *)
15840	test "$with_gnu_ld" != yes && break
15841	;;
15842      esac
15843    fi
15844  done
15845  IFS="$lt_save_ifs"
15846else
15847  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15848fi
15849fi
15850
15851LD="$lt_cv_path_LD"
15852if test -n "$LD"; then
15853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15854$as_echo "$LD" >&6; }
15855else
15856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15857$as_echo "no" >&6; }
15858fi
15859test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15861$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15862if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15863  $as_echo_n "(cached) " >&6
15864else
15865  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15866case `$LD -v 2>&1 </dev/null` in
15867*GNU* | *'with BFD'*)
15868  lt_cv_prog_gnu_ld=yes
15869  ;;
15870*)
15871  lt_cv_prog_gnu_ld=no
15872  ;;
15873esac
15874fi
15875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15876$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15877with_gnu_ld=$lt_cv_prog_gnu_ld
15878
15879
15880
15881  # Check if GNU C++ uses GNU ld as the underlying linker, since the
15882  # archiving commands below assume that GNU ld is being used.
15883  if test "$with_gnu_ld" = yes; then
15884    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15885    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15886
15887    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15888    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15889
15890    # If archive_cmds runs LD, not CC, wlarc should be empty
15891    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15892    #     investigate it a little bit more. (MM)
15893    wlarc='${wl}'
15894
15895    # ancient GNU ld didn't support --whole-archive et. al.
15896    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15897	grep 'no-whole-archive' > /dev/null; then
15898      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15899    else
15900      whole_archive_flag_spec_CXX=
15901    fi
15902  else
15903    with_gnu_ld=no
15904    wlarc=
15905
15906    # A generic and very simple default shared library creation
15907    # command for GNU C++ for the case where it uses the native
15908    # linker, instead of GNU ld.  If possible, this setting should
15909    # overridden to take advantage of the native linker features on
15910    # the platform it is being used on.
15911    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15912  fi
15913
15914  # Commands to make compiler produce verbose output that lists
15915  # what "hidden" libraries, object files and flags are used when
15916  # linking a shared library.
15917  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15918
15919else
15920  GXX=no
15921  with_gnu_ld=no
15922  wlarc=
15923fi
15924
15925# PORTME: fill in a description of your system's C++ link characteristics
15926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15927$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15928ld_shlibs_CXX=yes
15929case $host_os in
15930  aix3*)
15931    # FIXME: insert proper C++ library support
15932    ld_shlibs_CXX=no
15933    ;;
15934  aix[4-9]*)
15935    if test "$host_cpu" = ia64; then
15936      # On IA64, the linker does run time linking by default, so we don't
15937      # have to do anything special.
15938      aix_use_runtimelinking=no
15939      exp_sym_flag='-Bexport'
15940      no_entry_flag=""
15941    else
15942      aix_use_runtimelinking=no
15943
15944      # Test if we are trying to use run time linking or normal
15945      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15946      # need to do runtime linking.
15947      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15948	for ld_flag in $LDFLAGS; do
15949	  case $ld_flag in
15950	  *-brtl*)
15951	    aix_use_runtimelinking=yes
15952	    break
15953	    ;;
15954	  esac
15955	done
15956	;;
15957      esac
15958
15959      exp_sym_flag='-bexport'
15960      no_entry_flag='-bnoentry'
15961    fi
15962
15963    # When large executables or shared objects are built, AIX ld can
15964    # have problems creating the table of contents.  If linking a library
15965    # or program results in "error TOC overflow" add -mminimal-toc to
15966    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15967    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15968
15969    archive_cmds_CXX=''
15970    hardcode_direct_CXX=yes
15971    hardcode_libdir_separator_CXX=':'
15972    link_all_deplibs_CXX=yes
15973
15974    if test "$GXX" = yes; then
15975      case $host_os in aix4.[012]|aix4.[012].*)
15976      # We only want to do this on AIX 4.2 and lower, the check
15977      # below for broken collect2 doesn't work under 4.3+
15978	collect2name=`${CC} -print-prog-name=collect2`
15979	if test -f "$collect2name" && \
15980	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15981	then
15982	  # We have reworked collect2
15983	  :
15984	else
15985	  # We have old collect2
15986	  hardcode_direct_CXX=unsupported
15987	  # It fails to find uninstalled libraries when the uninstalled
15988	  # path is not listed in the libpath.  Setting hardcode_minus_L
15989	  # to unsupported forces relinking
15990	  hardcode_minus_L_CXX=yes
15991	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15992	  hardcode_libdir_separator_CXX=
15993	fi
15994	;;
15995      esac
15996      shared_flag='-shared'
15997      if test "$aix_use_runtimelinking" = yes; then
15998	shared_flag="$shared_flag "'${wl}-G'
15999      fi
16000    else
16001      # not using gcc
16002      if test "$host_cpu" = ia64; then
16003	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16004	# chokes on -Wl,-G. The following line is correct:
16005	shared_flag='-G'
16006      else
16007	if test "$aix_use_runtimelinking" = yes; then
16008	  shared_flag='${wl}-G'
16009	else
16010	  shared_flag='${wl}-bM:SRE'
16011	fi
16012      fi
16013    fi
16014
16015    # It seems that -bexpall does not export symbols beginning with
16016    # underscore (_), so it is better to generate a list of symbols to export.
16017    always_export_symbols_CXX=yes
16018    if test "$aix_use_runtimelinking" = yes; then
16019      # Warning - without using the other runtime loading flags (-brtl),
16020      # -berok will link without error, but may produce a broken library.
16021      allow_undefined_flag_CXX='-berok'
16022      # Determine the default libpath from the value encoded in an empty executable.
16023      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024/* end confdefs.h.  */
16025
16026int
16027main ()
16028{
16029
16030  ;
16031  return 0;
16032}
16033_ACEOF
16034if ac_fn_cxx_try_link "$LINENO"; then :
16035
16036lt_aix_libpath_sed='
16037    /Import File Strings/,/^$/ {
16038	/^0/ {
16039	    s/^0  *\(.*\)$/\1/
16040	    p
16041	}
16042    }'
16043aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16044# Check for a 64-bit object if we didn't find anything.
16045if test -z "$aix_libpath"; then
16046  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16047fi
16048fi
16049rm -f core conftest.err conftest.$ac_objext \
16050    conftest$ac_exeext conftest.$ac_ext
16051if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16052
16053      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16054
16055      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16056     else
16057      if test "$host_cpu" = ia64; then
16058	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16059	allow_undefined_flag_CXX="-z nodefs"
16060	archive_expsym_cmds_CXX="\$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"
16061      else
16062	# Determine the default libpath from the value encoded in an empty executable.
16063	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064/* end confdefs.h.  */
16065
16066int
16067main ()
16068{
16069
16070  ;
16071  return 0;
16072}
16073_ACEOF
16074if ac_fn_cxx_try_link "$LINENO"; then :
16075
16076lt_aix_libpath_sed='
16077    /Import File Strings/,/^$/ {
16078	/^0/ {
16079	    s/^0  *\(.*\)$/\1/
16080	    p
16081	}
16082    }'
16083aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16084# Check for a 64-bit object if we didn't find anything.
16085if test -z "$aix_libpath"; then
16086  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16087fi
16088fi
16089rm -f core conftest.err conftest.$ac_objext \
16090    conftest$ac_exeext conftest.$ac_ext
16091if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16092
16093	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16094	# Warning - without using the other run time loading flags,
16095	# -berok will link without error, but may produce a broken library.
16096	no_undefined_flag_CXX=' ${wl}-bernotok'
16097	allow_undefined_flag_CXX=' ${wl}-berok'
16098	# Exported symbols can be pulled into shared objects from archives
16099	whole_archive_flag_spec_CXX='$convenience'
16100	archive_cmds_need_lc_CXX=yes
16101	# This is similar to how AIX traditionally builds its shared libraries.
16102	archive_expsym_cmds_CXX="\$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'
16103      fi
16104    fi
16105    ;;
16106
16107  beos*)
16108    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16109      allow_undefined_flag_CXX=unsupported
16110      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16111      # support --undefined.  This deserves some investigation.  FIXME
16112      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16113    else
16114      ld_shlibs_CXX=no
16115    fi
16116    ;;
16117
16118  chorus*)
16119    case $cc_basename in
16120      *)
16121	# FIXME: insert proper C++ library support
16122	ld_shlibs_CXX=no
16123	;;
16124    esac
16125    ;;
16126
16127  cygwin* | mingw* | pw32*)
16128    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16129    # as there is no search path for DLLs.
16130    hardcode_libdir_flag_spec_CXX='-L$libdir'
16131    allow_undefined_flag_CXX=unsupported
16132    always_export_symbols_CXX=no
16133    enable_shared_with_static_runtimes_CXX=yes
16134
16135    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16136      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16137      # If the export-symbols file already is a .def file (1st line
16138      # is EXPORTS), use it as is; otherwise, prepend...
16139      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16140	cp $export_symbols $output_objdir/$soname.def;
16141      else
16142	echo EXPORTS > $output_objdir/$soname.def;
16143	cat $export_symbols >> $output_objdir/$soname.def;
16144      fi~
16145      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16146    else
16147      ld_shlibs_CXX=no
16148    fi
16149  ;;
16150      darwin* | rhapsody*)
16151      archive_cmds_need_lc_CXX=no
16152      hardcode_direct_CXX=no
16153      hardcode_automatic_CXX=yes
16154      hardcode_shlibpath_var_CXX=unsupported
16155      whole_archive_flag_spec_CXX=''
16156      link_all_deplibs_CXX=yes
16157      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16158      if test "$GXX" = yes ; then
16159      output_verbose_link_cmd='echo'
16160      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16161      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16162      archive_expsym_cmds_CXX="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}"
16163      module_expsym_cmds_CXX="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}"
16164      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16165        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
16166        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
16167      fi
16168      else
16169      case $cc_basename in
16170        xlc*)
16171         output_verbose_link_cmd='echo'
16172          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16173          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16174          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16175          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16176          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16177          ;;
16178       *)
16179         ld_shlibs_CXX=no
16180          ;;
16181      esac
16182      fi
16183        ;;
16184
16185  dgux*)
16186    case $cc_basename in
16187      ec++*)
16188	# FIXME: insert proper C++ library support
16189	ld_shlibs_CXX=no
16190	;;
16191      ghcx*)
16192	# Green Hills C++ Compiler
16193	# FIXME: insert proper C++ library support
16194	ld_shlibs_CXX=no
16195	;;
16196      *)
16197	# FIXME: insert proper C++ library support
16198	ld_shlibs_CXX=no
16199	;;
16200    esac
16201    ;;
16202  freebsd[12]*)
16203    # C++ shared libraries reported to be fairly broken before switch to ELF
16204    ld_shlibs_CXX=no
16205    ;;
16206  freebsd-elf*)
16207    archive_cmds_need_lc_CXX=no
16208    ;;
16209  freebsd* | dragonfly*)
16210    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16211    # conventions
16212    ld_shlibs_CXX=yes
16213    ;;
16214  gnu*)
16215    ;;
16216  hpux9*)
16217    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16218    hardcode_libdir_separator_CXX=:
16219    export_dynamic_flag_spec_CXX='${wl}-E'
16220    hardcode_direct_CXX=yes
16221    hardcode_minus_L_CXX=yes # Not in the search PATH,
16222				# but as the default
16223				# location of the library.
16224
16225    case $cc_basename in
16226    CC*)
16227      # FIXME: insert proper C++ library support
16228      ld_shlibs_CXX=no
16229      ;;
16230    aCC*)
16231      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16232      # Commands to make compiler produce verbose output that lists
16233      # what "hidden" libraries, object files and flags are used when
16234      # linking a shared library.
16235      #
16236      # There doesn't appear to be a way to prevent this compiler from
16237      # explicitly linking system object files so we need to strip them
16238      # from the output so that they don't get included in the library
16239      # dependencies.
16240      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16241      ;;
16242    *)
16243      if test "$GXX" = yes; then
16244        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16245      else
16246        # FIXME: insert proper C++ library support
16247        ld_shlibs_CXX=no
16248      fi
16249      ;;
16250    esac
16251    ;;
16252  hpux10*|hpux11*)
16253    if test $with_gnu_ld = no; then
16254      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16255      hardcode_libdir_separator_CXX=:
16256
16257      case $host_cpu in
16258      hppa*64*|ia64*) ;;
16259      *)
16260	export_dynamic_flag_spec_CXX='${wl}-E'
16261        ;;
16262      esac
16263    fi
16264    case $host_cpu in
16265    hppa*64*|ia64*)
16266      hardcode_direct_CXX=no
16267      hardcode_shlibpath_var_CXX=no
16268      ;;
16269    *)
16270      hardcode_direct_CXX=yes
16271      hardcode_minus_L_CXX=yes # Not in the search PATH,
16272					      # but as the default
16273					      # location of the library.
16274      ;;
16275    esac
16276
16277    case $cc_basename in
16278      CC*)
16279	# FIXME: insert proper C++ library support
16280	ld_shlibs_CXX=no
16281	;;
16282      aCC*)
16283	case $host_cpu in
16284	hppa*64*)
16285	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16286	  ;;
16287	ia64*)
16288	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16289	  ;;
16290	*)
16291	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16292	  ;;
16293	esac
16294	# Commands to make compiler produce verbose output that lists
16295	# what "hidden" libraries, object files and flags are used when
16296	# linking a shared library.
16297	#
16298	# There doesn't appear to be a way to prevent this compiler from
16299	# explicitly linking system object files so we need to strip them
16300	# from the output so that they don't get included in the library
16301	# dependencies.
16302	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16303	;;
16304      *)
16305	if test "$GXX" = yes; then
16306	  if test $with_gnu_ld = no; then
16307	    case $host_cpu in
16308	    hppa*64*)
16309	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16310	      ;;
16311	    ia64*)
16312	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16313	      ;;
16314	    *)
16315	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16316	      ;;
16317	    esac
16318	  fi
16319	else
16320	  # FIXME: insert proper C++ library support
16321	  ld_shlibs_CXX=no
16322	fi
16323	;;
16324    esac
16325    ;;
16326  interix[3-9]*)
16327    hardcode_direct_CXX=no
16328    hardcode_shlibpath_var_CXX=no
16329    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16330    export_dynamic_flag_spec_CXX='${wl}-E'
16331    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16332    # Instead, shared libraries are loaded at an image base (0x10000000 by
16333    # default) and relocated if they conflict, which is a slow very memory
16334    # consuming and fragmenting process.  To avoid this, we pick a random,
16335    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16336    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16337    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16338    archive_expsym_cmds_CXX='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'
16339    ;;
16340  irix5* | irix6*)
16341    case $cc_basename in
16342      CC*)
16343	# SGI C++
16344	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16345
16346	# Archives containing C++ object files must be created using
16347	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16348	# necessary to make sure instantiated templates are included
16349	# in the archive.
16350	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16351	;;
16352      *)
16353	if test "$GXX" = yes; then
16354	  if test "$with_gnu_ld" = no; then
16355	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16356	  else
16357	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
16358	  fi
16359	fi
16360	link_all_deplibs_CXX=yes
16361	;;
16362    esac
16363    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16364    hardcode_libdir_separator_CXX=:
16365    ;;
16366  linux* | k*bsd*-gnu)
16367    case $cc_basename in
16368      KCC*)
16369	# Kuck and Associates, Inc. (KAI) C++ Compiler
16370
16371	# KCC will only create a shared library if the output file
16372	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16373	# to its proper name (with version) after linking.
16374	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16375	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
16376	# Commands to make compiler produce verbose output that lists
16377	# what "hidden" libraries, object files and flags are used when
16378	# linking a shared library.
16379	#
16380	# There doesn't appear to be a way to prevent this compiler from
16381	# explicitly linking system object files so we need to strip them
16382	# from the output so that they don't get included in the library
16383	# dependencies.
16384	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16385
16386	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16387	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16388
16389	# Archives containing C++ object files must be created using
16390	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
16391	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16392	;;
16393      icpc*)
16394	# Intel C++
16395	with_gnu_ld=yes
16396	# version 8.0 and above of icpc choke on multiply defined symbols
16397	# if we add $predep_objects and $postdep_objects, however 7.1 and
16398	# earlier do not add the objects themselves.
16399	case `$CC -V 2>&1` in
16400	*"Version 7."*)
16401  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16402  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16403	  ;;
16404	*)  # Version 8.0 or newer
16405	  tmp_idyn=
16406	  case $host_cpu in
16407	    ia64*) tmp_idyn=' -i_dynamic';;
16408	  esac
16409  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16410	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16411	  ;;
16412	esac
16413	archive_cmds_need_lc_CXX=no
16414	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16415	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16416	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16417	;;
16418      pgCC* | pgcpp*)
16419        # Portland Group C++ compiler
16420	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16421  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16422
16423	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16424	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16425	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16426        ;;
16427      cxx*)
16428	# Compaq C++
16429	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16430	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
16431
16432	runpath_var=LD_RUN_PATH
16433	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16434	hardcode_libdir_separator_CXX=:
16435
16436	# Commands to make compiler produce verbose output that lists
16437	# what "hidden" libraries, object files and flags are used when
16438	# linking a shared library.
16439	#
16440	# There doesn't appear to be a way to prevent this compiler from
16441	# explicitly linking system object files so we need to strip them
16442	# from the output so that they don't get included in the library
16443	# dependencies.
16444	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16445	;;
16446      *)
16447	case `$CC -V 2>&1 | sed 5q` in
16448	*Sun\ C*)
16449	  # Sun C++ 5.9
16450	  no_undefined_flag_CXX=' -zdefs'
16451	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16452	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
16453	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16454	  whole_archive_flag_spec_CXX='${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'
16455
16456	  # Not sure whether something based on
16457	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16458	  # would be better.
16459	  output_verbose_link_cmd='echo'
16460
16461	  # Archives containing C++ object files must be created using
16462	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16463	  # necessary to make sure instantiated templates are included
16464	  # in the archive.
16465	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16466	  ;;
16467	esac
16468	;;
16469    esac
16470    ;;
16471  lynxos*)
16472    # FIXME: insert proper C++ library support
16473    ld_shlibs_CXX=no
16474    ;;
16475  m88k*)
16476    # FIXME: insert proper C++ library support
16477    ld_shlibs_CXX=no
16478    ;;
16479  mvs*)
16480    case $cc_basename in
16481      cxx*)
16482	# FIXME: insert proper C++ library support
16483	ld_shlibs_CXX=no
16484	;;
16485      *)
16486	# FIXME: insert proper C++ library support
16487	ld_shlibs_CXX=no
16488	;;
16489    esac
16490    ;;
16491  netbsd*)
16492    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16493      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16494      wlarc=
16495      hardcode_libdir_flag_spec_CXX='-R$libdir'
16496      hardcode_direct_CXX=yes
16497      hardcode_shlibpath_var_CXX=no
16498    fi
16499    # Workaround some broken pre-1.5 toolchains
16500    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16501    ;;
16502  openbsd2*)
16503    # C++ shared libraries are fairly broken
16504    ld_shlibs_CXX=no
16505    ;;
16506  openbsd*)
16507    if test -f /usr/libexec/ld.so; then
16508      hardcode_direct_CXX=yes
16509      hardcode_shlibpath_var_CXX=no
16510      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16511      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16512      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16513	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16514	export_dynamic_flag_spec_CXX='${wl}-E'
16515	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16516      fi
16517      output_verbose_link_cmd='echo'
16518    else
16519      ld_shlibs_CXX=no
16520    fi
16521    ;;
16522  osf3*)
16523    case $cc_basename in
16524      KCC*)
16525	# Kuck and Associates, Inc. (KAI) C++ Compiler
16526
16527	# KCC will only create a shared library if the output file
16528	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16529	# to its proper name (with version) after linking.
16530	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16531
16532	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16533	hardcode_libdir_separator_CXX=:
16534
16535	# Archives containing C++ object files must be created using
16536	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
16537	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16538
16539	;;
16540      RCC*)
16541	# Rational C++ 2.4.1
16542	# FIXME: insert proper C++ library support
16543	ld_shlibs_CXX=no
16544	;;
16545      cxx*)
16546	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16547	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16548
16549	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16550	hardcode_libdir_separator_CXX=:
16551
16552	# Commands to make compiler produce verbose output that lists
16553	# what "hidden" libraries, object files and flags are used when
16554	# linking a shared library.
16555	#
16556	# There doesn't appear to be a way to prevent this compiler from
16557	# explicitly linking system object files so we need to strip them
16558	# from the output so that they don't get included in the library
16559	# dependencies.
16560	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16561	;;
16562      *)
16563	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16564	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16565	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16566
16567	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16568	  hardcode_libdir_separator_CXX=:
16569
16570	  # Commands to make compiler produce verbose output that lists
16571	  # what "hidden" libraries, object files and flags are used when
16572	  # linking a shared library.
16573	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16574
16575	else
16576	  # FIXME: insert proper C++ library support
16577	  ld_shlibs_CXX=no
16578	fi
16579	;;
16580    esac
16581    ;;
16582  osf4* | osf5*)
16583    case $cc_basename in
16584      KCC*)
16585	# Kuck and Associates, Inc. (KAI) C++ Compiler
16586
16587	# KCC will only create a shared library if the output file
16588	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16589	# to its proper name (with version) after linking.
16590	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16591
16592	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16593	hardcode_libdir_separator_CXX=:
16594
16595	# Archives containing C++ object files must be created using
16596	# the KAI C++ compiler.
16597	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16598	;;
16599      RCC*)
16600	# Rational C++ 2.4.1
16601	# FIXME: insert proper C++ library support
16602	ld_shlibs_CXX=no
16603	;;
16604      cxx*)
16605	allow_undefined_flag_CXX=' -expect_unresolved \*'
16606	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16607	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16608	  echo "-hidden">> $lib.exp~
16609	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
16610	  $rm $lib.exp'
16611
16612	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16613	hardcode_libdir_separator_CXX=:
16614
16615	# Commands to make compiler produce verbose output that lists
16616	# what "hidden" libraries, object files and flags are used when
16617	# linking a shared library.
16618	#
16619	# There doesn't appear to be a way to prevent this compiler from
16620	# explicitly linking system object files so we need to strip them
16621	# from the output so that they don't get included in the library
16622	# dependencies.
16623	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16624	;;
16625      *)
16626	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16627	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16628	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16629
16630	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16631	  hardcode_libdir_separator_CXX=:
16632
16633	  # Commands to make compiler produce verbose output that lists
16634	  # what "hidden" libraries, object files and flags are used when
16635	  # linking a shared library.
16636	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16637
16638	else
16639	  # FIXME: insert proper C++ library support
16640	  ld_shlibs_CXX=no
16641	fi
16642	;;
16643    esac
16644    ;;
16645  psos*)
16646    # FIXME: insert proper C++ library support
16647    ld_shlibs_CXX=no
16648    ;;
16649  sunos4*)
16650    case $cc_basename in
16651      CC*)
16652	# Sun C++ 4.x
16653	# FIXME: insert proper C++ library support
16654	ld_shlibs_CXX=no
16655	;;
16656      lcc*)
16657	# Lucid
16658	# FIXME: insert proper C++ library support
16659	ld_shlibs_CXX=no
16660	;;
16661      *)
16662	# FIXME: insert proper C++ library support
16663	ld_shlibs_CXX=no
16664	;;
16665    esac
16666    ;;
16667  solaris*)
16668    case $cc_basename in
16669      CC*)
16670	# Sun C++ 4.2, 5.x and Centerline C++
16671        archive_cmds_need_lc_CXX=yes
16672	no_undefined_flag_CXX=' -zdefs'
16673	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16674	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16675	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16676
16677	hardcode_libdir_flag_spec_CXX='-R$libdir'
16678	hardcode_shlibpath_var_CXX=no
16679	case $host_os in
16680	  solaris2.[0-5] | solaris2.[0-5].*) ;;
16681	  *)
16682	    # The compiler driver will combine and reorder linker options,
16683	    # but understands `-z linker_flag'.
16684	    # Supported since Solaris 2.6 (maybe 2.5.1?)
16685	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16686	    ;;
16687	esac
16688	link_all_deplibs_CXX=yes
16689
16690	output_verbose_link_cmd='echo'
16691
16692	# Archives containing C++ object files must be created using
16693	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
16694	# necessary to make sure instantiated templates are included
16695	# in the archive.
16696	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16697	;;
16698      gcx*)
16699	# Green Hills C++ Compiler
16700	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16701
16702	# The C++ compiler must be used to create the archive.
16703	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16704	;;
16705      *)
16706	# GNU C++ compiler with Solaris linker
16707	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16708	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16709	  if $CC --version | grep -v '^2\.7' > /dev/null; then
16710	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16711	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16712		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16713
16714	    # Commands to make compiler produce verbose output that lists
16715	    # what "hidden" libraries, object files and flags are used when
16716	    # linking a shared library.
16717	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16718	  else
16719	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
16720	    # platform.
16721	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16722	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16723		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16724
16725	    # Commands to make compiler produce verbose output that lists
16726	    # what "hidden" libraries, object files and flags are used when
16727	    # linking a shared library.
16728	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16729	  fi
16730
16731	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16732	  case $host_os in
16733	  solaris2.[0-5] | solaris2.[0-5].*) ;;
16734	  *)
16735	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16736	    ;;
16737	  esac
16738	fi
16739	;;
16740    esac
16741    ;;
16742  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16743    no_undefined_flag_CXX='${wl}-z,text'
16744    archive_cmds_need_lc_CXX=no
16745    hardcode_shlibpath_var_CXX=no
16746    runpath_var='LD_RUN_PATH'
16747
16748    case $cc_basename in
16749      CC*)
16750	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16751	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16752	;;
16753      *)
16754	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16755	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16756	;;
16757    esac
16758    ;;
16759  sysv5* | sco3.2v5* | sco5v6*)
16760    # Note: We can NOT use -z defs as we might desire, because we do not
16761    # link with -lc, and that would cause any symbols used from libc to
16762    # always be unresolved, which means just about no library would
16763    # ever link correctly.  If we're not using GNU ld we use -z text
16764    # though, which does catch some bad symbols but isn't as heavy-handed
16765    # as -z defs.
16766    # For security reasons, it is highly recommended that you always
16767    # use absolute paths for naming shared libraries, and exclude the
16768    # DT_RUNPATH tag from executables and libraries.  But doing so
16769    # requires that you compile everything twice, which is a pain.
16770    # So that behaviour is only enabled if SCOABSPATH is set to a
16771    # non-empty value in the environment.  Most likely only useful for
16772    # creating official distributions of packages.
16773    # This is a hack until libtool officially supports absolute path
16774    # names for shared libraries.
16775    no_undefined_flag_CXX='${wl}-z,text'
16776    allow_undefined_flag_CXX='${wl}-z,nodefs'
16777    archive_cmds_need_lc_CXX=no
16778    hardcode_shlibpath_var_CXX=no
16779    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16780    hardcode_libdir_separator_CXX=':'
16781    link_all_deplibs_CXX=yes
16782    export_dynamic_flag_spec_CXX='${wl}-Bexport'
16783    runpath_var='LD_RUN_PATH'
16784
16785    case $cc_basename in
16786      CC*)
16787	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16788	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16789	;;
16790      *)
16791	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16792	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16793	;;
16794    esac
16795    ;;
16796  tandem*)
16797    case $cc_basename in
16798      NCC*)
16799	# NonStop-UX NCC 3.20
16800	# FIXME: insert proper C++ library support
16801	ld_shlibs_CXX=no
16802	;;
16803      *)
16804	# FIXME: insert proper C++ library support
16805	ld_shlibs_CXX=no
16806	;;
16807    esac
16808    ;;
16809  vxworks*)
16810    # FIXME: insert proper C++ library support
16811    ld_shlibs_CXX=no
16812    ;;
16813  *)
16814    # FIXME: insert proper C++ library support
16815    ld_shlibs_CXX=no
16816    ;;
16817esac
16818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16819$as_echo "$ld_shlibs_CXX" >&6; }
16820test "$ld_shlibs_CXX" = no && can_build_shared=no
16821
16822GCC_CXX="$GXX"
16823LD_CXX="$LD"
16824
16825## CAVEAT EMPTOR:
16826## There is no encapsulation within the following macros, do not change
16827## the running order or otherwise move them around unless you know exactly
16828## what you are doing...
16829cat > conftest.$ac_ext <<EOF
16830class Foo
16831{
16832public:
16833  Foo (void) { a = 0; }
16834private:
16835  int a;
16836};
16837EOF
16838
16839if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16840  (eval $ac_compile) 2>&5
16841  ac_status=$?
16842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16843  test $ac_status = 0; }; then
16844  # Parse the compiler output and extract the necessary
16845  # objects, libraries and library flags.
16846
16847  # Sentinel used to keep track of whether or not we are before
16848  # the conftest object file.
16849  pre_test_object_deps_done=no
16850
16851  # The `*' in the case matches for architectures that use `case' in
16852  # $output_verbose_cmd can trigger glob expansion during the loop
16853  # eval without this substitution.
16854  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
16855
16856  for p in `eval $output_verbose_link_cmd`; do
16857    case $p in
16858
16859    -L* | -R* | -l*)
16860       # Some compilers place space between "-{L,R}" and the path.
16861       # Remove the space.
16862       if test $p = "-L" \
16863	  || test $p = "-R"; then
16864	 prev=$p
16865	 continue
16866       else
16867	 prev=
16868       fi
16869
16870       if test "$pre_test_object_deps_done" = no; then
16871	 case $p in
16872	 -L* | -R*)
16873	   # Internal compiler library paths should come after those
16874	   # provided the user.  The postdeps already come after the
16875	   # user supplied libs so there is no need to process them.
16876	   if test -z "$compiler_lib_search_path_CXX"; then
16877	     compiler_lib_search_path_CXX="${prev}${p}"
16878	   else
16879	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16880	   fi
16881	   ;;
16882	 # The "-l" case would never come before the object being
16883	 # linked, so don't bother handling this case.
16884	 esac
16885       else
16886	 if test -z "$postdeps_CXX"; then
16887	   postdeps_CXX="${prev}${p}"
16888	 else
16889	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16890	 fi
16891       fi
16892       ;;
16893
16894    *.$objext)
16895       # This assumes that the test object file only shows up
16896       # once in the compiler output.
16897       if test "$p" = "conftest.$objext"; then
16898	 pre_test_object_deps_done=yes
16899	 continue
16900       fi
16901
16902       if test "$pre_test_object_deps_done" = no; then
16903	 if test -z "$predep_objects_CXX"; then
16904	   predep_objects_CXX="$p"
16905	 else
16906	   predep_objects_CXX="$predep_objects_CXX $p"
16907	 fi
16908       else
16909	 if test -z "$postdep_objects_CXX"; then
16910	   postdep_objects_CXX="$p"
16911	 else
16912	   postdep_objects_CXX="$postdep_objects_CXX $p"
16913	 fi
16914       fi
16915       ;;
16916
16917    *) ;; # Ignore the rest.
16918
16919    esac
16920  done
16921
16922  # Clean up.
16923  rm -f a.out a.exe
16924else
16925  echo "libtool.m4: error: problem compiling CXX test program"
16926fi
16927
16928$rm -f confest.$objext
16929
16930compiler_lib_search_dirs_CXX=
16931if test -n "$compiler_lib_search_path_CXX"; then
16932  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16933fi
16934
16935# PORTME: override above test on systems where it is broken
16936case $host_os in
16937interix[3-9]*)
16938  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16939  # hack all around it, let's just trust "g++" to DTRT.
16940  predep_objects_CXX=
16941  postdep_objects_CXX=
16942  postdeps_CXX=
16943  ;;
16944
16945linux*)
16946  case `$CC -V 2>&1 | sed 5q` in
16947  *Sun\ C*)
16948    # Sun C++ 5.9
16949    #
16950    # The more standards-conforming stlport4 library is
16951    # incompatible with the Cstd library. Avoid specifying
16952    # it if it's in CXXFLAGS. Ignore libCrun as
16953    # -library=stlport4 depends on it.
16954    case " $CXX $CXXFLAGS " in
16955    *" -library=stlport4 "*)
16956      solaris_use_stlport4=yes
16957      ;;
16958    esac
16959    if test "$solaris_use_stlport4" != yes; then
16960      postdeps_CXX='-library=Cstd -library=Crun'
16961    fi
16962    ;;
16963  esac
16964  ;;
16965
16966solaris*)
16967  case $cc_basename in
16968  CC*)
16969    # The more standards-conforming stlport4 library is
16970    # incompatible with the Cstd library. Avoid specifying
16971    # it if it's in CXXFLAGS. Ignore libCrun as
16972    # -library=stlport4 depends on it.
16973    case " $CXX $CXXFLAGS " in
16974    *" -library=stlport4 "*)
16975      solaris_use_stlport4=yes
16976      ;;
16977    esac
16978
16979    # Adding this requires a known-good setup of shared libraries for
16980    # Sun compiler versions before 5.6, else PIC objects from an old
16981    # archive will be linked into the output, leading to subtle bugs.
16982    if test "$solaris_use_stlport4" != yes; then
16983      postdeps_CXX='-library=Cstd -library=Crun'
16984    fi
16985    ;;
16986  esac
16987  ;;
16988esac
16989
16990case " $postdeps_CXX " in
16991*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16992esac
16993
16994lt_prog_compiler_wl_CXX=
16995lt_prog_compiler_pic_CXX=
16996lt_prog_compiler_static_CXX=
16997
16998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16999$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17000
17001  # C++ specific cases for pic, static, wl, etc.
17002  if test "$GXX" = yes; then
17003    lt_prog_compiler_wl_CXX='-Wl,'
17004    lt_prog_compiler_static_CXX='-static'
17005
17006    case $host_os in
17007    aix*)
17008      # All AIX code is PIC.
17009      if test "$host_cpu" = ia64; then
17010	# AIX 5 now supports IA64 processor
17011	lt_prog_compiler_static_CXX='-Bstatic'
17012      fi
17013      ;;
17014    amigaos*)
17015      # FIXME: we need at least 68020 code to build shared libraries, but
17016      # adding the `-m68020' flag to GCC prevents building anything better,
17017      # like `-m68040'.
17018      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17019      ;;
17020    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17021      # PIC is the default for these OSes.
17022      ;;
17023    mingw* | cygwin* | os2* | pw32*)
17024      # This hack is so that the source file can tell whether it is being
17025      # built for inclusion in a dll (and should export symbols for example).
17026      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17027      # (--disable-auto-import) libraries
17028      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17029      ;;
17030    darwin* | rhapsody*)
17031      # PIC is the default on this platform
17032      # Common symbols not allowed in MH_DYLIB files
17033      lt_prog_compiler_pic_CXX='-fno-common'
17034      ;;
17035    *djgpp*)
17036      # DJGPP does not support shared libraries at all
17037      lt_prog_compiler_pic_CXX=
17038      ;;
17039    interix[3-9]*)
17040      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17041      # Instead, we relocate shared libraries at runtime.
17042      ;;
17043    sysv4*MP*)
17044      if test -d /usr/nec; then
17045	lt_prog_compiler_pic_CXX=-Kconform_pic
17046      fi
17047      ;;
17048    hpux*)
17049      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17050      # not for PA HP-UX.
17051      case $host_cpu in
17052      hppa*64*|ia64*)
17053	;;
17054      *)
17055	lt_prog_compiler_pic_CXX='-fPIC'
17056	;;
17057      esac
17058      ;;
17059    *)
17060      lt_prog_compiler_pic_CXX='-fPIC'
17061      ;;
17062    esac
17063  else
17064    case $host_os in
17065      aix[4-9]*)
17066	# All AIX code is PIC.
17067	if test "$host_cpu" = ia64; then
17068	  # AIX 5 now supports IA64 processor
17069	  lt_prog_compiler_static_CXX='-Bstatic'
17070	else
17071	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17072	fi
17073	;;
17074      chorus*)
17075	case $cc_basename in
17076	cxch68*)
17077	  # Green Hills C++ Compiler
17078	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17079	  ;;
17080	esac
17081	;;
17082       darwin*)
17083         # PIC is the default on this platform
17084         # Common symbols not allowed in MH_DYLIB files
17085         case $cc_basename in
17086           xlc*)
17087           lt_prog_compiler_pic_CXX='-qnocommon'
17088           lt_prog_compiler_wl_CXX='-Wl,'
17089           ;;
17090         esac
17091       ;;
17092      dgux*)
17093	case $cc_basename in
17094	  ec++*)
17095	    lt_prog_compiler_pic_CXX='-KPIC'
17096	    ;;
17097	  ghcx*)
17098	    # Green Hills C++ Compiler
17099	    lt_prog_compiler_pic_CXX='-pic'
17100	    ;;
17101	  *)
17102	    ;;
17103	esac
17104	;;
17105      freebsd* | dragonfly*)
17106	# FreeBSD uses GNU C++
17107	;;
17108      hpux9* | hpux10* | hpux11*)
17109	case $cc_basename in
17110	  CC*)
17111	    lt_prog_compiler_wl_CXX='-Wl,'
17112	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17113	    if test "$host_cpu" != ia64; then
17114	      lt_prog_compiler_pic_CXX='+Z'
17115	    fi
17116	    ;;
17117	  aCC*)
17118	    lt_prog_compiler_wl_CXX='-Wl,'
17119	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17120	    case $host_cpu in
17121	    hppa*64*|ia64*)
17122	      # +Z the default
17123	      ;;
17124	    *)
17125	      lt_prog_compiler_pic_CXX='+Z'
17126	      ;;
17127	    esac
17128	    ;;
17129	  *)
17130	    ;;
17131	esac
17132	;;
17133      interix*)
17134	# This is c89, which is MS Visual C++ (no shared libs)
17135	# Anyone wants to do a port?
17136	;;
17137      irix5* | irix6* | nonstopux*)
17138	case $cc_basename in
17139	  CC*)
17140	    lt_prog_compiler_wl_CXX='-Wl,'
17141	    lt_prog_compiler_static_CXX='-non_shared'
17142	    # CC pic flag -KPIC is the default.
17143	    ;;
17144	  *)
17145	    ;;
17146	esac
17147	;;
17148      linux* | k*bsd*-gnu)
17149	case $cc_basename in
17150	  KCC*)
17151	    # KAI C++ Compiler
17152	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17153	    lt_prog_compiler_pic_CXX='-fPIC'
17154	    ;;
17155	  icpc* | ecpc*)
17156	    # Intel C++
17157	    lt_prog_compiler_wl_CXX='-Wl,'
17158	    lt_prog_compiler_pic_CXX='-KPIC'
17159	    lt_prog_compiler_static_CXX='-static'
17160	    ;;
17161	  pgCC* | pgcpp*)
17162	    # Portland Group C++ compiler.
17163	    lt_prog_compiler_wl_CXX='-Wl,'
17164	    lt_prog_compiler_pic_CXX='-fpic'
17165	    lt_prog_compiler_static_CXX='-Bstatic'
17166	    ;;
17167	  cxx*)
17168	    # Compaq C++
17169	    # Make sure the PIC flag is empty.  It appears that all Alpha
17170	    # Linux and Compaq Tru64 Unix objects are PIC.
17171	    lt_prog_compiler_pic_CXX=
17172	    lt_prog_compiler_static_CXX='-non_shared'
17173	    ;;
17174	  *)
17175	    case `$CC -V 2>&1 | sed 5q` in
17176	    *Sun\ C*)
17177	      # Sun C++ 5.9
17178	      lt_prog_compiler_pic_CXX='-KPIC'
17179	      lt_prog_compiler_static_CXX='-Bstatic'
17180	      lt_prog_compiler_wl_CXX='-Qoption ld '
17181	      ;;
17182	    esac
17183	    ;;
17184	esac
17185	;;
17186      lynxos*)
17187	;;
17188      m88k*)
17189	;;
17190      mvs*)
17191	case $cc_basename in
17192	  cxx*)
17193	    lt_prog_compiler_pic_CXX='-W c,exportall'
17194	    ;;
17195	  *)
17196	    ;;
17197	esac
17198	;;
17199      netbsd*)
17200	;;
17201      osf3* | osf4* | osf5*)
17202	case $cc_basename in
17203	  KCC*)
17204	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17205	    ;;
17206	  RCC*)
17207	    # Rational C++ 2.4.1
17208	    lt_prog_compiler_pic_CXX='-pic'
17209	    ;;
17210	  cxx*)
17211	    # Digital/Compaq C++
17212	    lt_prog_compiler_wl_CXX='-Wl,'
17213	    # Make sure the PIC flag is empty.  It appears that all Alpha
17214	    # Linux and Compaq Tru64 Unix objects are PIC.
17215	    lt_prog_compiler_pic_CXX=
17216	    lt_prog_compiler_static_CXX='-non_shared'
17217	    ;;
17218	  *)
17219	    ;;
17220	esac
17221	;;
17222      psos*)
17223	;;
17224      solaris*)
17225	case $cc_basename in
17226	  CC*)
17227	    # Sun C++ 4.2, 5.x and Centerline C++
17228	    lt_prog_compiler_pic_CXX='-KPIC'
17229	    lt_prog_compiler_static_CXX='-Bstatic'
17230	    lt_prog_compiler_wl_CXX='-Qoption ld '
17231	    ;;
17232	  gcx*)
17233	    # Green Hills C++ Compiler
17234	    lt_prog_compiler_pic_CXX='-PIC'
17235	    ;;
17236	  *)
17237	    ;;
17238	esac
17239	;;
17240      sunos4*)
17241	case $cc_basename in
17242	  CC*)
17243	    # Sun C++ 4.x
17244	    lt_prog_compiler_pic_CXX='-pic'
17245	    lt_prog_compiler_static_CXX='-Bstatic'
17246	    ;;
17247	  lcc*)
17248	    # Lucid
17249	    lt_prog_compiler_pic_CXX='-pic'
17250	    ;;
17251	  *)
17252	    ;;
17253	esac
17254	;;
17255      tandem*)
17256	case $cc_basename in
17257	  NCC*)
17258	    # NonStop-UX NCC 3.20
17259	    lt_prog_compiler_pic_CXX='-KPIC'
17260	    ;;
17261	  *)
17262	    ;;
17263	esac
17264	;;
17265      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17266	case $cc_basename in
17267	  CC*)
17268	    lt_prog_compiler_wl_CXX='-Wl,'
17269	    lt_prog_compiler_pic_CXX='-KPIC'
17270	    lt_prog_compiler_static_CXX='-Bstatic'
17271	    ;;
17272	esac
17273	;;
17274      vxworks*)
17275	;;
17276      *)
17277	lt_prog_compiler_can_build_shared_CXX=no
17278	;;
17279    esac
17280  fi
17281
17282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17283$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17284
17285#
17286# Check to make sure the PIC flag actually works.
17287#
17288if test -n "$lt_prog_compiler_pic_CXX"; then
17289
17290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17291$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17292if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17293  $as_echo_n "(cached) " >&6
17294else
17295  lt_cv_prog_compiler_pic_works_CXX=no
17296  ac_outfile=conftest.$ac_objext
17297   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17298   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17299   # Insert the option either (1) after the last *FLAGS variable, or
17300   # (2) before a word containing "conftest.", or (3) at the end.
17301   # Note that $ac_compile itself does not contain backslashes and begins
17302   # with a dollar sign (not a hyphen), so the echo should work correctly.
17303   # The option is referenced via a variable to avoid confusing sed.
17304   lt_compile=`echo "$ac_compile" | $SED \
17305   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17306   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17307   -e 's:$: $lt_compiler_flag:'`
17308   (eval echo "\"\$as_me:17308: $lt_compile\"" >&5)
17309   (eval "$lt_compile" 2>conftest.err)
17310   ac_status=$?
17311   cat conftest.err >&5
17312   echo "$as_me:17312: \$? = $ac_status" >&5
17313   if (exit $ac_status) && test -s "$ac_outfile"; then
17314     # The compiler can only warn and ignore the option if not recognized
17315     # So say no if there are warnings other than the usual output.
17316     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17317     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17318     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17319       lt_cv_prog_compiler_pic_works_CXX=yes
17320     fi
17321   fi
17322   $rm conftest*
17323
17324fi
17325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17326$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17327
17328if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17329    case $lt_prog_compiler_pic_CXX in
17330     "" | " "*) ;;
17331     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17332     esac
17333else
17334    lt_prog_compiler_pic_CXX=
17335     lt_prog_compiler_can_build_shared_CXX=no
17336fi
17337
17338fi
17339case $host_os in
17340  # For platforms which do not support PIC, -DPIC is meaningless:
17341  *djgpp*)
17342    lt_prog_compiler_pic_CXX=
17343    ;;
17344  *)
17345    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17346    ;;
17347esac
17348
17349#
17350# Check to make sure the static flag actually works.
17351#
17352wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17354$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17355if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17356  $as_echo_n "(cached) " >&6
17357else
17358  lt_cv_prog_compiler_static_works_CXX=no
17359   save_LDFLAGS="$LDFLAGS"
17360   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17361   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17362   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17363     # The linker can only warn and ignore the option if not recognized
17364     # So say no if there are warnings
17365     if test -s conftest.err; then
17366       # Append any errors to the config.log.
17367       cat conftest.err 1>&5
17368       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17369       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17370       if diff conftest.exp conftest.er2 >/dev/null; then
17371         lt_cv_prog_compiler_static_works_CXX=yes
17372       fi
17373     else
17374       lt_cv_prog_compiler_static_works_CXX=yes
17375     fi
17376   fi
17377   $rm -r conftest*
17378   LDFLAGS="$save_LDFLAGS"
17379
17380fi
17381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17382$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17383
17384if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17385    :
17386else
17387    lt_prog_compiler_static_CXX=
17388fi
17389
17390
17391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17392$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17393if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17394  $as_echo_n "(cached) " >&6
17395else
17396  lt_cv_prog_compiler_c_o_CXX=no
17397   $rm -r conftest 2>/dev/null
17398   mkdir conftest
17399   cd conftest
17400   mkdir out
17401   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17402
17403   lt_compiler_flag="-o out/conftest2.$ac_objext"
17404   # Insert the option either (1) after the last *FLAGS variable, or
17405   # (2) before a word containing "conftest.", or (3) at the end.
17406   # Note that $ac_compile itself does not contain backslashes and begins
17407   # with a dollar sign (not a hyphen), so the echo should work correctly.
17408   lt_compile=`echo "$ac_compile" | $SED \
17409   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17410   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17411   -e 's:$: $lt_compiler_flag:'`
17412   (eval echo "\"\$as_me:17412: $lt_compile\"" >&5)
17413   (eval "$lt_compile" 2>out/conftest.err)
17414   ac_status=$?
17415   cat out/conftest.err >&5
17416   echo "$as_me:17416: \$? = $ac_status" >&5
17417   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17418   then
17419     # The compiler can only warn and ignore the option if not recognized
17420     # So say no if there are warnings
17421     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17422     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17423     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17424       lt_cv_prog_compiler_c_o_CXX=yes
17425     fi
17426   fi
17427   chmod u+w . 2>&5
17428   $rm conftest*
17429   # SGI C++ compiler will create directory out/ii_files/ for
17430   # template instantiation
17431   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17432   $rm out/* && rmdir out
17433   cd ..
17434   rmdir conftest
17435   $rm conftest*
17436
17437fi
17438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17439$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17440
17441
17442hard_links="nottested"
17443if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17444  # do not overwrite the value of need_locks provided by the user
17445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17446$as_echo_n "checking if we can lock with hard links... " >&6; }
17447  hard_links=yes
17448  $rm conftest*
17449  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17450  touch conftest.a
17451  ln conftest.a conftest.b 2>&5 || hard_links=no
17452  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17454$as_echo "$hard_links" >&6; }
17455  if test "$hard_links" = no; then
17456    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17457$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17458    need_locks=warn
17459  fi
17460else
17461  need_locks=no
17462fi
17463
17464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17465$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17466
17467  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17468  case $host_os in
17469  aix[4-9]*)
17470    # If we're using GNU nm, then we don't want the "-C" option.
17471    # -C means demangle to AIX nm, but means don't demangle with GNU nm
17472    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17473      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17474    else
17475      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17476    fi
17477    ;;
17478  pw32*)
17479    export_symbols_cmds_CXX="$ltdll_cmds"
17480  ;;
17481  cygwin* | mingw*)
17482    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17483  ;;
17484  *)
17485    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17486  ;;
17487  esac
17488  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17489
17490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17491$as_echo "$ld_shlibs_CXX" >&6; }
17492test "$ld_shlibs_CXX" = no && can_build_shared=no
17493
17494#
17495# Do we need to explicitly link libc?
17496#
17497case "x$archive_cmds_need_lc_CXX" in
17498x|xyes)
17499  # Assume -lc should be added
17500  archive_cmds_need_lc_CXX=yes
17501
17502  if test "$enable_shared" = yes && test "$GCC" = yes; then
17503    case $archive_cmds_CXX in
17504    *'~'*)
17505      # FIXME: we may have to deal with multi-command sequences.
17506      ;;
17507    '$CC '*)
17508      # Test whether the compiler implicitly links with -lc since on some
17509      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17510      # to ld, don't add -lc before -lgcc.
17511      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17512$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17513      $rm conftest*
17514      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17515
17516      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17517  (eval $ac_compile) 2>&5
17518  ac_status=$?
17519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17520  test $ac_status = 0; } 2>conftest.err; then
17521        soname=conftest
17522        lib=conftest
17523        libobjs=conftest.$ac_objext
17524        deplibs=
17525        wl=$lt_prog_compiler_wl_CXX
17526	pic_flag=$lt_prog_compiler_pic_CXX
17527        compiler_flags=-v
17528        linker_flags=-v
17529        verstring=
17530        output_objdir=.
17531        libname=conftest
17532        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17533        allow_undefined_flag_CXX=
17534        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17535  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17536  ac_status=$?
17537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17538  test $ac_status = 0; }
17539        then
17540	  archive_cmds_need_lc_CXX=no
17541        else
17542	  archive_cmds_need_lc_CXX=yes
17543        fi
17544        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17545      else
17546        cat conftest.err 1>&5
17547      fi
17548      $rm conftest*
17549      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17550$as_echo "$archive_cmds_need_lc_CXX" >&6; }
17551      ;;
17552    esac
17553  fi
17554  ;;
17555esac
17556
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17558$as_echo_n "checking dynamic linker characteristics... " >&6; }
17559library_names_spec=
17560libname_spec='lib$name'
17561soname_spec=
17562shrext_cmds=".so"
17563postinstall_cmds=
17564postuninstall_cmds=
17565finish_cmds=
17566finish_eval=
17567shlibpath_var=
17568shlibpath_overrides_runpath=unknown
17569version_type=none
17570dynamic_linker="$host_os ld.so"
17571sys_lib_dlsearch_path_spec="/lib /usr/lib"
17572
17573need_lib_prefix=unknown
17574hardcode_into_libs=no
17575
17576# when you set need_version to no, make sure it does not cause -set_version
17577# flags to be left without arguments
17578need_version=unknown
17579
17580case $host_os in
17581aix3*)
17582  version_type=linux
17583  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17584  shlibpath_var=LIBPATH
17585
17586  # AIX 3 has no versioning support, so we append a major version to the name.
17587  soname_spec='${libname}${release}${shared_ext}$major'
17588  ;;
17589
17590aix[4-9]*)
17591  version_type=linux
17592  need_lib_prefix=no
17593  need_version=no
17594  hardcode_into_libs=yes
17595  if test "$host_cpu" = ia64; then
17596    # AIX 5 supports IA64
17597    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17598    shlibpath_var=LD_LIBRARY_PATH
17599  else
17600    # With GCC up to 2.95.x, collect2 would create an import file
17601    # for dependence libraries.  The import file would start with
17602    # the line `#! .'.  This would cause the generated library to
17603    # depend on `.', always an invalid library.  This was fixed in
17604    # development snapshots of GCC prior to 3.0.
17605    case $host_os in
17606      aix4 | aix4.[01] | aix4.[01].*)
17607      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17608	   echo ' yes '
17609	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17610	:
17611      else
17612	can_build_shared=no
17613      fi
17614      ;;
17615    esac
17616    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17617    # soname into executable. Probably we can add versioning support to
17618    # collect2, so additional links can be useful in future.
17619    if test "$aix_use_runtimelinking" = yes; then
17620      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17621      # instead of lib<name>.a to let people know that these are not
17622      # typical AIX shared libraries.
17623      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17624    else
17625      # We preserve .a as extension for shared libraries through AIX4.2
17626      # and later when we are not doing run time linking.
17627      library_names_spec='${libname}${release}.a $libname.a'
17628      soname_spec='${libname}${release}${shared_ext}$major'
17629    fi
17630    shlibpath_var=LIBPATH
17631  fi
17632  ;;
17633
17634amigaos*)
17635  library_names_spec='$libname.ixlibrary $libname.a'
17636  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17637  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'
17638  ;;
17639
17640beos*)
17641  library_names_spec='${libname}${shared_ext}'
17642  dynamic_linker="$host_os ld.so"
17643  shlibpath_var=LIBRARY_PATH
17644  ;;
17645
17646bsdi[45]*)
17647  version_type=linux
17648  need_version=no
17649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17650  soname_spec='${libname}${release}${shared_ext}$major'
17651  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17652  shlibpath_var=LD_LIBRARY_PATH
17653  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17654  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17655  # the default ld.so.conf also contains /usr/contrib/lib and
17656  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17657  # libtool to hard-code these into programs
17658  ;;
17659
17660cygwin* | mingw* | pw32*)
17661  version_type=windows
17662  shrext_cmds=".dll"
17663  need_version=no
17664  need_lib_prefix=no
17665
17666  case $GCC,$host_os in
17667  yes,cygwin* | yes,mingw* | yes,pw32*)
17668    library_names_spec='$libname.dll.a'
17669    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17670    postinstall_cmds='base_file=`basename \${file}`~
17671      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17672      dldir=$destdir/`dirname \$dlpath`~
17673      test -d \$dldir || mkdir -p \$dldir~
17674      $install_prog $dir/$dlname \$dldir/$dlname~
17675      chmod a+x \$dldir/$dlname'
17676    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17677      dlpath=$dir/\$dldll~
17678       $rm \$dlpath'
17679    shlibpath_overrides_runpath=yes
17680
17681    case $host_os in
17682    cygwin*)
17683      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17684      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17685      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17686      ;;
17687    mingw*)
17688      # MinGW DLLs use traditional 'lib' prefix
17689      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17690      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17691      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17692        # It is most probably a Windows format PATH printed by
17693        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17694        # path with ; separators, and with drive letters. We can handle the
17695        # drive letters (cygwin fileutils understands them), so leave them,
17696        # especially as we might pass files found there to a mingw objdump,
17697        # which wouldn't understand a cygwinified path. Ahh.
17698        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17699      else
17700        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17701      fi
17702      ;;
17703    pw32*)
17704      # pw32 DLLs use 'pw' prefix rather than 'lib'
17705      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17706      ;;
17707    esac
17708    ;;
17709
17710  *)
17711    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17712    ;;
17713  esac
17714  dynamic_linker='Win32 ld.exe'
17715  # FIXME: first we should search . and the directory the executable is in
17716  shlibpath_var=PATH
17717  ;;
17718
17719darwin* | rhapsody*)
17720  dynamic_linker="$host_os dyld"
17721  version_type=darwin
17722  need_lib_prefix=no
17723  need_version=no
17724  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17725  soname_spec='${libname}${release}${major}$shared_ext'
17726  shlibpath_overrides_runpath=yes
17727  shlibpath_var=DYLD_LIBRARY_PATH
17728  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17729
17730  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17731  ;;
17732
17733dgux*)
17734  version_type=linux
17735  need_lib_prefix=no
17736  need_version=no
17737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17738  soname_spec='${libname}${release}${shared_ext}$major'
17739  shlibpath_var=LD_LIBRARY_PATH
17740  ;;
17741
17742freebsd1*)
17743  dynamic_linker=no
17744  ;;
17745
17746freebsd* | dragonfly*)
17747  # DragonFly does not have aout.  When/if they implement a new
17748  # versioning mechanism, adjust this.
17749  if test -x /usr/bin/objformat; then
17750    objformat=`/usr/bin/objformat`
17751  else
17752    case $host_os in
17753    freebsd[123]*) objformat=aout ;;
17754    *) objformat=elf ;;
17755    esac
17756  fi
17757  version_type=freebsd-$objformat
17758  case $version_type in
17759    freebsd-elf*)
17760      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17761      need_version=no
17762      need_lib_prefix=no
17763      ;;
17764    freebsd-*)
17765      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17766      need_version=yes
17767      ;;
17768  esac
17769  shlibpath_var=LD_LIBRARY_PATH
17770  case $host_os in
17771  freebsd2*)
17772    shlibpath_overrides_runpath=yes
17773    ;;
17774  freebsd3.[01]* | freebsdelf3.[01]*)
17775    shlibpath_overrides_runpath=yes
17776    hardcode_into_libs=yes
17777    ;;
17778  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17779  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17780    shlibpath_overrides_runpath=no
17781    hardcode_into_libs=yes
17782    ;;
17783  *) # from 4.6 on, and DragonFly
17784    shlibpath_overrides_runpath=yes
17785    hardcode_into_libs=yes
17786    ;;
17787  esac
17788  ;;
17789
17790gnu*)
17791  version_type=linux
17792  need_lib_prefix=no
17793  need_version=no
17794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17795  soname_spec='${libname}${release}${shared_ext}$major'
17796  shlibpath_var=LD_LIBRARY_PATH
17797  hardcode_into_libs=yes
17798  ;;
17799
17800hpux9* | hpux10* | hpux11*)
17801  # Give a soname corresponding to the major version so that dld.sl refuses to
17802  # link against other versions.
17803  version_type=sunos
17804  need_lib_prefix=no
17805  need_version=no
17806  case $host_cpu in
17807  ia64*)
17808    shrext_cmds='.so'
17809    hardcode_into_libs=yes
17810    dynamic_linker="$host_os dld.so"
17811    shlibpath_var=LD_LIBRARY_PATH
17812    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17813    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814    soname_spec='${libname}${release}${shared_ext}$major'
17815    if test "X$HPUX_IA64_MODE" = X32; then
17816      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17817    else
17818      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17819    fi
17820    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17821    ;;
17822   hppa*64*)
17823     shrext_cmds='.sl'
17824     hardcode_into_libs=yes
17825     dynamic_linker="$host_os dld.sl"
17826     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17827     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17828     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17829     soname_spec='${libname}${release}${shared_ext}$major'
17830     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17831     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17832     ;;
17833   *)
17834    shrext_cmds='.sl'
17835    dynamic_linker="$host_os dld.sl"
17836    shlibpath_var=SHLIB_PATH
17837    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17838    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839    soname_spec='${libname}${release}${shared_ext}$major'
17840    ;;
17841  esac
17842  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17843  postinstall_cmds='chmod 555 $lib'
17844  ;;
17845
17846interix[3-9]*)
17847  version_type=linux
17848  need_lib_prefix=no
17849  need_version=no
17850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17851  soname_spec='${libname}${release}${shared_ext}$major'
17852  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17853  shlibpath_var=LD_LIBRARY_PATH
17854  shlibpath_overrides_runpath=no
17855  hardcode_into_libs=yes
17856  ;;
17857
17858irix5* | irix6* | nonstopux*)
17859  case $host_os in
17860    nonstopux*) version_type=nonstopux ;;
17861    *)
17862	if test "$lt_cv_prog_gnu_ld" = yes; then
17863		version_type=linux
17864	else
17865		version_type=irix
17866	fi ;;
17867  esac
17868  need_lib_prefix=no
17869  need_version=no
17870  soname_spec='${libname}${release}${shared_ext}$major'
17871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17872  case $host_os in
17873  irix5* | nonstopux*)
17874    libsuff= shlibsuff=
17875    ;;
17876  *)
17877    case $LD in # libtool.m4 will add one of these switches to LD
17878    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17879      libsuff= shlibsuff= libmagic=32-bit;;
17880    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17881      libsuff=32 shlibsuff=N32 libmagic=N32;;
17882    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17883      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17884    *) libsuff= shlibsuff= libmagic=never-match;;
17885    esac
17886    ;;
17887  esac
17888  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17889  shlibpath_overrides_runpath=no
17890  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17891  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17892  hardcode_into_libs=yes
17893  ;;
17894
17895# No shared lib support for Linux oldld, aout, or coff.
17896linux*oldld* | linux*aout* | linux*coff*)
17897  dynamic_linker=no
17898  ;;
17899
17900# This must be Linux ELF.
17901linux* | k*bsd*-gnu)
17902  version_type=linux
17903  need_lib_prefix=no
17904  need_version=no
17905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17906  soname_spec='${libname}${release}${shared_ext}$major'
17907  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17908  shlibpath_var=LD_LIBRARY_PATH
17909  shlibpath_overrides_runpath=no
17910  # This implies no fast_install, which is unacceptable.
17911  # Some rework will be needed to allow for fast_install
17912  # before this can be enabled.
17913  hardcode_into_libs=yes
17914
17915  # Append ld.so.conf contents to the search path
17916  if test -f /etc/ld.so.conf; then
17917    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' ' '`
17918    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17919  fi
17920
17921  # We used to test for /lib/ld.so.1 and disable shared libraries on
17922  # powerpc, because MkLinux only supported shared libraries with the
17923  # GNU dynamic linker.  Since this was broken with cross compilers,
17924  # most powerpc-linux boxes support dynamic linking these days and
17925  # people can always --disable-shared, the test was removed, and we
17926  # assume the GNU/Linux dynamic linker is in use.
17927  dynamic_linker='GNU/Linux ld.so'
17928  ;;
17929
17930netbsd*)
17931  version_type=sunos
17932  need_lib_prefix=no
17933  need_version=no
17934  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17935    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17936    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17937    dynamic_linker='NetBSD (a.out) ld.so'
17938  else
17939    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17940    soname_spec='${libname}${release}${shared_ext}$major'
17941    dynamic_linker='NetBSD ld.elf_so'
17942  fi
17943  shlibpath_var=LD_LIBRARY_PATH
17944  shlibpath_overrides_runpath=yes
17945  hardcode_into_libs=yes
17946  ;;
17947
17948newsos6)
17949  version_type=linux
17950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17951  shlibpath_var=LD_LIBRARY_PATH
17952  shlibpath_overrides_runpath=yes
17953  ;;
17954
17955nto-qnx*)
17956  version_type=linux
17957  need_lib_prefix=no
17958  need_version=no
17959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17960  soname_spec='${libname}${release}${shared_ext}$major'
17961  shlibpath_var=LD_LIBRARY_PATH
17962  shlibpath_overrides_runpath=yes
17963  ;;
17964
17965openbsd*)
17966  version_type=sunos
17967  sys_lib_dlsearch_path_spec="/usr/lib"
17968  need_lib_prefix=no
17969  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17970  case $host_os in
17971    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17972    *)                         need_version=no  ;;
17973  esac
17974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17975  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17976  shlibpath_var=LD_LIBRARY_PATH
17977  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17978    case $host_os in
17979      openbsd2.[89] | openbsd2.[89].*)
17980	shlibpath_overrides_runpath=no
17981	;;
17982      *)
17983	shlibpath_overrides_runpath=yes
17984	;;
17985      esac
17986  else
17987    shlibpath_overrides_runpath=yes
17988  fi
17989  ;;
17990
17991os2*)
17992  libname_spec='$name'
17993  shrext_cmds=".dll"
17994  need_lib_prefix=no
17995  library_names_spec='$libname${shared_ext} $libname.a'
17996  dynamic_linker='OS/2 ld.exe'
17997  shlibpath_var=LIBPATH
17998  ;;
17999
18000osf3* | osf4* | osf5*)
18001  version_type=osf
18002  need_lib_prefix=no
18003  need_version=no
18004  soname_spec='${libname}${release}${shared_ext}$major'
18005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18006  shlibpath_var=LD_LIBRARY_PATH
18007  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18008  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18009  ;;
18010
18011rdos*)
18012  dynamic_linker=no
18013  ;;
18014
18015solaris*)
18016  version_type=linux
18017  need_lib_prefix=no
18018  need_version=no
18019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18020  soname_spec='${libname}${release}${shared_ext}$major'
18021  shlibpath_var=LD_LIBRARY_PATH
18022  shlibpath_overrides_runpath=yes
18023  hardcode_into_libs=yes
18024  # ldd complains unless libraries are executable
18025  postinstall_cmds='chmod +x $lib'
18026  ;;
18027
18028sunos4*)
18029  version_type=sunos
18030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18031  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18032  shlibpath_var=LD_LIBRARY_PATH
18033  shlibpath_overrides_runpath=yes
18034  if test "$with_gnu_ld" = yes; then
18035    need_lib_prefix=no
18036  fi
18037  need_version=yes
18038  ;;
18039
18040sysv4 | sysv4.3*)
18041  version_type=linux
18042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043  soname_spec='${libname}${release}${shared_ext}$major'
18044  shlibpath_var=LD_LIBRARY_PATH
18045  case $host_vendor in
18046    sni)
18047      shlibpath_overrides_runpath=no
18048      need_lib_prefix=no
18049      export_dynamic_flag_spec='${wl}-Blargedynsym'
18050      runpath_var=LD_RUN_PATH
18051      ;;
18052    siemens)
18053      need_lib_prefix=no
18054      ;;
18055    motorola)
18056      need_lib_prefix=no
18057      need_version=no
18058      shlibpath_overrides_runpath=no
18059      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18060      ;;
18061  esac
18062  ;;
18063
18064sysv4*MP*)
18065  if test -d /usr/nec ;then
18066    version_type=linux
18067    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18068    soname_spec='$libname${shared_ext}.$major'
18069    shlibpath_var=LD_LIBRARY_PATH
18070  fi
18071  ;;
18072
18073sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18074  version_type=freebsd-elf
18075  need_lib_prefix=no
18076  need_version=no
18077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18078  soname_spec='${libname}${release}${shared_ext}$major'
18079  shlibpath_var=LD_LIBRARY_PATH
18080  hardcode_into_libs=yes
18081  if test "$with_gnu_ld" = yes; then
18082    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18083    shlibpath_overrides_runpath=no
18084  else
18085    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18086    shlibpath_overrides_runpath=yes
18087    case $host_os in
18088      sco3.2v5*)
18089        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18090	;;
18091    esac
18092  fi
18093  sys_lib_dlsearch_path_spec='/usr/lib'
18094  ;;
18095
18096uts4*)
18097  version_type=linux
18098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18099  soname_spec='${libname}${release}${shared_ext}$major'
18100  shlibpath_var=LD_LIBRARY_PATH
18101  ;;
18102
18103*)
18104  dynamic_linker=no
18105  ;;
18106esac
18107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18108$as_echo "$dynamic_linker" >&6; }
18109test "$dynamic_linker" = no && can_build_shared=no
18110
18111if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
18112  $as_echo_n "(cached) " >&6
18113else
18114  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18115fi
18116
18117sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18118if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
18119  $as_echo_n "(cached) " >&6
18120else
18121  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18122fi
18123
18124sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18125
18126variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18127if test "$GCC" = yes; then
18128  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18129fi
18130
18131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18132$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18133hardcode_action_CXX=
18134if test -n "$hardcode_libdir_flag_spec_CXX" || \
18135   test -n "$runpath_var_CXX" || \
18136   test "X$hardcode_automatic_CXX" = "Xyes" ; then
18137
18138  # We can hardcode non-existant directories.
18139  if test "$hardcode_direct_CXX" != no &&
18140     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18141     # have to relink, otherwise we might link with an installed library
18142     # when we should be linking with a yet-to-be-installed one
18143     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18144     test "$hardcode_minus_L_CXX" != no; then
18145    # Linking always hardcodes the temporary library directory.
18146    hardcode_action_CXX=relink
18147  else
18148    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18149    hardcode_action_CXX=immediate
18150  fi
18151else
18152  # We cannot hardcode anything, or else we can only hardcode existing
18153  # directories.
18154  hardcode_action_CXX=unsupported
18155fi
18156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18157$as_echo "$hardcode_action_CXX" >&6; }
18158
18159if test "$hardcode_action_CXX" = relink; then
18160  # Fast installation is not supported
18161  enable_fast_install=no
18162elif test "$shlibpath_overrides_runpath" = yes ||
18163     test "$enable_shared" = no; then
18164  # Fast installation is not necessary
18165  enable_fast_install=needless
18166fi
18167
18168
18169# The else clause should only fire when bootstrapping the
18170# libtool distribution, otherwise you forgot to ship ltmain.sh
18171# with your package, and you will get complaints that there are
18172# no rules to generate ltmain.sh.
18173if test -f "$ltmain"; then
18174  # See if we are running on zsh, and set the options which allow our commands through
18175  # without removal of \ escapes.
18176  if test -n "${ZSH_VERSION+set}" ; then
18177    setopt NO_GLOB_SUBST
18178  fi
18179  # Now quote all the things that may contain metacharacters while being
18180  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18181  # variables and quote the copies for generation of the libtool script.
18182  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18183    SED SHELL STRIP \
18184    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18185    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18186    deplibs_check_method reload_flag reload_cmds need_locks \
18187    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18188    lt_cv_sys_global_symbol_to_c_name_address \
18189    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18190    old_postinstall_cmds old_postuninstall_cmds \
18191    compiler_CXX \
18192    CC_CXX \
18193    LD_CXX \
18194    lt_prog_compiler_wl_CXX \
18195    lt_prog_compiler_pic_CXX \
18196    lt_prog_compiler_static_CXX \
18197    lt_prog_compiler_no_builtin_flag_CXX \
18198    export_dynamic_flag_spec_CXX \
18199    thread_safe_flag_spec_CXX \
18200    whole_archive_flag_spec_CXX \
18201    enable_shared_with_static_runtimes_CXX \
18202    old_archive_cmds_CXX \
18203    old_archive_from_new_cmds_CXX \
18204    predep_objects_CXX \
18205    postdep_objects_CXX \
18206    predeps_CXX \
18207    postdeps_CXX \
18208    compiler_lib_search_path_CXX \
18209    compiler_lib_search_dirs_CXX \
18210    archive_cmds_CXX \
18211    archive_expsym_cmds_CXX \
18212    postinstall_cmds_CXX \
18213    postuninstall_cmds_CXX \
18214    old_archive_from_expsyms_cmds_CXX \
18215    allow_undefined_flag_CXX \
18216    no_undefined_flag_CXX \
18217    export_symbols_cmds_CXX \
18218    hardcode_libdir_flag_spec_CXX \
18219    hardcode_libdir_flag_spec_ld_CXX \
18220    hardcode_libdir_separator_CXX \
18221    hardcode_automatic_CXX \
18222    module_cmds_CXX \
18223    module_expsym_cmds_CXX \
18224    lt_cv_prog_compiler_c_o_CXX \
18225    fix_srcfile_path_CXX \
18226    exclude_expsyms_CXX \
18227    include_expsyms_CXX; do
18228
18229    case $var in
18230    old_archive_cmds_CXX | \
18231    old_archive_from_new_cmds_CXX | \
18232    archive_cmds_CXX | \
18233    archive_expsym_cmds_CXX | \
18234    module_cmds_CXX | \
18235    module_expsym_cmds_CXX | \
18236    old_archive_from_expsyms_cmds_CXX | \
18237    export_symbols_cmds_CXX | \
18238    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18239    postinstall_cmds | postuninstall_cmds | \
18240    old_postinstall_cmds | old_postuninstall_cmds | \
18241    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18242      # Double-quote double-evaled strings.
18243      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18244      ;;
18245    *)
18246      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18247      ;;
18248    esac
18249  done
18250
18251  case $lt_echo in
18252  *'\$0 --fallback-echo"')
18253    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18254    ;;
18255  esac
18256
18257cfgfile="$ofile"
18258
18259  cat <<__EOF__ >> "$cfgfile"
18260# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18261
18262# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18263
18264# Shell to use when invoking shell scripts.
18265SHELL=$lt_SHELL
18266
18267# Whether or not to build shared libraries.
18268build_libtool_libs=$enable_shared
18269
18270# Whether or not to build static libraries.
18271build_old_libs=$enable_static
18272
18273# Whether or not to add -lc for building shared libraries.
18274build_libtool_need_lc=$archive_cmds_need_lc_CXX
18275
18276# Whether or not to disallow shared libs when runtime libs are static
18277allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18278
18279# Whether or not to optimize for fast installation.
18280fast_install=$enable_fast_install
18281
18282# The host system.
18283host_alias=$host_alias
18284host=$host
18285host_os=$host_os
18286
18287# The build system.
18288build_alias=$build_alias
18289build=$build
18290build_os=$build_os
18291
18292# An echo program that does not interpret backslashes.
18293echo=$lt_echo
18294
18295# The archiver.
18296AR=$lt_AR
18297AR_FLAGS=$lt_AR_FLAGS
18298
18299# A C compiler.
18300LTCC=$lt_LTCC
18301
18302# LTCC compiler flags.
18303LTCFLAGS=$lt_LTCFLAGS
18304
18305# A language-specific compiler.
18306CC=$lt_compiler_CXX
18307
18308# Is the compiler the GNU C compiler?
18309with_gcc=$GCC_CXX
18310
18311# An ERE matcher.
18312EGREP=$lt_EGREP
18313
18314# The linker used to build libraries.
18315LD=$lt_LD_CXX
18316
18317# Whether we need hard or soft links.
18318LN_S=$lt_LN_S
18319
18320# A BSD-compatible nm program.
18321NM=$lt_NM
18322
18323# A symbol stripping program
18324STRIP=$lt_STRIP
18325
18326# Used to examine libraries when file_magic_cmd begins "file"
18327MAGIC_CMD=$MAGIC_CMD
18328
18329# Used on cygwin: DLL creation program.
18330DLLTOOL="$DLLTOOL"
18331
18332# Used on cygwin: object dumper.
18333OBJDUMP="$OBJDUMP"
18334
18335# Used on cygwin: assembler.
18336AS="$AS"
18337
18338# The name of the directory that contains temporary libtool files.
18339objdir=$objdir
18340
18341# How to create reloadable object files.
18342reload_flag=$lt_reload_flag
18343reload_cmds=$lt_reload_cmds
18344
18345# How to pass a linker flag through the compiler.
18346wl=$lt_lt_prog_compiler_wl_CXX
18347
18348# Object file suffix (normally "o").
18349objext="$ac_objext"
18350
18351# Old archive suffix (normally "a").
18352libext="$libext"
18353
18354# Shared library suffix (normally ".so").
18355shrext_cmds='$shrext_cmds'
18356
18357# Executable file suffix (normally "").
18358exeext="$exeext"
18359
18360# Additional compiler flags for building library objects.
18361pic_flag=$lt_lt_prog_compiler_pic_CXX
18362pic_mode=$pic_mode
18363
18364# What is the maximum length of a command?
18365max_cmd_len=$lt_cv_sys_max_cmd_len
18366
18367# Does compiler simultaneously support -c and -o options?
18368compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18369
18370# Must we lock files when doing compilation?
18371need_locks=$lt_need_locks
18372
18373# Do we need the lib prefix for modules?
18374need_lib_prefix=$need_lib_prefix
18375
18376# Do we need a version for libraries?
18377need_version=$need_version
18378
18379# Whether dlopen is supported.
18380dlopen_support=$enable_dlopen
18381
18382# Whether dlopen of programs is supported.
18383dlopen_self=$enable_dlopen_self
18384
18385# Whether dlopen of statically linked programs is supported.
18386dlopen_self_static=$enable_dlopen_self_static
18387
18388# Compiler flag to prevent dynamic linking.
18389link_static_flag=$lt_lt_prog_compiler_static_CXX
18390
18391# Compiler flag to turn off builtin functions.
18392no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18393
18394# Compiler flag to allow reflexive dlopens.
18395export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18396
18397# Compiler flag to generate shared objects directly from archives.
18398whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18399
18400# Compiler flag to generate thread-safe objects.
18401thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18402
18403# Library versioning type.
18404version_type=$version_type
18405
18406# Format of library name prefix.
18407libname_spec=$lt_libname_spec
18408
18409# List of archive names.  First name is the real one, the rest are links.
18410# The last name is the one that the linker finds with -lNAME.
18411library_names_spec=$lt_library_names_spec
18412
18413# The coded name of the library, if different from the real name.
18414soname_spec=$lt_soname_spec
18415
18416# Commands used to build and install an old-style archive.
18417RANLIB=$lt_RANLIB
18418old_archive_cmds=$lt_old_archive_cmds_CXX
18419old_postinstall_cmds=$lt_old_postinstall_cmds
18420old_postuninstall_cmds=$lt_old_postuninstall_cmds
18421
18422# Create an old-style archive from a shared archive.
18423old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18424
18425# Create a temporary old-style archive to link instead of a shared archive.
18426old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18427
18428# Commands used to build and install a shared archive.
18429archive_cmds=$lt_archive_cmds_CXX
18430archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18431postinstall_cmds=$lt_postinstall_cmds
18432postuninstall_cmds=$lt_postuninstall_cmds
18433
18434# Commands used to build a loadable module (assumed same as above if empty)
18435module_cmds=$lt_module_cmds_CXX
18436module_expsym_cmds=$lt_module_expsym_cmds_CXX
18437
18438# Commands to strip libraries.
18439old_striplib=$lt_old_striplib
18440striplib=$lt_striplib
18441
18442# Dependencies to place before the objects being linked to create a
18443# shared library.
18444predep_objects=$lt_predep_objects_CXX
18445
18446# Dependencies to place after the objects being linked to create a
18447# shared library.
18448postdep_objects=$lt_postdep_objects_CXX
18449
18450# Dependencies to place before the objects being linked to create a
18451# shared library.
18452predeps=$lt_predeps_CXX
18453
18454# Dependencies to place after the objects being linked to create a
18455# shared library.
18456postdeps=$lt_postdeps_CXX
18457
18458# The directories searched by this compiler when creating a shared
18459# library
18460compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18461
18462# The library search path used internally by the compiler when linking
18463# a shared library.
18464compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18465
18466# Method to check whether dependent libraries are shared objects.
18467deplibs_check_method=$lt_deplibs_check_method
18468
18469# Command to use when deplibs_check_method == file_magic.
18470file_magic_cmd=$lt_file_magic_cmd
18471
18472# Flag that allows shared libraries with undefined symbols to be built.
18473allow_undefined_flag=$lt_allow_undefined_flag_CXX
18474
18475# Flag that forces no undefined symbols.
18476no_undefined_flag=$lt_no_undefined_flag_CXX
18477
18478# Commands used to finish a libtool library installation in a directory.
18479finish_cmds=$lt_finish_cmds
18480
18481# Same as above, but a single script fragment to be evaled but not shown.
18482finish_eval=$lt_finish_eval
18483
18484# Take the output of nm and produce a listing of raw symbols and C names.
18485global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18486
18487# Transform the output of nm in a proper C declaration
18488global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18489
18490# Transform the output of nm in a C name address pair
18491global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18492
18493# This is the shared library runtime path variable.
18494runpath_var=$runpath_var
18495
18496# This is the shared library path variable.
18497shlibpath_var=$shlibpath_var
18498
18499# Is shlibpath searched before the hard-coded library search path?
18500shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18501
18502# How to hardcode a shared library path into an executable.
18503hardcode_action=$hardcode_action_CXX
18504
18505# Whether we should hardcode library paths into libraries.
18506hardcode_into_libs=$hardcode_into_libs
18507
18508# Flag to hardcode \$libdir into a binary during linking.
18509# This must work even if \$libdir does not exist.
18510hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18511
18512# If ld is used when linking, flag to hardcode \$libdir into
18513# a binary during linking. This must work even if \$libdir does
18514# not exist.
18515hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18516
18517# Whether we need a single -rpath flag with a separated argument.
18518hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18519
18520# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18521# resulting binary.
18522hardcode_direct=$hardcode_direct_CXX
18523
18524# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18525# resulting binary.
18526hardcode_minus_L=$hardcode_minus_L_CXX
18527
18528# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18529# the resulting binary.
18530hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18531
18532# Set to yes if building a shared library automatically hardcodes DIR into the library
18533# and all subsequent libraries and executables linked against it.
18534hardcode_automatic=$hardcode_automatic_CXX
18535
18536# Variables whose values should be saved in libtool wrapper scripts and
18537# restored at relink time.
18538variables_saved_for_relink="$variables_saved_for_relink"
18539
18540# Whether libtool must link a program against all its dependency libraries.
18541link_all_deplibs=$link_all_deplibs_CXX
18542
18543# Compile-time system search path for libraries
18544sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18545
18546# Run-time system search path for libraries
18547sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18548
18549# Fix the shell variable \$srcfile for the compiler.
18550fix_srcfile_path=$lt_fix_srcfile_path
18551
18552# Set to yes if exported symbols are required.
18553always_export_symbols=$always_export_symbols_CXX
18554
18555# The commands to list exported symbols.
18556export_symbols_cmds=$lt_export_symbols_cmds_CXX
18557
18558# The commands to extract the exported symbol list from a shared archive.
18559extract_expsyms_cmds=$lt_extract_expsyms_cmds
18560
18561# Symbols that should not be listed in the preloaded symbols.
18562exclude_expsyms=$lt_exclude_expsyms_CXX
18563
18564# Symbols that must always be exported.
18565include_expsyms=$lt_include_expsyms_CXX
18566
18567# ### END LIBTOOL TAG CONFIG: $tagname
18568
18569__EOF__
18570
18571
18572else
18573  # If there is no Makefile yet, we rely on a make rule to execute
18574  # `config.status --recheck' to rerun these tests and create the
18575  # libtool script then.
18576  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18577  if test -f "$ltmain_in"; then
18578    test -f Makefile && make "$ltmain"
18579  fi
18580fi
18581
18582
18583ac_ext=c
18584ac_cpp='$CPP $CPPFLAGS'
18585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18587ac_compiler_gnu=$ac_cv_c_compiler_gnu
18588
18589CC=$lt_save_CC
18590LDCXX=$LD
18591LD=$lt_save_LD
18592GCC=$lt_save_GCC
18593with_gnu_ldcxx=$with_gnu_ld
18594with_gnu_ld=$lt_save_with_gnu_ld
18595lt_cv_path_LDCXX=$lt_cv_path_LD
18596lt_cv_path_LD=$lt_save_path_LD
18597lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18598lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18599
18600	else
18601	  tagname=""
18602	fi
18603	;;
18604
18605      F77)
18606	if test -n "$F77" && test "X$F77" != "Xno"; then
18607
18608ac_ext=f
18609ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18610ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18611ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18612
18613
18614archive_cmds_need_lc_F77=no
18615allow_undefined_flag_F77=
18616always_export_symbols_F77=no
18617archive_expsym_cmds_F77=
18618export_dynamic_flag_spec_F77=
18619hardcode_direct_F77=no
18620hardcode_libdir_flag_spec_F77=
18621hardcode_libdir_flag_spec_ld_F77=
18622hardcode_libdir_separator_F77=
18623hardcode_minus_L_F77=no
18624hardcode_automatic_F77=no
18625module_cmds_F77=
18626module_expsym_cmds_F77=
18627link_all_deplibs_F77=unknown
18628old_archive_cmds_F77=$old_archive_cmds
18629no_undefined_flag_F77=
18630whole_archive_flag_spec_F77=
18631enable_shared_with_static_runtimes_F77=no
18632
18633# Source file extension for f77 test sources.
18634ac_ext=f
18635
18636# Object file extension for compiled f77 test sources.
18637objext=o
18638objext_F77=$objext
18639
18640# Code to be used in simple compile tests
18641lt_simple_compile_test_code="\
18642      subroutine t
18643      return
18644      end
18645"
18646
18647# Code to be used in simple link tests
18648lt_simple_link_test_code="\
18649      program t
18650      end
18651"
18652
18653# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18654
18655# If no C compiler was specified, use CC.
18656LTCC=${LTCC-"$CC"}
18657
18658# If no C compiler flags were specified, use CFLAGS.
18659LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18660
18661# Allow CC to be a program name with arguments.
18662compiler=$CC
18663
18664
18665# save warnings/boilerplate of simple test code
18666ac_outfile=conftest.$ac_objext
18667echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18669_lt_compiler_boilerplate=`cat conftest.err`
18670$rm conftest*
18671
18672ac_outfile=conftest.$ac_objext
18673echo "$lt_simple_link_test_code" >conftest.$ac_ext
18674eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18675_lt_linker_boilerplate=`cat conftest.err`
18676$rm -r conftest*
18677
18678
18679# Allow CC to be a program name with arguments.
18680lt_save_CC="$CC"
18681CC=${F77-"f77"}
18682compiler=$CC
18683compiler_F77=$CC
18684for cc_temp in $compiler""; do
18685  case $cc_temp in
18686    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18687    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18688    \-*) ;;
18689    *) break;;
18690  esac
18691done
18692cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18693
18694
18695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18696$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18698$as_echo "$can_build_shared" >&6; }
18699
18700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18701$as_echo_n "checking whether to build shared libraries... " >&6; }
18702test "$can_build_shared" = "no" && enable_shared=no
18703
18704# On AIX, shared libraries and static libraries use the same namespace, and
18705# are all built from PIC.
18706case $host_os in
18707aix3*)
18708  test "$enable_shared" = yes && enable_static=no
18709  if test -n "$RANLIB"; then
18710    archive_cmds="$archive_cmds~\$RANLIB \$lib"
18711    postinstall_cmds='$RANLIB $lib'
18712  fi
18713  ;;
18714aix[4-9]*)
18715  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18716    test "$enable_shared" = yes && enable_static=no
18717  fi
18718  ;;
18719esac
18720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18721$as_echo "$enable_shared" >&6; }
18722
18723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18724$as_echo_n "checking whether to build static libraries... " >&6; }
18725# Make sure either enable_shared or enable_static is yes.
18726test "$enable_shared" = yes || enable_static=yes
18727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18728$as_echo "$enable_static" >&6; }
18729
18730GCC_F77="$G77"
18731LD_F77="$LD"
18732
18733lt_prog_compiler_wl_F77=
18734lt_prog_compiler_pic_F77=
18735lt_prog_compiler_static_F77=
18736
18737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18738$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18739
18740  if test "$GCC" = yes; then
18741    lt_prog_compiler_wl_F77='-Wl,'
18742    lt_prog_compiler_static_F77='-static'
18743
18744    case $host_os in
18745      aix*)
18746      # All AIX code is PIC.
18747      if test "$host_cpu" = ia64; then
18748	# AIX 5 now supports IA64 processor
18749	lt_prog_compiler_static_F77='-Bstatic'
18750      fi
18751      ;;
18752
18753    amigaos*)
18754      # FIXME: we need at least 68020 code to build shared libraries, but
18755      # adding the `-m68020' flag to GCC prevents building anything better,
18756      # like `-m68040'.
18757      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18758      ;;
18759
18760    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18761      # PIC is the default for these OSes.
18762      ;;
18763
18764    mingw* | cygwin* | pw32* | os2*)
18765      # This hack is so that the source file can tell whether it is being
18766      # built for inclusion in a dll (and should export symbols for example).
18767      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18768      # (--disable-auto-import) libraries
18769      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18770      ;;
18771
18772    darwin* | rhapsody*)
18773      # PIC is the default on this platform
18774      # Common symbols not allowed in MH_DYLIB files
18775      lt_prog_compiler_pic_F77='-fno-common'
18776      ;;
18777
18778    interix[3-9]*)
18779      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18780      # Instead, we relocate shared libraries at runtime.
18781      ;;
18782
18783    msdosdjgpp*)
18784      # Just because we use GCC doesn't mean we suddenly get shared libraries
18785      # on systems that don't support them.
18786      lt_prog_compiler_can_build_shared_F77=no
18787      enable_shared=no
18788      ;;
18789
18790    sysv4*MP*)
18791      if test -d /usr/nec; then
18792	lt_prog_compiler_pic_F77=-Kconform_pic
18793      fi
18794      ;;
18795
18796    hpux*)
18797      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18798      # not for PA HP-UX.
18799      case $host_cpu in
18800      hppa*64*|ia64*)
18801	# +Z the default
18802	;;
18803      *)
18804	lt_prog_compiler_pic_F77='-fPIC'
18805	;;
18806      esac
18807      ;;
18808
18809    *)
18810      lt_prog_compiler_pic_F77='-fPIC'
18811      ;;
18812    esac
18813  else
18814    # PORTME Check for flag to pass linker flags through the system compiler.
18815    case $host_os in
18816    aix*)
18817      lt_prog_compiler_wl_F77='-Wl,'
18818      if test "$host_cpu" = ia64; then
18819	# AIX 5 now supports IA64 processor
18820	lt_prog_compiler_static_F77='-Bstatic'
18821      else
18822	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18823      fi
18824      ;;
18825      darwin*)
18826        # PIC is the default on this platform
18827        # Common symbols not allowed in MH_DYLIB files
18828       case $cc_basename in
18829         xlc*)
18830         lt_prog_compiler_pic_F77='-qnocommon'
18831         lt_prog_compiler_wl_F77='-Wl,'
18832         ;;
18833       esac
18834       ;;
18835
18836    mingw* | cygwin* | pw32* | os2*)
18837      # This hack is so that the source file can tell whether it is being
18838      # built for inclusion in a dll (and should export symbols for example).
18839      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18840      ;;
18841
18842    hpux9* | hpux10* | hpux11*)
18843      lt_prog_compiler_wl_F77='-Wl,'
18844      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18845      # not for PA HP-UX.
18846      case $host_cpu in
18847      hppa*64*|ia64*)
18848	# +Z the default
18849	;;
18850      *)
18851	lt_prog_compiler_pic_F77='+Z'
18852	;;
18853      esac
18854      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18855      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18856      ;;
18857
18858    irix5* | irix6* | nonstopux*)
18859      lt_prog_compiler_wl_F77='-Wl,'
18860      # PIC (with -KPIC) is the default.
18861      lt_prog_compiler_static_F77='-non_shared'
18862      ;;
18863
18864    newsos6)
18865      lt_prog_compiler_pic_F77='-KPIC'
18866      lt_prog_compiler_static_F77='-Bstatic'
18867      ;;
18868
18869    linux* | k*bsd*-gnu)
18870      case $cc_basename in
18871      icc* | ecc*)
18872	lt_prog_compiler_wl_F77='-Wl,'
18873	lt_prog_compiler_pic_F77='-KPIC'
18874	lt_prog_compiler_static_F77='-static'
18875        ;;
18876      pgcc* | pgf77* | pgf90* | pgf95*)
18877        # Portland Group compilers (*not* the Pentium gcc compiler,
18878	# which looks to be a dead project)
18879	lt_prog_compiler_wl_F77='-Wl,'
18880	lt_prog_compiler_pic_F77='-fpic'
18881	lt_prog_compiler_static_F77='-Bstatic'
18882        ;;
18883      ccc*)
18884        lt_prog_compiler_wl_F77='-Wl,'
18885        # All Alpha code is PIC.
18886        lt_prog_compiler_static_F77='-non_shared'
18887        ;;
18888      *)
18889        case `$CC -V 2>&1 | sed 5q` in
18890	*Sun\ C*)
18891	  # Sun C 5.9
18892	  lt_prog_compiler_pic_F77='-KPIC'
18893	  lt_prog_compiler_static_F77='-Bstatic'
18894	  lt_prog_compiler_wl_F77='-Wl,'
18895	  ;;
18896	*Sun\ F*)
18897	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
18898	  lt_prog_compiler_pic_F77='-KPIC'
18899	  lt_prog_compiler_static_F77='-Bstatic'
18900	  lt_prog_compiler_wl_F77=''
18901	  ;;
18902	esac
18903	;;
18904      esac
18905      ;;
18906
18907    osf3* | osf4* | osf5*)
18908      lt_prog_compiler_wl_F77='-Wl,'
18909      # All OSF/1 code is PIC.
18910      lt_prog_compiler_static_F77='-non_shared'
18911      ;;
18912
18913    rdos*)
18914      lt_prog_compiler_static_F77='-non_shared'
18915      ;;
18916
18917    solaris*)
18918      lt_prog_compiler_pic_F77='-KPIC'
18919      lt_prog_compiler_static_F77='-Bstatic'
18920      case $cc_basename in
18921      f77* | f90* | f95*)
18922	lt_prog_compiler_wl_F77='-Qoption ld ';;
18923      *)
18924	lt_prog_compiler_wl_F77='-Wl,';;
18925      esac
18926      ;;
18927
18928    sunos4*)
18929      lt_prog_compiler_wl_F77='-Qoption ld '
18930      lt_prog_compiler_pic_F77='-PIC'
18931      lt_prog_compiler_static_F77='-Bstatic'
18932      ;;
18933
18934    sysv4 | sysv4.2uw2* | sysv4.3*)
18935      lt_prog_compiler_wl_F77='-Wl,'
18936      lt_prog_compiler_pic_F77='-KPIC'
18937      lt_prog_compiler_static_F77='-Bstatic'
18938      ;;
18939
18940    sysv4*MP*)
18941      if test -d /usr/nec ;then
18942	lt_prog_compiler_pic_F77='-Kconform_pic'
18943	lt_prog_compiler_static_F77='-Bstatic'
18944      fi
18945      ;;
18946
18947    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18948      lt_prog_compiler_wl_F77='-Wl,'
18949      lt_prog_compiler_pic_F77='-KPIC'
18950      lt_prog_compiler_static_F77='-Bstatic'
18951      ;;
18952
18953    unicos*)
18954      lt_prog_compiler_wl_F77='-Wl,'
18955      lt_prog_compiler_can_build_shared_F77=no
18956      ;;
18957
18958    uts4*)
18959      lt_prog_compiler_pic_F77='-pic'
18960      lt_prog_compiler_static_F77='-Bstatic'
18961      ;;
18962
18963    *)
18964      lt_prog_compiler_can_build_shared_F77=no
18965      ;;
18966    esac
18967  fi
18968
18969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
18970$as_echo "$lt_prog_compiler_pic_F77" >&6; }
18971
18972#
18973# Check to make sure the PIC flag actually works.
18974#
18975if test -n "$lt_prog_compiler_pic_F77"; then
18976
18977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18978$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
18979if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
18980  $as_echo_n "(cached) " >&6
18981else
18982  lt_cv_prog_compiler_pic_works_F77=no
18983  ac_outfile=conftest.$ac_objext
18984   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18985   lt_compiler_flag="$lt_prog_compiler_pic_F77"
18986   # Insert the option either (1) after the last *FLAGS variable, or
18987   # (2) before a word containing "conftest.", or (3) at the end.
18988   # Note that $ac_compile itself does not contain backslashes and begins
18989   # with a dollar sign (not a hyphen), so the echo should work correctly.
18990   # The option is referenced via a variable to avoid confusing sed.
18991   lt_compile=`echo "$ac_compile" | $SED \
18992   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18993   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18994   -e 's:$: $lt_compiler_flag:'`
18995   (eval echo "\"\$as_me:18995: $lt_compile\"" >&5)
18996   (eval "$lt_compile" 2>conftest.err)
18997   ac_status=$?
18998   cat conftest.err >&5
18999   echo "$as_me:18999: \$? = $ac_status" >&5
19000   if (exit $ac_status) && test -s "$ac_outfile"; then
19001     # The compiler can only warn and ignore the option if not recognized
19002     # So say no if there are warnings other than the usual output.
19003     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19004     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19005     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19006       lt_cv_prog_compiler_pic_works_F77=yes
19007     fi
19008   fi
19009   $rm conftest*
19010
19011fi
19012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
19013$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
19014
19015if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
19016    case $lt_prog_compiler_pic_F77 in
19017     "" | " "*) ;;
19018     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19019     esac
19020else
19021    lt_prog_compiler_pic_F77=
19022     lt_prog_compiler_can_build_shared_F77=no
19023fi
19024
19025fi
19026case $host_os in
19027  # For platforms which do not support PIC, -DPIC is meaningless:
19028  *djgpp*)
19029    lt_prog_compiler_pic_F77=
19030    ;;
19031  *)
19032    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19033    ;;
19034esac
19035
19036#
19037# Check to make sure the static flag actually works.
19038#
19039wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
19040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19041$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19042if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
19043  $as_echo_n "(cached) " >&6
19044else
19045  lt_cv_prog_compiler_static_works_F77=no
19046   save_LDFLAGS="$LDFLAGS"
19047   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19048   echo "$lt_simple_link_test_code" > conftest.$ac_ext
19049   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19050     # The linker can only warn and ignore the option if not recognized
19051     # So say no if there are warnings
19052     if test -s conftest.err; then
19053       # Append any errors to the config.log.
19054       cat conftest.err 1>&5
19055       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19056       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19057       if diff conftest.exp conftest.er2 >/dev/null; then
19058         lt_cv_prog_compiler_static_works_F77=yes
19059       fi
19060     else
19061       lt_cv_prog_compiler_static_works_F77=yes
19062     fi
19063   fi
19064   $rm -r conftest*
19065   LDFLAGS="$save_LDFLAGS"
19066
19067fi
19068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
19069$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
19070
19071if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
19072    :
19073else
19074    lt_prog_compiler_static_F77=
19075fi
19076
19077
19078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19079$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19080if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
19081  $as_echo_n "(cached) " >&6
19082else
19083  lt_cv_prog_compiler_c_o_F77=no
19084   $rm -r conftest 2>/dev/null
19085   mkdir conftest
19086   cd conftest
19087   mkdir out
19088   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19089
19090   lt_compiler_flag="-o out/conftest2.$ac_objext"
19091   # Insert the option either (1) after the last *FLAGS variable, or
19092   # (2) before a word containing "conftest.", or (3) at the end.
19093   # Note that $ac_compile itself does not contain backslashes and begins
19094   # with a dollar sign (not a hyphen), so the echo should work correctly.
19095   lt_compile=`echo "$ac_compile" | $SED \
19096   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19097   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19098   -e 's:$: $lt_compiler_flag:'`
19099   (eval echo "\"\$as_me:19099: $lt_compile\"" >&5)
19100   (eval "$lt_compile" 2>out/conftest.err)
19101   ac_status=$?
19102   cat out/conftest.err >&5
19103   echo "$as_me:19103: \$? = $ac_status" >&5
19104   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19105   then
19106     # The compiler can only warn and ignore the option if not recognized
19107     # So say no if there are warnings
19108     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19109     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19110     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19111       lt_cv_prog_compiler_c_o_F77=yes
19112     fi
19113   fi
19114   chmod u+w . 2>&5
19115   $rm conftest*
19116   # SGI C++ compiler will create directory out/ii_files/ for
19117   # template instantiation
19118   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19119   $rm out/* && rmdir out
19120   cd ..
19121   rmdir conftest
19122   $rm conftest*
19123
19124fi
19125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
19126$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
19127
19128
19129hard_links="nottested"
19130if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19131  # do not overwrite the value of need_locks provided by the user
19132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19133$as_echo_n "checking if we can lock with hard links... " >&6; }
19134  hard_links=yes
19135  $rm conftest*
19136  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19137  touch conftest.a
19138  ln conftest.a conftest.b 2>&5 || hard_links=no
19139  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19141$as_echo "$hard_links" >&6; }
19142  if test "$hard_links" = no; then
19143    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19144$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19145    need_locks=warn
19146  fi
19147else
19148  need_locks=no
19149fi
19150
19151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19152$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19153
19154  runpath_var=
19155  allow_undefined_flag_F77=
19156  enable_shared_with_static_runtimes_F77=no
19157  archive_cmds_F77=
19158  archive_expsym_cmds_F77=
19159  old_archive_From_new_cmds_F77=
19160  old_archive_from_expsyms_cmds_F77=
19161  export_dynamic_flag_spec_F77=
19162  whole_archive_flag_spec_F77=
19163  thread_safe_flag_spec_F77=
19164  hardcode_libdir_flag_spec_F77=
19165  hardcode_libdir_flag_spec_ld_F77=
19166  hardcode_libdir_separator_F77=
19167  hardcode_direct_F77=no
19168  hardcode_minus_L_F77=no
19169  hardcode_shlibpath_var_F77=unsupported
19170  link_all_deplibs_F77=unknown
19171  hardcode_automatic_F77=no
19172  module_cmds_F77=
19173  module_expsym_cmds_F77=
19174  always_export_symbols_F77=no
19175  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19176  # include_expsyms should be a list of space-separated symbols to be *always*
19177  # included in the symbol list
19178  include_expsyms_F77=
19179  # exclude_expsyms can be an extended regexp of symbols to exclude
19180  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19181  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19182  # as well as any symbol that contains `d'.
19183  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19184  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19185  # platforms (ab)use it in PIC code, but their linkers get confused if
19186  # the symbol is explicitly referenced.  Since portable code cannot
19187  # rely on this symbol name, it's probably fine to never include it in
19188  # preloaded symbol tables.
19189  # Exclude shared library initialization/finalization symbols.
19190  extract_expsyms_cmds=
19191  # Just being paranoid about ensuring that cc_basename is set.
19192  for cc_temp in $compiler""; do
19193  case $cc_temp in
19194    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19195    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19196    \-*) ;;
19197    *) break;;
19198  esac
19199done
19200cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19201
19202  case $host_os in
19203  cygwin* | mingw* | pw32*)
19204    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19205    # When not using gcc, we currently assume that we are using
19206    # Microsoft Visual C++.
19207    if test "$GCC" != yes; then
19208      with_gnu_ld=no
19209    fi
19210    ;;
19211  interix*)
19212    # we just hope/assume this is gcc and not c89 (= MSVC++)
19213    with_gnu_ld=yes
19214    ;;
19215  openbsd*)
19216    with_gnu_ld=no
19217    ;;
19218  esac
19219
19220  ld_shlibs_F77=yes
19221  if test "$with_gnu_ld" = yes; then
19222    # If archive_cmds runs LD, not CC, wlarc should be empty
19223    wlarc='${wl}'
19224
19225    # Set some defaults for GNU ld with shared library support. These
19226    # are reset later if shared libraries are not supported. Putting them
19227    # here allows them to be overridden if necessary.
19228    runpath_var=LD_RUN_PATH
19229    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19230    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19231    # ancient GNU ld didn't support --whole-archive et. al.
19232    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19233	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19234      else
19235  	whole_archive_flag_spec_F77=
19236    fi
19237    supports_anon_versioning=no
19238    case `$LD -v 2>/dev/null` in
19239      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19240      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19241      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19242      *\ 2.11.*) ;; # other 2.11 versions
19243      *) supports_anon_versioning=yes ;;
19244    esac
19245
19246    # See if GNU ld supports shared libraries.
19247    case $host_os in
19248    aix[3-9]*)
19249      # On AIX/PPC, the GNU linker is very broken
19250      if test "$host_cpu" != ia64; then
19251	ld_shlibs_F77=no
19252	cat <<EOF 1>&2
19253
19254*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19255*** to be unable to reliably create shared libraries on AIX.
19256*** Therefore, libtool is disabling shared libraries support.  If you
19257*** really care for shared libraries, you may want to modify your PATH
19258*** so that a non-GNU linker is found, and then restart.
19259
19260EOF
19261      fi
19262      ;;
19263
19264    amigaos*)
19265      archive_cmds_F77='$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)'
19266      hardcode_libdir_flag_spec_F77='-L$libdir'
19267      hardcode_minus_L_F77=yes
19268
19269      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19270      # that the semantics of dynamic libraries on AmigaOS, at least up
19271      # to version 4, is to share data among multiple programs linked
19272      # with the same dynamic library.  Since this doesn't match the
19273      # behavior of shared libraries on other platforms, we can't use
19274      # them.
19275      ld_shlibs_F77=no
19276      ;;
19277
19278    beos*)
19279      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19280	allow_undefined_flag_F77=unsupported
19281	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19282	# support --undefined.  This deserves some investigation.  FIXME
19283	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19284      else
19285	ld_shlibs_F77=no
19286      fi
19287      ;;
19288
19289    cygwin* | mingw* | pw32*)
19290      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19291      # as there is no search path for DLLs.
19292      hardcode_libdir_flag_spec_F77='-L$libdir'
19293      allow_undefined_flag_F77=unsupported
19294      always_export_symbols_F77=no
19295      enable_shared_with_static_runtimes_F77=yes
19296      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19297
19298      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19299        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19300	# If the export-symbols file already is a .def file (1st line
19301	# is EXPORTS), use it as is; otherwise, prepend...
19302	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19303	  cp $export_symbols $output_objdir/$soname.def;
19304	else
19305	  echo EXPORTS > $output_objdir/$soname.def;
19306	  cat $export_symbols >> $output_objdir/$soname.def;
19307	fi~
19308	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19309      else
19310	ld_shlibs_F77=no
19311      fi
19312      ;;
19313
19314    interix[3-9]*)
19315      hardcode_direct_F77=no
19316      hardcode_shlibpath_var_F77=no
19317      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19318      export_dynamic_flag_spec_F77='${wl}-E'
19319      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19320      # Instead, shared libraries are loaded at an image base (0x10000000 by
19321      # default) and relocated if they conflict, which is a slow very memory
19322      # consuming and fragmenting process.  To avoid this, we pick a random,
19323      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19324      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19325      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19326      archive_expsym_cmds_F77='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'
19327      ;;
19328
19329    gnu* | linux* | k*bsd*-gnu)
19330      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19331	tmp_addflag=
19332	case $cc_basename,$host_cpu in
19333	pgcc*)				# Portland Group C compiler
19334	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19335	  tmp_addflag=' $pic_flag'
19336	  ;;
19337	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
19338	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19339	  tmp_addflag=' $pic_flag -Mnomain' ;;
19340	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
19341	  tmp_addflag=' -i_dynamic' ;;
19342	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
19343	  tmp_addflag=' -i_dynamic -nofor_main' ;;
19344	ifc* | ifort*)			# Intel Fortran compiler
19345	  tmp_addflag=' -nofor_main' ;;
19346	esac
19347	case `$CC -V 2>&1 | sed 5q` in
19348	*Sun\ C*)			# Sun C 5.9
19349	  whole_archive_flag_spec_F77='${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'
19350	  tmp_sharedflag='-G' ;;
19351	*Sun\ F*)			# Sun Fortran 8.3
19352	  tmp_sharedflag='-G' ;;
19353	*)
19354	  tmp_sharedflag='-shared' ;;
19355	esac
19356	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19357
19358	if test $supports_anon_versioning = yes; then
19359	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19360  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19361  $echo "local: *; };" >> $output_objdir/$libname.ver~
19362	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19363	fi
19364      else
19365	ld_shlibs_F77=no
19366      fi
19367      ;;
19368
19369    netbsd*)
19370      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19371	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19372	wlarc=
19373      else
19374	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19375	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19376      fi
19377      ;;
19378
19379    solaris*)
19380      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19381	ld_shlibs_F77=no
19382	cat <<EOF 1>&2
19383
19384*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19385*** create shared libraries on Solaris systems.  Therefore, libtool
19386*** is disabling shared libraries support.  We urge you to upgrade GNU
19387*** binutils to release 2.9.1 or newer.  Another option is to modify
19388*** your PATH or compiler configuration so that the native linker is
19389*** used, and then restart.
19390
19391EOF
19392      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19393	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19394	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19395      else
19396	ld_shlibs_F77=no
19397      fi
19398      ;;
19399
19400    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19401      case `$LD -v 2>&1` in
19402        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19403	ld_shlibs_F77=no
19404	cat <<_LT_EOF 1>&2
19405
19406*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19407*** reliably create shared libraries on SCO systems.  Therefore, libtool
19408*** is disabling shared libraries support.  We urge you to upgrade GNU
19409*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19410*** your PATH or compiler configuration so that the native linker is
19411*** used, and then restart.
19412
19413_LT_EOF
19414	;;
19415	*)
19416	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19417	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19418	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19419	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19420	  else
19421	    ld_shlibs_F77=no
19422	  fi
19423	;;
19424      esac
19425      ;;
19426
19427    sunos4*)
19428      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19429      wlarc=
19430      hardcode_direct_F77=yes
19431      hardcode_shlibpath_var_F77=no
19432      ;;
19433
19434    *)
19435      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19436	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19437	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19438      else
19439	ld_shlibs_F77=no
19440      fi
19441      ;;
19442    esac
19443
19444    if test "$ld_shlibs_F77" = no; then
19445      runpath_var=
19446      hardcode_libdir_flag_spec_F77=
19447      export_dynamic_flag_spec_F77=
19448      whole_archive_flag_spec_F77=
19449    fi
19450  else
19451    # PORTME fill in a description of your system's linker (not GNU ld)
19452    case $host_os in
19453    aix3*)
19454      allow_undefined_flag_F77=unsupported
19455      always_export_symbols_F77=yes
19456      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19457      # Note: this linker hardcodes the directories in LIBPATH if there
19458      # are no directories specified by -L.
19459      hardcode_minus_L_F77=yes
19460      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19461	# Neither direct hardcoding nor static linking is supported with a
19462	# broken collect2.
19463	hardcode_direct_F77=unsupported
19464      fi
19465      ;;
19466
19467    aix[4-9]*)
19468      if test "$host_cpu" = ia64; then
19469	# On IA64, the linker does run time linking by default, so we don't
19470	# have to do anything special.
19471	aix_use_runtimelinking=no
19472	exp_sym_flag='-Bexport'
19473	no_entry_flag=""
19474      else
19475	# If we're using GNU nm, then we don't want the "-C" option.
19476	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19477	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19478	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19479	else
19480	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19481	fi
19482	aix_use_runtimelinking=no
19483
19484	# Test if we are trying to use run time linking or normal
19485	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19486	# need to do runtime linking.
19487	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19488	  for ld_flag in $LDFLAGS; do
19489  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19490  	    aix_use_runtimelinking=yes
19491  	    break
19492  	  fi
19493	  done
19494	  ;;
19495	esac
19496
19497	exp_sym_flag='-bexport'
19498	no_entry_flag='-bnoentry'
19499      fi
19500
19501      # When large executables or shared objects are built, AIX ld can
19502      # have problems creating the table of contents.  If linking a library
19503      # or program results in "error TOC overflow" add -mminimal-toc to
19504      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19505      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19506
19507      archive_cmds_F77=''
19508      hardcode_direct_F77=yes
19509      hardcode_libdir_separator_F77=':'
19510      link_all_deplibs_F77=yes
19511
19512      if test "$GCC" = yes; then
19513	case $host_os in aix4.[012]|aix4.[012].*)
19514	# We only want to do this on AIX 4.2 and lower, the check
19515	# below for broken collect2 doesn't work under 4.3+
19516	  collect2name=`${CC} -print-prog-name=collect2`
19517	  if test -f "$collect2name" && \
19518  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19519	  then
19520  	  # We have reworked collect2
19521  	  :
19522	  else
19523  	  # We have old collect2
19524  	  hardcode_direct_F77=unsupported
19525  	  # It fails to find uninstalled libraries when the uninstalled
19526  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19527  	  # to unsupported forces relinking
19528  	  hardcode_minus_L_F77=yes
19529  	  hardcode_libdir_flag_spec_F77='-L$libdir'
19530  	  hardcode_libdir_separator_F77=
19531	  fi
19532	  ;;
19533	esac
19534	shared_flag='-shared'
19535	if test "$aix_use_runtimelinking" = yes; then
19536	  shared_flag="$shared_flag "'${wl}-G'
19537	fi
19538      else
19539	# not using gcc
19540	if test "$host_cpu" = ia64; then
19541  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19542  	# chokes on -Wl,-G. The following line is correct:
19543	  shared_flag='-G'
19544	else
19545	  if test "$aix_use_runtimelinking" = yes; then
19546	    shared_flag='${wl}-G'
19547	  else
19548	    shared_flag='${wl}-bM:SRE'
19549	  fi
19550	fi
19551      fi
19552
19553      # It seems that -bexpall does not export symbols beginning with
19554      # underscore (_), so it is better to generate a list of symbols to export.
19555      always_export_symbols_F77=yes
19556      if test "$aix_use_runtimelinking" = yes; then
19557	# Warning - without using the other runtime loading flags (-brtl),
19558	# -berok will link without error, but may produce a broken library.
19559	allow_undefined_flag_F77='-berok'
19560       # Determine the default libpath from the value encoded in an empty executable.
19561       cat > conftest.$ac_ext <<_ACEOF
19562      program main
19563
19564      end
19565_ACEOF
19566if ac_fn_f77_try_link "$LINENO"; then :
19567
19568lt_aix_libpath_sed='
19569    /Import File Strings/,/^$/ {
19570	/^0/ {
19571	    s/^0  *\(.*\)$/\1/
19572	    p
19573	}
19574    }'
19575aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19576# Check for a 64-bit object if we didn't find anything.
19577if test -z "$aix_libpath"; then
19578  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19579fi
19580fi
19581rm -f core conftest.err conftest.$ac_objext \
19582    conftest$ac_exeext conftest.$ac_ext
19583if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19584
19585       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19586	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19587       else
19588	if test "$host_cpu" = ia64; then
19589	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19590	  allow_undefined_flag_F77="-z nodefs"
19591	  archive_expsym_cmds_F77="\$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"
19592	else
19593	 # Determine the default libpath from the value encoded in an empty executable.
19594	 cat > conftest.$ac_ext <<_ACEOF
19595      program main
19596
19597      end
19598_ACEOF
19599if ac_fn_f77_try_link "$LINENO"; then :
19600
19601lt_aix_libpath_sed='
19602    /Import File Strings/,/^$/ {
19603	/^0/ {
19604	    s/^0  *\(.*\)$/\1/
19605	    p
19606	}
19607    }'
19608aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19609# Check for a 64-bit object if we didn't find anything.
19610if test -z "$aix_libpath"; then
19611  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19612fi
19613fi
19614rm -f core conftest.err conftest.$ac_objext \
19615    conftest$ac_exeext conftest.$ac_ext
19616if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19617
19618	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19619	  # Warning - without using the other run time loading flags,
19620	  # -berok will link without error, but may produce a broken library.
19621	  no_undefined_flag_F77=' ${wl}-bernotok'
19622	  allow_undefined_flag_F77=' ${wl}-berok'
19623	  # Exported symbols can be pulled into shared objects from archives
19624	  whole_archive_flag_spec_F77='$convenience'
19625	  archive_cmds_need_lc_F77=yes
19626	  # This is similar to how AIX traditionally builds its shared libraries.
19627	  archive_expsym_cmds_F77="\$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'
19628	fi
19629      fi
19630      ;;
19631
19632    amigaos*)
19633      archive_cmds_F77='$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)'
19634      hardcode_libdir_flag_spec_F77='-L$libdir'
19635      hardcode_minus_L_F77=yes
19636      # see comment about different semantics on the GNU ld section
19637      ld_shlibs_F77=no
19638      ;;
19639
19640    bsdi[45]*)
19641      export_dynamic_flag_spec_F77=-rdynamic
19642      ;;
19643
19644    cygwin* | mingw* | pw32*)
19645      # When not using gcc, we currently assume that we are using
19646      # Microsoft Visual C++.
19647      # hardcode_libdir_flag_spec is actually meaningless, as there is
19648      # no search path for DLLs.
19649      hardcode_libdir_flag_spec_F77=' '
19650      allow_undefined_flag_F77=unsupported
19651      # Tell ltmain to make .lib files, not .a files.
19652      libext=lib
19653      # Tell ltmain to make .dll files, not .so files.
19654      shrext_cmds=".dll"
19655      # FIXME: Setting linknames here is a bad hack.
19656      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19657      # The linker will automatically build a .lib file if we build a DLL.
19658      old_archive_From_new_cmds_F77='true'
19659      # FIXME: Should let the user specify the lib program.
19660      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
19661      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
19662      enable_shared_with_static_runtimes_F77=yes
19663      ;;
19664
19665    darwin* | rhapsody*)
19666      case $host_os in
19667        rhapsody* | darwin1.[012])
19668         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19669         ;;
19670       *) # Darwin 1.3 on
19671         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19672           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19673         else
19674           case ${MACOSX_DEPLOYMENT_TARGET} in
19675             10.[012])
19676               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19677               ;;
19678             10.*)
19679               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19680               ;;
19681           esac
19682         fi
19683         ;;
19684      esac
19685      archive_cmds_need_lc_F77=no
19686      hardcode_direct_F77=no
19687      hardcode_automatic_F77=yes
19688      hardcode_shlibpath_var_F77=unsupported
19689      whole_archive_flag_spec_F77=''
19690      link_all_deplibs_F77=yes
19691    if test "$GCC" = yes ; then
19692    	output_verbose_link_cmd='echo'
19693        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19694        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19695        archive_expsym_cmds_F77="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}"
19696        module_expsym_cmds_F77="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}"
19697    else
19698      case $cc_basename in
19699        xlc*)
19700         output_verbose_link_cmd='echo'
19701         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19702         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19703          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19704         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19705          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19706          ;;
19707       *)
19708         ld_shlibs_F77=no
19709          ;;
19710      esac
19711    fi
19712      ;;
19713
19714    dgux*)
19715      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19716      hardcode_libdir_flag_spec_F77='-L$libdir'
19717      hardcode_shlibpath_var_F77=no
19718      ;;
19719
19720    freebsd1*)
19721      ld_shlibs_F77=no
19722      ;;
19723
19724    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19725    # support.  Future versions do this automatically, but an explicit c++rt0.o
19726    # does not break anything, and helps significantly (at the cost of a little
19727    # extra space).
19728    freebsd2.2*)
19729      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19730      hardcode_libdir_flag_spec_F77='-R$libdir'
19731      hardcode_direct_F77=yes
19732      hardcode_shlibpath_var_F77=no
19733      ;;
19734
19735    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19736    freebsd2*)
19737      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19738      hardcode_direct_F77=yes
19739      hardcode_minus_L_F77=yes
19740      hardcode_shlibpath_var_F77=no
19741      ;;
19742
19743    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19744    freebsd* | dragonfly*)
19745      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19746      hardcode_libdir_flag_spec_F77='-R$libdir'
19747      hardcode_direct_F77=yes
19748      hardcode_shlibpath_var_F77=no
19749      ;;
19750
19751    hpux9*)
19752      if test "$GCC" = yes; then
19753	archive_cmds_F77='$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'
19754      else
19755	archive_cmds_F77='$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'
19756      fi
19757      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19758      hardcode_libdir_separator_F77=:
19759      hardcode_direct_F77=yes
19760
19761      # hardcode_minus_L: Not really in the search PATH,
19762      # but as the default location of the library.
19763      hardcode_minus_L_F77=yes
19764      export_dynamic_flag_spec_F77='${wl}-E'
19765      ;;
19766
19767    hpux10*)
19768      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19769	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19770      else
19771	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19772      fi
19773      if test "$with_gnu_ld" = no; then
19774	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19775	hardcode_libdir_separator_F77=:
19776
19777	hardcode_direct_F77=yes
19778	export_dynamic_flag_spec_F77='${wl}-E'
19779
19780	# hardcode_minus_L: Not really in the search PATH,
19781	# but as the default location of the library.
19782	hardcode_minus_L_F77=yes
19783      fi
19784      ;;
19785
19786    hpux11*)
19787      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19788	case $host_cpu in
19789	hppa*64*)
19790	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19791	  ;;
19792	ia64*)
19793	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19794	  ;;
19795	*)
19796	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19797	  ;;
19798	esac
19799      else
19800	case $host_cpu in
19801	hppa*64*)
19802	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19803	  ;;
19804	ia64*)
19805	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19806	  ;;
19807	*)
19808	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19809	  ;;
19810	esac
19811      fi
19812      if test "$with_gnu_ld" = no; then
19813	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19814	hardcode_libdir_separator_F77=:
19815
19816	case $host_cpu in
19817	hppa*64*|ia64*)
19818	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19819	  hardcode_direct_F77=no
19820	  hardcode_shlibpath_var_F77=no
19821	  ;;
19822	*)
19823	  hardcode_direct_F77=yes
19824	  export_dynamic_flag_spec_F77='${wl}-E'
19825
19826	  # hardcode_minus_L: Not really in the search PATH,
19827	  # but as the default location of the library.
19828	  hardcode_minus_L_F77=yes
19829	  ;;
19830	esac
19831      fi
19832      ;;
19833
19834    irix5* | irix6* | nonstopux*)
19835      if test "$GCC" = yes; then
19836	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19837      else
19838	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19839	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19840      fi
19841      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19842      hardcode_libdir_separator_F77=:
19843      link_all_deplibs_F77=yes
19844      ;;
19845
19846    netbsd*)
19847      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19848	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19849      else
19850	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19851      fi
19852      hardcode_libdir_flag_spec_F77='-R$libdir'
19853      hardcode_direct_F77=yes
19854      hardcode_shlibpath_var_F77=no
19855      ;;
19856
19857    newsos6)
19858      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19859      hardcode_direct_F77=yes
19860      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19861      hardcode_libdir_separator_F77=:
19862      hardcode_shlibpath_var_F77=no
19863      ;;
19864
19865    openbsd*)
19866      if test -f /usr/libexec/ld.so; then
19867	hardcode_direct_F77=yes
19868	hardcode_shlibpath_var_F77=no
19869	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19870	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19871	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19872	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19873	  export_dynamic_flag_spec_F77='${wl}-E'
19874	else
19875	  case $host_os in
19876	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19877	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19878	     hardcode_libdir_flag_spec_F77='-R$libdir'
19879	     ;;
19880	   *)
19881	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19882	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19883	     ;;
19884	  esac
19885        fi
19886      else
19887	ld_shlibs_F77=no
19888      fi
19889      ;;
19890
19891    os2*)
19892      hardcode_libdir_flag_spec_F77='-L$libdir'
19893      hardcode_minus_L_F77=yes
19894      allow_undefined_flag_F77=unsupported
19895      archive_cmds_F77='$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'
19896      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19897      ;;
19898
19899    osf3*)
19900      if test "$GCC" = yes; then
19901	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19902	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19903      else
19904	allow_undefined_flag_F77=' -expect_unresolved \*'
19905	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19906      fi
19907      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19908      hardcode_libdir_separator_F77=:
19909      ;;
19910
19911    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19912      if test "$GCC" = yes; then
19913	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19914	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19915	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19916      else
19917	allow_undefined_flag_F77=' -expect_unresolved \*'
19918	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19919	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19920	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19921
19922	# Both c and cxx compiler support -rpath directly
19923	hardcode_libdir_flag_spec_F77='-rpath $libdir'
19924      fi
19925      hardcode_libdir_separator_F77=:
19926      ;;
19927
19928    solaris*)
19929      no_undefined_flag_F77=' -z text'
19930      if test "$GCC" = yes; then
19931	wlarc='${wl}'
19932	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19933	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19934	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19935      else
19936	wlarc=''
19937	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19938	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19939  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19940      fi
19941      hardcode_libdir_flag_spec_F77='-R$libdir'
19942      hardcode_shlibpath_var_F77=no
19943      case $host_os in
19944      solaris2.[0-5] | solaris2.[0-5].*) ;;
19945      *)
19946	# The compiler driver will combine and reorder linker options,
19947	# but understands `-z linker_flag'.  GCC discards it without `$wl',
19948	# but is careful enough not to reorder.
19949 	# Supported since Solaris 2.6 (maybe 2.5.1?)
19950	if test "$GCC" = yes; then
19951	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19952	else
19953	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
19954	fi
19955	;;
19956      esac
19957      link_all_deplibs_F77=yes
19958      ;;
19959
19960    sunos4*)
19961      if test "x$host_vendor" = xsequent; then
19962	# Use $CC to link under sequent, because it throws in some extra .o
19963	# files that make .init and .fini sections work.
19964	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19965      else
19966	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19967      fi
19968      hardcode_libdir_flag_spec_F77='-L$libdir'
19969      hardcode_direct_F77=yes
19970      hardcode_minus_L_F77=yes
19971      hardcode_shlibpath_var_F77=no
19972      ;;
19973
19974    sysv4)
19975      case $host_vendor in
19976	sni)
19977	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19978	  hardcode_direct_F77=yes # is this really true???
19979	;;
19980	siemens)
19981	  ## LD is ld it makes a PLAMLIB
19982	  ## CC just makes a GrossModule.
19983	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19984	  reload_cmds_F77='$CC -r -o $output$reload_objs'
19985	  hardcode_direct_F77=no
19986        ;;
19987	motorola)
19988	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19989	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19990	;;
19991      esac
19992      runpath_var='LD_RUN_PATH'
19993      hardcode_shlibpath_var_F77=no
19994      ;;
19995
19996    sysv4.3*)
19997      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19998      hardcode_shlibpath_var_F77=no
19999      export_dynamic_flag_spec_F77='-Bexport'
20000      ;;
20001
20002    sysv4*MP*)
20003      if test -d /usr/nec; then
20004	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20005	hardcode_shlibpath_var_F77=no
20006	runpath_var=LD_RUN_PATH
20007	hardcode_runpath_var=yes
20008	ld_shlibs_F77=yes
20009      fi
20010      ;;
20011
20012    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20013      no_undefined_flag_F77='${wl}-z,text'
20014      archive_cmds_need_lc_F77=no
20015      hardcode_shlibpath_var_F77=no
20016      runpath_var='LD_RUN_PATH'
20017
20018      if test "$GCC" = yes; then
20019	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20020	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20021      else
20022	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20023	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20024      fi
20025      ;;
20026
20027    sysv5* | sco3.2v5* | sco5v6*)
20028      # Note: We can NOT use -z defs as we might desire, because we do not
20029      # link with -lc, and that would cause any symbols used from libc to
20030      # always be unresolved, which means just about no library would
20031      # ever link correctly.  If we're not using GNU ld we use -z text
20032      # though, which does catch some bad symbols but isn't as heavy-handed
20033      # as -z defs.
20034      no_undefined_flag_F77='${wl}-z,text'
20035      allow_undefined_flag_F77='${wl}-z,nodefs'
20036      archive_cmds_need_lc_F77=no
20037      hardcode_shlibpath_var_F77=no
20038      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20039      hardcode_libdir_separator_F77=':'
20040      link_all_deplibs_F77=yes
20041      export_dynamic_flag_spec_F77='${wl}-Bexport'
20042      runpath_var='LD_RUN_PATH'
20043
20044      if test "$GCC" = yes; then
20045	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20046	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20047      else
20048	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20049	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20050      fi
20051      ;;
20052
20053    uts4*)
20054      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20055      hardcode_libdir_flag_spec_F77='-L$libdir'
20056      hardcode_shlibpath_var_F77=no
20057      ;;
20058
20059    *)
20060      ld_shlibs_F77=no
20061      ;;
20062    esac
20063  fi
20064
20065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
20066$as_echo "$ld_shlibs_F77" >&6; }
20067test "$ld_shlibs_F77" = no && can_build_shared=no
20068
20069#
20070# Do we need to explicitly link libc?
20071#
20072case "x$archive_cmds_need_lc_F77" in
20073x|xyes)
20074  # Assume -lc should be added
20075  archive_cmds_need_lc_F77=yes
20076
20077  if test "$enable_shared" = yes && test "$GCC" = yes; then
20078    case $archive_cmds_F77 in
20079    *'~'*)
20080      # FIXME: we may have to deal with multi-command sequences.
20081      ;;
20082    '$CC '*)
20083      # Test whether the compiler implicitly links with -lc since on some
20084      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20085      # to ld, don't add -lc before -lgcc.
20086      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20087$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20088      $rm conftest*
20089      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20090
20091      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20092  (eval $ac_compile) 2>&5
20093  ac_status=$?
20094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20095  test $ac_status = 0; } 2>conftest.err; then
20096        soname=conftest
20097        lib=conftest
20098        libobjs=conftest.$ac_objext
20099        deplibs=
20100        wl=$lt_prog_compiler_wl_F77
20101	pic_flag=$lt_prog_compiler_pic_F77
20102        compiler_flags=-v
20103        linker_flags=-v
20104        verstring=
20105        output_objdir=.
20106        libname=conftest
20107        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20108        allow_undefined_flag_F77=
20109        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20110  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20111  ac_status=$?
20112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20113  test $ac_status = 0; }
20114        then
20115	  archive_cmds_need_lc_F77=no
20116        else
20117	  archive_cmds_need_lc_F77=yes
20118        fi
20119        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20120      else
20121        cat conftest.err 1>&5
20122      fi
20123      $rm conftest*
20124      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
20125$as_echo "$archive_cmds_need_lc_F77" >&6; }
20126      ;;
20127    esac
20128  fi
20129  ;;
20130esac
20131
20132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20133$as_echo_n "checking dynamic linker characteristics... " >&6; }
20134library_names_spec=
20135libname_spec='lib$name'
20136soname_spec=
20137shrext_cmds=".so"
20138postinstall_cmds=
20139postuninstall_cmds=
20140finish_cmds=
20141finish_eval=
20142shlibpath_var=
20143shlibpath_overrides_runpath=unknown
20144version_type=none
20145dynamic_linker="$host_os ld.so"
20146sys_lib_dlsearch_path_spec="/lib /usr/lib"
20147
20148need_lib_prefix=unknown
20149hardcode_into_libs=no
20150
20151# when you set need_version to no, make sure it does not cause -set_version
20152# flags to be left without arguments
20153need_version=unknown
20154
20155case $host_os in
20156aix3*)
20157  version_type=linux
20158  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20159  shlibpath_var=LIBPATH
20160
20161  # AIX 3 has no versioning support, so we append a major version to the name.
20162  soname_spec='${libname}${release}${shared_ext}$major'
20163  ;;
20164
20165aix[4-9]*)
20166  version_type=linux
20167  need_lib_prefix=no
20168  need_version=no
20169  hardcode_into_libs=yes
20170  if test "$host_cpu" = ia64; then
20171    # AIX 5 supports IA64
20172    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20173    shlibpath_var=LD_LIBRARY_PATH
20174  else
20175    # With GCC up to 2.95.x, collect2 would create an import file
20176    # for dependence libraries.  The import file would start with
20177    # the line `#! .'.  This would cause the generated library to
20178    # depend on `.', always an invalid library.  This was fixed in
20179    # development snapshots of GCC prior to 3.0.
20180    case $host_os in
20181      aix4 | aix4.[01] | aix4.[01].*)
20182      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20183	   echo ' yes '
20184	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20185	:
20186      else
20187	can_build_shared=no
20188      fi
20189      ;;
20190    esac
20191    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20192    # soname into executable. Probably we can add versioning support to
20193    # collect2, so additional links can be useful in future.
20194    if test "$aix_use_runtimelinking" = yes; then
20195      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20196      # instead of lib<name>.a to let people know that these are not
20197      # typical AIX shared libraries.
20198      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199    else
20200      # We preserve .a as extension for shared libraries through AIX4.2
20201      # and later when we are not doing run time linking.
20202      library_names_spec='${libname}${release}.a $libname.a'
20203      soname_spec='${libname}${release}${shared_ext}$major'
20204    fi
20205    shlibpath_var=LIBPATH
20206  fi
20207  ;;
20208
20209amigaos*)
20210  library_names_spec='$libname.ixlibrary $libname.a'
20211  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20212  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'
20213  ;;
20214
20215beos*)
20216  library_names_spec='${libname}${shared_ext}'
20217  dynamic_linker="$host_os ld.so"
20218  shlibpath_var=LIBRARY_PATH
20219  ;;
20220
20221bsdi[45]*)
20222  version_type=linux
20223  need_version=no
20224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20225  soname_spec='${libname}${release}${shared_ext}$major'
20226  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20227  shlibpath_var=LD_LIBRARY_PATH
20228  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20229  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20230  # the default ld.so.conf also contains /usr/contrib/lib and
20231  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20232  # libtool to hard-code these into programs
20233  ;;
20234
20235cygwin* | mingw* | pw32*)
20236  version_type=windows
20237  shrext_cmds=".dll"
20238  need_version=no
20239  need_lib_prefix=no
20240
20241  case $GCC,$host_os in
20242  yes,cygwin* | yes,mingw* | yes,pw32*)
20243    library_names_spec='$libname.dll.a'
20244    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20245    postinstall_cmds='base_file=`basename \${file}`~
20246      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20247      dldir=$destdir/`dirname \$dlpath`~
20248      test -d \$dldir || mkdir -p \$dldir~
20249      $install_prog $dir/$dlname \$dldir/$dlname~
20250      chmod a+x \$dldir/$dlname'
20251    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20252      dlpath=$dir/\$dldll~
20253       $rm \$dlpath'
20254    shlibpath_overrides_runpath=yes
20255
20256    case $host_os in
20257    cygwin*)
20258      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20259      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20260      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20261      ;;
20262    mingw*)
20263      # MinGW DLLs use traditional 'lib' prefix
20264      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20265      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20266      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20267        # It is most probably a Windows format PATH printed by
20268        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20269        # path with ; separators, and with drive letters. We can handle the
20270        # drive letters (cygwin fileutils understands them), so leave them,
20271        # especially as we might pass files found there to a mingw objdump,
20272        # which wouldn't understand a cygwinified path. Ahh.
20273        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20274      else
20275        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20276      fi
20277      ;;
20278    pw32*)
20279      # pw32 DLLs use 'pw' prefix rather than 'lib'
20280      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20281      ;;
20282    esac
20283    ;;
20284
20285  *)
20286    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20287    ;;
20288  esac
20289  dynamic_linker='Win32 ld.exe'
20290  # FIXME: first we should search . and the directory the executable is in
20291  shlibpath_var=PATH
20292  ;;
20293
20294darwin* | rhapsody*)
20295  dynamic_linker="$host_os dyld"
20296  version_type=darwin
20297  need_lib_prefix=no
20298  need_version=no
20299  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20300  soname_spec='${libname}${release}${major}$shared_ext'
20301  shlibpath_overrides_runpath=yes
20302  shlibpath_var=DYLD_LIBRARY_PATH
20303  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20304
20305  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20306  ;;
20307
20308dgux*)
20309  version_type=linux
20310  need_lib_prefix=no
20311  need_version=no
20312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20313  soname_spec='${libname}${release}${shared_ext}$major'
20314  shlibpath_var=LD_LIBRARY_PATH
20315  ;;
20316
20317freebsd1*)
20318  dynamic_linker=no
20319  ;;
20320
20321freebsd* | dragonfly*)
20322  # DragonFly does not have aout.  When/if they implement a new
20323  # versioning mechanism, adjust this.
20324  if test -x /usr/bin/objformat; then
20325    objformat=`/usr/bin/objformat`
20326  else
20327    case $host_os in
20328    freebsd[123]*) objformat=aout ;;
20329    *) objformat=elf ;;
20330    esac
20331  fi
20332  version_type=freebsd-$objformat
20333  case $version_type in
20334    freebsd-elf*)
20335      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20336      need_version=no
20337      need_lib_prefix=no
20338      ;;
20339    freebsd-*)
20340      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20341      need_version=yes
20342      ;;
20343  esac
20344  shlibpath_var=LD_LIBRARY_PATH
20345  case $host_os in
20346  freebsd2*)
20347    shlibpath_overrides_runpath=yes
20348    ;;
20349  freebsd3.[01]* | freebsdelf3.[01]*)
20350    shlibpath_overrides_runpath=yes
20351    hardcode_into_libs=yes
20352    ;;
20353  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20354  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20355    shlibpath_overrides_runpath=no
20356    hardcode_into_libs=yes
20357    ;;
20358  *) # from 4.6 on, and DragonFly
20359    shlibpath_overrides_runpath=yes
20360    hardcode_into_libs=yes
20361    ;;
20362  esac
20363  ;;
20364
20365gnu*)
20366  version_type=linux
20367  need_lib_prefix=no
20368  need_version=no
20369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20370  soname_spec='${libname}${release}${shared_ext}$major'
20371  shlibpath_var=LD_LIBRARY_PATH
20372  hardcode_into_libs=yes
20373  ;;
20374
20375hpux9* | hpux10* | hpux11*)
20376  # Give a soname corresponding to the major version so that dld.sl refuses to
20377  # link against other versions.
20378  version_type=sunos
20379  need_lib_prefix=no
20380  need_version=no
20381  case $host_cpu in
20382  ia64*)
20383    shrext_cmds='.so'
20384    hardcode_into_libs=yes
20385    dynamic_linker="$host_os dld.so"
20386    shlibpath_var=LD_LIBRARY_PATH
20387    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20388    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20389    soname_spec='${libname}${release}${shared_ext}$major'
20390    if test "X$HPUX_IA64_MODE" = X32; then
20391      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20392    else
20393      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20394    fi
20395    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20396    ;;
20397   hppa*64*)
20398     shrext_cmds='.sl'
20399     hardcode_into_libs=yes
20400     dynamic_linker="$host_os dld.sl"
20401     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20402     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20404     soname_spec='${libname}${release}${shared_ext}$major'
20405     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20406     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20407     ;;
20408   *)
20409    shrext_cmds='.sl'
20410    dynamic_linker="$host_os dld.sl"
20411    shlibpath_var=SHLIB_PATH
20412    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20413    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20414    soname_spec='${libname}${release}${shared_ext}$major'
20415    ;;
20416  esac
20417  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20418  postinstall_cmds='chmod 555 $lib'
20419  ;;
20420
20421interix[3-9]*)
20422  version_type=linux
20423  need_lib_prefix=no
20424  need_version=no
20425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20426  soname_spec='${libname}${release}${shared_ext}$major'
20427  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20428  shlibpath_var=LD_LIBRARY_PATH
20429  shlibpath_overrides_runpath=no
20430  hardcode_into_libs=yes
20431  ;;
20432
20433irix5* | irix6* | nonstopux*)
20434  case $host_os in
20435    nonstopux*) version_type=nonstopux ;;
20436    *)
20437	if test "$lt_cv_prog_gnu_ld" = yes; then
20438		version_type=linux
20439	else
20440		version_type=irix
20441	fi ;;
20442  esac
20443  need_lib_prefix=no
20444  need_version=no
20445  soname_spec='${libname}${release}${shared_ext}$major'
20446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20447  case $host_os in
20448  irix5* | nonstopux*)
20449    libsuff= shlibsuff=
20450    ;;
20451  *)
20452    case $LD in # libtool.m4 will add one of these switches to LD
20453    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20454      libsuff= shlibsuff= libmagic=32-bit;;
20455    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20456      libsuff=32 shlibsuff=N32 libmagic=N32;;
20457    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20458      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20459    *) libsuff= shlibsuff= libmagic=never-match;;
20460    esac
20461    ;;
20462  esac
20463  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20464  shlibpath_overrides_runpath=no
20465  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20466  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20467  hardcode_into_libs=yes
20468  ;;
20469
20470# No shared lib support for Linux oldld, aout, or coff.
20471linux*oldld* | linux*aout* | linux*coff*)
20472  dynamic_linker=no
20473  ;;
20474
20475# This must be Linux ELF.
20476linux* | k*bsd*-gnu)
20477  version_type=linux
20478  need_lib_prefix=no
20479  need_version=no
20480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20481  soname_spec='${libname}${release}${shared_ext}$major'
20482  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20483  shlibpath_var=LD_LIBRARY_PATH
20484  shlibpath_overrides_runpath=no
20485  # This implies no fast_install, which is unacceptable.
20486  # Some rework will be needed to allow for fast_install
20487  # before this can be enabled.
20488  hardcode_into_libs=yes
20489
20490  # Append ld.so.conf contents to the search path
20491  if test -f /etc/ld.so.conf; then
20492    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' ' '`
20493    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20494  fi
20495
20496  # We used to test for /lib/ld.so.1 and disable shared libraries on
20497  # powerpc, because MkLinux only supported shared libraries with the
20498  # GNU dynamic linker.  Since this was broken with cross compilers,
20499  # most powerpc-linux boxes support dynamic linking these days and
20500  # people can always --disable-shared, the test was removed, and we
20501  # assume the GNU/Linux dynamic linker is in use.
20502  dynamic_linker='GNU/Linux ld.so'
20503  ;;
20504
20505netbsd*)
20506  version_type=sunos
20507  need_lib_prefix=no
20508  need_version=no
20509  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20510    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20511    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20512    dynamic_linker='NetBSD (a.out) ld.so'
20513  else
20514    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20515    soname_spec='${libname}${release}${shared_ext}$major'
20516    dynamic_linker='NetBSD ld.elf_so'
20517  fi
20518  shlibpath_var=LD_LIBRARY_PATH
20519  shlibpath_overrides_runpath=yes
20520  hardcode_into_libs=yes
20521  ;;
20522
20523newsos6)
20524  version_type=linux
20525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526  shlibpath_var=LD_LIBRARY_PATH
20527  shlibpath_overrides_runpath=yes
20528  ;;
20529
20530nto-qnx*)
20531  version_type=linux
20532  need_lib_prefix=no
20533  need_version=no
20534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20535  soname_spec='${libname}${release}${shared_ext}$major'
20536  shlibpath_var=LD_LIBRARY_PATH
20537  shlibpath_overrides_runpath=yes
20538  ;;
20539
20540openbsd*)
20541  version_type=sunos
20542  sys_lib_dlsearch_path_spec="/usr/lib"
20543  need_lib_prefix=no
20544  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20545  case $host_os in
20546    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20547    *)                         need_version=no  ;;
20548  esac
20549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20550  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20551  shlibpath_var=LD_LIBRARY_PATH
20552  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20553    case $host_os in
20554      openbsd2.[89] | openbsd2.[89].*)
20555	shlibpath_overrides_runpath=no
20556	;;
20557      *)
20558	shlibpath_overrides_runpath=yes
20559	;;
20560      esac
20561  else
20562    shlibpath_overrides_runpath=yes
20563  fi
20564  ;;
20565
20566os2*)
20567  libname_spec='$name'
20568  shrext_cmds=".dll"
20569  need_lib_prefix=no
20570  library_names_spec='$libname${shared_ext} $libname.a'
20571  dynamic_linker='OS/2 ld.exe'
20572  shlibpath_var=LIBPATH
20573  ;;
20574
20575osf3* | osf4* | osf5*)
20576  version_type=osf
20577  need_lib_prefix=no
20578  need_version=no
20579  soname_spec='${libname}${release}${shared_ext}$major'
20580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20581  shlibpath_var=LD_LIBRARY_PATH
20582  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20583  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20584  ;;
20585
20586rdos*)
20587  dynamic_linker=no
20588  ;;
20589
20590solaris*)
20591  version_type=linux
20592  need_lib_prefix=no
20593  need_version=no
20594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20595  soname_spec='${libname}${release}${shared_ext}$major'
20596  shlibpath_var=LD_LIBRARY_PATH
20597  shlibpath_overrides_runpath=yes
20598  hardcode_into_libs=yes
20599  # ldd complains unless libraries are executable
20600  postinstall_cmds='chmod +x $lib'
20601  ;;
20602
20603sunos4*)
20604  version_type=sunos
20605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20606  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20607  shlibpath_var=LD_LIBRARY_PATH
20608  shlibpath_overrides_runpath=yes
20609  if test "$with_gnu_ld" = yes; then
20610    need_lib_prefix=no
20611  fi
20612  need_version=yes
20613  ;;
20614
20615sysv4 | sysv4.3*)
20616  version_type=linux
20617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20618  soname_spec='${libname}${release}${shared_ext}$major'
20619  shlibpath_var=LD_LIBRARY_PATH
20620  case $host_vendor in
20621    sni)
20622      shlibpath_overrides_runpath=no
20623      need_lib_prefix=no
20624      export_dynamic_flag_spec='${wl}-Blargedynsym'
20625      runpath_var=LD_RUN_PATH
20626      ;;
20627    siemens)
20628      need_lib_prefix=no
20629      ;;
20630    motorola)
20631      need_lib_prefix=no
20632      need_version=no
20633      shlibpath_overrides_runpath=no
20634      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20635      ;;
20636  esac
20637  ;;
20638
20639sysv4*MP*)
20640  if test -d /usr/nec ;then
20641    version_type=linux
20642    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20643    soname_spec='$libname${shared_ext}.$major'
20644    shlibpath_var=LD_LIBRARY_PATH
20645  fi
20646  ;;
20647
20648sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20649  version_type=freebsd-elf
20650  need_lib_prefix=no
20651  need_version=no
20652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20653  soname_spec='${libname}${release}${shared_ext}$major'
20654  shlibpath_var=LD_LIBRARY_PATH
20655  hardcode_into_libs=yes
20656  if test "$with_gnu_ld" = yes; then
20657    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20658    shlibpath_overrides_runpath=no
20659  else
20660    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20661    shlibpath_overrides_runpath=yes
20662    case $host_os in
20663      sco3.2v5*)
20664        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20665	;;
20666    esac
20667  fi
20668  sys_lib_dlsearch_path_spec='/usr/lib'
20669  ;;
20670
20671uts4*)
20672  version_type=linux
20673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20674  soname_spec='${libname}${release}${shared_ext}$major'
20675  shlibpath_var=LD_LIBRARY_PATH
20676  ;;
20677
20678*)
20679  dynamic_linker=no
20680  ;;
20681esac
20682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20683$as_echo "$dynamic_linker" >&6; }
20684test "$dynamic_linker" = no && can_build_shared=no
20685
20686if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
20687  $as_echo_n "(cached) " >&6
20688else
20689  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20690fi
20691
20692sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20693if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
20694  $as_echo_n "(cached) " >&6
20695else
20696  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20697fi
20698
20699sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20700
20701variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20702if test "$GCC" = yes; then
20703  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20704fi
20705
20706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20707$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20708hardcode_action_F77=
20709if test -n "$hardcode_libdir_flag_spec_F77" || \
20710   test -n "$runpath_var_F77" || \
20711   test "X$hardcode_automatic_F77" = "Xyes" ; then
20712
20713  # We can hardcode non-existant directories.
20714  if test "$hardcode_direct_F77" != no &&
20715     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20716     # have to relink, otherwise we might link with an installed library
20717     # when we should be linking with a yet-to-be-installed one
20718     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20719     test "$hardcode_minus_L_F77" != no; then
20720    # Linking always hardcodes the temporary library directory.
20721    hardcode_action_F77=relink
20722  else
20723    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20724    hardcode_action_F77=immediate
20725  fi
20726else
20727  # We cannot hardcode anything, or else we can only hardcode existing
20728  # directories.
20729  hardcode_action_F77=unsupported
20730fi
20731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
20732$as_echo "$hardcode_action_F77" >&6; }
20733
20734if test "$hardcode_action_F77" = relink; then
20735  # Fast installation is not supported
20736  enable_fast_install=no
20737elif test "$shlibpath_overrides_runpath" = yes ||
20738     test "$enable_shared" = no; then
20739  # Fast installation is not necessary
20740  enable_fast_install=needless
20741fi
20742
20743
20744# The else clause should only fire when bootstrapping the
20745# libtool distribution, otherwise you forgot to ship ltmain.sh
20746# with your package, and you will get complaints that there are
20747# no rules to generate ltmain.sh.
20748if test -f "$ltmain"; then
20749  # See if we are running on zsh, and set the options which allow our commands through
20750  # without removal of \ escapes.
20751  if test -n "${ZSH_VERSION+set}" ; then
20752    setopt NO_GLOB_SUBST
20753  fi
20754  # Now quote all the things that may contain metacharacters while being
20755  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20756  # variables and quote the copies for generation of the libtool script.
20757  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20758    SED SHELL STRIP \
20759    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20760    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20761    deplibs_check_method reload_flag reload_cmds need_locks \
20762    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20763    lt_cv_sys_global_symbol_to_c_name_address \
20764    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20765    old_postinstall_cmds old_postuninstall_cmds \
20766    compiler_F77 \
20767    CC_F77 \
20768    LD_F77 \
20769    lt_prog_compiler_wl_F77 \
20770    lt_prog_compiler_pic_F77 \
20771    lt_prog_compiler_static_F77 \
20772    lt_prog_compiler_no_builtin_flag_F77 \
20773    export_dynamic_flag_spec_F77 \
20774    thread_safe_flag_spec_F77 \
20775    whole_archive_flag_spec_F77 \
20776    enable_shared_with_static_runtimes_F77 \
20777    old_archive_cmds_F77 \
20778    old_archive_from_new_cmds_F77 \
20779    predep_objects_F77 \
20780    postdep_objects_F77 \
20781    predeps_F77 \
20782    postdeps_F77 \
20783    compiler_lib_search_path_F77 \
20784    compiler_lib_search_dirs_F77 \
20785    archive_cmds_F77 \
20786    archive_expsym_cmds_F77 \
20787    postinstall_cmds_F77 \
20788    postuninstall_cmds_F77 \
20789    old_archive_from_expsyms_cmds_F77 \
20790    allow_undefined_flag_F77 \
20791    no_undefined_flag_F77 \
20792    export_symbols_cmds_F77 \
20793    hardcode_libdir_flag_spec_F77 \
20794    hardcode_libdir_flag_spec_ld_F77 \
20795    hardcode_libdir_separator_F77 \
20796    hardcode_automatic_F77 \
20797    module_cmds_F77 \
20798    module_expsym_cmds_F77 \
20799    lt_cv_prog_compiler_c_o_F77 \
20800    fix_srcfile_path_F77 \
20801    exclude_expsyms_F77 \
20802    include_expsyms_F77; do
20803
20804    case $var in
20805    old_archive_cmds_F77 | \
20806    old_archive_from_new_cmds_F77 | \
20807    archive_cmds_F77 | \
20808    archive_expsym_cmds_F77 | \
20809    module_cmds_F77 | \
20810    module_expsym_cmds_F77 | \
20811    old_archive_from_expsyms_cmds_F77 | \
20812    export_symbols_cmds_F77 | \
20813    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20814    postinstall_cmds | postuninstall_cmds | \
20815    old_postinstall_cmds | old_postuninstall_cmds | \
20816    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20817      # Double-quote double-evaled strings.
20818      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20819      ;;
20820    *)
20821      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20822      ;;
20823    esac
20824  done
20825
20826  case $lt_echo in
20827  *'\$0 --fallback-echo"')
20828    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20829    ;;
20830  esac
20831
20832cfgfile="$ofile"
20833
20834  cat <<__EOF__ >> "$cfgfile"
20835# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20836
20837# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20838
20839# Shell to use when invoking shell scripts.
20840SHELL=$lt_SHELL
20841
20842# Whether or not to build shared libraries.
20843build_libtool_libs=$enable_shared
20844
20845# Whether or not to build static libraries.
20846build_old_libs=$enable_static
20847
20848# Whether or not to add -lc for building shared libraries.
20849build_libtool_need_lc=$archive_cmds_need_lc_F77
20850
20851# Whether or not to disallow shared libs when runtime libs are static
20852allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20853
20854# Whether or not to optimize for fast installation.
20855fast_install=$enable_fast_install
20856
20857# The host system.
20858host_alias=$host_alias
20859host=$host
20860host_os=$host_os
20861
20862# The build system.
20863build_alias=$build_alias
20864build=$build
20865build_os=$build_os
20866
20867# An echo program that does not interpret backslashes.
20868echo=$lt_echo
20869
20870# The archiver.
20871AR=$lt_AR
20872AR_FLAGS=$lt_AR_FLAGS
20873
20874# A C compiler.
20875LTCC=$lt_LTCC
20876
20877# LTCC compiler flags.
20878LTCFLAGS=$lt_LTCFLAGS
20879
20880# A language-specific compiler.
20881CC=$lt_compiler_F77
20882
20883# Is the compiler the GNU C compiler?
20884with_gcc=$GCC_F77
20885
20886# An ERE matcher.
20887EGREP=$lt_EGREP
20888
20889# The linker used to build libraries.
20890LD=$lt_LD_F77
20891
20892# Whether we need hard or soft links.
20893LN_S=$lt_LN_S
20894
20895# A BSD-compatible nm program.
20896NM=$lt_NM
20897
20898# A symbol stripping program
20899STRIP=$lt_STRIP
20900
20901# Used to examine libraries when file_magic_cmd begins "file"
20902MAGIC_CMD=$MAGIC_CMD
20903
20904# Used on cygwin: DLL creation program.
20905DLLTOOL="$DLLTOOL"
20906
20907# Used on cygwin: object dumper.
20908OBJDUMP="$OBJDUMP"
20909
20910# Used on cygwin: assembler.
20911AS="$AS"
20912
20913# The name of the directory that contains temporary libtool files.
20914objdir=$objdir
20915
20916# How to create reloadable object files.
20917reload_flag=$lt_reload_flag
20918reload_cmds=$lt_reload_cmds
20919
20920# How to pass a linker flag through the compiler.
20921wl=$lt_lt_prog_compiler_wl_F77
20922
20923# Object file suffix (normally "o").
20924objext="$ac_objext"
20925
20926# Old archive suffix (normally "a").
20927libext="$libext"
20928
20929# Shared library suffix (normally ".so").
20930shrext_cmds='$shrext_cmds'
20931
20932# Executable file suffix (normally "").
20933exeext="$exeext"
20934
20935# Additional compiler flags for building library objects.
20936pic_flag=$lt_lt_prog_compiler_pic_F77
20937pic_mode=$pic_mode
20938
20939# What is the maximum length of a command?
20940max_cmd_len=$lt_cv_sys_max_cmd_len
20941
20942# Does compiler simultaneously support -c and -o options?
20943compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20944
20945# Must we lock files when doing compilation?
20946need_locks=$lt_need_locks
20947
20948# Do we need the lib prefix for modules?
20949need_lib_prefix=$need_lib_prefix
20950
20951# Do we need a version for libraries?
20952need_version=$need_version
20953
20954# Whether dlopen is supported.
20955dlopen_support=$enable_dlopen
20956
20957# Whether dlopen of programs is supported.
20958dlopen_self=$enable_dlopen_self
20959
20960# Whether dlopen of statically linked programs is supported.
20961dlopen_self_static=$enable_dlopen_self_static
20962
20963# Compiler flag to prevent dynamic linking.
20964link_static_flag=$lt_lt_prog_compiler_static_F77
20965
20966# Compiler flag to turn off builtin functions.
20967no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20968
20969# Compiler flag to allow reflexive dlopens.
20970export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20971
20972# Compiler flag to generate shared objects directly from archives.
20973whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20974
20975# Compiler flag to generate thread-safe objects.
20976thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20977
20978# Library versioning type.
20979version_type=$version_type
20980
20981# Format of library name prefix.
20982libname_spec=$lt_libname_spec
20983
20984# List of archive names.  First name is the real one, the rest are links.
20985# The last name is the one that the linker finds with -lNAME.
20986library_names_spec=$lt_library_names_spec
20987
20988# The coded name of the library, if different from the real name.
20989soname_spec=$lt_soname_spec
20990
20991# Commands used to build and install an old-style archive.
20992RANLIB=$lt_RANLIB
20993old_archive_cmds=$lt_old_archive_cmds_F77
20994old_postinstall_cmds=$lt_old_postinstall_cmds
20995old_postuninstall_cmds=$lt_old_postuninstall_cmds
20996
20997# Create an old-style archive from a shared archive.
20998old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20999
21000# Create a temporary old-style archive to link instead of a shared archive.
21001old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21002
21003# Commands used to build and install a shared archive.
21004archive_cmds=$lt_archive_cmds_F77
21005archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21006postinstall_cmds=$lt_postinstall_cmds
21007postuninstall_cmds=$lt_postuninstall_cmds
21008
21009# Commands used to build a loadable module (assumed same as above if empty)
21010module_cmds=$lt_module_cmds_F77
21011module_expsym_cmds=$lt_module_expsym_cmds_F77
21012
21013# Commands to strip libraries.
21014old_striplib=$lt_old_striplib
21015striplib=$lt_striplib
21016
21017# Dependencies to place before the objects being linked to create a
21018# shared library.
21019predep_objects=$lt_predep_objects_F77
21020
21021# Dependencies to place after the objects being linked to create a
21022# shared library.
21023postdep_objects=$lt_postdep_objects_F77
21024
21025# Dependencies to place before the objects being linked to create a
21026# shared library.
21027predeps=$lt_predeps_F77
21028
21029# Dependencies to place after the objects being linked to create a
21030# shared library.
21031postdeps=$lt_postdeps_F77
21032
21033# The directories searched by this compiler when creating a shared
21034# library
21035compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
21036
21037# The library search path used internally by the compiler when linking
21038# a shared library.
21039compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21040
21041# Method to check whether dependent libraries are shared objects.
21042deplibs_check_method=$lt_deplibs_check_method
21043
21044# Command to use when deplibs_check_method == file_magic.
21045file_magic_cmd=$lt_file_magic_cmd
21046
21047# Flag that allows shared libraries with undefined symbols to be built.
21048allow_undefined_flag=$lt_allow_undefined_flag_F77
21049
21050# Flag that forces no undefined symbols.
21051no_undefined_flag=$lt_no_undefined_flag_F77
21052
21053# Commands used to finish a libtool library installation in a directory.
21054finish_cmds=$lt_finish_cmds
21055
21056# Same as above, but a single script fragment to be evaled but not shown.
21057finish_eval=$lt_finish_eval
21058
21059# Take the output of nm and produce a listing of raw symbols and C names.
21060global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21061
21062# Transform the output of nm in a proper C declaration
21063global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21064
21065# Transform the output of nm in a C name address pair
21066global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21067
21068# This is the shared library runtime path variable.
21069runpath_var=$runpath_var
21070
21071# This is the shared library path variable.
21072shlibpath_var=$shlibpath_var
21073
21074# Is shlibpath searched before the hard-coded library search path?
21075shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21076
21077# How to hardcode a shared library path into an executable.
21078hardcode_action=$hardcode_action_F77
21079
21080# Whether we should hardcode library paths into libraries.
21081hardcode_into_libs=$hardcode_into_libs
21082
21083# Flag to hardcode \$libdir into a binary during linking.
21084# This must work even if \$libdir does not exist.
21085hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21086
21087# If ld is used when linking, flag to hardcode \$libdir into
21088# a binary during linking. This must work even if \$libdir does
21089# not exist.
21090hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21091
21092# Whether we need a single -rpath flag with a separated argument.
21093hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21094
21095# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21096# resulting binary.
21097hardcode_direct=$hardcode_direct_F77
21098
21099# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21100# resulting binary.
21101hardcode_minus_L=$hardcode_minus_L_F77
21102
21103# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21104# the resulting binary.
21105hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21106
21107# Set to yes if building a shared library automatically hardcodes DIR into the library
21108# and all subsequent libraries and executables linked against it.
21109hardcode_automatic=$hardcode_automatic_F77
21110
21111# Variables whose values should be saved in libtool wrapper scripts and
21112# restored at relink time.
21113variables_saved_for_relink="$variables_saved_for_relink"
21114
21115# Whether libtool must link a program against all its dependency libraries.
21116link_all_deplibs=$link_all_deplibs_F77
21117
21118# Compile-time system search path for libraries
21119sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21120
21121# Run-time system search path for libraries
21122sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21123
21124# Fix the shell variable \$srcfile for the compiler.
21125fix_srcfile_path=$lt_fix_srcfile_path
21126
21127# Set to yes if exported symbols are required.
21128always_export_symbols=$always_export_symbols_F77
21129
21130# The commands to list exported symbols.
21131export_symbols_cmds=$lt_export_symbols_cmds_F77
21132
21133# The commands to extract the exported symbol list from a shared archive.
21134extract_expsyms_cmds=$lt_extract_expsyms_cmds
21135
21136# Symbols that should not be listed in the preloaded symbols.
21137exclude_expsyms=$lt_exclude_expsyms_F77
21138
21139# Symbols that must always be exported.
21140include_expsyms=$lt_include_expsyms_F77
21141
21142# ### END LIBTOOL TAG CONFIG: $tagname
21143
21144__EOF__
21145
21146
21147else
21148  # If there is no Makefile yet, we rely on a make rule to execute
21149  # `config.status --recheck' to rerun these tests and create the
21150  # libtool script then.
21151  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21152  if test -f "$ltmain_in"; then
21153    test -f Makefile && make "$ltmain"
21154  fi
21155fi
21156
21157
21158ac_ext=c
21159ac_cpp='$CPP $CPPFLAGS'
21160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162ac_compiler_gnu=$ac_cv_c_compiler_gnu
21163
21164CC="$lt_save_CC"
21165
21166	else
21167	  tagname=""
21168	fi
21169	;;
21170
21171      GCJ)
21172	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21173
21174
21175# Source file extension for Java test sources.
21176ac_ext=java
21177
21178# Object file extension for compiled Java test sources.
21179objext=o
21180objext_GCJ=$objext
21181
21182# Code to be used in simple compile tests
21183lt_simple_compile_test_code="class foo {}"
21184
21185# Code to be used in simple link tests
21186lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
21187
21188# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21189
21190# If no C compiler was specified, use CC.
21191LTCC=${LTCC-"$CC"}
21192
21193# If no C compiler flags were specified, use CFLAGS.
21194LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21195
21196# Allow CC to be a program name with arguments.
21197compiler=$CC
21198
21199
21200# save warnings/boilerplate of simple test code
21201ac_outfile=conftest.$ac_objext
21202echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21203eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21204_lt_compiler_boilerplate=`cat conftest.err`
21205$rm conftest*
21206
21207ac_outfile=conftest.$ac_objext
21208echo "$lt_simple_link_test_code" >conftest.$ac_ext
21209eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21210_lt_linker_boilerplate=`cat conftest.err`
21211$rm -r conftest*
21212
21213
21214# Allow CC to be a program name with arguments.
21215lt_save_CC="$CC"
21216CC=${GCJ-"gcj"}
21217compiler=$CC
21218compiler_GCJ=$CC
21219for cc_temp in $compiler""; do
21220  case $cc_temp in
21221    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21222    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21223    \-*) ;;
21224    *) break;;
21225  esac
21226done
21227cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21228
21229
21230# GCJ did not exist at the time GCC didn't implicitly link libc in.
21231archive_cmds_need_lc_GCJ=no
21232
21233old_archive_cmds_GCJ=$old_archive_cmds
21234
21235## CAVEAT EMPTOR:
21236## There is no encapsulation within the following macros, do not change
21237## the running order or otherwise move them around unless you know exactly
21238## what you are doing...
21239
21240lt_prog_compiler_no_builtin_flag_GCJ=
21241
21242if test "$GCC" = yes; then
21243  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21244
21245
21246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21247$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
21248if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
21249  $as_echo_n "(cached) " >&6
21250else
21251  lt_cv_prog_compiler_rtti_exceptions=no
21252  ac_outfile=conftest.$ac_objext
21253   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21254   lt_compiler_flag="-fno-rtti -fno-exceptions"
21255   # Insert the option either (1) after the last *FLAGS variable, or
21256   # (2) before a word containing "conftest.", or (3) at the end.
21257   # Note that $ac_compile itself does not contain backslashes and begins
21258   # with a dollar sign (not a hyphen), so the echo should work correctly.
21259   # The option is referenced via a variable to avoid confusing sed.
21260   lt_compile=`echo "$ac_compile" | $SED \
21261   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21262   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21263   -e 's:$: $lt_compiler_flag:'`
21264   (eval echo "\"\$as_me:21264: $lt_compile\"" >&5)
21265   (eval "$lt_compile" 2>conftest.err)
21266   ac_status=$?
21267   cat conftest.err >&5
21268   echo "$as_me:21268: \$? = $ac_status" >&5
21269   if (exit $ac_status) && test -s "$ac_outfile"; then
21270     # The compiler can only warn and ignore the option if not recognized
21271     # So say no if there are warnings other than the usual output.
21272     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21273     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21274     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21275       lt_cv_prog_compiler_rtti_exceptions=yes
21276     fi
21277   fi
21278   $rm conftest*
21279
21280fi
21281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21282$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
21283
21284if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21285    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21286else
21287    :
21288fi
21289
21290fi
21291
21292lt_prog_compiler_wl_GCJ=
21293lt_prog_compiler_pic_GCJ=
21294lt_prog_compiler_static_GCJ=
21295
21296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21297$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21298
21299  if test "$GCC" = yes; then
21300    lt_prog_compiler_wl_GCJ='-Wl,'
21301    lt_prog_compiler_static_GCJ='-static'
21302
21303    case $host_os in
21304      aix*)
21305      # All AIX code is PIC.
21306      if test "$host_cpu" = ia64; then
21307	# AIX 5 now supports IA64 processor
21308	lt_prog_compiler_static_GCJ='-Bstatic'
21309      fi
21310      ;;
21311
21312    amigaos*)
21313      # FIXME: we need at least 68020 code to build shared libraries, but
21314      # adding the `-m68020' flag to GCC prevents building anything better,
21315      # like `-m68040'.
21316      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21317      ;;
21318
21319    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21320      # PIC is the default for these OSes.
21321      ;;
21322
21323    mingw* | cygwin* | pw32* | os2*)
21324      # This hack is so that the source file can tell whether it is being
21325      # built for inclusion in a dll (and should export symbols for example).
21326      # Although the cygwin gcc ignores -fPIC, still need this for old-style
21327      # (--disable-auto-import) libraries
21328
21329      ;;
21330
21331    darwin* | rhapsody*)
21332      # PIC is the default on this platform
21333      # Common symbols not allowed in MH_DYLIB files
21334      lt_prog_compiler_pic_GCJ='-fno-common'
21335      ;;
21336
21337    interix[3-9]*)
21338      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21339      # Instead, we relocate shared libraries at runtime.
21340      ;;
21341
21342    msdosdjgpp*)
21343      # Just because we use GCC doesn't mean we suddenly get shared libraries
21344      # on systems that don't support them.
21345      lt_prog_compiler_can_build_shared_GCJ=no
21346      enable_shared=no
21347      ;;
21348
21349    sysv4*MP*)
21350      if test -d /usr/nec; then
21351	lt_prog_compiler_pic_GCJ=-Kconform_pic
21352      fi
21353      ;;
21354
21355    hpux*)
21356      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21357      # not for PA HP-UX.
21358      case $host_cpu in
21359      hppa*64*|ia64*)
21360	# +Z the default
21361	;;
21362      *)
21363	lt_prog_compiler_pic_GCJ='-fPIC'
21364	;;
21365      esac
21366      ;;
21367
21368    *)
21369      lt_prog_compiler_pic_GCJ='-fPIC'
21370      ;;
21371    esac
21372  else
21373    # PORTME Check for flag to pass linker flags through the system compiler.
21374    case $host_os in
21375    aix*)
21376      lt_prog_compiler_wl_GCJ='-Wl,'
21377      if test "$host_cpu" = ia64; then
21378	# AIX 5 now supports IA64 processor
21379	lt_prog_compiler_static_GCJ='-Bstatic'
21380      else
21381	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21382      fi
21383      ;;
21384      darwin*)
21385        # PIC is the default on this platform
21386        # Common symbols not allowed in MH_DYLIB files
21387       case $cc_basename in
21388         xlc*)
21389         lt_prog_compiler_pic_GCJ='-qnocommon'
21390         lt_prog_compiler_wl_GCJ='-Wl,'
21391         ;;
21392       esac
21393       ;;
21394
21395    mingw* | cygwin* | pw32* | os2*)
21396      # This hack is so that the source file can tell whether it is being
21397      # built for inclusion in a dll (and should export symbols for example).
21398
21399      ;;
21400
21401    hpux9* | hpux10* | hpux11*)
21402      lt_prog_compiler_wl_GCJ='-Wl,'
21403      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21404      # not for PA HP-UX.
21405      case $host_cpu in
21406      hppa*64*|ia64*)
21407	# +Z the default
21408	;;
21409      *)
21410	lt_prog_compiler_pic_GCJ='+Z'
21411	;;
21412      esac
21413      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21414      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21415      ;;
21416
21417    irix5* | irix6* | nonstopux*)
21418      lt_prog_compiler_wl_GCJ='-Wl,'
21419      # PIC (with -KPIC) is the default.
21420      lt_prog_compiler_static_GCJ='-non_shared'
21421      ;;
21422
21423    newsos6)
21424      lt_prog_compiler_pic_GCJ='-KPIC'
21425      lt_prog_compiler_static_GCJ='-Bstatic'
21426      ;;
21427
21428    linux* | k*bsd*-gnu)
21429      case $cc_basename in
21430      icc* | ecc*)
21431	lt_prog_compiler_wl_GCJ='-Wl,'
21432	lt_prog_compiler_pic_GCJ='-KPIC'
21433	lt_prog_compiler_static_GCJ='-static'
21434        ;;
21435      pgcc* | pgf77* | pgf90* | pgf95*)
21436        # Portland Group compilers (*not* the Pentium gcc compiler,
21437	# which looks to be a dead project)
21438	lt_prog_compiler_wl_GCJ='-Wl,'
21439	lt_prog_compiler_pic_GCJ='-fpic'
21440	lt_prog_compiler_static_GCJ='-Bstatic'
21441        ;;
21442      ccc*)
21443        lt_prog_compiler_wl_GCJ='-Wl,'
21444        # All Alpha code is PIC.
21445        lt_prog_compiler_static_GCJ='-non_shared'
21446        ;;
21447      *)
21448        case `$CC -V 2>&1 | sed 5q` in
21449	*Sun\ C*)
21450	  # Sun C 5.9
21451	  lt_prog_compiler_pic_GCJ='-KPIC'
21452	  lt_prog_compiler_static_GCJ='-Bstatic'
21453	  lt_prog_compiler_wl_GCJ='-Wl,'
21454	  ;;
21455	*Sun\ F*)
21456	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
21457	  lt_prog_compiler_pic_GCJ='-KPIC'
21458	  lt_prog_compiler_static_GCJ='-Bstatic'
21459	  lt_prog_compiler_wl_GCJ=''
21460	  ;;
21461	esac
21462	;;
21463      esac
21464      ;;
21465
21466    osf3* | osf4* | osf5*)
21467      lt_prog_compiler_wl_GCJ='-Wl,'
21468      # All OSF/1 code is PIC.
21469      lt_prog_compiler_static_GCJ='-non_shared'
21470      ;;
21471
21472    rdos*)
21473      lt_prog_compiler_static_GCJ='-non_shared'
21474      ;;
21475
21476    solaris*)
21477      lt_prog_compiler_pic_GCJ='-KPIC'
21478      lt_prog_compiler_static_GCJ='-Bstatic'
21479      case $cc_basename in
21480      f77* | f90* | f95*)
21481	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
21482      *)
21483	lt_prog_compiler_wl_GCJ='-Wl,';;
21484      esac
21485      ;;
21486
21487    sunos4*)
21488      lt_prog_compiler_wl_GCJ='-Qoption ld '
21489      lt_prog_compiler_pic_GCJ='-PIC'
21490      lt_prog_compiler_static_GCJ='-Bstatic'
21491      ;;
21492
21493    sysv4 | sysv4.2uw2* | sysv4.3*)
21494      lt_prog_compiler_wl_GCJ='-Wl,'
21495      lt_prog_compiler_pic_GCJ='-KPIC'
21496      lt_prog_compiler_static_GCJ='-Bstatic'
21497      ;;
21498
21499    sysv4*MP*)
21500      if test -d /usr/nec ;then
21501	lt_prog_compiler_pic_GCJ='-Kconform_pic'
21502	lt_prog_compiler_static_GCJ='-Bstatic'
21503      fi
21504      ;;
21505
21506    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21507      lt_prog_compiler_wl_GCJ='-Wl,'
21508      lt_prog_compiler_pic_GCJ='-KPIC'
21509      lt_prog_compiler_static_GCJ='-Bstatic'
21510      ;;
21511
21512    unicos*)
21513      lt_prog_compiler_wl_GCJ='-Wl,'
21514      lt_prog_compiler_can_build_shared_GCJ=no
21515      ;;
21516
21517    uts4*)
21518      lt_prog_compiler_pic_GCJ='-pic'
21519      lt_prog_compiler_static_GCJ='-Bstatic'
21520      ;;
21521
21522    *)
21523      lt_prog_compiler_can_build_shared_GCJ=no
21524      ;;
21525    esac
21526  fi
21527
21528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
21529$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
21530
21531#
21532# Check to make sure the PIC flag actually works.
21533#
21534if test -n "$lt_prog_compiler_pic_GCJ"; then
21535
21536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21537$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
21538if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
21539  $as_echo_n "(cached) " >&6
21540else
21541  lt_cv_prog_compiler_pic_works_GCJ=no
21542  ac_outfile=conftest.$ac_objext
21543   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21544   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21545   # Insert the option either (1) after the last *FLAGS variable, or
21546   # (2) before a word containing "conftest.", or (3) at the end.
21547   # Note that $ac_compile itself does not contain backslashes and begins
21548   # with a dollar sign (not a hyphen), so the echo should work correctly.
21549   # The option is referenced via a variable to avoid confusing sed.
21550   lt_compile=`echo "$ac_compile" | $SED \
21551   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21552   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21553   -e 's:$: $lt_compiler_flag:'`
21554   (eval echo "\"\$as_me:21554: $lt_compile\"" >&5)
21555   (eval "$lt_compile" 2>conftest.err)
21556   ac_status=$?
21557   cat conftest.err >&5
21558   echo "$as_me:21558: \$? = $ac_status" >&5
21559   if (exit $ac_status) && test -s "$ac_outfile"; then
21560     # The compiler can only warn and ignore the option if not recognized
21561     # So say no if there are warnings other than the usual output.
21562     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21563     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21564     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21565       lt_cv_prog_compiler_pic_works_GCJ=yes
21566     fi
21567   fi
21568   $rm conftest*
21569
21570fi
21571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
21572$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
21573
21574if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
21575    case $lt_prog_compiler_pic_GCJ in
21576     "" | " "*) ;;
21577     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21578     esac
21579else
21580    lt_prog_compiler_pic_GCJ=
21581     lt_prog_compiler_can_build_shared_GCJ=no
21582fi
21583
21584fi
21585case $host_os in
21586  # For platforms which do not support PIC, -DPIC is meaningless:
21587  *djgpp*)
21588    lt_prog_compiler_pic_GCJ=
21589    ;;
21590  *)
21591    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21592    ;;
21593esac
21594
21595#
21596# Check to make sure the static flag actually works.
21597#
21598wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
21599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21600$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21601if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
21602  $as_echo_n "(cached) " >&6
21603else
21604  lt_cv_prog_compiler_static_works_GCJ=no
21605   save_LDFLAGS="$LDFLAGS"
21606   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21607   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21608   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21609     # The linker can only warn and ignore the option if not recognized
21610     # So say no if there are warnings
21611     if test -s conftest.err; then
21612       # Append any errors to the config.log.
21613       cat conftest.err 1>&5
21614       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21615       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21616       if diff conftest.exp conftest.er2 >/dev/null; then
21617         lt_cv_prog_compiler_static_works_GCJ=yes
21618       fi
21619     else
21620       lt_cv_prog_compiler_static_works_GCJ=yes
21621     fi
21622   fi
21623   $rm -r conftest*
21624   LDFLAGS="$save_LDFLAGS"
21625
21626fi
21627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
21628$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
21629
21630if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
21631    :
21632else
21633    lt_prog_compiler_static_GCJ=
21634fi
21635
21636
21637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21638$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21639if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
21640  $as_echo_n "(cached) " >&6
21641else
21642  lt_cv_prog_compiler_c_o_GCJ=no
21643   $rm -r conftest 2>/dev/null
21644   mkdir conftest
21645   cd conftest
21646   mkdir out
21647   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21648
21649   lt_compiler_flag="-o out/conftest2.$ac_objext"
21650   # Insert the option either (1) after the last *FLAGS variable, or
21651   # (2) before a word containing "conftest.", or (3) at the end.
21652   # Note that $ac_compile itself does not contain backslashes and begins
21653   # with a dollar sign (not a hyphen), so the echo should work correctly.
21654   lt_compile=`echo "$ac_compile" | $SED \
21655   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21657   -e 's:$: $lt_compiler_flag:'`
21658   (eval echo "\"\$as_me:21658: $lt_compile\"" >&5)
21659   (eval "$lt_compile" 2>out/conftest.err)
21660   ac_status=$?
21661   cat out/conftest.err >&5
21662   echo "$as_me:21662: \$? = $ac_status" >&5
21663   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21664   then
21665     # The compiler can only warn and ignore the option if not recognized
21666     # So say no if there are warnings
21667     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21668     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21669     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21670       lt_cv_prog_compiler_c_o_GCJ=yes
21671     fi
21672   fi
21673   chmod u+w . 2>&5
21674   $rm conftest*
21675   # SGI C++ compiler will create directory out/ii_files/ for
21676   # template instantiation
21677   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21678   $rm out/* && rmdir out
21679   cd ..
21680   rmdir conftest
21681   $rm conftest*
21682
21683fi
21684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21685$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
21686
21687
21688hard_links="nottested"
21689if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21690  # do not overwrite the value of need_locks provided by the user
21691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21692$as_echo_n "checking if we can lock with hard links... " >&6; }
21693  hard_links=yes
21694  $rm conftest*
21695  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21696  touch conftest.a
21697  ln conftest.a conftest.b 2>&5 || hard_links=no
21698  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21700$as_echo "$hard_links" >&6; }
21701  if test "$hard_links" = no; then
21702    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21703$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21704    need_locks=warn
21705  fi
21706else
21707  need_locks=no
21708fi
21709
21710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21711$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21712
21713  runpath_var=
21714  allow_undefined_flag_GCJ=
21715  enable_shared_with_static_runtimes_GCJ=no
21716  archive_cmds_GCJ=
21717  archive_expsym_cmds_GCJ=
21718  old_archive_From_new_cmds_GCJ=
21719  old_archive_from_expsyms_cmds_GCJ=
21720  export_dynamic_flag_spec_GCJ=
21721  whole_archive_flag_spec_GCJ=
21722  thread_safe_flag_spec_GCJ=
21723  hardcode_libdir_flag_spec_GCJ=
21724  hardcode_libdir_flag_spec_ld_GCJ=
21725  hardcode_libdir_separator_GCJ=
21726  hardcode_direct_GCJ=no
21727  hardcode_minus_L_GCJ=no
21728  hardcode_shlibpath_var_GCJ=unsupported
21729  link_all_deplibs_GCJ=unknown
21730  hardcode_automatic_GCJ=no
21731  module_cmds_GCJ=
21732  module_expsym_cmds_GCJ=
21733  always_export_symbols_GCJ=no
21734  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21735  # include_expsyms should be a list of space-separated symbols to be *always*
21736  # included in the symbol list
21737  include_expsyms_GCJ=
21738  # exclude_expsyms can be an extended regexp of symbols to exclude
21739  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21740  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21741  # as well as any symbol that contains `d'.
21742  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21743  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21744  # platforms (ab)use it in PIC code, but their linkers get confused if
21745  # the symbol is explicitly referenced.  Since portable code cannot
21746  # rely on this symbol name, it's probably fine to never include it in
21747  # preloaded symbol tables.
21748  # Exclude shared library initialization/finalization symbols.
21749  extract_expsyms_cmds=
21750  # Just being paranoid about ensuring that cc_basename is set.
21751  for cc_temp in $compiler""; do
21752  case $cc_temp in
21753    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21754    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21755    \-*) ;;
21756    *) break;;
21757  esac
21758done
21759cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21760
21761  case $host_os in
21762  cygwin* | mingw* | pw32*)
21763    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21764    # When not using gcc, we currently assume that we are using
21765    # Microsoft Visual C++.
21766    if test "$GCC" != yes; then
21767      with_gnu_ld=no
21768    fi
21769    ;;
21770  interix*)
21771    # we just hope/assume this is gcc and not c89 (= MSVC++)
21772    with_gnu_ld=yes
21773    ;;
21774  openbsd*)
21775    with_gnu_ld=no
21776    ;;
21777  esac
21778
21779  ld_shlibs_GCJ=yes
21780  if test "$with_gnu_ld" = yes; then
21781    # If archive_cmds runs LD, not CC, wlarc should be empty
21782    wlarc='${wl}'
21783
21784    # Set some defaults for GNU ld with shared library support. These
21785    # are reset later if shared libraries are not supported. Putting them
21786    # here allows them to be overridden if necessary.
21787    runpath_var=LD_RUN_PATH
21788    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21789    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21790    # ancient GNU ld didn't support --whole-archive et. al.
21791    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21792	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21793      else
21794  	whole_archive_flag_spec_GCJ=
21795    fi
21796    supports_anon_versioning=no
21797    case `$LD -v 2>/dev/null` in
21798      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21799      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21800      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21801      *\ 2.11.*) ;; # other 2.11 versions
21802      *) supports_anon_versioning=yes ;;
21803    esac
21804
21805    # See if GNU ld supports shared libraries.
21806    case $host_os in
21807    aix[3-9]*)
21808      # On AIX/PPC, the GNU linker is very broken
21809      if test "$host_cpu" != ia64; then
21810	ld_shlibs_GCJ=no
21811	cat <<EOF 1>&2
21812
21813*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21814*** to be unable to reliably create shared libraries on AIX.
21815*** Therefore, libtool is disabling shared libraries support.  If you
21816*** really care for shared libraries, you may want to modify your PATH
21817*** so that a non-GNU linker is found, and then restart.
21818
21819EOF
21820      fi
21821      ;;
21822
21823    amigaos*)
21824      archive_cmds_GCJ='$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)'
21825      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21826      hardcode_minus_L_GCJ=yes
21827
21828      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21829      # that the semantics of dynamic libraries on AmigaOS, at least up
21830      # to version 4, is to share data among multiple programs linked
21831      # with the same dynamic library.  Since this doesn't match the
21832      # behavior of shared libraries on other platforms, we can't use
21833      # them.
21834      ld_shlibs_GCJ=no
21835      ;;
21836
21837    beos*)
21838      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21839	allow_undefined_flag_GCJ=unsupported
21840	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21841	# support --undefined.  This deserves some investigation.  FIXME
21842	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21843      else
21844	ld_shlibs_GCJ=no
21845      fi
21846      ;;
21847
21848    cygwin* | mingw* | pw32*)
21849      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21850      # as there is no search path for DLLs.
21851      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21852      allow_undefined_flag_GCJ=unsupported
21853      always_export_symbols_GCJ=no
21854      enable_shared_with_static_runtimes_GCJ=yes
21855      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21856
21857      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21858        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21859	# If the export-symbols file already is a .def file (1st line
21860	# is EXPORTS), use it as is; otherwise, prepend...
21861	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21862	  cp $export_symbols $output_objdir/$soname.def;
21863	else
21864	  echo EXPORTS > $output_objdir/$soname.def;
21865	  cat $export_symbols >> $output_objdir/$soname.def;
21866	fi~
21867	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21868      else
21869	ld_shlibs_GCJ=no
21870      fi
21871      ;;
21872
21873    interix[3-9]*)
21874      hardcode_direct_GCJ=no
21875      hardcode_shlibpath_var_GCJ=no
21876      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21877      export_dynamic_flag_spec_GCJ='${wl}-E'
21878      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21879      # Instead, shared libraries are loaded at an image base (0x10000000 by
21880      # default) and relocated if they conflict, which is a slow very memory
21881      # consuming and fragmenting process.  To avoid this, we pick a random,
21882      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21883      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21884      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21885      archive_expsym_cmds_GCJ='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'
21886      ;;
21887
21888    gnu* | linux* | k*bsd*-gnu)
21889      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21890	tmp_addflag=
21891	case $cc_basename,$host_cpu in
21892	pgcc*)				# Portland Group C compiler
21893	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21894	  tmp_addflag=' $pic_flag'
21895	  ;;
21896	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
21897	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21898	  tmp_addflag=' $pic_flag -Mnomain' ;;
21899	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
21900	  tmp_addflag=' -i_dynamic' ;;
21901	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
21902	  tmp_addflag=' -i_dynamic -nofor_main' ;;
21903	ifc* | ifort*)			# Intel Fortran compiler
21904	  tmp_addflag=' -nofor_main' ;;
21905	esac
21906	case `$CC -V 2>&1 | sed 5q` in
21907	*Sun\ C*)			# Sun C 5.9
21908	  whole_archive_flag_spec_GCJ='${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'
21909	  tmp_sharedflag='-G' ;;
21910	*Sun\ F*)			# Sun Fortran 8.3
21911	  tmp_sharedflag='-G' ;;
21912	*)
21913	  tmp_sharedflag='-shared' ;;
21914	esac
21915	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21916
21917	if test $supports_anon_versioning = yes; then
21918	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21919  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21920  $echo "local: *; };" >> $output_objdir/$libname.ver~
21921	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21922	fi
21923      else
21924	ld_shlibs_GCJ=no
21925      fi
21926      ;;
21927
21928    netbsd*)
21929      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21930	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21931	wlarc=
21932      else
21933	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21934	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21935      fi
21936      ;;
21937
21938    solaris*)
21939      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21940	ld_shlibs_GCJ=no
21941	cat <<EOF 1>&2
21942
21943*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21944*** create shared libraries on Solaris systems.  Therefore, libtool
21945*** is disabling shared libraries support.  We urge you to upgrade GNU
21946*** binutils to release 2.9.1 or newer.  Another option is to modify
21947*** your PATH or compiler configuration so that the native linker is
21948*** used, and then restart.
21949
21950EOF
21951      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21952	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21953	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21954      else
21955	ld_shlibs_GCJ=no
21956      fi
21957      ;;
21958
21959    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21960      case `$LD -v 2>&1` in
21961        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21962	ld_shlibs_GCJ=no
21963	cat <<_LT_EOF 1>&2
21964
21965*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21966*** reliably create shared libraries on SCO systems.  Therefore, libtool
21967*** is disabling shared libraries support.  We urge you to upgrade GNU
21968*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21969*** your PATH or compiler configuration so that the native linker is
21970*** used, and then restart.
21971
21972_LT_EOF
21973	;;
21974	*)
21975	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21976	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21977	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21978	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21979	  else
21980	    ld_shlibs_GCJ=no
21981	  fi
21982	;;
21983      esac
21984      ;;
21985
21986    sunos4*)
21987      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21988      wlarc=
21989      hardcode_direct_GCJ=yes
21990      hardcode_shlibpath_var_GCJ=no
21991      ;;
21992
21993    *)
21994      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21995	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21996	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21997      else
21998	ld_shlibs_GCJ=no
21999      fi
22000      ;;
22001    esac
22002
22003    if test "$ld_shlibs_GCJ" = no; then
22004      runpath_var=
22005      hardcode_libdir_flag_spec_GCJ=
22006      export_dynamic_flag_spec_GCJ=
22007      whole_archive_flag_spec_GCJ=
22008    fi
22009  else
22010    # PORTME fill in a description of your system's linker (not GNU ld)
22011    case $host_os in
22012    aix3*)
22013      allow_undefined_flag_GCJ=unsupported
22014      always_export_symbols_GCJ=yes
22015      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
22016      # Note: this linker hardcodes the directories in LIBPATH if there
22017      # are no directories specified by -L.
22018      hardcode_minus_L_GCJ=yes
22019      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22020	# Neither direct hardcoding nor static linking is supported with a
22021	# broken collect2.
22022	hardcode_direct_GCJ=unsupported
22023      fi
22024      ;;
22025
22026    aix[4-9]*)
22027      if test "$host_cpu" = ia64; then
22028	# On IA64, the linker does run time linking by default, so we don't
22029	# have to do anything special.
22030	aix_use_runtimelinking=no
22031	exp_sym_flag='-Bexport'
22032	no_entry_flag=""
22033      else
22034	# If we're using GNU nm, then we don't want the "-C" option.
22035	# -C means demangle to AIX nm, but means don't demangle with GNU nm
22036	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22037	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22038	else
22039	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22040	fi
22041	aix_use_runtimelinking=no
22042
22043	# Test if we are trying to use run time linking or normal
22044	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
22045	# need to do runtime linking.
22046	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22047	  for ld_flag in $LDFLAGS; do
22048  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22049  	    aix_use_runtimelinking=yes
22050  	    break
22051  	  fi
22052	  done
22053	  ;;
22054	esac
22055
22056	exp_sym_flag='-bexport'
22057	no_entry_flag='-bnoentry'
22058      fi
22059
22060      # When large executables or shared objects are built, AIX ld can
22061      # have problems creating the table of contents.  If linking a library
22062      # or program results in "error TOC overflow" add -mminimal-toc to
22063      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22064      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22065
22066      archive_cmds_GCJ=''
22067      hardcode_direct_GCJ=yes
22068      hardcode_libdir_separator_GCJ=':'
22069      link_all_deplibs_GCJ=yes
22070
22071      if test "$GCC" = yes; then
22072	case $host_os in aix4.[012]|aix4.[012].*)
22073	# We only want to do this on AIX 4.2 and lower, the check
22074	# below for broken collect2 doesn't work under 4.3+
22075	  collect2name=`${CC} -print-prog-name=collect2`
22076	  if test -f "$collect2name" && \
22077  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
22078	  then
22079  	  # We have reworked collect2
22080  	  :
22081	  else
22082  	  # We have old collect2
22083  	  hardcode_direct_GCJ=unsupported
22084  	  # It fails to find uninstalled libraries when the uninstalled
22085  	  # path is not listed in the libpath.  Setting hardcode_minus_L
22086  	  # to unsupported forces relinking
22087  	  hardcode_minus_L_GCJ=yes
22088  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
22089  	  hardcode_libdir_separator_GCJ=
22090	  fi
22091	  ;;
22092	esac
22093	shared_flag='-shared'
22094	if test "$aix_use_runtimelinking" = yes; then
22095	  shared_flag="$shared_flag "'${wl}-G'
22096	fi
22097      else
22098	# not using gcc
22099	if test "$host_cpu" = ia64; then
22100  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22101  	# chokes on -Wl,-G. The following line is correct:
22102	  shared_flag='-G'
22103	else
22104	  if test "$aix_use_runtimelinking" = yes; then
22105	    shared_flag='${wl}-G'
22106	  else
22107	    shared_flag='${wl}-bM:SRE'
22108	  fi
22109	fi
22110      fi
22111
22112      # It seems that -bexpall does not export symbols beginning with
22113      # underscore (_), so it is better to generate a list of symbols to export.
22114      always_export_symbols_GCJ=yes
22115      if test "$aix_use_runtimelinking" = yes; then
22116	# Warning - without using the other runtime loading flags (-brtl),
22117	# -berok will link without error, but may produce a broken library.
22118	allow_undefined_flag_GCJ='-berok'
22119       # Determine the default libpath from the value encoded in an empty executable.
22120       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22121/* end confdefs.h.  */
22122
22123int
22124main ()
22125{
22126
22127  ;
22128  return 0;
22129}
22130_ACEOF
22131if ac_fn_c_try_link "$LINENO"; then :
22132
22133lt_aix_libpath_sed='
22134    /Import File Strings/,/^$/ {
22135	/^0/ {
22136	    s/^0  *\(.*\)$/\1/
22137	    p
22138	}
22139    }'
22140aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22141# Check for a 64-bit object if we didn't find anything.
22142if test -z "$aix_libpath"; then
22143  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22144fi
22145fi
22146rm -f core conftest.err conftest.$ac_objext \
22147    conftest$ac_exeext conftest.$ac_ext
22148if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22149
22150       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22151	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22152       else
22153	if test "$host_cpu" = ia64; then
22154	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22155	  allow_undefined_flag_GCJ="-z nodefs"
22156	  archive_expsym_cmds_GCJ="\$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"
22157	else
22158	 # Determine the default libpath from the value encoded in an empty executable.
22159	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22160/* end confdefs.h.  */
22161
22162int
22163main ()
22164{
22165
22166  ;
22167  return 0;
22168}
22169_ACEOF
22170if ac_fn_c_try_link "$LINENO"; then :
22171
22172lt_aix_libpath_sed='
22173    /Import File Strings/,/^$/ {
22174	/^0/ {
22175	    s/^0  *\(.*\)$/\1/
22176	    p
22177	}
22178    }'
22179aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22180# Check for a 64-bit object if we didn't find anything.
22181if test -z "$aix_libpath"; then
22182  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22183fi
22184fi
22185rm -f core conftest.err conftest.$ac_objext \
22186    conftest$ac_exeext conftest.$ac_ext
22187if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22188
22189	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22190	  # Warning - without using the other run time loading flags,
22191	  # -berok will link without error, but may produce a broken library.
22192	  no_undefined_flag_GCJ=' ${wl}-bernotok'
22193	  allow_undefined_flag_GCJ=' ${wl}-berok'
22194	  # Exported symbols can be pulled into shared objects from archives
22195	  whole_archive_flag_spec_GCJ='$convenience'
22196	  archive_cmds_need_lc_GCJ=yes
22197	  # This is similar to how AIX traditionally builds its shared libraries.
22198	  archive_expsym_cmds_GCJ="\$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'
22199	fi
22200      fi
22201      ;;
22202
22203    amigaos*)
22204      archive_cmds_GCJ='$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)'
22205      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22206      hardcode_minus_L_GCJ=yes
22207      # see comment about different semantics on the GNU ld section
22208      ld_shlibs_GCJ=no
22209      ;;
22210
22211    bsdi[45]*)
22212      export_dynamic_flag_spec_GCJ=-rdynamic
22213      ;;
22214
22215    cygwin* | mingw* | pw32*)
22216      # When not using gcc, we currently assume that we are using
22217      # Microsoft Visual C++.
22218      # hardcode_libdir_flag_spec is actually meaningless, as there is
22219      # no search path for DLLs.
22220      hardcode_libdir_flag_spec_GCJ=' '
22221      allow_undefined_flag_GCJ=unsupported
22222      # Tell ltmain to make .lib files, not .a files.
22223      libext=lib
22224      # Tell ltmain to make .dll files, not .so files.
22225      shrext_cmds=".dll"
22226      # FIXME: Setting linknames here is a bad hack.
22227      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22228      # The linker will automatically build a .lib file if we build a DLL.
22229      old_archive_From_new_cmds_GCJ='true'
22230      # FIXME: Should let the user specify the lib program.
22231      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
22232      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
22233      enable_shared_with_static_runtimes_GCJ=yes
22234      ;;
22235
22236    darwin* | rhapsody*)
22237      case $host_os in
22238        rhapsody* | darwin1.[012])
22239         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22240         ;;
22241       *) # Darwin 1.3 on
22242         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22243           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22244         else
22245           case ${MACOSX_DEPLOYMENT_TARGET} in
22246             10.[012])
22247               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22248               ;;
22249             10.*)
22250               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22251               ;;
22252           esac
22253         fi
22254         ;;
22255      esac
22256      archive_cmds_need_lc_GCJ=no
22257      hardcode_direct_GCJ=no
22258      hardcode_automatic_GCJ=yes
22259      hardcode_shlibpath_var_GCJ=unsupported
22260      whole_archive_flag_spec_GCJ=''
22261      link_all_deplibs_GCJ=yes
22262    if test "$GCC" = yes ; then
22263    	output_verbose_link_cmd='echo'
22264        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
22265        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22266        archive_expsym_cmds_GCJ="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}"
22267        module_expsym_cmds_GCJ="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}"
22268    else
22269      case $cc_basename in
22270        xlc*)
22271         output_verbose_link_cmd='echo'
22272         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
22273         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22274          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22275         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22276          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22277          ;;
22278       *)
22279         ld_shlibs_GCJ=no
22280          ;;
22281      esac
22282    fi
22283      ;;
22284
22285    dgux*)
22286      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22287      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22288      hardcode_shlibpath_var_GCJ=no
22289      ;;
22290
22291    freebsd1*)
22292      ld_shlibs_GCJ=no
22293      ;;
22294
22295    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22296    # support.  Future versions do this automatically, but an explicit c++rt0.o
22297    # does not break anything, and helps significantly (at the cost of a little
22298    # extra space).
22299    freebsd2.2*)
22300      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22301      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22302      hardcode_direct_GCJ=yes
22303      hardcode_shlibpath_var_GCJ=no
22304      ;;
22305
22306    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22307    freebsd2*)
22308      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22309      hardcode_direct_GCJ=yes
22310      hardcode_minus_L_GCJ=yes
22311      hardcode_shlibpath_var_GCJ=no
22312      ;;
22313
22314    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22315    freebsd* | dragonfly*)
22316      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22317      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22318      hardcode_direct_GCJ=yes
22319      hardcode_shlibpath_var_GCJ=no
22320      ;;
22321
22322    hpux9*)
22323      if test "$GCC" = yes; then
22324	archive_cmds_GCJ='$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'
22325      else
22326	archive_cmds_GCJ='$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'
22327      fi
22328      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22329      hardcode_libdir_separator_GCJ=:
22330      hardcode_direct_GCJ=yes
22331
22332      # hardcode_minus_L: Not really in the search PATH,
22333      # but as the default location of the library.
22334      hardcode_minus_L_GCJ=yes
22335      export_dynamic_flag_spec_GCJ='${wl}-E'
22336      ;;
22337
22338    hpux10*)
22339      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22340	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22341      else
22342	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22343      fi
22344      if test "$with_gnu_ld" = no; then
22345	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22346	hardcode_libdir_separator_GCJ=:
22347
22348	hardcode_direct_GCJ=yes
22349	export_dynamic_flag_spec_GCJ='${wl}-E'
22350
22351	# hardcode_minus_L: Not really in the search PATH,
22352	# but as the default location of the library.
22353	hardcode_minus_L_GCJ=yes
22354      fi
22355      ;;
22356
22357    hpux11*)
22358      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22359	case $host_cpu in
22360	hppa*64*)
22361	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22362	  ;;
22363	ia64*)
22364	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22365	  ;;
22366	*)
22367	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22368	  ;;
22369	esac
22370      else
22371	case $host_cpu in
22372	hppa*64*)
22373	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22374	  ;;
22375	ia64*)
22376	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22377	  ;;
22378	*)
22379	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22380	  ;;
22381	esac
22382      fi
22383      if test "$with_gnu_ld" = no; then
22384	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22385	hardcode_libdir_separator_GCJ=:
22386
22387	case $host_cpu in
22388	hppa*64*|ia64*)
22389	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22390	  hardcode_direct_GCJ=no
22391	  hardcode_shlibpath_var_GCJ=no
22392	  ;;
22393	*)
22394	  hardcode_direct_GCJ=yes
22395	  export_dynamic_flag_spec_GCJ='${wl}-E'
22396
22397	  # hardcode_minus_L: Not really in the search PATH,
22398	  # but as the default location of the library.
22399	  hardcode_minus_L_GCJ=yes
22400	  ;;
22401	esac
22402      fi
22403      ;;
22404
22405    irix5* | irix6* | nonstopux*)
22406      if test "$GCC" = yes; then
22407	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22408      else
22409	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22410	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22411      fi
22412      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22413      hardcode_libdir_separator_GCJ=:
22414      link_all_deplibs_GCJ=yes
22415      ;;
22416
22417    netbsd*)
22418      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22419	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22420      else
22421	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22422      fi
22423      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22424      hardcode_direct_GCJ=yes
22425      hardcode_shlibpath_var_GCJ=no
22426      ;;
22427
22428    newsos6)
22429      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22430      hardcode_direct_GCJ=yes
22431      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22432      hardcode_libdir_separator_GCJ=:
22433      hardcode_shlibpath_var_GCJ=no
22434      ;;
22435
22436    openbsd*)
22437      if test -f /usr/libexec/ld.so; then
22438	hardcode_direct_GCJ=yes
22439	hardcode_shlibpath_var_GCJ=no
22440	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22441	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22442	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22443	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22444	  export_dynamic_flag_spec_GCJ='${wl}-E'
22445	else
22446	  case $host_os in
22447	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22448	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22449	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
22450	     ;;
22451	   *)
22452	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22453	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22454	     ;;
22455	  esac
22456        fi
22457      else
22458	ld_shlibs_GCJ=no
22459      fi
22460      ;;
22461
22462    os2*)
22463      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22464      hardcode_minus_L_GCJ=yes
22465      allow_undefined_flag_GCJ=unsupported
22466      archive_cmds_GCJ='$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'
22467      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22468      ;;
22469
22470    osf3*)
22471      if test "$GCC" = yes; then
22472	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22473	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22474      else
22475	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22476	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22477      fi
22478      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22479      hardcode_libdir_separator_GCJ=:
22480      ;;
22481
22482    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22483      if test "$GCC" = yes; then
22484	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22485	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22486	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22487      else
22488	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22489	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22490	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22491	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
22492
22493	# Both c and cxx compiler support -rpath directly
22494	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22495      fi
22496      hardcode_libdir_separator_GCJ=:
22497      ;;
22498
22499    solaris*)
22500      no_undefined_flag_GCJ=' -z text'
22501      if test "$GCC" = yes; then
22502	wlarc='${wl}'
22503	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22504	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22505	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22506      else
22507	wlarc=''
22508	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22509	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22510  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22511      fi
22512      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22513      hardcode_shlibpath_var_GCJ=no
22514      case $host_os in
22515      solaris2.[0-5] | solaris2.[0-5].*) ;;
22516      *)
22517	# The compiler driver will combine and reorder linker options,
22518	# but understands `-z linker_flag'.  GCC discards it without `$wl',
22519	# but is careful enough not to reorder.
22520 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22521	if test "$GCC" = yes; then
22522	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22523	else
22524	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
22525	fi
22526	;;
22527      esac
22528      link_all_deplibs_GCJ=yes
22529      ;;
22530
22531    sunos4*)
22532      if test "x$host_vendor" = xsequent; then
22533	# Use $CC to link under sequent, because it throws in some extra .o
22534	# files that make .init and .fini sections work.
22535	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22536      else
22537	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22538      fi
22539      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22540      hardcode_direct_GCJ=yes
22541      hardcode_minus_L_GCJ=yes
22542      hardcode_shlibpath_var_GCJ=no
22543      ;;
22544
22545    sysv4)
22546      case $host_vendor in
22547	sni)
22548	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22549	  hardcode_direct_GCJ=yes # is this really true???
22550	;;
22551	siemens)
22552	  ## LD is ld it makes a PLAMLIB
22553	  ## CC just makes a GrossModule.
22554	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22555	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22556	  hardcode_direct_GCJ=no
22557        ;;
22558	motorola)
22559	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22560	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22561	;;
22562      esac
22563      runpath_var='LD_RUN_PATH'
22564      hardcode_shlibpath_var_GCJ=no
22565      ;;
22566
22567    sysv4.3*)
22568      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22569      hardcode_shlibpath_var_GCJ=no
22570      export_dynamic_flag_spec_GCJ='-Bexport'
22571      ;;
22572
22573    sysv4*MP*)
22574      if test -d /usr/nec; then
22575	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22576	hardcode_shlibpath_var_GCJ=no
22577	runpath_var=LD_RUN_PATH
22578	hardcode_runpath_var=yes
22579	ld_shlibs_GCJ=yes
22580      fi
22581      ;;
22582
22583    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22584      no_undefined_flag_GCJ='${wl}-z,text'
22585      archive_cmds_need_lc_GCJ=no
22586      hardcode_shlibpath_var_GCJ=no
22587      runpath_var='LD_RUN_PATH'
22588
22589      if test "$GCC" = yes; then
22590	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22591	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22592      else
22593	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22594	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22595      fi
22596      ;;
22597
22598    sysv5* | sco3.2v5* | sco5v6*)
22599      # Note: We can NOT use -z defs as we might desire, because we do not
22600      # link with -lc, and that would cause any symbols used from libc to
22601      # always be unresolved, which means just about no library would
22602      # ever link correctly.  If we're not using GNU ld we use -z text
22603      # though, which does catch some bad symbols but isn't as heavy-handed
22604      # as -z defs.
22605      no_undefined_flag_GCJ='${wl}-z,text'
22606      allow_undefined_flag_GCJ='${wl}-z,nodefs'
22607      archive_cmds_need_lc_GCJ=no
22608      hardcode_shlibpath_var_GCJ=no
22609      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22610      hardcode_libdir_separator_GCJ=':'
22611      link_all_deplibs_GCJ=yes
22612      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22613      runpath_var='LD_RUN_PATH'
22614
22615      if test "$GCC" = yes; then
22616	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22617	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22618      else
22619	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22620	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22621      fi
22622      ;;
22623
22624    uts4*)
22625      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22626      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22627      hardcode_shlibpath_var_GCJ=no
22628      ;;
22629
22630    *)
22631      ld_shlibs_GCJ=no
22632      ;;
22633    esac
22634  fi
22635
22636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
22637$as_echo "$ld_shlibs_GCJ" >&6; }
22638test "$ld_shlibs_GCJ" = no && can_build_shared=no
22639
22640#
22641# Do we need to explicitly link libc?
22642#
22643case "x$archive_cmds_need_lc_GCJ" in
22644x|xyes)
22645  # Assume -lc should be added
22646  archive_cmds_need_lc_GCJ=yes
22647
22648  if test "$enable_shared" = yes && test "$GCC" = yes; then
22649    case $archive_cmds_GCJ in
22650    *'~'*)
22651      # FIXME: we may have to deal with multi-command sequences.
22652      ;;
22653    '$CC '*)
22654      # Test whether the compiler implicitly links with -lc since on some
22655      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22656      # to ld, don't add -lc before -lgcc.
22657      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22658$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22659      $rm conftest*
22660      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22661
22662      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22663  (eval $ac_compile) 2>&5
22664  ac_status=$?
22665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22666  test $ac_status = 0; } 2>conftest.err; then
22667        soname=conftest
22668        lib=conftest
22669        libobjs=conftest.$ac_objext
22670        deplibs=
22671        wl=$lt_prog_compiler_wl_GCJ
22672	pic_flag=$lt_prog_compiler_pic_GCJ
22673        compiler_flags=-v
22674        linker_flags=-v
22675        verstring=
22676        output_objdir=.
22677        libname=conftest
22678        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22679        allow_undefined_flag_GCJ=
22680        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22681  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22682  ac_status=$?
22683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22684  test $ac_status = 0; }
22685        then
22686	  archive_cmds_need_lc_GCJ=no
22687        else
22688	  archive_cmds_need_lc_GCJ=yes
22689        fi
22690        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22691      else
22692        cat conftest.err 1>&5
22693      fi
22694      $rm conftest*
22695      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
22696$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
22697      ;;
22698    esac
22699  fi
22700  ;;
22701esac
22702
22703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22704$as_echo_n "checking dynamic linker characteristics... " >&6; }
22705library_names_spec=
22706libname_spec='lib$name'
22707soname_spec=
22708shrext_cmds=".so"
22709postinstall_cmds=
22710postuninstall_cmds=
22711finish_cmds=
22712finish_eval=
22713shlibpath_var=
22714shlibpath_overrides_runpath=unknown
22715version_type=none
22716dynamic_linker="$host_os ld.so"
22717sys_lib_dlsearch_path_spec="/lib /usr/lib"
22718
22719need_lib_prefix=unknown
22720hardcode_into_libs=no
22721
22722# when you set need_version to no, make sure it does not cause -set_version
22723# flags to be left without arguments
22724need_version=unknown
22725
22726case $host_os in
22727aix3*)
22728  version_type=linux
22729  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22730  shlibpath_var=LIBPATH
22731
22732  # AIX 3 has no versioning support, so we append a major version to the name.
22733  soname_spec='${libname}${release}${shared_ext}$major'
22734  ;;
22735
22736aix[4-9]*)
22737  version_type=linux
22738  need_lib_prefix=no
22739  need_version=no
22740  hardcode_into_libs=yes
22741  if test "$host_cpu" = ia64; then
22742    # AIX 5 supports IA64
22743    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22744    shlibpath_var=LD_LIBRARY_PATH
22745  else
22746    # With GCC up to 2.95.x, collect2 would create an import file
22747    # for dependence libraries.  The import file would start with
22748    # the line `#! .'.  This would cause the generated library to
22749    # depend on `.', always an invalid library.  This was fixed in
22750    # development snapshots of GCC prior to 3.0.
22751    case $host_os in
22752      aix4 | aix4.[01] | aix4.[01].*)
22753      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22754	   echo ' yes '
22755	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22756	:
22757      else
22758	can_build_shared=no
22759      fi
22760      ;;
22761    esac
22762    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22763    # soname into executable. Probably we can add versioning support to
22764    # collect2, so additional links can be useful in future.
22765    if test "$aix_use_runtimelinking" = yes; then
22766      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22767      # instead of lib<name>.a to let people know that these are not
22768      # typical AIX shared libraries.
22769      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22770    else
22771      # We preserve .a as extension for shared libraries through AIX4.2
22772      # and later when we are not doing run time linking.
22773      library_names_spec='${libname}${release}.a $libname.a'
22774      soname_spec='${libname}${release}${shared_ext}$major'
22775    fi
22776    shlibpath_var=LIBPATH
22777  fi
22778  ;;
22779
22780amigaos*)
22781  library_names_spec='$libname.ixlibrary $libname.a'
22782  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22783  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'
22784  ;;
22785
22786beos*)
22787  library_names_spec='${libname}${shared_ext}'
22788  dynamic_linker="$host_os ld.so"
22789  shlibpath_var=LIBRARY_PATH
22790  ;;
22791
22792bsdi[45]*)
22793  version_type=linux
22794  need_version=no
22795  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22796  soname_spec='${libname}${release}${shared_ext}$major'
22797  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22798  shlibpath_var=LD_LIBRARY_PATH
22799  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22800  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22801  # the default ld.so.conf also contains /usr/contrib/lib and
22802  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22803  # libtool to hard-code these into programs
22804  ;;
22805
22806cygwin* | mingw* | pw32*)
22807  version_type=windows
22808  shrext_cmds=".dll"
22809  need_version=no
22810  need_lib_prefix=no
22811
22812  case $GCC,$host_os in
22813  yes,cygwin* | yes,mingw* | yes,pw32*)
22814    library_names_spec='$libname.dll.a'
22815    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22816    postinstall_cmds='base_file=`basename \${file}`~
22817      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22818      dldir=$destdir/`dirname \$dlpath`~
22819      test -d \$dldir || mkdir -p \$dldir~
22820      $install_prog $dir/$dlname \$dldir/$dlname~
22821      chmod a+x \$dldir/$dlname'
22822    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22823      dlpath=$dir/\$dldll~
22824       $rm \$dlpath'
22825    shlibpath_overrides_runpath=yes
22826
22827    case $host_os in
22828    cygwin*)
22829      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22830      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22831      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22832      ;;
22833    mingw*)
22834      # MinGW DLLs use traditional 'lib' prefix
22835      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22836      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22837      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22838        # It is most probably a Windows format PATH printed by
22839        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22840        # path with ; separators, and with drive letters. We can handle the
22841        # drive letters (cygwin fileutils understands them), so leave them,
22842        # especially as we might pass files found there to a mingw objdump,
22843        # which wouldn't understand a cygwinified path. Ahh.
22844        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22845      else
22846        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22847      fi
22848      ;;
22849    pw32*)
22850      # pw32 DLLs use 'pw' prefix rather than 'lib'
22851      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22852      ;;
22853    esac
22854    ;;
22855
22856  *)
22857    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22858    ;;
22859  esac
22860  dynamic_linker='Win32 ld.exe'
22861  # FIXME: first we should search . and the directory the executable is in
22862  shlibpath_var=PATH
22863  ;;
22864
22865darwin* | rhapsody*)
22866  dynamic_linker="$host_os dyld"
22867  version_type=darwin
22868  need_lib_prefix=no
22869  need_version=no
22870  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22871  soname_spec='${libname}${release}${major}$shared_ext'
22872  shlibpath_overrides_runpath=yes
22873  shlibpath_var=DYLD_LIBRARY_PATH
22874  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22875
22876  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22877  ;;
22878
22879dgux*)
22880  version_type=linux
22881  need_lib_prefix=no
22882  need_version=no
22883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22884  soname_spec='${libname}${release}${shared_ext}$major'
22885  shlibpath_var=LD_LIBRARY_PATH
22886  ;;
22887
22888freebsd1*)
22889  dynamic_linker=no
22890  ;;
22891
22892freebsd* | dragonfly*)
22893  # DragonFly does not have aout.  When/if they implement a new
22894  # versioning mechanism, adjust this.
22895  if test -x /usr/bin/objformat; then
22896    objformat=`/usr/bin/objformat`
22897  else
22898    case $host_os in
22899    freebsd[123]*) objformat=aout ;;
22900    *) objformat=elf ;;
22901    esac
22902  fi
22903  version_type=freebsd-$objformat
22904  case $version_type in
22905    freebsd-elf*)
22906      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22907      need_version=no
22908      need_lib_prefix=no
22909      ;;
22910    freebsd-*)
22911      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22912      need_version=yes
22913      ;;
22914  esac
22915  shlibpath_var=LD_LIBRARY_PATH
22916  case $host_os in
22917  freebsd2*)
22918    shlibpath_overrides_runpath=yes
22919    ;;
22920  freebsd3.[01]* | freebsdelf3.[01]*)
22921    shlibpath_overrides_runpath=yes
22922    hardcode_into_libs=yes
22923    ;;
22924  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22925  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22926    shlibpath_overrides_runpath=no
22927    hardcode_into_libs=yes
22928    ;;
22929  *) # from 4.6 on, and DragonFly
22930    shlibpath_overrides_runpath=yes
22931    hardcode_into_libs=yes
22932    ;;
22933  esac
22934  ;;
22935
22936gnu*)
22937  version_type=linux
22938  need_lib_prefix=no
22939  need_version=no
22940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22941  soname_spec='${libname}${release}${shared_ext}$major'
22942  shlibpath_var=LD_LIBRARY_PATH
22943  hardcode_into_libs=yes
22944  ;;
22945
22946hpux9* | hpux10* | hpux11*)
22947  # Give a soname corresponding to the major version so that dld.sl refuses to
22948  # link against other versions.
22949  version_type=sunos
22950  need_lib_prefix=no
22951  need_version=no
22952  case $host_cpu in
22953  ia64*)
22954    shrext_cmds='.so'
22955    hardcode_into_libs=yes
22956    dynamic_linker="$host_os dld.so"
22957    shlibpath_var=LD_LIBRARY_PATH
22958    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22959    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22960    soname_spec='${libname}${release}${shared_ext}$major'
22961    if test "X$HPUX_IA64_MODE" = X32; then
22962      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22963    else
22964      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22965    fi
22966    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22967    ;;
22968   hppa*64*)
22969     shrext_cmds='.sl'
22970     hardcode_into_libs=yes
22971     dynamic_linker="$host_os dld.sl"
22972     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22973     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22975     soname_spec='${libname}${release}${shared_ext}$major'
22976     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22977     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22978     ;;
22979   *)
22980    shrext_cmds='.sl'
22981    dynamic_linker="$host_os dld.sl"
22982    shlibpath_var=SHLIB_PATH
22983    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22984    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22985    soname_spec='${libname}${release}${shared_ext}$major'
22986    ;;
22987  esac
22988  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22989  postinstall_cmds='chmod 555 $lib'
22990  ;;
22991
22992interix[3-9]*)
22993  version_type=linux
22994  need_lib_prefix=no
22995  need_version=no
22996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22997  soname_spec='${libname}${release}${shared_ext}$major'
22998  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22999  shlibpath_var=LD_LIBRARY_PATH
23000  shlibpath_overrides_runpath=no
23001  hardcode_into_libs=yes
23002  ;;
23003
23004irix5* | irix6* | nonstopux*)
23005  case $host_os in
23006    nonstopux*) version_type=nonstopux ;;
23007    *)
23008	if test "$lt_cv_prog_gnu_ld" = yes; then
23009		version_type=linux
23010	else
23011		version_type=irix
23012	fi ;;
23013  esac
23014  need_lib_prefix=no
23015  need_version=no
23016  soname_spec='${libname}${release}${shared_ext}$major'
23017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23018  case $host_os in
23019  irix5* | nonstopux*)
23020    libsuff= shlibsuff=
23021    ;;
23022  *)
23023    case $LD in # libtool.m4 will add one of these switches to LD
23024    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23025      libsuff= shlibsuff= libmagic=32-bit;;
23026    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23027      libsuff=32 shlibsuff=N32 libmagic=N32;;
23028    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23029      libsuff=64 shlibsuff=64 libmagic=64-bit;;
23030    *) libsuff= shlibsuff= libmagic=never-match;;
23031    esac
23032    ;;
23033  esac
23034  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23035  shlibpath_overrides_runpath=no
23036  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23037  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23038  hardcode_into_libs=yes
23039  ;;
23040
23041# No shared lib support for Linux oldld, aout, or coff.
23042linux*oldld* | linux*aout* | linux*coff*)
23043  dynamic_linker=no
23044  ;;
23045
23046# This must be Linux ELF.
23047linux* | k*bsd*-gnu)
23048  version_type=linux
23049  need_lib_prefix=no
23050  need_version=no
23051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23052  soname_spec='${libname}${release}${shared_ext}$major'
23053  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23054  shlibpath_var=LD_LIBRARY_PATH
23055  shlibpath_overrides_runpath=no
23056  # This implies no fast_install, which is unacceptable.
23057  # Some rework will be needed to allow for fast_install
23058  # before this can be enabled.
23059  hardcode_into_libs=yes
23060
23061  # Append ld.so.conf contents to the search path
23062  if test -f /etc/ld.so.conf; then
23063    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' ' '`
23064    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23065  fi
23066
23067  # We used to test for /lib/ld.so.1 and disable shared libraries on
23068  # powerpc, because MkLinux only supported shared libraries with the
23069  # GNU dynamic linker.  Since this was broken with cross compilers,
23070  # most powerpc-linux boxes support dynamic linking these days and
23071  # people can always --disable-shared, the test was removed, and we
23072  # assume the GNU/Linux dynamic linker is in use.
23073  dynamic_linker='GNU/Linux ld.so'
23074  ;;
23075
23076netbsd*)
23077  version_type=sunos
23078  need_lib_prefix=no
23079  need_version=no
23080  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23081    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23082    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23083    dynamic_linker='NetBSD (a.out) ld.so'
23084  else
23085    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23086    soname_spec='${libname}${release}${shared_ext}$major'
23087    dynamic_linker='NetBSD ld.elf_so'
23088  fi
23089  shlibpath_var=LD_LIBRARY_PATH
23090  shlibpath_overrides_runpath=yes
23091  hardcode_into_libs=yes
23092  ;;
23093
23094newsos6)
23095  version_type=linux
23096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23097  shlibpath_var=LD_LIBRARY_PATH
23098  shlibpath_overrides_runpath=yes
23099  ;;
23100
23101nto-qnx*)
23102  version_type=linux
23103  need_lib_prefix=no
23104  need_version=no
23105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23106  soname_spec='${libname}${release}${shared_ext}$major'
23107  shlibpath_var=LD_LIBRARY_PATH
23108  shlibpath_overrides_runpath=yes
23109  ;;
23110
23111openbsd*)
23112  version_type=sunos
23113  sys_lib_dlsearch_path_spec="/usr/lib"
23114  need_lib_prefix=no
23115  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23116  case $host_os in
23117    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23118    *)                         need_version=no  ;;
23119  esac
23120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23121  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23122  shlibpath_var=LD_LIBRARY_PATH
23123  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23124    case $host_os in
23125      openbsd2.[89] | openbsd2.[89].*)
23126	shlibpath_overrides_runpath=no
23127	;;
23128      *)
23129	shlibpath_overrides_runpath=yes
23130	;;
23131      esac
23132  else
23133    shlibpath_overrides_runpath=yes
23134  fi
23135  ;;
23136
23137os2*)
23138  libname_spec='$name'
23139  shrext_cmds=".dll"
23140  need_lib_prefix=no
23141  library_names_spec='$libname${shared_ext} $libname.a'
23142  dynamic_linker='OS/2 ld.exe'
23143  shlibpath_var=LIBPATH
23144  ;;
23145
23146osf3* | osf4* | osf5*)
23147  version_type=osf
23148  need_lib_prefix=no
23149  need_version=no
23150  soname_spec='${libname}${release}${shared_ext}$major'
23151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23152  shlibpath_var=LD_LIBRARY_PATH
23153  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23154  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23155  ;;
23156
23157rdos*)
23158  dynamic_linker=no
23159  ;;
23160
23161solaris*)
23162  version_type=linux
23163  need_lib_prefix=no
23164  need_version=no
23165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23166  soname_spec='${libname}${release}${shared_ext}$major'
23167  shlibpath_var=LD_LIBRARY_PATH
23168  shlibpath_overrides_runpath=yes
23169  hardcode_into_libs=yes
23170  # ldd complains unless libraries are executable
23171  postinstall_cmds='chmod +x $lib'
23172  ;;
23173
23174sunos4*)
23175  version_type=sunos
23176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23177  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23178  shlibpath_var=LD_LIBRARY_PATH
23179  shlibpath_overrides_runpath=yes
23180  if test "$with_gnu_ld" = yes; then
23181    need_lib_prefix=no
23182  fi
23183  need_version=yes
23184  ;;
23185
23186sysv4 | sysv4.3*)
23187  version_type=linux
23188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23189  soname_spec='${libname}${release}${shared_ext}$major'
23190  shlibpath_var=LD_LIBRARY_PATH
23191  case $host_vendor in
23192    sni)
23193      shlibpath_overrides_runpath=no
23194      need_lib_prefix=no
23195      export_dynamic_flag_spec='${wl}-Blargedynsym'
23196      runpath_var=LD_RUN_PATH
23197      ;;
23198    siemens)
23199      need_lib_prefix=no
23200      ;;
23201    motorola)
23202      need_lib_prefix=no
23203      need_version=no
23204      shlibpath_overrides_runpath=no
23205      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23206      ;;
23207  esac
23208  ;;
23209
23210sysv4*MP*)
23211  if test -d /usr/nec ;then
23212    version_type=linux
23213    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23214    soname_spec='$libname${shared_ext}.$major'
23215    shlibpath_var=LD_LIBRARY_PATH
23216  fi
23217  ;;
23218
23219sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23220  version_type=freebsd-elf
23221  need_lib_prefix=no
23222  need_version=no
23223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23224  soname_spec='${libname}${release}${shared_ext}$major'
23225  shlibpath_var=LD_LIBRARY_PATH
23226  hardcode_into_libs=yes
23227  if test "$with_gnu_ld" = yes; then
23228    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23229    shlibpath_overrides_runpath=no
23230  else
23231    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23232    shlibpath_overrides_runpath=yes
23233    case $host_os in
23234      sco3.2v5*)
23235        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23236	;;
23237    esac
23238  fi
23239  sys_lib_dlsearch_path_spec='/usr/lib'
23240  ;;
23241
23242uts4*)
23243  version_type=linux
23244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23245  soname_spec='${libname}${release}${shared_ext}$major'
23246  shlibpath_var=LD_LIBRARY_PATH
23247  ;;
23248
23249*)
23250  dynamic_linker=no
23251  ;;
23252esac
23253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23254$as_echo "$dynamic_linker" >&6; }
23255test "$dynamic_linker" = no && can_build_shared=no
23256
23257if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
23258  $as_echo_n "(cached) " >&6
23259else
23260  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
23261fi
23262
23263sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23264if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
23265  $as_echo_n "(cached) " >&6
23266else
23267  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
23268fi
23269
23270sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23271
23272variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23273if test "$GCC" = yes; then
23274  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23275fi
23276
23277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23278$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23279hardcode_action_GCJ=
23280if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23281   test -n "$runpath_var_GCJ" || \
23282   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23283
23284  # We can hardcode non-existant directories.
23285  if test "$hardcode_direct_GCJ" != no &&
23286     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23287     # have to relink, otherwise we might link with an installed library
23288     # when we should be linking with a yet-to-be-installed one
23289     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23290     test "$hardcode_minus_L_GCJ" != no; then
23291    # Linking always hardcodes the temporary library directory.
23292    hardcode_action_GCJ=relink
23293  else
23294    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23295    hardcode_action_GCJ=immediate
23296  fi
23297else
23298  # We cannot hardcode anything, or else we can only hardcode existing
23299  # directories.
23300  hardcode_action_GCJ=unsupported
23301fi
23302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
23303$as_echo "$hardcode_action_GCJ" >&6; }
23304
23305if test "$hardcode_action_GCJ" = relink; then
23306  # Fast installation is not supported
23307  enable_fast_install=no
23308elif test "$shlibpath_overrides_runpath" = yes ||
23309     test "$enable_shared" = no; then
23310  # Fast installation is not necessary
23311  enable_fast_install=needless
23312fi
23313
23314
23315# The else clause should only fire when bootstrapping the
23316# libtool distribution, otherwise you forgot to ship ltmain.sh
23317# with your package, and you will get complaints that there are
23318# no rules to generate ltmain.sh.
23319if test -f "$ltmain"; then
23320  # See if we are running on zsh, and set the options which allow our commands through
23321  # without removal of \ escapes.
23322  if test -n "${ZSH_VERSION+set}" ; then
23323    setopt NO_GLOB_SUBST
23324  fi
23325  # Now quote all the things that may contain metacharacters while being
23326  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23327  # variables and quote the copies for generation of the libtool script.
23328  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23329    SED SHELL STRIP \
23330    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23331    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23332    deplibs_check_method reload_flag reload_cmds need_locks \
23333    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23334    lt_cv_sys_global_symbol_to_c_name_address \
23335    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23336    old_postinstall_cmds old_postuninstall_cmds \
23337    compiler_GCJ \
23338    CC_GCJ \
23339    LD_GCJ \
23340    lt_prog_compiler_wl_GCJ \
23341    lt_prog_compiler_pic_GCJ \
23342    lt_prog_compiler_static_GCJ \
23343    lt_prog_compiler_no_builtin_flag_GCJ \
23344    export_dynamic_flag_spec_GCJ \
23345    thread_safe_flag_spec_GCJ \
23346    whole_archive_flag_spec_GCJ \
23347    enable_shared_with_static_runtimes_GCJ \
23348    old_archive_cmds_GCJ \
23349    old_archive_from_new_cmds_GCJ \
23350    predep_objects_GCJ \
23351    postdep_objects_GCJ \
23352    predeps_GCJ \
23353    postdeps_GCJ \
23354    compiler_lib_search_path_GCJ \
23355    compiler_lib_search_dirs_GCJ \
23356    archive_cmds_GCJ \
23357    archive_expsym_cmds_GCJ \
23358    postinstall_cmds_GCJ \
23359    postuninstall_cmds_GCJ \
23360    old_archive_from_expsyms_cmds_GCJ \
23361    allow_undefined_flag_GCJ \
23362    no_undefined_flag_GCJ \
23363    export_symbols_cmds_GCJ \
23364    hardcode_libdir_flag_spec_GCJ \
23365    hardcode_libdir_flag_spec_ld_GCJ \
23366    hardcode_libdir_separator_GCJ \
23367    hardcode_automatic_GCJ \
23368    module_cmds_GCJ \
23369    module_expsym_cmds_GCJ \
23370    lt_cv_prog_compiler_c_o_GCJ \
23371    fix_srcfile_path_GCJ \
23372    exclude_expsyms_GCJ \
23373    include_expsyms_GCJ; do
23374
23375    case $var in
23376    old_archive_cmds_GCJ | \
23377    old_archive_from_new_cmds_GCJ | \
23378    archive_cmds_GCJ | \
23379    archive_expsym_cmds_GCJ | \
23380    module_cmds_GCJ | \
23381    module_expsym_cmds_GCJ | \
23382    old_archive_from_expsyms_cmds_GCJ | \
23383    export_symbols_cmds_GCJ | \
23384    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23385    postinstall_cmds | postuninstall_cmds | \
23386    old_postinstall_cmds | old_postuninstall_cmds | \
23387    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23388      # Double-quote double-evaled strings.
23389      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23390      ;;
23391    *)
23392      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23393      ;;
23394    esac
23395  done
23396
23397  case $lt_echo in
23398  *'\$0 --fallback-echo"')
23399    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23400    ;;
23401  esac
23402
23403cfgfile="$ofile"
23404
23405  cat <<__EOF__ >> "$cfgfile"
23406# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23407
23408# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23409
23410# Shell to use when invoking shell scripts.
23411SHELL=$lt_SHELL
23412
23413# Whether or not to build shared libraries.
23414build_libtool_libs=$enable_shared
23415
23416# Whether or not to build static libraries.
23417build_old_libs=$enable_static
23418
23419# Whether or not to add -lc for building shared libraries.
23420build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23421
23422# Whether or not to disallow shared libs when runtime libs are static
23423allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23424
23425# Whether or not to optimize for fast installation.
23426fast_install=$enable_fast_install
23427
23428# The host system.
23429host_alias=$host_alias
23430host=$host
23431host_os=$host_os
23432
23433# The build system.
23434build_alias=$build_alias
23435build=$build
23436build_os=$build_os
23437
23438# An echo program that does not interpret backslashes.
23439echo=$lt_echo
23440
23441# The archiver.
23442AR=$lt_AR
23443AR_FLAGS=$lt_AR_FLAGS
23444
23445# A C compiler.
23446LTCC=$lt_LTCC
23447
23448# LTCC compiler flags.
23449LTCFLAGS=$lt_LTCFLAGS
23450
23451# A language-specific compiler.
23452CC=$lt_compiler_GCJ
23453
23454# Is the compiler the GNU C compiler?
23455with_gcc=$GCC_GCJ
23456
23457# An ERE matcher.
23458EGREP=$lt_EGREP
23459
23460# The linker used to build libraries.
23461LD=$lt_LD_GCJ
23462
23463# Whether we need hard or soft links.
23464LN_S=$lt_LN_S
23465
23466# A BSD-compatible nm program.
23467NM=$lt_NM
23468
23469# A symbol stripping program
23470STRIP=$lt_STRIP
23471
23472# Used to examine libraries when file_magic_cmd begins "file"
23473MAGIC_CMD=$MAGIC_CMD
23474
23475# Used on cygwin: DLL creation program.
23476DLLTOOL="$DLLTOOL"
23477
23478# Used on cygwin: object dumper.
23479OBJDUMP="$OBJDUMP"
23480
23481# Used on cygwin: assembler.
23482AS="$AS"
23483
23484# The name of the directory that contains temporary libtool files.
23485objdir=$objdir
23486
23487# How to create reloadable object files.
23488reload_flag=$lt_reload_flag
23489reload_cmds=$lt_reload_cmds
23490
23491# How to pass a linker flag through the compiler.
23492wl=$lt_lt_prog_compiler_wl_GCJ
23493
23494# Object file suffix (normally "o").
23495objext="$ac_objext"
23496
23497# Old archive suffix (normally "a").
23498libext="$libext"
23499
23500# Shared library suffix (normally ".so").
23501shrext_cmds='$shrext_cmds'
23502
23503# Executable file suffix (normally "").
23504exeext="$exeext"
23505
23506# Additional compiler flags for building library objects.
23507pic_flag=$lt_lt_prog_compiler_pic_GCJ
23508pic_mode=$pic_mode
23509
23510# What is the maximum length of a command?
23511max_cmd_len=$lt_cv_sys_max_cmd_len
23512
23513# Does compiler simultaneously support -c and -o options?
23514compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23515
23516# Must we lock files when doing compilation?
23517need_locks=$lt_need_locks
23518
23519# Do we need the lib prefix for modules?
23520need_lib_prefix=$need_lib_prefix
23521
23522# Do we need a version for libraries?
23523need_version=$need_version
23524
23525# Whether dlopen is supported.
23526dlopen_support=$enable_dlopen
23527
23528# Whether dlopen of programs is supported.
23529dlopen_self=$enable_dlopen_self
23530
23531# Whether dlopen of statically linked programs is supported.
23532dlopen_self_static=$enable_dlopen_self_static
23533
23534# Compiler flag to prevent dynamic linking.
23535link_static_flag=$lt_lt_prog_compiler_static_GCJ
23536
23537# Compiler flag to turn off builtin functions.
23538no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23539
23540# Compiler flag to allow reflexive dlopens.
23541export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23542
23543# Compiler flag to generate shared objects directly from archives.
23544whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23545
23546# Compiler flag to generate thread-safe objects.
23547thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23548
23549# Library versioning type.
23550version_type=$version_type
23551
23552# Format of library name prefix.
23553libname_spec=$lt_libname_spec
23554
23555# List of archive names.  First name is the real one, the rest are links.
23556# The last name is the one that the linker finds with -lNAME.
23557library_names_spec=$lt_library_names_spec
23558
23559# The coded name of the library, if different from the real name.
23560soname_spec=$lt_soname_spec
23561
23562# Commands used to build and install an old-style archive.
23563RANLIB=$lt_RANLIB
23564old_archive_cmds=$lt_old_archive_cmds_GCJ
23565old_postinstall_cmds=$lt_old_postinstall_cmds
23566old_postuninstall_cmds=$lt_old_postuninstall_cmds
23567
23568# Create an old-style archive from a shared archive.
23569old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23570
23571# Create a temporary old-style archive to link instead of a shared archive.
23572old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23573
23574# Commands used to build and install a shared archive.
23575archive_cmds=$lt_archive_cmds_GCJ
23576archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23577postinstall_cmds=$lt_postinstall_cmds
23578postuninstall_cmds=$lt_postuninstall_cmds
23579
23580# Commands used to build a loadable module (assumed same as above if empty)
23581module_cmds=$lt_module_cmds_GCJ
23582module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23583
23584# Commands to strip libraries.
23585old_striplib=$lt_old_striplib
23586striplib=$lt_striplib
23587
23588# Dependencies to place before the objects being linked to create a
23589# shared library.
23590predep_objects=$lt_predep_objects_GCJ
23591
23592# Dependencies to place after the objects being linked to create a
23593# shared library.
23594postdep_objects=$lt_postdep_objects_GCJ
23595
23596# Dependencies to place before the objects being linked to create a
23597# shared library.
23598predeps=$lt_predeps_GCJ
23599
23600# Dependencies to place after the objects being linked to create a
23601# shared library.
23602postdeps=$lt_postdeps_GCJ
23603
23604# The directories searched by this compiler when creating a shared
23605# library
23606compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
23607
23608# The library search path used internally by the compiler when linking
23609# a shared library.
23610compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23611
23612# Method to check whether dependent libraries are shared objects.
23613deplibs_check_method=$lt_deplibs_check_method
23614
23615# Command to use when deplibs_check_method == file_magic.
23616file_magic_cmd=$lt_file_magic_cmd
23617
23618# Flag that allows shared libraries with undefined symbols to be built.
23619allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23620
23621# Flag that forces no undefined symbols.
23622no_undefined_flag=$lt_no_undefined_flag_GCJ
23623
23624# Commands used to finish a libtool library installation in a directory.
23625finish_cmds=$lt_finish_cmds
23626
23627# Same as above, but a single script fragment to be evaled but not shown.
23628finish_eval=$lt_finish_eval
23629
23630# Take the output of nm and produce a listing of raw symbols and C names.
23631global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23632
23633# Transform the output of nm in a proper C declaration
23634global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23635
23636# Transform the output of nm in a C name address pair
23637global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23638
23639# This is the shared library runtime path variable.
23640runpath_var=$runpath_var
23641
23642# This is the shared library path variable.
23643shlibpath_var=$shlibpath_var
23644
23645# Is shlibpath searched before the hard-coded library search path?
23646shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23647
23648# How to hardcode a shared library path into an executable.
23649hardcode_action=$hardcode_action_GCJ
23650
23651# Whether we should hardcode library paths into libraries.
23652hardcode_into_libs=$hardcode_into_libs
23653
23654# Flag to hardcode \$libdir into a binary during linking.
23655# This must work even if \$libdir does not exist.
23656hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23657
23658# If ld is used when linking, flag to hardcode \$libdir into
23659# a binary during linking. This must work even if \$libdir does
23660# not exist.
23661hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23662
23663# Whether we need a single -rpath flag with a separated argument.
23664hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23665
23666# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23667# resulting binary.
23668hardcode_direct=$hardcode_direct_GCJ
23669
23670# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23671# resulting binary.
23672hardcode_minus_L=$hardcode_minus_L_GCJ
23673
23674# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23675# the resulting binary.
23676hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23677
23678# Set to yes if building a shared library automatically hardcodes DIR into the library
23679# and all subsequent libraries and executables linked against it.
23680hardcode_automatic=$hardcode_automatic_GCJ
23681
23682# Variables whose values should be saved in libtool wrapper scripts and
23683# restored at relink time.
23684variables_saved_for_relink="$variables_saved_for_relink"
23685
23686# Whether libtool must link a program against all its dependency libraries.
23687link_all_deplibs=$link_all_deplibs_GCJ
23688
23689# Compile-time system search path for libraries
23690sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23691
23692# Run-time system search path for libraries
23693sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23694
23695# Fix the shell variable \$srcfile for the compiler.
23696fix_srcfile_path=$lt_fix_srcfile_path
23697
23698# Set to yes if exported symbols are required.
23699always_export_symbols=$always_export_symbols_GCJ
23700
23701# The commands to list exported symbols.
23702export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23703
23704# The commands to extract the exported symbol list from a shared archive.
23705extract_expsyms_cmds=$lt_extract_expsyms_cmds
23706
23707# Symbols that should not be listed in the preloaded symbols.
23708exclude_expsyms=$lt_exclude_expsyms_GCJ
23709
23710# Symbols that must always be exported.
23711include_expsyms=$lt_include_expsyms_GCJ
23712
23713# ### END LIBTOOL TAG CONFIG: $tagname
23714
23715__EOF__
23716
23717
23718else
23719  # If there is no Makefile yet, we rely on a make rule to execute
23720  # `config.status --recheck' to rerun these tests and create the
23721  # libtool script then.
23722  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23723  if test -f "$ltmain_in"; then
23724    test -f Makefile && make "$ltmain"
23725  fi
23726fi
23727
23728
23729ac_ext=c
23730ac_cpp='$CPP $CPPFLAGS'
23731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23733ac_compiler_gnu=$ac_cv_c_compiler_gnu
23734
23735CC="$lt_save_CC"
23736
23737	else
23738	  tagname=""
23739	fi
23740	;;
23741
23742      RC)
23743
23744
23745# Source file extension for RC test sources.
23746ac_ext=rc
23747
23748# Object file extension for compiled RC test sources.
23749objext=o
23750objext_RC=$objext
23751
23752# Code to be used in simple compile tests
23753lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
23754
23755# Code to be used in simple link tests
23756lt_simple_link_test_code="$lt_simple_compile_test_code"
23757
23758# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23759
23760# If no C compiler was specified, use CC.
23761LTCC=${LTCC-"$CC"}
23762
23763# If no C compiler flags were specified, use CFLAGS.
23764LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23765
23766# Allow CC to be a program name with arguments.
23767compiler=$CC
23768
23769
23770# save warnings/boilerplate of simple test code
23771ac_outfile=conftest.$ac_objext
23772echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23773eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23774_lt_compiler_boilerplate=`cat conftest.err`
23775$rm conftest*
23776
23777ac_outfile=conftest.$ac_objext
23778echo "$lt_simple_link_test_code" >conftest.$ac_ext
23779eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23780_lt_linker_boilerplate=`cat conftest.err`
23781$rm -r conftest*
23782
23783
23784# Allow CC to be a program name with arguments.
23785lt_save_CC="$CC"
23786CC=${RC-"windres"}
23787compiler=$CC
23788compiler_RC=$CC
23789for cc_temp in $compiler""; do
23790  case $cc_temp in
23791    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23792    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23793    \-*) ;;
23794    *) break;;
23795  esac
23796done
23797cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23798
23799lt_cv_prog_compiler_c_o_RC=yes
23800
23801# The else clause should only fire when bootstrapping the
23802# libtool distribution, otherwise you forgot to ship ltmain.sh
23803# with your package, and you will get complaints that there are
23804# no rules to generate ltmain.sh.
23805if test -f "$ltmain"; then
23806  # See if we are running on zsh, and set the options which allow our commands through
23807  # without removal of \ escapes.
23808  if test -n "${ZSH_VERSION+set}" ; then
23809    setopt NO_GLOB_SUBST
23810  fi
23811  # Now quote all the things that may contain metacharacters while being
23812  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23813  # variables and quote the copies for generation of the libtool script.
23814  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23815    SED SHELL STRIP \
23816    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23817    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23818    deplibs_check_method reload_flag reload_cmds need_locks \
23819    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23820    lt_cv_sys_global_symbol_to_c_name_address \
23821    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23822    old_postinstall_cmds old_postuninstall_cmds \
23823    compiler_RC \
23824    CC_RC \
23825    LD_RC \
23826    lt_prog_compiler_wl_RC \
23827    lt_prog_compiler_pic_RC \
23828    lt_prog_compiler_static_RC \
23829    lt_prog_compiler_no_builtin_flag_RC \
23830    export_dynamic_flag_spec_RC \
23831    thread_safe_flag_spec_RC \
23832    whole_archive_flag_spec_RC \
23833    enable_shared_with_static_runtimes_RC \
23834    old_archive_cmds_RC \
23835    old_archive_from_new_cmds_RC \
23836    predep_objects_RC \
23837    postdep_objects_RC \
23838    predeps_RC \
23839    postdeps_RC \
23840    compiler_lib_search_path_RC \
23841    compiler_lib_search_dirs_RC \
23842    archive_cmds_RC \
23843    archive_expsym_cmds_RC \
23844    postinstall_cmds_RC \
23845    postuninstall_cmds_RC \
23846    old_archive_from_expsyms_cmds_RC \
23847    allow_undefined_flag_RC \
23848    no_undefined_flag_RC \
23849    export_symbols_cmds_RC \
23850    hardcode_libdir_flag_spec_RC \
23851    hardcode_libdir_flag_spec_ld_RC \
23852    hardcode_libdir_separator_RC \
23853    hardcode_automatic_RC \
23854    module_cmds_RC \
23855    module_expsym_cmds_RC \
23856    lt_cv_prog_compiler_c_o_RC \
23857    fix_srcfile_path_RC \
23858    exclude_expsyms_RC \
23859    include_expsyms_RC; do
23860
23861    case $var in
23862    old_archive_cmds_RC | \
23863    old_archive_from_new_cmds_RC | \
23864    archive_cmds_RC | \
23865    archive_expsym_cmds_RC | \
23866    module_cmds_RC | \
23867    module_expsym_cmds_RC | \
23868    old_archive_from_expsyms_cmds_RC | \
23869    export_symbols_cmds_RC | \
23870    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23871    postinstall_cmds | postuninstall_cmds | \
23872    old_postinstall_cmds | old_postuninstall_cmds | \
23873    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23874      # Double-quote double-evaled strings.
23875      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23876      ;;
23877    *)
23878      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23879      ;;
23880    esac
23881  done
23882
23883  case $lt_echo in
23884  *'\$0 --fallback-echo"')
23885    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23886    ;;
23887  esac
23888
23889cfgfile="$ofile"
23890
23891  cat <<__EOF__ >> "$cfgfile"
23892# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23893
23894# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23895
23896# Shell to use when invoking shell scripts.
23897SHELL=$lt_SHELL
23898
23899# Whether or not to build shared libraries.
23900build_libtool_libs=$enable_shared
23901
23902# Whether or not to build static libraries.
23903build_old_libs=$enable_static
23904
23905# Whether or not to add -lc for building shared libraries.
23906build_libtool_need_lc=$archive_cmds_need_lc_RC
23907
23908# Whether or not to disallow shared libs when runtime libs are static
23909allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
23910
23911# Whether or not to optimize for fast installation.
23912fast_install=$enable_fast_install
23913
23914# The host system.
23915host_alias=$host_alias
23916host=$host
23917host_os=$host_os
23918
23919# The build system.
23920build_alias=$build_alias
23921build=$build
23922build_os=$build_os
23923
23924# An echo program that does not interpret backslashes.
23925echo=$lt_echo
23926
23927# The archiver.
23928AR=$lt_AR
23929AR_FLAGS=$lt_AR_FLAGS
23930
23931# A C compiler.
23932LTCC=$lt_LTCC
23933
23934# LTCC compiler flags.
23935LTCFLAGS=$lt_LTCFLAGS
23936
23937# A language-specific compiler.
23938CC=$lt_compiler_RC
23939
23940# Is the compiler the GNU C compiler?
23941with_gcc=$GCC_RC
23942
23943# An ERE matcher.
23944EGREP=$lt_EGREP
23945
23946# The linker used to build libraries.
23947LD=$lt_LD_RC
23948
23949# Whether we need hard or soft links.
23950LN_S=$lt_LN_S
23951
23952# A BSD-compatible nm program.
23953NM=$lt_NM
23954
23955# A symbol stripping program
23956STRIP=$lt_STRIP
23957
23958# Used to examine libraries when file_magic_cmd begins "file"
23959MAGIC_CMD=$MAGIC_CMD
23960
23961# Used on cygwin: DLL creation program.
23962DLLTOOL="$DLLTOOL"
23963
23964# Used on cygwin: object dumper.
23965OBJDUMP="$OBJDUMP"
23966
23967# Used on cygwin: assembler.
23968AS="$AS"
23969
23970# The name of the directory that contains temporary libtool files.
23971objdir=$objdir
23972
23973# How to create reloadable object files.
23974reload_flag=$lt_reload_flag
23975reload_cmds=$lt_reload_cmds
23976
23977# How to pass a linker flag through the compiler.
23978wl=$lt_lt_prog_compiler_wl_RC
23979
23980# Object file suffix (normally "o").
23981objext="$ac_objext"
23982
23983# Old archive suffix (normally "a").
23984libext="$libext"
23985
23986# Shared library suffix (normally ".so").
23987shrext_cmds='$shrext_cmds'
23988
23989# Executable file suffix (normally "").
23990exeext="$exeext"
23991
23992# Additional compiler flags for building library objects.
23993pic_flag=$lt_lt_prog_compiler_pic_RC
23994pic_mode=$pic_mode
23995
23996# What is the maximum length of a command?
23997max_cmd_len=$lt_cv_sys_max_cmd_len
23998
23999# Does compiler simultaneously support -c and -o options?
24000compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24001
24002# Must we lock files when doing compilation?
24003need_locks=$lt_need_locks
24004
24005# Do we need the lib prefix for modules?
24006need_lib_prefix=$need_lib_prefix
24007
24008# Do we need a version for libraries?
24009need_version=$need_version
24010
24011# Whether dlopen is supported.
24012dlopen_support=$enable_dlopen
24013
24014# Whether dlopen of programs is supported.
24015dlopen_self=$enable_dlopen_self
24016
24017# Whether dlopen of statically linked programs is supported.
24018dlopen_self_static=$enable_dlopen_self_static
24019
24020# Compiler flag to prevent dynamic linking.
24021link_static_flag=$lt_lt_prog_compiler_static_RC
24022
24023# Compiler flag to turn off builtin functions.
24024no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24025
24026# Compiler flag to allow reflexive dlopens.
24027export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24028
24029# Compiler flag to generate shared objects directly from archives.
24030whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24031
24032# Compiler flag to generate thread-safe objects.
24033thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24034
24035# Library versioning type.
24036version_type=$version_type
24037
24038# Format of library name prefix.
24039libname_spec=$lt_libname_spec
24040
24041# List of archive names.  First name is the real one, the rest are links.
24042# The last name is the one that the linker finds with -lNAME.
24043library_names_spec=$lt_library_names_spec
24044
24045# The coded name of the library, if different from the real name.
24046soname_spec=$lt_soname_spec
24047
24048# Commands used to build and install an old-style archive.
24049RANLIB=$lt_RANLIB
24050old_archive_cmds=$lt_old_archive_cmds_RC
24051old_postinstall_cmds=$lt_old_postinstall_cmds
24052old_postuninstall_cmds=$lt_old_postuninstall_cmds
24053
24054# Create an old-style archive from a shared archive.
24055old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24056
24057# Create a temporary old-style archive to link instead of a shared archive.
24058old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24059
24060# Commands used to build and install a shared archive.
24061archive_cmds=$lt_archive_cmds_RC
24062archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24063postinstall_cmds=$lt_postinstall_cmds
24064postuninstall_cmds=$lt_postuninstall_cmds
24065
24066# Commands used to build a loadable module (assumed same as above if empty)
24067module_cmds=$lt_module_cmds_RC
24068module_expsym_cmds=$lt_module_expsym_cmds_RC
24069
24070# Commands to strip libraries.
24071old_striplib=$lt_old_striplib
24072striplib=$lt_striplib
24073
24074# Dependencies to place before the objects being linked to create a
24075# shared library.
24076predep_objects=$lt_predep_objects_RC
24077
24078# Dependencies to place after the objects being linked to create a
24079# shared library.
24080postdep_objects=$lt_postdep_objects_RC
24081
24082# Dependencies to place before the objects being linked to create a
24083# shared library.
24084predeps=$lt_predeps_RC
24085
24086# Dependencies to place after the objects being linked to create a
24087# shared library.
24088postdeps=$lt_postdeps_RC
24089
24090# The directories searched by this compiler when creating a shared
24091# library
24092compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
24093
24094# The library search path used internally by the compiler when linking
24095# a shared library.
24096compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24097
24098# Method to check whether dependent libraries are shared objects.
24099deplibs_check_method=$lt_deplibs_check_method
24100
24101# Command to use when deplibs_check_method == file_magic.
24102file_magic_cmd=$lt_file_magic_cmd
24103
24104# Flag that allows shared libraries with undefined symbols to be built.
24105allow_undefined_flag=$lt_allow_undefined_flag_RC
24106
24107# Flag that forces no undefined symbols.
24108no_undefined_flag=$lt_no_undefined_flag_RC
24109
24110# Commands used to finish a libtool library installation in a directory.
24111finish_cmds=$lt_finish_cmds
24112
24113# Same as above, but a single script fragment to be evaled but not shown.
24114finish_eval=$lt_finish_eval
24115
24116# Take the output of nm and produce a listing of raw symbols and C names.
24117global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24118
24119# Transform the output of nm in a proper C declaration
24120global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24121
24122# Transform the output of nm in a C name address pair
24123global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24124
24125# This is the shared library runtime path variable.
24126runpath_var=$runpath_var
24127
24128# This is the shared library path variable.
24129shlibpath_var=$shlibpath_var
24130
24131# Is shlibpath searched before the hard-coded library search path?
24132shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24133
24134# How to hardcode a shared library path into an executable.
24135hardcode_action=$hardcode_action_RC
24136
24137# Whether we should hardcode library paths into libraries.
24138hardcode_into_libs=$hardcode_into_libs
24139
24140# Flag to hardcode \$libdir into a binary during linking.
24141# This must work even if \$libdir does not exist.
24142hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24143
24144# If ld is used when linking, flag to hardcode \$libdir into
24145# a binary during linking. This must work even if \$libdir does
24146# not exist.
24147hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24148
24149# Whether we need a single -rpath flag with a separated argument.
24150hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24151
24152# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24153# resulting binary.
24154hardcode_direct=$hardcode_direct_RC
24155
24156# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24157# resulting binary.
24158hardcode_minus_L=$hardcode_minus_L_RC
24159
24160# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24161# the resulting binary.
24162hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24163
24164# Set to yes if building a shared library automatically hardcodes DIR into the library
24165# and all subsequent libraries and executables linked against it.
24166hardcode_automatic=$hardcode_automatic_RC
24167
24168# Variables whose values should be saved in libtool wrapper scripts and
24169# restored at relink time.
24170variables_saved_for_relink="$variables_saved_for_relink"
24171
24172# Whether libtool must link a program against all its dependency libraries.
24173link_all_deplibs=$link_all_deplibs_RC
24174
24175# Compile-time system search path for libraries
24176sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24177
24178# Run-time system search path for libraries
24179sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24180
24181# Fix the shell variable \$srcfile for the compiler.
24182fix_srcfile_path=$lt_fix_srcfile_path
24183
24184# Set to yes if exported symbols are required.
24185always_export_symbols=$always_export_symbols_RC
24186
24187# The commands to list exported symbols.
24188export_symbols_cmds=$lt_export_symbols_cmds_RC
24189
24190# The commands to extract the exported symbol list from a shared archive.
24191extract_expsyms_cmds=$lt_extract_expsyms_cmds
24192
24193# Symbols that should not be listed in the preloaded symbols.
24194exclude_expsyms=$lt_exclude_expsyms_RC
24195
24196# Symbols that must always be exported.
24197include_expsyms=$lt_include_expsyms_RC
24198
24199# ### END LIBTOOL TAG CONFIG: $tagname
24200
24201__EOF__
24202
24203
24204else
24205  # If there is no Makefile yet, we rely on a make rule to execute
24206  # `config.status --recheck' to rerun these tests and create the
24207  # libtool script then.
24208  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24209  if test -f "$ltmain_in"; then
24210    test -f Makefile && make "$ltmain"
24211  fi
24212fi
24213
24214
24215ac_ext=c
24216ac_cpp='$CPP $CPPFLAGS'
24217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24219ac_compiler_gnu=$ac_cv_c_compiler_gnu
24220
24221CC="$lt_save_CC"
24222
24223	;;
24224
24225      *)
24226	as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
24227	;;
24228      esac
24229
24230      # Append the new tag name to the list of available tags.
24231      if test -n "$tagname" ; then
24232      available_tags="$available_tags $tagname"
24233    fi
24234    fi
24235  done
24236  IFS="$lt_save_ifs"
24237
24238  # Now substitute the updated list of available tags.
24239  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24240    mv "${ofile}T" "$ofile"
24241    chmod +x "$ofile"
24242  else
24243    rm -f "${ofile}T"
24244    as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
24245  fi
24246fi
24247
24248
24249
24250# This can be used to rebuild libtool when needed
24251LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24252
24253# Always use our own libtool.
24254LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
24255
24256# Prevent multiple expansion
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277        # get libtool's setting of shlibpath_var
24278        eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
24279        if test "x$shlibpath_var" = "x"; then
24280            shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
24281        fi
24282    fi
24283    ;;
24284esac
24285
24286
24287# Check whether --with-installbuilddir was given.
24288if test "${with_installbuilddir+set}" = set; then :
24289  withval=$with_installbuilddir;  installbuilddir=$withval
24290else
24291   installbuilddir="${datadir}/build-${APR_MAJOR_VERSION}"
24292fi
24293
24294
24295
24296
24297# Check whether --with-libtool was given.
24298if test "${with_libtool+set}" = set; then :
24299  withval=$with_libtool;  use_libtool=$withval
24300else
24301   use_libtool="yes"
24302fi
24303
24304
24305if test "x$use_libtool" = "xyes"; then
24306      lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $< && touch $@'
24307      LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
24308      link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(LT_LDFLAGS) \$(COMPILE) \$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@"
24309      so_ext='lo'
24310      lib_target='-rpath $(libdir) $(OBJECTS)'
24311      export_lib_target='-rpath \$(libdir) \$(OBJECTS)'
24312else
24313      lt_compile='$(COMPILE) -o $@ -c $<'
24314      link='$(AR) cr $(TARGET_LIB) $(OBJECTS); $(RANLIB) $(TARGET_LIB)'
24315      so_ext='o'
24316      lib_target=''
24317      export_lib_target=''
24318fi
24319
24320case $host in
24321    *-solaris2*)
24322        apr_platform_runtime_link_flag="-R"
24323        ;;
24324    *)
24325        ;;
24326esac
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338nl='
24339'
24340echo "${nl}Check for compiler flags..."
24341
24342
24343case $host in
24344    *os390)
24345        if test "$ac_test_CFLAGS" != set; then
24346
24347  if test "x$CFLAGS" = "x-g"; then
24348    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
24349    CFLAGS=""
24350  else
24351    apr_new_bugger=""
24352    apr_removed=0
24353    for i in $CFLAGS; do
24354      if test "x$i" != "x-g"; then
24355        apr_new_bugger="$apr_new_bugger $i"
24356      else
24357        apr_removed=1
24358      fi
24359    done
24360    if test $apr_removed = "1"; then
24361      test "x$silent" != "xyes" && echo "  removed \"-g\" from CFLAGS"
24362      CFLAGS=$apr_new_bugger
24363    fi
24364  fi
24365
24366        fi
24367        ;;
24368esac
24369
24370# Check whether --enable-debug was given.
24371if test "${enable_debug+set}" = set; then :
24372  enableval=$enable_debug;
24373  if test "x$CFLAGS" = "x"; then
24374    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
24375    CFLAGS="-g"
24376  else
24377    apr_addto_bugger="-g"
24378    for i in $apr_addto_bugger; do
24379      apr_addto_duplicate="0"
24380      for j in $CFLAGS; do
24381        if test "x$i" = "x$j"; then
24382          apr_addto_duplicate="1"
24383          break
24384        fi
24385      done
24386      if test $apr_addto_duplicate = "0"; then
24387        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
24388        CFLAGS="$CFLAGS $i"
24389      fi
24390    done
24391  fi
24392
24393   if test "$GCC" = "yes"; then
24394
24395  if test "x$CFLAGS" = "x"; then
24396    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall\""
24397    CFLAGS="-Wall"
24398  else
24399    apr_addto_bugger="-Wall"
24400    for i in $apr_addto_bugger; do
24401      apr_addto_duplicate="0"
24402      for j in $CFLAGS; do
24403        if test "x$i" = "x$j"; then
24404          apr_addto_duplicate="1"
24405          break
24406        fi
24407      done
24408      if test $apr_addto_duplicate = "0"; then
24409        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
24410        CFLAGS="$CFLAGS $i"
24411      fi
24412    done
24413  fi
24414
24415   elif test "$AIX_XLC" = "yes"; then
24416
24417  if test "x$CFLAGS" = "x"; then
24418    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath\""
24419    CFLAGS="-qfullpath"
24420  else
24421    apr_addto_bugger="-qfullpath"
24422    for i in $apr_addto_bugger; do
24423      apr_addto_duplicate="0"
24424      for j in $CFLAGS; do
24425        if test "x$i" = "x$j"; then
24426          apr_addto_duplicate="1"
24427          break
24428        fi
24429      done
24430      if test $apr_addto_duplicate = "0"; then
24431        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
24432        CFLAGS="$CFLAGS $i"
24433      fi
24434    done
24435  fi
24436
24437   fi
24438
24439fi
24440
24441# Check whether --enable-maintainer-mode was given.
24442if test "${enable_maintainer_mode+set}" = set; then :
24443  enableval=$enable_maintainer_mode;
24444  if test "x$CFLAGS" = "x"; then
24445    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
24446    CFLAGS="-g"
24447  else
24448    apr_addto_bugger="-g"
24449    for i in $apr_addto_bugger; do
24450      apr_addto_duplicate="0"
24451      for j in $CFLAGS; do
24452        if test "x$i" = "x$j"; then
24453          apr_addto_duplicate="1"
24454          break
24455        fi
24456      done
24457      if test $apr_addto_duplicate = "0"; then
24458        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
24459        CFLAGS="$CFLAGS $i"
24460      fi
24461    done
24462  fi
24463
24464   if test "$GCC" = "yes"; then
24465
24466  if test "x$CFLAGS" = "x"; then
24467    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\""
24468    CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
24469  else
24470    apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
24471    for i in $apr_addto_bugger; do
24472      apr_addto_duplicate="0"
24473      for j in $CFLAGS; do
24474        if test "x$i" = "x$j"; then
24475          apr_addto_duplicate="1"
24476          break
24477        fi
24478      done
24479      if test $apr_addto_duplicate = "0"; then
24480        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
24481        CFLAGS="$CFLAGS $i"
24482      fi
24483    done
24484  fi
24485
24486   elif test "$AIX_XLC" = "yes"; then
24487
24488  if test "x$CFLAGS" = "x"; then
24489    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
24490    CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
24491  else
24492    apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
24493    for i in $apr_addto_bugger; do
24494      apr_addto_duplicate="0"
24495      for j in $CFLAGS; do
24496        if test "x$i" = "x$j"; then
24497          apr_addto_duplicate="1"
24498          break
24499        fi
24500      done
24501      if test $apr_addto_duplicate = "0"; then
24502        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
24503        CFLAGS="$CFLAGS $i"
24504      fi
24505    done
24506  fi
24507
24508   fi
24509
24510fi
24511
24512# Check whether --enable-profile was given.
24513if test "${enable_profile+set}" = set; then :
24514  enableval=$enable_profile; if test "$GCC" = "yes"; then
24515
24516  if test "x$CFLAGS" = "x"; then
24517    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-pg\""
24518    CFLAGS="-pg"
24519  else
24520    apr_addto_bugger="-pg"
24521    for i in $apr_addto_bugger; do
24522      apr_addto_duplicate="0"
24523      for j in $CFLAGS; do
24524        if test "x$i" = "x$j"; then
24525          apr_addto_duplicate="1"
24526          break
24527        fi
24528      done
24529      if test $apr_addto_duplicate = "0"; then
24530        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
24531        CFLAGS="$CFLAGS $i"
24532      fi
24533    done
24534  fi
24535
24536
24537  if test "x$CFLAGS" = "x-g"; then
24538    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
24539    CFLAGS=""
24540  else
24541    apr_new_bugger=""
24542    apr_removed=0
24543    for i in $CFLAGS; do
24544      if test "x$i" != "x-g"; then
24545        apr_new_bugger="$apr_new_bugger $i"
24546      else
24547        apr_removed=1
24548      fi
24549    done
24550    if test $apr_removed = "1"; then
24551      test "x$silent" != "xyes" && echo "  removed \"-g\" from CFLAGS"
24552      CFLAGS=$apr_new_bugger
24553    fi
24554  fi
24555
24556    if test "$host" = "i586-pc-beos"; then
24557
24558  if test "x$CFLAGS" = "x-O2"; then
24559    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
24560    CFLAGS=""
24561  else
24562    apr_new_bugger=""
24563    apr_removed=0
24564    for i in $CFLAGS; do
24565      if test "x$i" != "x-O2"; then
24566        apr_new_bugger="$apr_new_bugger $i"
24567      else
24568        apr_removed=1
24569      fi
24570    done
24571    if test $apr_removed = "1"; then
24572      test "x$silent" != "xyes" && echo "  removed \"-O2\" from CFLAGS"
24573      CFLAGS=$apr_new_bugger
24574    fi
24575  fi
24576
24577
24578  if test "x$CFLAGS" = "x"; then
24579    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-O1\""
24580    CFLAGS="-O1"
24581  else
24582    apr_addto_bugger="-O1"
24583    for i in $apr_addto_bugger; do
24584      apr_addto_duplicate="0"
24585      for j in $CFLAGS; do
24586        if test "x$i" = "x$j"; then
24587          apr_addto_duplicate="1"
24588          break
24589        fi
24590      done
24591      if test $apr_addto_duplicate = "0"; then
24592        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
24593        CFLAGS="$CFLAGS $i"
24594      fi
24595    done
24596  fi
24597
24598
24599  if test "x$LDFLAGS" = "x"; then
24600    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-p\""
24601    LDFLAGS="-p"
24602  else
24603    apr_addto_bugger="-p"
24604    for i in $apr_addto_bugger; do
24605      apr_addto_duplicate="0"
24606      for j in $LDFLAGS; do
24607        if test "x$i" = "x$j"; then
24608          apr_addto_duplicate="1"
24609          break
24610        fi
24611      done
24612      if test $apr_addto_duplicate = "0"; then
24613        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
24614        LDFLAGS="$LDFLAGS $i"
24615      fi
24616    done
24617  fi
24618
24619    fi
24620  fi
24621
24622fi
24623
24624# Check whether --enable-pool-debug was given.
24625if test "${enable_pool_debug+set}" = set; then :
24626  enableval=$enable_pool_debug;  if test -z "$enableval"; then
24627
24628  if test "x$CPPFLAGS" = "x"; then
24629    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\""
24630    CPPFLAGS="-DAPR_POOL_DEBUG=1"
24631  else
24632    apr_addto_bugger="-DAPR_POOL_DEBUG=1"
24633    for i in $apr_addto_bugger; do
24634      apr_addto_duplicate="0"
24635      for j in $CPPFLAGS; do
24636        if test "x$i" = "x$j"; then
24637          apr_addto_duplicate="1"
24638          break
24639        fi
24640      done
24641      if test $apr_addto_duplicate = "0"; then
24642        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
24643        CPPFLAGS="$CPPFLAGS $i"
24644      fi
24645    done
24646  fi
24647
24648    elif test ! "$enableval" = "no"; then
24649        apr_pool_debug=1
24650
24651        for i in $enableval
24652        do
24653            flag=0
24654
24655            case $i in
24656            yes)
24657                flag=1
24658                ;;
24659            verbose)
24660                flag=2
24661                ;;
24662            lifetime)
24663                flag=4
24664                ;;
24665            owner)
24666                flag=8
24667                ;;
24668            verbose-alloc)
24669                flag=16
24670                ;;
24671            all)
24672                apr_pool_debug=31
24673                ;;
24674            *)
24675                ;;
24676            esac
24677
24678            if test $flag -gt 0; then
24679                apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \
24680                    '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag`
24681            fi
24682        done
24683
24684
24685  if test "x$CPPFLAGS" = "x"; then
24686    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\""
24687    CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug"
24688  else
24689    apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug"
24690    for i in $apr_addto_bugger; do
24691      apr_addto_duplicate="0"
24692      for j in $CPPFLAGS; do
24693        if test "x$i" = "x$j"; then
24694          apr_addto_duplicate="1"
24695          break
24696        fi
24697      done
24698      if test $apr_addto_duplicate = "0"; then
24699        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
24700        CPPFLAGS="$CPPFLAGS $i"
24701      fi
24702    done
24703  fi
24704
24705    fi
24706
24707fi
24708
24709
24710if test "$host" = "i586-pc-beos"; then
24711  # Check whether --enable-malloc-debug was given.
24712if test "${enable_malloc_debug+set}" = set; then :
24713  enableval=$enable_malloc_debug;
24714  if test "x$CFLAGS" = "x-O2"; then
24715    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
24716    CFLAGS=""
24717  else
24718    apr_new_bugger=""
24719    apr_removed=0
24720    for i in $CFLAGS; do
24721      if test "x$i" != "x-O2"; then
24722        apr_new_bugger="$apr_new_bugger $i"
24723      else
24724        apr_removed=1
24725      fi
24726    done
24727    if test $apr_removed = "1"; then
24728      test "x$silent" != "xyes" && echo "  removed \"-O2\" from CFLAGS"
24729      CFLAGS=$apr_new_bugger
24730    fi
24731  fi
24732
24733
24734  if test "x$CPPFLAGS" = "x"; then
24735    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\""
24736    CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE"
24737  else
24738    apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE"
24739    for i in $apr_addto_bugger; do
24740      apr_addto_duplicate="0"
24741      for j in $CPPFLAGS; do
24742        if test "x$i" = "x$j"; then
24743          apr_addto_duplicate="1"
24744          break
24745        fi
24746      done
24747      if test $apr_addto_duplicate = "0"; then
24748        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
24749        CPPFLAGS="$CPPFLAGS $i"
24750      fi
24751    done
24752  fi
24753
24754
24755fi
24756 fi
24757
24758# this is the place to put specific options for platform/compiler
24759# combinations
24760case "$host:$CC" in
24761    *-hp-hpux*:cc )
24762
24763  if test "x$CFLAGS" = "x"; then
24764    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Ae +Z\""
24765    CFLAGS="-Ae +Z"
24766  else
24767    apr_addto_bugger="-Ae +Z"
24768    for i in $apr_addto_bugger; do
24769      apr_addto_duplicate="0"
24770      for j in $CFLAGS; do
24771        if test "x$i" = "x$j"; then
24772          apr_addto_duplicate="1"
24773          break
24774        fi
24775      done
24776      if test $apr_addto_duplicate = "0"; then
24777        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
24778        CFLAGS="$CFLAGS $i"
24779      fi
24780    done
24781  fi
24782
24783	case $host in
24784	  ia64-* )
24785	    ;;
24786          * )
24787	    if echo "$CFLAGS " | grep '+DA' >/dev/null; then :
24788	    else
24789
24790  if test "x$CFLAGS" = "x"; then
24791    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"+DAportable\""
24792    CFLAGS="+DAportable"
24793  else
24794    apr_addto_bugger="+DAportable"
24795    for i in $apr_addto_bugger; do
24796      apr_addto_duplicate="0"
24797      for j in $CFLAGS; do
24798        if test "x$i" = "x$j"; then
24799          apr_addto_duplicate="1"
24800          break
24801        fi
24802      done
24803      if test $apr_addto_duplicate = "0"; then
24804        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
24805        CFLAGS="$CFLAGS $i"
24806      fi
24807    done
24808  fi
24809
24810	    fi
24811	    ;;
24812        esac
24813	;;
24814    powerpc-*-beos:mwcc* )
24815
24816  test "x$silent" != "xyes" && echo "  forcing CPP to \"mwcc -E\""
24817  CPP="mwcc -E"
24818
24819
24820  test "x$silent" != "xyes" && echo "  forcing CC to \"mwcc\""
24821  CC="mwcc"
24822
24823
24824  test "x$silent" != "xyes" && echo "  forcing AR to \"ar\""
24825  AR="ar"
24826
24827	;;
24828esac
24829
24830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
24831$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
24832if test "${ap_cv_atomic_builtins+set}" = set; then :
24833  $as_echo_n "(cached) " >&6
24834else
24835  if test "$cross_compiling" = yes; then :
24836  ap_cv_atomic_builtins=no
24837else
24838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24839/* end confdefs.h.  */
24840
24841int main()
24842{
24843    unsigned long val = 1010, tmp, *mem = &val;
24844
24845    if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
24846        return 1;
24847
24848    tmp = val;
24849
24850    if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
24851        return 1;
24852
24853    if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
24854        return 1;
24855
24856    tmp = 3030;
24857
24858    if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
24859        return 1;
24860
24861    if (__sync_lock_test_and_set(&val, 4040) != 3030)
24862        return 1;
24863
24864    mem = &tmp;
24865
24866    if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
24867        return 1;
24868
24869    __sync_synchronize();
24870
24871    if (mem != &val)
24872        return 1;
24873
24874    return 0;
24875}
24876_ACEOF
24877if ac_fn_c_try_run "$LINENO"; then :
24878  ap_cv_atomic_builtins=yes
24879else
24880  ap_cv_atomic_builtins=no
24881fi
24882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24883  conftest.$ac_objext conftest.beam conftest.$ac_ext
24884fi
24885
24886fi
24887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
24888$as_echo "$ap_cv_atomic_builtins" >&6; }
24889
24890if test "$ap_cv_atomic_builtins" = "yes"; then
24891
24892$as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
24893
24894fi
24895
24896case $host in
24897    powerpc-405-*)
24898        # The IBM ppc405cr processor has a bugged stwcx instruction.
24899
24900$as_echo "#define PPC405_ERRATA 1" >>confdefs.h
24901
24902        ;;
24903    *)
24904        ;;
24905esac
24906
24907
24908if test "$GCC" = "yes"; then
24909  MKDEP='$(CC) -MM'
24910else
24911  rm -f conftest.c
24912  cat > conftest.c <<EOF
24913#include <sys/types.h>
24914  int main() { return 0; }
24915EOF
24916  MKDEP="true"
24917  for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
24918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
24919$as_echo_n "checking if $i can create proper make dependencies... " >&6; }
24920    if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
24921      MKDEP=$i
24922      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24923$as_echo "yes" >&6; }
24924      break;
24925    fi
24926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24927$as_echo "no" >&6; }
24928  done
24929  rm -f conftest.c
24930fi
24931
24932
24933
24934
24935proc_mutex_is_global=0
24936
24937config_subdirs="none"
24938INSTALL_SUBDIRS="none"
24939OBJECTS_PLATFORM='$(OBJECTS_unix)'
24940
24941case $host in
24942   i386-ibm-aix* | *-ibm-aix[1-2].* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*)
24943       OSDIR="aix"
24944
24945  if test "x$LDFLAGS" = "x"; then
24946    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-lld\""
24947    LDFLAGS="-lld"
24948  else
24949    apr_addto_bugger="-lld"
24950    for i in $apr_addto_bugger; do
24951      apr_addto_duplicate="0"
24952      for j in $LDFLAGS; do
24953        if test "x$i" = "x$j"; then
24954          apr_addto_duplicate="1"
24955          break
24956        fi
24957      done
24958      if test $apr_addto_duplicate = "0"; then
24959        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
24960        LDFLAGS="$LDFLAGS $i"
24961      fi
24962    done
24963  fi
24964
24965       eolstr="\\n"
24966       OBJECTS_PLATFORM='$(OBJECTS_aix)'
24967       ;;
24968   *-os2*)
24969
24970  if test "x$CPPFLAGS" = "x"; then
24971    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DOS2\""
24972    CPPFLAGS="-DOS2"
24973  else
24974    apr_addto_bugger="-DOS2"
24975    for i in $apr_addto_bugger; do
24976      apr_addto_duplicate="0"
24977      for j in $CPPFLAGS; do
24978        if test "x$i" = "x$j"; then
24979          apr_addto_duplicate="1"
24980          break
24981        fi
24982      done
24983      if test $apr_addto_duplicate = "0"; then
24984        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
24985        CPPFLAGS="$CPPFLAGS $i"
24986      fi
24987    done
24988  fi
24989
24990
24991  if test "x$CFLAGS" = "x"; then
24992    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-Zmt\""
24993    CFLAGS="-Zmt"
24994  else
24995    apr_addto_bugger="-Zmt"
24996    for i in $apr_addto_bugger; do
24997      apr_addto_duplicate="0"
24998      for j in $CFLAGS; do
24999        if test "x$i" = "x$j"; then
25000          apr_addto_duplicate="1"
25001          break
25002        fi
25003      done
25004      if test $apr_addto_duplicate = "0"; then
25005        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
25006        CFLAGS="$CFLAGS $i"
25007      fi
25008    done
25009  fi
25010
25011       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random in -lbsd" >&5
25012$as_echo_n "checking for random in -lbsd... " >&6; }
25013if test "${ac_cv_lib_bsd_random+set}" = set; then :
25014  $as_echo_n "(cached) " >&6
25015else
25016  ac_check_lib_save_LIBS=$LIBS
25017LIBS="-lbsd  $LIBS"
25018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25019/* end confdefs.h.  */
25020
25021/* Override any GCC internal prototype to avoid an error.
25022   Use char because int might match the return type of a GCC
25023   builtin and then its argument prototype would still apply.  */
25024#ifdef __cplusplus
25025extern "C"
25026#endif
25027char random ();
25028int
25029main ()
25030{
25031return random ();
25032  ;
25033  return 0;
25034}
25035_ACEOF
25036if ac_fn_c_try_link "$LINENO"; then :
25037  ac_cv_lib_bsd_random=yes
25038else
25039  ac_cv_lib_bsd_random=no
25040fi
25041rm -f core conftest.err conftest.$ac_objext \
25042    conftest$ac_exeext conftest.$ac_ext
25043LIBS=$ac_check_lib_save_LIBS
25044fi
25045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_random" >&5
25046$as_echo "$ac_cv_lib_bsd_random" >&6; }
25047if test "x$ac_cv_lib_bsd_random" = x""yes; then :
25048  cat >>confdefs.h <<_ACEOF
25049#define HAVE_LIBBSD 1
25050_ACEOF
25051
25052  LIBS="-lbsd $LIBS"
25053
25054fi
25055
25056       OSDIR="os2"
25057       enable_threads="system_threads"
25058       eolstr="\\r\\n"
25059       file_as_socket="0"
25060       proc_mutex_is_global=1
25061       OBJECTS_PLATFORM='$(OBJECTS_os2)'
25062       ;;
25063   *beos*)
25064       OSDIR="beos"
25065
25066  if test "x$CPPFLAGS" = "x"; then
25067    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-DBEOS\""
25068    CPPFLAGS="-DBEOS"
25069  else
25070    apr_addto_bugger="-DBEOS"
25071    for i in $apr_addto_bugger; do
25072      apr_addto_duplicate="0"
25073      for j in $CPPFLAGS; do
25074        if test "x$i" = "x$j"; then
25075          apr_addto_duplicate="1"
25076          break
25077        fi
25078      done
25079      if test $apr_addto_duplicate = "0"; then
25080        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
25081        CPPFLAGS="$CPPFLAGS $i"
25082      fi
25083    done
25084  fi
25085
25086       enable_threads="system_threads"
25087       native_mmap_emul="1"
25088
25089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONE_VERSION in sys/socket.h" >&5
25090$as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; }
25091if test "${ac_cv_define_BONE_VERSION+set}" = set; then :
25092  $as_echo_n "(cached) " >&6
25093else
25094
25095    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25096/* end confdefs.h.  */
25097
25098#include <sys/socket.h>
25099#ifdef BONE_VERSION
25100YES_IS_DEFINED
25101#endif
25102
25103_ACEOF
25104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25105  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25106  ac_cv_define_BONE_VERSION=yes
25107else
25108  ac_cv_define_BONE_VERSION=no
25109fi
25110rm -f conftest*
25111
25112
25113fi
25114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_BONE_VERSION" >&5
25115$as_echo "$ac_cv_define_BONE_VERSION" >&6; }
25116  if test "$ac_cv_define_BONE_VERSION" = "yes"; then
25117
25118$as_echo "#define HAVE_BONE_VERSION 1" >>confdefs.h
25119
25120  fi
25121
25122       eolstr="\\n"
25123       osver=`uname -r`
25124       proc_mutex_is_global=1
25125       OBJECTS_PLATFORM='$(OBJECTS_beos)'
25126       case $osver in
25127          5.0.4)
25128             file_as_socket="1"
25129             ;;
25130          *)
25131             file_as_socket="0"
25132             ;;
25133       esac
25134       ;;
25135   *os390)
25136       OSDIR="os390"
25137       OBJECTS_PLATFORM='$(OBJECTS_os390)'
25138       eolstr="\\n"
25139       ;;
25140   *os400)
25141       OSDIR="as400"
25142       eolstr="\\n"
25143       ;;
25144   *mingw*)
25145       OSDIR="win32"
25146       enable_threads="system_threads"
25147       eolstr="\\r\\n"
25148       file_as_socket=0
25149       proc_mutex_is_global=1
25150       OBJECTS_PLATFORM='$(OBJECTS_win32)'
25151       ;;
25152   *cygwin*)
25153       OSDIR="unix"
25154       enable_threads="no"
25155       eolstr="\\n"
25156       ;;
25157   *hpux10* )
25158       enable_threads="no"
25159       OSDIR="unix"
25160       eolstr="\\n"
25161       ;;
25162   *)
25163       OSDIR="unix"
25164       eolstr="\\n"
25165       ;;
25166esac
25167
25168
25169
25170# Check whether LFS has explicitly been disabled
25171# Check whether --enable-lfs was given.
25172if test "${enable_lfs+set}" = set; then :
25173  enableval=$enable_lfs; apr_lfs_choice=$enableval
25174else
25175  apr_lfs_choice=yes
25176fi
25177
25178
25179if test "$apr_lfs_choice" = "yes"; then
25180   # Check whether the transitional LFS API is sufficient
25181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
25182$as_echo_n "checking whether to enable -D_LARGEFILE64_SOURCE... " >&6; }
25183if test "${apr_cv_use_lfs64+set}" = set; then :
25184  $as_echo_n "(cached) " >&6
25185else
25186
25187   apr_save_CPPFLAGS=$CPPFLAGS
25188   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
25189   if test "$cross_compiling" = yes; then :
25190  apr_cv_use_lfs64=no
25191else
25192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25193/* end confdefs.h.  */
25194
25195#include <sys/types.h>
25196#include <sys/stat.h>
25197#include <fcntl.h>
25198#include <stdlib.h>
25199#include <stdio.h>
25200#include <unistd.h>
25201
25202int main(void)
25203{
25204    int fd, ret = 0;
25205    struct stat64 st;
25206    off64_t off = 4242;
25207
25208    if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
25209       exit(1);
25210    if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY, 0644)) < 0)
25211       exit(2);
25212    if (ftruncate64(fd, off) != 0)
25213       ret = 3;
25214    else if (fstat64(fd, &st) != 0 || st.st_size != off)
25215       ret = 4;
25216    else if (lseek64(fd, off, SEEK_SET) != off)
25217       ret = 5;
25218    else if (close(fd) != 0)
25219       ret = 6;
25220    else if (lstat64("conftest.lfs", &st) != 0 || st.st_size != off)
25221       ret = 7;
25222    else if (stat64("conftest.lfs", &st) != 0 || st.st_size != off)
25223       ret = 8;
25224    unlink("conftest.lfs");
25225
25226    exit(ret);
25227}
25228_ACEOF
25229if ac_fn_c_try_run "$LINENO"; then :
25230  apr_cv_use_lfs64=yes
25231else
25232  apr_cv_use_lfs64=no
25233fi
25234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25235  conftest.$ac_objext conftest.beam conftest.$ac_ext
25236fi
25237
25238   CPPFLAGS=$apr_save_CPPFLAGS
25239fi
25240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_use_lfs64" >&5
25241$as_echo "$apr_cv_use_lfs64" >&6; }
25242   if test "$apr_cv_use_lfs64" = "yes"; then
25243
25244  if test "x$CPPFLAGS" = "x"; then
25245    test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_LARGEFILE64_SOURCE\""
25246    CPPFLAGS="-D_LARGEFILE64_SOURCE"
25247  else
25248    apr_addto_bugger="-D_LARGEFILE64_SOURCE"
25249    for i in $apr_addto_bugger; do
25250      apr_addto_duplicate="0"
25251      for j in $CPPFLAGS; do
25252        if test "x$i" = "x$j"; then
25253          apr_addto_duplicate="1"
25254          break
25255        fi
25256      done
25257      if test $apr_addto_duplicate = "0"; then
25258        test "x$silent" != "xyes" && echo "  adding \"$i\" to CPPFLAGS"
25259        CPPFLAGS="$CPPFLAGS $i"
25260      fi
25261    done
25262  fi
25263
25264   fi
25265fi
25266
25267# Check whether --enable-nonportable-atomics was given.
25268if test "${enable_nonportable_atomics+set}" = set; then :
25269  enableval=$enable_nonportable_atomics; if test $enableval = yes; then
25270   force_generic_atomics=no
25271 else
25272   force_generic_atomics=yes
25273 fi
25274
25275else
25276  case $host_cpu in
25277   i[456]86) force_generic_atomics=yes ;;
25278   *) force_generic_atomics=no ;;
25279esac
25280
25281fi
25282
25283
25284if test $force_generic_atomics = yes; then
25285
25286$as_echo "#define USE_ATOMICS_GENERIC 1" >>confdefs.h
25287
25288fi
25289
25290
25291
25292
25293
25294# For some platforms we need a version string which allows easy numeric
25295# comparisons.
25296case $host in
25297    *freebsd*)
25298        if test -x /sbin/sysctl; then
25299            os_version=`/sbin/sysctl -n kern.osreldate`
25300        else
25301            os_version=000000
25302        fi
25303        ;;
25304    *linux*)
25305        os_version=`uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/'`
25306        ;;
25307    *os390)
25308        os_version=`uname -r | sed -e 's/\.//g'`
25309        ;;
25310    *)
25311        os_version=OS_VERSION_IS_NOT_SET
25312        ;;
25313esac
25314
25315echo "${nl}Checking for libraries..."
25316
25317case $host in
25318   *mingw*)
25319
25320  if test "x$LIBS" = "x"; then
25321    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock\""
25322    LIBS="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
25323  else
25324    apr_addto_bugger="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
25325    for i in $apr_addto_bugger; do
25326      apr_addto_duplicate="0"
25327      for j in $LIBS; do
25328        if test "x$i" = "x$j"; then
25329          apr_addto_duplicate="1"
25330          break
25331        fi
25332      done
25333      if test $apr_addto_duplicate = "0"; then
25334        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
25335        LIBS="$LIBS $i"
25336      fi
25337    done
25338  fi
25339
25340      ac_cv_func_CreateFileMapping=yes
25341      ;;
25342   *)
25343      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25344$as_echo_n "checking for library containing gethostbyname... " >&6; }
25345if test "${ac_cv_search_gethostbyname+set}" = set; then :
25346  $as_echo_n "(cached) " >&6
25347else
25348  ac_func_search_save_LIBS=$LIBS
25349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25350/* end confdefs.h.  */
25351
25352/* Override any GCC internal prototype to avoid an error.
25353   Use char because int might match the return type of a GCC
25354   builtin and then its argument prototype would still apply.  */
25355#ifdef __cplusplus
25356extern "C"
25357#endif
25358char gethostbyname ();
25359int
25360main ()
25361{
25362return gethostbyname ();
25363  ;
25364  return 0;
25365}
25366_ACEOF
25367for ac_lib in '' nsl; do
25368  if test -z "$ac_lib"; then
25369    ac_res="none required"
25370  else
25371    ac_res=-l$ac_lib
25372    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25373  fi
25374  if ac_fn_c_try_link "$LINENO"; then :
25375  ac_cv_search_gethostbyname=$ac_res
25376fi
25377rm -f core conftest.err conftest.$ac_objext \
25378    conftest$ac_exeext
25379  if test "${ac_cv_search_gethostbyname+set}" = set; then :
25380  break
25381fi
25382done
25383if test "${ac_cv_search_gethostbyname+set}" = set; then :
25384
25385else
25386  ac_cv_search_gethostbyname=no
25387fi
25388rm conftest.$ac_ext
25389LIBS=$ac_func_search_save_LIBS
25390fi
25391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25392$as_echo "$ac_cv_search_gethostbyname" >&6; }
25393ac_res=$ac_cv_search_gethostbyname
25394if test "$ac_res" != no; then :
25395  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25396
25397fi
25398
25399      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
25400$as_echo_n "checking for library containing gethostname... " >&6; }
25401if test "${ac_cv_search_gethostname+set}" = set; then :
25402  $as_echo_n "(cached) " >&6
25403else
25404  ac_func_search_save_LIBS=$LIBS
25405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25406/* end confdefs.h.  */
25407
25408/* Override any GCC internal prototype to avoid an error.
25409   Use char because int might match the return type of a GCC
25410   builtin and then its argument prototype would still apply.  */
25411#ifdef __cplusplus
25412extern "C"
25413#endif
25414char gethostname ();
25415int
25416main ()
25417{
25418return gethostname ();
25419  ;
25420  return 0;
25421}
25422_ACEOF
25423for ac_lib in '' nsl; do
25424  if test -z "$ac_lib"; then
25425    ac_res="none required"
25426  else
25427    ac_res=-l$ac_lib
25428    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25429  fi
25430  if ac_fn_c_try_link "$LINENO"; then :
25431  ac_cv_search_gethostname=$ac_res
25432fi
25433rm -f core conftest.err conftest.$ac_objext \
25434    conftest$ac_exeext
25435  if test "${ac_cv_search_gethostname+set}" = set; then :
25436  break
25437fi
25438done
25439if test "${ac_cv_search_gethostname+set}" = set; then :
25440
25441else
25442  ac_cv_search_gethostname=no
25443fi
25444rm conftest.$ac_ext
25445LIBS=$ac_func_search_save_LIBS
25446fi
25447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
25448$as_echo "$ac_cv_search_gethostname" >&6; }
25449ac_res=$ac_cv_search_gethostname
25450if test "$ac_res" != no; then :
25451  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25452
25453fi
25454
25455      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25456$as_echo_n "checking for library containing socket... " >&6; }
25457if test "${ac_cv_search_socket+set}" = set; then :
25458  $as_echo_n "(cached) " >&6
25459else
25460  ac_func_search_save_LIBS=$LIBS
25461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25462/* end confdefs.h.  */
25463
25464/* Override any GCC internal prototype to avoid an error.
25465   Use char because int might match the return type of a GCC
25466   builtin and then its argument prototype would still apply.  */
25467#ifdef __cplusplus
25468extern "C"
25469#endif
25470char socket ();
25471int
25472main ()
25473{
25474return socket ();
25475  ;
25476  return 0;
25477}
25478_ACEOF
25479for ac_lib in '' socket; do
25480  if test -z "$ac_lib"; then
25481    ac_res="none required"
25482  else
25483    ac_res=-l$ac_lib
25484    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25485  fi
25486  if ac_fn_c_try_link "$LINENO"; then :
25487  ac_cv_search_socket=$ac_res
25488fi
25489rm -f core conftest.err conftest.$ac_objext \
25490    conftest$ac_exeext
25491  if test "${ac_cv_search_socket+set}" = set; then :
25492  break
25493fi
25494done
25495if test "${ac_cv_search_socket+set}" = set; then :
25496
25497else
25498  ac_cv_search_socket=no
25499fi
25500rm conftest.$ac_ext
25501LIBS=$ac_func_search_save_LIBS
25502fi
25503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25504$as_echo "$ac_cv_search_socket" >&6; }
25505ac_res=$ac_cv_search_socket
25506if test "$ac_res" != no; then :
25507  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25508
25509fi
25510
25511      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
25512$as_echo_n "checking for library containing crypt... " >&6; }
25513if test "${ac_cv_search_crypt+set}" = set; then :
25514  $as_echo_n "(cached) " >&6
25515else
25516  ac_func_search_save_LIBS=$LIBS
25517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25518/* end confdefs.h.  */
25519
25520/* Override any GCC internal prototype to avoid an error.
25521   Use char because int might match the return type of a GCC
25522   builtin and then its argument prototype would still apply.  */
25523#ifdef __cplusplus
25524extern "C"
25525#endif
25526char crypt ();
25527int
25528main ()
25529{
25530return crypt ();
25531  ;
25532  return 0;
25533}
25534_ACEOF
25535for ac_lib in '' crypt ufc; do
25536  if test -z "$ac_lib"; then
25537    ac_res="none required"
25538  else
25539    ac_res=-l$ac_lib
25540    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25541  fi
25542  if ac_fn_c_try_link "$LINENO"; then :
25543  ac_cv_search_crypt=$ac_res
25544fi
25545rm -f core conftest.err conftest.$ac_objext \
25546    conftest$ac_exeext
25547  if test "${ac_cv_search_crypt+set}" = set; then :
25548  break
25549fi
25550done
25551if test "${ac_cv_search_crypt+set}" = set; then :
25552
25553else
25554  ac_cv_search_crypt=no
25555fi
25556rm conftest.$ac_ext
25557LIBS=$ac_func_search_save_LIBS
25558fi
25559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
25560$as_echo "$ac_cv_search_crypt" >&6; }
25561ac_res=$ac_cv_search_crypt
25562if test "$ac_res" != no; then :
25563  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25564
25565fi
25566
25567      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltruerand" >&5
25568$as_echo_n "checking for main in -ltruerand... " >&6; }
25569if test "${ac_cv_lib_truerand_main+set}" = set; then :
25570  $as_echo_n "(cached) " >&6
25571else
25572  ac_check_lib_save_LIBS=$LIBS
25573LIBS="-ltruerand  $LIBS"
25574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25575/* end confdefs.h.  */
25576
25577
25578int
25579main ()
25580{
25581return main ();
25582  ;
25583  return 0;
25584}
25585_ACEOF
25586if ac_fn_c_try_link "$LINENO"; then :
25587  ac_cv_lib_truerand_main=yes
25588else
25589  ac_cv_lib_truerand_main=no
25590fi
25591rm -f core conftest.err conftest.$ac_objext \
25592    conftest$ac_exeext conftest.$ac_ext
25593LIBS=$ac_check_lib_save_LIBS
25594fi
25595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_truerand_main" >&5
25596$as_echo "$ac_cv_lib_truerand_main" >&6; }
25597if test "x$ac_cv_lib_truerand_main" = x""yes; then :
25598  cat >>confdefs.h <<_ACEOF
25599#define HAVE_LIBTRUERAND 1
25600_ACEOF
25601
25602  LIBS="-ltruerand $LIBS"
25603
25604fi
25605
25606      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing modf" >&5
25607$as_echo_n "checking for library containing modf... " >&6; }
25608if test "${ac_cv_search_modf+set}" = set; then :
25609  $as_echo_n "(cached) " >&6
25610else
25611  ac_func_search_save_LIBS=$LIBS
25612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25613/* end confdefs.h.  */
25614
25615/* Override any GCC internal prototype to avoid an error.
25616   Use char because int might match the return type of a GCC
25617   builtin and then its argument prototype would still apply.  */
25618#ifdef __cplusplus
25619extern "C"
25620#endif
25621char modf ();
25622int
25623main ()
25624{
25625return modf ();
25626  ;
25627  return 0;
25628}
25629_ACEOF
25630for ac_lib in '' m; do
25631  if test -z "$ac_lib"; then
25632    ac_res="none required"
25633  else
25634    ac_res=-l$ac_lib
25635    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25636  fi
25637  if ac_fn_c_try_link "$LINENO"; then :
25638  ac_cv_search_modf=$ac_res
25639fi
25640rm -f core conftest.err conftest.$ac_objext \
25641    conftest$ac_exeext
25642  if test "${ac_cv_search_modf+set}" = set; then :
25643  break
25644fi
25645done
25646if test "${ac_cv_search_modf+set}" = set; then :
25647
25648else
25649  ac_cv_search_modf=no
25650fi
25651rm conftest.$ac_ext
25652LIBS=$ac_func_search_save_LIBS
25653fi
25654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_modf" >&5
25655$as_echo "$ac_cv_search_modf" >&6; }
25656ac_res=$ac_cv_search_modf
25657if test "$ac_res" != no; then :
25658  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25659
25660fi
25661
25662       ;;
25663esac
25664
25665echo "${nl}Checking for Threads..."
25666
25667if test -z "$enable_threads"; then
25668	# Check whether --enable-threads was given.
25669if test "${enable_threads+set}" = set; then :
25670  enableval=$enable_threads;  enable_threads=$enableval
25671else
25672
25673  if test "$GCC" = "yes"; then
25674    SAVE_FL="$CPPFLAGS"
25675    CPPFLAGS="$CPPFLAGS -w"
25676    for ac_header in pthread.h
25677do :
25678  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
25679if test "x$ac_cv_header_pthread_h" = x""yes; then :
25680  cat >>confdefs.h <<_ACEOF
25681#define HAVE_PTHREAD_H 1
25682_ACEOF
25683   enable_threads="pthread"
25684else
25685    enable_threads="no"
25686fi
25687
25688done
25689
25690    CPPFLAGS="$SAVE_FL"
25691  else
25692    for ac_header in pthread.h
25693do :
25694  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
25695if test "x$ac_cv_header_pthread_h" = x""yes; then :
25696  cat >>confdefs.h <<_ACEOF
25697#define HAVE_PTHREAD_H 1
25698_ACEOF
25699   enable_threads="pthread"
25700else
25701    enable_threads="no"
25702fi
25703
25704done
25705
25706  fi
25707
25708fi
25709
25710fi
25711
25712if test "$enable_threads" = "no"; then
25713    threads="0"
25714    pthreadh="0"
25715    pthreadser="0"
25716else
25717    if test "$enable_threads" = "pthread"; then
25718# We have specified pthreads for our threading library, just make sure
25719# that we have everything we need
25720
25721  apr_pthsv_CFLAGS="$CFLAGS"
25722  apr_pthsv_LIBS="$LIBS"
25723
25724
25725
25726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
25727$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
25728if test "${apr_cv_pthreads_cflags+set}" = set; then :
25729  $as_echo_n "(cached) " >&6
25730else
25731  apr_ptc_cflags=$CFLAGS
25732 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
25733    CFLAGS=$apr_ptc_cflags
25734    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
25735
25736if test "$cross_compiling" = yes; then :
25737  apr_p_t_r=no
25738else
25739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25740/* end confdefs.h.  */
25741
25742#include <pthread.h>
25743#include <stddef.h>
25744
25745void *thread_routine(void *data) {
25746    return data;
25747}
25748
25749int main() {
25750    pthread_t thd;
25751    pthread_mutexattr_t mattr;
25752    pthread_once_t once_init = PTHREAD_ONCE_INIT;
25753    int data = 1;
25754    pthread_mutexattr_init(&mattr);
25755    return pthread_create(&thd, NULL, thread_routine, &data);
25756}
25757_ACEOF
25758if ac_fn_c_try_run "$LINENO"; then :
25759  apr_p_t_r=yes
25760else
25761  apr_p_t_r=no
25762fi
25763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25764  conftest.$ac_objext conftest.beam conftest.$ac_ext
25765fi
25766
25767
25768if test $apr_p_t_r = yes; then
25769
25770      apr_cv_pthreads_cflags="$flag"
25771      break
25772
25773fi
25774
25775
25776 done
25777 CFLAGS=$apr_ptc_cflags
25778
25779fi
25780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
25781$as_echo "$apr_cv_pthreads_cflags" >&6; }
25782
25783if test -n "$apr_cv_pthreads_cflags"; then
25784   pthreads_working=yes
25785   if test "x$apr_cv_pthreads_cflags" != "xnone"; then
25786
25787  if test "x$CFLAGS" = "x"; then
25788    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"$apr_cv_pthreads_cflags\""
25789    CFLAGS="$apr_cv_pthreads_cflags"
25790  else
25791    apr_addto_bugger="$apr_cv_pthreads_cflags"
25792    for i in $apr_addto_bugger; do
25793      apr_addto_duplicate="0"
25794      for j in $CFLAGS; do
25795        if test "x$i" = "x$j"; then
25796          apr_addto_duplicate="1"
25797          break
25798        fi
25799      done
25800      if test $apr_addto_duplicate = "0"; then
25801        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
25802        CFLAGS="$CFLAGS $i"
25803      fi
25804    done
25805  fi
25806
25807   fi
25808fi
25809
25810# The CFLAGS may or may not be sufficient to ensure that libapr
25811# depends on the pthreads library: some versions of libtool
25812# drop -pthread when passed on the link line; some versions of
25813# gcc ignore -pthread when linking a shared object.  So always
25814# try and add the relevant library to LIBS too.
25815
25816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
25817$as_echo_n "checking for LIBS needed for pthreads... " >&6; }
25818if test "${apr_cv_pthreads_lib+set}" = set; then :
25819  $as_echo_n "(cached) " >&6
25820else
25821
25822  apr_ptc_libs=$LIBS
25823  for lib in -lpthread -lpthreads -lc_r; do
25824    LIBS="$apr_ptc_libs $lib"
25825
25826if test "$cross_compiling" = yes; then :
25827  apr_p_t_r=no
25828else
25829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25830/* end confdefs.h.  */
25831
25832#include <pthread.h>
25833#include <stddef.h>
25834
25835void *thread_routine(void *data) {
25836    return data;
25837}
25838
25839int main() {
25840    pthread_t thd;
25841    pthread_mutexattr_t mattr;
25842    pthread_once_t once_init = PTHREAD_ONCE_INIT;
25843    int data = 1;
25844    pthread_mutexattr_init(&mattr);
25845    return pthread_create(&thd, NULL, thread_routine, &data);
25846}
25847_ACEOF
25848if ac_fn_c_try_run "$LINENO"; then :
25849  apr_p_t_r=yes
25850else
25851  apr_p_t_r=no
25852fi
25853rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25854  conftest.$ac_objext conftest.beam conftest.$ac_ext
25855fi
25856
25857
25858if test $apr_p_t_r = yes; then
25859
25860      apr_cv_pthreads_lib=$lib
25861      break
25862
25863fi
25864
25865
25866  done
25867  LIBS=$apr_ptc_libs
25868
25869fi
25870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
25871$as_echo "$apr_cv_pthreads_lib" >&6; }
25872
25873if test -n "$apr_cv_pthreads_lib"; then
25874   pthreads_working=yes
25875
25876  if test "x$LIBS" = "x"; then
25877    test "x$silent" != "xyes" && echo "  setting LIBS to \"$apr_cv_pthreads_lib\""
25878    LIBS="$apr_cv_pthreads_lib"
25879  else
25880    apr_addto_bugger="$apr_cv_pthreads_lib"
25881    for i in $apr_addto_bugger; do
25882      apr_addto_duplicate="0"
25883      for j in $LIBS; do
25884        if test "x$i" = "x$j"; then
25885          apr_addto_duplicate="1"
25886          break
25887        fi
25888      done
25889      if test $apr_addto_duplicate = "0"; then
25890        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
25891        LIBS="$LIBS $i"
25892      fi
25893    done
25894  fi
25895
25896fi
25897
25898if test "$pthreads_working" = "yes"; then
25899  threads_result="POSIX Threads found"
25900else
25901  threads_result="POSIX Threads not found"
25902fi
25903
25904
25905  if test "$GCC" = "yes"; then
25906    SAVE_FL="$CPPFLAGS"
25907    CPPFLAGS="$CPPFLAGS -w"
25908    for ac_header in pthread.h
25909do :
25910  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
25911if test "x$ac_cv_header_pthread_h" = x""yes; then :
25912  cat >>confdefs.h <<_ACEOF
25913#define HAVE_PTHREAD_H 1
25914_ACEOF
25915
25916          threads="1"
25917          pthreadh="1"
25918          pthreadser="1"
25919else
25920
25921          threads="0"
25922          pthreadh="0"
25923          pthreadser="0"
25924
25925  CFLAGS="$apr_pthsv_CFLAGS"
25926  LIBS="$apr_pthsv_LIBS"
25927
25928fi
25929
25930done
25931
25932    CPPFLAGS="$SAVE_FL"
25933  else
25934    for ac_header in pthread.h
25935do :
25936  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
25937if test "x$ac_cv_header_pthread_h" = x""yes; then :
25938  cat >>confdefs.h <<_ACEOF
25939#define HAVE_PTHREAD_H 1
25940_ACEOF
25941
25942          threads="1"
25943          pthreadh="1"
25944          pthreadser="1"
25945else
25946
25947          threads="0"
25948          pthreadh="0"
25949          pthreadser="0"
25950
25951  CFLAGS="$apr_pthsv_CFLAGS"
25952  LIBS="$apr_pthsv_LIBS"
25953
25954fi
25955
25956done
25957
25958  fi
25959
25960    elif test "$enable_threads" = "system_threads"; then
25961        threads="1"
25962        pthreadh="0"
25963        pthreadser="0"
25964    else
25965# We basically specified that we wanted threads, but not how to implement
25966# them.  In this case, just look for pthreads.  In the future, we can check
25967# for other threading libraries as well.
25968
25969  apr_pthsv_CFLAGS="$CFLAGS"
25970  apr_pthsv_LIBS="$LIBS"
25971
25972
25973
25974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
25975$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
25976if test "${apr_cv_pthreads_cflags+set}" = set; then :
25977  $as_echo_n "(cached) " >&6
25978else
25979  apr_ptc_cflags=$CFLAGS
25980 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
25981    CFLAGS=$apr_ptc_cflags
25982    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
25983
25984if test "$cross_compiling" = yes; then :
25985  apr_p_t_r=no
25986else
25987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25988/* end confdefs.h.  */
25989
25990#include <pthread.h>
25991#include <stddef.h>
25992
25993void *thread_routine(void *data) {
25994    return data;
25995}
25996
25997int main() {
25998    pthread_t thd;
25999    pthread_mutexattr_t mattr;
26000    pthread_once_t once_init = PTHREAD_ONCE_INIT;
26001    int data = 1;
26002    pthread_mutexattr_init(&mattr);
26003    return pthread_create(&thd, NULL, thread_routine, &data);
26004}
26005_ACEOF
26006if ac_fn_c_try_run "$LINENO"; then :
26007  apr_p_t_r=yes
26008else
26009  apr_p_t_r=no
26010fi
26011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26012  conftest.$ac_objext conftest.beam conftest.$ac_ext
26013fi
26014
26015
26016if test $apr_p_t_r = yes; then
26017
26018      apr_cv_pthreads_cflags="$flag"
26019      break
26020
26021fi
26022
26023
26024 done
26025 CFLAGS=$apr_ptc_cflags
26026
26027fi
26028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
26029$as_echo "$apr_cv_pthreads_cflags" >&6; }
26030
26031if test -n "$apr_cv_pthreads_cflags"; then
26032   pthreads_working=yes
26033   if test "x$apr_cv_pthreads_cflags" != "xnone"; then
26034
26035  if test "x$CFLAGS" = "x"; then
26036    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"$apr_cv_pthreads_cflags\""
26037    CFLAGS="$apr_cv_pthreads_cflags"
26038  else
26039    apr_addto_bugger="$apr_cv_pthreads_cflags"
26040    for i in $apr_addto_bugger; do
26041      apr_addto_duplicate="0"
26042      for j in $CFLAGS; do
26043        if test "x$i" = "x$j"; then
26044          apr_addto_duplicate="1"
26045          break
26046        fi
26047      done
26048      if test $apr_addto_duplicate = "0"; then
26049        test "x$silent" != "xyes" && echo "  adding \"$i\" to CFLAGS"
26050        CFLAGS="$CFLAGS $i"
26051      fi
26052    done
26053  fi
26054
26055   fi
26056fi
26057
26058# The CFLAGS may or may not be sufficient to ensure that libapr
26059# depends on the pthreads library: some versions of libtool
26060# drop -pthread when passed on the link line; some versions of
26061# gcc ignore -pthread when linking a shared object.  So always
26062# try and add the relevant library to LIBS too.
26063
26064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
26065$as_echo_n "checking for LIBS needed for pthreads... " >&6; }
26066if test "${apr_cv_pthreads_lib+set}" = set; then :
26067  $as_echo_n "(cached) " >&6
26068else
26069
26070  apr_ptc_libs=$LIBS
26071  for lib in -lpthread -lpthreads -lc_r; do
26072    LIBS="$apr_ptc_libs $lib"
26073
26074if test "$cross_compiling" = yes; then :
26075  apr_p_t_r=no
26076else
26077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26078/* end confdefs.h.  */
26079
26080#include <pthread.h>
26081#include <stddef.h>
26082
26083void *thread_routine(void *data) {
26084    return data;
26085}
26086
26087int main() {
26088    pthread_t thd;
26089    pthread_mutexattr_t mattr;
26090    pthread_once_t once_init = PTHREAD_ONCE_INIT;
26091    int data = 1;
26092    pthread_mutexattr_init(&mattr);
26093    return pthread_create(&thd, NULL, thread_routine, &data);
26094}
26095_ACEOF
26096if ac_fn_c_try_run "$LINENO"; then :
26097  apr_p_t_r=yes
26098else
26099  apr_p_t_r=no
26100fi
26101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26102  conftest.$ac_objext conftest.beam conftest.$ac_ext
26103fi
26104
26105
26106if test $apr_p_t_r = yes; then
26107
26108      apr_cv_pthreads_lib=$lib
26109      break
26110
26111fi
26112
26113
26114  done
26115  LIBS=$apr_ptc_libs
26116
26117fi
26118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
26119$as_echo "$apr_cv_pthreads_lib" >&6; }
26120
26121if test -n "$apr_cv_pthreads_lib"; then
26122   pthreads_working=yes
26123
26124  if test "x$LIBS" = "x"; then
26125    test "x$silent" != "xyes" && echo "  setting LIBS to \"$apr_cv_pthreads_lib\""
26126    LIBS="$apr_cv_pthreads_lib"
26127  else
26128    apr_addto_bugger="$apr_cv_pthreads_lib"
26129    for i in $apr_addto_bugger; do
26130      apr_addto_duplicate="0"
26131      for j in $LIBS; do
26132        if test "x$i" = "x$j"; then
26133          apr_addto_duplicate="1"
26134          break
26135        fi
26136      done
26137      if test $apr_addto_duplicate = "0"; then
26138        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
26139        LIBS="$LIBS $i"
26140      fi
26141    done
26142  fi
26143
26144fi
26145
26146if test "$pthreads_working" = "yes"; then
26147  threads_result="POSIX Threads found"
26148else
26149  threads_result="POSIX Threads not found"
26150fi
26151
26152
26153  if test "$GCC" = "yes"; then
26154    SAVE_FL="$CPPFLAGS"
26155    CPPFLAGS="$CPPFLAGS -w"
26156    for ac_header in pthread.h
26157do :
26158  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
26159if test "x$ac_cv_header_pthread_h" = x""yes; then :
26160  cat >>confdefs.h <<_ACEOF
26161#define HAVE_PTHREAD_H 1
26162_ACEOF
26163
26164          threads="1"
26165          pthreadh="1"
26166          pthreadser="1"
26167else
26168
26169          threads="0"
26170          pthreadser="0"
26171          pthreadh="0"
26172
26173  CFLAGS="$apr_pthsv_CFLAGS"
26174  LIBS="$apr_pthsv_LIBS"
26175
26176fi
26177
26178done
26179
26180    CPPFLAGS="$SAVE_FL"
26181  else
26182    for ac_header in pthread.h
26183do :
26184  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
26185if test "x$ac_cv_header_pthread_h" = x""yes; then :
26186  cat >>confdefs.h <<_ACEOF
26187#define HAVE_PTHREAD_H 1
26188_ACEOF
26189
26190          threads="1"
26191          pthreadh="1"
26192          pthreadser="1"
26193else
26194
26195          threads="0"
26196          pthreadser="0"
26197          pthreadh="0"
26198
26199  CFLAGS="$apr_pthsv_CFLAGS"
26200  LIBS="$apr_pthsv_LIBS"
26201
26202fi
26203
26204done
26205
26206  fi
26207
26208    fi
26209    if test "$pthreadh" = "1"; then
26210
26211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific takes two arguments" >&5
26212$as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; }
26213if test "${ac_cv_pthread_getspecific_two_args+set}" = set; then :
26214  $as_echo_n "(cached) " >&6
26215else
26216
26217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26218/* end confdefs.h.  */
26219
26220#include <pthread.h>
26221
26222int
26223main ()
26224{
26225
26226pthread_key_t key;
26227void *tmp;
26228pthread_getspecific(key,&tmp);
26229
26230  ;
26231  return 0;
26232}
26233_ACEOF
26234if ac_fn_c_try_compile "$LINENO"; then :
26235
26236    ac_cv_pthread_getspecific_two_args=yes
26237
26238else
26239
26240    ac_cv_pthread_getspecific_two_args=no
26241
26242fi
26243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26244
26245fi
26246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_getspecific_two_args" >&5
26247$as_echo "$ac_cv_pthread_getspecific_two_args" >&6; }
26248
26249if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
26250
26251$as_echo "#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1" >>confdefs.h
26252
26253fi
26254
26255
26256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getdetachstate takes one argument" >&5
26257$as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; }
26258if test "${ac_cv_pthread_attr_getdetachstate_one_arg+set}" = set; then :
26259  $as_echo_n "(cached) " >&6
26260else
26261
26262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26263/* end confdefs.h.  */
26264
26265#include <pthread.h>
26266
26267int
26268main ()
26269{
26270
26271pthread_attr_t *attr;
26272pthread_attr_getdetachstate(attr);
26273
26274  ;
26275  return 0;
26276}
26277_ACEOF
26278if ac_fn_c_try_compile "$LINENO"; then :
26279
26280    ac_cv_pthread_attr_getdetachstate_one_arg=yes
26281
26282else
26283
26284    ac_cv_pthread_attr_getdetachstate_one_arg=no
26285
26286fi
26287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26288
26289fi
26290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
26291$as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; }
26292
26293if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
26294
26295$as_echo "#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1" >>confdefs.h
26296
26297fi
26298
26299
26300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex support" >&5
26301$as_echo_n "checking for recursive mutex support... " >&6; }
26302if test "${apr_cv_mutex_recursive+set}" = set; then :
26303  $as_echo_n "(cached) " >&6
26304else
26305  if test "$cross_compiling" = yes; then :
26306  apr_cv_mutex_recursive=no
26307else
26308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26309/* end confdefs.h.  */
26310#include <sys/types.h>
26311#include <pthread.h>
26312#include <stdlib.h>
26313
26314int main() {
26315    pthread_mutexattr_t attr;
26316    pthread_mutex_t m;
26317
26318    exit (pthread_mutexattr_init(&attr)
26319          || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
26320          || pthread_mutex_init(&m, &attr));
26321}
26322_ACEOF
26323if ac_fn_c_try_run "$LINENO"; then :
26324  apr_cv_mutex_recursive=yes
26325else
26326  apr_cv_mutex_recursive=no
26327fi
26328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26329  conftest.$ac_objext conftest.beam conftest.$ac_ext
26330fi
26331
26332fi
26333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_recursive" >&5
26334$as_echo "$apr_cv_mutex_recursive" >&6; }
26335
26336if test "$apr_cv_mutex_recursive" = "yes"; then
26337
26338$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
26339
26340fi
26341
26342        for ac_func in pthread_key_delete pthread_rwlock_init \
26343                        pthread_attr_setguardsize pthread_yield
26344do :
26345  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26346ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26347eval as_val=\$$as_ac_var
26348   if test "x$as_val" = x""yes; then :
26349  cat >>confdefs.h <<_ACEOF
26350#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26351_ACEOF
26352
26353fi
26354done
26355
26356
26357        if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
26358                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
26359$as_echo_n "checking for pthread_rwlock_t... " >&6; }
26360if test "${apr_cv_type_rwlock_t+set}" = set; then :
26361  $as_echo_n "(cached) " >&6
26362else
26363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26364/* end confdefs.h.  */
26365#include <sys/types.h>
26366#include <pthread.h>
26367int
26368main ()
26369{
26370pthread_rwlock_t *rwlock;
26371  ;
26372  return 0;
26373}
26374_ACEOF
26375if ac_fn_c_try_compile "$LINENO"; then :
26376  apr_cv_type_rwlock_t=yes
26377else
26378  apr_cv_type_rwlock_t=no
26379fi
26380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26381fi
26382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_type_rwlock_t" >&5
26383$as_echo "$apr_cv_type_rwlock_t" >&6; }
26384            if test "$apr_cv_type_rwlock_t" = "yes"; then
26385
26386$as_echo "#define HAVE_PTHREAD_RWLOCKS 1" >>confdefs.h
26387
26388            fi
26389        fi
26390
26391        if test "$ac_cv_func_pthread_yield" = "no"; then
26392                        for ac_header in sched.h
26393do :
26394  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
26395if test "x$ac_cv_header_sched_h" = x""yes; then :
26396  cat >>confdefs.h <<_ACEOF
26397#define HAVE_SCHED_H 1
26398_ACEOF
26399
26400fi
26401
26402done
26403
26404            for ac_func in sched_yield
26405do :
26406  ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
26407if test "x$ac_cv_func_sched_yield" = x""yes; then :
26408  cat >>confdefs.h <<_ACEOF
26409#define HAVE_SCHED_YIELD 1
26410_ACEOF
26411
26412fi
26413done
26414
26415        fi
26416    fi
26417fi
26418
26419ac_cv_define_READDIR_IS_THREAD_SAFE=no
26420ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no
26421ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no
26422ac_cv_define_GETSERVBYNAME_IS_THREAD_SAFE=no
26423if test "$threads" = "1"; then
26424    echo "APR will use threads"
26425    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir in -lc_r" >&5
26426$as_echo_n "checking for readdir in -lc_r... " >&6; }
26427if test "${ac_cv_lib_c_r_readdir+set}" = set; then :
26428  $as_echo_n "(cached) " >&6
26429else
26430  ac_check_lib_save_LIBS=$LIBS
26431LIBS="-lc_r  $LIBS"
26432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26433/* end confdefs.h.  */
26434
26435/* Override any GCC internal prototype to avoid an error.
26436   Use char because int might match the return type of a GCC
26437   builtin and then its argument prototype would still apply.  */
26438#ifdef __cplusplus
26439extern "C"
26440#endif
26441char readdir ();
26442int
26443main ()
26444{
26445return readdir ();
26446  ;
26447  return 0;
26448}
26449_ACEOF
26450if ac_fn_c_try_link "$LINENO"; then :
26451  ac_cv_lib_c_r_readdir=yes
26452else
26453  ac_cv_lib_c_r_readdir=no
26454fi
26455rm -f core conftest.err conftest.$ac_objext \
26456    conftest$ac_exeext conftest.$ac_ext
26457LIBS=$ac_check_lib_save_LIBS
26458fi
26459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_readdir" >&5
26460$as_echo "$ac_cv_lib_c_r_readdir" >&6; }
26461if test "x$ac_cv_lib_c_r_readdir" = x""yes; then :
26462
26463$as_echo "#define READDIR_IS_THREAD_SAFE 1" >>confdefs.h
26464
26465fi
26466
26467    if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
26468        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc_r" >&5
26469$as_echo_n "checking for gethostbyname in -lc_r... " >&6; }
26470if test "${ac_cv_lib_c_r_gethostbyname+set}" = set; then :
26471  $as_echo_n "(cached) " >&6
26472else
26473  ac_check_lib_save_LIBS=$LIBS
26474LIBS="-lc_r  $LIBS"
26475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26476/* end confdefs.h.  */
26477
26478/* Override any GCC internal prototype to avoid an error.
26479   Use char because int might match the return type of a GCC
26480   builtin and then its argument prototype would still apply.  */
26481#ifdef __cplusplus
26482extern "C"
26483#endif
26484char gethostbyname ();
26485int
26486main ()
26487{
26488return gethostbyname ();
26489  ;
26490  return 0;
26491}
26492_ACEOF
26493if ac_fn_c_try_link "$LINENO"; then :
26494  ac_cv_lib_c_r_gethostbyname=yes
26495else
26496  ac_cv_lib_c_r_gethostbyname=no
26497fi
26498rm -f core conftest.err conftest.$ac_objext \
26499    conftest$ac_exeext conftest.$ac_ext
26500LIBS=$ac_check_lib_save_LIBS
26501fi
26502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyname" >&5
26503$as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; }
26504if test "x$ac_cv_lib_c_r_gethostbyname" = x""yes; then :
26505  apr_gethostbyname_is_thread_safe=yes
26506fi
26507
26508    fi
26509    if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
26510
26511$as_echo "#define GETHOSTBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
26512
26513    fi
26514    if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
26515        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lc_r" >&5
26516$as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; }
26517if test "${ac_cv_lib_c_r_gethostbyaddr+set}" = set; then :
26518  $as_echo_n "(cached) " >&6
26519else
26520  ac_check_lib_save_LIBS=$LIBS
26521LIBS="-lc_r  $LIBS"
26522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26523/* end confdefs.h.  */
26524
26525/* Override any GCC internal prototype to avoid an error.
26526   Use char because int might match the return type of a GCC
26527   builtin and then its argument prototype would still apply.  */
26528#ifdef __cplusplus
26529extern "C"
26530#endif
26531char gethostbyaddr ();
26532int
26533main ()
26534{
26535return gethostbyaddr ();
26536  ;
26537  return 0;
26538}
26539_ACEOF
26540if ac_fn_c_try_link "$LINENO"; then :
26541  ac_cv_lib_c_r_gethostbyaddr=yes
26542else
26543  ac_cv_lib_c_r_gethostbyaddr=no
26544fi
26545rm -f core conftest.err conftest.$ac_objext \
26546    conftest$ac_exeext conftest.$ac_ext
26547LIBS=$ac_check_lib_save_LIBS
26548fi
26549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
26550$as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; }
26551if test "x$ac_cv_lib_c_r_gethostbyaddr" = x""yes; then :
26552  apr_gethostbyaddr_is_thread_safe=yes
26553fi
26554
26555    fi
26556    if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
26557
26558$as_echo "#define GETHOSTBYADDR_IS_THREAD_SAFE 1" >>confdefs.h
26559
26560    fi
26561    if test "x$apr_getservbyname_is_thread_safe" = "x"; then
26562        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in -lc_r" >&5
26563$as_echo_n "checking for getservbyname in -lc_r... " >&6; }
26564if test "${ac_cv_lib_c_r_getservbyname+set}" = set; then :
26565  $as_echo_n "(cached) " >&6
26566else
26567  ac_check_lib_save_LIBS=$LIBS
26568LIBS="-lc_r  $LIBS"
26569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26570/* end confdefs.h.  */
26571
26572/* Override any GCC internal prototype to avoid an error.
26573   Use char because int might match the return type of a GCC
26574   builtin and then its argument prototype would still apply.  */
26575#ifdef __cplusplus
26576extern "C"
26577#endif
26578char getservbyname ();
26579int
26580main ()
26581{
26582return getservbyname ();
26583  ;
26584  return 0;
26585}
26586_ACEOF
26587if ac_fn_c_try_link "$LINENO"; then :
26588  ac_cv_lib_c_r_getservbyname=yes
26589else
26590  ac_cv_lib_c_r_getservbyname=no
26591fi
26592rm -f core conftest.err conftest.$ac_objext \
26593    conftest$ac_exeext conftest.$ac_ext
26594LIBS=$ac_check_lib_save_LIBS
26595fi
26596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_getservbyname" >&5
26597$as_echo "$ac_cv_lib_c_r_getservbyname" >&6; }
26598if test "x$ac_cv_lib_c_r_getservbyname" = x""yes; then :
26599  apr_getservbyname_is_thread_safe=yes
26600fi
26601
26602    fi
26603    if test "$apr_getservbyname_is_thread_safe" = "yes"; then
26604
26605$as_echo "#define GETSERVBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
26606
26607    fi
26608    for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r
26609do :
26610  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26611ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26612eval as_val=\$$as_ac_var
26613   if test "x$as_val" = x""yes; then :
26614  cat >>confdefs.h <<_ACEOF
26615#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26616_ACEOF
26617
26618fi
26619done
26620
26621else
26622    echo "APR will be non-threaded"
26623fi
26624
26625
26626# Check whether --with-efence was given.
26627if test "${with_efence+set}" = set; then :
26628  withval=$with_efence;  apr_efence_dir="$withval"
26629    if test "$apr_efence_dir" != "yes"; then
26630
26631  if test "x$LDFLAGS" = "x"; then
26632    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"-L$apr_efence_dir/lib\""
26633    LDFLAGS="-L$apr_efence_dir/lib"
26634  else
26635    apr_addto_bugger="-L$apr_efence_dir/lib"
26636    for i in $apr_addto_bugger; do
26637      apr_addto_duplicate="0"
26638      for j in $LDFLAGS; do
26639        if test "x$i" = "x$j"; then
26640          apr_addto_duplicate="1"
26641          break
26642        fi
26643      done
26644      if test $apr_addto_duplicate = "0"; then
26645        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
26646        LDFLAGS="$LDFLAGS $i"
26647      fi
26648    done
26649  fi
26650
26651      if test "x$apr_platform_runtime_link_flag" != "x"; then
26652
26653  if test "x$LDFLAGS" = "x"; then
26654    test "x$silent" != "xyes" && echo "  setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\""
26655    LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
26656  else
26657    apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
26658    for i in $apr_addto_bugger; do
26659      apr_addto_duplicate="0"
26660      for j in $LDFLAGS; do
26661        if test "x$i" = "x$j"; then
26662          apr_addto_duplicate="1"
26663          break
26664        fi
26665      done
26666      if test $apr_addto_duplicate = "0"; then
26667        test "x$silent" != "xyes" && echo "  adding \"$i\" to LDFLAGS"
26668        LDFLAGS="$LDFLAGS $i"
26669      fi
26670    done
26671  fi
26672
26673      fi
26674    fi
26675    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
26676$as_echo_n "checking for malloc in -lefence... " >&6; }
26677if test "${ac_cv_lib_efence_malloc+set}" = set; then :
26678  $as_echo_n "(cached) " >&6
26679else
26680  ac_check_lib_save_LIBS=$LIBS
26681LIBS="-lefence  $LIBS"
26682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26683/* end confdefs.h.  */
26684
26685/* Override any GCC internal prototype to avoid an error.
26686   Use char because int might match the return type of a GCC
26687   builtin and then its argument prototype would still apply.  */
26688#ifdef __cplusplus
26689extern "C"
26690#endif
26691char malloc ();
26692int
26693main ()
26694{
26695return malloc ();
26696  ;
26697  return 0;
26698}
26699_ACEOF
26700if ac_fn_c_try_link "$LINENO"; then :
26701  ac_cv_lib_efence_malloc=yes
26702else
26703  ac_cv_lib_efence_malloc=no
26704fi
26705rm -f core conftest.err conftest.$ac_objext \
26706    conftest$ac_exeext conftest.$ac_ext
26707LIBS=$ac_check_lib_save_LIBS
26708fi
26709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
26710$as_echo "$ac_cv_lib_efence_malloc" >&6; }
26711if test "x$ac_cv_lib_efence_malloc" = x""yes; then :
26712
26713  if test "x$LIBS" = "x"; then
26714    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lefence\""
26715    LIBS="-lefence"
26716  else
26717    apr_addto_bugger="-lefence"
26718    for i in $apr_addto_bugger; do
26719      apr_addto_duplicate="0"
26720      for j in $LIBS; do
26721        if test "x$i" = "x$j"; then
26722          apr_addto_duplicate="1"
26723          break
26724        fi
26725      done
26726      if test $apr_addto_duplicate = "0"; then
26727        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
26728        LIBS="$LIBS $i"
26729      fi
26730    done
26731  fi
26732
26733else
26734   as_fn_error "Electric Fence requested but not detected" "$LINENO" 5
26735fi
26736
26737
26738fi
26739
26740
26741for ac_func in sigsuspend
26742do :
26743  ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
26744if test "x$ac_cv_func_sigsuspend" = x""yes; then :
26745  cat >>confdefs.h <<_ACEOF
26746#define HAVE_SIGSUSPEND 1
26747_ACEOF
26748  have_sigsuspend="1"
26749else
26750   have_sigsuspend="0"
26751fi
26752done
26753
26754for ac_func in sigwait
26755do :
26756  ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
26757if test "x$ac_cv_func_sigwait" = x""yes; then :
26758  cat >>confdefs.h <<_ACEOF
26759#define HAVE_SIGWAIT 1
26760_ACEOF
26761  have_sigwait="1"
26762else
26763   have_sigwait="0"
26764fi
26765done
26766
26767case $host in
26768    *alpha*-dec-osf* )
26769        have_sigwait="1"
26770        ;;
26771esac
26772
26773
26774
26775
26776
26777for ac_func in poll kqueue port_create
26778do :
26779  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26780ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26781eval as_val=\$$as_ac_var
26782   if test "x$as_val" = x""yes; then :
26783  cat >>confdefs.h <<_ACEOF
26784#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26785_ACEOF
26786
26787fi
26788done
26789
26790
26791# Check for the Linux epoll interface; epoll* may be available in libc
26792# but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
26793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support" >&5
26794$as_echo_n "checking for epoll support... " >&6; }
26795if test "${apr_cv_epoll+set}" = set; then :
26796  $as_echo_n "(cached) " >&6
26797else
26798  if test "$cross_compiling" = yes; then :
26799  apr_cv_epoll=no
26800else
26801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26802/* end confdefs.h.  */
26803
26804#include <sys/epoll.h>
26805#include <unistd.h>
26806
26807int main()
26808{
26809    return epoll_create(5) == -1;
26810}
26811_ACEOF
26812if ac_fn_c_try_run "$LINENO"; then :
26813  apr_cv_epoll=yes
26814else
26815  apr_cv_epoll=no
26816fi
26817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26818  conftest.$ac_objext conftest.beam conftest.$ac_ext
26819fi
26820
26821fi
26822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll" >&5
26823$as_echo "$apr_cv_epoll" >&6; }
26824
26825if test "$apr_cv_epoll" = "yes"; then
26826
26827$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
26828
26829fi
26830
26831# test for epoll_create1
26832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
26833$as_echo_n "checking for epoll_create1 support... " >&6; }
26834if test "${apr_cv_epoll_create1+set}" = set; then :
26835  $as_echo_n "(cached) " >&6
26836else
26837  if test "$cross_compiling" = yes; then :
26838  apr_cv_epoll_create1=no
26839else
26840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26841/* end confdefs.h.  */
26842
26843#include <sys/epoll.h>
26844#include <unistd.h>
26845
26846int main()
26847{
26848    return epoll_create1(0) == -1;
26849}
26850_ACEOF
26851if ac_fn_c_try_run "$LINENO"; then :
26852  apr_cv_epoll_create1=yes
26853else
26854  apr_cv_epoll_create1=no
26855fi
26856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26857  conftest.$ac_objext conftest.beam conftest.$ac_ext
26858fi
26859
26860fi
26861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
26862$as_echo "$apr_cv_epoll_create1" >&6; }
26863
26864if test "$apr_cv_epoll_create1" = "yes"; then
26865
26866$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
26867
26868fi
26869
26870# test for dup3
26871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
26872$as_echo_n "checking for dup3 support... " >&6; }
26873if test "${apr_cv_dup3+set}" = set; then :
26874  $as_echo_n "(cached) " >&6
26875else
26876  if test "$cross_compiling" = yes; then :
26877  apr_cv_dup3=no
26878else
26879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26880/* end confdefs.h.  */
26881
26882#include <unistd.h>
26883
26884int main()
26885{
26886    return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
26887}
26888_ACEOF
26889if ac_fn_c_try_run "$LINENO"; then :
26890  apr_cv_dup3=yes
26891else
26892  apr_cv_dup3=no
26893fi
26894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26895  conftest.$ac_objext conftest.beam conftest.$ac_ext
26896fi
26897
26898fi
26899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
26900$as_echo "$apr_cv_dup3" >&6; }
26901
26902if test "$apr_cv_dup3" = "yes"; then
26903
26904$as_echo "#define HAVE_DUP3 1" >>confdefs.h
26905
26906fi
26907
26908# test for accept4
26909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
26910$as_echo_n "checking for accept4 support... " >&6; }
26911if test "${apr_cv_accept4+set}" = set; then :
26912  $as_echo_n "(cached) " >&6
26913else
26914  if test "$cross_compiling" = yes; then :
26915  apr_cv_accept4=no
26916else
26917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26918/* end confdefs.h.  */
26919
26920#include <unistd.h>
26921#include <sys/types.h>
26922#include <sys/socket.h>
26923#include <sys/un.h>
26924#include <sys/wait.h>
26925#include <signal.h>
26926#include <errno.h>
26927
26928#define A4_SOCK "./apr_accept4_test_socket"
26929
26930int main()
26931{
26932    pid_t pid;
26933    int fd;
26934    struct sockaddr_un loc, rem;
26935    socklen_t rem_sz;
26936
26937    if ((pid = fork())) {
26938        int status;
26939
26940        unlink(A4_SOCK);
26941
26942        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
26943            goto cleanup_failure2;
26944
26945        loc.sun_family = AF_UNIX;
26946        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
26947
26948        if (bind(fd, (struct sockaddr *) &loc,
26949                 sizeof(struct sockaddr_un)) == -1)
26950            goto cleanup_failure;
26951
26952        if (listen(fd, 5) == -1)
26953            goto cleanup_failure;
26954
26955        rem_sz = sizeof(struct sockaddr_un);
26956        if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
26957            goto cleanup_failure;
26958        }
26959        else {
26960            close(fd);
26961            waitpid(pid, &status, 0);
26962            unlink(A4_SOCK);
26963            return 0;
26964        }
26965
26966cleanup_failure:
26967        close(fd);
26968cleanup_failure2:
26969        kill(pid, SIGKILL);
26970        waitpid(pid, &status, 0);
26971        unlink(A4_SOCK);
26972        return 1;
26973    }
26974    else {
26975        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
26976            return 1; /* this will be bad: we'll hang */
26977
26978        loc.sun_family = AF_UNIX;
26979        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
26980
26981        while(connect(fd, (struct sockaddr *) &loc,
26982                      sizeof(struct sockaddr_un)) == -1 &&
26983              (errno==ENOENT || errno==ECONNREFUSED))
26984            ;
26985
26986        close(fd);
26987        return 0;
26988    }
26989}
26990_ACEOF
26991if ac_fn_c_try_run "$LINENO"; then :
26992  apr_cv_accept4=yes
26993else
26994  apr_cv_accept4=no
26995fi
26996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26997  conftest.$ac_objext conftest.beam conftest.$ac_ext
26998fi
26999
27000fi
27001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
27002$as_echo "$apr_cv_accept4" >&6; }
27003
27004if test "$apr_cv_accept4" = "yes"; then
27005
27006$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
27007
27008fi
27009
27010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
27011$as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
27012if test "${apr_cv_sock_cloexec+set}" = set; then :
27013  $as_echo_n "(cached) " >&6
27014else
27015  if test "$cross_compiling" = yes; then :
27016  apr_cv_sock_cloexec=no
27017else
27018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27019/* end confdefs.h.  */
27020
27021#include <sys/types.h>
27022#include <sys/socket.h>
27023
27024int main()
27025{
27026    return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
27027}
27028_ACEOF
27029if ac_fn_c_try_run "$LINENO"; then :
27030  apr_cv_sock_cloexec=yes
27031else
27032  apr_cv_sock_cloexec=no
27033fi
27034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27035  conftest.$ac_objext conftest.beam conftest.$ac_ext
27036fi
27037
27038fi
27039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
27040$as_echo "$apr_cv_sock_cloexec" >&6; }
27041
27042if test "$apr_cv_sock_cloexec" = "yes"; then
27043
27044$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
27045
27046fi
27047
27048for ac_func in fdatasync
27049do :
27050  ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27051if test "x$ac_cv_func_fdatasync" = x""yes; then :
27052  cat >>confdefs.h <<_ACEOF
27053#define HAVE_FDATASYNC 1
27054_ACEOF
27055
27056fi
27057done
27058
27059
27060# test for epoll_create1
27061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
27062$as_echo_n "checking for epoll_create1 support... " >&6; }
27063if test "${apr_cv_epoll_create1+set}" = set; then :
27064  $as_echo_n "(cached) " >&6
27065else
27066  if test "$cross_compiling" = yes; then :
27067  apr_cv_epoll_create1=no
27068else
27069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27070/* end confdefs.h.  */
27071
27072#include <sys/epoll.h>
27073#include <unistd.h>
27074
27075int main()
27076{
27077    return epoll_create1(0) == -1;
27078}
27079_ACEOF
27080if ac_fn_c_try_run "$LINENO"; then :
27081  apr_cv_epoll_create1=yes
27082else
27083  apr_cv_epoll_create1=no
27084fi
27085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27086  conftest.$ac_objext conftest.beam conftest.$ac_ext
27087fi
27088
27089fi
27090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
27091$as_echo "$apr_cv_epoll_create1" >&6; }
27092
27093if test "$apr_cv_epoll_create1" = "yes"; then
27094
27095$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
27096
27097fi
27098
27099# test for dup3
27100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
27101$as_echo_n "checking for dup3 support... " >&6; }
27102if test "${apr_cv_dup3+set}" = set; then :
27103  $as_echo_n "(cached) " >&6
27104else
27105  if test "$cross_compiling" = yes; then :
27106  apr_cv_dup3=no
27107else
27108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27109/* end confdefs.h.  */
27110
27111#include <unistd.h>
27112
27113int main()
27114{
27115    return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
27116}
27117_ACEOF
27118if ac_fn_c_try_run "$LINENO"; then :
27119  apr_cv_dup3=yes
27120else
27121  apr_cv_dup3=no
27122fi
27123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27124  conftest.$ac_objext conftest.beam conftest.$ac_ext
27125fi
27126
27127fi
27128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
27129$as_echo "$apr_cv_dup3" >&6; }
27130
27131if test "$apr_cv_dup3" = "yes"; then
27132
27133$as_echo "#define HAVE_DUP3 1" >>confdefs.h
27134
27135fi
27136
27137# test for accept4
27138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
27139$as_echo_n "checking for accept4 support... " >&6; }
27140if test "${apr_cv_accept4+set}" = set; then :
27141  $as_echo_n "(cached) " >&6
27142else
27143  if test "$cross_compiling" = yes; then :
27144  apr_cv_accept4=no
27145else
27146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27147/* end confdefs.h.  */
27148
27149#include <unistd.h>
27150#include <sys/types.h>
27151#include <sys/socket.h>
27152#include <sys/un.h>
27153#include <sys/wait.h>
27154#include <signal.h>
27155#include <errno.h>
27156
27157#define A4_SOCK "./apr_accept4_test_socket"
27158
27159int main()
27160{
27161    pid_t pid;
27162    int fd;
27163    struct sockaddr_un loc, rem;
27164    socklen_t rem_sz;
27165
27166    if ((pid = fork())) {
27167        int status;
27168
27169        unlink(A4_SOCK);
27170
27171        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
27172            goto cleanup_failure2;
27173
27174        loc.sun_family = AF_UNIX;
27175        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
27176
27177        if (bind(fd, (struct sockaddr *) &loc,
27178                 sizeof(struct sockaddr_un)) == -1)
27179            goto cleanup_failure;
27180
27181        if (listen(fd, 5) == -1)
27182            goto cleanup_failure;
27183
27184        rem_sz = sizeof(struct sockaddr_un);
27185        if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
27186            goto cleanup_failure;
27187        }
27188        else {
27189            close(fd);
27190            waitpid(pid, &status, 0);
27191            unlink(A4_SOCK);
27192            return 0;
27193        }
27194
27195cleanup_failure:
27196        close(fd);
27197cleanup_failure2:
27198        kill(pid, SIGKILL);
27199        waitpid(pid, &status, 0);
27200        unlink(A4_SOCK);
27201        return 1;
27202    }
27203    else {
27204        if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
27205            return 1; /* this will be bad: we'll hang */
27206
27207        loc.sun_family = AF_UNIX;
27208        strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
27209
27210        while(connect(fd, (struct sockaddr *) &loc,
27211                      sizeof(struct sockaddr_un)) == -1 &&
27212              (errno==ENOENT || errno==ECONNREFUSED))
27213            ;
27214
27215        close(fd);
27216        return 0;
27217    }
27218}
27219_ACEOF
27220if ac_fn_c_try_run "$LINENO"; then :
27221  apr_cv_accept4=yes
27222else
27223  apr_cv_accept4=no
27224fi
27225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27226  conftest.$ac_objext conftest.beam conftest.$ac_ext
27227fi
27228
27229fi
27230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
27231$as_echo "$apr_cv_accept4" >&6; }
27232
27233if test "$apr_cv_accept4" = "yes"; then
27234
27235$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
27236
27237fi
27238
27239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
27240$as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
27241if test "${apr_cv_sock_cloexec+set}" = set; then :
27242  $as_echo_n "(cached) " >&6
27243else
27244  if test "$cross_compiling" = yes; then :
27245  apr_cv_sock_cloexec=no
27246else
27247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27248/* end confdefs.h.  */
27249
27250#include <sys/types.h>
27251#include <sys/socket.h>
27252
27253int main()
27254{
27255    return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
27256}
27257_ACEOF
27258if ac_fn_c_try_run "$LINENO"; then :
27259  apr_cv_sock_cloexec=yes
27260else
27261  apr_cv_sock_cloexec=no
27262fi
27263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27264  conftest.$ac_objext conftest.beam conftest.$ac_ext
27265fi
27266
27267fi
27268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
27269$as_echo "$apr_cv_sock_cloexec" >&6; }
27270
27271if test "$apr_cv_sock_cloexec" = "yes"; then
27272
27273$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
27274
27275fi
27276
27277for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
27278do :
27279  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27280ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27281eval as_val=\$$as_ac_var
27282   if test "x$as_val" = x""yes; then :
27283  cat >>confdefs.h <<_ACEOF
27284#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27285_ACEOF
27286
27287fi
27288done
27289
27290
27291echo "${nl}Checking for Shared Memory Support..."
27292
27293# The real-time POSIX extensions (e.g. shm_*, sem_*) may only
27294# be available if linking against librt.
27295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
27296$as_echo_n "checking for library containing shm_open... " >&6; }
27297if test "${ac_cv_search_shm_open+set}" = set; then :
27298  $as_echo_n "(cached) " >&6
27299else
27300  ac_func_search_save_LIBS=$LIBS
27301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27302/* end confdefs.h.  */
27303
27304/* Override any GCC internal prototype to avoid an error.
27305   Use char because int might match the return type of a GCC
27306   builtin and then its argument prototype would still apply.  */
27307#ifdef __cplusplus
27308extern "C"
27309#endif
27310char shm_open ();
27311int
27312main ()
27313{
27314return shm_open ();
27315  ;
27316  return 0;
27317}
27318_ACEOF
27319for ac_lib in '' rt; do
27320  if test -z "$ac_lib"; then
27321    ac_res="none required"
27322  else
27323    ac_res=-l$ac_lib
27324    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27325  fi
27326  if ac_fn_c_try_link "$LINENO"; then :
27327  ac_cv_search_shm_open=$ac_res
27328fi
27329rm -f core conftest.err conftest.$ac_objext \
27330    conftest$ac_exeext
27331  if test "${ac_cv_search_shm_open+set}" = set; then :
27332  break
27333fi
27334done
27335if test "${ac_cv_search_shm_open+set}" = set; then :
27336
27337else
27338  ac_cv_search_shm_open=no
27339fi
27340rm conftest.$ac_ext
27341LIBS=$ac_func_search_save_LIBS
27342fi
27343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
27344$as_echo "$ac_cv_search_shm_open" >&6; }
27345ac_res=$ac_cv_search_shm_open
27346if test "$ac_res" != no; then :
27347  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27348
27349fi
27350
27351
27352case $host in
27353 *-sysv*)
27354   ac_includes_default="$ac_includes_default
27355#if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
27356# include <sys/mutex.h>
27357#endif";;
27358esac
27359
27360for ac_header in sys/types.h sys/mman.h sys/ipc.h sys/mutex.h sys/shm.h sys/file.h kernel/OS.h os2.h windows.h
27361do :
27362  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27363ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27364eval as_val=\$$as_ac_Header
27365   if test "x$as_val" = x""yes; then :
27366  cat >>confdefs.h <<_ACEOF
27367#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27368_ACEOF
27369
27370fi
27371
27372done
27373
27374for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
27375                create_area
27376do :
27377  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27378ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27379eval as_val=\$$as_ac_var
27380   if test "x$as_val" = x""yes; then :
27381  cat >>confdefs.h <<_ACEOF
27382#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27383_ACEOF
27384
27385fi
27386done
27387
27388
27389
27390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON in sys/mman.h" >&5
27391$as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; }
27392if test "${ac_cv_define_MAP_ANON+set}" = set; then :
27393  $as_echo_n "(cached) " >&6
27394else
27395
27396    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27397/* end confdefs.h.  */
27398
27399#include <sys/mman.h>
27400#ifdef MAP_ANON
27401YES_IS_DEFINED
27402#endif
27403
27404_ACEOF
27405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27406  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27407  ac_cv_define_MAP_ANON=yes
27408else
27409  ac_cv_define_MAP_ANON=no
27410fi
27411rm -f conftest*
27412
27413
27414fi
27415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_MAP_ANON" >&5
27416$as_echo "$ac_cv_define_MAP_ANON" >&6; }
27417  if test "$ac_cv_define_MAP_ANON" = "yes"; then
27418
27419$as_echo "#define HAVE_MAP_ANON 1" >>confdefs.h
27420
27421  fi
27422
27423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
27424$as_echo_n "checking for /dev/zero... " >&6; }
27425if test "${ac_cv_file__dev_zero+set}" = set; then :
27426  $as_echo_n "(cached) " >&6
27427else
27428  test "$cross_compiling" = yes &&
27429  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
27430if test -r "/dev/zero"; then
27431  ac_cv_file__dev_zero=yes
27432else
27433  ac_cv_file__dev_zero=no
27434fi
27435fi
27436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
27437$as_echo "$ac_cv_file__dev_zero" >&6; }
27438if test "x$ac_cv_file__dev_zero" = x""yes; then :
27439
27440fi
27441
27442
27443# Not all systems can mmap /dev/zero (such as HP-UX).  Check for that.
27444if test "$ac_cv_func_mmap" = "yes" &&
27445   test "$ac_cv_file__dev_zero" = "yes"; then
27446    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap that can map /dev/zero" >&5
27447$as_echo_n "checking for mmap that can map /dev/zero... " >&6; }
27448    if test "$cross_compiling" = yes; then :
27449  ac_cv_file__dev_zero=no
27450else
27451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27452/* end confdefs.h.  */
27453
27454#include <sys/types.h>
27455#include <sys/stat.h>
27456#include <fcntl.h>
27457#ifdef HAVE_SYS_MMAN_H
27458#include <sys/mman.h>
27459#endif
27460    int main()
27461    {
27462        int fd;
27463        void *m;
27464        fd = open("/dev/zero", O_RDWR);
27465        if (fd < 0) {
27466            return 1;
27467        }
27468        m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
27469        if (m == (void *)-1) {  /* aka MAP_FAILED */
27470            return 2;
27471        }
27472        if (munmap(m, sizeof(void*)) < 0) {
27473            return 3;
27474        }
27475        return 0;
27476    }
27477_ACEOF
27478if ac_fn_c_try_run "$LINENO"; then :
27479
27480else
27481  ac_cv_file__dev_zero=no
27482fi
27483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27484  conftest.$ac_objext conftest.beam conftest.$ac_ext
27485fi
27486
27487
27488    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
27489$as_echo "$ac_cv_file__dev_zero" >&6; }
27490fi
27491
27492# Now we determine which one is our anonymous shmem preference.
27493haveshmgetanon="0"
27494havemmapzero="0"
27495havemmapanon="0"
27496ac_decision_item='anonymous shared memory allocation method'
27497ac_decision_msg='FAILED'
27498ac_decision=''
27499
27500ac_rc=yes
27501for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h              func:shmget func:shmat func:shmdt func:shmctl; do
27502    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27503    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27504    case $ac_type in
27505        header )
27506            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27507            ac_var="ac_cv_header_$ac_item"
27508            ;;
27509        file )
27510            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27511            ac_var="ac_cv_file_$ac_item"
27512            ;;
27513        func )   ac_var="ac_cv_func_$ac_item"   ;;
27514        struct ) ac_var="ac_cv_struct_$ac_item" ;;
27515        define ) ac_var="ac_cv_define_$ac_item" ;;
27516        custom ) ac_var="$ac_item" ;;
27517    esac
27518    eval "ac_val=\$$ac_var"
27519    if test ".$ac_val" != .yes; then
27520        ac_rc=no
27521        break
27522    fi
27523done
27524if test ".$ac_rc" = .yes; then
27525    :
27526    haveshmgetanon="1"
27527
27528ac_decision='USE_SHMEM_SHMGET_ANON'
27529ac_decision_msg='SysV IPC shmget()'
27530ac_decision_USE_SHMEM_SHMGET_ANON=yes
27531ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()'
27532
27533else
27534    :
27535
27536fi
27537
27538ac_rc=yes
27539for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
27540    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27541    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27542    case $ac_type in
27543        header )
27544            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27545            ac_var="ac_cv_header_$ac_item"
27546            ;;
27547        file )
27548            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27549            ac_var="ac_cv_file_$ac_item"
27550            ;;
27551        func )   ac_var="ac_cv_func_$ac_item"   ;;
27552        struct ) ac_var="ac_cv_struct_$ac_item" ;;
27553        define ) ac_var="ac_cv_define_$ac_item" ;;
27554        custom ) ac_var="$ac_item" ;;
27555    esac
27556    eval "ac_val=\$$ac_var"
27557    if test ".$ac_val" != .yes; then
27558        ac_rc=no
27559        break
27560    fi
27561done
27562if test ".$ac_rc" = .yes; then
27563    :
27564    havemmapzero="1"
27565
27566ac_decision='USE_SHMEM_MMAP_ZERO'
27567ac_decision_msg='SVR4-style mmap() on /dev/zero'
27568ac_decision_USE_SHMEM_MMAP_ZERO=yes
27569ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero'
27570
27571else
27572    :
27573
27574fi
27575
27576ac_rc=yes
27577for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
27578    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27579    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27580    case $ac_type in
27581        header )
27582            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27583            ac_var="ac_cv_header_$ac_item"
27584            ;;
27585        file )
27586            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27587            ac_var="ac_cv_file_$ac_item"
27588            ;;
27589        func )   ac_var="ac_cv_func_$ac_item"   ;;
27590        struct ) ac_var="ac_cv_struct_$ac_item" ;;
27591        define ) ac_var="ac_cv_define_$ac_item" ;;
27592        custom ) ac_var="$ac_item" ;;
27593    esac
27594    eval "ac_val=\$$ac_var"
27595    if test ".$ac_val" != .yes; then
27596        ac_rc=no
27597        break
27598    fi
27599done
27600if test ".$ac_rc" = .yes; then
27601    :
27602    havemmapanon="1"
27603
27604ac_decision='USE_SHMEM_MMAP_ANON'
27605ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
27606ac_decision_USE_SHMEM_MMAP_ANON=yes
27607ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON'
27608
27609else
27610    :
27611
27612fi
27613
27614ac_rc=yes
27615for ac_spec in header:os2.h; do
27616    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27617    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27618    case $ac_type in
27619        header )
27620            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27621            ac_var="ac_cv_header_$ac_item"
27622            ;;
27623        file )
27624            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27625            ac_var="ac_cv_file_$ac_item"
27626            ;;
27627        func )   ac_var="ac_cv_func_$ac_item"   ;;
27628        struct ) ac_var="ac_cv_struct_$ac_item" ;;
27629        define ) ac_var="ac_cv_define_$ac_item" ;;
27630        custom ) ac_var="$ac_item" ;;
27631    esac
27632    eval "ac_val=\$$ac_var"
27633    if test ".$ac_val" != .yes; then
27634        ac_rc=no
27635        break
27636    fi
27637done
27638if test ".$ac_rc" = .yes; then
27639    :
27640    haveos2shm="1"
27641
27642ac_decision='USE_SHMEM_OS2_ANON'
27643ac_decision_msg='OS/2 DosAllocSharedMem()'
27644ac_decision_USE_SHMEM_OS2_ANON=yes
27645ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()'
27646
27647else
27648    :
27649
27650fi
27651
27652ac_rc=yes
27653for ac_spec in header:kernel/OS.h func:create_area; do
27654    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27655    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27656    case $ac_type in
27657        header )
27658            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27659            ac_var="ac_cv_header_$ac_item"
27660            ;;
27661        file )
27662            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27663            ac_var="ac_cv_file_$ac_item"
27664            ;;
27665        func )   ac_var="ac_cv_func_$ac_item"   ;;
27666        struct ) ac_var="ac_cv_struct_$ac_item" ;;
27667        define ) ac_var="ac_cv_define_$ac_item" ;;
27668        custom ) ac_var="$ac_item" ;;
27669    esac
27670    eval "ac_val=\$$ac_var"
27671    if test ".$ac_val" != .yes; then
27672        ac_rc=no
27673        break
27674    fi
27675done
27676if test ".$ac_rc" = .yes; then
27677    :
27678    havebeosshm="1"
27679
27680ac_decision='USE_SHMEM_BEOS_ANON'
27681ac_decision_msg='BeOS areas'
27682ac_decision_USE_SHMEM_BEOS_ANON=yes
27683ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas'
27684
27685else
27686    :
27687
27688fi
27689
27690ac_rc=yes
27691for ac_spec in header:windows.h func:CreateFileMapping; do
27692    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27693    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27694    case $ac_type in
27695        header )
27696            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27697            ac_var="ac_cv_header_$ac_item"
27698            ;;
27699        file )
27700            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27701            ac_var="ac_cv_file_$ac_item"
27702            ;;
27703        func )   ac_var="ac_cv_func_$ac_item"   ;;
27704        struct ) ac_var="ac_cv_struct_$ac_item" ;;
27705        define ) ac_var="ac_cv_define_$ac_item" ;;
27706        custom ) ac_var="$ac_item" ;;
27707    esac
27708    eval "ac_val=\$$ac_var"
27709    if test ".$ac_val" != .yes; then
27710        ac_rc=no
27711        break
27712    fi
27713done
27714if test ".$ac_rc" = .yes; then
27715    :
27716    havewin32shm="1"
27717
27718ac_decision='USE_SHMEM_WIN32_ANON'
27719ac_decision_msg='Windows CreateFileMapping()'
27720ac_decision_USE_SHMEM_WIN32_ANON=yes
27721ac_decision_USE_SHMEM_WIN32_ANON_msg='Windows CreateFileMapping()'
27722
27723else
27724    :
27725
27726fi
27727
27728case $host in
27729    *linux* )
27730        # Linux has problems with MM_SHMT_MMANON even though it reports
27731        # that it has it.
27732        # FIXME - find exact 2.3 version that MMANON was fixed in.  It is
27733        # confirmed fixed in 2.4 series.
27734        if test $os_version -le "240"; then
27735                ac_decision=''
27736    for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do
27737         eval "ac_decision_this=\$ac_decision_${ac_item}"
27738         if test ".$ac_decision_this" = .yes; then
27739             ac_decision=$ac_item
27740             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
27741         fi
27742    done
27743
27744        fi
27745        ;;
27746    *hpux11* )
27747            ac_decision=''
27748    for ac_item in USE_SHMEM_SHMGET_ANON; do
27749         eval "ac_decision_this=\$ac_decision_${ac_item}"
27750         if test ".$ac_decision_this" = .yes; then
27751             ac_decision=$ac_item
27752             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
27753         fi
27754    done
27755
27756        ;;
27757esac
27758if test ".$ac_decision" = .; then
27759    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
27760    exit 1
27761else
27762    if test ".$ac_decision_msg" = .; then
27763        ac_decision_msg="$ac_decision"
27764    fi
27765    cat >>confdefs.h <<_ACEOF
27766#define ${ac_decision_item} 1
27767_ACEOF
27768
27769    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
27770$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
27771fi
27772
27773cat >>confdefs.h <<_ACEOF
27774#define $ac_decision 1
27775_ACEOF
27776
27777
27778useshmgetanon="0"
27779usemmapzero="0"
27780usemmapanon="0"
27781
27782case $ac_decision in
27783    USE_SHMEM_SHMGET_ANON )
27784        useshmgetanon="1"
27785        ;;
27786    USE_SHMEM_MMAP_ZERO )
27787        usemmapzero="1"
27788        ;;
27789    USE_SHMEM_MMAP_ANON )
27790        usemmapanon="1"
27791        ;;
27792esac
27793
27794
27795
27796
27797
27798
27799
27800
27801# Now we determine which one is our name-based shmem preference.
27802havemmaptmp="0"
27803havemmapshm="0"
27804haveshmget="0"
27805havebeosarea="0"
27806haveos2shm="0"
27807havewin32shm="0"
27808ac_decision_item='namebased memory allocation method'
27809ac_decision_msg='FAILED'
27810ac_decision=''
27811
27812ac_rc=yes
27813for ac_spec in header:sys/mman.h func:mmap func:munmap; do
27814    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27815    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27816    case $ac_type in
27817        header )
27818            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27819            ac_var="ac_cv_header_$ac_item"
27820            ;;
27821        file )
27822            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27823            ac_var="ac_cv_file_$ac_item"
27824            ;;
27825        func )   ac_var="ac_cv_func_$ac_item"   ;;
27826        struct ) ac_var="ac_cv_struct_$ac_item" ;;
27827        define ) ac_var="ac_cv_define_$ac_item" ;;
27828        custom ) ac_var="$ac_item" ;;
27829    esac
27830    eval "ac_val=\$$ac_var"
27831    if test ".$ac_val" != .yes; then
27832        ac_rc=no
27833        break
27834    fi
27835done
27836if test ".$ac_rc" = .yes; then
27837    :
27838    havemmaptmp="1"
27839
27840ac_decision='USE_SHMEM_MMAP_TMP'
27841ac_decision_msg='Classical mmap() on temporary file'
27842ac_decision_USE_SHMEM_MMAP_TMP=yes
27843ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file'
27844
27845else
27846    :
27847
27848fi
27849
27850ac_rc=yes
27851for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open              func:shm_unlink; do
27852    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27853    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27854    case $ac_type in
27855        header )
27856            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27857            ac_var="ac_cv_header_$ac_item"
27858            ;;
27859        file )
27860            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27861            ac_var="ac_cv_file_$ac_item"
27862            ;;
27863        func )   ac_var="ac_cv_func_$ac_item"   ;;
27864        struct ) ac_var="ac_cv_struct_$ac_item" ;;
27865        define ) ac_var="ac_cv_define_$ac_item" ;;
27866        custom ) ac_var="$ac_item" ;;
27867    esac
27868    eval "ac_val=\$$ac_var"
27869    if test ".$ac_val" != .yes; then
27870        ac_rc=no
27871        break
27872    fi
27873done
27874if test ".$ac_rc" = .yes; then
27875    :
27876    havemmapshm="1"
27877
27878ac_decision='USE_SHMEM_MMAP_SHM'
27879ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
27880ac_decision_USE_SHMEM_MMAP_SHM=yes
27881ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file'
27882
27883else
27884    :
27885
27886fi
27887
27888ac_rc=yes
27889for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h              func:shmget func:shmat func:shmdt func:shmctl; do
27890    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27891    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27892    case $ac_type in
27893        header )
27894            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27895            ac_var="ac_cv_header_$ac_item"
27896            ;;
27897        file )
27898            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27899            ac_var="ac_cv_file_$ac_item"
27900            ;;
27901        func )   ac_var="ac_cv_func_$ac_item"   ;;
27902        struct ) ac_var="ac_cv_struct_$ac_item" ;;
27903        define ) ac_var="ac_cv_define_$ac_item" ;;
27904        custom ) ac_var="$ac_item" ;;
27905    esac
27906    eval "ac_val=\$$ac_var"
27907    if test ".$ac_val" != .yes; then
27908        ac_rc=no
27909        break
27910    fi
27911done
27912if test ".$ac_rc" = .yes; then
27913    :
27914    haveshmget="1"
27915
27916ac_decision='USE_SHMEM_SHMGET'
27917ac_decision_msg='SysV IPC shmget()'
27918ac_decision_USE_SHMEM_SHMGET=yes
27919ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()'
27920
27921else
27922    :
27923
27924fi
27925
27926ac_rc=yes
27927for ac_spec in header:kernel/OS.h func:create_area; do
27928    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27929    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27930    case $ac_type in
27931        header )
27932            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27933            ac_var="ac_cv_header_$ac_item"
27934            ;;
27935        file )
27936            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27937            ac_var="ac_cv_file_$ac_item"
27938            ;;
27939        func )   ac_var="ac_cv_func_$ac_item"   ;;
27940        struct ) ac_var="ac_cv_struct_$ac_item" ;;
27941        define ) ac_var="ac_cv_define_$ac_item" ;;
27942        custom ) ac_var="$ac_item" ;;
27943    esac
27944    eval "ac_val=\$$ac_var"
27945    if test ".$ac_val" != .yes; then
27946        ac_rc=no
27947        break
27948    fi
27949done
27950if test ".$ac_rc" = .yes; then
27951    :
27952    havebeosshm="1"
27953
27954ac_decision='USE_SHMEM_BEOS'
27955ac_decision_msg='BeOS areas'
27956ac_decision_USE_SHMEM_BEOS=yes
27957ac_decision_USE_SHMEM_BEOS_msg='BeOS areas'
27958
27959else
27960    :
27961
27962fi
27963
27964ac_rc=yes
27965for ac_spec in header:os2.h; do
27966    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27967    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27968    case $ac_type in
27969        header )
27970            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27971            ac_var="ac_cv_header_$ac_item"
27972            ;;
27973        file )
27974            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27975            ac_var="ac_cv_file_$ac_item"
27976            ;;
27977        func )   ac_var="ac_cv_func_$ac_item"   ;;
27978        struct ) ac_var="ac_cv_struct_$ac_item" ;;
27979        define ) ac_var="ac_cv_define_$ac_item" ;;
27980        custom ) ac_var="$ac_item" ;;
27981    esac
27982    eval "ac_val=\$$ac_var"
27983    if test ".$ac_val" != .yes; then
27984        ac_rc=no
27985        break
27986    fi
27987done
27988if test ".$ac_rc" = .yes; then
27989    :
27990    haveos2shm="1"
27991
27992ac_decision='USE_SHMEM_OS2'
27993ac_decision_msg='OS/2 DosAllocSharedMem()'
27994ac_decision_USE_SHMEM_OS2=yes
27995ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()'
27996
27997else
27998    :
27999
28000fi
28001
28002ac_rc=yes
28003for ac_spec in header:windows.h; do
28004    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
28005    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
28006    case $ac_type in
28007        header )
28008            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
28009            ac_var="ac_cv_header_$ac_item"
28010            ;;
28011        file )
28012            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
28013            ac_var="ac_cv_file_$ac_item"
28014            ;;
28015        func )   ac_var="ac_cv_func_$ac_item"   ;;
28016        struct ) ac_var="ac_cv_struct_$ac_item" ;;
28017        define ) ac_var="ac_cv_define_$ac_item" ;;
28018        custom ) ac_var="$ac_item" ;;
28019    esac
28020    eval "ac_val=\$$ac_var"
28021    if test ".$ac_val" != .yes; then
28022        ac_rc=no
28023        break
28024    fi
28025done
28026if test ".$ac_rc" = .yes; then
28027    :
28028    havewin32shm="1"
28029
28030ac_decision='USE_SHMEM_WIN32'
28031ac_decision_msg='Windows shared memory'
28032ac_decision_USE_SHMEM_WIN32=yes
28033ac_decision_USE_SHMEM_WIN32_msg='Windows shared memory'
28034
28035else
28036    :
28037
28038fi
28039
28040case $host in
28041    *linux* )
28042        # Linux has problems with MM_SHMT_MMANON even though it reports
28043        # that it has it.
28044        # FIXME - find exact 2.3 version that MMANON was fixed in.  It is
28045        # confirmed fixed in 2.4 series.
28046        if test $os_version -le "240"; then
28047                ac_decision=''
28048    for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM                                   USE_SHMEM_SHMGET; do
28049         eval "ac_decision_this=\$ac_decision_${ac_item}"
28050         if test ".$ac_decision_this" = .yes; then
28051             ac_decision=$ac_item
28052             eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
28053         fi
28054    done
28055
28056        fi
28057        ;;
28058esac
28059if test ".$ac_decision" = .; then
28060    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
28061    exit 1
28062else
28063    if test ".$ac_decision_msg" = .; then
28064        ac_decision_msg="$ac_decision"
28065    fi
28066    cat >>confdefs.h <<_ACEOF
28067#define ${ac_decision_item} 1
28068_ACEOF
28069
28070    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
28071$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
28072fi
28073
28074cat >>confdefs.h <<_ACEOF
28075#define $ac_decision 1
28076_ACEOF
28077
28078
28079usemmaptmp="0"
28080usemmapshm="0"
28081useshmget="0"
28082usebeosarea="0"
28083useos2shm="0"
28084usewin32shm="0"
28085
28086case $ac_decision in
28087    USE_SHMEM_MMAP_TMP )
28088        usemmaptmp="1"
28089        ;;
28090    USE_SHMEM_MMAP_SHM )
28091        usemmapshm="1"
28092        ;;
28093    USE_SHMEM_SHMGET )
28094        useshmget="1"
28095        ;;
28096    USE_SHMEM_BEOS )
28097        usebeosarea="1"
28098        ;;
28099    USE_SHMEM_OS2 )
28100        useos2shm="1"
28101        ;;
28102    USE_SHMEM_WIN32 )
28103        usewin32shm="1"
28104        ;;
28105esac
28106
28107# Do we have any shared memory support?
28108if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm$usewin32shm" = "00000000"; then
28109  sharedmem="0"
28110else
28111  sharedmem="1"
28112fi
28113
28114
28115
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127
28128
28129# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28130# for constant arguments.  Useless!
28131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28132$as_echo_n "checking for working alloca.h... " >&6; }
28133if test "${ac_cv_working_alloca_h+set}" = set; then :
28134  $as_echo_n "(cached) " >&6
28135else
28136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28137/* end confdefs.h.  */
28138#include <alloca.h>
28139int
28140main ()
28141{
28142char *p = (char *) alloca (2 * sizeof (int));
28143			  if (p) return 0;
28144  ;
28145  return 0;
28146}
28147_ACEOF
28148if ac_fn_c_try_link "$LINENO"; then :
28149  ac_cv_working_alloca_h=yes
28150else
28151  ac_cv_working_alloca_h=no
28152fi
28153rm -f core conftest.err conftest.$ac_objext \
28154    conftest$ac_exeext conftest.$ac_ext
28155fi
28156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28157$as_echo "$ac_cv_working_alloca_h" >&6; }
28158if test $ac_cv_working_alloca_h = yes; then
28159
28160$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28161
28162fi
28163
28164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28165$as_echo_n "checking for alloca... " >&6; }
28166if test "${ac_cv_func_alloca_works+set}" = set; then :
28167  $as_echo_n "(cached) " >&6
28168else
28169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28170/* end confdefs.h.  */
28171#ifdef __GNUC__
28172# define alloca __builtin_alloca
28173#else
28174# ifdef _MSC_VER
28175#  include <malloc.h>
28176#  define alloca _alloca
28177# else
28178#  ifdef HAVE_ALLOCA_H
28179#   include <alloca.h>
28180#  else
28181#   ifdef _AIX
28182 #pragma alloca
28183#   else
28184#    ifndef alloca /* predefined by HP cc +Olibcalls */
28185char *alloca ();
28186#    endif
28187#   endif
28188#  endif
28189# endif
28190#endif
28191
28192int
28193main ()
28194{
28195char *p = (char *) alloca (1);
28196				    if (p) return 0;
28197  ;
28198  return 0;
28199}
28200_ACEOF
28201if ac_fn_c_try_link "$LINENO"; then :
28202  ac_cv_func_alloca_works=yes
28203else
28204  ac_cv_func_alloca_works=no
28205fi
28206rm -f core conftest.err conftest.$ac_objext \
28207    conftest$ac_exeext conftest.$ac_ext
28208fi
28209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28210$as_echo "$ac_cv_func_alloca_works" >&6; }
28211
28212if test $ac_cv_func_alloca_works = yes; then
28213
28214$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28215
28216else
28217  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28218# that cause trouble.  Some versions do not even contain alloca or
28219# contain a buggy version.  If you still want to use their alloca,
28220# use ar to extract alloca.o from them instead of compiling alloca.c.
28221
28222ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28223
28224$as_echo "#define C_ALLOCA 1" >>confdefs.h
28225
28226
28227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28228$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28229if test "${ac_cv_os_cray+set}" = set; then :
28230  $as_echo_n "(cached) " >&6
28231else
28232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28233/* end confdefs.h.  */
28234#if defined CRAY && ! defined CRAY2
28235webecray
28236#else
28237wenotbecray
28238#endif
28239
28240_ACEOF
28241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28242  $EGREP "webecray" >/dev/null 2>&1; then :
28243  ac_cv_os_cray=yes
28244else
28245  ac_cv_os_cray=no
28246fi
28247rm -f conftest*
28248
28249fi
28250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28251$as_echo "$ac_cv_os_cray" >&6; }
28252if test $ac_cv_os_cray = yes; then
28253  for ac_func in _getb67 GETB67 getb67; do
28254    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28255ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28256eval as_val=\$$as_ac_var
28257   if test "x$as_val" = x""yes; then :
28258
28259cat >>confdefs.h <<_ACEOF
28260#define CRAY_STACKSEG_END $ac_func
28261_ACEOF
28262
28263    break
28264fi
28265
28266  done
28267fi
28268
28269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28270$as_echo_n "checking stack direction for C alloca... " >&6; }
28271if test "${ac_cv_c_stack_direction+set}" = set; then :
28272  $as_echo_n "(cached) " >&6
28273else
28274  if test "$cross_compiling" = yes; then :
28275  ac_cv_c_stack_direction=0
28276else
28277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28278/* end confdefs.h.  */
28279$ac_includes_default
28280int
28281find_stack_direction ()
28282{
28283  static char *addr = 0;
28284  auto char dummy;
28285  if (addr == 0)
28286    {
28287      addr = &dummy;
28288      return find_stack_direction ();
28289    }
28290  else
28291    return (&dummy > addr) ? 1 : -1;
28292}
28293
28294int
28295main ()
28296{
28297  return find_stack_direction () < 0;
28298}
28299_ACEOF
28300if ac_fn_c_try_run "$LINENO"; then :
28301  ac_cv_c_stack_direction=1
28302else
28303  ac_cv_c_stack_direction=-1
28304fi
28305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28306  conftest.$ac_objext conftest.beam conftest.$ac_ext
28307fi
28308
28309fi
28310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28311$as_echo "$ac_cv_c_stack_direction" >&6; }
28312cat >>confdefs.h <<_ACEOF
28313#define STACK_DIRECTION $ac_cv_c_stack_direction
28314_ACEOF
28315
28316
28317fi
28318
28319
28320for ac_func in calloc setsid isinf isnan \
28321                getenv putenv setenv unsetenv \
28322                writev getifaddrs utime utimes
28323do :
28324  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28325ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28326eval as_val=\$$as_ac_var
28327   if test "x$as_val" = x""yes; then :
28328  cat >>confdefs.h <<_ACEOF
28329#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28330_ACEOF
28331
28332fi
28333done
28334
28335for ac_func in setrlimit
28336do :
28337  ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
28338if test "x$ac_cv_func_setrlimit" = x""yes; then :
28339  cat >>confdefs.h <<_ACEOF
28340#define HAVE_SETRLIMIT 1
28341_ACEOF
28342  have_setrlimit="1"
28343else
28344   have_setrlimit="0"
28345fi
28346done
28347
28348for ac_func in getrlimit
28349do :
28350  ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
28351if test "x$ac_cv_func_getrlimit" = x""yes; then :
28352  cat >>confdefs.h <<_ACEOF
28353#define HAVE_GETRLIMIT 1
28354_ACEOF
28355  have_getrlimit="1"
28356else
28357   have_getrlimit="0"
28358fi
28359done
28360
28361sendfile="0"
28362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5
28363$as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
28364if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then :
28365  $as_echo_n "(cached) " >&6
28366else
28367  ac_check_lib_save_LIBS=$LIBS
28368LIBS="-lsendfile  $LIBS"
28369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28370/* end confdefs.h.  */
28371
28372/* Override any GCC internal prototype to avoid an error.
28373   Use char because int might match the return type of a GCC
28374   builtin and then its argument prototype would still apply.  */
28375#ifdef __cplusplus
28376extern "C"
28377#endif
28378char sendfilev ();
28379int
28380main ()
28381{
28382return sendfilev ();
28383  ;
28384  return 0;
28385}
28386_ACEOF
28387if ac_fn_c_try_link "$LINENO"; then :
28388  ac_cv_lib_sendfile_sendfilev=yes
28389else
28390  ac_cv_lib_sendfile_sendfilev=no
28391fi
28392rm -f core conftest.err conftest.$ac_objext \
28393    conftest$ac_exeext conftest.$ac_ext
28394LIBS=$ac_check_lib_save_LIBS
28395fi
28396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5
28397$as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
28398if test "x$ac_cv_lib_sendfile_sendfilev" = x""yes; then :
28399  cat >>confdefs.h <<_ACEOF
28400#define HAVE_LIBSENDFILE 1
28401_ACEOF
28402
28403  LIBS="-lsendfile $LIBS"
28404
28405fi
28406
28407for ac_func in sendfile send_file sendfilev
28408do :
28409  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28410ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28411eval as_val=\$$as_ac_var
28412   if test "x$as_val" = x""yes; then :
28413  cat >>confdefs.h <<_ACEOF
28414#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28415_ACEOF
28416  sendfile="1"
28417fi
28418done
28419
28420
28421
28422
28423# Check whether --with-sendfile was given.
28424if test "${with_sendfile+set}" = set; then :
28425  withval=$with_sendfile;  if test "$withval" = "yes"; then
28426        sendfile="1"
28427    else
28428        sendfile="0"
28429    fi
28430else
28431
28432    orig_sendfile=$sendfile
28433    case $host in
28434        *freebsd*)
28435            # FreeBSD < 4.2 has issues with threads+sendfile
28436            if test $os_version -le "401999"; then
28437                if test "$threads" = "1"; then
28438                    sendfile="0"
28439                fi
28440            fi
28441            ;;
28442        *alpha*-dec-osf* )
28443            sendfile="0"
28444            ;;
28445        s390-*-linux-gnu)
28446            # disable sendfile support for 2.2 on S/390
28447            if test $os_version -lt 240; then
28448                sendfile="0"
28449            fi
28450            ;;
28451        *aix*)
28452            # compiler-independent check for 64-bit build
28453            # The cast to long int works around a bug in the HP C Compiler
28454# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28455# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28456# This bug is HP SR number 8606223364.
28457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
28458$as_echo_n "checking size of void*... " >&6; }
28459if test "${ac_cv_sizeof_voidp+set}" = set; then :
28460  $as_echo_n "(cached) " >&6
28461else
28462  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
28463
28464else
28465  if test "$ac_cv_type_voidp" = yes; then
28466     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28468{ as_fn_set_status 77
28469as_fn_error "cannot compute sizeof (void*)
28470See \`config.log' for more details." "$LINENO" 5; }; }
28471   else
28472     ac_cv_sizeof_voidp=0
28473   fi
28474fi
28475
28476fi
28477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
28478$as_echo "$ac_cv_sizeof_voidp" >&6; }
28479
28480
28481
28482cat >>confdefs.h <<_ACEOF
28483#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
28484_ACEOF
28485
28486
28487            if test "x$ac_cv_sizeof_voidp" = "x8"; then
28488                # sendfile not working for 64-bit build
28489                sendfile="0"
28490            fi
28491            ;;
28492    esac
28493    if test "$orig_sendfile" != "$sendfile"; then
28494      echo "sendfile support disabled to avoid system problem"
28495    fi
28496fi
28497
28498
28499
28500for ac_func in sigaction
28501do :
28502  ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
28503if test "x$ac_cv_func_sigaction" = x""yes; then :
28504  cat >>confdefs.h <<_ACEOF
28505#define HAVE_SIGACTION 1
28506_ACEOF
28507  have_sigaction="1"
28508else
28509   have_sigaction="0"
28510fi
28511done
28512
28513ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
28514/* NetBSD declares sys_siglist in unistd.h.  */
28515#ifdef HAVE_UNISTD_H
28516# include <unistd.h>
28517#endif
28518
28519"
28520if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
28521  ac_have_decl=1
28522else
28523  ac_have_decl=0
28524fi
28525
28526cat >>confdefs.h <<_ACEOF
28527#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
28528_ACEOF
28529
28530
28531
28532for ac_func in fork
28533do :
28534  ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
28535if test "x$ac_cv_func_fork" = x""yes; then :
28536  cat >>confdefs.h <<_ACEOF
28537#define HAVE_FORK 1
28538_ACEOF
28539  fork="1"
28540else
28541   fork="0"
28542fi
28543done
28544
28545
28546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr" >&5
28547$as_echo_n "checking for inet_addr... " >&6; }
28548if test "${ac_cv_func_inet_addr+set}" = set; then :
28549  $as_echo_n "(cached) " >&6
28550else
28551
28552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28553/* end confdefs.h.  */
28554
28555#ifdef HAVE_SYS_TYPES_H
28556#include <sys/types.h>
28557#endif
28558#ifdef HAVE_ARPA_INET_H
28559#include <arpa/inet.h>
28560#endif
28561
28562int
28563main ()
28564{
28565
28566inet_addr("127.0.0.1");
28567
28568  ;
28569  return 0;
28570}
28571_ACEOF
28572if ac_fn_c_try_compile "$LINENO"; then :
28573
28574    ac_cv_func_inet_addr=yes
28575
28576else
28577
28578    ac_cv_func_inet_addr=no
28579
28580fi
28581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28582
28583fi
28584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_addr" >&5
28585$as_echo "$ac_cv_func_inet_addr" >&6; }
28586
28587if test "$ac_cv_func_inet_addr" = "yes"; then
28588  have_inet_addr=1
28589else
28590  have_inet_addr=0
28591fi
28592
28593
28594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_network" >&5
28595$as_echo_n "checking for inet_network... " >&6; }
28596if test "${ac_cv_func_inet_network+set}" = set; then :
28597  $as_echo_n "(cached) " >&6
28598else
28599
28600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28601/* end confdefs.h.  */
28602
28603#ifdef HAVE_SYS_TYPES_H
28604#include <sys/types.h>
28605#endif
28606#ifdef HAVE_ARPA_INET_H
28607#include <arpa/inet.h>
28608#endif
28609
28610int
28611main ()
28612{
28613
28614inet_network("127.0.0.1");
28615
28616  ;
28617  return 0;
28618}
28619_ACEOF
28620if ac_fn_c_try_compile "$LINENO"; then :
28621
28622    ac_cv_func_inet_network=yes
28623
28624else
28625
28626    ac_cv_func_inet_network=no
28627
28628fi
28629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28630
28631fi
28632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_network" >&5
28633$as_echo "$ac_cv_func_inet_network" >&6; }
28634
28635if test "$ac_cv_func_inet_network" = "yes"; then
28636  have_inet_network=1
28637else
28638  have_inet_network=0
28639fi
28640
28641
28642ac_fn_c_check_func "$LINENO" "_getch" "ac_cv_func__getch"
28643if test "x$ac_cv_func__getch" = x""yes; then :
28644
28645fi
28646
28647for ac_func in strerror_r
28648do :
28649  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
28650if test "x$ac_cv_func_strerror_r" = x""yes; then :
28651  cat >>confdefs.h <<_ACEOF
28652#define HAVE_STRERROR_R 1
28653_ACEOF
28654  strerror_r="1"
28655else
28656   strerror_r="0"
28657fi
28658done
28659
28660if test "$strerror_r" = "1"; then
28661
28662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of return code from strerror_r" >&5
28663$as_echo_n "checking for type of return code from strerror_r... " >&6; }
28664if test "$cross_compiling" = yes; then :
28665
28666    ac_cv_strerror_r_rc_int=no
28667else
28668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28669/* end confdefs.h.  */
28670
28671#include <errno.h>
28672#include <string.h>
28673#include <stdio.h>
28674main()
28675{
28676  char buf[1024];
28677  if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
28678    exit(0);
28679  }
28680  else {
28681    exit(1);
28682  }
28683}
28684_ACEOF
28685if ac_fn_c_try_run "$LINENO"; then :
28686
28687    ac_cv_strerror_r_rc_int=yes
28688else
28689
28690    ac_cv_strerror_r_rc_int=no
28691fi
28692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28693  conftest.$ac_objext conftest.beam conftest.$ac_ext
28694fi
28695
28696if test "x$ac_cv_strerror_r_rc_int" = xyes; then
28697
28698$as_echo "#define STRERROR_R_RC_INT 1" >>confdefs.h
28699
28700  msg="int"
28701else
28702  msg="pointer"
28703fi
28704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
28705$as_echo "$msg" >&6; }
28706
28707fi
28708for ac_func in mmap
28709do :
28710  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
28711if test "x$ac_cv_func_mmap" = x""yes; then :
28712  cat >>confdefs.h <<_ACEOF
28713#define HAVE_MMAP 1
28714_ACEOF
28715  mmap="1"
28716else
28717   mmap="0"
28718fi
28719done
28720
28721if test "$native_mmap_emul" = "1"; then
28722    mmap="1"
28723fi
28724for ac_func in memmove
28725do :
28726  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
28727if test "x$ac_cv_func_memmove" = x""yes; then :
28728  cat >>confdefs.h <<_ACEOF
28729#define HAVE_MEMMOVE 1
28730_ACEOF
28731  have_memmove="1"
28732else
28733  have_memmove="0"
28734fi
28735done
28736
28737for ac_func in getpass getpassphrase gmtime_r localtime_r mkstemp
28738do :
28739  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28740ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28741eval as_val=\$$as_ac_var
28742   if test "x$as_val" = x""yes; then :
28743  cat >>confdefs.h <<_ACEOF
28744#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28745_ACEOF
28746
28747fi
28748done
28749
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait takes one argument" >&5
28764$as_echo_n "checking whether sigwait takes one argument... " >&6; }
28765if test "${ac_cv_sigwait_one_arg+set}" = set; then :
28766  $as_echo_n "(cached) " >&6
28767else
28768
28769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28770/* end confdefs.h.  */
28771
28772#if defined(__NETBSD__) || defined(DARWIN)
28773    /* When using the unproven-pthreads package, we need to pull in this
28774     * header to get a prototype for sigwait().  Else things will fail later
28775     * on.  XXX Should probably be fixed in the unproven-pthreads package.
28776     * Darwin is declaring sigwait() in the wrong place as well.
28777     */
28778#include <pthread.h>
28779#endif
28780#include <signal.h>
28781
28782int
28783main ()
28784{
28785
28786  sigset_t set;
28787
28788  sigwait(&set);
28789
28790  ;
28791  return 0;
28792}
28793_ACEOF
28794if ac_fn_c_try_compile "$LINENO"; then :
28795
28796  ac_cv_sigwait_one_arg=yes
28797
28798else
28799
28800  ac_cv_sigwait_one_arg=no
28801
28802fi
28803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28804fi
28805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigwait_one_arg" >&5
28806$as_echo "$ac_cv_sigwait_one_arg" >&6; }
28807  if test "$ac_cv_sigwait_one_arg" = "yes"; then
28808
28809$as_echo "#define SIGWAIT_TAKES_ONE_ARG 1" >>confdefs.h
28810
28811  fi
28812
28813
28814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
28815$as_echo_n "checking for ANSI C header files... " >&6; }
28816if test "${ac_cv_header_stdc+set}" = set; then :
28817  $as_echo_n "(cached) " >&6
28818else
28819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28820/* end confdefs.h.  */
28821#include <stdlib.h>
28822#include <stdarg.h>
28823#include <string.h>
28824#include <float.h>
28825
28826int
28827main ()
28828{
28829
28830  ;
28831  return 0;
28832}
28833_ACEOF
28834if ac_fn_c_try_compile "$LINENO"; then :
28835  ac_cv_header_stdc=yes
28836else
28837  ac_cv_header_stdc=no
28838fi
28839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28840
28841if test $ac_cv_header_stdc = yes; then
28842  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28844/* end confdefs.h.  */
28845#include <string.h>
28846
28847_ACEOF
28848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28849  $EGREP "memchr" >/dev/null 2>&1; then :
28850
28851else
28852  ac_cv_header_stdc=no
28853fi
28854rm -f conftest*
28855
28856fi
28857
28858if test $ac_cv_header_stdc = yes; then
28859  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28861/* end confdefs.h.  */
28862#include <stdlib.h>
28863
28864_ACEOF
28865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28866  $EGREP "free" >/dev/null 2>&1; then :
28867
28868else
28869  ac_cv_header_stdc=no
28870fi
28871rm -f conftest*
28872
28873fi
28874
28875if test $ac_cv_header_stdc = yes; then
28876  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28877  if test "$cross_compiling" = yes; then :
28878  :
28879else
28880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28881/* end confdefs.h.  */
28882#include <ctype.h>
28883#include <stdlib.h>
28884#if ((' ' & 0x0FF) == 0x020)
28885# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28886# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28887#else
28888# define ISLOWER(c) \
28889		   (('a' <= (c) && (c) <= 'i') \
28890		     || ('j' <= (c) && (c) <= 'r') \
28891		     || ('s' <= (c) && (c) <= 'z'))
28892# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28893#endif
28894
28895#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28896int
28897main ()
28898{
28899  int i;
28900  for (i = 0; i < 256; i++)
28901    if (XOR (islower (i), ISLOWER (i))
28902	|| toupper (i) != TOUPPER (i))
28903      return 2;
28904  return 0;
28905}
28906_ACEOF
28907if ac_fn_c_try_run "$LINENO"; then :
28908
28909else
28910  ac_cv_header_stdc=no
28911fi
28912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28913  conftest.$ac_objext conftest.beam conftest.$ac_ext
28914fi
28915
28916fi
28917fi
28918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
28919$as_echo "$ac_cv_header_stdc" >&6; }
28920if test $ac_cv_header_stdc = yes; then
28921
28922$as_echo "#define STDC_HEADERS 1" >>confdefs.h
28923
28924fi
28925
28926
28927
28928for ac_header in ByteOrder.h		\
28929    conio.h		\
28930    crypt.h		\
28931    ctype.h		\
28932    dir.h		\
28933    dirent.h		\
28934    dl.h		\
28935    dlfcn.h		\
28936    errno.h		\
28937    fcntl.h		\
28938    grp.h		\
28939    io.h		\
28940    limits.h		\
28941    mach-o/dyld.h	\
28942    malloc.h		\
28943    memory.h		\
28944    netdb.h		\
28945    osreldate.h		\
28946    poll.h		\
28947    process.h		\
28948    pwd.h		\
28949    semaphore.h		\
28950    signal.h		\
28951    stdarg.h		\
28952    stddef.h		\
28953    stdio.h		\
28954    stdlib.h		\
28955    string.h		\
28956    strings.h		\
28957    sysapi.h		\
28958    sysgtime.h		\
28959    termios.h		\
28960    time.h		\
28961    tpfeq.h		\
28962    tpfio.h		\
28963    unistd.h		\
28964    unix.h		\
28965    windows.h		\
28966    winsock2.h		\
28967    arpa/inet.h		\
28968    kernel/OS.h		\
28969    net/errno.h		\
28970    netinet/in.h	\
28971    netinet/sctp.h      \
28972    netinet/sctp_uio.h  \
28973    sys/file.h		\
28974    sys/ioctl.h         \
28975    sys/mman.h		\
28976    sys/param.h         \
28977    sys/poll.h		\
28978    sys/resource.h	\
28979    sys/select.h	\
28980    sys/sem.h		\
28981    sys/sendfile.h	\
28982    sys/signal.h	\
28983    sys/socket.h	\
28984    sys/sockio.h	\
28985    sys/stat.h          \
28986    sys/sysctl.h	\
28987    sys/syslimits.h	\
28988    sys/time.h		\
28989    sys/types.h		\
28990    sys/uio.h		\
28991    sys/un.h		\
28992    sys/wait.h
28993do :
28994  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28995ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28996eval as_val=\$$as_ac_Header
28997   if test "x$as_val" = x""yes; then :
28998  cat >>confdefs.h <<_ACEOF
28999#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29000_ACEOF
29001
29002fi
29003
29004done
29005
29006for aprt_i in ByteOrder.h		\
29007    conio.h		\
29008    crypt.h		\
29009    ctype.h		\
29010    dir.h		\
29011    dirent.h		\
29012    dl.h		\
29013    dlfcn.h		\
29014    errno.h		\
29015    fcntl.h		\
29016    grp.h		\
29017    io.h		\
29018    limits.h		\
29019    mach-o/dyld.h	\
29020    malloc.h		\
29021    memory.h		\
29022    netdb.h		\
29023    osreldate.h		\
29024    poll.h		\
29025    process.h		\
29026    pwd.h		\
29027    semaphore.h		\
29028    signal.h		\
29029    stdarg.h		\
29030    stddef.h		\
29031    stdio.h		\
29032    stdlib.h		\
29033    string.h		\
29034    strings.h		\
29035    sysapi.h		\
29036    sysgtime.h		\
29037    termios.h		\
29038    time.h		\
29039    tpfeq.h		\
29040    tpfio.h		\
29041    unistd.h		\
29042    unix.h		\
29043    windows.h		\
29044    winsock2.h		\
29045    arpa/inet.h		\
29046    kernel/OS.h		\
29047    net/errno.h		\
29048    netinet/in.h	\
29049    netinet/sctp.h      \
29050    netinet/sctp_uio.h  \
29051    sys/file.h		\
29052    sys/ioctl.h         \
29053    sys/mman.h		\
29054    sys/param.h         \
29055    sys/poll.h		\
29056    sys/resource.h	\
29057    sys/select.h	\
29058    sys/sem.h		\
29059    sys/sendfile.h	\
29060    sys/signal.h	\
29061    sys/socket.h	\
29062    sys/sockio.h	\
29063    sys/stat.h          \
29064    sys/sysctl.h	\
29065    sys/syslimits.h	\
29066    sys/time.h		\
29067    sys/types.h		\
29068    sys/uio.h		\
29069    sys/un.h		\
29070    sys/wait.h
29071do
29072    ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
29073    aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
29074    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
29075       eval "$aprt_2=1"
29076    else
29077       eval "$aprt_2=0"
29078    fi
29079done
29080
29081
29082# IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
29083# being included by itself.  Check for <netinet/tcp.h> manually,
29084# including another header file first.
29085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/tcp.h" >&5
29086$as_echo_n "checking for netinet/tcp.h... " >&6; }
29087if test "${apr_cv_hdr_netinet_tcp_h+set}" = set; then :
29088  $as_echo_n "(cached) " >&6
29089else
29090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29091/* end confdefs.h.  */
29092#ifdef HAVE_NETINET_IN_H
29093#include <netinet/in.h>
29094#endif
29095#include <netinet/tcp.h>
29096
29097_ACEOF
29098if ac_fn_c_try_cpp "$LINENO"; then :
29099  apr_cv_hdr_netinet_tcp_h=yes
29100else
29101  apr_cv_hdr_netinet_tcp_h=no
29102fi
29103rm -f conftest.err conftest.$ac_ext
29104fi
29105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_netinet_tcp_h" >&5
29106$as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; }
29107if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
29108   netinet_tcph=1
29109
29110$as_echo "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
29111
29112else
29113   netinet_tcph=0
29114fi
29115
29116
29117
29118
29119
29120
29121
29122
29123
29124
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138
29139
29140
29141
29142
29143
29144
29145
29146
29147
29148
29149
29150
29151
29152
29153
29154
29155# Checking for h_errno in <netdb.h>
29156if test "$netdbh" = "1"; then
29157
29158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
29159$as_echo_n "checking for h_errno in netdb.h... " >&6; }
29160  if test "${ac_cv_h_errno_cppflags+set}" = set; then :
29161  $as_echo_n "(cached) " >&6
29162else
29163
29164
29165  if test x != x; then
29166    CPPFLAGS="-D $CPPFLAGS"
29167  fi
29168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29169/* end confdefs.h.  */
29170
29171#ifdef HAVE_SYS_TYPES_H
29172#include <sys/types.h>
29173#endif
29174#ifdef HAVE_NETDB_H
29175#include <netdb.h>
29176#endif
29177
29178int
29179main ()
29180{
29181
29182int h_e = h_errno;
29183
29184  ;
29185  return 0;
29186}
29187_ACEOF
29188if ac_fn_c_try_compile "$LINENO"; then :
29189
29190  if test x != x; then
29191    ac_cv_h_errno_cppflags=""
29192  else
29193    ac_cv_h_errno_cppflags=yes
29194  fi
29195
29196else
29197
29198  ac_cv_h_errno_cppflags=no
29199
29200fi
29201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29202    if test "$ac_cv_h_errno_cppflags" = "no"; then
29203      ac_save="$CPPFLAGS"
29204      for flag in _XOPEN_SOURCE_EXTENDED; do
29205
29206  if test x$flag != x; then
29207    CPPFLAGS="-D$flag $CPPFLAGS"
29208  fi
29209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29210/* end confdefs.h.  */
29211
29212#ifdef HAVE_SYS_TYPES_H
29213#include <sys/types.h>
29214#endif
29215#ifdef HAVE_NETDB_H
29216#include <netdb.h>
29217#endif
29218
29219int
29220main ()
29221{
29222
29223int h_e = h_errno;
29224
29225  ;
29226  return 0;
29227}
29228_ACEOF
29229if ac_fn_c_try_compile "$LINENO"; then :
29230
29231  if test x$flag != x; then
29232    ac_cv_h_errno_cppflags="$flag"
29233  else
29234    ac_cv_h_errno_cppflags=yes
29235  fi
29236
29237else
29238
29239  ac_cv_h_errno_cppflags=no
29240
29241fi
29242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29243        if test "$ac_cv_h_errno_cppflags" != "no"; then
29244          break
29245        fi
29246      done
29247      CPPFLAGS="$ac_save"
29248    fi
29249
29250fi
29251
29252  if test "$ac_cv_h_errno_cppflags" != "no"; then
29253    if test "$ac_cv_h_errno_cppflags" != "yes"; then
29254      CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
29255      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
29256$as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; }
29257    else
29258      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
29259$as_echo "$ac_cv_h_errno_cppflags" >&6; }
29260    fi
29261  else
29262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
29263$as_echo "$ac_cv_h_errno_cppflags" >&6; }
29264  fi
29265
29266  if test "$ac_cv_h_errno_cflags" = "no"; then
29267    as_fn_error "can not find h_errno in netdb.h" "$LINENO" 5
29268  fi
29269fi
29270
29271# Check whether --enable-allocator-uses-mmap was given.
29272if test "${enable_allocator_uses_mmap+set}" = set; then :
29273  enableval=$enable_allocator_uses_mmap;  if test "$enableval" = "yes"; then
29274        ac_rc=yes
29275for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
29276    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
29277    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
29278    case $ac_type in
29279        header )
29280            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29281            ac_var="ac_cv_header_$ac_item"
29282            ;;
29283        file )
29284            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
29285            ac_var="ac_cv_file_$ac_item"
29286            ;;
29287        func )   ac_var="ac_cv_func_$ac_item"   ;;
29288        struct ) ac_var="ac_cv_struct_$ac_item" ;;
29289        define ) ac_var="ac_cv_define_$ac_item" ;;
29290        custom ) ac_var="$ac_item" ;;
29291    esac
29292    eval "ac_val=\$$ac_var"
29293    if test ".$ac_val" != .yes; then
29294        ac_rc=no
29295        break
29296    fi
29297done
29298if test ".$ac_rc" = .yes; then
29299    :
29300
29301$as_echo "#define APR_ALLOCATOR_USES_MMAP 1" >>confdefs.h
29302
29303else
29304    :
29305    as_fn_error "mmap()/MAP_ANON not supported" "$LINENO" 5
29306
29307fi
29308
29309    fi
29310
29311fi
29312
29313
29314ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
29315if test "x$ac_cv_type_off_t" = x""yes; then :
29316
29317else
29318
29319cat >>confdefs.h <<_ACEOF
29320#define off_t long int
29321_ACEOF
29322
29323fi
29324
29325ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
29326if test "x$ac_cv_type_pid_t" = x""yes; then :
29327
29328else
29329
29330cat >>confdefs.h <<_ACEOF
29331#define pid_t int
29332_ACEOF
29333
29334fi
29335
29336ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
29337if test "x$ac_cv_type_size_t" = x""yes; then :
29338
29339else
29340
29341cat >>confdefs.h <<_ACEOF
29342#define size_t unsigned int
29343_ACEOF
29344
29345fi
29346
29347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
29348$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
29349if test "${ac_cv_type_uid_t+set}" = set; then :
29350  $as_echo_n "(cached) " >&6
29351else
29352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29353/* end confdefs.h.  */
29354#include <sys/types.h>
29355
29356_ACEOF
29357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29358  $EGREP "uid_t" >/dev/null 2>&1; then :
29359  ac_cv_type_uid_t=yes
29360else
29361  ac_cv_type_uid_t=no
29362fi
29363rm -f conftest*
29364
29365fi
29366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
29367$as_echo "$ac_cv_type_uid_t" >&6; }
29368if test $ac_cv_type_uid_t = no; then
29369
29370$as_echo "#define uid_t int" >>confdefs.h
29371
29372
29373$as_echo "#define gid_t int" >>confdefs.h
29374
29375fi
29376
29377ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
29378if test "x$ac_cv_type_ssize_t" = x""yes; then :
29379
29380else
29381
29382cat >>confdefs.h <<_ACEOF
29383#define ssize_t int
29384_ACEOF
29385
29386fi
29387
29388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
29389$as_echo_n "checking for inline... " >&6; }
29390if test "${ac_cv_c_inline+set}" = set; then :
29391  $as_echo_n "(cached) " >&6
29392else
29393  ac_cv_c_inline=no
29394for ac_kw in inline __inline__ __inline; do
29395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29396/* end confdefs.h.  */
29397#ifndef __cplusplus
29398typedef int foo_t;
29399static $ac_kw foo_t static_foo () {return 0; }
29400$ac_kw foo_t foo () {return 0; }
29401#endif
29402
29403_ACEOF
29404if ac_fn_c_try_compile "$LINENO"; then :
29405  ac_cv_c_inline=$ac_kw
29406fi
29407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29408  test "$ac_cv_c_inline" != no && break
29409done
29410
29411fi
29412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
29413$as_echo "$ac_cv_c_inline" >&6; }
29414
29415case $ac_cv_c_inline in
29416  inline | yes) ;;
29417  *)
29418    case $ac_cv_c_inline in
29419      no) ac_val=;;
29420      *) ac_val=$ac_cv_c_inline;;
29421    esac
29422    cat >>confdefs.h <<_ACEOF
29423#ifndef __cplusplus
29424#define inline $ac_val
29425#endif
29426_ACEOF
29427    ;;
29428esac
29429
29430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
29431$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
29432if test "${ac_cv_c_const+set}" = set; then :
29433  $as_echo_n "(cached) " >&6
29434else
29435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29436/* end confdefs.h.  */
29437
29438int
29439main ()
29440{
29441/* FIXME: Include the comments suggested by Paul. */
29442#ifndef __cplusplus
29443  /* Ultrix mips cc rejects this.  */
29444  typedef int charset[2];
29445  const charset cs;
29446  /* SunOS 4.1.1 cc rejects this.  */
29447  char const *const *pcpcc;
29448  char **ppc;
29449  /* NEC SVR4.0.2 mips cc rejects this.  */
29450  struct point {int x, y;};
29451  static struct point const zero = {0,0};
29452  /* AIX XL C 1.02.0.0 rejects this.
29453     It does not let you subtract one const X* pointer from another in
29454     an arm of an if-expression whose if-part is not a constant
29455     expression */
29456  const char *g = "string";
29457  pcpcc = &g + (g ? g-g : 0);
29458  /* HPUX 7.0 cc rejects these. */
29459  ++pcpcc;
29460  ppc = (char**) pcpcc;
29461  pcpcc = (char const *const *) ppc;
29462  { /* SCO 3.2v4 cc rejects this.  */
29463    char *t;
29464    char const *s = 0 ? (char *) 0 : (char const *) 0;
29465
29466    *t++ = 0;
29467    if (s) return 0;
29468  }
29469  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
29470    int x[] = {25, 17};
29471    const int *foo = &x[0];
29472    ++foo;
29473  }
29474  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29475    typedef const int *iptr;
29476    iptr p = 0;
29477    ++p;
29478  }
29479  { /* AIX XL C 1.02.0.0 rejects this saying
29480       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29481    struct s { int j; const int *ap[3]; };
29482    struct s *b; b->j = 5;
29483  }
29484  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29485    const int foo = 10;
29486    if (!foo) return 0;
29487  }
29488  return !cs[0] && !zero.x;
29489#endif
29490
29491  ;
29492  return 0;
29493}
29494_ACEOF
29495if ac_fn_c_try_compile "$LINENO"; then :
29496  ac_cv_c_const=yes
29497else
29498  ac_cv_c_const=no
29499fi
29500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29501fi
29502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
29503$as_echo "$ac_cv_c_const" >&6; }
29504if test $ac_cv_c_const = no; then
29505
29506$as_echo "#define const /**/" >>confdefs.h
29507
29508fi
29509
29510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29511$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29512if test "${ac_cv_func_setpgrp_void+set}" = set; then :
29513  $as_echo_n "(cached) " >&6
29514else
29515  if test "$cross_compiling" = yes; then :
29516  as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
29517else
29518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29519/* end confdefs.h.  */
29520$ac_includes_default
29521int
29522main ()
29523{
29524/* If this system has a BSD-style setpgrp which takes arguments,
29525  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29526  exit successfully. */
29527  return setpgrp (1,1) != -1;
29528  ;
29529  return 0;
29530}
29531_ACEOF
29532if ac_fn_c_try_run "$LINENO"; then :
29533  ac_cv_func_setpgrp_void=no
29534else
29535  ac_cv_func_setpgrp_void=yes
29536fi
29537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29538  conftest.$ac_objext conftest.beam conftest.$ac_ext
29539fi
29540
29541fi
29542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29543$as_echo "$ac_cv_func_setpgrp_void" >&6; }
29544if test $ac_cv_func_setpgrp_void = yes; then
29545
29546$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29547
29548fi
29549
29550
29551
29552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
29553$as_echo_n "checking for socklen_t... " >&6; }
29554if test "${ac_cv_socklen_t+set}" = set; then :
29555  $as_echo_n "(cached) " >&6
29556else
29557
29558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29559/* end confdefs.h.  */
29560
29561#ifdef HAVE_SYS_TYPES_H
29562#include <sys/types.h>
29563#endif
29564#ifdef HAVE_SYS_SOCKET_H
29565#include <sys/socket.h>
29566#endif
29567
29568int
29569main ()
29570{
29571
29572socklen_t foo = (socklen_t) 0;
29573
29574  ;
29575  return 0;
29576}
29577_ACEOF
29578if ac_fn_c_try_compile "$LINENO"; then :
29579
29580    ac_cv_socklen_t=yes
29581
29582else
29583
29584    ac_cv_socklen_t=no
29585
29586fi
29587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29588
29589fi
29590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
29591$as_echo "$ac_cv_socklen_t" >&6; }
29592
29593if test "$ac_cv_socklen_t" = "yes"; then
29594
29595$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
29596
29597fi
29598
29599
29600# The cast to long int works around a bug in the HP C Compiler
29601# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29602# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29603# This bug is HP SR number 8606223364.
29604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
29605$as_echo_n "checking size of void*... " >&6; }
29606if test "${ac_cv_sizeof_voidp+set}" = set; then :
29607  $as_echo_n "(cached) " >&6
29608else
29609  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
29610
29611else
29612  if test "$ac_cv_type_voidp" = yes; then
29613     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29615{ as_fn_set_status 77
29616as_fn_error "cannot compute sizeof (void*)
29617See \`config.log' for more details." "$LINENO" 5; }; }
29618   else
29619     ac_cv_sizeof_voidp=0
29620   fi
29621fi
29622
29623fi
29624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
29625$as_echo "$ac_cv_sizeof_voidp" >&6; }
29626
29627
29628
29629cat >>confdefs.h <<_ACEOF
29630#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
29631_ACEOF
29632
29633
29634
29635if test "x$ac_cv_sizeof_voidp" != "x"; then
29636    voidp_size=$ac_cv_sizeof_voidp
29637else
29638    as_fn_error "Cannot determine size of void*" "$LINENO" 5
29639fi
29640
29641# The cast to long int works around a bug in the HP C Compiler
29642# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29643# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29644# This bug is HP SR number 8606223364.
29645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
29646$as_echo_n "checking size of char... " >&6; }
29647if test "${ac_cv_sizeof_char+set}" = set; then :
29648  $as_echo_n "(cached) " >&6
29649else
29650  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
29651
29652else
29653  if test "$ac_cv_type_char" = yes; then
29654     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29656{ as_fn_set_status 77
29657as_fn_error "cannot compute sizeof (char)
29658See \`config.log' for more details." "$LINENO" 5; }; }
29659   else
29660     ac_cv_sizeof_char=0
29661   fi
29662fi
29663
29664fi
29665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
29666$as_echo "$ac_cv_sizeof_char" >&6; }
29667
29668
29669
29670cat >>confdefs.h <<_ACEOF
29671#define SIZEOF_CHAR $ac_cv_sizeof_char
29672_ACEOF
29673
29674
29675# The cast to long int works around a bug in the HP C Compiler
29676# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29677# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29678# This bug is HP SR number 8606223364.
29679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
29680$as_echo_n "checking size of int... " >&6; }
29681if test "${ac_cv_sizeof_int+set}" = set; then :
29682  $as_echo_n "(cached) " >&6
29683else
29684  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
29685
29686else
29687  if test "$ac_cv_type_int" = yes; then
29688     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29690{ as_fn_set_status 77
29691as_fn_error "cannot compute sizeof (int)
29692See \`config.log' for more details." "$LINENO" 5; }; }
29693   else
29694     ac_cv_sizeof_int=0
29695   fi
29696fi
29697
29698fi
29699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
29700$as_echo "$ac_cv_sizeof_int" >&6; }
29701
29702
29703
29704cat >>confdefs.h <<_ACEOF
29705#define SIZEOF_INT $ac_cv_sizeof_int
29706_ACEOF
29707
29708
29709# The cast to long int works around a bug in the HP C Compiler
29710# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29711# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29712# This bug is HP SR number 8606223364.
29713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
29714$as_echo_n "checking size of long... " >&6; }
29715if test "${ac_cv_sizeof_long+set}" = set; then :
29716  $as_echo_n "(cached) " >&6
29717else
29718  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
29719
29720else
29721  if test "$ac_cv_type_long" = yes; then
29722     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29724{ as_fn_set_status 77
29725as_fn_error "cannot compute sizeof (long)
29726See \`config.log' for more details." "$LINENO" 5; }; }
29727   else
29728     ac_cv_sizeof_long=0
29729   fi
29730fi
29731
29732fi
29733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
29734$as_echo "$ac_cv_sizeof_long" >&6; }
29735
29736
29737
29738cat >>confdefs.h <<_ACEOF
29739#define SIZEOF_LONG $ac_cv_sizeof_long
29740_ACEOF
29741
29742
29743# The cast to long int works around a bug in the HP C Compiler
29744# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29745# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29746# This bug is HP SR number 8606223364.
29747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
29748$as_echo_n "checking size of short... " >&6; }
29749if test "${ac_cv_sizeof_short+set}" = set; then :
29750  $as_echo_n "(cached) " >&6
29751else
29752  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
29753
29754else
29755  if test "$ac_cv_type_short" = yes; then
29756     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29758{ as_fn_set_status 77
29759as_fn_error "cannot compute sizeof (short)
29760See \`config.log' for more details." "$LINENO" 5; }; }
29761   else
29762     ac_cv_sizeof_short=0
29763   fi
29764fi
29765
29766fi
29767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
29768$as_echo "$ac_cv_sizeof_short" >&6; }
29769
29770
29771
29772cat >>confdefs.h <<_ACEOF
29773#define SIZEOF_SHORT $ac_cv_sizeof_short
29774_ACEOF
29775
29776
29777# The cast to long int works around a bug in the HP C Compiler
29778# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29779# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29780# This bug is HP SR number 8606223364.
29781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
29782$as_echo_n "checking size of long long... " >&6; }
29783if test "${ac_cv_sizeof_long_long+set}" = set; then :
29784  $as_echo_n "(cached) " >&6
29785else
29786  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
29787
29788else
29789  if test "$ac_cv_type_long_long" = yes; then
29790     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29792{ as_fn_set_status 77
29793as_fn_error "cannot compute sizeof (long long)
29794See \`config.log' for more details." "$LINENO" 5; }; }
29795   else
29796     ac_cv_sizeof_long_long=0
29797   fi
29798fi
29799
29800fi
29801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
29802$as_echo "$ac_cv_sizeof_long_long" >&6; }
29803
29804
29805
29806cat >>confdefs.h <<_ACEOF
29807#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
29808_ACEOF
29809
29810
29811
29812if test "$ac_cv_sizeof_short" = "2"; then
29813    short_value=short
29814fi
29815if test "$ac_cv_sizeof_int" = "4"; then
29816    int_value=int
29817fi
29818# Now we need to find what apr_int64_t (sizeof == 8) will be.
29819# The first match is our preference.
29820if test "$ac_cv_sizeof_int" = "8"; then
29821    int64_literal='#define APR_INT64_C(val) (val)'
29822    uint64_literal='#define APR_UINT64_C(val) (val##U)'
29823    int64_t_fmt='#define APR_INT64_T_FMT "d"'
29824    uint64_t_fmt='#define APR_UINT64_T_FMT "u"'
29825    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"'
29826    int64_value="int"
29827    long_value=int
29828    int64_strfn="strtoi"
29829elif test "$ac_cv_sizeof_long" = "8"; then
29830    int64_literal='#define APR_INT64_C(val) (val##L)'
29831    uint64_literal='#define APR_UINT64_C(val) (val##UL)'
29832    int64_t_fmt='#define APR_INT64_T_FMT "ld"'
29833    uint64_t_fmt='#define APR_UINT64_T_FMT "lu"'
29834    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"'
29835    int64_value="long"
29836    long_value=long
29837    int64_strfn="strtol"
29838elif test "$ac_cv_sizeof_long_long" = "8"; then
29839    int64_literal='#define APR_INT64_C(val) (val##LL)'
29840    uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
29841    # Linux, Solaris, FreeBSD all support ll with printf.
29842    # BSD 4.4 originated 'q'.  Solaris is more popular and
29843    # doesn't support 'q'.  Solaris wins.  Exceptions can
29844    # go to the OS-dependent section.
29845    int64_t_fmt='#define APR_INT64_T_FMT "lld"'
29846    uint64_t_fmt='#define APR_UINT64_T_FMT "llu"'
29847    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"'
29848    int64_value="long long"
29849    long_value="long long"
29850    int64_strfn="strtoll"
29851elif test "$ac_cv_sizeof_longlong" = "8"; then
29852    int64_literal='#define APR_INT64_C(val) (val##LL)'
29853    uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
29854    int64_t_fmt='#define APR_INT64_T_FMT "qd"'
29855    uint64_t_fmt='#define APR_UINT64_T_FMT "qu"'
29856    uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"'
29857    int64_value="__int64"
29858    long_value="__int64"
29859    int64_strfn="strtoll"
29860else
29861    # int64_literal may be overriden if your compiler thinks you have
29862    # a 64-bit value but APR does not agree.
29863    as_fn_error "could not detect a 64-bit integer type" "$LINENO" 5
29864fi
29865
29866# If present, allow the C99 macro INT64_C to override our conversion.
29867#
29868# HP-UX's ANSI C compiler provides this without any includes, so we
29869# will first look for INT64_C without adding stdint.h
29870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT64_C" >&5
29871$as_echo_n "checking for INT64_C... " >&6; }
29872if test "${apr_cv_define_INT64_C+set}" = set; then :
29873  $as_echo_n "(cached) " >&6
29874else
29875
29876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29877/* end confdefs.h.  */
29878#ifdef INT64_C
29879YES_IS_DEFINED
29880#endif
29881_ACEOF
29882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29883  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
29884  apr_cv_define_INT64_C=yes
29885else
29886
29887    # Now check for INT64_C in stdint.h
29888    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29889/* end confdefs.h.  */
29890#include <stdint.h>
29891#ifdef INT64_C
29892YES_IS_DEFINED
29893#endif
29894_ACEOF
29895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29896  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
29897  apr_cv_define_INT64_C=yes
29898else
29899  apr_cv_define_INT64_C=no
29900fi
29901rm -f conftest*
29902
29903fi
29904rm -f conftest*
29905
29906fi
29907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_INT64_C" >&5
29908$as_echo "$apr_cv_define_INT64_C" >&6; }
29909
29910if test "$apr_cv_define_INT64_C" = "yes"; then
29911    int64_literal='#define APR_INT64_C(val) INT64_C(val)'
29912    uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
29913    stdint=1
29914else
29915    stdint=0
29916fi
29917
29918if test "$ac_cv_type_size_t" = "yes"; then
29919    size_t_value="size_t"
29920else
29921    size_t_value="apr_int32_t"
29922fi
29923if test "$ac_cv_type_ssize_t" = "yes"; then
29924    ssize_t_value="ssize_t"
29925else
29926    ssize_t_value="apr_int32_t"
29927fi
29928if test "$ac_cv_socklen_t" = "yes"; then
29929    socklen_t_value="socklen_t"
29930    case $host in
29931        *-hp-hpux*)
29932            if test "$ac_cv_sizeof_long" = "8"; then
29933                # 64-bit HP-UX requires 32-bit socklens in
29934                # kernel, but user-space declarations say
29935                # 64-bit (socklen_t == size_t == long).
29936                # This will result in many compile warnings,
29937                # but we're functionally busted otherwise.
29938                socklen_t_value="int"
29939            fi
29940            ;;
29941    esac
29942else
29943    socklen_t_value="int"
29944fi
29945
29946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
29947$as_echo_n "checking size of pid_t... " >&6; }
29948if test "${ac_cv_sizeof_pid_t+set}" = set; then :
29949  $as_echo_n "(cached) " >&6
29950else
29951  if test "$cross_compiling" = yes; then :
29952  ac_cv_sizeof_pid_t=8
29953else
29954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29955/* end confdefs.h.  */
29956#include <stdio.h>
29957#include <sys/types.h>
29958main()
29959{
29960  FILE *f=fopen("conftestval", "w");
29961  if (!f) exit(1);
29962  fprintf(f, "%d\n", sizeof(pid_t));
29963  exit(0);
29964}
29965_ACEOF
29966if ac_fn_c_try_run "$LINENO"; then :
29967  ac_cv_sizeof_pid_t=`cat conftestval`
29968else
29969  ac_cv_sizeof_pid_t=0
29970fi
29971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29972  conftest.$ac_objext conftest.beam conftest.$ac_ext
29973fi
29974
29975fi
29976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
29977$as_echo "$ac_cv_sizeof_pid_t" >&6; }
29978
29979cat >>confdefs.h <<_ACEOF
29980#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
29981_ACEOF
29982
29983
29984
29985if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
29986    pid_t_fmt='#define APR_PID_T_FMT "hd"'
29987elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
29988    pid_t_fmt='#define APR_PID_T_FMT "d"'
29989elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
29990    pid_t_fmt='#define APR_PID_T_FMT "ld"'
29991elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
29992    pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT'
29993else
29994    pid_t_fmt='#error Can not determine the proper size for pid_t'
29995fi
29996
29997# Basically, we have tried to figure out the correct format strings
29998# for APR types which vary between platforms, but we don't always get
29999# it right.
30000case $host in
30001   s390*linux*)
30002       # uniquely, the 31-bit Linux/s390 uses "unsigned long int"
30003       # for size_t rather than "unsigned int":
30004       size_t_fmt="lu"
30005       ssize_t_fmt="ld"
30006       ;;
30007   *-os2*)
30008       size_t_fmt="lu"
30009       ;;
30010   *-solaris*)
30011       if test "$ac_cv_sizeof_long" = "8"; then
30012         pid_t_fmt='#define APR_PID_T_FMT "d"'
30013       else
30014         pid_t_fmt='#define APR_PID_T_FMT "ld"'
30015       fi
30016       ;;
30017   *aix4*|*aix5*)
30018       ssize_t_fmt="ld"
30019       size_t_fmt="lu"
30020       ;;
30021    *beos*)
30022        ssize_t_fmt="ld"
30023        size_t_fmt="ld"
30024        ;;
30025    *apple-darwin*)
30026        osver=`uname -r`
30027        case $osver in
30028           [0-7].*)
30029              ssize_t_fmt="d"
30030              ;;
30031           *)
30032              ssize_t_fmt="ld"
30033              ;;
30034        esac
30035        size_t_fmt="lu"
30036        ;;
30037    *-mingw*)
30038        int64_t_fmt='#define APR_INT64_T_FMT "I64d"'
30039        uint64_t_fmt='#define APR_UINT64_T_FMT "I64u"'
30040        uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "I64x"'
30041        int64_value="__int64"
30042        long_value="__int64"
30043        int64_strfn="_strtoi64"
30044        ;;
30045esac
30046
30047
30048
30049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and int are the same" >&5
30050$as_echo_n "checking whether ssize_t and int are the same... " >&6; }
30051if test "${apr_cv_typematch_ssize_t_int+set}" = set; then :
30052  $as_echo_n "(cached) " >&6
30053else
30054
30055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30056/* end confdefs.h.  */
30057$ac_includes_default
30058int
30059main ()
30060{
30061
30062    int foo[0 - !__builtin_types_compatible_p(ssize_t, int)];
30063
30064  ;
30065  return 0;
30066}
30067_ACEOF
30068if ac_fn_c_try_compile "$LINENO"; then :
30069  apr_cv_typematch_ssize_t_int=yes
30070ssize_t_fmt="d"
30071else
30072  apr_cv_typematch_ssize_t_int=no
30073fi
30074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30075fi
30076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_int" >&5
30077$as_echo "$apr_cv_typematch_ssize_t_int" >&6; }
30078
30079
30080
30081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and long are the same" >&5
30082$as_echo_n "checking whether ssize_t and long are the same... " >&6; }
30083if test "${apr_cv_typematch_ssize_t_long+set}" = set; then :
30084  $as_echo_n "(cached) " >&6
30085else
30086
30087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30088/* end confdefs.h.  */
30089$ac_includes_default
30090int
30091main ()
30092{
30093
30094    int foo[0 - !__builtin_types_compatible_p(ssize_t, long)];
30095
30096  ;
30097  return 0;
30098}
30099_ACEOF
30100if ac_fn_c_try_compile "$LINENO"; then :
30101  apr_cv_typematch_ssize_t_long=yes
30102ssize_t_fmt="ld"
30103else
30104  apr_cv_typematch_ssize_t_long=no
30105fi
30106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30107fi
30108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_long" >&5
30109$as_echo "$apr_cv_typematch_ssize_t_long" >&6; }
30110
30111
30112
30113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned int are the same" >&5
30114$as_echo_n "checking whether size_t and unsigned int are the same... " >&6; }
30115if test "${apr_cv_typematch_size_t_unsigned_int+set}" = set; then :
30116  $as_echo_n "(cached) " >&6
30117else
30118
30119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30120/* end confdefs.h.  */
30121$ac_includes_default
30122int
30123main ()
30124{
30125
30126    int foo[0 - !__builtin_types_compatible_p(size_t, unsigned int)];
30127
30128  ;
30129  return 0;
30130}
30131_ACEOF
30132if ac_fn_c_try_compile "$LINENO"; then :
30133  apr_cv_typematch_size_t_unsigned_int=yes
30134size_t_fmt="u"
30135else
30136  apr_cv_typematch_size_t_unsigned_int=no
30137fi
30138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30139fi
30140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_int" >&5
30141$as_echo "$apr_cv_typematch_size_t_unsigned_int" >&6; }
30142
30143
30144
30145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long are the same" >&5
30146$as_echo_n "checking whether size_t and unsigned long are the same... " >&6; }
30147if test "${apr_cv_typematch_size_t_unsigned_long+set}" = set; then :
30148  $as_echo_n "(cached) " >&6
30149else
30150
30151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30152/* end confdefs.h.  */
30153$ac_includes_default
30154int
30155main ()
30156{
30157
30158    int foo[0 - !__builtin_types_compatible_p(size_t, unsigned long)];
30159
30160  ;
30161  return 0;
30162}
30163_ACEOF
30164if ac_fn_c_try_compile "$LINENO"; then :
30165  apr_cv_typematch_size_t_unsigned_long=yes
30166size_t_fmt="lu"
30167else
30168  apr_cv_typematch_size_t_unsigned_long=no
30169fi
30170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30171fi
30172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_long" >&5
30173$as_echo "$apr_cv_typematch_size_t_unsigned_long" >&6; }
30174
30175
30176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
30177$as_echo_n "checking size of ssize_t... " >&6; }
30178if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
30179  $as_echo_n "(cached) " >&6
30180else
30181  if test "$cross_compiling" = yes; then :
30182  ac_cv_sizeof_ssize_t=8
30183else
30184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30185/* end confdefs.h.  */
30186#include <stdio.h>
30187#include <sys/types.h>
30188main()
30189{
30190  FILE *f=fopen("conftestval", "w");
30191  if (!f) exit(1);
30192  fprintf(f, "%d\n", sizeof(ssize_t));
30193  exit(0);
30194}
30195_ACEOF
30196if ac_fn_c_try_run "$LINENO"; then :
30197  ac_cv_sizeof_ssize_t=`cat conftestval`
30198else
30199  ac_cv_sizeof_ssize_t=0
30200fi
30201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30202  conftest.$ac_objext conftest.beam conftest.$ac_ext
30203fi
30204
30205fi
30206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
30207$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
30208
30209cat >>confdefs.h <<_ACEOF
30210#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
30211_ACEOF
30212
30213
30214
30215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_ssize_t" >&5
30216$as_echo_n "checking which format to use for apr_ssize_t... " >&6; }
30217if test -n "$ssize_t_fmt"; then
30218    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$ssize_t_fmt" >&5
30219$as_echo "%$ssize_t_fmt" >&6; }
30220elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
30221    ssize_t_fmt="d"
30222    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
30223$as_echo "%d" >&6; }
30224elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
30225    ssize_t_fmt="ld"
30226    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
30227$as_echo "%ld" >&6; }
30228else
30229    as_fn_error "could not determine the proper format for apr_ssize_t" "$LINENO" 5
30230fi
30231
30232ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\""
30233
30234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
30235$as_echo_n "checking size of size_t... " >&6; }
30236if test "${ac_cv_sizeof_size_t+set}" = set; then :
30237  $as_echo_n "(cached) " >&6
30238else
30239  if test "$cross_compiling" = yes; then :
30240  ac_cv_sizeof_size_t=8
30241else
30242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30243/* end confdefs.h.  */
30244#include <stdio.h>
30245#include <stddef.h>
30246main()
30247{
30248  FILE *f=fopen("conftestval", "w");
30249  if (!f) exit(1);
30250  fprintf(f, "%d\n", sizeof(size_t));
30251  exit(0);
30252}
30253_ACEOF
30254if ac_fn_c_try_run "$LINENO"; then :
30255  ac_cv_sizeof_size_t=`cat conftestval`
30256else
30257  ac_cv_sizeof_size_t=0
30258fi
30259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30260  conftest.$ac_objext conftest.beam conftest.$ac_ext
30261fi
30262
30263fi
30264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
30265$as_echo "$ac_cv_sizeof_size_t" >&6; }
30266
30267cat >>confdefs.h <<_ACEOF
30268#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
30269_ACEOF
30270
30271
30272
30273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_size_t" >&5
30274$as_echo_n "checking which format to use for apr_size_t... " >&6; }
30275if test -n "$size_t_fmt"; then
30276    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$size_t_fmt" >&5
30277$as_echo "%$size_t_fmt" >&6; }
30278elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
30279    size_t_fmt="d"
30280    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
30281$as_echo "%d" >&6; }
30282elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
30283    size_t_fmt="ld"
30284    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
30285$as_echo "%ld" >&6; }
30286else
30287    as_fn_error "could not determine the proper format for apr_size_t" "$LINENO" 5
30288fi
30289
30290size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\""
30291
30292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
30293$as_echo_n "checking size of off_t... " >&6; }
30294if test "${ac_cv_sizeof_off_t+set}" = set; then :
30295  $as_echo_n "(cached) " >&6
30296else
30297  if test "$cross_compiling" = yes; then :
30298  ac_cv_sizeof_off_t=8
30299else
30300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30301/* end confdefs.h.  */
30302#include <stdio.h>
30303#include <sys/types.h>
30304main()
30305{
30306  FILE *f=fopen("conftestval", "w");
30307  if (!f) exit(1);
30308  fprintf(f, "%d\n", sizeof(off_t));
30309  exit(0);
30310}
30311_ACEOF
30312if ac_fn_c_try_run "$LINENO"; then :
30313  ac_cv_sizeof_off_t=`cat conftestval`
30314else
30315  ac_cv_sizeof_off_t=0
30316fi
30317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30318  conftest.$ac_objext conftest.beam conftest.$ac_ext
30319fi
30320
30321fi
30322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
30323$as_echo "$ac_cv_sizeof_off_t" >&6; }
30324
30325cat >>confdefs.h <<_ACEOF
30326#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
30327_ACEOF
30328
30329
30330
30331if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
30332    # Enable LFS
30333    aprlfs=1
30334    for ac_func in mmap64 sendfile64 sendfilev64 mkstemp64 readdir64_r
30335do :
30336  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30337ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30338eval as_val=\$$as_ac_var
30339   if test "x$as_val" = x""yes; then :
30340  cat >>confdefs.h <<_ACEOF
30341#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30342_ACEOF
30343
30344fi
30345done
30346
30347elif test "${ac_cv_sizeof_off_t}" != "${ac_cv_sizeof_size_t}"; then
30348    # unsure of using -gt above is as portable, can can't forsee where
30349    # off_t can legitimately be smaller than size_t
30350    aprlfs=1
30351else
30352    aprlfs=0
30353fi
30354
30355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which type to use for apr_off_t" >&5
30356$as_echo_n "checking which type to use for apr_off_t... " >&6; }
30357if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
30358    # LFS is go!
30359    off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
30360    off_t_value='off64_t'
30361    off_t_strfn='apr_strtoi64'
30362elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
30363    # Special case: off_t may change size with _FILE_OFFSET_BITS
30364    # on 32-bit systems with LFS support.  To avoid compatibility
30365    # issues when other packages do define _FILE_OFFSET_BITS,
30366    # hard-code apr_off_t to long.
30367    off_t_value=long
30368    off_t_fmt='#define APR_OFF_T_FMT "ld"'
30369    off_t_strfn='strtol'
30370elif test "$ac_cv_type_off_t" = "yes"; then
30371    off_t_value=off_t
30372    # off_t is more commonly a long than an int; prefer that case
30373    # where int and long are the same size.
30374    if test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long"; then
30375        off_t_fmt='#define APR_OFF_T_FMT "ld"'
30376        off_t_strfn='strtol'
30377    elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_int"; then
30378        off_t_fmt='#define APR_OFF_T_FMT "d"'
30379        off_t_strfn='strtoi'
30380    elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long_long"; then
30381        off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
30382        off_t_strfn='apr_strtoi64'
30383    else
30384        as_fn_error "could not determine the size of off_t" "$LINENO" 5
30385    fi
30386    # Per OS tuning...
30387    case $host in
30388    *-mingw*)
30389        off_t_value=apr_int64_t
30390        off_t_fmt='#define APR_OFF_T_FMT "I64d"'
30391        off_t_strfn='_strtoi64'
30392        ;;
30393    esac
30394else
30395   # Fallback on int
30396   off_t_value=apr_int32_t
30397   off_t_fmt=d
30398   off_t_strfn='strtoi'
30399fi
30400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $off_t_value" >&5
30401$as_echo "$off_t_value" >&6; }
30402
30403# Regardless of whether _LARGEFILE64_SOURCE is used, on some
30404# platforms _FILE_OFFSET_BITS will affect the size of ino_t and hence
30405# the build-time ABI may be different from the apparent ABI when using
30406# APR with another package which *does* define _FILE_OFFSET_BITS.
30407# (Exactly as per the case above with off_t where LFS is *not* used)
30408#
30409# To be safe, hard-code apr_ino_t as 'unsigned long' or 'unsigned int'
30410# iff that is exactly the size of ino_t here; otherwise use ino_t as existing
30411# releases did.  To be correct, apr_ino_t should have been made an
30412# ino64_t as apr_off_t is off64_t, but this can't be done now without
30413# breaking ABI.
30414
30415# Per OS tuning...
30416case $host in
30417*mingw*)
30418    ino_t_value=apr_int64_t
30419    ;;
30420*)
30421    ino_t_value=ino_t
30422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
30423$as_echo_n "checking size of ino_t... " >&6; }
30424if test "${ac_cv_sizeof_ino_t+set}" = set; then :
30425  $as_echo_n "(cached) " >&6
30426else
30427  if test "$cross_compiling" = yes; then :
30428  ac_cv_sizeof_ino_t=$ac_cv_sizeof_long
30429else
30430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30431/* end confdefs.h.  */
30432#include <stdio.h>
30433$ac_includes_default
30434main()
30435{
30436  FILE *f=fopen("conftestval", "w");
30437  if (!f) exit(1);
30438  fprintf(f, "%d\n", sizeof(ino_t));
30439  exit(0);
30440}
30441_ACEOF
30442if ac_fn_c_try_run "$LINENO"; then :
30443  ac_cv_sizeof_ino_t=`cat conftestval`
30444else
30445  ac_cv_sizeof_ino_t=0
30446fi
30447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30448  conftest.$ac_objext conftest.beam conftest.$ac_ext
30449fi
30450
30451fi
30452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
30453$as_echo "$ac_cv_sizeof_ino_t" >&6; }
30454
30455cat >>confdefs.h <<_ACEOF
30456#define SIZEOF_INO_T $ac_cv_sizeof_ino_t
30457_ACEOF
30458
30459
30460    if test $ac_cv_sizeof_ino_t = 4; then
30461        if test $ac_cv_sizeof_long = 4; then
30462            ino_t_value="unsigned long"
30463        else
30464            ino_t_value="unsigned int"
30465        fi
30466    fi
30467    ;;
30468esac
30469{ $as_echo "$as_me:${as_lineno-$LINENO}: using $ino_t_value for ino_t" >&5
30470$as_echo "$as_me: using $ino_t_value for ino_t" >&6;}
30471
30472# Checks for endianness
30473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
30474$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
30475if test "${ac_cv_c_bigendian+set}" = set; then :
30476  $as_echo_n "(cached) " >&6
30477else
30478  ac_cv_c_bigendian=unknown
30479    # See if we're dealing with a universal compiler.
30480    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30481/* end confdefs.h.  */
30482#ifndef __APPLE_CC__
30483	       not a universal capable compiler
30484	     #endif
30485	     typedef int dummy;
30486
30487_ACEOF
30488if ac_fn_c_try_compile "$LINENO"; then :
30489
30490	# Check for potential -arch flags.  It is not universal unless
30491	# there are at least two -arch flags with different values.
30492	ac_arch=
30493	ac_prev=
30494	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
30495	 if test -n "$ac_prev"; then
30496	   case $ac_word in
30497	     i?86 | x86_64 | ppc | ppc64)
30498	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
30499		 ac_arch=$ac_word
30500	       else
30501		 ac_cv_c_bigendian=universal
30502		 break
30503	       fi
30504	       ;;
30505	   esac
30506	   ac_prev=
30507	 elif test "x$ac_word" = "x-arch"; then
30508	   ac_prev=arch
30509	 fi
30510       done
30511fi
30512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30513    if test $ac_cv_c_bigendian = unknown; then
30514      # See if sys/param.h defines the BYTE_ORDER macro.
30515      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30516/* end confdefs.h.  */
30517#include <sys/types.h>
30518	     #include <sys/param.h>
30519
30520int
30521main ()
30522{
30523#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
30524		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
30525		     && LITTLE_ENDIAN)
30526	      bogus endian macros
30527	     #endif
30528
30529  ;
30530  return 0;
30531}
30532_ACEOF
30533if ac_fn_c_try_compile "$LINENO"; then :
30534  # It does; now see whether it defined to BIG_ENDIAN or not.
30535	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30536/* end confdefs.h.  */
30537#include <sys/types.h>
30538		#include <sys/param.h>
30539
30540int
30541main ()
30542{
30543#if BYTE_ORDER != BIG_ENDIAN
30544		 not big endian
30545		#endif
30546
30547  ;
30548  return 0;
30549}
30550_ACEOF
30551if ac_fn_c_try_compile "$LINENO"; then :
30552  ac_cv_c_bigendian=yes
30553else
30554  ac_cv_c_bigendian=no
30555fi
30556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30557fi
30558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30559    fi
30560    if test $ac_cv_c_bigendian = unknown; then
30561      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
30562      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30563/* end confdefs.h.  */
30564#include <limits.h>
30565
30566int
30567main ()
30568{
30569#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
30570	      bogus endian macros
30571	     #endif
30572
30573  ;
30574  return 0;
30575}
30576_ACEOF
30577if ac_fn_c_try_compile "$LINENO"; then :
30578  # It does; now see whether it defined to _BIG_ENDIAN or not.
30579	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30580/* end confdefs.h.  */
30581#include <limits.h>
30582
30583int
30584main ()
30585{
30586#ifndef _BIG_ENDIAN
30587		 not big endian
30588		#endif
30589
30590  ;
30591  return 0;
30592}
30593_ACEOF
30594if ac_fn_c_try_compile "$LINENO"; then :
30595  ac_cv_c_bigendian=yes
30596else
30597  ac_cv_c_bigendian=no
30598fi
30599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30600fi
30601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30602    fi
30603    if test $ac_cv_c_bigendian = unknown; then
30604      # Compile a test program.
30605      if test "$cross_compiling" = yes; then :
30606  # Try to guess by grepping values from an object file.
30607	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30608/* end confdefs.h.  */
30609short int ascii_mm[] =
30610		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
30611		short int ascii_ii[] =
30612		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
30613		int use_ascii (int i) {
30614		  return ascii_mm[i] + ascii_ii[i];
30615		}
30616		short int ebcdic_ii[] =
30617		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
30618		short int ebcdic_mm[] =
30619		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
30620		int use_ebcdic (int i) {
30621		  return ebcdic_mm[i] + ebcdic_ii[i];
30622		}
30623		extern int foo;
30624
30625int
30626main ()
30627{
30628return use_ascii (foo) == use_ebcdic (foo);
30629  ;
30630  return 0;
30631}
30632_ACEOF
30633if ac_fn_c_try_compile "$LINENO"; then :
30634  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
30635	      ac_cv_c_bigendian=yes
30636	    fi
30637	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
30638	      if test "$ac_cv_c_bigendian" = unknown; then
30639		ac_cv_c_bigendian=no
30640	      else
30641		# finding both strings is unlikely to happen, but who knows?
30642		ac_cv_c_bigendian=unknown
30643	      fi
30644	    fi
30645fi
30646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30647else
30648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30649/* end confdefs.h.  */
30650$ac_includes_default
30651int
30652main ()
30653{
30654
30655	     /* Are we little or big endian?  From Harbison&Steele.  */
30656	     union
30657	     {
30658	       long int l;
30659	       char c[sizeof (long int)];
30660	     } u;
30661	     u.l = 1;
30662	     return u.c[sizeof (long int) - 1] == 1;
30663
30664  ;
30665  return 0;
30666}
30667_ACEOF
30668if ac_fn_c_try_run "$LINENO"; then :
30669  ac_cv_c_bigendian=no
30670else
30671  ac_cv_c_bigendian=yes
30672fi
30673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30674  conftest.$ac_objext conftest.beam conftest.$ac_ext
30675fi
30676
30677    fi
30678fi
30679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
30680$as_echo "$ac_cv_c_bigendian" >&6; }
30681 case $ac_cv_c_bigendian in #(
30682   yes)
30683     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
30684;; #(
30685   no)
30686      ;; #(
30687   universal)
30688
30689$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
30690
30691     ;; #(
30692   *)
30693     as_fn_error "unknown endianness
30694 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
30695 esac
30696
30697if test $ac_cv_c_bigendian = yes; then
30698    bigendian=1
30699else
30700    bigendian=0
30701fi
30702
30703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iovec" >&5
30704$as_echo_n "checking size of struct iovec... " >&6; }
30705if test "${ac_cv_sizeof_struct_iovec+set}" = set; then :
30706  $as_echo_n "(cached) " >&6
30707else
30708  if test "$cross_compiling" = yes; then :
30709  ac_cv_sizeof_struct_iovec=0
30710else
30711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30712/* end confdefs.h.  */
30713#include <stdio.h>
30714#include <sys/types.h>
30715#include <sys/uio.h>
30716main()
30717{
30718  FILE *f=fopen("conftestval", "w");
30719  if (!f) exit(1);
30720  fprintf(f, "%d\n", sizeof(struct iovec));
30721  exit(0);
30722}
30723_ACEOF
30724if ac_fn_c_try_run "$LINENO"; then :
30725  ac_cv_sizeof_struct_iovec=`cat conftestval`
30726else
30727  ac_cv_sizeof_struct_iovec=0
30728fi
30729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30730  conftest.$ac_objext conftest.beam conftest.$ac_ext
30731fi
30732
30733fi
30734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iovec" >&5
30735$as_echo "$ac_cv_sizeof_struct_iovec" >&6; }
30736
30737cat >>confdefs.h <<_ACEOF
30738#define SIZEOF_STRUCT_IOVEC $ac_cv_sizeof_struct_iovec
30739_ACEOF
30740
30741
30742if test "$ac_cv_sizeof_struct_iovec" = "0"; then
30743    have_iovec=0
30744else
30745    have_iovec=1
30746fi
30747
30748
30749
30750
30751
30752
30753
30754
30755
30756
30757
30758
30759
30760
30761
30762
30763
30764
30765
30766
30767
30768
30769
30770
30771
30772for ac_func in strnicmp
30773do :
30774  ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
30775if test "x$ac_cv_func_strnicmp" = x""yes; then :
30776  cat >>confdefs.h <<_ACEOF
30777#define HAVE_STRNICMP 1
30778_ACEOF
30779 have_strnicmp="1"
30780else
30781  have_strnicmp="0"
30782fi
30783done
30784
30785for ac_func in strncasecmp
30786do :
30787  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
30788if test "x$ac_cv_func_strncasecmp" = x""yes; then :
30789  cat >>confdefs.h <<_ACEOF
30790#define HAVE_STRNCASECMP 1
30791_ACEOF
30792 have_strncasecmp="1"
30793else
30794  have_strncasecmp="0"
30795fi
30796done
30797
30798for ac_func in stricmp
30799do :
30800  ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
30801if test "x$ac_cv_func_stricmp" = x""yes; then :
30802  cat >>confdefs.h <<_ACEOF
30803#define HAVE_STRICMP 1
30804_ACEOF
30805 have_stricmp="1"
30806else
30807  have_stricmp="0"
30808fi
30809done
30810
30811for ac_func in strcasecmp
30812do :
30813  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
30814if test "x$ac_cv_func_strcasecmp" = x""yes; then :
30815  cat >>confdefs.h <<_ACEOF
30816#define HAVE_STRCASECMP 1
30817_ACEOF
30818 have_strcasecmp="1"
30819else
30820  have_strcasecmp="0"
30821fi
30822done
30823
30824for ac_func in strdup
30825do :
30826  ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
30827if test "x$ac_cv_func_strdup" = x""yes; then :
30828  cat >>confdefs.h <<_ACEOF
30829#define HAVE_STRDUP 1
30830_ACEOF
30831 have_strdup="1"
30832else
30833  have_strdup="0"
30834fi
30835done
30836
30837for ac_func in strstr
30838do :
30839  ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
30840if test "x$ac_cv_func_strstr" = x""yes; then :
30841  cat >>confdefs.h <<_ACEOF
30842#define HAVE_STRSTR 1
30843_ACEOF
30844 have_strstr="1"
30845else
30846  have_strstr="0"
30847fi
30848done
30849
30850for ac_func in memchr
30851do :
30852  ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
30853if test "x$ac_cv_func_memchr" = x""yes; then :
30854  cat >>confdefs.h <<_ACEOF
30855#define HAVE_MEMCHR 1
30856_ACEOF
30857 have_memchr="1"
30858else
30859  have_memchr="0"
30860fi
30861done
30862
30863as_ac_var=`$as_echo "ac_cv_func_$int64_strfn" | $as_tr_sh`
30864ac_fn_c_check_func "$LINENO" "$int64_strfn" "$as_ac_var"
30865eval as_val=\$$as_ac_var
30866   if test "x$as_val" = x""yes; then :
30867  have_int64_strfn="1"
30868else
30869  have_int64_strfn="0"
30870fi
30871
30872
30873if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
30874    int64_strfn="strtoq"
30875    ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
30876if test "x$ac_cv_func_strtoq" = x""yes; then :
30877  have_int64_strfn=1
30878else
30879  have_int64_strfn=0
30880fi
30881
30882fi
30883
30884if test "$have_int64_strfn" = "1"; then
30885
30886cat >>confdefs.h <<_ACEOF
30887#define APR_INT64_STRFN $int64_strfn
30888_ACEOF
30889
30890fi
30891
30892
30893
30894
30895
30896
30897
30898
30899
30900if test "$off_t_strfn" = "apr_strtoi64" && test "$have_int64_strfn" = "1"; then
30901    off_t_strfn=$int64_strfn
30902fi
30903
30904cat >>confdefs.h <<_ACEOF
30905#define APR_OFF_T_STRFN $off_t_strfn
30906_ACEOF
30907
30908
30909echo "${nl}Checking for DSO..."
30910# Check whether --enable-dso was given.
30911if test "${enable_dso+set}" = set; then :
30912  enableval=$enable_dso; if test "x$enableval" = "xyes"; then
30913      dsotype=any
30914   else
30915      dsotype=$enableval
30916   fi
30917
30918else
30919  dsotype=any
30920fi
30921
30922
30923if test "$dsotype" = "any"; then
30924    if test "$dsotype" = "any"; then
30925      case $host in
30926        *darwin[0-8]\.*)
30927          # Original Darwin, not for 9.0!:
30928          ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
30929if test "x$ac_cv_func_NSLinkModule" = x""yes; then :
30930  dsotype=dyld
30931fi
30932;;
30933        hppa*-hpux[1-9]\.*|hppa*-hpux1[01]*)
30934          # shl is specific to parisc hpux SOM binaries, not used for 64 bit
30935          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
30936$as_echo_n "checking for shl_load in -ldld... " >&6; }
30937if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
30938  $as_echo_n "(cached) " >&6
30939else
30940  ac_check_lib_save_LIBS=$LIBS
30941LIBS="-ldld  $LIBS"
30942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30943/* end confdefs.h.  */
30944
30945/* Override any GCC internal prototype to avoid an error.
30946   Use char because int might match the return type of a GCC
30947   builtin and then its argument prototype would still apply.  */
30948#ifdef __cplusplus
30949extern "C"
30950#endif
30951char shl_load ();
30952int
30953main ()
30954{
30955return shl_load ();
30956  ;
30957  return 0;
30958}
30959_ACEOF
30960if ac_fn_c_try_link "$LINENO"; then :
30961  ac_cv_lib_dld_shl_load=yes
30962else
30963  ac_cv_lib_dld_shl_load=no
30964fi
30965rm -f core conftest.err conftest.$ac_objext \
30966    conftest$ac_exeext conftest.$ac_ext
30967LIBS=$ac_check_lib_save_LIBS
30968fi
30969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
30970$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
30971if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
30972  have_shl=1
30973fi
30974
30975          if test "$ac_cv_sizeof_voidp$have_shl" = "41"; then
30976            dsotype=shl;
30977  if test "x$LIBS" = "x"; then
30978    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldld\""
30979    LIBS="-ldld"
30980  else
30981    apr_addto_bugger="-ldld"
30982    for i in $apr_addto_bugger; do
30983      apr_addto_duplicate="0"
30984      for j in $LIBS; do
30985        if test "x$i" = "x$j"; then
30986          apr_addto_duplicate="1"
30987          break
30988        fi
30989      done
30990      if test $apr_addto_duplicate = "0"; then
30991        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
30992        LIBS="$LIBS $i"
30993      fi
30994    done
30995  fi
30996
30997          fi;;
30998        *mingw*|*-os2*)
30999          # several 'other's below probably belong up here.  If they always
31000          # use a platform implementation and shouldn't test the dlopen/dlfcn
31001          # features, then bring them up here.
31002          # But if they -should- optionally use dlfcn, and/or need the config
31003          # detection of dlopen/dlsym, do not move them up.
31004          dsotype=other ;;
31005      esac
31006    fi
31007    # Normal POSIX:
31008    if test "$dsotype" = "any"; then
31009      ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
31010if test "x$ac_cv_func_dlopen" = x""yes; then :
31011  dsotype=dlfcn
31012fi
31013
31014    fi
31015    if test "$dsotype" = "any"; then
31016      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
31017$as_echo_n "checking for dlopen in -ldl... " >&6; }
31018if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
31019  $as_echo_n "(cached) " >&6
31020else
31021  ac_check_lib_save_LIBS=$LIBS
31022LIBS="-ldl  $LIBS"
31023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31024/* end confdefs.h.  */
31025
31026/* Override any GCC internal prototype to avoid an error.
31027   Use char because int might match the return type of a GCC
31028   builtin and then its argument prototype would still apply.  */
31029#ifdef __cplusplus
31030extern "C"
31031#endif
31032char dlopen ();
31033int
31034main ()
31035{
31036return dlopen ();
31037  ;
31038  return 0;
31039}
31040_ACEOF
31041if ac_fn_c_try_link "$LINENO"; then :
31042  ac_cv_lib_dl_dlopen=yes
31043else
31044  ac_cv_lib_dl_dlopen=no
31045fi
31046rm -f core conftest.err conftest.$ac_objext \
31047    conftest$ac_exeext conftest.$ac_ext
31048LIBS=$ac_check_lib_save_LIBS
31049fi
31050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
31051$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
31052if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
31053  dsotype=dlfcn;
31054  if test "x$LIBS" = "x"; then
31055    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
31056    LIBS="-ldl"
31057  else
31058    apr_addto_bugger="-ldl"
31059    for i in $apr_addto_bugger; do
31060      apr_addto_duplicate="0"
31061      for j in $LIBS; do
31062        if test "x$i" = "x$j"; then
31063          apr_addto_duplicate="1"
31064          break
31065        fi
31066      done
31067      if test $apr_addto_duplicate = "0"; then
31068        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
31069        LIBS="$LIBS $i"
31070      fi
31071    done
31072  fi
31073
31074fi
31075
31076    fi
31077    if test "$dsotype" = "dlfcn"; then
31078        # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
31079        ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
31080if test "x$ac_cv_func_dlsym" = x""yes; then :
31081
31082else
31083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
31084$as_echo_n "checking for dlsym in -ldl... " >&6; }
31085if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
31086  $as_echo_n "(cached) " >&6
31087else
31088  ac_check_lib_save_LIBS=$LIBS
31089LIBS="-ldl  $LIBS"
31090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31091/* end confdefs.h.  */
31092
31093/* Override any GCC internal prototype to avoid an error.
31094   Use char because int might match the return type of a GCC
31095   builtin and then its argument prototype would still apply.  */
31096#ifdef __cplusplus
31097extern "C"
31098#endif
31099char dlsym ();
31100int
31101main ()
31102{
31103return dlsym ();
31104  ;
31105  return 0;
31106}
31107_ACEOF
31108if ac_fn_c_try_link "$LINENO"; then :
31109  ac_cv_lib_dl_dlsym=yes
31110else
31111  ac_cv_lib_dl_dlsym=no
31112fi
31113rm -f core conftest.err conftest.$ac_objext \
31114    conftest$ac_exeext conftest.$ac_ext
31115LIBS=$ac_check_lib_save_LIBS
31116fi
31117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
31118$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
31119if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
31120
31121  if test "x$LIBS" = "x"; then
31122    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
31123    LIBS="-ldl"
31124  else
31125    apr_addto_bugger="-ldl"
31126    for i in $apr_addto_bugger; do
31127      apr_addto_duplicate="0"
31128      for j in $LIBS; do
31129        if test "x$i" = "x$j"; then
31130          apr_addto_duplicate="1"
31131          break
31132        fi
31133      done
31134      if test $apr_addto_duplicate = "0"; then
31135        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
31136        LIBS="$LIBS $i"
31137      fi
31138    done
31139  fi
31140
31141else
31142  dsotype=any
31143              echo "Weird: dlopen() was found but dlsym() was not found!"
31144fi
31145
31146fi
31147
31148    fi
31149    if test "$dsotype" = "any"; then
31150      # BeOS:
31151      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
31152$as_echo_n "checking for load_image in -lroot... " >&6; }
31153if test "${ac_cv_lib_root_load_image+set}" = set; then :
31154  $as_echo_n "(cached) " >&6
31155else
31156  ac_check_lib_save_LIBS=$LIBS
31157LIBS="-lroot  $LIBS"
31158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31159/* end confdefs.h.  */
31160
31161/* Override any GCC internal prototype to avoid an error.
31162   Use char because int might match the return type of a GCC
31163   builtin and then its argument prototype would still apply.  */
31164#ifdef __cplusplus
31165extern "C"
31166#endif
31167char load_image ();
31168int
31169main ()
31170{
31171return load_image ();
31172  ;
31173  return 0;
31174}
31175_ACEOF
31176if ac_fn_c_try_link "$LINENO"; then :
31177  ac_cv_lib_root_load_image=yes
31178else
31179  ac_cv_lib_root_load_image=no
31180fi
31181rm -f core conftest.err conftest.$ac_objext \
31182    conftest$ac_exeext conftest.$ac_ext
31183LIBS=$ac_check_lib_save_LIBS
31184fi
31185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
31186$as_echo "$ac_cv_lib_root_load_image" >&6; }
31187if test "x$ac_cv_lib_root_load_image" = x""yes; then :
31188  dsotype=other
31189fi
31190
31191    fi
31192    # Everything else:
31193    if test "$dsotype" = "any"; then
31194        case $host in
31195        *os390|*os400|*-aix*)
31196          # Some -aix5 will use dl, no hassles.  Keep that pattern here.
31197          dsotype=other ;;
31198        *-hpux*)
31199          if test "$have_shl" = "1"; then
31200            dsotype=shl;
31201  if test "x$LIBS" = "x"; then
31202    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldld\""
31203    LIBS="-ldld"
31204  else
31205    apr_addto_bugger="-ldld"
31206    for i in $apr_addto_bugger; do
31207      apr_addto_duplicate="0"
31208      for j in $LIBS; do
31209        if test "x$i" = "x$j"; then
31210          apr_addto_duplicate="1"
31211          break
31212        fi
31213      done
31214      if test $apr_addto_duplicate = "0"; then
31215        test "x$silent" != "xyes" && echo "  adding \"$i\" to LIBS"
31216        LIBS="$LIBS $i"
31217      fi
31218    done
31219  fi
31220
31221          fi;;
31222        esac
31223    fi
31224fi
31225
31226if test "$dsotype" = "any"; then
31227    as_fn_error "Could not detect suitable DSO implementation" "$LINENO" 5
31228elif test "$dsotype" = "no"; then
31229    aprdso="0"
31230else
31231    case "$dsotype" in
31232    dlfcn)
31233$as_echo "#define DSO_USE_DLFCN 1" >>confdefs.h
31234;;
31235    shl)
31236$as_echo "#define DSO_USE_SHL 1" >>confdefs.h
31237;;
31238    dyld)
31239$as_echo "#define DSO_USE_DYLD 1" >>confdefs.h
31240;;
31241    other) ;; # Use whatever is in dso/OSDIR
31242    *) as_fn_error "Unknown DSO implementation \"$dsotype\"" "$LINENO" 5;;
31243    esac
31244    aprdso="1"
31245    apr_modules="$apr_modules dso"
31246fi
31247
31248
31249
31250echo "${nl}Checking for Processes..."
31251
31252for ac_func in waitpid
31253do :
31254  ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
31255if test "x$ac_cv_func_waitpid" = x""yes; then :
31256  cat >>confdefs.h <<_ACEOF
31257#define HAVE_WAITPID 1
31258_ACEOF
31259
31260fi
31261done
31262
31263
31264# Check whether --enable-other-child was given.
31265if test "${enable_other_child+set}" = set; then :
31266  enableval=$enable_other_child;  if test "$enableval" = "yes"; then
31267        oc="1"
31268    else
31269        oc="0"
31270    fi
31271else
31272   oc=1
31273fi
31274
31275
31276
31277
31278if test -z "$have_proc_invoked"; then
31279  have_proc_invoked="0"
31280fi
31281
31282
31283
31284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Variable Length Arrays" >&5
31285$as_echo_n "checking for Variable Length Arrays... " >&6; }
31286apr_save_CFLAGS=$CFLAGS
31287 CFLAGS="$CFLAGS $CFLAGS_WARN"
31288 if test "$ac_cv_c_compiler_gnu" = "yes"; then
31289   CFLAGS="$CFLAGS -Werror"
31290 fi
31291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31292/* end confdefs.h.  */
31293#include "confdefs.h"
31294
31295
31296  int main(int argc, const char *const *argv) {
31297
31298    int foo[argc];
31299    foo[0] = 0;
31300
31301     return 0; }
31302_ACEOF
31303if ac_fn_c_try_compile "$LINENO"; then :
31304  vla_msg=yes
31305else
31306  vla_msg=no
31307fi
31308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31309 CFLAGS=$apr_save_CFLAGS
31310
31311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vla_msg" >&5
31312$as_echo "$vla_msg" >&6; }
31313if test "$vla_msg" = "yes"; then
31314
31315$as_echo "#define HAVE_VLA 1" >>confdefs.h
31316
31317fi
31318
31319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rlimit" >&5
31320$as_echo_n "checking struct rlimit... " >&6; }
31321if test "${ac_cv_struct_rlimit+set}" = set; then :
31322  $as_echo_n "(cached) " >&6
31323else
31324
31325if test "$cross_compiling" = yes; then :
31326
31327    ac_cv_struct_rlimit=no
31328else
31329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31330/* end confdefs.h.  */
31331
31332#include <sys/types.h>
31333#include <sys/time.h>
31334#include <sys/resource.h>
31335main()
31336{
31337    struct rlimit limit;
31338    limit.rlim_cur = 0;
31339    limit.rlim_max = 0;
31340    exit(0);
31341}
31342_ACEOF
31343if ac_fn_c_try_run "$LINENO"; then :
31344
31345    ac_cv_struct_rlimit=yes
31346else
31347
31348    ac_cv_struct_rlimit=no
31349fi
31350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31351  conftest.$ac_objext conftest.beam conftest.$ac_ext
31352fi
31353
31354fi
31355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rlimit" >&5
31356$as_echo "$ac_cv_struct_rlimit" >&6; }
31357struct_rlimit=0
31358test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
31359
31360
31361echo "${nl}Checking for Locking..."
31362
31363for ac_func in semget semctl flock
31364do :
31365  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31366ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31367eval as_val=\$$as_ac_var
31368   if test "x$as_val" = x""yes; then :
31369  cat >>confdefs.h <<_ACEOF
31370#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31371_ACEOF
31372
31373fi
31374done
31375
31376for ac_header in semaphore.h OS.h
31377do :
31378  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31379ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
31380eval as_val=\$$as_ac_Header
31381   if test "x$as_val" = x""yes; then :
31382  cat >>confdefs.h <<_ACEOF
31383#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31384_ACEOF
31385
31386fi
31387
31388done
31389
31390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
31391$as_echo_n "checking for library containing sem_open... " >&6; }
31392if test "${ac_cv_search_sem_open+set}" = set; then :
31393  $as_echo_n "(cached) " >&6
31394else
31395  ac_func_search_save_LIBS=$LIBS
31396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31397/* end confdefs.h.  */
31398
31399/* Override any GCC internal prototype to avoid an error.
31400   Use char because int might match the return type of a GCC
31401   builtin and then its argument prototype would still apply.  */
31402#ifdef __cplusplus
31403extern "C"
31404#endif
31405char sem_open ();
31406int
31407main ()
31408{
31409return sem_open ();
31410  ;
31411  return 0;
31412}
31413_ACEOF
31414for ac_lib in '' rt; do
31415  if test -z "$ac_lib"; then
31416    ac_res="none required"
31417  else
31418    ac_res=-l$ac_lib
31419    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31420  fi
31421  if ac_fn_c_try_link "$LINENO"; then :
31422  ac_cv_search_sem_open=$ac_res
31423fi
31424rm -f core conftest.err conftest.$ac_objext \
31425    conftest$ac_exeext
31426  if test "${ac_cv_search_sem_open+set}" = set; then :
31427  break
31428fi
31429done
31430if test "${ac_cv_search_sem_open+set}" = set; then :
31431
31432else
31433  ac_cv_search_sem_open=no
31434fi
31435rm conftest.$ac_ext
31436LIBS=$ac_func_search_save_LIBS
31437fi
31438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
31439$as_echo "$ac_cv_search_sem_open" >&6; }
31440ac_res=$ac_cv_search_sem_open
31441if test "$ac_res" != no; then :
31442  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31443
31444fi
31445
31446for ac_func in sem_close sem_unlink sem_post sem_wait create_sem
31447do :
31448  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31449ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31450eval as_val=\$$as_ac_var
31451   if test "x$as_val" = x""yes; then :
31452  cat >>confdefs.h <<_ACEOF
31453#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31454_ACEOF
31455
31456fi
31457done
31458
31459
31460# Some systems return ENOSYS from sem_open.
31461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sem_open" >&5
31462$as_echo_n "checking for working sem_open... " >&6; }
31463if test "${ac_cv_func_sem_open+set}" = set; then :
31464  $as_echo_n "(cached) " >&6
31465else
31466
31467if test "$cross_compiling" = yes; then :
31468  ac_cv_func_sem_open=no
31469else
31470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31471/* end confdefs.h.  */
31472
31473#include <errno.h>
31474#include <stdlib.h>
31475#include <fcntl.h>
31476#include <semaphore.h>
31477#ifndef SEM_FAILED
31478#define SEM_FAILED (-1)
31479#endif
31480main()
31481{
31482    sem_t *psem;
31483    const char *sem_name = "/apr_autoconf";
31484
31485    psem = sem_open(sem_name, O_CREAT, 0644, 1);
31486    if (psem == (sem_t *)SEM_FAILED) {
31487	exit(1);
31488    }
31489    sem_close(psem);
31490    psem = sem_open(sem_name, O_CREAT | O_EXCL, 0644, 1);
31491    if (psem != (sem_t *)SEM_FAILED) {
31492        sem_close(psem);
31493        exit(1);
31494    }
31495    sem_unlink(sem_name);
31496    exit(0);
31497}
31498_ACEOF
31499if ac_fn_c_try_run "$LINENO"; then :
31500  ac_cv_func_sem_open=yes
31501else
31502  ac_cv_func_sem_open=no
31503fi
31504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31505  conftest.$ac_objext conftest.beam conftest.$ac_ext
31506fi
31507
31508fi
31509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sem_open" >&5
31510$as_echo "$ac_cv_func_sem_open" >&6; }
31511
31512# It's stupid, but not all platforms have union semun, even those that need it.
31513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5
31514$as_echo_n "checking for union semun in sys/sem.h... " >&6; }
31515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31516/* end confdefs.h.  */
31517
31518#include <sys/types.h>
31519#include <sys/ipc.h>
31520#include <sys/sem.h>
31521
31522int
31523main ()
31524{
31525
31526union semun arg;
31527semctl(0, 0, 0, arg);
31528
31529  ;
31530  return 0;
31531}
31532_ACEOF
31533if ac_fn_c_try_compile "$LINENO"; then :
31534  have_union_semun="1" union_semun=yes
31535msg=yes
31536else
31537
31538have_union_semun="0"
31539msg=no
31540fi
31541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
31543$as_echo "$msg" >&6; }
31544
31545
31546
31547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCK_EX in sys/file.h" >&5
31548$as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; }
31549if test "${ac_cv_define_LOCK_EX+set}" = set; then :
31550  $as_echo_n "(cached) " >&6
31551else
31552
31553    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31554/* end confdefs.h.  */
31555
31556#include <sys/file.h>
31557#ifdef LOCK_EX
31558YES_IS_DEFINED
31559#endif
31560
31561_ACEOF
31562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31563  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
31564  ac_cv_define_LOCK_EX=yes
31565else
31566  ac_cv_define_LOCK_EX=no
31567fi
31568rm -f conftest*
31569
31570
31571fi
31572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_LOCK_EX" >&5
31573$as_echo "$ac_cv_define_LOCK_EX" >&6; }
31574  if test "$ac_cv_define_LOCK_EX" = "yes"; then
31575
31576$as_echo "#define HAVE_LOCK_EX 1" >>confdefs.h
31577
31578  fi
31579
31580
31581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLK in fcntl.h" >&5
31582$as_echo_n "checking for F_SETLK in fcntl.h... " >&6; }
31583if test "${ac_cv_define_F_SETLK+set}" = set; then :
31584  $as_echo_n "(cached) " >&6
31585else
31586
31587    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31588/* end confdefs.h.  */
31589
31590#include <fcntl.h>
31591#ifdef F_SETLK
31592YES_IS_DEFINED
31593#endif
31594
31595_ACEOF
31596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31597  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
31598  ac_cv_define_F_SETLK=yes
31599else
31600  ac_cv_define_F_SETLK=no
31601fi
31602rm -f conftest*
31603
31604
31605fi
31606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_F_SETLK" >&5
31607$as_echo "$ac_cv_define_F_SETLK" >&6; }
31608  if test "$ac_cv_define_F_SETLK" = "yes"; then
31609
31610$as_echo "#define HAVE_F_SETLK 1" >>confdefs.h
31611
31612  fi
31613
31614
31615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEM_UNDO in sys/sem.h" >&5
31616$as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; }
31617if test "${ac_cv_define_SEM_UNDO+set}" = set; then :
31618  $as_echo_n "(cached) " >&6
31619else
31620
31621    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31622/* end confdefs.h.  */
31623
31624#include <sys/sem.h>
31625#ifdef SEM_UNDO
31626YES_IS_DEFINED
31627#endif
31628
31629_ACEOF
31630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31631  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
31632  ac_cv_define_SEM_UNDO=yes
31633else
31634  ac_cv_define_SEM_UNDO=no
31635fi
31636rm -f conftest*
31637
31638
31639fi
31640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SEM_UNDO" >&5
31641$as_echo "$ac_cv_define_SEM_UNDO" >&6; }
31642  if test "$ac_cv_define_SEM_UNDO" = "yes"; then
31643
31644$as_echo "#define HAVE_SEM_UNDO 1" >>confdefs.h
31645
31646  fi
31647
31648
31649# We are assuming that if the platform doesn't have POLLIN, it doesn't have
31650# any POLL definitions.
31651
31652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLLIN in poll.h sys/poll.h" >&5
31653$as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; }
31654if test "${ac_cv_define_POLLIN+set}" = set; then :
31655  $as_echo_n "(cached) " >&6
31656else
31657
31658    ac_cv_define_POLLIN=no
31659    for curhdr in poll.h sys/poll.h
31660    do
31661      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31662/* end confdefs.h.  */
31663
31664#include <$curhdr>
31665#ifdef POLLIN
31666YES_IS_DEFINED
31667#endif
31668
31669_ACEOF
31670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31671  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
31672  ac_cv_define_POLLIN=yes
31673fi
31674rm -f conftest*
31675
31676    done
31677
31678fi
31679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_POLLIN" >&5
31680$as_echo "$ac_cv_define_POLLIN" >&6; }
31681  if test "$ac_cv_define_POLLIN" = "yes"; then
31682
31683$as_echo "#define HAVE_POLLIN 1" >>confdefs.h
31684
31685  fi
31686
31687
31688if test "$threads" = "1"; then
31689
31690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
31691$as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; }
31692if test "${ac_cv_define_PTHREAD_PROCESS_SHARED+set}" = set; then :
31693  $as_echo_n "(cached) " >&6
31694else
31695
31696    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31697/* end confdefs.h.  */
31698
31699#include <pthread.h>
31700#ifdef PTHREAD_PROCESS_SHARED
31701YES_IS_DEFINED
31702#endif
31703
31704_ACEOF
31705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31706  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
31707  ac_cv_define_PTHREAD_PROCESS_SHARED=yes
31708else
31709  ac_cv_define_PTHREAD_PROCESS_SHARED=no
31710fi
31711rm -f conftest*
31712
31713
31714fi
31715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
31716$as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; }
31717  if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
31718
31719$as_echo "#define HAVE_PTHREAD_PROCESS_SHARED 1" >>confdefs.h
31720
31721  fi
31722
31723    for ac_func in pthread_mutexattr_setpshared
31724do :
31725  ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared"
31726if test "x$ac_cv_func_pthread_mutexattr_setpshared" = x""yes; then :
31727  cat >>confdefs.h <<_ACEOF
31728#define HAVE_PTHREAD_MUTEXATTR_SETPSHARED 1
31729_ACEOF
31730
31731fi
31732done
31733
31734    # Some systems have setpshared and define PROCESS_SHARED, but don't
31735    # really support PROCESS_SHARED locks.  So, we must validate that we
31736    # can go through the steps without receiving some sort of system error.
31737    # Linux and older versions of AIX have this problem.
31738    ac_rc=yes
31739for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do
31740    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
31741    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
31742    case $ac_type in
31743        header )
31744            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
31745            ac_var="ac_cv_header_$ac_item"
31746            ;;
31747        file )
31748            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
31749            ac_var="ac_cv_file_$ac_item"
31750            ;;
31751        func )   ac_var="ac_cv_func_$ac_item"   ;;
31752        struct ) ac_var="ac_cv_struct_$ac_item" ;;
31753        define ) ac_var="ac_cv_define_$ac_item" ;;
31754        custom ) ac_var="$ac_item" ;;
31755    esac
31756    eval "ac_val=\$$ac_var"
31757    if test ".$ac_val" != .yes; then
31758        ac_rc=no
31759        break
31760    fi
31761done
31762if test ".$ac_rc" = .yes; then
31763    :
31764
31765      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PROCESS_SHARED locks" >&5
31766$as_echo_n "checking for working PROCESS_SHARED locks... " >&6; }
31767if test "${apr_cv_process_shared_works+set}" = set; then :
31768  $as_echo_n "(cached) " >&6
31769else
31770
31771      if test "$cross_compiling" = yes; then :
31772  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31774as_fn_error "cannot run test program while cross compiling
31775See \`config.log' for more details." "$LINENO" 5; }
31776else
31777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31778/* end confdefs.h.  */
31779
31780#include <sys/types.h>
31781#include <pthread.h>
31782        int main()
31783        {
31784            pthread_mutex_t mutex;
31785            pthread_mutexattr_t attr;
31786            if (pthread_mutexattr_init(&attr))
31787                exit(1);
31788            if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
31789                exit(2);
31790            if (pthread_mutex_init(&mutex, &attr))
31791                exit(3);
31792            if (pthread_mutexattr_destroy(&attr))
31793                exit(4);
31794            if (pthread_mutex_destroy(&mutex))
31795                exit(5);
31796            exit(0);
31797        }
31798_ACEOF
31799if ac_fn_c_try_run "$LINENO"; then :
31800  apr_cv_process_shared_works=yes
31801else
31802  apr_cv_process_shared_works=no
31803fi
31804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31805  conftest.$ac_objext conftest.beam conftest.$ac_ext
31806fi
31807
31808fi
31809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_process_shared_works" >&5
31810$as_echo "$apr_cv_process_shared_works" >&6; }
31811      # Override detection of pthread_mutexattr_setpshared
31812      ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
31813else
31814    :
31815
31816fi
31817
31818
31819    if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
31820
31821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for robust cross-process mutex support" >&5
31822$as_echo_n "checking for robust cross-process mutex support... " >&6; }
31823if test "${apr_cv_mutex_robust_shared+set}" = set; then :
31824  $as_echo_n "(cached) " >&6
31825else
31826  if test "$cross_compiling" = yes; then :
31827  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31829as_fn_error "cannot run test program while cross compiling
31830See \`config.log' for more details." "$LINENO" 5; }
31831else
31832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31833/* end confdefs.h.  */
31834
31835#include <sys/types.h>
31836#include <pthread.h>
31837#include <stdlib.h>
31838
31839int main(int argc, char **argv)
31840{
31841    pthread_mutex_t mutex;
31842    pthread_mutexattr_t attr;
31843
31844    if (pthread_mutexattr_init(&attr))
31845        exit(1);
31846    if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
31847        exit(2);
31848    if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP))
31849        exit(3);
31850    if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
31851        exit(4);
31852    if (pthread_mutex_init(&mutex, &attr))
31853        exit(5);
31854    if (pthread_mutexattr_destroy(&attr))
31855        exit(6);
31856    if (pthread_mutex_destroy(&mutex))
31857        exit(7);
31858
31859    exit(0);
31860}
31861_ACEOF
31862if ac_fn_c_try_run "$LINENO"; then :
31863  apr_cv_mutex_robust_shared=yes
31864else
31865  apr_cv_mutex_robust_shared=no
31866fi
31867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31868  conftest.$ac_objext conftest.beam conftest.$ac_ext
31869fi
31870
31871fi
31872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_robust_shared" >&5
31873$as_echo "$apr_cv_mutex_robust_shared" >&6; }
31874
31875if test "$apr_cv_mutex_robust_shared" = "yes"; then
31876
31877$as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST 1" >>confdefs.h
31878
31879fi
31880
31881    fi
31882fi
31883
31884# See which lock mechanisms we can support on this system.
31885ac_rc=yes
31886for ac_spec in header:semaphore.h func:sem_open func:sem_close              func:sem_unlink func:sem_post func:sem_wait; do
31887    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
31888    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
31889    case $ac_type in
31890        header )
31891            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
31892            ac_var="ac_cv_header_$ac_item"
31893            ;;
31894        file )
31895            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
31896            ac_var="ac_cv_file_$ac_item"
31897            ;;
31898        func )   ac_var="ac_cv_func_$ac_item"   ;;
31899        struct ) ac_var="ac_cv_struct_$ac_item" ;;
31900        define ) ac_var="ac_cv_define_$ac_item" ;;
31901        custom ) ac_var="$ac_item" ;;
31902    esac
31903    eval "ac_val=\$$ac_var"
31904    if test ".$ac_val" != .yes; then
31905        ac_rc=no
31906        break
31907    fi
31908done
31909if test ".$ac_rc" = .yes; then
31910    :
31911    hasposixser="1"
31912else
31913    :
31914    hasposixser="0"
31915fi
31916
31917ac_rc=yes
31918for ac_spec in func:semget func:semctl define:SEM_UNDO; do
31919    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
31920    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
31921    case $ac_type in
31922        header )
31923            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
31924            ac_var="ac_cv_header_$ac_item"
31925            ;;
31926        file )
31927            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
31928            ac_var="ac_cv_file_$ac_item"
31929            ;;
31930        func )   ac_var="ac_cv_func_$ac_item"   ;;
31931        struct ) ac_var="ac_cv_struct_$ac_item" ;;
31932        define ) ac_var="ac_cv_define_$ac_item" ;;
31933        custom ) ac_var="$ac_item" ;;
31934    esac
31935    eval "ac_val=\$$ac_var"
31936    if test ".$ac_val" != .yes; then
31937        ac_rc=no
31938        break
31939    fi
31940done
31941if test ".$ac_rc" = .yes; then
31942    :
31943    hassysvser="1"
31944else
31945    :
31946    hassysvser="0"
31947fi
31948
31949ac_rc=yes
31950for ac_spec in func:flock define:LOCK_EX; do
31951    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
31952    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
31953    case $ac_type in
31954        header )
31955            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
31956            ac_var="ac_cv_header_$ac_item"
31957            ;;
31958        file )
31959            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
31960            ac_var="ac_cv_file_$ac_item"
31961            ;;
31962        func )   ac_var="ac_cv_func_$ac_item"   ;;
31963        struct ) ac_var="ac_cv_struct_$ac_item" ;;
31964        define ) ac_var="ac_cv_define_$ac_item" ;;
31965        custom ) ac_var="$ac_item" ;;
31966    esac
31967    eval "ac_val=\$$ac_var"
31968    if test ".$ac_val" != .yes; then
31969        ac_rc=no
31970        break
31971    fi
31972done
31973if test ".$ac_rc" = .yes; then
31974    :
31975    hasflockser="1"
31976else
31977    :
31978    hasflockser="0"
31979fi
31980
31981ac_rc=yes
31982for ac_spec in header:fcntl.h define:F_SETLK; do
31983    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
31984    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
31985    case $ac_type in
31986        header )
31987            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
31988            ac_var="ac_cv_header_$ac_item"
31989            ;;
31990        file )
31991            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
31992            ac_var="ac_cv_file_$ac_item"
31993            ;;
31994        func )   ac_var="ac_cv_func_$ac_item"   ;;
31995        struct ) ac_var="ac_cv_struct_$ac_item" ;;
31996        define ) ac_var="ac_cv_define_$ac_item" ;;
31997        custom ) ac_var="$ac_item" ;;
31998    esac
31999    eval "ac_val=\$$ac_var"
32000    if test ".$ac_val" != .yes; then
32001        ac_rc=no
32002        break
32003    fi
32004done
32005if test ".$ac_rc" = .yes; then
32006    :
32007    hasfcntlser="1"
32008else
32009    :
32010    hasfcntlser="0"
32011fi
32012
32013# note: the current APR use of shared mutex requires /dev/zero
32014ac_rc=yes
32015for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED              func:pthread_mutexattr_setpshared              file:/dev/zero; do
32016    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
32017    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
32018    case $ac_type in
32019        header )
32020            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
32021            ac_var="ac_cv_header_$ac_item"
32022            ;;
32023        file )
32024            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
32025            ac_var="ac_cv_file_$ac_item"
32026            ;;
32027        func )   ac_var="ac_cv_func_$ac_item"   ;;
32028        struct ) ac_var="ac_cv_struct_$ac_item" ;;
32029        define ) ac_var="ac_cv_define_$ac_item" ;;
32030        custom ) ac_var="$ac_item" ;;
32031    esac
32032    eval "ac_val=\$$ac_var"
32033    if test ".$ac_val" != .yes; then
32034        ac_rc=no
32035        break
32036    fi
32037done
32038if test ".$ac_rc" = .yes; then
32039    :
32040    hasprocpthreadser="1"
32041else
32042    :
32043    hasprocpthreadser="0"
32044fi
32045
32046ac_rc=yes
32047for ac_spec in header:OS.h func:create_sem; do
32048    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
32049    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
32050    case $ac_type in
32051        header )
32052            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
32053            ac_var="ac_cv_header_$ac_item"
32054            ;;
32055        file )
32056            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
32057            ac_var="ac_cv_file_$ac_item"
32058            ;;
32059        func )   ac_var="ac_cv_func_$ac_item"   ;;
32060        struct ) ac_var="ac_cv_struct_$ac_item" ;;
32061        define ) ac_var="ac_cv_define_$ac_item" ;;
32062        custom ) ac_var="$ac_item" ;;
32063    esac
32064    eval "ac_val=\$$ac_var"
32065    if test ".$ac_val" != .yes; then
32066        ac_rc=no
32067        break
32068    fi
32069done
32070if test ".$ac_rc" = .yes; then
32071    :
32072    hasbeossem="1"
32073else
32074    :
32075    hasbeossem="0"
32076fi
32077
32078
32079# See which lock mechanism we'll select by default on this system.
32080# The last APR_DECIDE to execute sets the default.
32081# At this stage, we match the ordering in Apache 1.3
32082# which is (highest to lowest): sysvsem -> fcntl -> flock.
32083# POSIX semaphores and cross-process pthread mutexes are not
32084# used by default since they have less desirable behaviour when
32085# e.g. a process holding the mutex segfaults.
32086# The BEOSSEM decision doesn't require any substitutions but is
32087# included here to prevent the fcntl() branch being selected
32088# from the decision making.
32089ac_decision_item='apr_lock implementation method'
32090ac_decision_msg='FAILED'
32091ac_decision=''
32092
32093ac_rc=yes
32094for ac_spec in func:flock define:LOCK_EX; do
32095    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
32096    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
32097    case $ac_type in
32098        header )
32099            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
32100            ac_var="ac_cv_header_$ac_item"
32101            ;;
32102        file )
32103            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
32104            ac_var="ac_cv_file_$ac_item"
32105            ;;
32106        func )   ac_var="ac_cv_func_$ac_item"   ;;
32107        struct ) ac_var="ac_cv_struct_$ac_item" ;;
32108        define ) ac_var="ac_cv_define_$ac_item" ;;
32109        custom ) ac_var="$ac_item" ;;
32110    esac
32111    eval "ac_val=\$$ac_var"
32112    if test ".$ac_val" != .yes; then
32113        ac_rc=no
32114        break
32115    fi
32116done
32117if test ".$ac_rc" = .yes; then
32118    :
32119
32120ac_decision='USE_FLOCK_SERIALIZE'
32121ac_decision_msg='4.2BSD-style flock()'
32122ac_decision_USE_FLOCK_SERIALIZE=yes
32123ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()'
32124
32125else
32126    :
32127
32128fi
32129
32130ac_rc=yes
32131for ac_spec in header:fcntl.h define:F_SETLK; do
32132    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
32133    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
32134    case $ac_type in
32135        header )
32136            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
32137            ac_var="ac_cv_header_$ac_item"
32138            ;;
32139        file )
32140            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
32141            ac_var="ac_cv_file_$ac_item"
32142            ;;
32143        func )   ac_var="ac_cv_func_$ac_item"   ;;
32144        struct ) ac_var="ac_cv_struct_$ac_item" ;;
32145        define ) ac_var="ac_cv_define_$ac_item" ;;
32146        custom ) ac_var="$ac_item" ;;
32147    esac
32148    eval "ac_val=\$$ac_var"
32149    if test ".$ac_val" != .yes; then
32150        ac_rc=no
32151        break
32152    fi
32153done
32154if test ".$ac_rc" = .yes; then
32155    :
32156
32157ac_decision='USE_FCNTL_SERIALIZE'
32158ac_decision_msg='SVR4-style fcntl()'
32159ac_decision_USE_FCNTL_SERIALIZE=yes
32160ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()'
32161
32162else
32163    :
32164
32165fi
32166
32167ac_rc=yes
32168for ac_spec in func:semget func:semctl define:SEM_UNDO; do
32169    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
32170    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
32171    case $ac_type in
32172        header )
32173            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
32174            ac_var="ac_cv_header_$ac_item"
32175            ;;
32176        file )
32177            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
32178            ac_var="ac_cv_file_$ac_item"
32179            ;;
32180        func )   ac_var="ac_cv_func_$ac_item"   ;;
32181        struct ) ac_var="ac_cv_struct_$ac_item" ;;
32182        define ) ac_var="ac_cv_define_$ac_item" ;;
32183        custom ) ac_var="$ac_item" ;;
32184    esac
32185    eval "ac_val=\$$ac_var"
32186    if test ".$ac_val" != .yes; then
32187        ac_rc=no
32188        break
32189    fi
32190done
32191if test ".$ac_rc" = .yes; then
32192    :
32193
32194ac_decision='USE_SYSVSEM_SERIALIZE'
32195ac_decision_msg='SysV IPC semget()'
32196ac_decision_USE_SYSVSEM_SERIALIZE=yes
32197ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()'
32198
32199else
32200    :
32201
32202fi
32203
32204ac_rc=yes
32205for ac_spec in header:OS.h func:create_sem; do
32206    ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
32207    ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
32208    case $ac_type in
32209        header )
32210            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
32211            ac_var="ac_cv_header_$ac_item"
32212            ;;
32213        file )
32214            ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
32215            ac_var="ac_cv_file_$ac_item"
32216            ;;
32217        func )   ac_var="ac_cv_func_$ac_item"   ;;
32218        struct ) ac_var="ac_cv_struct_$ac_item" ;;
32219        define ) ac_var="ac_cv_define_$ac_item" ;;
32220        custom ) ac_var="$ac_item" ;;
32221    esac
32222    eval "ac_val=\$$ac_var"
32223    if test ".$ac_val" != .yes; then
32224        ac_rc=no
32225        break
32226    fi
32227done
32228if test ".$ac_rc" = .yes; then
32229    :
32230
32231ac_decision='USE_BEOSSEM'
32232ac_decision_msg='BeOS Semaphores'
32233ac_decision_USE_BEOSSEM=yes
32234ac_decision_USE_BEOSSEM_msg='BeOS Semaphores'
32235
32236else
32237    :
32238
32239fi
32240
32241if test "x$apr_lock_method" != "x"; then
32242    ac_decision="$apr_lock_method"
32243eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
32244
32245fi
32246if test ".$ac_decision" = .; then
32247    echo "$0:Error: decision on $ac_decision_item failed" 1>&2
32248    exit 1
32249else
32250    if test ".$ac_decision_msg" = .; then
32251        ac_decision_msg="$ac_decision"
32252    fi
32253    cat >>confdefs.h <<_ACEOF
32254#define ${ac_decision_item} 1
32255_ACEOF
32256
32257    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
32258$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
32259fi
32260
32261cat >>confdefs.h <<_ACEOF
32262#define $ac_decision 1
32263_ACEOF
32264
32265
32266flockser="0"
32267sysvser="0"
32268posixser="0"
32269procpthreadser="0"
32270fcntlser="0"
32271case $ac_decision in
32272    USE_FLOCK_SERIALIZE )
32273        flockser="1"
32274        ;;
32275    USE_FCNTL_SERIALIZE )
32276        fcntlser="1"
32277        ;;
32278    USE_SYSVSEM_SERIALIZE )
32279        sysvser="1"
32280        ;;
32281    USE_POSIXSEM_SERIALIZE )
32282        posixser="1"
32283        ;;
32284    USE_PROC_PTHREAD_SERIALIZE )
32285        procpthreadser="1"
32286        ;;
32287    USE_BEOSSEM )
32288        beossem="1"
32289        ;;
32290esac
32291
32292if test $hasfcntlser = "1"; then
32293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl returns EACCES when F_SETLK is already held" >&5
32294$as_echo_n "checking if fcntl returns EACCES when F_SETLK is already held... " >&6; }
32295if test "$cross_compiling" = yes; then :
32296  apr_fcntl_tryacquire_eacces=0
32297else
32298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32299/* end confdefs.h.  */
32300
32301#ifdef HAVE_STDLIB_H
32302#include <stdlib.h>
32303#endif
32304#ifdef HAVE_SYS_TYPES_H
32305#include <sys/types.h>
32306#endif
32307#ifdef HAVE_SYS_STAT_H
32308#include <sys/stat.h>
32309#endif
32310#ifdef HAVE_SYS_WAIT_H
32311#include <sys/wait.h>
32312#endif
32313#if defined(HAVE_UNISTD_H)
32314#include <unistd.h>
32315#endif
32316#include <fcntl.h>
32317#include <errno.h>
32318
32319int fd;
32320struct flock proc_mutex_lock_it = {0};
32321const char *fname = "conftest.fcntl";
32322
32323int main()
32324{
32325    int rc, status;;
32326    proc_mutex_lock_it.l_whence = SEEK_SET;   /* from current point */
32327    proc_mutex_lock_it.l_type = F_WRLCK;      /* set exclusive/write lock */
32328
32329    fd = creat(fname, S_IRWXU);
32330    unlink(fname);
32331
32332    if (rc = lockit()) {
32333        exit(-1);
32334    }
32335
32336    if (fork()) {
32337        wait(&status);
32338    }
32339    else {
32340      return(lockit());
32341    }
32342
32343    close(fd);
32344    exit(WEXITSTATUS(status) != EACCES);
32345}
32346
32347int lockit() {
32348    int rc;
32349    do {
32350        rc = fcntl(fd, F_SETLK, &proc_mutex_lock_it);
32351    } while ( rc < 0 && errno == EINTR);
32352
32353    return (rc < 0) ? errno : 0;
32354}
32355_ACEOF
32356if ac_fn_c_try_run "$LINENO"; then :
32357  apr_fcntl_tryacquire_eacces=1
32358else
32359  apr_fcntl_tryacquire_eacces=0
32360fi
32361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32362  conftest.$ac_objext conftest.beam conftest.$ac_ext
32363fi
32364
32365fi
32366
32367if test "$apr_fcntl_tryacquire_eacces" = "1"; then
32368
32369$as_echo "#define FCNTL_TRYACQUIRE_EACCES 1" >>confdefs.h
32370
32371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32372$as_echo "yes" >&6; }
32373else
32374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32375$as_echo "no" >&6; }
32376fi
32377
32378
32379
32380
32381
32382
32383
32384
32385
32386
32387
32388
32389
32390
32391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if all interprocess locks affect threads" >&5
32392$as_echo_n "checking if all interprocess locks affect threads... " >&6; }
32393if test "x$apr_process_lock_is_global" = "xyes"; then
32394    proclockglobal="1"
32395    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32396$as_echo "yes" >&6; }
32397else
32398    proclockglobal="0"
32399    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32400$as_echo "no" >&6; }
32401fi
32402
32403
32404
32405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sems affect threads in the same process" >&5
32406$as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; }
32407if test "x$apr_posixsem_is_global" = "xyes"; then
32408
32409$as_echo "#define POSIXSEM_IS_GLOBAL 1" >>confdefs.h
32410
32411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32412$as_echo "yes" >&6; }
32413else
32414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32415$as_echo "no" >&6; }
32416fi
32417
32418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SysV sems affect threads in the same process" >&5
32419$as_echo_n "checking if SysV sems affect threads in the same process... " >&6; }
32420if test "x$apr_sysvsem_is_global" = "xyes"; then
32421
32422$as_echo "#define SYSVSEM_IS_GLOBAL 1" >>confdefs.h
32423
32424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32425$as_echo "yes" >&6; }
32426else
32427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32428$as_echo "no" >&6; }
32429fi
32430
32431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl locks affect threads in the same process" >&5
32432$as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; }
32433if test "x$apr_fcntl_is_global" = "xyes"; then
32434
32435$as_echo "#define FCNTL_IS_GLOBAL 1" >>confdefs.h
32436
32437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32438$as_echo "yes" >&6; }
32439else
32440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32441$as_echo "no" >&6; }
32442fi
32443
32444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5
32445$as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
32446if test "x$apr_flock_is_global" = "xyes"; then
32447
32448$as_echo "#define FLOCK_IS_GLOBAL 1" >>confdefs.h
32449
32450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32451$as_echo "yes" >&6; }
32452else
32453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32454$as_echo "no" >&6; }
32455fi
32456
32457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for entropy source" >&5
32458$as_echo_n "checking for entropy source... " >&6; }
32459
32460why_no_rand=""
32461
32462
32463# Check whether --with-egd was given.
32464if test "${with_egd+set}" = set; then :
32465  withval=$with_egd;
32466$as_echo "#define HAVE_EGD 1" >>confdefs.h
32467
32468    if test "$withval" = "yes"; then
32469
32470cat >>confdefs.h <<_ACEOF
32471#define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
32472_ACEOF
32473
32474    else
32475        cat >>confdefs.h <<_ACEOF
32476#define EGD_DEFAULT_SOCKET "$withval"
32477_ACEOF
32478
32479    fi
32480    { $as_echo "$as_me:${as_lineno-$LINENO}: result: EGD-compatible daemon" >&5
32481$as_echo "EGD-compatible daemon" >&6; }
32482    rand="1"
32483
32484fi
32485
32486
32487if test "$rand" != "1"; then
32488
32489# Check whether --with-devrandom was given.
32490if test "${with_devrandom+set}" = set; then :
32491  withval=$with_devrandom;  apr_devrandom="$withval"
32492else
32493   apr_devrandom="yes"
32494fi
32495
32496
32497  if test "$apr_devrandom" = "yes"; then
32498    # /dev/random on OpenBSD doesn't provide random data, so
32499    # prefer /dev/arandom, which does; see random(4).
32500    for f in /dev/arandom /dev/urandom /dev/random; do
32501      if test -r $f; then
32502        apr_devrandom=$f
32503        rand=1
32504        break
32505      fi
32506    done
32507  elif test "$apr_devrandom" != "no"; then
32508    if test -r "$apr_devrandom"; then
32509      rand="1"
32510    else
32511      as_fn_error "$apr_devrandom not found or unreadable." "$LINENO" 5
32512    fi
32513  fi
32514
32515  if test "$rand" = "1"; then
32516    case $host in
32517      *os390)
32518        if test $os_version -lt 1700; then
32519          rand="0"
32520          why_no_rand=" ($apr_devrandom unusable on z/OS before V1R7)"
32521        fi
32522        ;;
32523    esac
32524  fi
32525
32526  if test "$rand" = "1"; then
32527
32528cat >>confdefs.h <<_ACEOF
32529#define DEV_RANDOM "$apr_devrandom"
32530_ACEOF
32531
32532    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_devrandom" >&5
32533$as_echo "$apr_devrandom" >&6; }
32534  fi
32535fi
32536
32537if test "$rand" != "1"; then
32538    case $host in
32539        # we have built in support for OS/2
32540        *-os2*)
32541            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS/2 builtin random" >&5
32542$as_echo "Using OS/2 builtin random" >&6; }
32543            rand="1"
32544            ;;
32545        *)
32546            if test "$rand" != "1"; then
32547              if test "$ac_cv_lib_truerand_main" = "yes"; then
32548
32549$as_echo "#define HAVE_TRUERAND 1" >>confdefs.h
32550
32551                { $as_echo "$as_me:${as_lineno-$LINENO}: result: truerand" >&5
32552$as_echo "truerand" >&6; }
32553                rand="1"
32554              else
32555                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found$why_no_rand" >&5
32556$as_echo "not found$why_no_rand" >&6; }
32557                rand="0"
32558              fi
32559            fi
32560            ;;
32561    esac
32562fi
32563
32564
32565
32566echo "${nl}Checking for File Info Support..."
32567ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "
32568#ifdef HAVE_SYS_TYPES_H
32569#include <sys/types.h>
32570#endif
32571#ifdef HAVE_SYS_STAT_H
32572#include <sys/stat.h>
32573#endif
32574#ifdef HAVE_UNISTD_H
32575#include <unistd.h>
32576#endif
32577"
32578if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
32579
32580cat >>confdefs.h <<_ACEOF
32581#define HAVE_STRUCT_STAT_ST_BLOCKS 1
32582_ACEOF
32583
32584
32585fi
32586ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "
32587#ifdef HAVE_SYS_TYPES_H
32588#include <sys/types.h>
32589#endif
32590#ifdef HAVE_SYS_STAT_H
32591#include <sys/stat.h>
32592#endif
32593#ifdef HAVE_UNISTD_H
32594#include <unistd.h>
32595#endif
32596"
32597if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
32598
32599cat >>confdefs.h <<_ACEOF
32600#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
32601_ACEOF
32602
32603
32604fi
32605ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "
32606#ifdef HAVE_SYS_TYPES_H
32607#include <sys/types.h>
32608#endif
32609#ifdef HAVE_SYS_STAT_H
32610#include <sys/stat.h>
32611#endif
32612#ifdef HAVE_UNISTD_H
32613#include <unistd.h>
32614#endif
32615"
32616if test "x$ac_cv_member_struct_stat_st_ctimensec" = x""yes; then :
32617
32618cat >>confdefs.h <<_ACEOF
32619#define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
32620_ACEOF
32621
32622
32623fi
32624ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
32625#ifdef HAVE_SYS_TYPES_H
32626#include <sys/types.h>
32627#endif
32628#ifdef HAVE_SYS_STAT_H
32629#include <sys/stat.h>
32630#endif
32631#ifdef HAVE_UNISTD_H
32632#include <unistd.h>
32633#endif
32634"
32635if test "x$ac_cv_member_struct_stat_st_mtimensec" = x""yes; then :
32636
32637cat >>confdefs.h <<_ACEOF
32638#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
32639_ACEOF
32640
32641
32642fi
32643ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "
32644#ifdef HAVE_SYS_TYPES_H
32645#include <sys/types.h>
32646#endif
32647#ifdef HAVE_SYS_STAT_H
32648#include <sys/stat.h>
32649#endif
32650#ifdef HAVE_UNISTD_H
32651#include <unistd.h>
32652#endif
32653"
32654if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
32655
32656cat >>confdefs.h <<_ACEOF
32657#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
32658_ACEOF
32659
32660
32661fi
32662ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "
32663#ifdef HAVE_SYS_TYPES_H
32664#include <sys/types.h>
32665#endif
32666#ifdef HAVE_SYS_STAT_H
32667#include <sys/stat.h>
32668#endif
32669#ifdef HAVE_UNISTD_H
32670#include <unistd.h>
32671#endif
32672"
32673if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = x""yes; then :
32674
32675cat >>confdefs.h <<_ACEOF
32676#define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
32677_ACEOF
32678
32679
32680fi
32681ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
32682#ifdef HAVE_SYS_TYPES_H
32683#include <sys/types.h>
32684#endif
32685#ifdef HAVE_SYS_STAT_H
32686#include <sys/stat.h>
32687#endif
32688#ifdef HAVE_UNISTD_H
32689#include <unistd.h>
32690#endif
32691"
32692if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = x""yes; then :
32693
32694cat >>confdefs.h <<_ACEOF
32695#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
32696_ACEOF
32697
32698
32699fi
32700ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "
32701#ifdef HAVE_SYS_TYPES_H
32702#include <sys/types.h>
32703#endif
32704#ifdef HAVE_SYS_STAT_H
32705#include <sys/stat.h>
32706#endif
32707#ifdef HAVE_UNISTD_H
32708#include <unistd.h>
32709#endif
32710"
32711if test "x$ac_cv_member_struct_stat_st_atime_n" = x""yes; then :
32712
32713cat >>confdefs.h <<_ACEOF
32714#define HAVE_STRUCT_STAT_ST_ATIME_N 1
32715_ACEOF
32716
32717
32718fi
32719ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime_n" "ac_cv_member_struct_stat_st_ctime_n" "
32720#ifdef HAVE_SYS_TYPES_H
32721#include <sys/types.h>
32722#endif
32723#ifdef HAVE_SYS_STAT_H
32724#include <sys/stat.h>
32725#endif
32726#ifdef HAVE_UNISTD_H
32727#include <unistd.h>
32728#endif
32729"
32730if test "x$ac_cv_member_struct_stat_st_ctime_n" = x""yes; then :
32731
32732cat >>confdefs.h <<_ACEOF
32733#define HAVE_STRUCT_STAT_ST_CTIME_N 1
32734_ACEOF
32735
32736
32737fi
32738ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "
32739#ifdef HAVE_SYS_TYPES_H
32740#include <sys/types.h>
32741#endif
32742#ifdef HAVE_SYS_STAT_H
32743#include <sys/stat.h>
32744#endif
32745#ifdef HAVE_UNISTD_H
32746#include <unistd.h>
32747#endif
32748"
32749if test "x$ac_cv_member_struct_stat_st_mtime_n" = x""yes; then :
32750
32751cat >>confdefs.h <<_ACEOF
32752#define HAVE_STRUCT_STAT_ST_MTIME_N 1
32753_ACEOF
32754
32755
32756fi
32757
32758
32759
32760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inode member of struct dirent" >&5
32761$as_echo_n "checking for inode member of struct dirent... " >&6; }
32762if test "${apr_cv_dirent_inode+set}" = set; then :
32763  $as_echo_n "(cached) " >&6
32764else
32765
32766apr_cv_dirent_inode=no
32767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32768/* end confdefs.h.  */
32769
32770#include <sys/types.h>
32771#include <dirent.h>
32772
32773int
32774main ()
32775{
32776
32777#ifdef d_ino
32778#undef d_ino
32779#endif
32780struct dirent de; de.d_fileno;
32781
32782  ;
32783  return 0;
32784}
32785_ACEOF
32786if ac_fn_c_try_compile "$LINENO"; then :
32787  apr_cv_dirent_inode=d_fileno
32788fi
32789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32790if test "$apr_cv_dirent_inode" = "no"; then
32791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32792/* end confdefs.h.  */
32793
32794#include <sys/types.h>
32795#include <dirent.h>
32796
32797int
32798main ()
32799{
32800
32801#ifdef d_fileno
32802#undef d_fileno
32803#endif
32804struct dirent de; de.d_ino;
32805
32806  ;
32807  return 0;
32808}
32809_ACEOF
32810if ac_fn_c_try_compile "$LINENO"; then :
32811  apr_cv_dirent_inode=d_ino
32812fi
32813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32814fi
32815
32816fi
32817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_inode" >&5
32818$as_echo "$apr_cv_dirent_inode" >&6; }
32819if test "$apr_cv_dirent_inode" != "no"; then
32820
32821cat >>confdefs.h <<_ACEOF
32822#define DIRENT_INODE $apr_cv_dirent_inode
32823_ACEOF
32824
32825fi
32826
32827
32828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file type member of struct dirent" >&5
32829$as_echo_n "checking for file type member of struct dirent... " >&6; }
32830if test "${apr_cv_dirent_type+set}" = set; then :
32831  $as_echo_n "(cached) " >&6
32832else
32833
32834apr_cv_dirent_type=no
32835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32836/* end confdefs.h.  */
32837
32838#include <sys/types.h>
32839#include <dirent.h>
32840
32841int
32842main ()
32843{
32844
32845struct dirent de; de.d_type = DT_REG;
32846
32847  ;
32848  return 0;
32849}
32850_ACEOF
32851if ac_fn_c_try_compile "$LINENO"; then :
32852  apr_cv_dirent_type=d_type
32853fi
32854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32855
32856fi
32857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_type" >&5
32858$as_echo "$apr_cv_dirent_type" >&6; }
32859if test "$apr_cv_dirent_type" != "no"; then
32860
32861cat >>confdefs.h <<_ACEOF
32862#define DIRENT_TYPE $apr_cv_dirent_type
32863_ACEOF
32864
32865fi
32866
32867
32868echo "${nl}Checking for OS UUID Support..."
32869
32870for ac_header in uuid.h uuid/uuid.h sys/uuid.h
32871do :
32872  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32873ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
32874eval as_val=\$$as_ac_Header
32875   if test "x$as_val" = x""yes; then :
32876  cat >>confdefs.h <<_ACEOF
32877#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32878_ACEOF
32879 break
32880fi
32881
32882done
32883
32884
32885apr_revert_save_LIBS=$LIBS
32886
32887# Prefer the flavor(s) that live in libc;
32888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
32889$as_echo_n "checking for library containing uuid_create... " >&6; }
32890if test "${ac_cv_search_uuid_create+set}" = set; then :
32891  $as_echo_n "(cached) " >&6
32892else
32893  ac_func_search_save_LIBS=$LIBS
32894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32895/* end confdefs.h.  */
32896
32897/* Override any GCC internal prototype to avoid an error.
32898   Use char because int might match the return type of a GCC
32899   builtin and then its argument prototype would still apply.  */
32900#ifdef __cplusplus
32901extern "C"
32902#endif
32903char uuid_create ();
32904int
32905main ()
32906{
32907return uuid_create ();
32908  ;
32909  return 0;
32910}
32911_ACEOF
32912for ac_lib in '' uuid; do
32913  if test -z "$ac_lib"; then
32914    ac_res="none required"
32915  else
32916    ac_res=-l$ac_lib
32917    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32918  fi
32919  if ac_fn_c_try_link "$LINENO"; then :
32920  ac_cv_search_uuid_create=$ac_res
32921fi
32922rm -f core conftest.err conftest.$ac_objext \
32923    conftest$ac_exeext
32924  if test "${ac_cv_search_uuid_create+set}" = set; then :
32925  break
32926fi
32927done
32928if test "${ac_cv_search_uuid_create+set}" = set; then :
32929
32930else
32931  ac_cv_search_uuid_create=no
32932fi
32933rm conftest.$ac_ext
32934LIBS=$ac_func_search_save_LIBS
32935fi
32936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
32937$as_echo "$ac_cv_search_uuid_create" >&6; }
32938ac_res=$ac_cv_search_uuid_create
32939if test "$ac_res" != no; then :
32940  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32941
32942fi
32943
32944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
32945$as_echo_n "checking for library containing uuid_generate... " >&6; }
32946if test "${ac_cv_search_uuid_generate+set}" = set; then :
32947  $as_echo_n "(cached) " >&6
32948else
32949  ac_func_search_save_LIBS=$LIBS
32950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32951/* end confdefs.h.  */
32952
32953/* Override any GCC internal prototype to avoid an error.
32954   Use char because int might match the return type of a GCC
32955   builtin and then its argument prototype would still apply.  */
32956#ifdef __cplusplus
32957extern "C"
32958#endif
32959char uuid_generate ();
32960int
32961main ()
32962{
32963return uuid_generate ();
32964  ;
32965  return 0;
32966}
32967_ACEOF
32968for ac_lib in '' uuid; do
32969  if test -z "$ac_lib"; then
32970    ac_res="none required"
32971  else
32972    ac_res=-l$ac_lib
32973    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32974  fi
32975  if ac_fn_c_try_link "$LINENO"; then :
32976  ac_cv_search_uuid_generate=$ac_res
32977fi
32978rm -f core conftest.err conftest.$ac_objext \
32979    conftest$ac_exeext
32980  if test "${ac_cv_search_uuid_generate+set}" = set; then :
32981  break
32982fi
32983done
32984if test "${ac_cv_search_uuid_generate+set}" = set; then :
32985
32986else
32987  ac_cv_search_uuid_generate=no
32988fi
32989rm conftest.$ac_ext
32990LIBS=$ac_func_search_save_LIBS
32991fi
32992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
32993$as_echo "$ac_cv_search_uuid_generate" >&6; }
32994ac_res=$ac_cv_search_uuid_generate
32995if test "$ac_res" != no; then :
32996  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32997
32998fi
32999
33000if test "$ac_cv_search_uuid_create" = "none required" -o \
33001        "$ac_cv_search_uuid_generate" = "none required"; then
33002 LIBS=$apr_revert_save_LIBS
33003fi
33004
33005for ac_func in uuid_create uuid_generate
33006do :
33007  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33008ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33009eval as_val=\$$as_ac_var
33010   if test "x$as_val" = x""yes; then :
33011  cat >>confdefs.h <<_ACEOF
33012#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33013_ACEOF
33014
33015fi
33016done
33017
33018
33019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5
33020$as_echo_n "checking for os uuid usability... " >&6; }
33021if test "${apr_cv_osuuid+set}" = set; then :
33022  $as_echo_n "(cached) " >&6
33023else
33024
33025# Ensure this test closely mirrors misc/unix/rand.c!
33026uuid_includes="
33027#if defined(HAVE_SYS_TYPES_H)
33028#include <sys/types.h>
33029#endif
33030#if defined(HAVE_UNISTD_H)
33031#include <unistd.h>
33032#endif
33033#if defined(HAVE_UUID_H)
33034#include <uuid.h>
33035#elif defined(HAVE_UUID_UUID_H)
33036#include <uuid/uuid.h>
33037#elif defined(HAVE_SYS_UUID_H)
33038#include <sys/uuid.h>
33039#endif
33040"
33041 apr_cv_osuuid=no
33042 if test $ac_cv_func_uuid_create = yes; then
33043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33044/* end confdefs.h.  */
33045$uuid_includes
33046int
33047main ()
33048{
33049
33050    uuid_t g;
33051    uint32_t s;
33052    uuid_create(&g, &s);
33053    if (s == uuid_s_ok) s = 0;
33054
33055  ;
33056  return 0;
33057}
33058_ACEOF
33059if ac_fn_c_try_link "$LINENO"; then :
33060  apr_cv_osuuid=yes
33061else
33062  apr_cv_func_uuid_create=no
33063fi
33064rm -f core conftest.err conftest.$ac_objext \
33065    conftest$ac_exeext conftest.$ac_ext
33066 fi
33067 if test $ac_cv_func_uuid_generate = yes; then
33068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33069/* end confdefs.h.  */
33070$uuid_includes
33071int
33072main ()
33073{
33074
33075    uuid_t g;
33076    uuid_generate(g);
33077
33078  ;
33079  return 0;
33080}
33081_ACEOF
33082if ac_fn_c_try_link "$LINENO"; then :
33083  apr_cv_osuuid=yes
33084else
33085  apr_cv_func_uuid_generate=no
33086fi
33087rm -f core conftest.err conftest.$ac_objext \
33088    conftest$ac_exeext conftest.$ac_ext
33089 fi
33090
33091fi
33092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5
33093$as_echo "$apr_cv_osuuid" >&6; }
33094
33095if test $apr_cv_osuuid = yes; then
33096  osuuid="1"
33097else
33098  osuuid="0"
33099  LIBS=$apr_revert_save_LIBS
33100fi
33101
33102
33103
33104echo "${nl}Checking for Time Support..."
33105
33106ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
33107#include <sys/types.h>
33108#include <time.h>
33109"
33110if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
33111
33112cat >>confdefs.h <<_ACEOF
33113#define HAVE_STRUCT_TM_TM_GMTOFF 1
33114_ACEOF
33115
33116
33117fi
33118ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
33119#include <sys/types.h>
33120#include <time.h>
33121"
33122if test "x$ac_cv_member_struct_tm___tm_gmtoff" = x""yes; then :
33123
33124cat >>confdefs.h <<_ACEOF
33125#define HAVE_STRUCT_TM___TM_GMTOFF 1
33126_ACEOF
33127
33128
33129fi
33130
33131
33132echo "${nl}Checking for Networking support..."
33133
33134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_addr" >&5
33135$as_echo_n "checking for type in_addr... " >&6; }
33136if test "${ac_cv_type_in_addr+set}" = set; then :
33137  $as_echo_n "(cached) " >&6
33138else
33139
33140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33141/* end confdefs.h.  */
33142
33143#ifdef HAVE_SYS_TYPES_H
33144#include <sys/types.h>
33145#endif
33146#ifdef HAVE_NETINET_IN_H
33147#include <netinet/in.h>
33148#endif
33149#ifdef HAVE_WINSOCK2_H
33150#include <winsock2.h>
33151#endif
33152
33153int
33154main ()
33155{
33156
33157 struct in_addr arg;
33158 arg.s_addr = htonl(INADDR_ANY);
33159
33160  ;
33161  return 0;
33162}
33163_ACEOF
33164if ac_fn_c_try_compile "$LINENO"; then :
33165   ac_cv_type_in_addr="yes"
33166else
33167
33168ac_cv_type_in_addr="no"
33169fi
33170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33171
33172fi
33173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr" >&5
33174$as_echo "$ac_cv_type_in_addr" >&6; }
33175
33176if test "$ac_cv_type_in_addr" = "yes"; then
33177  have_in_addr="1"
33178else
33179  have_in_addr="0"
33180fi
33181
33182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fd == socket on this platform" >&5
33183$as_echo_n "checking if fd == socket on this platform... " >&6; }
33184if test "x$file_as_socket" != "x0" ; then
33185    file_as_socket="1";
33186    echo "yes"
33187else
33188    echo "no"
33189fi
33190
33191
33192
33193
33194if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then
33195
33196$as_echo "#define WAITIO_USES_POLL 1" >>confdefs.h
33197
33198fi
33199
33200# Check the types only if we have gethostbyname_r
33201if test "$ac_cv_func_gethostbyname_r" = "yes"; then
33202
33203
33204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of gethostbyname_r routine" >&5
33205$as_echo_n "checking style of gethostbyname_r routine... " >&6; }
33206if test "${ac_cv_gethostbyname_r_style+set}" = set; then :
33207  $as_echo_n "(cached) " >&6
33208else
33209  apr_save_CFLAGS=$CFLAGS
33210 CFLAGS="$CFLAGS $CFLAGS_WARN"
33211 if test "$ac_cv_c_compiler_gnu" = "yes"; then
33212   CFLAGS="$CFLAGS -Werror"
33213 fi
33214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33215/* end confdefs.h.  */
33216#include "confdefs.h"
33217
33218
33219#ifdef HAVE_SYS_TYPES_H
33220#include <sys/types.h>
33221#endif
33222#ifdef HAVE_NETINET_IN_H
33223#include <netinet/in.h>
33224#endif
33225#ifdef HAVE_ARPA_INET_H
33226#include <arpa/inet.h>
33227#endif
33228#ifdef HAVE_NETDB_H
33229#include <netdb.h>
33230#endif
33231#ifdef HAVE_STDLIB_H
33232#include <stdlib.h>
33233#endif
33234
33235  int main(int argc, const char *const *argv) {
33236
33237int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
33238                          (char *) 0, 0, (struct hostent **) 0, &tmp);
33239/* use tmp to suppress the warning */
33240tmp=0;
33241
33242     return 0; }
33243_ACEOF
33244if ac_fn_c_try_compile "$LINENO"; then :
33245  ac_cv_gethostbyname_r_style=glibc2
33246else
33247  ac_cv_gethostbyname_r_style=none
33248fi
33249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33250 CFLAGS=$apr_save_CFLAGS
33251
33252fi
33253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_style" >&5
33254$as_echo "$ac_cv_gethostbyname_r_style" >&6; }
33255
33256if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
33257
33258$as_echo "#define GETHOSTBYNAME_R_GLIBC2 1" >>confdefs.h
33259
33260fi
33261
33262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking 3rd argument to the gethostbyname_r routines" >&5
33263$as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; }
33264if test "${ac_cv_gethostbyname_r_arg+set}" = set; then :
33265  $as_echo_n "(cached) " >&6
33266else
33267  apr_save_CFLAGS=$CFLAGS
33268 CFLAGS="$CFLAGS $CFLAGS_WARN"
33269 if test "$ac_cv_c_compiler_gnu" = "yes"; then
33270   CFLAGS="$CFLAGS -Werror"
33271 fi
33272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33273/* end confdefs.h.  */
33274#include "confdefs.h"
33275
33276
33277#ifdef HAVE_SYS_TYPES_H
33278#include <sys/types.h>
33279#endif
33280#ifdef HAVE_NETINET_IN_H
33281#include <netinet/in.h>
33282#endif
33283#ifdef HAVE_ARPA_INET_H
33284#include <arpa/inet.h>
33285#endif
33286#ifdef HAVE_NETDB_H
33287#include <netdb.h>
33288#endif
33289#ifdef HAVE_STDLIB_H
33290#include <stdlib.h>
33291#endif
33292
33293  int main(int argc, const char *const *argv) {
33294
33295int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
33296                          (struct hostent_data *) 0);
33297/* use tmp to suppress the warning */
33298tmp=0;
33299
33300     return 0; }
33301_ACEOF
33302if ac_fn_c_try_compile "$LINENO"; then :
33303  ac_cv_gethostbyname_r_arg=hostent_data
33304else
33305  ac_cv_gethostbyname_r_arg=char
33306fi
33307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33308 CFLAGS=$apr_save_CFLAGS
33309
33310fi
33311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_arg" >&5
33312$as_echo "$ac_cv_gethostbyname_r_arg" >&6; }
33313
33314if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
33315
33316$as_echo "#define GETHOSTBYNAME_R_HOSTENT_DATA 1" >>confdefs.h
33317
33318fi
33319
33320fi
33321
33322# Check the types only if we have getservbyname_r
33323if test "$ac_cv_func_getservbyname_r" = "yes"; then
33324
33325
33326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of getservbyname_r routine" >&5
33327$as_echo_n "checking style of getservbyname_r routine... " >&6; }
33328if test "${ac_cv_getservbyname_r_style+set}" = set; then :
33329  $as_echo_n "(cached) " >&6
33330else
33331
33332apr_save_CFLAGS=$CFLAGS
33333 CFLAGS="$CFLAGS $CFLAGS_WARN"
33334 if test "$ac_cv_c_compiler_gnu" = "yes"; then
33335   CFLAGS="$CFLAGS -Werror"
33336 fi
33337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33338/* end confdefs.h.  */
33339#include "confdefs.h"
33340
33341
33342#ifdef HAVE_SYS_TYPES_H
33343#include <sys/types.h>
33344#endif
33345#ifdef HAVE_NETINET_IN_H
33346#include <netinet/in.h>
33347#endif
33348#ifdef HAVE_ARPA_INET_H
33349#include <arpa/inet.h>
33350#endif
33351#ifdef HAVE_NETDB_H
33352#include <netdb.h>
33353#endif
33354#ifdef HAVE_STDLIB_H
33355#include <stdlib.h>
33356#endif
33357
33358  int main(int argc, const char *const *argv) {
33359
33360int tmp = getservbyname_r((const char *) 0, (const char *) 0,
33361                          (struct servent *) 0, (char *) 0, 0,
33362                          (struct servent **) 0);
33363/* use tmp to suppress the warning */
33364tmp=0;
33365
33366     return 0; }
33367_ACEOF
33368if ac_fn_c_try_compile "$LINENO"; then :
33369  ac_cv_getservbyname_r_style=glibc2
33370else
33371  ac_cv_getservbyname_r_style=none
33372fi
33373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33374 CFLAGS=$apr_save_CFLAGS
33375
33376
33377if test "$ac_cv_getservbyname_r_style" = "none"; then
33378            apr_save_CFLAGS=$CFLAGS
33379 CFLAGS="$CFLAGS $CFLAGS_WARN"
33380 if test "$ac_cv_c_compiler_gnu" = "yes"; then
33381   CFLAGS="$CFLAGS -Werror"
33382 fi
33383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33384/* end confdefs.h.  */
33385#include "confdefs.h"
33386
33387
33388    #ifdef HAVE_SYS_TYPES_H
33389    #include <sys/types.h>
33390    #endif
33391    #ifdef HAVE_NETINET_IN_H
33392    #include <netinet/in.h>
33393    #endif
33394    #ifdef HAVE_ARPA_INET_H
33395    #include <arpa/inet.h>
33396    #endif
33397    #ifdef HAVE_NETDB_H
33398    #include <netdb.h>
33399    #endif
33400    #ifdef HAVE_STDLIB_H
33401    #include <stdlib.h>
33402    #endif
33403
33404  int main(int argc, const char *const *argv) {
33405
33406    struct servent *tmp = getservbyname_r((const char *) 0, (const char *) 0,
33407                                          (struct servent *) 0, (char *) 0, 0);
33408    /* use tmp to suppress the warning */
33409    tmp=NULL;
33410
33411     return 0; }
33412_ACEOF
33413if ac_fn_c_try_compile "$LINENO"; then :
33414  ac_cv_getservbyname_r_style=solaris
33415else
33416  ac_cv_getservbyname_r_style=none
33417fi
33418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33419 CFLAGS=$apr_save_CFLAGS
33420
33421fi
33422
33423if test "$ac_cv_getservbyname_r_style" = "none"; then
33424            apr_save_CFLAGS=$CFLAGS
33425 CFLAGS="$CFLAGS $CFLAGS_WARN"
33426 if test "$ac_cv_c_compiler_gnu" = "yes"; then
33427   CFLAGS="$CFLAGS -Werror"
33428 fi
33429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33430/* end confdefs.h.  */
33431#include "confdefs.h"
33432
33433
33434    #ifdef HAVE_SYS_TYPES_H
33435    #include <sys/types.h>
33436    #endif
33437    #ifdef HAVE_NETINET_IN_H
33438    #include <netinet/in.h>
33439    #endif
33440    #ifdef HAVE_ARPA_INET_H
33441    #include <arpa/inet.h>
33442    #endif
33443    #ifdef HAVE_NETDB_H
33444    #include <netdb.h>
33445    #endif
33446    #ifdef HAVE_STDLIB_H
33447    #include <stdlib.h>
33448    #endif
33449
33450  int main(int argc, const char *const *argv) {
33451
33452    int tmp = getservbyname_r((const char *) 0, (const char *) 0,
33453                              (struct servent *) 0, (struct servent_data *) 0);
33454    /* use tmp to suppress the warning */
33455    tmp=0;
33456
33457     return 0; }
33458_ACEOF
33459if ac_fn_c_try_compile "$LINENO"; then :
33460  ac_cv_getservbyname_r_style=osf1
33461else
33462  ac_cv_getservbyname_r_style=none
33463fi
33464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33465 CFLAGS=$apr_save_CFLAGS
33466
33467fi
33468
33469fi
33470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getservbyname_r_style" >&5
33471$as_echo "$ac_cv_getservbyname_r_style" >&6; }
33472
33473if test "$ac_cv_getservbyname_r_style" = "glibc2"; then
33474
33475$as_echo "#define GETSERVBYNAME_R_GLIBC2 1" >>confdefs.h
33476
33477elif test "$ac_cv_getservbyname_r_style" = "solaris"; then
33478
33479$as_echo "#define GETSERVBYNAME_R_SOLARIS 1" >>confdefs.h
33480
33481elif test "$ac_cv_getservbyname_r_style" = "osf1"; then
33482
33483$as_echo "#define GETSERVBYNAME_R_OSF1 1" >>confdefs.h
33484
33485fi
33486
33487fi
33488
33489
33490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
33491$as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; }
33492if test "${ac_cv_tcp_nodelay_inherited+set}" = set; then :
33493  $as_echo_n "(cached) " >&6
33494else
33495
33496  if test "$cross_compiling" = yes; then :
33497
33498    ac_cv_tcp_nodelay_inherited="yes"
33499
33500else
33501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33502/* end confdefs.h.  */
33503
33504#include <stdio.h>
33505#ifdef HAVE_SYS_TYPES_H
33506#include <sys/types.h>
33507#endif
33508#ifdef HAVE_SYS_SOCKET_H
33509#include <sys/socket.h>
33510#endif
33511#ifdef HAVE_NETINET_IN_H
33512#include <netinet/in.h>
33513#endif
33514#ifdef HAVE_NETINET_TCP_H
33515#include <netinet/tcp.h>
33516#endif
33517#ifndef HAVE_SOCKLEN_T
33518typedef int socklen_t;
33519#endif
33520int main(void) {
33521    int listen_s, connected_s, client_s;
33522    int listen_port, rc;
33523    struct sockaddr_in sa;
33524    socklen_t sa_len;
33525    socklen_t option_len;
33526    int option;
33527
33528    listen_s = socket(AF_INET, SOCK_STREAM, 0);
33529    if (listen_s < 0) {
33530        perror("socket");
33531        exit(1);
33532    }
33533    option = 1;
33534    rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option);
33535    if (rc < 0) {
33536        perror("setsockopt TCP_NODELAY");
33537        exit(1);
33538    }
33539    memset(&sa, 0, sizeof sa);
33540    sa.sin_family = AF_INET;
33541#ifdef BEOS
33542    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
33543#endif
33544    /* leave port 0 to get ephemeral */
33545    rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
33546    if (rc < 0) {
33547        perror("bind for ephemeral port");
33548        exit(1);
33549    }
33550    /* find ephemeral port */
33551    sa_len = sizeof(sa);
33552    rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
33553    if (rc < 0) {
33554        perror("getsockname");
33555        exit(1);
33556    }
33557    listen_port = sa.sin_port;
33558    rc = listen(listen_s, 5);
33559    if (rc < 0) {
33560        perror("listen");
33561        exit(1);
33562    }
33563    client_s = socket(AF_INET, SOCK_STREAM, 0);
33564    if (client_s < 0) {
33565        perror("socket");
33566        exit(1);
33567    }
33568    memset(&sa, 0, sizeof sa);
33569    sa.sin_family = AF_INET;
33570    sa.sin_port   = listen_port;
33571#ifdef BEOS
33572    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
33573#endif
33574    /* leave sin_addr all zeros to use loopback */
33575    rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
33576    if (rc < 0) {
33577        perror("connect");
33578        exit(1);
33579    }
33580    sa_len = sizeof sa;
33581    connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
33582    if (connected_s < 0) {
33583        perror("accept");
33584        exit(1);
33585    }
33586    option_len = sizeof option;
33587    rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len);
33588    if (rc < 0) {
33589        perror("getsockopt");
33590        exit(1);
33591    }
33592    if (!option) {
33593        fprintf(stderr, "TCP_NODELAY is not set in the child.\n");
33594        exit(1);
33595    }
33596    return 0;
33597}
33598
33599_ACEOF
33600if ac_fn_c_try_run "$LINENO"; then :
33601
33602    ac_cv_tcp_nodelay_inherited="yes"
33603
33604else
33605
33606    ac_cv_tcp_nodelay_inherited="no"
33607
33608fi
33609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33610  conftest.$ac_objext conftest.beam conftest.$ac_ext
33611fi
33612
33613fi
33614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tcp_nodelay_inherited" >&5
33615$as_echo "$ac_cv_tcp_nodelay_inherited" >&6; }
33616if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
33617    tcp_nodelay_inherited=1
33618else
33619    tcp_nodelay_inherited=0
33620fi
33621
33622
33623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
33624$as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; }
33625if test "${ac_cv_o_nonblock_inherited+set}" = set; then :
33626  $as_echo_n "(cached) " >&6
33627else
33628
33629  if test "$cross_compiling" = yes; then :
33630
33631    ac_cv_o_nonblock_inherited="yes"
33632
33633else
33634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33635/* end confdefs.h.  */
33636
33637#include <stdio.h>
33638#ifdef HAVE_SYS_TYPES_H
33639#include <sys/types.h>
33640#endif
33641#ifdef HAVE_SYS_SOCKET_H
33642#include <sys/socket.h>
33643#endif
33644#ifdef HAVE_NETINET_IN_H
33645#include <netinet/in.h>
33646#endif
33647#ifdef HAVE_NETINET_TCP_H
33648#include <netinet/tcp.h>
33649#endif
33650#ifndef HAVE_SOCKLEN_T
33651typedef int socklen_t;
33652#endif
33653#ifdef HAVE_FCNTL_H
33654#include <fcntl.h>
33655#endif
33656int main(void) {
33657    int listen_s, connected_s, client_s;
33658    int listen_port, rc;
33659    struct sockaddr_in sa;
33660    socklen_t sa_len;
33661
33662    listen_s = socket(AF_INET, SOCK_STREAM, 0);
33663    if (listen_s < 0) {
33664        perror("socket");
33665        exit(1);
33666    }
33667    memset(&sa, 0, sizeof sa);
33668    sa.sin_family = AF_INET;
33669#ifdef BEOS
33670    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
33671#endif
33672    /* leave port 0 to get ephemeral */
33673    rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
33674    if (rc < 0) {
33675        perror("bind for ephemeral port");
33676        exit(1);
33677    }
33678    /* find ephemeral port */
33679    sa_len = sizeof(sa);
33680    rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
33681    if (rc < 0) {
33682        perror("getsockname");
33683        exit(1);
33684    }
33685    listen_port = sa.sin_port;
33686    rc = listen(listen_s, 5);
33687    if (rc < 0) {
33688        perror("listen");
33689        exit(1);
33690    }
33691    rc = fcntl(listen_s, F_SETFL, O_NONBLOCK);
33692    if (rc < 0) {
33693        perror("fcntl(F_SETFL)");
33694        exit(1);
33695    }
33696    client_s = socket(AF_INET, SOCK_STREAM, 0);
33697    if (client_s < 0) {
33698        perror("socket");
33699        exit(1);
33700    }
33701    memset(&sa, 0, sizeof sa);
33702    sa.sin_family = AF_INET;
33703    sa.sin_port   = listen_port;
33704#ifdef BEOS
33705    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
33706#endif
33707    /* leave sin_addr all zeros to use loopback */
33708    rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
33709    if (rc < 0) {
33710        perror("connect");
33711        exit(1);
33712    }
33713    sa_len = sizeof sa;
33714    connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
33715    if (connected_s < 0) {
33716        perror("accept");
33717        exit(1);
33718    }
33719    rc = fcntl(connected_s, F_GETFL, 0);
33720    if (rc < 0) {
33721        perror("fcntl(F_GETFL)");
33722        exit(1);
33723    }
33724    if (!(rc & O_NONBLOCK)) {
33725        fprintf(stderr, "O_NONBLOCK is not set in the child.\n");
33726        exit(1);
33727    }
33728    return 0;
33729}
33730
33731_ACEOF
33732if ac_fn_c_try_run "$LINENO"; then :
33733
33734    ac_cv_o_nonblock_inherited="yes"
33735
33736else
33737
33738    ac_cv_o_nonblock_inherited="no"
33739
33740fi
33741rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33742  conftest.$ac_objext conftest.beam conftest.$ac_ext
33743fi
33744
33745fi
33746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_nonblock_inherited" >&5
33747$as_echo "$ac_cv_o_nonblock_inherited" >&6; }
33748if test "$ac_cv_o_nonblock_inherited" = "yes"; then
33749    o_nonblock_inherited=1
33750else
33751    o_nonblock_inherited=0
33752fi
33753
33754
33755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
33756$as_echo_n "checking whether TCP_NODELAY and TCP_CORK can both be enabled... " >&6; }
33757if test "${apr_cv_tcp_nodelay_with_cork+set}" = set; then :
33758  $as_echo_n "(cached) " >&6
33759else
33760  if test "$cross_compiling" = yes; then :
33761  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33763as_fn_error "cannot run test program while cross compiling
33764See \`config.log' for more details." "$LINENO" 5; }
33765else
33766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33767/* end confdefs.h.  */
33768
33769#ifdef HAVE_SYS_TYPES_H
33770#include <sys/types.h>
33771#endif
33772#ifdef HAVE_SYS_SOCKET_H
33773#include <sys/socket.h>
33774#endif
33775#ifdef HAVE_NETINET_IN_H
33776#include <netinet/in.h>
33777#endif
33778#ifdef HAVE_NETINET_TCP_H
33779#include <netinet/tcp.h>
33780#endif
33781#include <stdio.h>
33782#include <stdlib.h>
33783
33784int
33785main ()
33786{
33787
33788    int fd, flag, rc;
33789
33790    fd = socket(AF_INET, SOCK_STREAM, 0);
33791    if (fd < 0) {
33792       exit(1);
33793    }
33794
33795    flag = 1;
33796    rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof flag);
33797    if (rc < 0) {
33798        perror("setsockopt TCP_NODELAY");
33799        exit(2);
33800    }
33801
33802    flag = 1;
33803    rc = setsockopt(fd, IPPROTO_TCP, TCP_CORK, &flag, sizeof flag);
33804    if (rc < 0) {
33805        perror("setsockopt TCP_CORK");
33806        exit(3);
33807    }
33808
33809    exit(0);
33810
33811  ;
33812  return 0;
33813}
33814_ACEOF
33815if ac_fn_c_try_run "$LINENO"; then :
33816  apr_cv_tcp_nodelay_with_cork=yes
33817else
33818  apr_cv_tcp_nodelay_with_cork=no
33819fi
33820rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33821  conftest.$ac_objext conftest.beam conftest.$ac_ext
33822fi
33823
33824fi
33825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_tcp_nodelay_with_cork" >&5
33826$as_echo "$apr_cv_tcp_nodelay_with_cork" >&6; }
33827
33828if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then
33829
33830$as_echo "#define HAVE_TCP_NODELAY_WITH_CORK 1" >>confdefs.h
33831
33832fi
33833
33834
33835# Look for a way of corking TCP...
33836
33837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CORK in netinet/tcp.h" >&5
33838$as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; }
33839if test "${ac_cv_define_TCP_CORK+set}" = set; then :
33840  $as_echo_n "(cached) " >&6
33841else
33842
33843    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33844/* end confdefs.h.  */
33845
33846#include <netinet/tcp.h>
33847#ifdef TCP_CORK
33848YES_IS_DEFINED
33849#endif
33850
33851_ACEOF
33852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33853  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
33854  ac_cv_define_TCP_CORK=yes
33855else
33856  ac_cv_define_TCP_CORK=no
33857fi
33858rm -f conftest*
33859
33860
33861fi
33862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_CORK" >&5
33863$as_echo "$ac_cv_define_TCP_CORK" >&6; }
33864  if test "$ac_cv_define_TCP_CORK" = "yes"; then
33865
33866$as_echo "#define HAVE_TCP_CORK 1" >>confdefs.h
33867
33868  fi
33869
33870
33871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_NOPUSH in netinet/tcp.h" >&5
33872$as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; }
33873if test "${ac_cv_define_TCP_NOPUSH+set}" = set; then :
33874  $as_echo_n "(cached) " >&6
33875else
33876
33877    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33878/* end confdefs.h.  */
33879
33880#include <netinet/tcp.h>
33881#ifdef TCP_NOPUSH
33882YES_IS_DEFINED
33883#endif
33884
33885_ACEOF
33886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33887  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
33888  ac_cv_define_TCP_NOPUSH=yes
33889else
33890  ac_cv_define_TCP_NOPUSH=no
33891fi
33892rm -f conftest*
33893
33894
33895fi
33896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_NOPUSH" >&5
33897$as_echo "$ac_cv_define_TCP_NOPUSH" >&6; }
33898  if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
33899
33900$as_echo "#define HAVE_TCP_NOPUSH 1" >>confdefs.h
33901
33902  fi
33903
33904apr_tcp_nopush_flag="0"
33905have_corkable_tcp="0"
33906if test "x$ac_cv_define_TCP_CORK" = "xyes"; then
33907    apr_tcp_nopush_flag="TCP_CORK"
33908    have_corkable_tcp="1"
33909else
33910    case $host in
33911        *linux*)
33912            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33913/* end confdefs.h.  */
33914
33915#include <linux/socket.h>
33916#ifdef TCP_CORK
33917yes
33918#endif
33919
33920_ACEOF
33921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33922  $EGREP "yes" >/dev/null 2>&1; then :
33923
33924                apr_tcp_nopush_flag="3"
33925                have_corkable_tcp="1"
33926
33927fi
33928rm -f conftest*
33929
33930            ;;
33931        *)
33932            ;;
33933    esac
33934fi
33935if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then
33936    apr_tcp_nopush_flag="TCP_NOPUSH"
33937    have_corkable_tcp="1"
33938fi
33939
33940
33941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
33942$as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; }
33943if test "${ac_cv_define_SO_ACCEPTFILTER+set}" = set; then :
33944  $as_echo_n "(cached) " >&6
33945else
33946
33947    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33948/* end confdefs.h.  */
33949
33950#include <sys/socket.h>
33951#ifdef SO_ACCEPTFILTER
33952YES_IS_DEFINED
33953#endif
33954
33955_ACEOF
33956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33957  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
33958  ac_cv_define_SO_ACCEPTFILTER=yes
33959else
33960  ac_cv_define_SO_ACCEPTFILTER=no
33961fi
33962rm -f conftest*
33963
33964
33965fi
33966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
33967$as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; }
33968  if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
33969
33970$as_echo "#define HAVE_SO_ACCEPTFILTER 1" >>confdefs.h
33971
33972  fi
33973
33974if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then
33975    acceptfilter="1"
33976else
33977    acceptfilter="0"
33978fi
33979
33980
33981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP is supported" >&5
33982$as_echo_n "checking whether SCTP is supported... " >&6; }
33983if test "${apr_cv_sctp+set}" = set; then :
33984  $as_echo_n "(cached) " >&6
33985else
33986
33987  if test "$cross_compiling" = yes; then :
33988  apr_cv_sctp=no
33989else
33990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33991/* end confdefs.h.  */
33992
33993#ifdef HAVE_SYS_TYPES_H
33994#include <sys/types.h>
33995#endif
33996#ifdef HAVE_SYS_SOCKET_H
33997#include <sys/socket.h>
33998#endif
33999#ifdef HAVE_NETINET_IN_H
34000#include <netinet/in.h>
34001#endif
34002#ifdef HAVE_NETINET_SCTP_H
34003#include <netinet/sctp.h>
34004#endif
34005#ifdef HAVE_NETINET_SCTP_UIO_H
34006#include <netinet/sctp_uio.h>
34007#endif
34008#include <stdlib.h>
34009int main(void) {
34010    int s, opt = 1;
34011    if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0)
34012       exit(1);
34013    if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0)
34014       exit(2);
34015    exit(0);
34016}
34017_ACEOF
34018if ac_fn_c_try_run "$LINENO"; then :
34019  apr_cv_sctp=yes
34020else
34021  apr_cv_sctp=no
34022fi
34023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34024  conftest.$ac_objext conftest.beam conftest.$ac_ext
34025fi
34026
34027fi
34028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sctp" >&5
34029$as_echo "$apr_cv_sctp" >&6; }
34030
34031if test "$apr_cv_sctp" = "yes"; then
34032    have_sctp=1
34033else
34034    have_sctp=0
34035fi
34036
34037
34038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
34039$as_echo_n "checking for struct ip_mreq... " >&6; }
34040if test "${apr_cv_struct_ipmreq+set}" = set; then :
34041  $as_echo_n "(cached) " >&6
34042else
34043
34044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34045/* end confdefs.h.  */
34046
34047#include <sys/types.h>
34048#include <netinet/in.h>
34049
34050int
34051main ()
34052{
34053
34054    struct ip_mreq mip;
34055    mip.imr_interface.s_addr = INADDR_ANY;
34056
34057  ;
34058  return 0;
34059}
34060_ACEOF
34061if ac_fn_c_try_compile "$LINENO"; then :
34062  apr_cv_struct_ipmreq=yes
34063else
34064  apr_cv_struct_ipmreq=no
34065fi
34066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34067fi
34068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_struct_ipmreq" >&5
34069$as_echo "$apr_cv_struct_ipmreq" >&6; }
34070
34071if test $apr_cv_struct_ipmreq = yes; then
34072
34073$as_echo "#define HAVE_STRUCT_IPMREQ 1" >>confdefs.h
34074
34075fi
34076
34077
34078
34079
34080
34081
34082
34083for ac_func in set_h_errno
34084do :
34085  ac_fn_c_check_func "$LINENO" "set_h_errno" "ac_cv_func_set_h_errno"
34086if test "x$ac_cv_func_set_h_errno" = x""yes; then :
34087  cat >>confdefs.h <<_ACEOF
34088#define HAVE_SET_H_ERRNO 1
34089_ACEOF
34090
34091fi
34092done
34093
34094
34095echo "${nl}Checking for IPv6 Networking support..."
34096
34097# Check whether --enable-ipv6 was given.
34098if test "${enable_ipv6+set}" = set; then :
34099  enableval=$enable_ipv6;  if test "$enableval" = "no"; then
34100        user_disabled_ipv6=1
34101    fi
34102else
34103   user_disabled_ipv6=0
34104fi
34105
34106
34107case $host in
34108  *)
34109    broken_ipv6=0
34110esac
34111
34112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
34113$as_echo_n "checking for library containing getaddrinfo... " >&6; }
34114if test "${ac_cv_search_getaddrinfo+set}" = set; then :
34115  $as_echo_n "(cached) " >&6
34116else
34117  ac_func_search_save_LIBS=$LIBS
34118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34119/* end confdefs.h.  */
34120
34121/* Override any GCC internal prototype to avoid an error.
34122   Use char because int might match the return type of a GCC
34123   builtin and then its argument prototype would still apply.  */
34124#ifdef __cplusplus
34125extern "C"
34126#endif
34127char getaddrinfo ();
34128int
34129main ()
34130{
34131return getaddrinfo ();
34132  ;
34133  return 0;
34134}
34135_ACEOF
34136for ac_lib in '' socket inet6; do
34137  if test -z "$ac_lib"; then
34138    ac_res="none required"
34139  else
34140    ac_res=-l$ac_lib
34141    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34142  fi
34143  if ac_fn_c_try_link "$LINENO"; then :
34144  ac_cv_search_getaddrinfo=$ac_res
34145fi
34146rm -f core conftest.err conftest.$ac_objext \
34147    conftest$ac_exeext
34148  if test "${ac_cv_search_getaddrinfo+set}" = set; then :
34149  break
34150fi
34151done
34152if test "${ac_cv_search_getaddrinfo+set}" = set; then :
34153
34154else
34155  ac_cv_search_getaddrinfo=no
34156fi
34157rm conftest.$ac_ext
34158LIBS=$ac_func_search_save_LIBS
34159fi
34160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
34161$as_echo "$ac_cv_search_getaddrinfo" >&6; }
34162ac_res=$ac_cv_search_getaddrinfo
34163if test "$ac_res" != no; then :
34164  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34165
34166fi
34167
34168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gai_strerror" >&5
34169$as_echo_n "checking for library containing gai_strerror... " >&6; }
34170if test "${ac_cv_search_gai_strerror+set}" = set; then :
34171  $as_echo_n "(cached) " >&6
34172else
34173  ac_func_search_save_LIBS=$LIBS
34174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34175/* end confdefs.h.  */
34176
34177/* Override any GCC internal prototype to avoid an error.
34178   Use char because int might match the return type of a GCC
34179   builtin and then its argument prototype would still apply.  */
34180#ifdef __cplusplus
34181extern "C"
34182#endif
34183char gai_strerror ();
34184int
34185main ()
34186{
34187return gai_strerror ();
34188  ;
34189  return 0;
34190}
34191_ACEOF
34192for ac_lib in '' socket inet6; do
34193  if test -z "$ac_lib"; then
34194    ac_res="none required"
34195  else
34196    ac_res=-l$ac_lib
34197    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34198  fi
34199  if ac_fn_c_try_link "$LINENO"; then :
34200  ac_cv_search_gai_strerror=$ac_res
34201fi
34202rm -f core conftest.err conftest.$ac_objext \
34203    conftest$ac_exeext
34204  if test "${ac_cv_search_gai_strerror+set}" = set; then :
34205  break
34206fi
34207done
34208if test "${ac_cv_search_gai_strerror+set}" = set; then :
34209
34210else
34211  ac_cv_search_gai_strerror=no
34212fi
34213rm conftest.$ac_ext
34214LIBS=$ac_func_search_save_LIBS
34215fi
34216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gai_strerror" >&5
34217$as_echo "$ac_cv_search_gai_strerror" >&6; }
34218ac_res=$ac_cv_search_gai_strerror
34219if test "$ac_res" != no; then :
34220  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34221
34222fi
34223
34224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
34225$as_echo_n "checking for library containing getnameinfo... " >&6; }
34226if test "${ac_cv_search_getnameinfo+set}" = set; then :
34227  $as_echo_n "(cached) " >&6
34228else
34229  ac_func_search_save_LIBS=$LIBS
34230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34231/* end confdefs.h.  */
34232
34233/* Override any GCC internal prototype to avoid an error.
34234   Use char because int might match the return type of a GCC
34235   builtin and then its argument prototype would still apply.  */
34236#ifdef __cplusplus
34237extern "C"
34238#endif
34239char getnameinfo ();
34240int
34241main ()
34242{
34243return getnameinfo ();
34244  ;
34245  return 0;
34246}
34247_ACEOF
34248for ac_lib in '' socket inet6; do
34249  if test -z "$ac_lib"; then
34250    ac_res="none required"
34251  else
34252    ac_res=-l$ac_lib
34253    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34254  fi
34255  if ac_fn_c_try_link "$LINENO"; then :
34256  ac_cv_search_getnameinfo=$ac_res
34257fi
34258rm -f core conftest.err conftest.$ac_objext \
34259    conftest$ac_exeext
34260  if test "${ac_cv_search_getnameinfo+set}" = set; then :
34261  break
34262fi
34263done
34264if test "${ac_cv_search_getnameinfo+set}" = set; then :
34265
34266else
34267  ac_cv_search_getnameinfo=no
34268fi
34269rm conftest.$ac_ext
34270LIBS=$ac_func_search_save_LIBS
34271fi
34272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
34273$as_echo "$ac_cv_search_getnameinfo" >&6; }
34274ac_res=$ac_cv_search_getnameinfo
34275if test "$ac_res" != no; then :
34276  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34277
34278fi
34279
34280for ac_func in gai_strerror
34281do :
34282  ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
34283if test "x$ac_cv_func_gai_strerror" = x""yes; then :
34284  cat >>confdefs.h <<_ACEOF
34285#define HAVE_GAI_STRERROR 1
34286_ACEOF
34287
34288fi
34289done
34290
34291
34292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
34293$as_echo_n "checking for working getaddrinfo... " >&6; }
34294if test "${ac_cv_working_getaddrinfo+set}" = set; then :
34295  $as_echo_n "(cached) " >&6
34296else
34297
34298  if test "$cross_compiling" = yes; then :
34299
34300  ac_cv_working_getaddrinfo="yes"
34301
34302else
34303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34304/* end confdefs.h.  */
34305
34306#ifdef HAVE_NETDB_H
34307#include <netdb.h>
34308#endif
34309#ifdef HAVE_STRING_H
34310#include <string.h>
34311#endif
34312#ifdef HAVE_SYS_TYPES_H
34313#include <sys/types.h>
34314#endif
34315#ifdef HAVE_SYS_SOCKET_H
34316#include <sys/socket.h>
34317#endif
34318
34319int main(void) {
34320    struct addrinfo hints, *ai;
34321    int error;
34322
34323    memset(&hints, 0, sizeof(hints));
34324    hints.ai_family = AF_UNSPEC;
34325    hints.ai_socktype = SOCK_STREAM;
34326    error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
34327    if (error) {
34328        exit(1);
34329    }
34330    if (ai->ai_addr->sa_family != AF_INET) {
34331        exit(1);
34332    }
34333    exit(0);
34334}
34335
34336_ACEOF
34337if ac_fn_c_try_run "$LINENO"; then :
34338
34339  ac_cv_working_getaddrinfo="yes"
34340
34341else
34342
34343  ac_cv_working_getaddrinfo="no"
34344
34345fi
34346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34347  conftest.$ac_objext conftest.beam conftest.$ac_ext
34348fi
34349
34350fi
34351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
34352$as_echo "$ac_cv_working_getaddrinfo" >&6; }
34353if test "$ac_cv_working_getaddrinfo" = "yes"; then
34354  if test "$ac_cv_func_gai_strerror" != "yes"; then
34355    ac_cv_working_getaddrinfo="no"
34356  else
34357
34358$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
34359
34360  fi
34361fi
34362
34363
34364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative error codes for getaddrinfo" >&5
34365$as_echo_n "checking for negative error codes for getaddrinfo... " >&6; }
34366if test "${ac_cv_negative_eai+set}" = set; then :
34367  $as_echo_n "(cached) " >&6
34368else
34369
34370  if test "$cross_compiling" = yes; then :
34371
34372  ac_cv_negative_eai="no"
34373
34374else
34375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34376/* end confdefs.h.  */
34377
34378#ifdef HAVE_NETDB_H
34379#include <netdb.h>
34380#endif
34381
34382int main(void) {
34383    if (EAI_ADDRFAMILY < 0) {
34384        exit(0);
34385    }
34386    exit(1);
34387}
34388
34389_ACEOF
34390if ac_fn_c_try_run "$LINENO"; then :
34391
34392  ac_cv_negative_eai="yes"
34393
34394else
34395
34396  ac_cv_negative_eai="no"
34397
34398fi
34399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34400  conftest.$ac_objext conftest.beam conftest.$ac_ext
34401fi
34402
34403fi
34404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_negative_eai" >&5
34405$as_echo "$ac_cv_negative_eai" >&6; }
34406if test "$ac_cv_negative_eai" = "yes"; then
34407
34408$as_echo "#define NEGATIVE_EAI 1" >>confdefs.h
34409
34410fi
34411
34412
34413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getnameinfo" >&5
34414$as_echo_n "checking for working getnameinfo... " >&6; }
34415if test "${ac_cv_working_getnameinfo+set}" = set; then :
34416  $as_echo_n "(cached) " >&6
34417else
34418
34419  if test "$cross_compiling" = yes; then :
34420
34421  ac_cv_working_getnameinfo="yes"
34422
34423else
34424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34425/* end confdefs.h.  */
34426
34427#ifdef HAVE_NETDB_H
34428#include <netdb.h>
34429#endif
34430#ifdef HAVE_STRING_H
34431#include <string.h>
34432#endif
34433#ifdef HAVE_SYS_TYPES_H
34434#include <sys/types.h>
34435#endif
34436#ifdef HAVE_SYS_SOCKET_H
34437#include <sys/socket.h>
34438#endif
34439#ifdef HAVE_NETINET_IN_H
34440#include <netinet/in.h>
34441#endif
34442
34443int main(void) {
34444    struct sockaddr_in sa;
34445    char hbuf[256];
34446    int error;
34447
34448    sa.sin_family = AF_INET;
34449    sa.sin_port = 0;
34450    sa.sin_addr.s_addr = inet_addr("127.0.0.1");
34451#ifdef SIN6_LEN
34452    sa.sin_len = sizeof(sa);
34453#endif
34454
34455    error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa),
34456                        hbuf, 256, NULL, 0,
34457                        NI_NUMERICHOST);
34458    if (error) {
34459        exit(1);
34460    } else {
34461        exit(0);
34462    }
34463}
34464
34465_ACEOF
34466if ac_fn_c_try_run "$LINENO"; then :
34467
34468  ac_cv_working_getnameinfo="yes"
34469
34470else
34471
34472  ac_cv_working_getnameinfo="no"
34473
34474fi
34475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34476  conftest.$ac_objext conftest.beam conftest.$ac_ext
34477fi
34478
34479fi
34480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getnameinfo" >&5
34481$as_echo "$ac_cv_working_getnameinfo" >&6; }
34482if test "$ac_cv_working_getnameinfo" = "yes"; then
34483
34484$as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
34485
34486fi
34487
34488
34489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5
34490$as_echo_n "checking for sockaddr_in6... " >&6; }
34491if test "${ac_cv_define_sockaddr_in6+set}" = set; then :
34492  $as_echo_n "(cached) " >&6
34493else
34494
34495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34496/* end confdefs.h.  */
34497
34498#ifdef HAVE_SYS_TYPES_H
34499#include <sys/types.h>
34500#endif
34501#ifdef HAVE_NETINET_IN_H
34502#include <netinet/in.h>
34503#endif
34504
34505int
34506main ()
34507{
34508
34509struct sockaddr_in6 sa;
34510
34511  ;
34512  return 0;
34513}
34514_ACEOF
34515if ac_fn_c_try_compile "$LINENO"; then :
34516
34517    ac_cv_define_sockaddr_in6=yes
34518
34519else
34520
34521    ac_cv_define_sockaddr_in6=no
34522
34523fi
34524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34525
34526fi
34527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_in6" >&5
34528$as_echo "$ac_cv_define_sockaddr_in6" >&6; }
34529
34530if test "$ac_cv_define_sockaddr_in6" = "yes"; then
34531  have_sockaddr_in6=1
34532else
34533  have_sockaddr_in6=0
34534fi
34535
34536
34537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
34538$as_echo_n "checking for sockaddr_storage... " >&6; }
34539if test "${apr_cv_define_sockaddr_storage+set}" = set; then :
34540  $as_echo_n "(cached) " >&6
34541else
34542
34543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34544/* end confdefs.h.  */
34545
34546#ifdef HAVE_SYS_TYPES_H
34547#include <sys/types.h>
34548#endif
34549#ifdef HAVE_NETINET_IN_H
34550#include <netinet/in.h>
34551#endif
34552
34553int
34554main ()
34555{
34556struct sockaddr_storage sa;
34557  ;
34558  return 0;
34559}
34560_ACEOF
34561if ac_fn_c_try_compile "$LINENO"; then :
34562  apr_cv_define_sockaddr_storage=yes
34563else
34564  apr_cv_define_sockaddr_storage=no
34565fi
34566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34567fi
34568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_sockaddr_storage" >&5
34569$as_echo "$apr_cv_define_sockaddr_storage" >&6; }
34570
34571if test "$apr_cv_define_sockaddr_storage" = "yes"; then
34572  have_sa_storage=1
34573else
34574  have_sa_storage=0
34575fi
34576
34577
34578
34579have_ipv6="0"
34580if test "$user_disabled_ipv6" = 1; then
34581    ipv6_result="no -- disabled by user"
34582else
34583    if test "x$broken_ipv6" = "x0"; then
34584        if test "x$have_sockaddr_in6" = "x1"; then
34585            if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
34586                if test "x$ac_cv_working_getnameinfo" = "xyes"; then
34587
34588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
34589$as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
34590if test "${apr_cv_gai_addrconfig+set}" = set; then :
34591  $as_echo_n "(cached) " >&6
34592else
34593
34594  if test "$cross_compiling" = yes; then :
34595  apr_cv_gai_addrconfig=no
34596else
34597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34598/* end confdefs.h.  */
34599
34600#ifdef HAVE_NETDB_H
34601#include <netdb.h>
34602#endif
34603#ifdef HAVE_STRING_H
34604#include <string.h>
34605#endif
34606#ifdef HAVE_SYS_TYPES_H
34607#include <sys/types.h>
34608#endif
34609#ifdef HAVE_SYS_SOCKET_H
34610#include <sys/socket.h>
34611#endif
34612
34613int main(int argc, char **argv) {
34614    struct addrinfo hints, *ai;
34615
34616    memset(&hints, 0, sizeof(hints));
34617    hints.ai_family = AF_UNSPEC;
34618    hints.ai_socktype = SOCK_STREAM;
34619    hints.ai_flags = AI_ADDRCONFIG;
34620    return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
34621}
34622_ACEOF
34623if ac_fn_c_try_run "$LINENO"; then :
34624  apr_cv_gai_addrconfig=yes
34625else
34626  apr_cv_gai_addrconfig=no
34627fi
34628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34629  conftest.$ac_objext conftest.beam conftest.$ac_ext
34630fi
34631
34632fi
34633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
34634$as_echo "$apr_cv_gai_addrconfig" >&6; }
34635
34636if test $apr_cv_gai_addrconfig = yes; then
34637
34638$as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
34639
34640fi
34641
34642                    have_ipv6="1"
34643                    ipv6_result="yes"
34644                else
34645                    ipv6_result="no -- no getnameinfo"
34646                fi
34647            else
34648                ipv6_result="no -- no working getaddrinfo"
34649            fi
34650        else
34651            ipv6_result="no -- no sockaddr_in6"
34652        fi
34653    else
34654        ipv6_result="no -- the platform has known problems supporting IPv6"
34655    fi
34656fi
34657
34658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if APR supports IPv6" >&5
34659$as_echo_n "checking if APR supports IPv6... " >&6; }
34660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_result" >&5
34661$as_echo "$ipv6_result" >&6; }
34662
34663
34664
34665# hstrerror is only needed if IPv6 is not enabled,
34666# so getaddrinfo/gai_strerror are not used.
34667if test $have_ipv6 = 0; then
34668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
34669$as_echo_n "checking for library containing hstrerror... " >&6; }
34670if test "${ac_cv_search_hstrerror+set}" = set; then :
34671  $as_echo_n "(cached) " >&6
34672else
34673  ac_func_search_save_LIBS=$LIBS
34674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34675/* end confdefs.h.  */
34676
34677/* Override any GCC internal prototype to avoid an error.
34678   Use char because int might match the return type of a GCC
34679   builtin and then its argument prototype would still apply.  */
34680#ifdef __cplusplus
34681extern "C"
34682#endif
34683char hstrerror ();
34684int
34685main ()
34686{
34687return hstrerror ();
34688  ;
34689  return 0;
34690}
34691_ACEOF
34692for ac_lib in '' resolv; do
34693  if test -z "$ac_lib"; then
34694    ac_res="none required"
34695  else
34696    ac_res=-l$ac_lib
34697    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34698  fi
34699  if ac_fn_c_try_link "$LINENO"; then :
34700  ac_cv_search_hstrerror=$ac_res
34701fi
34702rm -f core conftest.err conftest.$ac_objext \
34703    conftest$ac_exeext
34704  if test "${ac_cv_search_hstrerror+set}" = set; then :
34705  break
34706fi
34707done
34708if test "${ac_cv_search_hstrerror+set}" = set; then :
34709
34710else
34711  ac_cv_search_hstrerror=no
34712fi
34713rm conftest.$ac_ext
34714LIBS=$ac_func_search_save_LIBS
34715fi
34716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
34717$as_echo "$ac_cv_search_hstrerror" >&6; }
34718ac_res=$ac_cv_search_hstrerror
34719if test "$ac_res" != no; then :
34720  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34721
34722$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
34723
34724fi
34725
34726fi
34727
34728
34729for ac_header in langinfo.h
34730do :
34731  ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
34732if test "x$ac_cv_header_langinfo_h" = x""yes; then :
34733  cat >>confdefs.h <<_ACEOF
34734#define HAVE_LANGINFO_H 1
34735_ACEOF
34736
34737fi
34738
34739done
34740
34741for ac_func in nl_langinfo
34742do :
34743  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
34744if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
34745  cat >>confdefs.h <<_ACEOF
34746#define HAVE_NL_LANGINFO 1
34747_ACEOF
34748
34749fi
34750done
34751
34752
34753
34754
34755  if test -z "$have_unicode_fs"; then
34756    test "x$silent" != "xyes" && echo "  setting have_unicode_fs to \"0\""
34757    have_unicode_fs="0"
34758  fi
34759
34760
34761
34762
34763  if test -z "$apr_has_xthread_files"; then
34764    test "x$silent" != "xyes" && echo "  setting apr_has_xthread_files to \"0\""
34765    apr_has_xthread_files="0"
34766  fi
34767
34768
34769
34770
34771  if test -z "$apr_procattr_user_set_requires_password"; then
34772    test "x$silent" != "xyes" && echo "  setting apr_procattr_user_set_requires_password to \"0\""
34773    apr_procattr_user_set_requires_password="0"
34774  fi
34775
34776
34777
34778
34779  if test -z "$apr_thread_func"; then
34780    test "x$silent" != "xyes" && echo "  setting apr_thread_func to \"\""
34781    apr_thread_func=""
34782  fi
34783
34784
34785
34786
34787  if test -z "$apr_has_user"; then
34788    test "x$silent" != "xyes" && echo "  setting apr_has_user to \"1\""
34789    apr_has_user="1"
34790  fi
34791
34792
34793
34794
34795echo "${nl}Restore user-defined environment settings..."
34796
34797
34798if test "x$apr_ste_save_CPPFLAGS" = "x"; then
34799  EXTRA_CPPFLAGS="$CPPFLAGS"
34800  CPPFLAGS=
34801else
34802  if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
34803    EXTRA_CPPFLAGS=
34804  else
34805    EXTRA_CPPFLAGS=`echo $CPPFLAGS | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
34806    CPPFLAGS="$apr_ste_save_CPPFLAGS"
34807  fi
34808fi
34809if test "x$silent" != "xyes"; then
34810  echo "  restoring CPPFLAGS to \"$CPPFLAGS\""
34811  echo "  setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
34812fi
34813
34814
34815
34816if test "x$apr_ste_save_CFLAGS" = "x"; then
34817  EXTRA_CFLAGS="$CFLAGS"
34818  CFLAGS=
34819else
34820  if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
34821    EXTRA_CFLAGS=
34822  else
34823    EXTRA_CFLAGS=`echo $CFLAGS | sed -e "s%${apr_ste_save_CFLAGS}%%"`
34824    CFLAGS="$apr_ste_save_CFLAGS"
34825  fi
34826fi
34827if test "x$silent" != "xyes"; then
34828  echo "  restoring CFLAGS to \"$CFLAGS\""
34829  echo "  setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
34830fi
34831
34832
34833
34834if test "x$apr_ste_save_LDFLAGS" = "x"; then
34835  EXTRA_LDFLAGS="$LDFLAGS"
34836  LDFLAGS=
34837else
34838  if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
34839    EXTRA_LDFLAGS=
34840  else
34841    EXTRA_LDFLAGS=`echo $LDFLAGS | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
34842    LDFLAGS="$apr_ste_save_LDFLAGS"
34843  fi
34844fi
34845if test "x$silent" != "xyes"; then
34846  echo "  restoring LDFLAGS to \"$LDFLAGS\""
34847  echo "  setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
34848fi
34849
34850
34851
34852if test "x$apr_ste_save_LIBS" = "x"; then
34853  EXTRA_LIBS="$LIBS"
34854  LIBS=
34855else
34856  if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
34857    EXTRA_LIBS=
34858  else
34859    EXTRA_LIBS=`echo $LIBS | sed -e "s%${apr_ste_save_LIBS}%%"`
34860    LIBS="$apr_ste_save_LIBS"
34861  fi
34862fi
34863if test "x$silent" != "xyes"; then
34864  echo "  restoring LIBS to \"$LIBS\""
34865  echo "  setting EXTRA_LIBS to \"$EXTRA_LIBS\""
34866fi
34867
34868
34869
34870if test "x$apr_ste_save_INCLUDES" = "x"; then
34871  EXTRA_INCLUDES="$INCLUDES"
34872  INCLUDES=
34873else
34874  if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
34875    EXTRA_INCLUDES=
34876  else
34877    EXTRA_INCLUDES=`echo $INCLUDES | sed -e "s%${apr_ste_save_INCLUDES}%%"`
34878    INCLUDES="$apr_ste_save_INCLUDES"
34879  fi
34880fi
34881if test "x$silent" != "xyes"; then
34882  echo "  restoring INCLUDES to \"$INCLUDES\""
34883  echo "  setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
34884fi
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903# Use -no-install to link the test programs on all platforms
34904# but Darwin, where it would cause the programs to be linked
34905# against installed versions of libapr instead of those just
34906# built.
34907case $host in
34908*-apple-darwin*) LT_NO_INSTALL="" ;;
34909*) LT_NO_INSTALL="-no-install" ;;
34910esac
34911
34912
34913#
34914# BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
34915#
34916case $host in
34917*bsdi*)
34918    # Check whether they've installed GNU make
34919    if make --version > /dev/null 2>&1; then
34920	INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
34921	INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
34922    else
34923	# BSDi make
34924	INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\""
34925	INCLUDE_OUTPUTS=".include \"$apr_srcdir/build-outputs.mk\""
34926    fi
34927    ;;
34928*)
34929    INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
34930    INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
34931    ;;
34932esac
34933
34934
34935
34936ac_config_files="$ac_config_files Makefile include/apr.h build/apr_rules.mk build/pkg/pkginfo apr-$APR_MAJOR_VERSION-config:apr-config.in apr.pc"
34937
34938
34939if test -d $srcdir/test; then
34940   ac_config_files="$ac_config_files test/Makefile test/internal/Makefile"
34941
34942fi
34943
34944dir=include/arch/unix
34945test -d $dir || $MKDIR $dir
34946
34947ac_config_commands="$ac_config_commands default"
34948
34949
34950cat >confcache <<\_ACEOF
34951# This file is a shell script that caches the results of configure
34952# tests run on this system so they can be shared between configure
34953# scripts and configure runs, see configure's option --config-cache.
34954# It is not useful on other systems.  If it contains results you don't
34955# want to keep, you may remove or edit it.
34956#
34957# config.status only pays attention to the cache file if you give it
34958# the --recheck option to rerun configure.
34959#
34960# `ac_cv_env_foo' variables (set or unset) will be overridden when
34961# loading this file, other *unset* `ac_cv_foo' will be assigned the
34962# following values.
34963
34964_ACEOF
34965
34966# The following way of writing the cache mishandles newlines in values,
34967# but we know of no workaround that is simple, portable, and efficient.
34968# So, we kill variables containing newlines.
34969# Ultrix sh set writes to stderr and can't be redirected directly,
34970# and sets the high bit in the cache file unless we assign to the vars.
34971(
34972  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34973    eval ac_val=\$$ac_var
34974    case $ac_val in #(
34975    *${as_nl}*)
34976      case $ac_var in #(
34977      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34978$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34979      esac
34980      case $ac_var in #(
34981      _ | IFS | as_nl) ;; #(
34982      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34983      *) { eval $ac_var=; unset $ac_var;} ;;
34984      esac ;;
34985    esac
34986  done
34987
34988  (set) 2>&1 |
34989    case $as_nl`(ac_space=' '; set) 2>&1` in #(
34990    *${as_nl}ac_space=\ *)
34991      # `set' does not quote correctly, so add quotes: double-quote
34992      # substitution turns \\\\ into \\, and sed turns \\ into \.
34993      sed -n \
34994	"s/'/'\\\\''/g;
34995	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34996      ;; #(
34997    *)
34998      # `set' quotes correctly as required by POSIX, so do not add quotes.
34999      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35000      ;;
35001    esac |
35002    sort
35003) |
35004  sed '
35005     /^ac_cv_env_/b end
35006     t clear
35007     :clear
35008     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35009     t end
35010     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35011     :end' >>confcache
35012if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35013  if test -w "$cache_file"; then
35014    test "x$cache_file" != "x/dev/null" &&
35015      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35016$as_echo "$as_me: updating cache $cache_file" >&6;}
35017    cat confcache >$cache_file
35018  else
35019    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35020$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35021  fi
35022fi
35023rm -f confcache
35024
35025test "x$prefix" = xNONE && prefix=$ac_default_prefix
35026# Let make expand exec_prefix.
35027test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35028
35029DEFS=-DHAVE_CONFIG_H
35030
35031ac_libobjs=
35032ac_ltlibobjs=
35033for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35034  # 1. Remove the extension, and $U if already installed.
35035  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35036  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35037  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35038  #    will be set to the directory where LIBOBJS objects are built.
35039  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35040  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
35041done
35042LIBOBJS=$ac_libobjs
35043
35044LTLIBOBJS=$ac_ltlibobjs
35045
35046
35047
35048
35049: ${CONFIG_STATUS=./config.status}
35050ac_write_fail=0
35051ac_clean_files_save=$ac_clean_files
35052ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35053{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35054$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35055as_write_fail=0
35056cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35057#! $SHELL
35058# Generated by $as_me.
35059# Run this file to recreate the current configuration.
35060# Compiler output produced by configure, useful for debugging
35061# configure, is in config.log if it exists.
35062
35063debug=false
35064ac_cs_recheck=false
35065ac_cs_silent=false
35066
35067SHELL=\${CONFIG_SHELL-$SHELL}
35068export SHELL
35069_ASEOF
35070cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35071## -------------------- ##
35072## M4sh Initialization. ##
35073## -------------------- ##
35074
35075# Be more Bourne compatible
35076DUALCASE=1; export DUALCASE # for MKS sh
35077if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35078  emulate sh
35079  NULLCMD=:
35080  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35081  # is contrary to our usage.  Disable this feature.
35082  alias -g '${1+"$@"}'='"$@"'
35083  setopt NO_GLOB_SUBST
35084else
35085  case `(set -o) 2>/dev/null` in #(
35086  *posix*) :
35087    set -o posix ;; #(
35088  *) :
35089     ;;
35090esac
35091fi
35092
35093
35094as_nl='
35095'
35096export as_nl
35097# Printing a long string crashes Solaris 7 /usr/bin/printf.
35098as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35099as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35100as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35101# Prefer a ksh shell builtin over an external printf program on Solaris,
35102# but without wasting forks for bash or zsh.
35103if test -z "$BASH_VERSION$ZSH_VERSION" \
35104    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35105  as_echo='print -r --'
35106  as_echo_n='print -rn --'
35107elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35108  as_echo='printf %s\n'
35109  as_echo_n='printf %s'
35110else
35111  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35112    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35113    as_echo_n='/usr/ucb/echo -n'
35114  else
35115    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35116    as_echo_n_body='eval
35117      arg=$1;
35118      case $arg in #(
35119      *"$as_nl"*)
35120	expr "X$arg" : "X\\(.*\\)$as_nl";
35121	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35122      esac;
35123      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35124    '
35125    export as_echo_n_body
35126    as_echo_n='sh -c $as_echo_n_body as_echo'
35127  fi
35128  export as_echo_body
35129  as_echo='sh -c $as_echo_body as_echo'
35130fi
35131
35132# The user is always right.
35133if test "${PATH_SEPARATOR+set}" != set; then
35134  PATH_SEPARATOR=:
35135  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35136    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35137      PATH_SEPARATOR=';'
35138  }
35139fi
35140
35141
35142# IFS
35143# We need space, tab and new line, in precisely that order.  Quoting is
35144# there to prevent editors from complaining about space-tab.
35145# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35146# splitting by setting IFS to empty value.)
35147IFS=" ""	$as_nl"
35148
35149# Find who we are.  Look in the path if we contain no directory separator.
35150case $0 in #((
35151  *[\\/]* ) as_myself=$0 ;;
35152  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35153for as_dir in $PATH
35154do
35155  IFS=$as_save_IFS
35156  test -z "$as_dir" && as_dir=.
35157    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35158  done
35159IFS=$as_save_IFS
35160
35161     ;;
35162esac
35163# We did not find ourselves, most probably we were run as `sh COMMAND'
35164# in which case we are not to be found in the path.
35165if test "x$as_myself" = x; then
35166  as_myself=$0
35167fi
35168if test ! -f "$as_myself"; then
35169  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35170  exit 1
35171fi
35172
35173# Unset variables that we do not need and which cause bugs (e.g. in
35174# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
35175# suppresses any "Segmentation fault" message there.  '((' could
35176# trigger a bug in pdksh 5.2.14.
35177for as_var in BASH_ENV ENV MAIL MAILPATH
35178do eval test x\${$as_var+set} = xset \
35179  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35180done
35181PS1='$ '
35182PS2='> '
35183PS4='+ '
35184
35185# NLS nuisances.
35186LC_ALL=C
35187export LC_ALL
35188LANGUAGE=C
35189export LANGUAGE
35190
35191# CDPATH.
35192(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35193
35194
35195# as_fn_error ERROR [LINENO LOG_FD]
35196# ---------------------------------
35197# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35198# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35199# script with status $?, using 1 if that was 0.
35200as_fn_error ()
35201{
35202  as_status=$?; test $as_status -eq 0 && as_status=1
35203  if test "$3"; then
35204    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35205    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
35206  fi
35207  $as_echo "$as_me: error: $1" >&2
35208  as_fn_exit $as_status
35209} # as_fn_error
35210
35211
35212# as_fn_set_status STATUS
35213# -----------------------
35214# Set $? to STATUS, without forking.
35215as_fn_set_status ()
35216{
35217  return $1
35218} # as_fn_set_status
35219
35220# as_fn_exit STATUS
35221# -----------------
35222# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35223as_fn_exit ()
35224{
35225  set +e
35226  as_fn_set_status $1
35227  exit $1
35228} # as_fn_exit
35229
35230# as_fn_unset VAR
35231# ---------------
35232# Portably unset VAR.
35233as_fn_unset ()
35234{
35235  { eval $1=; unset $1;}
35236}
35237as_unset=as_fn_unset
35238# as_fn_append VAR VALUE
35239# ----------------------
35240# Append the text in VALUE to the end of the definition contained in VAR. Take
35241# advantage of any shell optimizations that allow amortized linear growth over
35242# repeated appends, instead of the typical quadratic growth present in naive
35243# implementations.
35244if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35245  eval 'as_fn_append ()
35246  {
35247    eval $1+=\$2
35248  }'
35249else
35250  as_fn_append ()
35251  {
35252    eval $1=\$$1\$2
35253  }
35254fi # as_fn_append
35255
35256# as_fn_arith ARG...
35257# ------------------
35258# Perform arithmetic evaluation on the ARGs, and store the result in the
35259# global $as_val. Take advantage of shells that can avoid forks. The arguments
35260# must be portable across $(()) and expr.
35261if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35262  eval 'as_fn_arith ()
35263  {
35264    as_val=$(( $* ))
35265  }'
35266else
35267  as_fn_arith ()
35268  {
35269    as_val=`expr "$@" || test $? -eq 1`
35270  }
35271fi # as_fn_arith
35272
35273
35274if expr a : '\(a\)' >/dev/null 2>&1 &&
35275   test "X`expr 00001 : '.*\(...\)'`" = X001; then
35276  as_expr=expr
35277else
35278  as_expr=false
35279fi
35280
35281if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35282  as_basename=basename
35283else
35284  as_basename=false
35285fi
35286
35287if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35288  as_dirname=dirname
35289else
35290  as_dirname=false
35291fi
35292
35293as_me=`$as_basename -- "$0" ||
35294$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35295	 X"$0" : 'X\(//\)$' \| \
35296	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35297$as_echo X/"$0" |
35298    sed '/^.*\/\([^/][^/]*\)\/*$/{
35299	    s//\1/
35300	    q
35301	  }
35302	  /^X\/\(\/\/\)$/{
35303	    s//\1/
35304	    q
35305	  }
35306	  /^X\/\(\/\).*/{
35307	    s//\1/
35308	    q
35309	  }
35310	  s/.*/./; q'`
35311
35312# Avoid depending upon Character Ranges.
35313as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35314as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35315as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35316as_cr_digits='0123456789'
35317as_cr_alnum=$as_cr_Letters$as_cr_digits
35318
35319ECHO_C= ECHO_N= ECHO_T=
35320case `echo -n x` in #(((((
35321-n*)
35322  case `echo 'xy\c'` in
35323  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
35324  xy)  ECHO_C='\c';;
35325  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
35326       ECHO_T='	';;
35327  esac;;
35328*)
35329  ECHO_N='-n';;
35330esac
35331
35332rm -f conf$$ conf$$.exe conf$$.file
35333if test -d conf$$.dir; then
35334  rm -f conf$$.dir/conf$$.file
35335else
35336  rm -f conf$$.dir
35337  mkdir conf$$.dir 2>/dev/null
35338fi
35339if (echo >conf$$.file) 2>/dev/null; then
35340  if ln -s conf$$.file conf$$ 2>/dev/null; then
35341    as_ln_s='ln -s'
35342    # ... but there are two gotchas:
35343    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35344    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35345    # In both cases, we have to default to `cp -p'.
35346    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35347      as_ln_s='cp -p'
35348  elif ln conf$$.file conf$$ 2>/dev/null; then
35349    as_ln_s=ln
35350  else
35351    as_ln_s='cp -p'
35352  fi
35353else
35354  as_ln_s='cp -p'
35355fi
35356rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35357rmdir conf$$.dir 2>/dev/null
35358
35359
35360# as_fn_mkdir_p
35361# -------------
35362# Create "$as_dir" as a directory, including parents if necessary.
35363as_fn_mkdir_p ()
35364{
35365
35366  case $as_dir in #(
35367  -*) as_dir=./$as_dir;;
35368  esac
35369  test -d "$as_dir" || eval $as_mkdir_p || {
35370    as_dirs=
35371    while :; do
35372      case $as_dir in #(
35373      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35374      *) as_qdir=$as_dir;;
35375      esac
35376      as_dirs="'$as_qdir' $as_dirs"
35377      as_dir=`$as_dirname -- "$as_dir" ||
35378$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35379	 X"$as_dir" : 'X\(//\)[^/]' \| \
35380	 X"$as_dir" : 'X\(//\)$' \| \
35381	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35382$as_echo X"$as_dir" |
35383    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35384	    s//\1/
35385	    q
35386	  }
35387	  /^X\(\/\/\)[^/].*/{
35388	    s//\1/
35389	    q
35390	  }
35391	  /^X\(\/\/\)$/{
35392	    s//\1/
35393	    q
35394	  }
35395	  /^X\(\/\).*/{
35396	    s//\1/
35397	    q
35398	  }
35399	  s/.*/./; q'`
35400      test -d "$as_dir" && break
35401    done
35402    test -z "$as_dirs" || eval "mkdir $as_dirs"
35403  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
35404
35405
35406} # as_fn_mkdir_p
35407if mkdir -p . 2>/dev/null; then
35408  as_mkdir_p='mkdir -p "$as_dir"'
35409else
35410  test -d ./-p && rmdir ./-p
35411  as_mkdir_p=false
35412fi
35413
35414if test -x / >/dev/null 2>&1; then
35415  as_test_x='test -x'
35416else
35417  if ls -dL / >/dev/null 2>&1; then
35418    as_ls_L_option=L
35419  else
35420    as_ls_L_option=
35421  fi
35422  as_test_x='
35423    eval sh -c '\''
35424      if test -d "$1"; then
35425	test -d "$1/.";
35426      else
35427	case $1 in #(
35428	-*)set "./$1";;
35429	esac;
35430	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
35431	???[sx]*):;;*)false;;esac;fi
35432    '\'' sh
35433  '
35434fi
35435as_executable_p=$as_test_x
35436
35437# Sed expression to map a string onto a valid CPP name.
35438as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35439
35440# Sed expression to map a string onto a valid variable name.
35441as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35442
35443
35444exec 6>&1
35445## ----------------------------------- ##
35446## Main body of $CONFIG_STATUS script. ##
35447## ----------------------------------- ##
35448_ASEOF
35449test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35450
35451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35452# Save the log message, to keep $0 and so on meaningful, and to
35453# report actual input values of CONFIG_FILES etc. instead of their
35454# values after options handling.
35455ac_log="
35456This file was extended by $as_me, which was
35457generated by GNU Autoconf 2.64.  Invocation command line was
35458
35459  CONFIG_FILES    = $CONFIG_FILES
35460  CONFIG_HEADERS  = $CONFIG_HEADERS
35461  CONFIG_LINKS    = $CONFIG_LINKS
35462  CONFIG_COMMANDS = $CONFIG_COMMANDS
35463  $ $0 $@
35464
35465on `(hostname || uname -n) 2>/dev/null | sed 1q`
35466"
35467
35468_ACEOF
35469
35470case $ac_config_files in *"
35471"*) set x $ac_config_files; shift; ac_config_files=$*;;
35472esac
35473
35474case $ac_config_headers in *"
35475"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35476esac
35477
35478
35479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35480# Files that config.status was made for.
35481config_files="$ac_config_files"
35482config_headers="$ac_config_headers"
35483config_commands="$ac_config_commands"
35484
35485_ACEOF
35486
35487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35488ac_cs_usage="\
35489\`$as_me' instantiates files and other configuration actions
35490from templates according to the current configuration.  Unless the files
35491and actions are specified as TAGs, all are instantiated by default.
35492
35493Usage: $0 [OPTION]... [TAG]...
35494
35495  -h, --help       print this help, then exit
35496  -V, --version    print version number and configuration settings, then exit
35497  -q, --quiet, --silent
35498                   do not print progress messages
35499  -d, --debug      don't remove temporary files
35500      --recheck    update $as_me by reconfiguring in the same conditions
35501      --file=FILE[:TEMPLATE]
35502                   instantiate the configuration file FILE
35503      --header=FILE[:TEMPLATE]
35504                   instantiate the configuration header FILE
35505
35506Configuration files:
35507$config_files
35508
35509Configuration headers:
35510$config_headers
35511
35512Configuration commands:
35513$config_commands
35514
35515Report bugs to the package provider."
35516
35517_ACEOF
35518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35519ac_cs_version="\\
35520config.status
35521configured by $0, generated by GNU Autoconf 2.64,
35522  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35523
35524Copyright (C) 2009 Free Software Foundation, Inc.
35525This config.status script is free software; the Free Software Foundation
35526gives unlimited permission to copy, distribute and modify it."
35527
35528ac_pwd='$ac_pwd'
35529srcdir='$srcdir'
35530INSTALL='$INSTALL'
35531AWK='$AWK'
35532test -n "\$AWK" || AWK=awk
35533_ACEOF
35534
35535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35536# The default lists apply if the user does not specify any file.
35537ac_need_defaults=:
35538while test $# != 0
35539do
35540  case $1 in
35541  --*=*)
35542    ac_option=`expr "X$1" : 'X\([^=]*\)='`
35543    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35544    ac_shift=:
35545    ;;
35546  *)
35547    ac_option=$1
35548    ac_optarg=$2
35549    ac_shift=shift
35550    ;;
35551  esac
35552
35553  case $ac_option in
35554  # Handling of the options.
35555  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35556    ac_cs_recheck=: ;;
35557  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35558    $as_echo "$ac_cs_version"; exit ;;
35559  --debug | --debu | --deb | --de | --d | -d )
35560    debug=: ;;
35561  --file | --fil | --fi | --f )
35562    $ac_shift
35563    case $ac_optarg in
35564    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35565    esac
35566    as_fn_append CONFIG_FILES " '$ac_optarg'"
35567    ac_need_defaults=false;;
35568  --header | --heade | --head | --hea )
35569    $ac_shift
35570    case $ac_optarg in
35571    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35572    esac
35573    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35574    ac_need_defaults=false;;
35575  --he | --h)
35576    # Conflict between --help and --header
35577    as_fn_error "ambiguous option: \`$1'
35578Try \`$0 --help' for more information.";;
35579  --help | --hel | -h )
35580    $as_echo "$ac_cs_usage"; exit ;;
35581  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35582  | -silent | --silent | --silen | --sile | --sil | --si | --s)
35583    ac_cs_silent=: ;;
35584
35585  # This is an error.
35586  -*) as_fn_error "unrecognized option: \`$1'
35587Try \`$0 --help' for more information." ;;
35588
35589  *) as_fn_append ac_config_targets " $1"
35590     ac_need_defaults=false ;;
35591
35592  esac
35593  shift
35594done
35595
35596ac_configure_extra_args=
35597
35598if $ac_cs_silent; then
35599  exec 6>/dev/null
35600  ac_configure_extra_args="$ac_configure_extra_args --silent"
35601fi
35602
35603_ACEOF
35604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35605if \$ac_cs_recheck; then
35606  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35607  shift
35608  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35609  CONFIG_SHELL='$SHELL'
35610  export CONFIG_SHELL
35611  exec "\$@"
35612fi
35613
35614_ACEOF
35615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35616exec 5>>config.log
35617{
35618  echo
35619  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35620## Running $as_me. ##
35621_ASBOX
35622  $as_echo "$ac_log"
35623} >&5
35624
35625_ACEOF
35626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35627#
35628# INIT-COMMANDS
35629#
35630
35631
35632# Commands run at the beginning of config.status:
35633APR_SAVE_HEADERS="include/apr.h include/arch/unix/apr_private.h"
35634APR_MAJOR_VERSION=$APR_MAJOR_VERSION
35635APR_PLATFORM=$host
35636
35637for apri in \${APR_SAVE_HEADERS}; do
35638  test -r \${apri} && mv \${apri} \${apri}.save
35639done
35640
35641
35642_ACEOF
35643
35644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35645
35646# Handling of arguments.
35647for ac_config_target in $ac_config_targets
35648do
35649  case $ac_config_target in
35650    "include/arch/unix/apr_private.h") CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;;
35651    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35652    "include/apr.h") CONFIG_FILES="$CONFIG_FILES include/apr.h" ;;
35653    "build/apr_rules.mk") CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;;
35654    "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
35655    "apr-$APR_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apr-$APR_MAJOR_VERSION-config:apr-config.in" ;;
35656    "apr.pc") CONFIG_FILES="$CONFIG_FILES apr.pc" ;;
35657    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
35658    "test/internal/Makefile") CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;;
35659    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35660
35661  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35662  esac
35663done
35664
35665
35666# If the user did not use the arguments to specify the items to instantiate,
35667# then the envvar interface is used.  Set only those that are not.
35668# We use the long form for the default assignment because of an extremely
35669# bizarre bug on SunOS 4.1.3.
35670if $ac_need_defaults; then
35671  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35672  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35673  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35674fi
35675
35676# Have a temporary directory for convenience.  Make it in the build tree
35677# simply because there is no reason against having it here, and in addition,
35678# creating and moving files from /tmp can sometimes cause problems.
35679# Hook for its removal unless debugging.
35680# Note that there is a small window in which the directory will not be cleaned:
35681# after its creation but before its name has been assigned to `$tmp'.
35682$debug ||
35683{
35684  tmp=
35685  trap 'exit_status=$?
35686  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35687' 0
35688  trap 'as_fn_exit 1' 1 2 13 15
35689}
35690# Create a (secure) tmp directory for tmp files.
35691
35692{
35693  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35694  test -n "$tmp" && test -d "$tmp"
35695}  ||
35696{
35697  tmp=./conf$$-$RANDOM
35698  (umask 077 && mkdir "$tmp")
35699} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
35700
35701# Set up the scripts for CONFIG_FILES section.
35702# No need to generate them if there are no CONFIG_FILES.
35703# This happens for instance with `./config.status config.h'.
35704if test -n "$CONFIG_FILES"; then
35705
35706
35707ac_cr=`echo X | tr X '\015'`
35708# On cygwin, bash can eat \r inside `` if the user requested igncr.
35709# But we know of no other shell where ac_cr would be empty at this
35710# point, so we can use a bashism as a fallback.
35711if test "x$ac_cr" = x; then
35712  eval ac_cr=\$\'\\r\'
35713fi
35714ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35715if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35716  ac_cs_awk_cr='\r'
35717else
35718  ac_cs_awk_cr=$ac_cr
35719fi
35720
35721echo 'BEGIN {' >"$tmp/subs1.awk" &&
35722_ACEOF
35723
35724
35725{
35726  echo "cat >conf$$subs.awk <<_ACEOF" &&
35727  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35728  echo "_ACEOF"
35729} >conf$$subs.sh ||
35730  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
35731ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
35732ac_delim='%!_!# '
35733for ac_last_try in false false false false false :; do
35734  . ./conf$$subs.sh ||
35735    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
35736
35737  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35738  if test $ac_delim_n = $ac_delim_num; then
35739    break
35740  elif $ac_last_try; then
35741    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
35742  else
35743    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35744  fi
35745done
35746rm -f conf$$subs.sh
35747
35748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35749cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
35750_ACEOF
35751sed -n '
35752h
35753s/^/S["/; s/!.*/"]=/
35754p
35755g
35756s/^[^!]*!//
35757:repl
35758t repl
35759s/'"$ac_delim"'$//
35760t delim
35761:nl
35762h
35763s/\(.\{148\}\).*/\1/
35764t more1
35765s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35766p
35767n
35768b repl
35769:more1
35770s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35771p
35772g
35773s/.\{148\}//
35774t nl
35775:delim
35776h
35777s/\(.\{148\}\).*/\1/
35778t more2
35779s/["\\]/\\&/g; s/^/"/; s/$/"/
35780p
35781b
35782:more2
35783s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35784p
35785g
35786s/.\{148\}//
35787t delim
35788' <conf$$subs.awk | sed '
35789/^[^""]/{
35790  N
35791  s/\n//
35792}
35793' >>$CONFIG_STATUS || ac_write_fail=1
35794rm -f conf$$subs.awk
35795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35796_ACAWK
35797cat >>"\$tmp/subs1.awk" <<_ACAWK &&
35798  for (key in S) S_is_set[key] = 1
35799  FS = ""
35800
35801}
35802{
35803  line = $ 0
35804  nfields = split(line, field, "@")
35805  substed = 0
35806  len = length(field[1])
35807  for (i = 2; i < nfields; i++) {
35808    key = field[i]
35809    keylen = length(key)
35810    if (S_is_set[key]) {
35811      value = S[key]
35812      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35813      len += length(value) + length(field[++i])
35814      substed = 1
35815    } else
35816      len += 1 + keylen
35817  }
35818
35819  print line
35820}
35821
35822_ACAWK
35823_ACEOF
35824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35825if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35826  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35827else
35828  cat
35829fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
35830  || as_fn_error "could not setup config files machinery" "$LINENO" 5
35831_ACEOF
35832
35833# VPATH may cause trouble with some makes, so we remove $(srcdir),
35834# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35835# trailing colons and then remove the whole line if VPATH becomes empty
35836# (actually we leave an empty line to preserve line numbers).
35837if test "x$srcdir" = x.; then
35838  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
35839s/:*\$(srcdir):*/:/
35840s/:*\${srcdir}:*/:/
35841s/:*@srcdir@:*/:/
35842s/^\([^=]*=[	 ]*\):*/\1/
35843s/:*$//
35844s/^[^=]*=[	 ]*$//
35845}'
35846fi
35847
35848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35849fi # test -n "$CONFIG_FILES"
35850
35851# Set up the scripts for CONFIG_HEADERS section.
35852# No need to generate them if there are no CONFIG_HEADERS.
35853# This happens for instance with `./config.status Makefile'.
35854if test -n "$CONFIG_HEADERS"; then
35855cat >"$tmp/defines.awk" <<\_ACAWK ||
35856BEGIN {
35857_ACEOF
35858
35859# Transform confdefs.h into an awk script `defines.awk', embedded as
35860# here-document in config.status, that substitutes the proper values into
35861# config.h.in to produce config.h.
35862
35863# Create a delimiter string that does not exist in confdefs.h, to ease
35864# handling of long lines.
35865ac_delim='%!_!# '
35866for ac_last_try in false false :; do
35867  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
35868  if test -z "$ac_t"; then
35869    break
35870  elif $ac_last_try; then
35871    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
35872  else
35873    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35874  fi
35875done
35876
35877# For the awk script, D is an array of macro values keyed by name,
35878# likewise P contains macro parameters if any.  Preserve backslash
35879# newline sequences.
35880
35881ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35882sed -n '
35883s/.\{148\}/&'"$ac_delim"'/g
35884t rset
35885:rset
35886s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
35887t def
35888d
35889:def
35890s/\\$//
35891t bsnl
35892s/["\\]/\\&/g
35893s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
35894D["\1"]=" \3"/p
35895s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
35896d
35897:bsnl
35898s/["\\]/\\&/g
35899s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
35900D["\1"]=" \3\\\\\\n"\\/p
35901t cont
35902s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35903t cont
35904d
35905:cont
35906n
35907s/.\{148\}/&'"$ac_delim"'/g
35908t clear
35909:clear
35910s/\\$//
35911t bsnlc
35912s/["\\]/\\&/g; s/^/"/; s/$/"/p
35913d
35914:bsnlc
35915s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35916b cont
35917' <confdefs.h | sed '
35918s/'"$ac_delim"'/"\\\
35919"/g' >>$CONFIG_STATUS || ac_write_fail=1
35920
35921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35922  for (key in D) D_is_set[key] = 1
35923  FS = ""
35924}
35925/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35926  line = \$ 0
35927  split(line, arg, " ")
35928  if (arg[1] == "#") {
35929    defundef = arg[2]
35930    mac1 = arg[3]
35931  } else {
35932    defundef = substr(arg[1], 2)
35933    mac1 = arg[2]
35934  }
35935  split(mac1, mac2, "(") #)
35936  macro = mac2[1]
35937  prefix = substr(line, 1, index(line, defundef) - 1)
35938  if (D_is_set[macro]) {
35939    # Preserve the white space surrounding the "#".
35940    print prefix "define", macro P[macro] D[macro]
35941    next
35942  } else {
35943    # Replace #undef with comments.  This is necessary, for example,
35944    # in the case of _POSIX_SOURCE, which is predefined and required
35945    # on some systems where configure will not decide to define it.
35946    if (defundef == "undef") {
35947      print "/*", prefix defundef, macro, "*/"
35948      next
35949    }
35950  }
35951}
35952{ print }
35953_ACAWK
35954_ACEOF
35955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35956  as_fn_error "could not setup config headers machinery" "$LINENO" 5
35957fi # test -n "$CONFIG_HEADERS"
35958
35959
35960eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
35961shift
35962for ac_tag
35963do
35964  case $ac_tag in
35965  :[FHLC]) ac_mode=$ac_tag; continue;;
35966  esac
35967  case $ac_mode$ac_tag in
35968  :[FHL]*:*);;
35969  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
35970  :[FH]-) ac_tag=-:-;;
35971  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35972  esac
35973  ac_save_IFS=$IFS
35974  IFS=:
35975  set x $ac_tag
35976  IFS=$ac_save_IFS
35977  shift
35978  ac_file=$1
35979  shift
35980
35981  case $ac_mode in
35982  :L) ac_source=$1;;
35983  :[FH])
35984    ac_file_inputs=
35985    for ac_f
35986    do
35987      case $ac_f in
35988      -) ac_f="$tmp/stdin";;
35989      *) # Look for the file first in the build tree, then in the source tree
35990	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
35991	 # because $ac_f cannot contain `:'.
35992	 test -f "$ac_f" ||
35993	   case $ac_f in
35994	   [\\/$]*) false;;
35995	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35996	   esac ||
35997	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35998      esac
35999      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36000      as_fn_append ac_file_inputs " '$ac_f'"
36001    done
36002
36003    # Let's still pretend it is `configure' which instantiates (i.e., don't
36004    # use $as_me), people would be surprised to read:
36005    #    /* config.h.  Generated by config.status.  */
36006    configure_input='Generated from '`
36007	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36008	`' by configure.'
36009    if test x"$ac_file" != x-; then
36010      configure_input="$ac_file.  $configure_input"
36011      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36012$as_echo "$as_me: creating $ac_file" >&6;}
36013    fi
36014    # Neutralize special characters interpreted by sed in replacement strings.
36015    case $configure_input in #(
36016    *\&* | *\|* | *\\* )
36017       ac_sed_conf_input=`$as_echo "$configure_input" |
36018       sed 's/[\\\\&|]/\\\\&/g'`;; #(
36019    *) ac_sed_conf_input=$configure_input;;
36020    esac
36021
36022    case $ac_tag in
36023    *:-:* | *:-) cat >"$tmp/stdin" \
36024      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
36025    esac
36026    ;;
36027  esac
36028
36029  ac_dir=`$as_dirname -- "$ac_file" ||
36030$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36031	 X"$ac_file" : 'X\(//\)[^/]' \| \
36032	 X"$ac_file" : 'X\(//\)$' \| \
36033	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36034$as_echo X"$ac_file" |
36035    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36036	    s//\1/
36037	    q
36038	  }
36039	  /^X\(\/\/\)[^/].*/{
36040	    s//\1/
36041	    q
36042	  }
36043	  /^X\(\/\/\)$/{
36044	    s//\1/
36045	    q
36046	  }
36047	  /^X\(\/\).*/{
36048	    s//\1/
36049	    q
36050	  }
36051	  s/.*/./; q'`
36052  as_dir="$ac_dir"; as_fn_mkdir_p
36053  ac_builddir=.
36054
36055case "$ac_dir" in
36056.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36057*)
36058  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36059  # A ".." for each directory in $ac_dir_suffix.
36060  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36061  case $ac_top_builddir_sub in
36062  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36063  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36064  esac ;;
36065esac
36066ac_abs_top_builddir=$ac_pwd
36067ac_abs_builddir=$ac_pwd$ac_dir_suffix
36068# for backward compatibility:
36069ac_top_builddir=$ac_top_build_prefix
36070
36071case $srcdir in
36072  .)  # We are building in place.
36073    ac_srcdir=.
36074    ac_top_srcdir=$ac_top_builddir_sub
36075    ac_abs_top_srcdir=$ac_pwd ;;
36076  [\\/]* | ?:[\\/]* )  # Absolute name.
36077    ac_srcdir=$srcdir$ac_dir_suffix;
36078    ac_top_srcdir=$srcdir
36079    ac_abs_top_srcdir=$srcdir ;;
36080  *) # Relative name.
36081    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36082    ac_top_srcdir=$ac_top_build_prefix$srcdir
36083    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36084esac
36085ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36086
36087
36088  case $ac_mode in
36089  :F)
36090  #
36091  # CONFIG_FILE
36092  #
36093
36094  case $INSTALL in
36095  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36096  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36097  esac
36098_ACEOF
36099
36100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36101# If the template does not know about datarootdir, expand it.
36102# FIXME: This hack should be removed a few years after 2.60.
36103ac_datarootdir_hack=; ac_datarootdir_seen=
36104ac_sed_dataroot='
36105/datarootdir/ {
36106  p
36107  q
36108}
36109/@datadir@/p
36110/@docdir@/p
36111/@infodir@/p
36112/@localedir@/p
36113/@mandir@/p'
36114case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36115*datarootdir*) ac_datarootdir_seen=yes;;
36116*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36117  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36118$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36119_ACEOF
36120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36121  ac_datarootdir_hack='
36122  s&@datadir@&$datadir&g
36123  s&@docdir@&$docdir&g
36124  s&@infodir@&$infodir&g
36125  s&@localedir@&$localedir&g
36126  s&@mandir@&$mandir&g
36127  s&\\\${datarootdir}&$datarootdir&g' ;;
36128esac
36129_ACEOF
36130
36131# Neutralize VPATH when `$srcdir' = `.'.
36132# Shell code in configure.ac might set extrasub.
36133# FIXME: do we really want to maintain this feature?
36134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36135ac_sed_extra="$ac_vpsub
36136$extrasub
36137_ACEOF
36138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36139:t
36140/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36141s|@configure_input@|$ac_sed_conf_input|;t t
36142s&@top_builddir@&$ac_top_builddir_sub&;t t
36143s&@top_build_prefix@&$ac_top_build_prefix&;t t
36144s&@srcdir@&$ac_srcdir&;t t
36145s&@abs_srcdir@&$ac_abs_srcdir&;t t
36146s&@top_srcdir@&$ac_top_srcdir&;t t
36147s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36148s&@builddir@&$ac_builddir&;t t
36149s&@abs_builddir@&$ac_abs_builddir&;t t
36150s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36151s&@INSTALL@&$ac_INSTALL&;t t
36152$ac_datarootdir_hack
36153"
36154eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
36155  || as_fn_error "could not create $ac_file" "$LINENO" 5
36156
36157test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36158  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36159  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36160  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36161which seems to be undefined.  Please make sure it is defined." >&5
36162$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36163which seems to be undefined.  Please make sure it is defined." >&2;}
36164
36165  rm -f "$tmp/stdin"
36166  case $ac_file in
36167  -) cat "$tmp/out" && rm -f "$tmp/out";;
36168  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
36169  esac \
36170  || as_fn_error "could not create $ac_file" "$LINENO" 5
36171 ;;
36172  :H)
36173  #
36174  # CONFIG_HEADER
36175  #
36176  if test x"$ac_file" != x-; then
36177    {
36178      $as_echo "/* $configure_input  */" \
36179      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
36180    } >"$tmp/config.h" \
36181      || as_fn_error "could not create $ac_file" "$LINENO" 5
36182    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
36183      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36184$as_echo "$as_me: $ac_file is unchanged" >&6;}
36185    else
36186      rm -f "$ac_file"
36187      mv "$tmp/config.h" "$ac_file" \
36188	|| as_fn_error "could not create $ac_file" "$LINENO" 5
36189    fi
36190  else
36191    $as_echo "/* $configure_input  */" \
36192      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
36193      || as_fn_error "could not create -" "$LINENO" 5
36194  fi
36195 ;;
36196
36197  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36198$as_echo "$as_me: executing $ac_file commands" >&6;}
36199 ;;
36200  esac
36201
36202
36203  case $ac_file$ac_mode in
36204    "default":C)
36205# Commands run at the end of config.status:
36206for i in $APR_SAVE_HEADERS; do
36207  if cmp -s $i $i.save 2>/dev/null; then
36208    mv $i.save $i
36209    { $as_echo "$as_me:${as_lineno-$LINENO}: $i is unchanged" >&5
36210$as_echo "$as_me: $i is unchanged" >&6;}
36211  fi
36212  rm -f $i.save
36213done
36214chmod +x apr-$APR_MAJOR_VERSION-config
36215 ;;
36216
36217  esac
36218done # for ac_tag
36219
36220
36221as_fn_exit 0
36222_ACEOF
36223ac_clean_files=$ac_clean_files_save
36224
36225test $ac_write_fail = 0 ||
36226  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
36227
36228
36229# configure is writing to config.log, and then calls config.status.
36230# config.status does its own redirection, appending to config.log.
36231# Unfortunately, on DOS this fails, as config.log is still kept open
36232# by configure, so config.status won't be able to write to it; its
36233# output is simply discarded.  So we exec the FD to /dev/null,
36234# effectively closing config.log, so it can be properly (re)opened and
36235# appended to by config.status.  When coming back to configure, we
36236# need to make the FD available again.
36237if test "$no_create" != yes; then
36238  ac_cs_success=:
36239  ac_config_status_args=
36240  test "$silent" = yes &&
36241    ac_config_status_args="$ac_config_status_args --quiet"
36242  exec 5>/dev/null
36243  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36244  exec 5>>config.log
36245  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36246  # would make configure fail if this is the last instruction.
36247  $ac_cs_success || as_fn_exit $?
36248fi
36249if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36250  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36251$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36252fi
36253
36254