1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
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.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
558# Check that we are running under the correct shell.
559SHELL=${CONFIG_SHELL-/bin/sh}
560
561case X$lt_ECHO in
562X*--fallback-echo)
563  # Remove one level of quotation (which was required for Make).
564  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
565  ;;
566esac
567
568ECHO=${lt_ECHO-echo}
569if test "X$1" = X--no-reexec; then
570  # Discard the --no-reexec flag, and continue.
571  shift
572elif test "X$1" = X--fallback-echo; then
573  # Avoid inline document here, it may be left over
574  :
575elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576  # Yippee, $ECHO works!
577  :
578else
579  # Restart under the correct shell.
580  exec $SHELL "$0" --no-reexec ${1+"$@"}
581fi
582
583if test "X$1" = X--fallback-echo; then
584  # used as fallback echo
585  shift
586  cat <<_LT_EOF
587$*
588_LT_EOF
589  exit 0
590fi
591
592# The HP-UX ksh and POSIX shell print the target directory to stdout
593# if CDPATH is set.
594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596if test -z "$lt_ECHO"; then
597  if test "X${echo_test_string+set}" != Xset; then
598    # find a string as large as possible, as long as the shell can cope with it
599    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603      then
604        break
605      fi
606    done
607  fi
608
609  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611     test "X$echo_testing_string" = "X$echo_test_string"; then
612    :
613  else
614    # The Solaris, AIX, and Digital Unix default echo programs unquote
615    # backslashes.  This makes it impossible to quote backslashes using
616    #   echo "$something" | sed 's/\\/\\\\/g'
617    #
618    # So, first we look for a working echo in the user's PATH.
619
620    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621    for dir in $PATH /usr/ucb; do
622      IFS="$lt_save_ifs"
623      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626         test "X$echo_testing_string" = "X$echo_test_string"; then
627        ECHO="$dir/echo"
628        break
629      fi
630    done
631    IFS="$lt_save_ifs"
632
633    if test "X$ECHO" = Xecho; then
634      # We didn't find a better echo, so look for alternatives.
635      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637         test "X$echo_testing_string" = "X$echo_test_string"; then
638        # This shell has a builtin print -r that does the trick.
639        ECHO='print -r'
640      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641	   test "X$CONFIG_SHELL" != X/bin/ksh; then
642        # If we have ksh, try running configure again with it.
643        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644        export ORIGINAL_CONFIG_SHELL
645        CONFIG_SHELL=/bin/ksh
646        export CONFIG_SHELL
647        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648      else
649        # Try using printf.
650        ECHO='printf %s\n'
651        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653	   test "X$echo_testing_string" = "X$echo_test_string"; then
654	  # Cool, printf works
655	  :
656        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657	     test "X$echo_testing_string" = 'X\t' &&
658	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659	     test "X$echo_testing_string" = "X$echo_test_string"; then
660	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661	  export CONFIG_SHELL
662	  SHELL="$CONFIG_SHELL"
663	  export SHELL
664	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
665        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666	     test "X$echo_testing_string" = 'X\t' &&
667	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668	     test "X$echo_testing_string" = "X$echo_test_string"; then
669	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
670        else
671	  # maybe with a smaller string...
672	  prev=:
673
674	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676	    then
677	      break
678	    fi
679	    prev="$cmd"
680	  done
681
682	  if test "$prev" != 'sed 50q "$0"'; then
683	    echo_test_string=`eval $prev`
684	    export echo_test_string
685	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686	  else
687	    # Oops.  We lost completely, so just stick with echo.
688	    ECHO=echo
689	  fi
690        fi
691      fi
692    fi
693  fi
694fi
695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
698lt_ECHO=$ECHO
699if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701fi
702
703
704
705
706lt_ltdl_dir='lib/libltdl'
707
708lt_dlopen_dir="$lt_ltdl_dir"
709
710test -n "$DJDIR" || exec 7<&0 </dev/null
711exec 6>&1
712
713# Name of the host.
714# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
715# so uname gets run too.
716ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717
718#
719# Initializations.
720#
721ac_default_prefix=/usr/local
722ac_clean_files=
723ac_config_libobj_dir=.
724LIBOBJS=
725cross_compiling=no
726subdirs=
727MFLAGS=
728MAKEFLAGS=
729
730# Identity of this package.
731PACKAGE_NAME=
732PACKAGE_TARNAME=
733PACKAGE_VERSION=
734PACKAGE_STRING=
735PACKAGE_BUGREPORT=
736PACKAGE_URL=
737
738ac_unique_file="include/conf.h"
739# Factoring default headers for most tests.
740ac_includes_default="\
741#include <stdio.h>
742#ifdef HAVE_SYS_TYPES_H
743# include <sys/types.h>
744#endif
745#ifdef HAVE_SYS_STAT_H
746# include <sys/stat.h>
747#endif
748#ifdef STDC_HEADERS
749# include <stdlib.h>
750# include <stddef.h>
751#else
752# ifdef HAVE_STDLIB_H
753#  include <stdlib.h>
754# endif
755#endif
756#ifdef HAVE_STRING_H
757# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758#  include <memory.h>
759# endif
760# include <string.h>
761#endif
762#ifdef HAVE_STRINGS_H
763# include <strings.h>
764#endif
765#ifdef HAVE_INTTYPES_H
766# include <inttypes.h>
767#endif
768#ifdef HAVE_STDINT_H
769# include <stdint.h>
770#endif
771#ifdef HAVE_UNISTD_H
772# include <unistd.h>
773#endif"
774
775enable_option_checking=no
776ac_subst_vars='ltdl_LTLIBOBJS
777ltdl_LIBOBJS
778LTLIBOBJS
779LIBOBJS
780RC_VERSION
781RELEASE_VERSION
782BUILD_VERSION
783UTILS_LIBS
784CURSES_LIBS
785LIBRARIES
786LIBDIRS
787INCLUDES
788ADDL_DIRS
789ADDL_CPPFLAGS
790BUILD_STATIC_MODULE_OBJS
791BUILD_STATIC_MODULE_ARCHIVES
792BUILD_SHARED_MODULE_OBJS
793STATIC_MODULE_OBJS
794STATIC_MODULE_DIRS
795SHARED_MODULE_OBJS
796SHARED_MODULE_LIBS
797SHARED_MODULE_DIRS
798MODULE_LDFLAGS
799MODULE_DEPS
800MAIN_LIBS
801MAIN_LDFLAGS
802LIBTOOL_DEPS
803LIB_OBJS
804LIB_DEPS
805INSTALL_DEPS
806INSTALL_STRIP
807GLUE_MODULE_OBJS
808ENABLE_TESTS
809ENABLE_NLS
810pkgconfigdir
811ALLOCA
812install_group
813install_user
814LTDLOPEN
815LT_CONFIG_H
816subdirs
817ARGZ_H
818sys_symbol_underscore
819LIBADD_DL
820LT_DLPREOPEN
821LIBADD_DLD_LINK
822LIBADD_SHL_LOAD
823LIBADD_DLOPEN
824LT_DLLOADERS
825INCLTDL
826LTDLINCL
827LTDLDEPS
828LIBLTDL
829SYSCONFDIR
830SBINDIR
831PREFIX
832RUNSTATEDIR
833LOCALSTATEDIR
834LIBEXECDIR
835INCLUDEDIR
836DATADIR
837BINDIR
838INSTALL_DATA
839INSTALL_SCRIPT
840INSTALL_PROGRAM
841SET_MAKE
842CXXCPP
843ac_ct_CXX
844CXXFLAGS
845CXX
846CPP
847OTOOL64
848OTOOL
849LIPO
850NMEDIT
851DSYMUTIL
852lt_ECHO
853RANLIB
854STRIP
855AR
856OBJDUMP
857LN_S
858NM
859ac_ct_DUMPBIN
860DUMPBIN
861LD
862FGREP
863EGREP
864GREP
865SED
866OBJEXT
867EXEEXT
868ac_ct_CC
869CPPFLAGS
870LDFLAGS
871CFLAGS
872CC
873LIBTOOL
874CONFIG_SHELL
875OSTYPE
876OSREL
877BUILD_OPTS
878target_os
879target_vendor
880target_cpu
881target
882host_os
883host_vendor
884host_cpu
885host
886build_os
887build_vendor
888build_cpu
889build
890target_alias
891host_alias
892build_alias
893LIBS
894ECHO_T
895ECHO_N
896ECHO_C
897DEFS
898mandir
899localedir
900libdir
901psdir
902pdfdir
903dvidir
904htmldir
905infodir
906docdir
907oldincludedir
908includedir
909localstatedir
910sharedstatedir
911sysconfdir
912datadir
913datarootdir
914libexecdir
915sbindir
916bindir
917program_transform_name
918prefix
919exec_prefix
920PACKAGE_URL
921PACKAGE_BUGREPORT
922PACKAGE_STRING
923PACKAGE_VERSION
924PACKAGE_TARNAME
925PACKAGE_NAME
926PATH_SEPARATOR
927SHELL'
928ac_subst_files=''
929ac_user_opts='
930enable_option_checking
931enable_shared
932enable_static
933with_pic
934enable_fast_install
935with_gnu_ld
936enable_libtool_lock
937enable_largefile
938with_getopt
939with_lastlog
940with_includes
941with_libraries
942with_modules
943with_shared
944with_mysql_config
945with_openssl_cmdline
946with_postgres_config
947with_pkgconfig
948enable_auth_file
949enable_autoshadow
950enable_auth_pam
951enable_builtin_getaddrinfo
952enable_builtin_getnameinfo
953enable_cap
954enable_ctrls
955enable_facl
956enable_curses
957enable_dso
958with_included_ltdl
959with_ltdl_include
960with_ltdl_lib
961enable_ident
962enable_memcache
963enable_nls
964enable_nonblocking_log_open
965enable_ncurses
966enable_pcre
967enable_redis
968enable_force_setpassent
969enable_ipv6
970enable_openssl
971enable_sodium
972enable_sendfile
973enable_shadow
974enable_sia
975enable_tests
976enable_trace
977enable_xattr
978enable_devel
979enable_buffer_size
980enable_pool_size
981enable_scoreboard_buffer_size
982enable_scoreboard_updates
983enable_strip
984enable_timeout_ident
985enable_timeout_idle
986enable_timeout_linger
987enable_timeout_login
988enable_timeout_no_transfer
989enable_timeout_stalled
990enable_parser_buffer_size
991enable_transfer_buffer_size
992'
993      ac_precious_vars='build_alias
994host_alias
995target_alias
996CC
997CFLAGS
998LDFLAGS
999LIBS
1000CPPFLAGS
1001CPP
1002CXX
1003CXXFLAGS
1004CCC
1005CXXCPP'
1006ac_subdirs_all='lib/libltdl
1007$ac_shared_module_dirs
1008$ac_static_module_dirs'
1009
1010# Initialize some variables set by options.
1011ac_init_help=
1012ac_init_version=false
1013ac_unrecognized_opts=
1014ac_unrecognized_sep=
1015# The variables have the same names as the options, with
1016# dashes changed to underlines.
1017cache_file=/dev/null
1018exec_prefix=NONE
1019no_create=
1020no_recursion=
1021prefix=NONE
1022program_prefix=NONE
1023program_suffix=NONE
1024program_transform_name=s,x,x,
1025silent=
1026site=
1027srcdir=
1028verbose=
1029x_includes=NONE
1030x_libraries=NONE
1031
1032# Installation directory options.
1033# These are left unexpanded so users can "make install exec_prefix=/foo"
1034# and all the variables that are supposed to be based on exec_prefix
1035# by default will actually change.
1036# Use braces instead of parens because sh, perl, etc. also accept them.
1037# (The list follows the same order as the GNU Coding Standards.)
1038bindir='${exec_prefix}/bin'
1039sbindir='${exec_prefix}/sbin'
1040libexecdir='${exec_prefix}/libexec'
1041datarootdir='${prefix}/share'
1042datadir='${datarootdir}'
1043sysconfdir='${prefix}/etc'
1044sharedstatedir='${prefix}/com'
1045localstatedir='${prefix}/var'
1046includedir='${prefix}/include'
1047oldincludedir='/usr/include'
1048docdir='${datarootdir}/doc/${PACKAGE}'
1049infodir='${datarootdir}/info'
1050htmldir='${docdir}'
1051dvidir='${docdir}'
1052pdfdir='${docdir}'
1053psdir='${docdir}'
1054libdir='${exec_prefix}/lib'
1055localedir='${datarootdir}/locale'
1056mandir='${datarootdir}/man'
1057
1058ac_prev=
1059ac_dashdash=
1060for ac_option
1061do
1062  # If the previous option needs an argument, assign it.
1063  if test -n "$ac_prev"; then
1064    eval $ac_prev=\$ac_option
1065    ac_prev=
1066    continue
1067  fi
1068
1069  case $ac_option in
1070  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1071  *=)   ac_optarg= ;;
1072  *)    ac_optarg=yes ;;
1073  esac
1074
1075  # Accept the important Cygnus configure options, so we can diagnose typos.
1076
1077  case $ac_dashdash$ac_option in
1078  --)
1079    ac_dashdash=yes ;;
1080
1081  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1082    ac_prev=bindir ;;
1083  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1084    bindir=$ac_optarg ;;
1085
1086  -build | --build | --buil | --bui | --bu)
1087    ac_prev=build_alias ;;
1088  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1089    build_alias=$ac_optarg ;;
1090
1091  -cache-file | --cache-file | --cache-fil | --cache-fi \
1092  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1093    ac_prev=cache_file ;;
1094  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1095  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1096    cache_file=$ac_optarg ;;
1097
1098  --config-cache | -C)
1099    cache_file=config.cache ;;
1100
1101  -datadir | --datadir | --datadi | --datad)
1102    ac_prev=datadir ;;
1103  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1104    datadir=$ac_optarg ;;
1105
1106  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1107  | --dataroo | --dataro | --datar)
1108    ac_prev=datarootdir ;;
1109  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1110  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1111    datarootdir=$ac_optarg ;;
1112
1113  -disable-* | --disable-*)
1114    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1115    # Reject names that are not valid shell variable names.
1116    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117      as_fn_error $? "invalid feature name: $ac_useropt"
1118    ac_useropt_orig=$ac_useropt
1119    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120    case $ac_user_opts in
1121      *"
1122"enable_$ac_useropt"
1123"*) ;;
1124      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1125	 ac_unrecognized_sep=', ';;
1126    esac
1127    eval enable_$ac_useropt=no ;;
1128
1129  -docdir | --docdir | --docdi | --doc | --do)
1130    ac_prev=docdir ;;
1131  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1132    docdir=$ac_optarg ;;
1133
1134  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1135    ac_prev=dvidir ;;
1136  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1137    dvidir=$ac_optarg ;;
1138
1139  -enable-* | --enable-*)
1140    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1141    # Reject names that are not valid shell variable names.
1142    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143      as_fn_error $? "invalid feature name: $ac_useropt"
1144    ac_useropt_orig=$ac_useropt
1145    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146    case $ac_user_opts in
1147      *"
1148"enable_$ac_useropt"
1149"*) ;;
1150      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1151	 ac_unrecognized_sep=', ';;
1152    esac
1153    eval enable_$ac_useropt=\$ac_optarg ;;
1154
1155  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1156  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1157  | --exec | --exe | --ex)
1158    ac_prev=exec_prefix ;;
1159  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1160  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1161  | --exec=* | --exe=* | --ex=*)
1162    exec_prefix=$ac_optarg ;;
1163
1164  -gas | --gas | --ga | --g)
1165    # Obsolete; use --with-gas.
1166    with_gas=yes ;;
1167
1168  -help | --help | --hel | --he | -h)
1169    ac_init_help=long ;;
1170  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1171    ac_init_help=recursive ;;
1172  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1173    ac_init_help=short ;;
1174
1175  -host | --host | --hos | --ho)
1176    ac_prev=host_alias ;;
1177  -host=* | --host=* | --hos=* | --ho=*)
1178    host_alias=$ac_optarg ;;
1179
1180  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1181    ac_prev=htmldir ;;
1182  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1183  | --ht=*)
1184    htmldir=$ac_optarg ;;
1185
1186  -includedir | --includedir | --includedi | --included | --include \
1187  | --includ | --inclu | --incl | --inc)
1188    ac_prev=includedir ;;
1189  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1190  | --includ=* | --inclu=* | --incl=* | --inc=*)
1191    includedir=$ac_optarg ;;
1192
1193  -infodir | --infodir | --infodi | --infod | --info | --inf)
1194    ac_prev=infodir ;;
1195  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1196    infodir=$ac_optarg ;;
1197
1198  -libdir | --libdir | --libdi | --libd)
1199    ac_prev=libdir ;;
1200  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1201    libdir=$ac_optarg ;;
1202
1203  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1204  | --libexe | --libex | --libe)
1205    ac_prev=libexecdir ;;
1206  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1207  | --libexe=* | --libex=* | --libe=*)
1208    libexecdir=$ac_optarg ;;
1209
1210  -localedir | --localedir | --localedi | --localed | --locale)
1211    ac_prev=localedir ;;
1212  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1213    localedir=$ac_optarg ;;
1214
1215  -localstatedir | --localstatedir | --localstatedi | --localstated \
1216  | --localstate | --localstat | --localsta | --localst | --locals)
1217    ac_prev=localstatedir ;;
1218  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1219  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1220    localstatedir=$ac_optarg ;;
1221
1222  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1223    ac_prev=mandir ;;
1224  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1225    mandir=$ac_optarg ;;
1226
1227  -nfp | --nfp | --nf)
1228    # Obsolete; use --without-fp.
1229    with_fp=no ;;
1230
1231  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1232  | --no-cr | --no-c | -n)
1233    no_create=yes ;;
1234
1235  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1236  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1237    no_recursion=yes ;;
1238
1239  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1240  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1241  | --oldin | --oldi | --old | --ol | --o)
1242    ac_prev=oldincludedir ;;
1243  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1244  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1245  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1246    oldincludedir=$ac_optarg ;;
1247
1248  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1249    ac_prev=prefix ;;
1250  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1251    prefix=$ac_optarg ;;
1252
1253  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1254  | --program-pre | --program-pr | --program-p)
1255    ac_prev=program_prefix ;;
1256  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1257  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1258    program_prefix=$ac_optarg ;;
1259
1260  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1261  | --program-suf | --program-su | --program-s)
1262    ac_prev=program_suffix ;;
1263  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1264  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1265    program_suffix=$ac_optarg ;;
1266
1267  -program-transform-name | --program-transform-name \
1268  | --program-transform-nam | --program-transform-na \
1269  | --program-transform-n | --program-transform- \
1270  | --program-transform | --program-transfor \
1271  | --program-transfo | --program-transf \
1272  | --program-trans | --program-tran \
1273  | --progr-tra | --program-tr | --program-t)
1274    ac_prev=program_transform_name ;;
1275  -program-transform-name=* | --program-transform-name=* \
1276  | --program-transform-nam=* | --program-transform-na=* \
1277  | --program-transform-n=* | --program-transform-=* \
1278  | --program-transform=* | --program-transfor=* \
1279  | --program-transfo=* | --program-transf=* \
1280  | --program-trans=* | --program-tran=* \
1281  | --progr-tra=* | --program-tr=* | --program-t=*)
1282    program_transform_name=$ac_optarg ;;
1283
1284  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1285    ac_prev=pdfdir ;;
1286  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1287    pdfdir=$ac_optarg ;;
1288
1289  -psdir | --psdir | --psdi | --psd | --ps)
1290    ac_prev=psdir ;;
1291  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1292    psdir=$ac_optarg ;;
1293
1294  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295  | -silent | --silent | --silen | --sile | --sil)
1296    silent=yes ;;
1297
1298  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1299    ac_prev=sbindir ;;
1300  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1301  | --sbi=* | --sb=*)
1302    sbindir=$ac_optarg ;;
1303
1304  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1305  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1306  | --sharedst | --shareds | --shared | --share | --shar \
1307  | --sha | --sh)
1308    ac_prev=sharedstatedir ;;
1309  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1310  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1311  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1312  | --sha=* | --sh=*)
1313    sharedstatedir=$ac_optarg ;;
1314
1315  -site | --site | --sit)
1316    ac_prev=site ;;
1317  -site=* | --site=* | --sit=*)
1318    site=$ac_optarg ;;
1319
1320  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1321    ac_prev=srcdir ;;
1322  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1323    srcdir=$ac_optarg ;;
1324
1325  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1326  | --syscon | --sysco | --sysc | --sys | --sy)
1327    ac_prev=sysconfdir ;;
1328  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1329  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1330    sysconfdir=$ac_optarg ;;
1331
1332  -target | --target | --targe | --targ | --tar | --ta | --t)
1333    ac_prev=target_alias ;;
1334  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1335    target_alias=$ac_optarg ;;
1336
1337  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1338    verbose=yes ;;
1339
1340  -version | --version | --versio | --versi | --vers | -V)
1341    ac_init_version=: ;;
1342
1343  -with-* | --with-*)
1344    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1345    # Reject names that are not valid shell variable names.
1346    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347      as_fn_error $? "invalid package name: $ac_useropt"
1348    ac_useropt_orig=$ac_useropt
1349    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350    case $ac_user_opts in
1351      *"
1352"with_$ac_useropt"
1353"*) ;;
1354      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1355	 ac_unrecognized_sep=', ';;
1356    esac
1357    eval with_$ac_useropt=\$ac_optarg ;;
1358
1359  -without-* | --without-*)
1360    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1361    # Reject names that are not valid shell variable names.
1362    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363      as_fn_error $? "invalid package name: $ac_useropt"
1364    ac_useropt_orig=$ac_useropt
1365    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1366    case $ac_user_opts in
1367      *"
1368"with_$ac_useropt"
1369"*) ;;
1370      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1371	 ac_unrecognized_sep=', ';;
1372    esac
1373    eval with_$ac_useropt=no ;;
1374
1375  --x)
1376    # Obsolete; use --with-x.
1377    with_x=yes ;;
1378
1379  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1380  | --x-incl | --x-inc | --x-in | --x-i)
1381    ac_prev=x_includes ;;
1382  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1383  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1384    x_includes=$ac_optarg ;;
1385
1386  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1387  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1388    ac_prev=x_libraries ;;
1389  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1390  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1391    x_libraries=$ac_optarg ;;
1392
1393  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1394Try \`$0 --help' for more information"
1395    ;;
1396
1397  *=*)
1398    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1399    # Reject names that are not valid shell variable names.
1400    case $ac_envvar in #(
1401      '' | [0-9]* | *[!_$as_cr_alnum]* )
1402      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1403    esac
1404    eval $ac_envvar=\$ac_optarg
1405    export $ac_envvar ;;
1406
1407  *)
1408    # FIXME: should be removed in autoconf 3.0.
1409    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1410    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1411      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1412    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1413    ;;
1414
1415  esac
1416done
1417
1418if test -n "$ac_prev"; then
1419  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1420  as_fn_error $? "missing argument to $ac_option"
1421fi
1422
1423if test -n "$ac_unrecognized_opts"; then
1424  case $enable_option_checking in
1425    no) ;;
1426    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1427    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1428  esac
1429fi
1430
1431# Check all directory arguments for consistency.
1432for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1433		datadir sysconfdir sharedstatedir localstatedir includedir \
1434		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1435		libdir localedir mandir
1436do
1437  eval ac_val=\$$ac_var
1438  # Remove trailing slashes.
1439  case $ac_val in
1440    */ )
1441      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1442      eval $ac_var=\$ac_val;;
1443  esac
1444  # Be sure to have absolute directory names.
1445  case $ac_val in
1446    [\\/$]* | ?:[\\/]* )  continue;;
1447    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1448  esac
1449  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1450done
1451
1452# There might be people who depend on the old broken behavior: `$host'
1453# used to hold the argument of --host etc.
1454# FIXME: To remove some day.
1455build=$build_alias
1456host=$host_alias
1457target=$target_alias
1458
1459# FIXME: To remove some day.
1460if test "x$host_alias" != x; then
1461  if test "x$build_alias" = x; then
1462    cross_compiling=maybe
1463  elif test "x$build_alias" != "x$host_alias"; then
1464    cross_compiling=yes
1465  fi
1466fi
1467
1468ac_tool_prefix=
1469test -n "$host_alias" && ac_tool_prefix=$host_alias-
1470
1471test "$silent" = yes && exec 6>/dev/null
1472
1473
1474ac_pwd=`pwd` && test -n "$ac_pwd" &&
1475ac_ls_di=`ls -di .` &&
1476ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1477  as_fn_error $? "working directory cannot be determined"
1478test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1479  as_fn_error $? "pwd does not report name of working directory"
1480
1481
1482# Find the source files, if location was not specified.
1483if test -z "$srcdir"; then
1484  ac_srcdir_defaulted=yes
1485  # Try the directory containing this script, then the parent directory.
1486  ac_confdir=`$as_dirname -- "$as_myself" ||
1487$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1488	 X"$as_myself" : 'X\(//\)[^/]' \| \
1489	 X"$as_myself" : 'X\(//\)$' \| \
1490	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1491$as_echo X"$as_myself" |
1492    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1493	    s//\1/
1494	    q
1495	  }
1496	  /^X\(\/\/\)[^/].*/{
1497	    s//\1/
1498	    q
1499	  }
1500	  /^X\(\/\/\)$/{
1501	    s//\1/
1502	    q
1503	  }
1504	  /^X\(\/\).*/{
1505	    s//\1/
1506	    q
1507	  }
1508	  s/.*/./; q'`
1509  srcdir=$ac_confdir
1510  if test ! -r "$srcdir/$ac_unique_file"; then
1511    srcdir=..
1512  fi
1513else
1514  ac_srcdir_defaulted=no
1515fi
1516if test ! -r "$srcdir/$ac_unique_file"; then
1517  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1518  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1519fi
1520ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521ac_abs_confdir=`(
1522	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1523	pwd)`
1524# When building in place, set srcdir=.
1525if test "$ac_abs_confdir" = "$ac_pwd"; then
1526  srcdir=.
1527fi
1528# Remove unnecessary trailing slashes from srcdir.
1529# Double slashes in file names in object file debugging info
1530# mess up M-x gdb in Emacs.
1531case $srcdir in
1532*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1533esac
1534for ac_var in $ac_precious_vars; do
1535  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1536  eval ac_env_${ac_var}_value=\$${ac_var}
1537  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1538  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1539done
1540
1541#
1542# Report the --help message.
1543#
1544if test "$ac_init_help" = "long"; then
1545  # Omit some internal or obsolete options to make the list less imposing.
1546  # This message is too long to be a string in the A/UX 3.1 sh.
1547  cat <<_ACEOF
1548\`configure' configures this package to adapt to many kinds of systems.
1549
1550Usage: $0 [OPTION]... [VAR=VALUE]...
1551
1552To assign environment variables (e.g., CC, CFLAGS...), specify them as
1553VAR=VALUE.  See below for descriptions of some of the useful variables.
1554
1555Defaults for the options are specified in brackets.
1556
1557Configuration:
1558  -h, --help              display this help and exit
1559      --help=short        display options specific to this package
1560      --help=recursive    display the short help of all the included packages
1561  -V, --version           display version information and exit
1562  -q, --quiet, --silent   do not print \`checking ...' messages
1563      --cache-file=FILE   cache test results in FILE [disabled]
1564  -C, --config-cache      alias for \`--cache-file=config.cache'
1565  -n, --no-create         do not create output files
1566      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1567
1568Installation directories:
1569  --prefix=PREFIX         install architecture-independent files in PREFIX
1570                          [$ac_default_prefix]
1571  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1572                          [PREFIX]
1573
1574By default, \`make install' will install all the files in
1575\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1576an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1577for instance \`--prefix=\$HOME'.
1578
1579For better control, use the options below.
1580
1581Fine tuning of the installation directories:
1582  --bindir=DIR            user executables [EPREFIX/bin]
1583  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1584  --libexecdir=DIR        program executables [EPREFIX/libexec]
1585  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1586  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1587  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1588  --libdir=DIR            object code libraries [EPREFIX/lib]
1589  --includedir=DIR        C header files [PREFIX/include]
1590  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1591  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1592  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1593  --infodir=DIR           info documentation [DATAROOTDIR/info]
1594  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1595  --mandir=DIR            man documentation [DATAROOTDIR/man]
1596  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1597  --htmldir=DIR           html documentation [DOCDIR]
1598  --dvidir=DIR            dvi documentation [DOCDIR]
1599  --pdfdir=DIR            pdf documentation [DOCDIR]
1600  --psdir=DIR             ps documentation [DOCDIR]
1601_ACEOF
1602
1603  cat <<\_ACEOF
1604
1605System types:
1606  --build=BUILD     configure for building on BUILD [guessed]
1607  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1608  --target=TARGET   configure for building compilers for TARGET [HOST]
1609_ACEOF
1610fi
1611
1612if test -n "$ac_init_help"; then
1613
1614  cat <<\_ACEOF
1615
1616Optional Features:
1617  --disable-option-checking  ignore unrecognized --enable/--with options
1618  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1619  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1620  --enable-shared[=PKGS]  build shared libraries [default=yes]
1621  --enable-static[=PKGS]  build static libraries [default=yes]
1622  --enable-fast-install[=PKGS]
1623                          optimize for fast installation [default=yes]
1624  --disable-libtool-lock  avoid locking (might break parallel builds)
1625  --disable-largefile     omit support for large files
1626  --disable-auth-file     omit mod_auth_file from core modules
1627
1628  --enable-autoshadow     enable run-time auto-detection of shadowed passwords
1629                          (requires shadow)
1630
1631  --enable-auth-pam       enable PAM support (default=auto)
1632
1633  --enable-builtin-getaddrinfo
1634                          force use of builtin getaddrinfo (default=no)
1635
1636  --enable-builtin-getnameinfo
1637                          force use of builtin getnameinfo (default=no)
1638
1639  --enable-cap            enable POSIX.1e capabilities (default=yes on Linux)
1640
1641  --enable-ctrls          enable proftpd controls via ftpdctl (default=no)
1642
1643  --enable-facl           enable support for POSIX ACLs
1644
1645  --disable-curses        disable use of curses (default=no)
1646
1647  --enable-dso            add mod_dso to core modules
1648
1649  --enable-ident          enable use of ident (RFC1413) lookups (default=no)
1650
1651  --enable-memcache       enable support for memcache (default=no)
1652
1653  --enable-nls            enable Native Language Support (NLS) (default=no)
1654
1655  --disable-nonblocking-log-open
1656                          disable use of nonblocking open of log files
1657                          (default=no)
1658
1659  --disable-ncurses       disable use of ncurses (default=no)
1660
1661  --enable-pcre           enable use of PCRE for POSIX regular expressions
1662                          rather than the system library (default=no)
1663  --enable-redis          enable support for Redis (default=no)
1664
1665  --enable-force-setpassent
1666                          force use of setpassent (default=no on FreeBSD)
1667
1668  --disable-ipv6          disable IPv6 support (default=no)
1669
1670  --enable-openssl        enable OpenSSL support (default=no)
1671
1672  --enable-sodium         enable Sodium support (default=auto)
1673
1674  --disable-sendfile      disable sendfile support (default=no)
1675
1676  --enable-shadow         force compilation of shadowed password support
1677
1678  --enable-sia            enable SIA authentication support (Tru64)
1679
1680  --enable-tests          enable unit tests (default=no)
1681
1682  --disable-trace         disable trace support (default=no)
1683
1684  --disable-xattr         disable extended attribute support (default=auto)
1685
1686  --enable-devel          enable developer-only code (default=no)
1687
1688  --enable-buffer-size    tune the the size (in bytes) of internal buffers
1689                          (default=1024)
1690
1691  --enable-pool-size      tune the size (in bytes) of memory pools
1692                          (default=512)
1693
1694  --enable-scoreboard-buffer-size
1695                          tune the the size (in bytes) of certain scoreboard
1696                          buffers (default=80)
1697
1698  --enable-scoreboard-updates
1699                          set how often (in loops) the mod_xfer module updates
1700                          the scoreboard (default=10)
1701
1702  --enable-strip          strip debugging symbols from installed code
1703                          (default=no)
1704
1705  --enable-timeout-ident  set the default timeout (in secs) for RFC931
1706                          connections (default=10)
1707
1708  --enable-timeout-idle   set the default timeout (in secs) for idle
1709                          connections (default=600)
1710
1711  --enable-timeout-linger set the default timeout (in secs) for lingering
1712                          closes (default=30)
1713
1714  --enable-timeout-login  set the default timeout (in secs) for logging in
1715                          after connecting (default=300)
1716
1717  --enable-timeout-no-transfer
1718                          set the default timeout (in secs) for no data
1719                          transferred (default=300)
1720
1721  --enable-timeout-stalled
1722                          set the default timeout (in secs) for stalled
1723                          transfers (default=3600)
1724
1725  --enable-parser-buffer-size
1726                          tune the the size (in bytes) of parser buffers
1727                          (default=4096 bytes)
1728
1729  --enable-transfer-buffer-size
1730                          tune the the size (in bytes) of data transfer
1731                          buffers (default=OS dependent)
1732
1733
1734Optional Packages:
1735  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1736  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1737  --with-pic              try to use only PIC/non-PIC objects [default=use
1738                          both]
1739  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1740  --without-getopt        prevent proftpd from using its bundled getopt
1741                          implementation. This is done automatically if the
1742                          host supports getopt, but may need to be explicitly
1743                          used when combining proftpd with other applications,
1744                          such as MySQL
1745
1746  --with-lastlog=PATH     specify lastlog location (Default: /var/adm/lastlog)
1747  --with-includes=LIST    add additional include paths to proftpd. LIST is a
1748                          colon-separated list of include paths to add e.g.
1749                          --with-includes=/some/mysql/include:/my/include
1750
1751  --with-libraries=LIST   add additional library paths to proftpd. LIST is a
1752                          colon-separated list of library paths to add e.g.
1753                          --with-libraries=/some/mysql/libdir:/my/libs
1754
1755  --with-modules=LIST     add additional modules to proftpd. LIST is a
1756                          colon-separated list of modules to add e.g.
1757                          --with-modules=mod_readme:mod_ifsession
1758
1759  --with-shared=LIST      build DSO modules for proftpd. LIST is a
1760                          colon-separated list of modules to build as DSOs
1761                          e.g. --with-shared=mod_rewrite:mod_ifsession
1762
1763  --with-mysql-config=PATH
1764                          configure location of the MySQL mysql_config script
1765                          (default=mysql_config)
1766
1767  --with-openssl-cmdline=PATH
1768                          configure location of the openssl(1) command-line
1769                          tool (default=openssl)
1770
1771  --with-postgres-config=PATH
1772                          configure location of the Postgres pg_config script
1773                          (default=pg_config)
1774
1775  --with-pkgconfig=PATH   configure directory that will contain the proftpd.pc
1776                          pkgconfig file (default=lib/pkgconfig)
1777
1778  --with-included-ltdl    use the GNU ltdl sources included here
1779  --with-ltdl-include=DIR use the ltdl headers installed in DIR
1780  --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1781
1782Some influential environment variables:
1783  CC          C compiler command
1784  CFLAGS      C compiler flags
1785  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1786              nonstandard directory <lib dir>
1787  LIBS        libraries to pass to the linker, e.g. -l<library>
1788  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1789              you have headers in a nonstandard directory <include dir>
1790  CPP         C preprocessor
1791  CXX         C++ compiler command
1792  CXXFLAGS    C++ compiler flags
1793  CXXCPP      C++ preprocessor
1794
1795Use these variables to override the choices made by `configure' or to help
1796it to find libraries and programs with nonstandard names/locations.
1797
1798Report bugs to the package provider.
1799_ACEOF
1800ac_status=$?
1801fi
1802
1803if test "$ac_init_help" = "recursive"; then
1804  # If there are subdirs, report their specific --help.
1805  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1806    test -d "$ac_dir" ||
1807      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1808      continue
1809    ac_builddir=.
1810
1811case "$ac_dir" in
1812.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1813*)
1814  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1815  # A ".." for each directory in $ac_dir_suffix.
1816  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1817  case $ac_top_builddir_sub in
1818  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1819  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1820  esac ;;
1821esac
1822ac_abs_top_builddir=$ac_pwd
1823ac_abs_builddir=$ac_pwd$ac_dir_suffix
1824# for backward compatibility:
1825ac_top_builddir=$ac_top_build_prefix
1826
1827case $srcdir in
1828  .)  # We are building in place.
1829    ac_srcdir=.
1830    ac_top_srcdir=$ac_top_builddir_sub
1831    ac_abs_top_srcdir=$ac_pwd ;;
1832  [\\/]* | ?:[\\/]* )  # Absolute name.
1833    ac_srcdir=$srcdir$ac_dir_suffix;
1834    ac_top_srcdir=$srcdir
1835    ac_abs_top_srcdir=$srcdir ;;
1836  *) # Relative name.
1837    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1838    ac_top_srcdir=$ac_top_build_prefix$srcdir
1839    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1840esac
1841ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1842
1843    cd "$ac_dir" || { ac_status=$?; continue; }
1844    # Check for guested configure.
1845    if test -f "$ac_srcdir/configure.gnu"; then
1846      echo &&
1847      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1848    elif test -f "$ac_srcdir/configure"; then
1849      echo &&
1850      $SHELL "$ac_srcdir/configure" --help=recursive
1851    else
1852      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1853    fi || ac_status=$?
1854    cd "$ac_pwd" || { ac_status=$?; break; }
1855  done
1856fi
1857
1858test -n "$ac_init_help" && exit $ac_status
1859if $ac_init_version; then
1860  cat <<\_ACEOF
1861configure
1862generated by GNU Autoconf 2.69
1863
1864Copyright (C) 2012 Free Software Foundation, Inc.
1865This configure script is free software; the Free Software Foundation
1866gives unlimited permission to copy, distribute and modify it.
1867_ACEOF
1868  exit
1869fi
1870
1871## ------------------------ ##
1872## Autoconf initialization. ##
1873## ------------------------ ##
1874
1875# ac_fn_c_try_compile LINENO
1876# --------------------------
1877# Try to compile conftest.$ac_ext, and return whether this succeeded.
1878ac_fn_c_try_compile ()
1879{
1880  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881  rm -f conftest.$ac_objext
1882  if { { ac_try="$ac_compile"
1883case "(($ac_try" in
1884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885  *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889  (eval "$ac_compile") 2>conftest.err
1890  ac_status=$?
1891  if test -s conftest.err; then
1892    grep -v '^ *+' conftest.err >conftest.er1
1893    cat conftest.er1 >&5
1894    mv -f conftest.er1 conftest.err
1895  fi
1896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897  test $ac_status = 0; } && {
1898	 test -z "$ac_c_werror_flag" ||
1899	 test ! -s conftest.err
1900       } && test -s conftest.$ac_objext; then :
1901  ac_retval=0
1902else
1903  $as_echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906	ac_retval=1
1907fi
1908  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909  as_fn_set_status $ac_retval
1910
1911} # ac_fn_c_try_compile
1912
1913# ac_fn_c_try_link LINENO
1914# -----------------------
1915# Try to link conftest.$ac_ext, and return whether this succeeded.
1916ac_fn_c_try_link ()
1917{
1918  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919  rm -f conftest.$ac_objext conftest$ac_exeext
1920  if { { ac_try="$ac_link"
1921case "(($ac_try" in
1922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923  *) ac_try_echo=$ac_try;;
1924esac
1925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926$as_echo "$ac_try_echo"; } >&5
1927  (eval "$ac_link") 2>conftest.err
1928  ac_status=$?
1929  if test -s conftest.err; then
1930    grep -v '^ *+' conftest.err >conftest.er1
1931    cat conftest.er1 >&5
1932    mv -f conftest.er1 conftest.err
1933  fi
1934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935  test $ac_status = 0; } && {
1936	 test -z "$ac_c_werror_flag" ||
1937	 test ! -s conftest.err
1938       } && test -s conftest$ac_exeext && {
1939	 test "$cross_compiling" = yes ||
1940	 test -x conftest$ac_exeext
1941       }; then :
1942  ac_retval=0
1943else
1944  $as_echo "$as_me: failed program was:" >&5
1945sed 's/^/| /' conftest.$ac_ext >&5
1946
1947	ac_retval=1
1948fi
1949  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951  # interfere with the next link command; also delete a directory that is
1952  # left behind by Apple's compiler.  We do this before executing the actions.
1953  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955  as_fn_set_status $ac_retval
1956
1957} # ac_fn_c_try_link
1958
1959# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1960# -------------------------------------------------------
1961# Tests whether HEADER exists and can be compiled using the include files in
1962# INCLUDES, setting the cache variable VAR accordingly.
1963ac_fn_c_check_header_compile ()
1964{
1965  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval \${$3+:} false; then :
1969  $as_echo_n "(cached) " >&6
1970else
1971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h.  */
1973$4
1974#include <$2>
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977  eval "$3=yes"
1978else
1979  eval "$3=no"
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982fi
1983eval ac_res=\$$3
1984	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985$as_echo "$ac_res" >&6; }
1986  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988} # ac_fn_c_check_header_compile
1989
1990# ac_fn_c_try_cpp LINENO
1991# ----------------------
1992# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1993ac_fn_c_try_cpp ()
1994{
1995  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996  if { { ac_try="$ac_cpp conftest.$ac_ext"
1997case "(($ac_try" in
1998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999  *) ac_try_echo=$ac_try;;
2000esac
2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002$as_echo "$ac_try_echo"; } >&5
2003  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2004  ac_status=$?
2005  if test -s conftest.err; then
2006    grep -v '^ *+' conftest.err >conftest.er1
2007    cat conftest.er1 >&5
2008    mv -f conftest.er1 conftest.err
2009  fi
2010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011  test $ac_status = 0; } > conftest.i && {
2012	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2013	 test ! -s conftest.err
2014       }; then :
2015  ac_retval=0
2016else
2017  $as_echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020    ac_retval=1
2021fi
2022  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023  as_fn_set_status $ac_retval
2024
2025} # ac_fn_c_try_cpp
2026
2027# ac_fn_c_try_run LINENO
2028# ----------------------
2029# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2030# that executables *can* be run.
2031ac_fn_c_try_run ()
2032{
2033  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034  if { { ac_try="$ac_link"
2035case "(($ac_try" in
2036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037  *) ac_try_echo=$ac_try;;
2038esac
2039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040$as_echo "$ac_try_echo"; } >&5
2041  (eval "$ac_link") 2>&5
2042  ac_status=$?
2043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2045  { { case "(($ac_try" in
2046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047  *) ac_try_echo=$ac_try;;
2048esac
2049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050$as_echo "$ac_try_echo"; } >&5
2051  (eval "$ac_try") 2>&5
2052  ac_status=$?
2053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054  test $ac_status = 0; }; }; then :
2055  ac_retval=0
2056else
2057  $as_echo "$as_me: program exited with status $ac_status" >&5
2058       $as_echo "$as_me: failed program was:" >&5
2059sed 's/^/| /' conftest.$ac_ext >&5
2060
2061       ac_retval=$ac_status
2062fi
2063  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2064  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065  as_fn_set_status $ac_retval
2066
2067} # ac_fn_c_try_run
2068
2069# ac_fn_c_check_func LINENO FUNC VAR
2070# ----------------------------------
2071# Tests whether FUNC exists, setting the cache variable VAR accordingly
2072ac_fn_c_check_func ()
2073{
2074  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076$as_echo_n "checking for $2... " >&6; }
2077if eval \${$3+:} false; then :
2078  $as_echo_n "(cached) " >&6
2079else
2080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h.  */
2082/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2083   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2084#define $2 innocuous_$2
2085
2086/* System header to define __stub macros and hopefully few prototypes,
2087    which can conflict with char $2 (); below.
2088    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2089    <limits.h> exists even on freestanding compilers.  */
2090
2091#ifdef __STDC__
2092# include <limits.h>
2093#else
2094# include <assert.h>
2095#endif
2096
2097#undef $2
2098
2099/* Override any GCC internal prototype to avoid an error.
2100   Use char because int might match the return type of a GCC
2101   builtin and then its argument prototype would still apply.  */
2102#ifdef __cplusplus
2103extern "C"
2104#endif
2105char $2 ();
2106/* The GNU C library defines this for functions which it implements
2107    to always fail with ENOSYS.  Some functions are actually named
2108    something starting with __ and the normal name is an alias.  */
2109#if defined __stub_$2 || defined __stub___$2
2110choke me
2111#endif
2112
2113int
2114main ()
2115{
2116return $2 ();
2117  ;
2118  return 0;
2119}
2120_ACEOF
2121if ac_fn_c_try_link "$LINENO"; then :
2122  eval "$3=yes"
2123else
2124  eval "$3=no"
2125fi
2126rm -f core conftest.err conftest.$ac_objext \
2127    conftest$ac_exeext conftest.$ac_ext
2128fi
2129eval ac_res=\$$3
2130	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131$as_echo "$ac_res" >&6; }
2132  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133
2134} # ac_fn_c_check_func
2135
2136# ac_fn_cxx_try_compile LINENO
2137# ----------------------------
2138# Try to compile conftest.$ac_ext, and return whether this succeeded.
2139ac_fn_cxx_try_compile ()
2140{
2141  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142  rm -f conftest.$ac_objext
2143  if { { ac_try="$ac_compile"
2144case "(($ac_try" in
2145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146  *) ac_try_echo=$ac_try;;
2147esac
2148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2149$as_echo "$ac_try_echo"; } >&5
2150  (eval "$ac_compile") 2>conftest.err
2151  ac_status=$?
2152  if test -s conftest.err; then
2153    grep -v '^ *+' conftest.err >conftest.er1
2154    cat conftest.er1 >&5
2155    mv -f conftest.er1 conftest.err
2156  fi
2157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2158  test $ac_status = 0; } && {
2159	 test -z "$ac_cxx_werror_flag" ||
2160	 test ! -s conftest.err
2161       } && test -s conftest.$ac_objext; then :
2162  ac_retval=0
2163else
2164  $as_echo "$as_me: failed program was:" >&5
2165sed 's/^/| /' conftest.$ac_ext >&5
2166
2167	ac_retval=1
2168fi
2169  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170  as_fn_set_status $ac_retval
2171
2172} # ac_fn_cxx_try_compile
2173
2174# ac_fn_cxx_try_cpp LINENO
2175# ------------------------
2176# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2177ac_fn_cxx_try_cpp ()
2178{
2179  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180  if { { ac_try="$ac_cpp conftest.$ac_ext"
2181case "(($ac_try" in
2182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183  *) ac_try_echo=$ac_try;;
2184esac
2185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186$as_echo "$ac_try_echo"; } >&5
2187  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2188  ac_status=$?
2189  if test -s conftest.err; then
2190    grep -v '^ *+' conftest.err >conftest.er1
2191    cat conftest.er1 >&5
2192    mv -f conftest.er1 conftest.err
2193  fi
2194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195  test $ac_status = 0; } > conftest.i && {
2196	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2197	 test ! -s conftest.err
2198       }; then :
2199  ac_retval=0
2200else
2201  $as_echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204    ac_retval=1
2205fi
2206  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207  as_fn_set_status $ac_retval
2208
2209} # ac_fn_cxx_try_cpp
2210
2211# ac_fn_cxx_try_link LINENO
2212# -------------------------
2213# Try to link conftest.$ac_ext, and return whether this succeeded.
2214ac_fn_cxx_try_link ()
2215{
2216  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217  rm -f conftest.$ac_objext conftest$ac_exeext
2218  if { { ac_try="$ac_link"
2219case "(($ac_try" in
2220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221  *) ac_try_echo=$ac_try;;
2222esac
2223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224$as_echo "$ac_try_echo"; } >&5
2225  (eval "$ac_link") 2>conftest.err
2226  ac_status=$?
2227  if test -s conftest.err; then
2228    grep -v '^ *+' conftest.err >conftest.er1
2229    cat conftest.er1 >&5
2230    mv -f conftest.er1 conftest.err
2231  fi
2232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2233  test $ac_status = 0; } && {
2234	 test -z "$ac_cxx_werror_flag" ||
2235	 test ! -s conftest.err
2236       } && test -s conftest$ac_exeext && {
2237	 test "$cross_compiling" = yes ||
2238	 test -x conftest$ac_exeext
2239       }; then :
2240  ac_retval=0
2241else
2242  $as_echo "$as_me: failed program was:" >&5
2243sed 's/^/| /' conftest.$ac_ext >&5
2244
2245	ac_retval=1
2246fi
2247  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2248  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2249  # interfere with the next link command; also delete a directory that is
2250  # left behind by Apple's compiler.  We do this before executing the actions.
2251  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2252  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253  as_fn_set_status $ac_retval
2254
2255} # ac_fn_cxx_try_link
2256
2257# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2258# -------------------------------------------------------
2259# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2260# the include files in INCLUDES and setting the cache variable VAR
2261# accordingly.
2262ac_fn_c_check_header_mongrel ()
2263{
2264  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265  if eval \${$3+:} false; then :
2266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2267$as_echo_n "checking for $2... " >&6; }
2268if eval \${$3+:} false; then :
2269  $as_echo_n "(cached) " >&6
2270fi
2271eval ac_res=\$$3
2272	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273$as_echo "$ac_res" >&6; }
2274else
2275  # Is the header compilable?
2276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2277$as_echo_n "checking $2 usability... " >&6; }
2278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279/* end confdefs.h.  */
2280$4
2281#include <$2>
2282_ACEOF
2283if ac_fn_c_try_compile "$LINENO"; then :
2284  ac_header_compiler=yes
2285else
2286  ac_header_compiler=no
2287fi
2288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2290$as_echo "$ac_header_compiler" >&6; }
2291
2292# Is the header present?
2293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2294$as_echo_n "checking $2 presence... " >&6; }
2295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296/* end confdefs.h.  */
2297#include <$2>
2298_ACEOF
2299if ac_fn_c_try_cpp "$LINENO"; then :
2300  ac_header_preproc=yes
2301else
2302  ac_header_preproc=no
2303fi
2304rm -f conftest.err conftest.i conftest.$ac_ext
2305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2306$as_echo "$ac_header_preproc" >&6; }
2307
2308# So?  What about this header?
2309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2310  yes:no: )
2311    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2312$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2313    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2314$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2315    ;;
2316  no:yes:* )
2317    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2318$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2319    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2320$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2321    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2322$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2323    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2324$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2325    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2326$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2327    ;;
2328esac
2329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2330$as_echo_n "checking for $2... " >&6; }
2331if eval \${$3+:} false; then :
2332  $as_echo_n "(cached) " >&6
2333else
2334  eval "$3=\$ac_header_compiler"
2335fi
2336eval ac_res=\$$3
2337	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338$as_echo "$ac_res" >&6; }
2339fi
2340  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341
2342} # ac_fn_c_check_header_mongrel
2343
2344# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2345# ---------------------------------------------
2346# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2347# accordingly.
2348ac_fn_c_check_decl ()
2349{
2350  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351  as_decl_name=`echo $2|sed 's/ *(.*//'`
2352  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2354$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2355if eval \${$3+:} false; then :
2356  $as_echo_n "(cached) " >&6
2357else
2358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359/* end confdefs.h.  */
2360$4
2361int
2362main ()
2363{
2364#ifndef $as_decl_name
2365#ifdef __cplusplus
2366  (void) $as_decl_use;
2367#else
2368  (void) $as_decl_name;
2369#endif
2370#endif
2371
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376if ac_fn_c_try_compile "$LINENO"; then :
2377  eval "$3=yes"
2378else
2379  eval "$3=no"
2380fi
2381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382fi
2383eval ac_res=\$$3
2384	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385$as_echo "$ac_res" >&6; }
2386  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387
2388} # ac_fn_c_check_decl
2389
2390# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2391# -------------------------------------------
2392# Tests whether TYPE exists after having included INCLUDES, setting cache
2393# variable VAR accordingly.
2394ac_fn_c_check_type ()
2395{
2396  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2398$as_echo_n "checking for $2... " >&6; }
2399if eval \${$3+:} false; then :
2400  $as_echo_n "(cached) " >&6
2401else
2402  eval "$3=no"
2403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404/* end confdefs.h.  */
2405$4
2406int
2407main ()
2408{
2409if (sizeof ($2))
2410	 return 0;
2411  ;
2412  return 0;
2413}
2414_ACEOF
2415if ac_fn_c_try_compile "$LINENO"; then :
2416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417/* end confdefs.h.  */
2418$4
2419int
2420main ()
2421{
2422if (sizeof (($2)))
2423	    return 0;
2424  ;
2425  return 0;
2426}
2427_ACEOF
2428if ac_fn_c_try_compile "$LINENO"; then :
2429
2430else
2431  eval "$3=yes"
2432fi
2433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434fi
2435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436fi
2437eval ac_res=\$$3
2438	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439$as_echo "$ac_res" >&6; }
2440  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2441
2442} # ac_fn_c_check_type
2443
2444# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2445# ----------------------------------------------------
2446# Tries to find if the field MEMBER exists in type AGGR, after including
2447# INCLUDES, setting cache variable VAR accordingly.
2448ac_fn_c_check_member ()
2449{
2450  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2452$as_echo_n "checking for $2.$3... " >&6; }
2453if eval \${$4+:} false; then :
2454  $as_echo_n "(cached) " >&6
2455else
2456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457/* end confdefs.h.  */
2458$5
2459int
2460main ()
2461{
2462static $2 ac_aggr;
2463if (ac_aggr.$3)
2464return 0;
2465  ;
2466  return 0;
2467}
2468_ACEOF
2469if ac_fn_c_try_compile "$LINENO"; then :
2470  eval "$4=yes"
2471else
2472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473/* end confdefs.h.  */
2474$5
2475int
2476main ()
2477{
2478static $2 ac_aggr;
2479if (sizeof ac_aggr.$3)
2480return 0;
2481  ;
2482  return 0;
2483}
2484_ACEOF
2485if ac_fn_c_try_compile "$LINENO"; then :
2486  eval "$4=yes"
2487else
2488  eval "$4=no"
2489fi
2490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491fi
2492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493fi
2494eval ac_res=\$$4
2495	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2496$as_echo "$ac_res" >&6; }
2497  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2498
2499} # ac_fn_c_check_member
2500
2501# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2502# --------------------------------------------
2503# Tries to find the compile-time value of EXPR in a program that includes
2504# INCLUDES, setting VAR accordingly. Returns whether the value could be
2505# computed
2506ac_fn_c_compute_int ()
2507{
2508  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509  if test "$cross_compiling" = yes; then
2510    # Depending upon the size, compute the lo and hi bounds.
2511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512/* end confdefs.h.  */
2513$4
2514int
2515main ()
2516{
2517static int test_array [1 - 2 * !(($2) >= 0)];
2518test_array [0] = 0;
2519return test_array [0];
2520
2521  ;
2522  return 0;
2523}
2524_ACEOF
2525if ac_fn_c_try_compile "$LINENO"; then :
2526  ac_lo=0 ac_mid=0
2527  while :; do
2528    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529/* end confdefs.h.  */
2530$4
2531int
2532main ()
2533{
2534static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2535test_array [0] = 0;
2536return test_array [0];
2537
2538  ;
2539  return 0;
2540}
2541_ACEOF
2542if ac_fn_c_try_compile "$LINENO"; then :
2543  ac_hi=$ac_mid; break
2544else
2545  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2546			if test $ac_lo -le $ac_mid; then
2547			  ac_lo= ac_hi=
2548			  break
2549			fi
2550			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2551fi
2552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553  done
2554else
2555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556/* end confdefs.h.  */
2557$4
2558int
2559main ()
2560{
2561static int test_array [1 - 2 * !(($2) < 0)];
2562test_array [0] = 0;
2563return test_array [0];
2564
2565  ;
2566  return 0;
2567}
2568_ACEOF
2569if ac_fn_c_try_compile "$LINENO"; then :
2570  ac_hi=-1 ac_mid=-1
2571  while :; do
2572    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573/* end confdefs.h.  */
2574$4
2575int
2576main ()
2577{
2578static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2579test_array [0] = 0;
2580return test_array [0];
2581
2582  ;
2583  return 0;
2584}
2585_ACEOF
2586if ac_fn_c_try_compile "$LINENO"; then :
2587  ac_lo=$ac_mid; break
2588else
2589  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2590			if test $ac_mid -le $ac_hi; then
2591			  ac_lo= ac_hi=
2592			  break
2593			fi
2594			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2595fi
2596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597  done
2598else
2599  ac_lo= ac_hi=
2600fi
2601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602fi
2603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604# Binary search between lo and hi bounds.
2605while test "x$ac_lo" != "x$ac_hi"; do
2606  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608/* end confdefs.h.  */
2609$4
2610int
2611main ()
2612{
2613static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2614test_array [0] = 0;
2615return test_array [0];
2616
2617  ;
2618  return 0;
2619}
2620_ACEOF
2621if ac_fn_c_try_compile "$LINENO"; then :
2622  ac_hi=$ac_mid
2623else
2624  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2625fi
2626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627done
2628case $ac_lo in #((
2629?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2630'') ac_retval=1 ;;
2631esac
2632  else
2633    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634/* end confdefs.h.  */
2635$4
2636static long int longval () { return $2; }
2637static unsigned long int ulongval () { return $2; }
2638#include <stdio.h>
2639#include <stdlib.h>
2640int
2641main ()
2642{
2643
2644  FILE *f = fopen ("conftest.val", "w");
2645  if (! f)
2646    return 1;
2647  if (($2) < 0)
2648    {
2649      long int i = longval ();
2650      if (i != ($2))
2651	return 1;
2652      fprintf (f, "%ld", i);
2653    }
2654  else
2655    {
2656      unsigned long int i = ulongval ();
2657      if (i != ($2))
2658	return 1;
2659      fprintf (f, "%lu", i);
2660    }
2661  /* Do not output a trailing newline, as this causes \r\n confusion
2662     on some platforms.  */
2663  return ferror (f) || fclose (f) != 0;
2664
2665  ;
2666  return 0;
2667}
2668_ACEOF
2669if ac_fn_c_try_run "$LINENO"; then :
2670  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2671else
2672  ac_retval=1
2673fi
2674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2675  conftest.$ac_objext conftest.beam conftest.$ac_ext
2676rm -f conftest.val
2677
2678  fi
2679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2680  as_fn_set_status $ac_retval
2681
2682} # ac_fn_c_compute_int
2683cat >config.log <<_ACEOF
2684This file contains any messages produced by compilers while
2685running configure, to aid debugging if configure makes a mistake.
2686
2687It was created by $as_me, which was
2688generated by GNU Autoconf 2.69.  Invocation command line was
2689
2690  $ $0 $@
2691
2692_ACEOF
2693exec 5>>config.log
2694{
2695cat <<_ASUNAME
2696## --------- ##
2697## Platform. ##
2698## --------- ##
2699
2700hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2701uname -m = `(uname -m) 2>/dev/null || echo unknown`
2702uname -r = `(uname -r) 2>/dev/null || echo unknown`
2703uname -s = `(uname -s) 2>/dev/null || echo unknown`
2704uname -v = `(uname -v) 2>/dev/null || echo unknown`
2705
2706/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2707/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2708
2709/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2710/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2711/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2712/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2713/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2714/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2715/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2716
2717_ASUNAME
2718
2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722  IFS=$as_save_IFS
2723  test -z "$as_dir" && as_dir=.
2724    $as_echo "PATH: $as_dir"
2725  done
2726IFS=$as_save_IFS
2727
2728} >&5
2729
2730cat >&5 <<_ACEOF
2731
2732
2733## ----------- ##
2734## Core tests. ##
2735## ----------- ##
2736
2737_ACEOF
2738
2739
2740# Keep a trace of the command line.
2741# Strip out --no-create and --no-recursion so they do not pile up.
2742# Strip out --silent because we don't want to record it for future runs.
2743# Also quote any args containing shell meta-characters.
2744# Make two passes to allow for proper duplicate-argument suppression.
2745ac_configure_args=
2746ac_configure_args0=
2747ac_configure_args1=
2748ac_must_keep_next=false
2749for ac_pass in 1 2
2750do
2751  for ac_arg
2752  do
2753    case $ac_arg in
2754    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2755    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2756    | -silent | --silent | --silen | --sile | --sil)
2757      continue ;;
2758    *\'*)
2759      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2760    esac
2761    case $ac_pass in
2762    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2763    2)
2764      as_fn_append ac_configure_args1 " '$ac_arg'"
2765      if test $ac_must_keep_next = true; then
2766	ac_must_keep_next=false # Got value, back to normal.
2767      else
2768	case $ac_arg in
2769	  *=* | --config-cache | -C | -disable-* | --disable-* \
2770	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2771	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2772	  | -with-* | --with-* | -without-* | --without-* | --x)
2773	    case "$ac_configure_args0 " in
2774	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2775	    esac
2776	    ;;
2777	  -* ) ac_must_keep_next=true ;;
2778	esac
2779      fi
2780      as_fn_append ac_configure_args " '$ac_arg'"
2781      ;;
2782    esac
2783  done
2784done
2785{ ac_configure_args0=; unset ac_configure_args0;}
2786{ ac_configure_args1=; unset ac_configure_args1;}
2787
2788# When interrupted or exit'd, cleanup temporary files, and complete
2789# config.log.  We remove comments because anyway the quotes in there
2790# would cause problems or look ugly.
2791# WARNING: Use '\'' to represent an apostrophe within the trap.
2792# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2793trap 'exit_status=$?
2794  # Save into config.log some information that might help in debugging.
2795  {
2796    echo
2797
2798    $as_echo "## ---------------- ##
2799## Cache variables. ##
2800## ---------------- ##"
2801    echo
2802    # The following way of writing the cache mishandles newlines in values,
2803(
2804  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2805    eval ac_val=\$$ac_var
2806    case $ac_val in #(
2807    *${as_nl}*)
2808      case $ac_var in #(
2809      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2810$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2811      esac
2812      case $ac_var in #(
2813      _ | IFS | as_nl) ;; #(
2814      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2815      *) { eval $ac_var=; unset $ac_var;} ;;
2816      esac ;;
2817    esac
2818  done
2819  (set) 2>&1 |
2820    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2821    *${as_nl}ac_space=\ *)
2822      sed -n \
2823	"s/'\''/'\''\\\\'\'''\''/g;
2824	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2825      ;; #(
2826    *)
2827      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2828      ;;
2829    esac |
2830    sort
2831)
2832    echo
2833
2834    $as_echo "## ----------------- ##
2835## Output variables. ##
2836## ----------------- ##"
2837    echo
2838    for ac_var in $ac_subst_vars
2839    do
2840      eval ac_val=\$$ac_var
2841      case $ac_val in
2842      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2843      esac
2844      $as_echo "$ac_var='\''$ac_val'\''"
2845    done | sort
2846    echo
2847
2848    if test -n "$ac_subst_files"; then
2849      $as_echo "## ------------------- ##
2850## File substitutions. ##
2851## ------------------- ##"
2852      echo
2853      for ac_var in $ac_subst_files
2854      do
2855	eval ac_val=\$$ac_var
2856	case $ac_val in
2857	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2858	esac
2859	$as_echo "$ac_var='\''$ac_val'\''"
2860      done | sort
2861      echo
2862    fi
2863
2864    if test -s confdefs.h; then
2865      $as_echo "## ----------- ##
2866## confdefs.h. ##
2867## ----------- ##"
2868      echo
2869      cat confdefs.h
2870      echo
2871    fi
2872    test "$ac_signal" != 0 &&
2873      $as_echo "$as_me: caught signal $ac_signal"
2874    $as_echo "$as_me: exit $exit_status"
2875  } >&5
2876  rm -f core *.core core.conftest.* &&
2877    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2878    exit $exit_status
2879' 0
2880for ac_signal in 1 2 13 15; do
2881  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2882done
2883ac_signal=0
2884
2885# confdefs.h avoids OS command line length limits that DEFS can exceed.
2886rm -f -r conftest* confdefs.h
2887
2888$as_echo "/* confdefs.h */" > confdefs.h
2889
2890# Predefined preprocessor variables.
2891
2892cat >>confdefs.h <<_ACEOF
2893#define PACKAGE_NAME "$PACKAGE_NAME"
2894_ACEOF
2895
2896cat >>confdefs.h <<_ACEOF
2897#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2898_ACEOF
2899
2900cat >>confdefs.h <<_ACEOF
2901#define PACKAGE_VERSION "$PACKAGE_VERSION"
2902_ACEOF
2903
2904cat >>confdefs.h <<_ACEOF
2905#define PACKAGE_STRING "$PACKAGE_STRING"
2906_ACEOF
2907
2908cat >>confdefs.h <<_ACEOF
2909#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2910_ACEOF
2911
2912cat >>confdefs.h <<_ACEOF
2913#define PACKAGE_URL "$PACKAGE_URL"
2914_ACEOF
2915
2916
2917# Let the site file select an alternate cache file if it wants to.
2918# Prefer an explicitly selected file to automatically selected ones.
2919ac_site_file1=NONE
2920ac_site_file2=NONE
2921if test -n "$CONFIG_SITE"; then
2922  # We do not want a PATH search for config.site.
2923  case $CONFIG_SITE in #((
2924    -*)  ac_site_file1=./$CONFIG_SITE;;
2925    */*) ac_site_file1=$CONFIG_SITE;;
2926    *)   ac_site_file1=./$CONFIG_SITE;;
2927  esac
2928elif test "x$prefix" != xNONE; then
2929  ac_site_file1=$prefix/share/config.site
2930  ac_site_file2=$prefix/etc/config.site
2931else
2932  ac_site_file1=$ac_default_prefix/share/config.site
2933  ac_site_file2=$ac_default_prefix/etc/config.site
2934fi
2935for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2936do
2937  test "x$ac_site_file" = xNONE && continue
2938  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2939    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2940$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2941    sed 's/^/| /' "$ac_site_file" >&5
2942    . "$ac_site_file" \
2943      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945as_fn_error $? "failed to load site script $ac_site_file
2946See \`config.log' for more details" "$LINENO" 5; }
2947  fi
2948done
2949
2950if test -r "$cache_file"; then
2951  # Some versions of bash will fail to source /dev/null (special files
2952  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2953  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2954    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2955$as_echo "$as_me: loading cache $cache_file" >&6;}
2956    case $cache_file in
2957      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2958      *)                      . "./$cache_file";;
2959    esac
2960  fi
2961else
2962  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2963$as_echo "$as_me: creating cache $cache_file" >&6;}
2964  >$cache_file
2965fi
2966
2967# Check that the precious variables saved in the cache have kept the same
2968# value.
2969ac_cache_corrupted=false
2970for ac_var in $ac_precious_vars; do
2971  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2972  eval ac_new_set=\$ac_env_${ac_var}_set
2973  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2974  eval ac_new_val=\$ac_env_${ac_var}_value
2975  case $ac_old_set,$ac_new_set in
2976    set,)
2977      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2978$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2979      ac_cache_corrupted=: ;;
2980    ,set)
2981      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2982$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2983      ac_cache_corrupted=: ;;
2984    ,);;
2985    *)
2986      if test "x$ac_old_val" != "x$ac_new_val"; then
2987	# differences in whitespace do not lead to failure.
2988	ac_old_val_w=`echo x $ac_old_val`
2989	ac_new_val_w=`echo x $ac_new_val`
2990	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2991	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2992$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2993	  ac_cache_corrupted=:
2994	else
2995	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2996$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2997	  eval $ac_var=\$ac_old_val
2998	fi
2999	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3000$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3001	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3002$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3003      fi;;
3004  esac
3005  # Pass precious variables to config.status.
3006  if test "$ac_new_set" = set; then
3007    case $ac_new_val in
3008    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3009    *) ac_arg=$ac_var=$ac_new_val ;;
3010    esac
3011    case " $ac_configure_args " in
3012      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3013      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3014    esac
3015  fi
3016done
3017if $ac_cache_corrupted; then
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3021$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3022  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3023fi
3024## -------------------- ##
3025## Main body of script. ##
3026## -------------------- ##
3027
3028ac_ext=c
3029ac_cpp='$CPP $CPPFLAGS'
3030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033
3034
3035
3036ac_core_modules="mod_core.o mod_xfer.o mod_rlimit.o mod_auth_unix.o mod_auth_file.o mod_auth.o mod_ls.o mod_log.o mod_site.o mod_delay.o mod_facts.o"
3037ac_build_core_modules="modules/mod_core.o modules/mod_xfer.o modules/mod_rlimit.o modules/mod_auth_unix.o modules/mod_auth_file.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_delay.o modules/mod_facts.o"
3038
3039ac_aux_dir=
3040for ac_dir in ./ "$srcdir"/./; do
3041  if test -f "$ac_dir/install-sh"; then
3042    ac_aux_dir=$ac_dir
3043    ac_install_sh="$ac_aux_dir/install-sh -c"
3044    break
3045  elif test -f "$ac_dir/install.sh"; then
3046    ac_aux_dir=$ac_dir
3047    ac_install_sh="$ac_aux_dir/install.sh -c"
3048    break
3049  elif test -f "$ac_dir/shtool"; then
3050    ac_aux_dir=$ac_dir
3051    ac_install_sh="$ac_aux_dir/shtool install -c"
3052    break
3053  fi
3054done
3055if test -z "$ac_aux_dir"; then
3056  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./ \"$srcdir\"/./" "$LINENO" 5
3057fi
3058
3059# These three variables are undocumented and unsupported,
3060# and are intended to be withdrawn in a future Autoconf release.
3061# They can cause serious problems if a builder's source tree is in a directory
3062# whose full name contains unusual characters.
3063ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3064ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3065ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3066
3067
3068# Make sure we can run config.sub.
3069$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3070  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3071
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3073$as_echo_n "checking build system type... " >&6; }
3074if ${ac_cv_build+:} false; then :
3075  $as_echo_n "(cached) " >&6
3076else
3077  ac_build_alias=$build_alias
3078test "x$ac_build_alias" = x &&
3079  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3080test "x$ac_build_alias" = x &&
3081  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3082ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3083  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3084
3085fi
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3087$as_echo "$ac_cv_build" >&6; }
3088case $ac_cv_build in
3089*-*-*) ;;
3090*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3091esac
3092build=$ac_cv_build
3093ac_save_IFS=$IFS; IFS='-'
3094set x $ac_cv_build
3095shift
3096build_cpu=$1
3097build_vendor=$2
3098shift; shift
3099# Remember, the first character of IFS is used to create $*,
3100# except with old shells:
3101build_os=$*
3102IFS=$ac_save_IFS
3103case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3104
3105
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3107$as_echo_n "checking host system type... " >&6; }
3108if ${ac_cv_host+:} false; then :
3109  $as_echo_n "(cached) " >&6
3110else
3111  if test "x$host_alias" = x; then
3112  ac_cv_host=$ac_cv_build
3113else
3114  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3115    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3116fi
3117
3118fi
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3120$as_echo "$ac_cv_host" >&6; }
3121case $ac_cv_host in
3122*-*-*) ;;
3123*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3124esac
3125host=$ac_cv_host
3126ac_save_IFS=$IFS; IFS='-'
3127set x $ac_cv_host
3128shift
3129host_cpu=$1
3130host_vendor=$2
3131shift; shift
3132# Remember, the first character of IFS is used to create $*,
3133# except with old shells:
3134host_os=$*
3135IFS=$ac_save_IFS
3136case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3137
3138
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3140$as_echo_n "checking target system type... " >&6; }
3141if ${ac_cv_target+:} false; then :
3142  $as_echo_n "(cached) " >&6
3143else
3144  if test "x$target_alias" = x; then
3145  ac_cv_target=$ac_cv_host
3146else
3147  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3148    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3149fi
3150
3151fi
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3153$as_echo "$ac_cv_target" >&6; }
3154case $ac_cv_target in
3155*-*-*) ;;
3156*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3157esac
3158target=$ac_cv_target
3159ac_save_IFS=$IFS; IFS='-'
3160set x $ac_cv_target
3161shift
3162target_cpu=$1
3163target_vendor=$2
3164shift; shift
3165# Remember, the first character of IFS is used to create $*,
3166# except with old shells:
3167target_os=$*
3168IFS=$ac_save_IFS
3169case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3170
3171
3172# The aliases save the names the user supplied, while $host etc.
3173# will get canonicalized.
3174test -n "$target_alias" &&
3175  test "$program_prefix$program_suffix$program_transform_name" = \
3176    NONENONEs,x,x, &&
3177  program_prefix=${target_alias}-
3178
3179
3180ostype=`echo $build_os | sed 's/\..*$//g' | sed 's/-.*//g' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
3181osrel=`echo $build_os | sed 's/-.*//g' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | tr '.' '_'`
3182
3183OSTYPE="-D$ostype"
3184OSREL="-D$osrel"
3185platform="\"$ostype ($osrel)\""
3186
3187if test "$OSTYPE" = "$OSREL" ; then
3188  OSTYPE=""
3189  platform="\"$ostype\""
3190fi
3191
3192BUILD_OPTS=`echo "$ac_configure_args"`
3193
3194cat >>confdefs.h <<_ACEOF
3195#define PR_BUILD_OPTS "$BUILD_OPTS"
3196_ACEOF
3197
3198
3199cat >>confdefs.h <<_ACEOF
3200#define PR_PLATFORM $platform
3201_ACEOF
3202
3203
3204
3205
3206
3207if test "$OSTYPE" = "-DRHAPSODY5"; then
3208  CFLAGS="$CFLAGS -traditional-cpp -D__OT__"
3209fi
3210
3211
3212
3213top_builddir=.
3214case `pwd` in
3215  *\ * | *\	*)
3216    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3217$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3218esac
3219
3220
3221
3222macro_version='2.2.6'
3223macro_revision='1.3012'
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237ltmain="$ac_aux_dir/ltmain.sh"
3238
3239ac_ext=c
3240ac_cpp='$CPP $CPPFLAGS'
3241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244if test -n "$ac_tool_prefix"; then
3245  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3246set dummy ${ac_tool_prefix}gcc; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
3249if ${ac_cv_prog_CC+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  if test -n "$CC"; then
3253  ac_cv_prog_CC="$CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258  IFS=$as_save_IFS
3259  test -z "$as_dir" && as_dir=.
3260    for ac_exec_ext in '' $ac_executable_extensions; do
3261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264    break 2
3265  fi
3266done
3267  done
3268IFS=$as_save_IFS
3269
3270fi
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
3274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275$as_echo "$CC" >&6; }
3276else
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279fi
3280
3281
3282fi
3283if test -z "$ac_cv_prog_CC"; then
3284  ac_ct_CC=$CC
3285  # Extract the first word of "gcc", so it can be a program name with args.
3286set dummy gcc; ac_word=$2
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288$as_echo_n "checking for $ac_word... " >&6; }
3289if ${ac_cv_prog_ac_ct_CC+:} false; then :
3290  $as_echo_n "(cached) " >&6
3291else
3292  if test -n "$ac_ct_CC"; then
3293  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3294else
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH
3297do
3298  IFS=$as_save_IFS
3299  test -z "$as_dir" && as_dir=.
3300    for ac_exec_ext in '' $ac_executable_extensions; do
3301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302    ac_cv_prog_ac_ct_CC="gcc"
3303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304    break 2
3305  fi
3306done
3307  done
3308IFS=$as_save_IFS
3309
3310fi
3311fi
3312ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313if test -n "$ac_ct_CC"; then
3314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3315$as_echo "$ac_ct_CC" >&6; }
3316else
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319fi
3320
3321  if test "x$ac_ct_CC" = x; then
3322    CC=""
3323  else
3324    case $cross_compiling:$ac_tool_warned in
3325yes:)
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3328ac_tool_warned=yes ;;
3329esac
3330    CC=$ac_ct_CC
3331  fi
3332else
3333  CC="$ac_cv_prog_CC"
3334fi
3335
3336if test -z "$CC"; then
3337          if test -n "$ac_tool_prefix"; then
3338    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3339set dummy ${ac_tool_prefix}cc; ac_word=$2
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341$as_echo_n "checking for $ac_word... " >&6; }
3342if ${ac_cv_prog_CC+:} false; then :
3343  $as_echo_n "(cached) " >&6
3344else
3345  if test -n "$CC"; then
3346  ac_cv_prog_CC="$CC" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351  IFS=$as_save_IFS
3352  test -z "$as_dir" && as_dir=.
3353    for ac_exec_ext in '' $ac_executable_extensions; do
3354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355    ac_cv_prog_CC="${ac_tool_prefix}cc"
3356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357    break 2
3358  fi
3359done
3360  done
3361IFS=$as_save_IFS
3362
3363fi
3364fi
3365CC=$ac_cv_prog_CC
3366if test -n "$CC"; then
3367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368$as_echo "$CC" >&6; }
3369else
3370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371$as_echo "no" >&6; }
3372fi
3373
3374
3375  fi
3376fi
3377if test -z "$CC"; then
3378  # Extract the first word of "cc", so it can be a program name with args.
3379set dummy cc; ac_word=$2
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381$as_echo_n "checking for $ac_word... " >&6; }
3382if ${ac_cv_prog_CC+:} false; then :
3383  $as_echo_n "(cached) " >&6
3384else
3385  if test -n "$CC"; then
3386  ac_cv_prog_CC="$CC" # Let the user override the test.
3387else
3388  ac_prog_rejected=no
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392  IFS=$as_save_IFS
3393  test -z "$as_dir" && as_dir=.
3394    for ac_exec_ext in '' $ac_executable_extensions; do
3395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3397       ac_prog_rejected=yes
3398       continue
3399     fi
3400    ac_cv_prog_CC="cc"
3401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402    break 2
3403  fi
3404done
3405  done
3406IFS=$as_save_IFS
3407
3408if test $ac_prog_rejected = yes; then
3409  # We found a bogon in the path, so make sure we never use it.
3410  set dummy $ac_cv_prog_CC
3411  shift
3412  if test $# != 0; then
3413    # We chose a different compiler from the bogus one.
3414    # However, it has the same basename, so the bogon will be chosen
3415    # first if we set CC to just the basename; use the full file name.
3416    shift
3417    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3418  fi
3419fi
3420fi
3421fi
3422CC=$ac_cv_prog_CC
3423if test -n "$CC"; then
3424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425$as_echo "$CC" >&6; }
3426else
3427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428$as_echo "no" >&6; }
3429fi
3430
3431
3432fi
3433if test -z "$CC"; then
3434  if test -n "$ac_tool_prefix"; then
3435  for ac_prog in cl.exe
3436  do
3437    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3438set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440$as_echo_n "checking for $ac_word... " >&6; }
3441if ${ac_cv_prog_CC+:} false; then :
3442  $as_echo_n "(cached) " >&6
3443else
3444  if test -n "$CC"; then
3445  ac_cv_prog_CC="$CC" # Let the user override the test.
3446else
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450  IFS=$as_save_IFS
3451  test -z "$as_dir" && as_dir=.
3452    for ac_exec_ext in '' $ac_executable_extensions; do
3453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456    break 2
3457  fi
3458done
3459  done
3460IFS=$as_save_IFS
3461
3462fi
3463fi
3464CC=$ac_cv_prog_CC
3465if test -n "$CC"; then
3466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467$as_echo "$CC" >&6; }
3468else
3469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470$as_echo "no" >&6; }
3471fi
3472
3473
3474    test -n "$CC" && break
3475  done
3476fi
3477if test -z "$CC"; then
3478  ac_ct_CC=$CC
3479  for ac_prog in cl.exe
3480do
3481  # Extract the first word of "$ac_prog", so it can be a program name with args.
3482set dummy $ac_prog; ac_word=$2
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484$as_echo_n "checking for $ac_word... " >&6; }
3485if ${ac_cv_prog_ac_ct_CC+:} false; then :
3486  $as_echo_n "(cached) " >&6
3487else
3488  if test -n "$ac_ct_CC"; then
3489  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3490else
3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH
3493do
3494  IFS=$as_save_IFS
3495  test -z "$as_dir" && as_dir=.
3496    for ac_exec_ext in '' $ac_executable_extensions; do
3497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498    ac_cv_prog_ac_ct_CC="$ac_prog"
3499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500    break 2
3501  fi
3502done
3503  done
3504IFS=$as_save_IFS
3505
3506fi
3507fi
3508ac_ct_CC=$ac_cv_prog_ac_ct_CC
3509if test -n "$ac_ct_CC"; then
3510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3511$as_echo "$ac_ct_CC" >&6; }
3512else
3513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514$as_echo "no" >&6; }
3515fi
3516
3517
3518  test -n "$ac_ct_CC" && break
3519done
3520
3521  if test "x$ac_ct_CC" = x; then
3522    CC=""
3523  else
3524    case $cross_compiling:$ac_tool_warned in
3525yes:)
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3528ac_tool_warned=yes ;;
3529esac
3530    CC=$ac_ct_CC
3531  fi
3532fi
3533
3534fi
3535
3536
3537test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539as_fn_error $? "no acceptable C compiler found in \$PATH
3540See \`config.log' for more details" "$LINENO" 5; }
3541
3542# Provide some information about the compiler.
3543$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3544set X $ac_compile
3545ac_compiler=$2
3546for ac_option in --version -v -V -qversion; do
3547  { { ac_try="$ac_compiler $ac_option >&5"
3548case "(($ac_try" in
3549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550  *) ac_try_echo=$ac_try;;
3551esac
3552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553$as_echo "$ac_try_echo"; } >&5
3554  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3555  ac_status=$?
3556  if test -s conftest.err; then
3557    sed '10a\
3558... rest of stderr output deleted ...
3559         10q' conftest.err >conftest.er1
3560    cat conftest.er1 >&5
3561  fi
3562  rm -f conftest.er1 conftest.err
3563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564  test $ac_status = 0; }
3565done
3566
3567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h.  */
3569
3570int
3571main ()
3572{
3573
3574  ;
3575  return 0;
3576}
3577_ACEOF
3578ac_clean_files_save=$ac_clean_files
3579ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3580# Try to create an executable without -o first, disregard a.out.
3581# It will help us diagnose broken compilers, and finding out an intuition
3582# of exeext.
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3584$as_echo_n "checking whether the C compiler works... " >&6; }
3585ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3586
3587# The possible output files:
3588ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3589
3590ac_rmfiles=
3591for ac_file in $ac_files
3592do
3593  case $ac_file in
3594    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3596  esac
3597done
3598rm -f $ac_rmfiles
3599
3600if { { ac_try="$ac_link_default"
3601case "(($ac_try" in
3602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603  *) ac_try_echo=$ac_try;;
3604esac
3605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606$as_echo "$ac_try_echo"; } >&5
3607  (eval "$ac_link_default") 2>&5
3608  ac_status=$?
3609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610  test $ac_status = 0; }; then :
3611  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3612# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3613# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3614# so that the user can short-circuit this test for compilers unknown to
3615# Autoconf.
3616for ac_file in $ac_files ''
3617do
3618  test -f "$ac_file" || continue
3619  case $ac_file in
3620    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3621	;;
3622    [ab].out )
3623	# We found the default executable, but exeext='' is most
3624	# certainly right.
3625	break;;
3626    *.* )
3627	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3628	then :; else
3629	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630	fi
3631	# We set ac_cv_exeext here because the later test for it is not
3632	# safe: cross compilers may not add the suffix if given an `-o'
3633	# argument, so we may need to know it at that point already.
3634	# Even if this section looks crufty: it has the advantage of
3635	# actually working.
3636	break;;
3637    * )
3638	break;;
3639  esac
3640done
3641test "$ac_cv_exeext" = no && ac_cv_exeext=
3642
3643else
3644  ac_file=''
3645fi
3646if test -z "$ac_file"; then :
3647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648$as_echo "no" >&6; }
3649$as_echo "$as_me: failed program was:" >&5
3650sed 's/^/| /' conftest.$ac_ext >&5
3651
3652{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654as_fn_error 77 "C compiler cannot create executables
3655See \`config.log' for more details" "$LINENO" 5; }
3656else
3657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3658$as_echo "yes" >&6; }
3659fi
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3661$as_echo_n "checking for C compiler default output file name... " >&6; }
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3663$as_echo "$ac_file" >&6; }
3664ac_exeext=$ac_cv_exeext
3665
3666rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3667ac_clean_files=$ac_clean_files_save
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3669$as_echo_n "checking for suffix of executables... " >&6; }
3670if { { ac_try="$ac_link"
3671case "(($ac_try" in
3672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673  *) ac_try_echo=$ac_try;;
3674esac
3675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676$as_echo "$ac_try_echo"; } >&5
3677  (eval "$ac_link") 2>&5
3678  ac_status=$?
3679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680  test $ac_status = 0; }; then :
3681  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3682# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3683# work properly (i.e., refer to `conftest.exe'), while it won't with
3684# `rm'.
3685for ac_file in conftest.exe conftest conftest.*; do
3686  test -f "$ac_file" || continue
3687  case $ac_file in
3688    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3689    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690	  break;;
3691    * ) break;;
3692  esac
3693done
3694else
3695  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3698See \`config.log' for more details" "$LINENO" 5; }
3699fi
3700rm -f conftest conftest$ac_cv_exeext
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3702$as_echo "$ac_cv_exeext" >&6; }
3703
3704rm -f conftest.$ac_ext
3705EXEEXT=$ac_cv_exeext
3706ac_exeext=$EXEEXT
3707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h.  */
3709#include <stdio.h>
3710int
3711main ()
3712{
3713FILE *f = fopen ("conftest.out", "w");
3714 return ferror (f) || fclose (f) != 0;
3715
3716  ;
3717  return 0;
3718}
3719_ACEOF
3720ac_clean_files="$ac_clean_files conftest.out"
3721# Check that the compiler produces executables we can run.  If not, either
3722# the compiler is broken, or we cross compile.
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3724$as_echo_n "checking whether we are cross compiling... " >&6; }
3725if test "$cross_compiling" != yes; then
3726  { { ac_try="$ac_link"
3727case "(($ac_try" in
3728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729  *) ac_try_echo=$ac_try;;
3730esac
3731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732$as_echo "$ac_try_echo"; } >&5
3733  (eval "$ac_link") 2>&5
3734  ac_status=$?
3735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736  test $ac_status = 0; }
3737  if { ac_try='./conftest$ac_cv_exeext'
3738  { { case "(($ac_try" in
3739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740  *) ac_try_echo=$ac_try;;
3741esac
3742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743$as_echo "$ac_try_echo"; } >&5
3744  (eval "$ac_try") 2>&5
3745  ac_status=$?
3746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747  test $ac_status = 0; }; }; then
3748    cross_compiling=no
3749  else
3750    if test "$cross_compiling" = maybe; then
3751	cross_compiling=yes
3752    else
3753	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755as_fn_error $? "cannot run C compiled programs.
3756If you meant to cross compile, use \`--host'.
3757See \`config.log' for more details" "$LINENO" 5; }
3758    fi
3759  fi
3760fi
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3762$as_echo "$cross_compiling" >&6; }
3763
3764rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3765ac_clean_files=$ac_clean_files_save
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3767$as_echo_n "checking for suffix of object files... " >&6; }
3768if ${ac_cv_objext+:} false; then :
3769  $as_echo_n "(cached) " >&6
3770else
3771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772/* end confdefs.h.  */
3773
3774int
3775main ()
3776{
3777
3778  ;
3779  return 0;
3780}
3781_ACEOF
3782rm -f conftest.o conftest.obj
3783if { { ac_try="$ac_compile"
3784case "(($ac_try" in
3785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786  *) ac_try_echo=$ac_try;;
3787esac
3788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789$as_echo "$ac_try_echo"; } >&5
3790  (eval "$ac_compile") 2>&5
3791  ac_status=$?
3792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793  test $ac_status = 0; }; then :
3794  for ac_file in conftest.o conftest.obj conftest.*; do
3795  test -f "$ac_file" || continue;
3796  case $ac_file in
3797    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3798    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3799       break;;
3800  esac
3801done
3802else
3803  $as_echo "$as_me: failed program was:" >&5
3804sed 's/^/| /' conftest.$ac_ext >&5
3805
3806{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808as_fn_error $? "cannot compute suffix of object files: cannot compile
3809See \`config.log' for more details" "$LINENO" 5; }
3810fi
3811rm -f conftest.$ac_cv_objext conftest.$ac_ext
3812fi
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3814$as_echo "$ac_cv_objext" >&6; }
3815OBJEXT=$ac_cv_objext
3816ac_objext=$OBJEXT
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3818$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3819if ${ac_cv_c_compiler_gnu+:} false; then :
3820  $as_echo_n "(cached) " >&6
3821else
3822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823/* end confdefs.h.  */
3824
3825int
3826main ()
3827{
3828#ifndef __GNUC__
3829       choke me
3830#endif
3831
3832  ;
3833  return 0;
3834}
3835_ACEOF
3836if ac_fn_c_try_compile "$LINENO"; then :
3837  ac_compiler_gnu=yes
3838else
3839  ac_compiler_gnu=no
3840fi
3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842ac_cv_c_compiler_gnu=$ac_compiler_gnu
3843
3844fi
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3846$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3847if test $ac_compiler_gnu = yes; then
3848  GCC=yes
3849else
3850  GCC=
3851fi
3852ac_test_CFLAGS=${CFLAGS+set}
3853ac_save_CFLAGS=$CFLAGS
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3855$as_echo_n "checking whether $CC accepts -g... " >&6; }
3856if ${ac_cv_prog_cc_g+:} false; then :
3857  $as_echo_n "(cached) " >&6
3858else
3859  ac_save_c_werror_flag=$ac_c_werror_flag
3860   ac_c_werror_flag=yes
3861   ac_cv_prog_cc_g=no
3862   CFLAGS="-g"
3863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h.  */
3865
3866int
3867main ()
3868{
3869
3870  ;
3871  return 0;
3872}
3873_ACEOF
3874if ac_fn_c_try_compile "$LINENO"; then :
3875  ac_cv_prog_cc_g=yes
3876else
3877  CFLAGS=""
3878      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879/* end confdefs.h.  */
3880
3881int
3882main ()
3883{
3884
3885  ;
3886  return 0;
3887}
3888_ACEOF
3889if ac_fn_c_try_compile "$LINENO"; then :
3890
3891else
3892  ac_c_werror_flag=$ac_save_c_werror_flag
3893	 CFLAGS="-g"
3894	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896
3897int
3898main ()
3899{
3900
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905if ac_fn_c_try_compile "$LINENO"; then :
3906  ac_cv_prog_cc_g=yes
3907fi
3908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909fi
3910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911fi
3912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913   ac_c_werror_flag=$ac_save_c_werror_flag
3914fi
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3916$as_echo "$ac_cv_prog_cc_g" >&6; }
3917if test "$ac_test_CFLAGS" = set; then
3918  CFLAGS=$ac_save_CFLAGS
3919elif test $ac_cv_prog_cc_g = yes; then
3920  if test "$GCC" = yes; then
3921    CFLAGS="-g -O2"
3922  else
3923    CFLAGS="-g"
3924  fi
3925else
3926  if test "$GCC" = yes; then
3927    CFLAGS="-O2"
3928  else
3929    CFLAGS=
3930  fi
3931fi
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3933$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3934if ${ac_cv_prog_cc_c89+:} false; then :
3935  $as_echo_n "(cached) " >&6
3936else
3937  ac_cv_prog_cc_c89=no
3938ac_save_CC=$CC
3939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h.  */
3941#include <stdarg.h>
3942#include <stdio.h>
3943struct stat;
3944/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3945struct buf { int x; };
3946FILE * (*rcsopen) (struct buf *, struct stat *, int);
3947static char *e (p, i)
3948     char **p;
3949     int i;
3950{
3951  return p[i];
3952}
3953static char *f (char * (*g) (char **, int), char **p, ...)
3954{
3955  char *s;
3956  va_list v;
3957  va_start (v,p);
3958  s = g (p, va_arg (v,int));
3959  va_end (v);
3960  return s;
3961}
3962
3963/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3964   function prototypes and stuff, but not '\xHH' hex character constants.
3965   These don't provoke an error unfortunately, instead are silently treated
3966   as 'x'.  The following induces an error, until -std is added to get
3967   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3968   array size at least.  It's necessary to write '\x00'==0 to get something
3969   that's true only with -std.  */
3970int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3971
3972/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3973   inside strings and character constants.  */
3974#define FOO(x) 'x'
3975int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3976
3977int test (int i, double x);
3978struct s1 {int (*f) (int a);};
3979struct s2 {int (*f) (double a);};
3980int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3981int argc;
3982char **argv;
3983int
3984main ()
3985{
3986return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3992	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3993do
3994  CC="$ac_save_CC $ac_arg"
3995  if ac_fn_c_try_compile "$LINENO"; then :
3996  ac_cv_prog_cc_c89=$ac_arg
3997fi
3998rm -f core conftest.err conftest.$ac_objext
3999  test "x$ac_cv_prog_cc_c89" != "xno" && break
4000done
4001rm -f conftest.$ac_ext
4002CC=$ac_save_CC
4003
4004fi
4005# AC_CACHE_VAL
4006case "x$ac_cv_prog_cc_c89" in
4007  x)
4008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4009$as_echo "none needed" >&6; } ;;
4010  xno)
4011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4012$as_echo "unsupported" >&6; } ;;
4013  *)
4014    CC="$CC $ac_cv_prog_cc_c89"
4015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4016$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4017esac
4018if test "x$ac_cv_prog_cc_c89" != xno; then :
4019
4020fi
4021
4022ac_ext=c
4023ac_cpp='$CPP $CPPFLAGS'
4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4029$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4030if ${ac_cv_path_SED+:} false; then :
4031  $as_echo_n "(cached) " >&6
4032else
4033            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4034     for ac_i in 1 2 3 4 5 6 7; do
4035       ac_script="$ac_script$as_nl$ac_script"
4036     done
4037     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4038     { ac_script=; unset ac_script;}
4039     if test -z "$SED"; then
4040  ac_path_SED_found=false
4041  # Loop through the user's path and test for each of PROGNAME-LIST
4042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045  IFS=$as_save_IFS
4046  test -z "$as_dir" && as_dir=.
4047    for ac_prog in sed gsed; do
4048    for ac_exec_ext in '' $ac_executable_extensions; do
4049      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4050      as_fn_executable_p "$ac_path_SED" || continue
4051# Check for GNU ac_path_SED and select it if it is found.
4052  # Check for GNU $ac_path_SED
4053case `"$ac_path_SED" --version 2>&1` in
4054*GNU*)
4055  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4056*)
4057  ac_count=0
4058  $as_echo_n 0123456789 >"conftest.in"
4059  while :
4060  do
4061    cat "conftest.in" "conftest.in" >"conftest.tmp"
4062    mv "conftest.tmp" "conftest.in"
4063    cp "conftest.in" "conftest.nl"
4064    $as_echo '' >> "conftest.nl"
4065    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067    as_fn_arith $ac_count + 1 && ac_count=$as_val
4068    if test $ac_count -gt ${ac_path_SED_max-0}; then
4069      # Best one so far, save it but keep looking for a better one
4070      ac_cv_path_SED="$ac_path_SED"
4071      ac_path_SED_max=$ac_count
4072    fi
4073    # 10*(2^10) chars as input seems more than enough
4074    test $ac_count -gt 10 && break
4075  done
4076  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077esac
4078
4079      $ac_path_SED_found && break 3
4080    done
4081  done
4082  done
4083IFS=$as_save_IFS
4084  if test -z "$ac_cv_path_SED"; then
4085    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4086  fi
4087else
4088  ac_cv_path_SED=$SED
4089fi
4090
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4093$as_echo "$ac_cv_path_SED" >&6; }
4094 SED="$ac_cv_path_SED"
4095  rm -f conftest.sed
4096
4097test -z "$SED" && SED=sed
4098Xsed="$SED -e 1s/^X//"
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4111$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4112if ${ac_cv_path_GREP+:} false; then :
4113  $as_echo_n "(cached) " >&6
4114else
4115  if test -z "$GREP"; then
4116  ac_path_GREP_found=false
4117  # Loop through the user's path and test for each of PROGNAME-LIST
4118  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4120do
4121  IFS=$as_save_IFS
4122  test -z "$as_dir" && as_dir=.
4123    for ac_prog in grep ggrep; do
4124    for ac_exec_ext in '' $ac_executable_extensions; do
4125      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4126      as_fn_executable_p "$ac_path_GREP" || continue
4127# Check for GNU ac_path_GREP and select it if it is found.
4128  # Check for GNU $ac_path_GREP
4129case `"$ac_path_GREP" --version 2>&1` in
4130*GNU*)
4131  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4132*)
4133  ac_count=0
4134  $as_echo_n 0123456789 >"conftest.in"
4135  while :
4136  do
4137    cat "conftest.in" "conftest.in" >"conftest.tmp"
4138    mv "conftest.tmp" "conftest.in"
4139    cp "conftest.in" "conftest.nl"
4140    $as_echo 'GREP' >> "conftest.nl"
4141    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4143    as_fn_arith $ac_count + 1 && ac_count=$as_val
4144    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4145      # Best one so far, save it but keep looking for a better one
4146      ac_cv_path_GREP="$ac_path_GREP"
4147      ac_path_GREP_max=$ac_count
4148    fi
4149    # 10*(2^10) chars as input seems more than enough
4150    test $ac_count -gt 10 && break
4151  done
4152  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4153esac
4154
4155      $ac_path_GREP_found && break 3
4156    done
4157  done
4158  done
4159IFS=$as_save_IFS
4160  if test -z "$ac_cv_path_GREP"; then
4161    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4162  fi
4163else
4164  ac_cv_path_GREP=$GREP
4165fi
4166
4167fi
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4169$as_echo "$ac_cv_path_GREP" >&6; }
4170 GREP="$ac_cv_path_GREP"
4171
4172
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4174$as_echo_n "checking for egrep... " >&6; }
4175if ${ac_cv_path_EGREP+:} false; then :
4176  $as_echo_n "(cached) " >&6
4177else
4178  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4179   then ac_cv_path_EGREP="$GREP -E"
4180   else
4181     if test -z "$EGREP"; then
4182  ac_path_EGREP_found=false
4183  # Loop through the user's path and test for each of PROGNAME-LIST
4184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4186do
4187  IFS=$as_save_IFS
4188  test -z "$as_dir" && as_dir=.
4189    for ac_prog in egrep; do
4190    for ac_exec_ext in '' $ac_executable_extensions; do
4191      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4192      as_fn_executable_p "$ac_path_EGREP" || continue
4193# Check for GNU ac_path_EGREP and select it if it is found.
4194  # Check for GNU $ac_path_EGREP
4195case `"$ac_path_EGREP" --version 2>&1` in
4196*GNU*)
4197  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4198*)
4199  ac_count=0
4200  $as_echo_n 0123456789 >"conftest.in"
4201  while :
4202  do
4203    cat "conftest.in" "conftest.in" >"conftest.tmp"
4204    mv "conftest.tmp" "conftest.in"
4205    cp "conftest.in" "conftest.nl"
4206    $as_echo 'EGREP' >> "conftest.nl"
4207    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4208    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4209    as_fn_arith $ac_count + 1 && ac_count=$as_val
4210    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4211      # Best one so far, save it but keep looking for a better one
4212      ac_cv_path_EGREP="$ac_path_EGREP"
4213      ac_path_EGREP_max=$ac_count
4214    fi
4215    # 10*(2^10) chars as input seems more than enough
4216    test $ac_count -gt 10 && break
4217  done
4218  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4219esac
4220
4221      $ac_path_EGREP_found && break 3
4222    done
4223  done
4224  done
4225IFS=$as_save_IFS
4226  if test -z "$ac_cv_path_EGREP"; then
4227    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4228  fi
4229else
4230  ac_cv_path_EGREP=$EGREP
4231fi
4232
4233   fi
4234fi
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4236$as_echo "$ac_cv_path_EGREP" >&6; }
4237 EGREP="$ac_cv_path_EGREP"
4238
4239
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4241$as_echo_n "checking for fgrep... " >&6; }
4242if ${ac_cv_path_FGREP+:} false; then :
4243  $as_echo_n "(cached) " >&6
4244else
4245  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4246   then ac_cv_path_FGREP="$GREP -F"
4247   else
4248     if test -z "$FGREP"; then
4249  ac_path_FGREP_found=false
4250  # Loop through the user's path and test for each of PROGNAME-LIST
4251  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4253do
4254  IFS=$as_save_IFS
4255  test -z "$as_dir" && as_dir=.
4256    for ac_prog in fgrep; do
4257    for ac_exec_ext in '' $ac_executable_extensions; do
4258      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4259      as_fn_executable_p "$ac_path_FGREP" || continue
4260# Check for GNU ac_path_FGREP and select it if it is found.
4261  # Check for GNU $ac_path_FGREP
4262case `"$ac_path_FGREP" --version 2>&1` in
4263*GNU*)
4264  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4265*)
4266  ac_count=0
4267  $as_echo_n 0123456789 >"conftest.in"
4268  while :
4269  do
4270    cat "conftest.in" "conftest.in" >"conftest.tmp"
4271    mv "conftest.tmp" "conftest.in"
4272    cp "conftest.in" "conftest.nl"
4273    $as_echo 'FGREP' >> "conftest.nl"
4274    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276    as_fn_arith $ac_count + 1 && ac_count=$as_val
4277    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4278      # Best one so far, save it but keep looking for a better one
4279      ac_cv_path_FGREP="$ac_path_FGREP"
4280      ac_path_FGREP_max=$ac_count
4281    fi
4282    # 10*(2^10) chars as input seems more than enough
4283    test $ac_count -gt 10 && break
4284  done
4285  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286esac
4287
4288      $ac_path_FGREP_found && break 3
4289    done
4290  done
4291  done
4292IFS=$as_save_IFS
4293  if test -z "$ac_cv_path_FGREP"; then
4294    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4295  fi
4296else
4297  ac_cv_path_FGREP=$FGREP
4298fi
4299
4300   fi
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4303$as_echo "$ac_cv_path_FGREP" >&6; }
4304 FGREP="$ac_cv_path_FGREP"
4305
4306
4307test -z "$GREP" && GREP=grep
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327# Check whether --with-gnu-ld was given.
4328if test "${with_gnu_ld+set}" = set; then :
4329  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4330else
4331  with_gnu_ld=no
4332fi
4333
4334ac_prog=ld
4335if test "$GCC" = yes; then
4336  # Check if gcc -print-prog-name=ld gives a path.
4337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4338$as_echo_n "checking for ld used by $CC... " >&6; }
4339  case $host in
4340  *-*-mingw*)
4341    # gcc leaves a trailing carriage return which upsets mingw
4342    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4343  *)
4344    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4345  esac
4346  case $ac_prog in
4347    # Accept absolute paths.
4348    [\\/]* | ?:[\\/]*)
4349      re_direlt='/[^/][^/]*/\.\./'
4350      # Canonicalize the pathname of ld
4351      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4352      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4353	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4354      done
4355      test -z "$LD" && LD="$ac_prog"
4356      ;;
4357  "")
4358    # If it fails, then pretend we aren't using GCC.
4359    ac_prog=ld
4360    ;;
4361  *)
4362    # If it is relative, then search for the first ld in PATH.
4363    with_gnu_ld=unknown
4364    ;;
4365  esac
4366elif test "$with_gnu_ld" = yes; then
4367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4368$as_echo_n "checking for GNU ld... " >&6; }
4369else
4370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4371$as_echo_n "checking for non-GNU ld... " >&6; }
4372fi
4373if ${lt_cv_path_LD+:} false; then :
4374  $as_echo_n "(cached) " >&6
4375else
4376  if test -z "$LD"; then
4377  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4378  for ac_dir in $PATH; do
4379    IFS="$lt_save_ifs"
4380    test -z "$ac_dir" && ac_dir=.
4381    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4382      lt_cv_path_LD="$ac_dir/$ac_prog"
4383      # Check to see if the program is GNU ld.  I'd rather use --version,
4384      # but apparently some variants of GNU ld only accept -v.
4385      # Break only if it was the GNU/non-GNU ld that we prefer.
4386      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4387      *GNU* | *'with BFD'*)
4388	test "$with_gnu_ld" != no && break
4389	;;
4390      *)
4391	test "$with_gnu_ld" != yes && break
4392	;;
4393      esac
4394    fi
4395  done
4396  IFS="$lt_save_ifs"
4397else
4398  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4399fi
4400fi
4401
4402LD="$lt_cv_path_LD"
4403if test -n "$LD"; then
4404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4405$as_echo "$LD" >&6; }
4406else
4407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408$as_echo "no" >&6; }
4409fi
4410test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4412$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4413if ${lt_cv_prog_gnu_ld+:} false; then :
4414  $as_echo_n "(cached) " >&6
4415else
4416  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4417case `$LD -v 2>&1 </dev/null` in
4418*GNU* | *'with BFD'*)
4419  lt_cv_prog_gnu_ld=yes
4420  ;;
4421*)
4422  lt_cv_prog_gnu_ld=no
4423  ;;
4424esac
4425fi
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4427$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4428with_gnu_ld=$lt_cv_prog_gnu_ld
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4439$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4440if ${lt_cv_path_NM+:} false; then :
4441  $as_echo_n "(cached) " >&6
4442else
4443  if test -n "$NM"; then
4444  # Let the user override the test.
4445  lt_cv_path_NM="$NM"
4446else
4447  lt_nm_to_check="${ac_tool_prefix}nm"
4448  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4449    lt_nm_to_check="$lt_nm_to_check nm"
4450  fi
4451  for lt_tmp_nm in $lt_nm_to_check; do
4452    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4453    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4454      IFS="$lt_save_ifs"
4455      test -z "$ac_dir" && ac_dir=.
4456      tmp_nm="$ac_dir/$lt_tmp_nm"
4457      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4458	# Check to see if the nm accepts a BSD-compat flag.
4459	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4460	#   nm: unknown option "B" ignored
4461	# Tru64's nm complains that /dev/null is an invalid object file
4462	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4463	*/dev/null* | *'Invalid file or object type'*)
4464	  lt_cv_path_NM="$tmp_nm -B"
4465	  break
4466	  ;;
4467	*)
4468	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4469	  */dev/null*)
4470	    lt_cv_path_NM="$tmp_nm -p"
4471	    break
4472	    ;;
4473	  *)
4474	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4475	    continue # so that we can try to find one that supports BSD flags
4476	    ;;
4477	  esac
4478	  ;;
4479	esac
4480      fi
4481    done
4482    IFS="$lt_save_ifs"
4483  done
4484  : ${lt_cv_path_NM=no}
4485fi
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4488$as_echo "$lt_cv_path_NM" >&6; }
4489if test "$lt_cv_path_NM" != "no"; then
4490  NM="$lt_cv_path_NM"
4491else
4492  # Didn't find any BSD compatible name lister, look for dumpbin.
4493  if test -n "$ac_tool_prefix"; then
4494  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4495  do
4496    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4497set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499$as_echo_n "checking for $ac_word... " >&6; }
4500if ${ac_cv_prog_DUMPBIN+:} false; then :
4501  $as_echo_n "(cached) " >&6
4502else
4503  if test -n "$DUMPBIN"; then
4504  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509  IFS=$as_save_IFS
4510  test -z "$as_dir" && as_dir=.
4511    for ac_exec_ext in '' $ac_executable_extensions; do
4512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515    break 2
4516  fi
4517done
4518  done
4519IFS=$as_save_IFS
4520
4521fi
4522fi
4523DUMPBIN=$ac_cv_prog_DUMPBIN
4524if test -n "$DUMPBIN"; then
4525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4526$as_echo "$DUMPBIN" >&6; }
4527else
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529$as_echo "no" >&6; }
4530fi
4531
4532
4533    test -n "$DUMPBIN" && break
4534  done
4535fi
4536if test -z "$DUMPBIN"; then
4537  ac_ct_DUMPBIN=$DUMPBIN
4538  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4539do
4540  # Extract the first word of "$ac_prog", so it can be a program name with args.
4541set dummy $ac_prog; ac_word=$2
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543$as_echo_n "checking for $ac_word... " >&6; }
4544if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4545  $as_echo_n "(cached) " >&6
4546else
4547  if test -n "$ac_ct_DUMPBIN"; then
4548  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4549else
4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553  IFS=$as_save_IFS
4554  test -z "$as_dir" && as_dir=.
4555    for ac_exec_ext in '' $ac_executable_extensions; do
4556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559    break 2
4560  fi
4561done
4562  done
4563IFS=$as_save_IFS
4564
4565fi
4566fi
4567ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4568if test -n "$ac_ct_DUMPBIN"; then
4569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4570$as_echo "$ac_ct_DUMPBIN" >&6; }
4571else
4572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573$as_echo "no" >&6; }
4574fi
4575
4576
4577  test -n "$ac_ct_DUMPBIN" && break
4578done
4579
4580  if test "x$ac_ct_DUMPBIN" = x; then
4581    DUMPBIN=":"
4582  else
4583    case $cross_compiling:$ac_tool_warned in
4584yes:)
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4587ac_tool_warned=yes ;;
4588esac
4589    DUMPBIN=$ac_ct_DUMPBIN
4590  fi
4591fi
4592
4593
4594  if test "$DUMPBIN" != ":"; then
4595    NM="$DUMPBIN"
4596  fi
4597fi
4598test -z "$NM" && NM=nm
4599
4600
4601
4602
4603
4604
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4606$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4607if ${lt_cv_nm_interface+:} false; then :
4608  $as_echo_n "(cached) " >&6
4609else
4610  lt_cv_nm_interface="BSD nm"
4611  echo "int some_variable = 0;" > conftest.$ac_ext
4612  (eval echo "\"\$as_me:4612: $ac_compile\"" >&5)
4613  (eval "$ac_compile" 2>conftest.err)
4614  cat conftest.err >&5
4615  (eval echo "\"\$as_me:4615: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4616  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4617  cat conftest.err >&5
4618  (eval echo "\"\$as_me:4618: output\"" >&5)
4619  cat conftest.out >&5
4620  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4621    lt_cv_nm_interface="MS dumpbin"
4622  fi
4623  rm -f conftest*
4624fi
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4626$as_echo "$lt_cv_nm_interface" >&6; }
4627
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4629$as_echo_n "checking whether ln -s works... " >&6; }
4630LN_S=$as_ln_s
4631if test "$LN_S" = "ln -s"; then
4632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4633$as_echo "yes" >&6; }
4634else
4635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4636$as_echo "no, using $LN_S" >&6; }
4637fi
4638
4639# find the maximum length of command line arguments
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4641$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4642if ${lt_cv_sys_max_cmd_len+:} false; then :
4643  $as_echo_n "(cached) " >&6
4644else
4645    i=0
4646  teststring="ABCD"
4647
4648  case $build_os in
4649  msdosdjgpp*)
4650    # On DJGPP, this test can blow up pretty badly due to problems in libc
4651    # (any single argument exceeding 2000 bytes causes a buffer overrun
4652    # during glob expansion).  Even if it were fixed, the result of this
4653    # check would be larger than it should be.
4654    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4655    ;;
4656
4657  gnu*)
4658    # Under GNU Hurd, this test is not required because there is
4659    # no limit to the length of command line arguments.
4660    # Libtool will interpret -1 as no limit whatsoever
4661    lt_cv_sys_max_cmd_len=-1;
4662    ;;
4663
4664  cygwin* | mingw* | cegcc*)
4665    # On Win9x/ME, this test blows up -- it succeeds, but takes
4666    # about 5 minutes as the teststring grows exponentially.
4667    # Worse, since 9x/ME are not pre-emptively multitasking,
4668    # you end up with a "frozen" computer, even though with patience
4669    # the test eventually succeeds (with a max line length of 256k).
4670    # Instead, let's just punt: use the minimum linelength reported by
4671    # all of the supported platforms: 8192 (on NT/2K/XP).
4672    lt_cv_sys_max_cmd_len=8192;
4673    ;;
4674
4675  amigaos*)
4676    # On AmigaOS with pdksh, this test takes hours, literally.
4677    # So we just punt and use a minimum line length of 8192.
4678    lt_cv_sys_max_cmd_len=8192;
4679    ;;
4680
4681  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4682    # This has been around since 386BSD, at least.  Likely further.
4683    if test -x /sbin/sysctl; then
4684      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4685    elif test -x /usr/sbin/sysctl; then
4686      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4687    else
4688      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4689    fi
4690    # And add a safety zone
4691    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4692    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4693    ;;
4694
4695  interix*)
4696    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4697    lt_cv_sys_max_cmd_len=196608
4698    ;;
4699
4700  osf*)
4701    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4702    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4703    # nice to cause kernel panics so lets avoid the loop below.
4704    # First set a reasonable default.
4705    lt_cv_sys_max_cmd_len=16384
4706    #
4707    if test -x /sbin/sysconfig; then
4708      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4709        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4710      esac
4711    fi
4712    ;;
4713  sco3.2v5*)
4714    lt_cv_sys_max_cmd_len=102400
4715    ;;
4716  sysv5* | sco5v6* | sysv4.2uw2*)
4717    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4718    if test -n "$kargmax"; then
4719      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4720    else
4721      lt_cv_sys_max_cmd_len=32768
4722    fi
4723    ;;
4724  *)
4725    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4726    if test -n "$lt_cv_sys_max_cmd_len"; then
4727      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4728      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4729    else
4730      # Make teststring a little bigger before we do anything with it.
4731      # a 1K string should be a reasonable start.
4732      for i in 1 2 3 4 5 6 7 8 ; do
4733        teststring=$teststring$teststring
4734      done
4735      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4736      # If test is not a shell built-in, we'll probably end up computing a
4737      # maximum length that is only half of the actual maximum length, but
4738      # we can't tell.
4739      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4740	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4741	      test $i != 17 # 1/2 MB should be enough
4742      do
4743        i=`expr $i + 1`
4744        teststring=$teststring$teststring
4745      done
4746      # Only check the string length outside the loop.
4747      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4748      teststring=
4749      # Add a significant safety factor because C++ compilers can tack on
4750      # massive amounts of additional arguments before passing them to the
4751      # linker.  It appears as though 1/2 is a usable value.
4752      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4753    fi
4754    ;;
4755  esac
4756
4757fi
4758
4759if test -n $lt_cv_sys_max_cmd_len ; then
4760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4761$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4762else
4763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4764$as_echo "none" >&6; }
4765fi
4766max_cmd_len=$lt_cv_sys_max_cmd_len
4767
4768
4769
4770
4771
4772
4773: ${CP="cp -f"}
4774: ${MV="mv -f"}
4775: ${RM="rm -f"}
4776
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4778$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4779# Try some XSI features
4780xsi_shell=no
4781( _lt_dummy="a/b/c"
4782  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4783      = c,a/b,, \
4784    && eval 'test $(( 1 + 1 )) -eq 2 \
4785    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4786  && xsi_shell=yes
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4788$as_echo "$xsi_shell" >&6; }
4789
4790
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4792$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4793lt_shell_append=no
4794( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4795    >/dev/null 2>&1 \
4796  && lt_shell_append=yes
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4798$as_echo "$lt_shell_append" >&6; }
4799
4800
4801if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4802  lt_unset=unset
4803else
4804  lt_unset=false
4805fi
4806
4807
4808
4809
4810
4811# test EBCDIC or ASCII
4812case `echo X|tr X '\101'` in
4813 A) # ASCII based system
4814    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4815  lt_SP2NL='tr \040 \012'
4816  lt_NL2SP='tr \015\012 \040\040'
4817  ;;
4818 *) # EBCDIC based system
4819  lt_SP2NL='tr \100 \n'
4820  lt_NL2SP='tr \r\n \100\100'
4821  ;;
4822esac
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4833$as_echo_n "checking for $LD option to reload object files... " >&6; }
4834if ${lt_cv_ld_reload_flag+:} false; then :
4835  $as_echo_n "(cached) " >&6
4836else
4837  lt_cv_ld_reload_flag='-r'
4838fi
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4840$as_echo "$lt_cv_ld_reload_flag" >&6; }
4841reload_flag=$lt_cv_ld_reload_flag
4842case $reload_flag in
4843"" | " "*) ;;
4844*) reload_flag=" $reload_flag" ;;
4845esac
4846reload_cmds='$LD$reload_flag -o $output$reload_objs'
4847case $host_os in
4848  darwin*)
4849    if test "$GCC" = yes; then
4850      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4851    else
4852      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4853    fi
4854    ;;
4855esac
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865if test -n "$ac_tool_prefix"; then
4866  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4867set dummy ${ac_tool_prefix}objdump; ac_word=$2
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869$as_echo_n "checking for $ac_word... " >&6; }
4870if ${ac_cv_prog_OBJDUMP+:} false; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873  if test -n "$OBJDUMP"; then
4874  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4875else
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879  IFS=$as_save_IFS
4880  test -z "$as_dir" && as_dir=.
4881    for ac_exec_ext in '' $ac_executable_extensions; do
4882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885    break 2
4886  fi
4887done
4888  done
4889IFS=$as_save_IFS
4890
4891fi
4892fi
4893OBJDUMP=$ac_cv_prog_OBJDUMP
4894if test -n "$OBJDUMP"; then
4895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4896$as_echo "$OBJDUMP" >&6; }
4897else
4898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899$as_echo "no" >&6; }
4900fi
4901
4902
4903fi
4904if test -z "$ac_cv_prog_OBJDUMP"; then
4905  ac_ct_OBJDUMP=$OBJDUMP
4906  # Extract the first word of "objdump", so it can be a program name with args.
4907set dummy objdump; ac_word=$2
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909$as_echo_n "checking for $ac_word... " >&6; }
4910if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4911  $as_echo_n "(cached) " >&6
4912else
4913  if test -n "$ac_ct_OBJDUMP"; then
4914  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4915else
4916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917for as_dir in $PATH
4918do
4919  IFS=$as_save_IFS
4920  test -z "$as_dir" && as_dir=.
4921    for ac_exec_ext in '' $ac_executable_extensions; do
4922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4923    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925    break 2
4926  fi
4927done
4928  done
4929IFS=$as_save_IFS
4930
4931fi
4932fi
4933ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4934if test -n "$ac_ct_OBJDUMP"; then
4935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4936$as_echo "$ac_ct_OBJDUMP" >&6; }
4937else
4938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939$as_echo "no" >&6; }
4940fi
4941
4942  if test "x$ac_ct_OBJDUMP" = x; then
4943    OBJDUMP="false"
4944  else
4945    case $cross_compiling:$ac_tool_warned in
4946yes:)
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949ac_tool_warned=yes ;;
4950esac
4951    OBJDUMP=$ac_ct_OBJDUMP
4952  fi
4953else
4954  OBJDUMP="$ac_cv_prog_OBJDUMP"
4955fi
4956
4957test -z "$OBJDUMP" && OBJDUMP=objdump
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4968$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4969if ${lt_cv_deplibs_check_method+:} false; then :
4970  $as_echo_n "(cached) " >&6
4971else
4972  lt_cv_file_magic_cmd='$MAGIC_CMD'
4973lt_cv_file_magic_test_file=
4974lt_cv_deplibs_check_method='unknown'
4975# Need to set the preceding variable on all platforms that support
4976# interlibrary dependencies.
4977# 'none' -- dependencies not supported.
4978# `unknown' -- same as none, but documents that we really don't know.
4979# 'pass_all' -- all dependencies passed with no checks.
4980# 'test_compile' -- check by making test program.
4981# 'file_magic [[regex]]' -- check by looking for files in library path
4982# which responds to the $file_magic_cmd with a given extended regex.
4983# If you have `file' or equivalent on your system and you're not sure
4984# whether `pass_all' will *always* work, you probably want this one.
4985
4986case $host_os in
4987aix[4-9]*)
4988  lt_cv_deplibs_check_method=pass_all
4989  ;;
4990
4991beos*)
4992  lt_cv_deplibs_check_method=pass_all
4993  ;;
4994
4995bsdi[45]*)
4996  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4997  lt_cv_file_magic_cmd='/usr/bin/file -L'
4998  lt_cv_file_magic_test_file=/shlib/libc.so
4999  ;;
5000
5001cygwin*)
5002  # func_win32_libid is a shell function defined in ltmain.sh
5003  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5004  lt_cv_file_magic_cmd='func_win32_libid'
5005  ;;
5006
5007mingw* | pw32*)
5008  # Base MSYS/MinGW do not provide the 'file' command needed by
5009  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5010  # unless we find 'file', for example because we are cross-compiling.
5011  if ( file / ) >/dev/null 2>&1; then
5012    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5013    lt_cv_file_magic_cmd='func_win32_libid'
5014  else
5015    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5016    lt_cv_file_magic_cmd='$OBJDUMP -f'
5017  fi
5018  ;;
5019
5020cegcc)
5021  # use the weaker test based on 'objdump'. See mingw*.
5022  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5023  lt_cv_file_magic_cmd='$OBJDUMP -f'
5024  ;;
5025
5026darwin* | rhapsody*)
5027  lt_cv_deplibs_check_method=pass_all
5028  ;;
5029
5030freebsd* | dragonfly*)
5031  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5032    case $host_cpu in
5033    i*86 )
5034      # Not sure whether the presence of OpenBSD here was a mistake.
5035      # Let's accept both of them until this is cleared up.
5036      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5037      lt_cv_file_magic_cmd=/usr/bin/file
5038      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5039      ;;
5040    esac
5041  else
5042    lt_cv_deplibs_check_method=pass_all
5043  fi
5044  ;;
5045
5046gnu*)
5047  lt_cv_deplibs_check_method=pass_all
5048  ;;
5049
5050hpux10.20* | hpux11*)
5051  lt_cv_file_magic_cmd=/usr/bin/file
5052  case $host_cpu in
5053  ia64*)
5054    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5055    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5056    ;;
5057  hppa*64*)
5058    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]'
5059    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5060    ;;
5061  *)
5062    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5063    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5064    ;;
5065  esac
5066  ;;
5067
5068interix[3-9]*)
5069  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5070  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5071  ;;
5072
5073irix5* | irix6* | nonstopux*)
5074  case $LD in
5075  *-32|*"-32 ") libmagic=32-bit;;
5076  *-n32|*"-n32 ") libmagic=N32;;
5077  *-64|*"-64 ") libmagic=64-bit;;
5078  *) libmagic=never-match;;
5079  esac
5080  lt_cv_deplibs_check_method=pass_all
5081  ;;
5082
5083# This must be Linux ELF.
5084linux* | k*bsd*-gnu)
5085  lt_cv_deplibs_check_method=pass_all
5086  ;;
5087
5088netbsd* | netbsdelf*-gnu)
5089  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5090    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5091  else
5092    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5093  fi
5094  ;;
5095
5096newos6*)
5097  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5098  lt_cv_file_magic_cmd=/usr/bin/file
5099  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5100  ;;
5101
5102*nto* | *qnx*)
5103  lt_cv_deplibs_check_method=pass_all
5104  ;;
5105
5106openbsd*)
5107  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5108    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5109  else
5110    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5111  fi
5112  ;;
5113
5114osf3* | osf4* | osf5*)
5115  lt_cv_deplibs_check_method=pass_all
5116  ;;
5117
5118rdos*)
5119  lt_cv_deplibs_check_method=pass_all
5120  ;;
5121
5122solaris*)
5123  lt_cv_deplibs_check_method=pass_all
5124  ;;
5125
5126sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5127  lt_cv_deplibs_check_method=pass_all
5128  ;;
5129
5130sysv4 | sysv4.3*)
5131  case $host_vendor in
5132  motorola)
5133    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]'
5134    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5135    ;;
5136  ncr)
5137    lt_cv_deplibs_check_method=pass_all
5138    ;;
5139  sequent)
5140    lt_cv_file_magic_cmd='/bin/file'
5141    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5142    ;;
5143  sni)
5144    lt_cv_file_magic_cmd='/bin/file'
5145    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5146    lt_cv_file_magic_test_file=/lib/libc.so
5147    ;;
5148  siemens)
5149    lt_cv_deplibs_check_method=pass_all
5150    ;;
5151  pc)
5152    lt_cv_deplibs_check_method=pass_all
5153    ;;
5154  esac
5155  ;;
5156
5157tpf*)
5158  lt_cv_deplibs_check_method=pass_all
5159  ;;
5160esac
5161
5162fi
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5164$as_echo "$lt_cv_deplibs_check_method" >&6; }
5165file_magic_cmd=$lt_cv_file_magic_cmd
5166deplibs_check_method=$lt_cv_deplibs_check_method
5167test -z "$deplibs_check_method" && deplibs_check_method=unknown
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180if test -n "$ac_tool_prefix"; then
5181  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5182set dummy ${ac_tool_prefix}ar; ac_word=$2
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184$as_echo_n "checking for $ac_word... " >&6; }
5185if ${ac_cv_prog_AR+:} false; then :
5186  $as_echo_n "(cached) " >&6
5187else
5188  if test -n "$AR"; then
5189  ac_cv_prog_AR="$AR" # Let the user override the test.
5190else
5191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194  IFS=$as_save_IFS
5195  test -z "$as_dir" && as_dir=.
5196    for ac_exec_ext in '' $ac_executable_extensions; do
5197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198    ac_cv_prog_AR="${ac_tool_prefix}ar"
5199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200    break 2
5201  fi
5202done
5203  done
5204IFS=$as_save_IFS
5205
5206fi
5207fi
5208AR=$ac_cv_prog_AR
5209if test -n "$AR"; then
5210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5211$as_echo "$AR" >&6; }
5212else
5213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214$as_echo "no" >&6; }
5215fi
5216
5217
5218fi
5219if test -z "$ac_cv_prog_AR"; then
5220  ac_ct_AR=$AR
5221  # Extract the first word of "ar", so it can be a program name with args.
5222set dummy ar; ac_word=$2
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224$as_echo_n "checking for $ac_word... " >&6; }
5225if ${ac_cv_prog_ac_ct_AR+:} false; then :
5226  $as_echo_n "(cached) " >&6
5227else
5228  if test -n "$ac_ct_AR"; then
5229  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234  IFS=$as_save_IFS
5235  test -z "$as_dir" && as_dir=.
5236    for ac_exec_ext in '' $ac_executable_extensions; do
5237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238    ac_cv_prog_ac_ct_AR="ar"
5239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240    break 2
5241  fi
5242done
5243  done
5244IFS=$as_save_IFS
5245
5246fi
5247fi
5248ac_ct_AR=$ac_cv_prog_ac_ct_AR
5249if test -n "$ac_ct_AR"; then
5250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5251$as_echo "$ac_ct_AR" >&6; }
5252else
5253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254$as_echo "no" >&6; }
5255fi
5256
5257  if test "x$ac_ct_AR" = x; then
5258    AR="false"
5259  else
5260    case $cross_compiling:$ac_tool_warned in
5261yes:)
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5264ac_tool_warned=yes ;;
5265esac
5266    AR=$ac_ct_AR
5267  fi
5268else
5269  AR="$ac_cv_prog_AR"
5270fi
5271
5272test -z "$AR" && AR=ar
5273test -z "$AR_FLAGS" && AR_FLAGS=cru
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285if test -n "$ac_tool_prefix"; then
5286  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5287set dummy ${ac_tool_prefix}strip; ac_word=$2
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289$as_echo_n "checking for $ac_word... " >&6; }
5290if ${ac_cv_prog_STRIP+:} false; then :
5291  $as_echo_n "(cached) " >&6
5292else
5293  if test -n "$STRIP"; then
5294  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5295else
5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH
5298do
5299  IFS=$as_save_IFS
5300  test -z "$as_dir" && as_dir=.
5301    for ac_exec_ext in '' $ac_executable_extensions; do
5302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305    break 2
5306  fi
5307done
5308  done
5309IFS=$as_save_IFS
5310
5311fi
5312fi
5313STRIP=$ac_cv_prog_STRIP
5314if test -n "$STRIP"; then
5315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5316$as_echo "$STRIP" >&6; }
5317else
5318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319$as_echo "no" >&6; }
5320fi
5321
5322
5323fi
5324if test -z "$ac_cv_prog_STRIP"; then
5325  ac_ct_STRIP=$STRIP
5326  # Extract the first word of "strip", so it can be a program name with args.
5327set dummy strip; ac_word=$2
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329$as_echo_n "checking for $ac_word... " >&6; }
5330if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5331  $as_echo_n "(cached) " >&6
5332else
5333  if test -n "$ac_ct_STRIP"; then
5334  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5335else
5336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH
5338do
5339  IFS=$as_save_IFS
5340  test -z "$as_dir" && as_dir=.
5341    for ac_exec_ext in '' $ac_executable_extensions; do
5342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343    ac_cv_prog_ac_ct_STRIP="strip"
5344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345    break 2
5346  fi
5347done
5348  done
5349IFS=$as_save_IFS
5350
5351fi
5352fi
5353ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5354if test -n "$ac_ct_STRIP"; then
5355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5356$as_echo "$ac_ct_STRIP" >&6; }
5357else
5358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359$as_echo "no" >&6; }
5360fi
5361
5362  if test "x$ac_ct_STRIP" = x; then
5363    STRIP=":"
5364  else
5365    case $cross_compiling:$ac_tool_warned in
5366yes:)
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5369ac_tool_warned=yes ;;
5370esac
5371    STRIP=$ac_ct_STRIP
5372  fi
5373else
5374  STRIP="$ac_cv_prog_STRIP"
5375fi
5376
5377test -z "$STRIP" && STRIP=:
5378
5379
5380
5381
5382
5383
5384if test -n "$ac_tool_prefix"; then
5385  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5386set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388$as_echo_n "checking for $ac_word... " >&6; }
5389if ${ac_cv_prog_RANLIB+:} false; then :
5390  $as_echo_n "(cached) " >&6
5391else
5392  if test -n "$RANLIB"; then
5393  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5394else
5395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396for as_dir in $PATH
5397do
5398  IFS=$as_save_IFS
5399  test -z "$as_dir" && as_dir=.
5400    for ac_exec_ext in '' $ac_executable_extensions; do
5401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404    break 2
5405  fi
5406done
5407  done
5408IFS=$as_save_IFS
5409
5410fi
5411fi
5412RANLIB=$ac_cv_prog_RANLIB
5413if test -n "$RANLIB"; then
5414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5415$as_echo "$RANLIB" >&6; }
5416else
5417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418$as_echo "no" >&6; }
5419fi
5420
5421
5422fi
5423if test -z "$ac_cv_prog_RANLIB"; then
5424  ac_ct_RANLIB=$RANLIB
5425  # Extract the first word of "ranlib", so it can be a program name with args.
5426set dummy ranlib; ac_word=$2
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428$as_echo_n "checking for $ac_word... " >&6; }
5429if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  if test -n "$ac_ct_RANLIB"; then
5433  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5434else
5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438  IFS=$as_save_IFS
5439  test -z "$as_dir" && as_dir=.
5440    for ac_exec_ext in '' $ac_executable_extensions; do
5441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442    ac_cv_prog_ac_ct_RANLIB="ranlib"
5443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444    break 2
5445  fi
5446done
5447  done
5448IFS=$as_save_IFS
5449
5450fi
5451fi
5452ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5453if test -n "$ac_ct_RANLIB"; then
5454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5455$as_echo "$ac_ct_RANLIB" >&6; }
5456else
5457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458$as_echo "no" >&6; }
5459fi
5460
5461  if test "x$ac_ct_RANLIB" = x; then
5462    RANLIB=":"
5463  else
5464    case $cross_compiling:$ac_tool_warned in
5465yes:)
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5468ac_tool_warned=yes ;;
5469esac
5470    RANLIB=$ac_ct_RANLIB
5471  fi
5472else
5473  RANLIB="$ac_cv_prog_RANLIB"
5474fi
5475
5476test -z "$RANLIB" && RANLIB=:
5477
5478
5479
5480
5481
5482
5483# Determine commands to create old-style static archives.
5484old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5485old_postinstall_cmds='chmod 644 $oldlib'
5486old_postuninstall_cmds=
5487
5488if test -n "$RANLIB"; then
5489  case $host_os in
5490  openbsd*)
5491    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5492    ;;
5493  *)
5494    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5495    ;;
5496  esac
5497  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5498fi
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533# If no C compiler was specified, use CC.
5534LTCC=${LTCC-"$CC"}
5535
5536# If no C compiler flags were specified, use CFLAGS.
5537LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5538
5539# Allow CC to be a program name with arguments.
5540compiler=$CC
5541
5542
5543# Check for command to grab the raw symbol name followed by C symbol from nm.
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5545$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5546if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5547  $as_echo_n "(cached) " >&6
5548else
5549
5550# These are sane defaults that work on at least a few old systems.
5551# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5552
5553# Character class describing NM global symbol codes.
5554symcode='[BCDEGRST]'
5555
5556# Regexp to match symbols that can be accessed directly from C.
5557sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5558
5559# Define system-specific variables.
5560case $host_os in
5561aix*)
5562  symcode='[BCDT]'
5563  ;;
5564cygwin* | mingw* | pw32* | cegcc*)
5565  symcode='[ABCDGISTW]'
5566  ;;
5567hpux*)
5568  if test "$host_cpu" = ia64; then
5569    symcode='[ABCDEGRST]'
5570  fi
5571  ;;
5572irix* | nonstopux*)
5573  symcode='[BCDEGRST]'
5574  ;;
5575osf*)
5576  symcode='[BCDEGQRST]'
5577  ;;
5578solaris*)
5579  symcode='[BDRT]'
5580  ;;
5581sco3.2v5*)
5582  symcode='[DT]'
5583  ;;
5584sysv4.2uw2*)
5585  symcode='[DT]'
5586  ;;
5587sysv5* | sco5v6* | unixware* | OpenUNIX*)
5588  symcode='[ABDT]'
5589  ;;
5590sysv4)
5591  symcode='[DFNSTU]'
5592  ;;
5593esac
5594
5595# If we're using GNU nm, then use its standard symbol codes.
5596case `$NM -V 2>&1` in
5597*GNU* | *'with BFD'*)
5598  symcode='[ABCDGIRSTW]' ;;
5599esac
5600
5601# Transform an extracted symbol line into a proper C declaration.
5602# Some systems (esp. on ia64) link data and code symbols differently,
5603# so use this general approach.
5604lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5605
5606# Transform an extracted symbol line into symbol name and symbol address
5607lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5608lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5609
5610# Handle CRLF in mingw tool chain
5611opt_cr=
5612case $build_os in
5613mingw*)
5614  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5615  ;;
5616esac
5617
5618# Try without a prefix underscore, then with it.
5619for ac_symprfx in "" "_"; do
5620
5621  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5622  symxfrm="\\1 $ac_symprfx\\2 \\2"
5623
5624  # Write the raw and C identifiers.
5625  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5626    # Fake it for dumpbin and say T for any non-static function
5627    # and D for any global variable.
5628    # Also find C++ and __fastcall symbols from MSVC++,
5629    # which start with @ or ?.
5630    lt_cv_sys_global_symbol_pipe="$AWK '"\
5631"     {last_section=section; section=\$ 3};"\
5632"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5633"     \$ 0!~/External *\|/{next};"\
5634"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5635"     {if(hide[section]) next};"\
5636"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5637"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5638"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5639"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5640"     ' prfx=^$ac_symprfx"
5641  else
5642    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5643  fi
5644
5645  # Check to see that the pipe works correctly.
5646  pipe_works=no
5647
5648  rm -f conftest*
5649  cat > conftest.$ac_ext <<_LT_EOF
5650#ifdef __cplusplus
5651extern "C" {
5652#endif
5653char nm_test_var;
5654void nm_test_func(void);
5655void nm_test_func(void){}
5656#ifdef __cplusplus
5657}
5658#endif
5659int main(){nm_test_var='a';nm_test_func();return(0);}
5660_LT_EOF
5661
5662  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5663  (eval $ac_compile) 2>&5
5664  ac_status=$?
5665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666  test $ac_status = 0; }; then
5667    # Now try to grab the symbols.
5668    nlist=conftest.nm
5669    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5670  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5671  ac_status=$?
5672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673  test $ac_status = 0; } && test -s "$nlist"; then
5674      # Try sorting and uniquifying the output.
5675      if sort "$nlist" | uniq > "$nlist"T; then
5676	mv -f "$nlist"T "$nlist"
5677      else
5678	rm -f "$nlist"T
5679      fi
5680
5681      # Make sure that we snagged all the symbols we need.
5682      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5683	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5684	  cat <<_LT_EOF > conftest.$ac_ext
5685#ifdef __cplusplus
5686extern "C" {
5687#endif
5688
5689_LT_EOF
5690	  # Now generate the symbol file.
5691	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5692
5693	  cat <<_LT_EOF >> conftest.$ac_ext
5694
5695/* The mapping between symbol names and symbols.  */
5696const struct {
5697  const char *name;
5698  void       *address;
5699}
5700lt__PROGRAM__LTX_preloaded_symbols[] =
5701{
5702  { "@PROGRAM@", (void *) 0 },
5703_LT_EOF
5704	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5705	  cat <<\_LT_EOF >> conftest.$ac_ext
5706  {0, (void *) 0}
5707};
5708
5709/* This works around a problem in FreeBSD linker */
5710#ifdef FREEBSD_WORKAROUND
5711static const void *lt_preloaded_setup() {
5712  return lt__PROGRAM__LTX_preloaded_symbols;
5713}
5714#endif
5715
5716#ifdef __cplusplus
5717}
5718#endif
5719_LT_EOF
5720	  # Now try linking the two files.
5721	  mv conftest.$ac_objext conftstm.$ac_objext
5722	  lt_save_LIBS="$LIBS"
5723	  lt_save_CFLAGS="$CFLAGS"
5724	  LIBS="conftstm.$ac_objext"
5725	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5726	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5727  (eval $ac_link) 2>&5
5728  ac_status=$?
5729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5730  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5731	    pipe_works=yes
5732	  fi
5733	  LIBS="$lt_save_LIBS"
5734	  CFLAGS="$lt_save_CFLAGS"
5735	else
5736	  echo "cannot find nm_test_func in $nlist" >&5
5737	fi
5738      else
5739	echo "cannot find nm_test_var in $nlist" >&5
5740      fi
5741    else
5742      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5743    fi
5744  else
5745    echo "$progname: failed program was:" >&5
5746    cat conftest.$ac_ext >&5
5747  fi
5748  rm -rf conftest* conftst*
5749
5750  # Do not use the global_symbol_pipe unless it works.
5751  if test "$pipe_works" = yes; then
5752    break
5753  else
5754    lt_cv_sys_global_symbol_pipe=
5755  fi
5756done
5757
5758fi
5759
5760if test -z "$lt_cv_sys_global_symbol_pipe"; then
5761  lt_cv_sys_global_symbol_to_cdecl=
5762fi
5763if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5765$as_echo "failed" >&6; }
5766else
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5768$as_echo "ok" >&6; }
5769fi
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793# Check whether --enable-libtool-lock was given.
5794if test "${enable_libtool_lock+set}" = set; then :
5795  enableval=$enable_libtool_lock;
5796fi
5797
5798test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5799
5800# Some flags need to be propagated to the compiler or linker for good
5801# libtool support.
5802case $host in
5803ia64-*-hpux*)
5804  # Find out which ABI we are using.
5805  echo 'int i;' > conftest.$ac_ext
5806  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5807  (eval $ac_compile) 2>&5
5808  ac_status=$?
5809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5810  test $ac_status = 0; }; then
5811    case `/usr/bin/file conftest.$ac_objext` in
5812      *ELF-32*)
5813	HPUX_IA64_MODE="32"
5814	;;
5815      *ELF-64*)
5816	HPUX_IA64_MODE="64"
5817	;;
5818    esac
5819  fi
5820  rm -rf conftest*
5821  ;;
5822*-*-irix6*)
5823  # Find out which ABI we are using.
5824  echo '#line 5824 "configure"' > conftest.$ac_ext
5825  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5826  (eval $ac_compile) 2>&5
5827  ac_status=$?
5828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5829  test $ac_status = 0; }; then
5830    if test "$lt_cv_prog_gnu_ld" = yes; then
5831      case `/usr/bin/file conftest.$ac_objext` in
5832	*32-bit*)
5833	  LD="${LD-ld} -melf32bsmip"
5834	  ;;
5835	*N32*)
5836	  LD="${LD-ld} -melf32bmipn32"
5837	  ;;
5838	*64-bit*)
5839	  LD="${LD-ld} -melf64bmip"
5840	;;
5841      esac
5842    else
5843      case `/usr/bin/file conftest.$ac_objext` in
5844	*32-bit*)
5845	  LD="${LD-ld} -32"
5846	  ;;
5847	*N32*)
5848	  LD="${LD-ld} -n32"
5849	  ;;
5850	*64-bit*)
5851	  LD="${LD-ld} -64"
5852	  ;;
5853      esac
5854    fi
5855  fi
5856  rm -rf conftest*
5857  ;;
5858
5859x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5860s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5861  # Find out which ABI we are using.
5862  echo 'int i;' > conftest.$ac_ext
5863  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5864  (eval $ac_compile) 2>&5
5865  ac_status=$?
5866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867  test $ac_status = 0; }; then
5868    case `/usr/bin/file conftest.o` in
5869      *32-bit*)
5870	case $host in
5871	  x86_64-*kfreebsd*-gnu)
5872	    LD="${LD-ld} -m elf_i386_fbsd"
5873	    ;;
5874	  x86_64-*linux*)
5875	    LD="${LD-ld} -m elf_i386"
5876	    ;;
5877	  ppc64-*linux*|powerpc64-*linux*)
5878	    LD="${LD-ld} -m elf32ppclinux"
5879	    ;;
5880	  s390x-*linux*)
5881	    LD="${LD-ld} -m elf_s390"
5882	    ;;
5883	  sparc64-*linux*)
5884	    LD="${LD-ld} -m elf32_sparc"
5885	    ;;
5886	esac
5887	;;
5888      *64-bit*)
5889	case $host in
5890	  x86_64-*kfreebsd*-gnu)
5891	    LD="${LD-ld} -m elf_x86_64_fbsd"
5892	    ;;
5893	  x86_64-*linux*)
5894	    LD="${LD-ld} -m elf_x86_64"
5895	    ;;
5896	  ppc*-*linux*|powerpc*-*linux*)
5897	    LD="${LD-ld} -m elf64ppc"
5898	    ;;
5899	  s390*-*linux*|s390*-*tpf*)
5900	    LD="${LD-ld} -m elf64_s390"
5901	    ;;
5902	  sparc*-*linux*)
5903	    LD="${LD-ld} -m elf64_sparc"
5904	    ;;
5905	esac
5906	;;
5907    esac
5908  fi
5909  rm -rf conftest*
5910  ;;
5911
5912*-*-sco3.2v5*)
5913  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5914  SAVE_CFLAGS="$CFLAGS"
5915  CFLAGS="$CFLAGS -belf"
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5917$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5918if ${lt_cv_cc_needs_belf+:} false; then :
5919  $as_echo_n "(cached) " >&6
5920else
5921  ac_ext=c
5922ac_cpp='$CPP $CPPFLAGS'
5923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5925ac_compiler_gnu=$ac_cv_c_compiler_gnu
5926
5927     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928/* end confdefs.h.  */
5929
5930int
5931main ()
5932{
5933
5934  ;
5935  return 0;
5936}
5937_ACEOF
5938if ac_fn_c_try_link "$LINENO"; then :
5939  lt_cv_cc_needs_belf=yes
5940else
5941  lt_cv_cc_needs_belf=no
5942fi
5943rm -f core conftest.err conftest.$ac_objext \
5944    conftest$ac_exeext conftest.$ac_ext
5945     ac_ext=c
5946ac_cpp='$CPP $CPPFLAGS'
5947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5949ac_compiler_gnu=$ac_cv_c_compiler_gnu
5950
5951fi
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5953$as_echo "$lt_cv_cc_needs_belf" >&6; }
5954  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5955    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5956    CFLAGS="$SAVE_CFLAGS"
5957  fi
5958  ;;
5959sparc*-*solaris*)
5960  # Find out which ABI we are using.
5961  echo 'int i;' > conftest.$ac_ext
5962  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5963  (eval $ac_compile) 2>&5
5964  ac_status=$?
5965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5966  test $ac_status = 0; }; then
5967    case `/usr/bin/file conftest.o` in
5968    *64-bit*)
5969      case $lt_cv_prog_gnu_ld in
5970      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5971      *)
5972	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5973	  LD="${LD-ld} -64"
5974	fi
5975	;;
5976      esac
5977      ;;
5978    esac
5979  fi
5980  rm -rf conftest*
5981  ;;
5982esac
5983
5984need_locks="$enable_libtool_lock"
5985
5986
5987  case $host_os in
5988    rhapsody* | darwin*)
5989    if test -n "$ac_tool_prefix"; then
5990  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5991set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993$as_echo_n "checking for $ac_word... " >&6; }
5994if ${ac_cv_prog_DSYMUTIL+:} false; then :
5995  $as_echo_n "(cached) " >&6
5996else
5997  if test -n "$DSYMUTIL"; then
5998  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5999else
6000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001for as_dir in $PATH
6002do
6003  IFS=$as_save_IFS
6004  test -z "$as_dir" && as_dir=.
6005    for ac_exec_ext in '' $ac_executable_extensions; do
6006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009    break 2
6010  fi
6011done
6012  done
6013IFS=$as_save_IFS
6014
6015fi
6016fi
6017DSYMUTIL=$ac_cv_prog_DSYMUTIL
6018if test -n "$DSYMUTIL"; then
6019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6020$as_echo "$DSYMUTIL" >&6; }
6021else
6022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023$as_echo "no" >&6; }
6024fi
6025
6026
6027fi
6028if test -z "$ac_cv_prog_DSYMUTIL"; then
6029  ac_ct_DSYMUTIL=$DSYMUTIL
6030  # Extract the first word of "dsymutil", so it can be a program name with args.
6031set dummy dsymutil; ac_word=$2
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033$as_echo_n "checking for $ac_word... " >&6; }
6034if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6035  $as_echo_n "(cached) " >&6
6036else
6037  if test -n "$ac_ct_DSYMUTIL"; then
6038  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6039else
6040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041for as_dir in $PATH
6042do
6043  IFS=$as_save_IFS
6044  test -z "$as_dir" && as_dir=.
6045    for ac_exec_ext in '' $ac_executable_extensions; do
6046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6047    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049    break 2
6050  fi
6051done
6052  done
6053IFS=$as_save_IFS
6054
6055fi
6056fi
6057ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6058if test -n "$ac_ct_DSYMUTIL"; then
6059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6060$as_echo "$ac_ct_DSYMUTIL" >&6; }
6061else
6062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063$as_echo "no" >&6; }
6064fi
6065
6066  if test "x$ac_ct_DSYMUTIL" = x; then
6067    DSYMUTIL=":"
6068  else
6069    case $cross_compiling:$ac_tool_warned in
6070yes:)
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073ac_tool_warned=yes ;;
6074esac
6075    DSYMUTIL=$ac_ct_DSYMUTIL
6076  fi
6077else
6078  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6079fi
6080
6081    if test -n "$ac_tool_prefix"; then
6082  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6083set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085$as_echo_n "checking for $ac_word... " >&6; }
6086if ${ac_cv_prog_NMEDIT+:} false; then :
6087  $as_echo_n "(cached) " >&6
6088else
6089  if test -n "$NMEDIT"; then
6090  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6091else
6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095  IFS=$as_save_IFS
6096  test -z "$as_dir" && as_dir=.
6097    for ac_exec_ext in '' $ac_executable_extensions; do
6098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101    break 2
6102  fi
6103done
6104  done
6105IFS=$as_save_IFS
6106
6107fi
6108fi
6109NMEDIT=$ac_cv_prog_NMEDIT
6110if test -n "$NMEDIT"; then
6111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6112$as_echo "$NMEDIT" >&6; }
6113else
6114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115$as_echo "no" >&6; }
6116fi
6117
6118
6119fi
6120if test -z "$ac_cv_prog_NMEDIT"; then
6121  ac_ct_NMEDIT=$NMEDIT
6122  # Extract the first word of "nmedit", so it can be a program name with args.
6123set dummy nmedit; ac_word=$2
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125$as_echo_n "checking for $ac_word... " >&6; }
6126if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6127  $as_echo_n "(cached) " >&6
6128else
6129  if test -n "$ac_ct_NMEDIT"; then
6130  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6131else
6132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133for as_dir in $PATH
6134do
6135  IFS=$as_save_IFS
6136  test -z "$as_dir" && as_dir=.
6137    for ac_exec_ext in '' $ac_executable_extensions; do
6138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6139    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141    break 2
6142  fi
6143done
6144  done
6145IFS=$as_save_IFS
6146
6147fi
6148fi
6149ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6150if test -n "$ac_ct_NMEDIT"; then
6151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6152$as_echo "$ac_ct_NMEDIT" >&6; }
6153else
6154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155$as_echo "no" >&6; }
6156fi
6157
6158  if test "x$ac_ct_NMEDIT" = x; then
6159    NMEDIT=":"
6160  else
6161    case $cross_compiling:$ac_tool_warned in
6162yes:)
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6165ac_tool_warned=yes ;;
6166esac
6167    NMEDIT=$ac_ct_NMEDIT
6168  fi
6169else
6170  NMEDIT="$ac_cv_prog_NMEDIT"
6171fi
6172
6173    if test -n "$ac_tool_prefix"; then
6174  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6175set dummy ${ac_tool_prefix}lipo; ac_word=$2
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177$as_echo_n "checking for $ac_word... " >&6; }
6178if ${ac_cv_prog_LIPO+:} false; then :
6179  $as_echo_n "(cached) " >&6
6180else
6181  if test -n "$LIPO"; then
6182  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187  IFS=$as_save_IFS
6188  test -z "$as_dir" && as_dir=.
6189    for ac_exec_ext in '' $ac_executable_extensions; do
6190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193    break 2
6194  fi
6195done
6196  done
6197IFS=$as_save_IFS
6198
6199fi
6200fi
6201LIPO=$ac_cv_prog_LIPO
6202if test -n "$LIPO"; then
6203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6204$as_echo "$LIPO" >&6; }
6205else
6206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207$as_echo "no" >&6; }
6208fi
6209
6210
6211fi
6212if test -z "$ac_cv_prog_LIPO"; then
6213  ac_ct_LIPO=$LIPO
6214  # Extract the first word of "lipo", so it can be a program name with args.
6215set dummy lipo; ac_word=$2
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217$as_echo_n "checking for $ac_word... " >&6; }
6218if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6219  $as_echo_n "(cached) " >&6
6220else
6221  if test -n "$ac_ct_LIPO"; then
6222  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6223else
6224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225for as_dir in $PATH
6226do
6227  IFS=$as_save_IFS
6228  test -z "$as_dir" && as_dir=.
6229    for ac_exec_ext in '' $ac_executable_extensions; do
6230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231    ac_cv_prog_ac_ct_LIPO="lipo"
6232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233    break 2
6234  fi
6235done
6236  done
6237IFS=$as_save_IFS
6238
6239fi
6240fi
6241ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6242if test -n "$ac_ct_LIPO"; then
6243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6244$as_echo "$ac_ct_LIPO" >&6; }
6245else
6246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247$as_echo "no" >&6; }
6248fi
6249
6250  if test "x$ac_ct_LIPO" = x; then
6251    LIPO=":"
6252  else
6253    case $cross_compiling:$ac_tool_warned in
6254yes:)
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6257ac_tool_warned=yes ;;
6258esac
6259    LIPO=$ac_ct_LIPO
6260  fi
6261else
6262  LIPO="$ac_cv_prog_LIPO"
6263fi
6264
6265    if test -n "$ac_tool_prefix"; then
6266  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6267set dummy ${ac_tool_prefix}otool; ac_word=$2
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269$as_echo_n "checking for $ac_word... " >&6; }
6270if ${ac_cv_prog_OTOOL+:} false; then :
6271  $as_echo_n "(cached) " >&6
6272else
6273  if test -n "$OTOOL"; then
6274  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6275else
6276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277for as_dir in $PATH
6278do
6279  IFS=$as_save_IFS
6280  test -z "$as_dir" && as_dir=.
6281    for ac_exec_ext in '' $ac_executable_extensions; do
6282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6283    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6285    break 2
6286  fi
6287done
6288  done
6289IFS=$as_save_IFS
6290
6291fi
6292fi
6293OTOOL=$ac_cv_prog_OTOOL
6294if test -n "$OTOOL"; then
6295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6296$as_echo "$OTOOL" >&6; }
6297else
6298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299$as_echo "no" >&6; }
6300fi
6301
6302
6303fi
6304if test -z "$ac_cv_prog_OTOOL"; then
6305  ac_ct_OTOOL=$OTOOL
6306  # Extract the first word of "otool", so it can be a program name with args.
6307set dummy otool; ac_word=$2
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309$as_echo_n "checking for $ac_word... " >&6; }
6310if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313  if test -n "$ac_ct_OTOOL"; then
6314  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6315else
6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317for as_dir in $PATH
6318do
6319  IFS=$as_save_IFS
6320  test -z "$as_dir" && as_dir=.
6321    for ac_exec_ext in '' $ac_executable_extensions; do
6322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323    ac_cv_prog_ac_ct_OTOOL="otool"
6324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325    break 2
6326  fi
6327done
6328  done
6329IFS=$as_save_IFS
6330
6331fi
6332fi
6333ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6334if test -n "$ac_ct_OTOOL"; then
6335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6336$as_echo "$ac_ct_OTOOL" >&6; }
6337else
6338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339$as_echo "no" >&6; }
6340fi
6341
6342  if test "x$ac_ct_OTOOL" = x; then
6343    OTOOL=":"
6344  else
6345    case $cross_compiling:$ac_tool_warned in
6346yes:)
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6349ac_tool_warned=yes ;;
6350esac
6351    OTOOL=$ac_ct_OTOOL
6352  fi
6353else
6354  OTOOL="$ac_cv_prog_OTOOL"
6355fi
6356
6357    if test -n "$ac_tool_prefix"; then
6358  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6359set dummy ${ac_tool_prefix}otool64; ac_word=$2
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361$as_echo_n "checking for $ac_word... " >&6; }
6362if ${ac_cv_prog_OTOOL64+:} false; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365  if test -n "$OTOOL64"; then
6366  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6367else
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371  IFS=$as_save_IFS
6372  test -z "$as_dir" && as_dir=.
6373    for ac_exec_ext in '' $ac_executable_extensions; do
6374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377    break 2
6378  fi
6379done
6380  done
6381IFS=$as_save_IFS
6382
6383fi
6384fi
6385OTOOL64=$ac_cv_prog_OTOOL64
6386if test -n "$OTOOL64"; then
6387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6388$as_echo "$OTOOL64" >&6; }
6389else
6390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391$as_echo "no" >&6; }
6392fi
6393
6394
6395fi
6396if test -z "$ac_cv_prog_OTOOL64"; then
6397  ac_ct_OTOOL64=$OTOOL64
6398  # Extract the first word of "otool64", so it can be a program name with args.
6399set dummy otool64; ac_word=$2
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401$as_echo_n "checking for $ac_word... " >&6; }
6402if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6403  $as_echo_n "(cached) " >&6
6404else
6405  if test -n "$ac_ct_OTOOL64"; then
6406  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6407else
6408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409for as_dir in $PATH
6410do
6411  IFS=$as_save_IFS
6412  test -z "$as_dir" && as_dir=.
6413    for ac_exec_ext in '' $ac_executable_extensions; do
6414  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415    ac_cv_prog_ac_ct_OTOOL64="otool64"
6416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417    break 2
6418  fi
6419done
6420  done
6421IFS=$as_save_IFS
6422
6423fi
6424fi
6425ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6426if test -n "$ac_ct_OTOOL64"; then
6427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6428$as_echo "$ac_ct_OTOOL64" >&6; }
6429else
6430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431$as_echo "no" >&6; }
6432fi
6433
6434  if test "x$ac_ct_OTOOL64" = x; then
6435    OTOOL64=":"
6436  else
6437    case $cross_compiling:$ac_tool_warned in
6438yes:)
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6441ac_tool_warned=yes ;;
6442esac
6443    OTOOL64=$ac_ct_OTOOL64
6444  fi
6445else
6446  OTOOL64="$ac_cv_prog_OTOOL64"
6447fi
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6476$as_echo_n "checking for -single_module linker flag... " >&6; }
6477if ${lt_cv_apple_cc_single_mod+:} false; then :
6478  $as_echo_n "(cached) " >&6
6479else
6480  lt_cv_apple_cc_single_mod=no
6481      if test -z "${LT_MULTI_MODULE}"; then
6482	# By default we will add the -single_module flag. You can override
6483	# by either setting the environment variable LT_MULTI_MODULE
6484	# non-empty at configure time, or by adding -multi_module to the
6485	# link flags.
6486	rm -rf libconftest.dylib*
6487	echo "int foo(void){return 1;}" > conftest.c
6488	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6489-dynamiclib -Wl,-single_module conftest.c" >&5
6490	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6491	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6492        _lt_result=$?
6493	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6494	  lt_cv_apple_cc_single_mod=yes
6495	else
6496	  cat conftest.err >&5
6497	fi
6498	rm -rf libconftest.dylib*
6499	rm -f conftest.*
6500      fi
6501fi
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6503$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6504    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6505$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6506if ${lt_cv_ld_exported_symbols_list+:} false; then :
6507  $as_echo_n "(cached) " >&6
6508else
6509  lt_cv_ld_exported_symbols_list=no
6510      save_LDFLAGS=$LDFLAGS
6511      echo "_main" > conftest.sym
6512      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6513      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h.  */
6515
6516int
6517main ()
6518{
6519
6520  ;
6521  return 0;
6522}
6523_ACEOF
6524if ac_fn_c_try_link "$LINENO"; then :
6525  lt_cv_ld_exported_symbols_list=yes
6526else
6527  lt_cv_ld_exported_symbols_list=no
6528fi
6529rm -f core conftest.err conftest.$ac_objext \
6530    conftest$ac_exeext conftest.$ac_ext
6531	LDFLAGS="$save_LDFLAGS"
6532
6533fi
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6535$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6536    case $host_os in
6537    rhapsody* | darwin1.[012])
6538      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6539    darwin1.*)
6540      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6541    darwin*) # darwin 5.x on
6542      # if running on 10.5 or later, the deployment target defaults
6543      # to the OS version, if on x86, and 10.4, the deployment
6544      # target defaults to 10.4. Don't you love it?
6545      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6546	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6547	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6548	10.[012]*)
6549	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6550	10.*)
6551	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6552      esac
6553    ;;
6554  esac
6555    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6556      _lt_dar_single_mod='$single_module'
6557    fi
6558    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6559      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6560    else
6561      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6562    fi
6563    if test "$DSYMUTIL" != ":"; then
6564      _lt_dsymutil='~$DSYMUTIL $lib || :'
6565    else
6566      _lt_dsymutil=
6567    fi
6568    ;;
6569  esac
6570
6571ac_ext=c
6572ac_cpp='$CPP $CPPFLAGS'
6573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575ac_compiler_gnu=$ac_cv_c_compiler_gnu
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6577$as_echo_n "checking how to run the C preprocessor... " >&6; }
6578# On Suns, sometimes $CPP names a directory.
6579if test -n "$CPP" && test -d "$CPP"; then
6580  CPP=
6581fi
6582if test -z "$CPP"; then
6583  if ${ac_cv_prog_CPP+:} false; then :
6584  $as_echo_n "(cached) " >&6
6585else
6586      # Double quotes because CPP needs to be expanded
6587    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6588    do
6589      ac_preproc_ok=false
6590for ac_c_preproc_warn_flag in '' yes
6591do
6592  # Use a header file that comes with gcc, so configuring glibc
6593  # with a fresh cross-compiler works.
6594  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6595  # <limits.h> exists even on freestanding compilers.
6596  # On the NeXT, cc -E runs the code through the compiler's parser,
6597  # not just through cpp. "Syntax error" is here to catch this case.
6598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h.  */
6600#ifdef __STDC__
6601# include <limits.h>
6602#else
6603# include <assert.h>
6604#endif
6605		     Syntax error
6606_ACEOF
6607if ac_fn_c_try_cpp "$LINENO"; then :
6608
6609else
6610  # Broken: fails on valid input.
6611continue
6612fi
6613rm -f conftest.err conftest.i conftest.$ac_ext
6614
6615  # OK, works on sane cases.  Now check whether nonexistent headers
6616  # can be detected and how.
6617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h.  */
6619#include <ac_nonexistent.h>
6620_ACEOF
6621if ac_fn_c_try_cpp "$LINENO"; then :
6622  # Broken: success on invalid input.
6623continue
6624else
6625  # Passes both tests.
6626ac_preproc_ok=:
6627break
6628fi
6629rm -f conftest.err conftest.i conftest.$ac_ext
6630
6631done
6632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6633rm -f conftest.i conftest.err conftest.$ac_ext
6634if $ac_preproc_ok; then :
6635  break
6636fi
6637
6638    done
6639    ac_cv_prog_CPP=$CPP
6640
6641fi
6642  CPP=$ac_cv_prog_CPP
6643else
6644  ac_cv_prog_CPP=$CPP
6645fi
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6647$as_echo "$CPP" >&6; }
6648ac_preproc_ok=false
6649for ac_c_preproc_warn_flag in '' yes
6650do
6651  # Use a header file that comes with gcc, so configuring glibc
6652  # with a fresh cross-compiler works.
6653  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6654  # <limits.h> exists even on freestanding compilers.
6655  # On the NeXT, cc -E runs the code through the compiler's parser,
6656  # not just through cpp. "Syntax error" is here to catch this case.
6657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h.  */
6659#ifdef __STDC__
6660# include <limits.h>
6661#else
6662# include <assert.h>
6663#endif
6664		     Syntax error
6665_ACEOF
6666if ac_fn_c_try_cpp "$LINENO"; then :
6667
6668else
6669  # Broken: fails on valid input.
6670continue
6671fi
6672rm -f conftest.err conftest.i conftest.$ac_ext
6673
6674  # OK, works on sane cases.  Now check whether nonexistent headers
6675  # can be detected and how.
6676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h.  */
6678#include <ac_nonexistent.h>
6679_ACEOF
6680if ac_fn_c_try_cpp "$LINENO"; then :
6681  # Broken: success on invalid input.
6682continue
6683else
6684  # Passes both tests.
6685ac_preproc_ok=:
6686break
6687fi
6688rm -f conftest.err conftest.i conftest.$ac_ext
6689
6690done
6691# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6692rm -f conftest.i conftest.err conftest.$ac_ext
6693if $ac_preproc_ok; then :
6694
6695else
6696  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6698as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6699See \`config.log' for more details" "$LINENO" 5; }
6700fi
6701
6702ac_ext=c
6703ac_cpp='$CPP $CPPFLAGS'
6704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706ac_compiler_gnu=$ac_cv_c_compiler_gnu
6707
6708
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6710$as_echo_n "checking for ANSI C header files... " >&6; }
6711if ${ac_cv_header_stdc+:} false; then :
6712  $as_echo_n "(cached) " >&6
6713else
6714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h.  */
6716#include <stdlib.h>
6717#include <stdarg.h>
6718#include <string.h>
6719#include <float.h>
6720
6721int
6722main ()
6723{
6724
6725  ;
6726  return 0;
6727}
6728_ACEOF
6729if ac_fn_c_try_compile "$LINENO"; then :
6730  ac_cv_header_stdc=yes
6731else
6732  ac_cv_header_stdc=no
6733fi
6734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735
6736if test $ac_cv_header_stdc = yes; then
6737  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739/* end confdefs.h.  */
6740#include <string.h>
6741
6742_ACEOF
6743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6744  $EGREP "memchr" >/dev/null 2>&1; then :
6745
6746else
6747  ac_cv_header_stdc=no
6748fi
6749rm -f conftest*
6750
6751fi
6752
6753if test $ac_cv_header_stdc = yes; then
6754  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h.  */
6757#include <stdlib.h>
6758
6759_ACEOF
6760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6761  $EGREP "free" >/dev/null 2>&1; then :
6762
6763else
6764  ac_cv_header_stdc=no
6765fi
6766rm -f conftest*
6767
6768fi
6769
6770if test $ac_cv_header_stdc = yes; then
6771  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6772  if test "$cross_compiling" = yes; then :
6773  :
6774else
6775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776/* end confdefs.h.  */
6777#include <ctype.h>
6778#include <stdlib.h>
6779#if ((' ' & 0x0FF) == 0x020)
6780# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6781# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6782#else
6783# define ISLOWER(c) \
6784		   (('a' <= (c) && (c) <= 'i') \
6785		     || ('j' <= (c) && (c) <= 'r') \
6786		     || ('s' <= (c) && (c) <= 'z'))
6787# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6788#endif
6789
6790#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6791int
6792main ()
6793{
6794  int i;
6795  for (i = 0; i < 256; i++)
6796    if (XOR (islower (i), ISLOWER (i))
6797	|| toupper (i) != TOUPPER (i))
6798      return 2;
6799  return 0;
6800}
6801_ACEOF
6802if ac_fn_c_try_run "$LINENO"; then :
6803
6804else
6805  ac_cv_header_stdc=no
6806fi
6807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6808  conftest.$ac_objext conftest.beam conftest.$ac_ext
6809fi
6810
6811fi
6812fi
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6814$as_echo "$ac_cv_header_stdc" >&6; }
6815if test $ac_cv_header_stdc = yes; then
6816
6817$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6818
6819fi
6820
6821# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6822for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6823		  inttypes.h stdint.h unistd.h
6824do :
6825  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6826ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6827"
6828if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6829  cat >>confdefs.h <<_ACEOF
6830#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6831_ACEOF
6832
6833fi
6834
6835done
6836
6837
6838for ac_header in dlfcn.h
6839do :
6840  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6841"
6842if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6843  cat >>confdefs.h <<_ACEOF
6844#define HAVE_DLFCN_H 1
6845_ACEOF
6846
6847fi
6848
6849done
6850
6851
6852
6853# Set options
6854enable_dlopen=yes
6855
6856
6857
6858
6859  enable_win32_dll=no
6860
6861
6862            # Check whether --enable-shared was given.
6863if test "${enable_shared+set}" = set; then :
6864  enableval=$enable_shared; p=${PACKAGE-default}
6865    case $enableval in
6866    yes) enable_shared=yes ;;
6867    no) enable_shared=no ;;
6868    *)
6869      enable_shared=no
6870      # Look at the argument we got.  We use all the common list separators.
6871      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6872      for pkg in $enableval; do
6873	IFS="$lt_save_ifs"
6874	if test "X$pkg" = "X$p"; then
6875	  enable_shared=yes
6876	fi
6877      done
6878      IFS="$lt_save_ifs"
6879      ;;
6880    esac
6881else
6882  enable_shared=yes
6883fi
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893  # Check whether --enable-static was given.
6894if test "${enable_static+set}" = set; then :
6895  enableval=$enable_static; p=${PACKAGE-default}
6896    case $enableval in
6897    yes) enable_static=yes ;;
6898    no) enable_static=no ;;
6899    *)
6900     enable_static=no
6901      # Look at the argument we got.  We use all the common list separators.
6902      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6903      for pkg in $enableval; do
6904	IFS="$lt_save_ifs"
6905	if test "X$pkg" = "X$p"; then
6906	  enable_static=yes
6907	fi
6908      done
6909      IFS="$lt_save_ifs"
6910      ;;
6911    esac
6912else
6913  enable_static=yes
6914fi
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925# Check whether --with-pic was given.
6926if test "${with_pic+set}" = set; then :
6927  withval=$with_pic; pic_mode="$withval"
6928else
6929  pic_mode=default
6930fi
6931
6932
6933test -z "$pic_mode" && pic_mode=default
6934
6935
6936
6937
6938
6939
6940
6941  # Check whether --enable-fast-install was given.
6942if test "${enable_fast_install+set}" = set; then :
6943  enableval=$enable_fast_install; p=${PACKAGE-default}
6944    case $enableval in
6945    yes) enable_fast_install=yes ;;
6946    no) enable_fast_install=no ;;
6947    *)
6948      enable_fast_install=no
6949      # Look at the argument we got.  We use all the common list separators.
6950      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6951      for pkg in $enableval; do
6952	IFS="$lt_save_ifs"
6953	if test "X$pkg" = "X$p"; then
6954	  enable_fast_install=yes
6955	fi
6956      done
6957      IFS="$lt_save_ifs"
6958      ;;
6959    esac
6960else
6961  enable_fast_install=yes
6962fi
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974# This can be used to rebuild libtool when needed
6975LIBTOOL_DEPS="$ltmain"
6976
6977# Always use our own libtool.
6978LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004test -z "$LN_S" && LN_S="ln -s"
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019if test -n "${ZSH_VERSION+set}" ; then
7020   setopt NO_GLOB_SUBST
7021fi
7022
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7024$as_echo_n "checking for objdir... " >&6; }
7025if ${lt_cv_objdir+:} false; then :
7026  $as_echo_n "(cached) " >&6
7027else
7028  rm -f .libs 2>/dev/null
7029mkdir .libs 2>/dev/null
7030if test -d .libs; then
7031  lt_cv_objdir=.libs
7032else
7033  # MS-DOS does not allow filenames that begin with a dot.
7034  lt_cv_objdir=_libs
7035fi
7036rmdir .libs 2>/dev/null
7037fi
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7039$as_echo "$lt_cv_objdir" >&6; }
7040objdir=$lt_cv_objdir
7041
7042
7043
7044
7045
7046cat >>confdefs.h <<_ACEOF
7047#define LT_OBJDIR "$lt_cv_objdir/"
7048_ACEOF
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066case $host_os in
7067aix3*)
7068  # AIX sometimes has problems with the GCC collect2 program.  For some
7069  # reason, if we set the COLLECT_NAMES environment variable, the problems
7070  # vanish in a puff of smoke.
7071  if test "X${COLLECT_NAMES+set}" != Xset; then
7072    COLLECT_NAMES=
7073    export COLLECT_NAMES
7074  fi
7075  ;;
7076esac
7077
7078# Sed substitution that helps us do robust quoting.  It backslashifies
7079# metacharacters that are still active within double-quoted strings.
7080sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7081
7082# Same as above, but do not quote variable references.
7083double_quote_subst='s/\(["`\\]\)/\\\1/g'
7084
7085# Sed substitution to delay expansion of an escaped shell variable in a
7086# double_quote_subst'ed string.
7087delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7088
7089# Sed substitution to delay expansion of an escaped single quote.
7090delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7091
7092# Sed substitution to avoid accidental globbing in evaled expressions
7093no_glob_subst='s/\*/\\\*/g'
7094
7095# Global variables:
7096ofile=libtool
7097can_build_shared=yes
7098
7099# All known linkers require a `.a' archive for static linking (except MSVC,
7100# which needs '.lib').
7101libext=a
7102
7103with_gnu_ld="$lt_cv_prog_gnu_ld"
7104
7105old_CC="$CC"
7106old_CFLAGS="$CFLAGS"
7107
7108# Set sane defaults for various variables
7109test -z "$CC" && CC=cc
7110test -z "$LTCC" && LTCC=$CC
7111test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7112test -z "$LD" && LD=ld
7113test -z "$ac_objext" && ac_objext=o
7114
7115for cc_temp in $compiler""; do
7116  case $cc_temp in
7117    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7118    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7119    \-*) ;;
7120    *) break;;
7121  esac
7122done
7123cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7124
7125
7126# Only perform the check for file, if the check method requires it
7127test -z "$MAGIC_CMD" && MAGIC_CMD=file
7128case $deplibs_check_method in
7129file_magic*)
7130  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7131    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7132$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7133if ${lt_cv_path_MAGIC_CMD+:} false; then :
7134  $as_echo_n "(cached) " >&6
7135else
7136  case $MAGIC_CMD in
7137[\\/*] |  ?:[\\/]*)
7138  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7139  ;;
7140*)
7141  lt_save_MAGIC_CMD="$MAGIC_CMD"
7142  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7143  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7144  for ac_dir in $ac_dummy; do
7145    IFS="$lt_save_ifs"
7146    test -z "$ac_dir" && ac_dir=.
7147    if test -f $ac_dir/${ac_tool_prefix}file; then
7148      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7149      if test -n "$file_magic_test_file"; then
7150	case $deplibs_check_method in
7151	"file_magic "*)
7152	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7153	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7154	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7155	    $EGREP "$file_magic_regex" > /dev/null; then
7156	    :
7157	  else
7158	    cat <<_LT_EOF 1>&2
7159
7160*** Warning: the command libtool uses to detect shared libraries,
7161*** $file_magic_cmd, produces output that libtool cannot recognize.
7162*** The result is that libtool may fail to recognize shared libraries
7163*** as such.  This will affect the creation of libtool libraries that
7164*** depend on shared libraries, but programs linked with such libtool
7165*** libraries will work regardless of this problem.  Nevertheless, you
7166*** may want to report the problem to your system manager and/or to
7167*** bug-libtool@gnu.org
7168
7169_LT_EOF
7170	  fi ;;
7171	esac
7172      fi
7173      break
7174    fi
7175  done
7176  IFS="$lt_save_ifs"
7177  MAGIC_CMD="$lt_save_MAGIC_CMD"
7178  ;;
7179esac
7180fi
7181
7182MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7183if test -n "$MAGIC_CMD"; then
7184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7185$as_echo "$MAGIC_CMD" >&6; }
7186else
7187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188$as_echo "no" >&6; }
7189fi
7190
7191
7192
7193
7194
7195if test -z "$lt_cv_path_MAGIC_CMD"; then
7196  if test -n "$ac_tool_prefix"; then
7197    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7198$as_echo_n "checking for file... " >&6; }
7199if ${lt_cv_path_MAGIC_CMD+:} false; then :
7200  $as_echo_n "(cached) " >&6
7201else
7202  case $MAGIC_CMD in
7203[\\/*] |  ?:[\\/]*)
7204  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7205  ;;
7206*)
7207  lt_save_MAGIC_CMD="$MAGIC_CMD"
7208  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7209  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7210  for ac_dir in $ac_dummy; do
7211    IFS="$lt_save_ifs"
7212    test -z "$ac_dir" && ac_dir=.
7213    if test -f $ac_dir/file; then
7214      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7215      if test -n "$file_magic_test_file"; then
7216	case $deplibs_check_method in
7217	"file_magic "*)
7218	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7219	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7220	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7221	    $EGREP "$file_magic_regex" > /dev/null; then
7222	    :
7223	  else
7224	    cat <<_LT_EOF 1>&2
7225
7226*** Warning: the command libtool uses to detect shared libraries,
7227*** $file_magic_cmd, produces output that libtool cannot recognize.
7228*** The result is that libtool may fail to recognize shared libraries
7229*** as such.  This will affect the creation of libtool libraries that
7230*** depend on shared libraries, but programs linked with such libtool
7231*** libraries will work regardless of this problem.  Nevertheless, you
7232*** may want to report the problem to your system manager and/or to
7233*** bug-libtool@gnu.org
7234
7235_LT_EOF
7236	  fi ;;
7237	esac
7238      fi
7239      break
7240    fi
7241  done
7242  IFS="$lt_save_ifs"
7243  MAGIC_CMD="$lt_save_MAGIC_CMD"
7244  ;;
7245esac
7246fi
7247
7248MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7249if test -n "$MAGIC_CMD"; then
7250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7251$as_echo "$MAGIC_CMD" >&6; }
7252else
7253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254$as_echo "no" >&6; }
7255fi
7256
7257
7258  else
7259    MAGIC_CMD=:
7260  fi
7261fi
7262
7263  fi
7264  ;;
7265esac
7266
7267# Use C for the default configuration in the libtool script
7268
7269lt_save_CC="$CC"
7270ac_ext=c
7271ac_cpp='$CPP $CPPFLAGS'
7272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7274ac_compiler_gnu=$ac_cv_c_compiler_gnu
7275
7276
7277# Source file extension for C test sources.
7278ac_ext=c
7279
7280# Object file extension for compiled C test sources.
7281objext=o
7282objext=$objext
7283
7284# Code to be used in simple compile tests
7285lt_simple_compile_test_code="int some_variable = 0;"
7286
7287# Code to be used in simple link tests
7288lt_simple_link_test_code='int main(){return(0);}'
7289
7290
7291
7292
7293
7294
7295
7296# If no C compiler was specified, use CC.
7297LTCC=${LTCC-"$CC"}
7298
7299# If no C compiler flags were specified, use CFLAGS.
7300LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7301
7302# Allow CC to be a program name with arguments.
7303compiler=$CC
7304
7305# Save the default compiler, since it gets overwritten when the other
7306# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7307compiler_DEFAULT=$CC
7308
7309# save warnings/boilerplate of simple test code
7310ac_outfile=conftest.$ac_objext
7311echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7312eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7313_lt_compiler_boilerplate=`cat conftest.err`
7314$RM conftest*
7315
7316ac_outfile=conftest.$ac_objext
7317echo "$lt_simple_link_test_code" >conftest.$ac_ext
7318eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7319_lt_linker_boilerplate=`cat conftest.err`
7320$RM -r conftest*
7321
7322
7323## CAVEAT EMPTOR:
7324## There is no encapsulation within the following macros, do not change
7325## the running order or otherwise move them around unless you know exactly
7326## what you are doing...
7327if test -n "$compiler"; then
7328
7329lt_prog_compiler_no_builtin_flag=
7330
7331if test "$GCC" = yes; then
7332  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7333
7334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7335$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7336if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7337  $as_echo_n "(cached) " >&6
7338else
7339  lt_cv_prog_compiler_rtti_exceptions=no
7340   ac_outfile=conftest.$ac_objext
7341   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7342   lt_compiler_flag="-fno-rtti -fno-exceptions"
7343   # Insert the option either (1) after the last *FLAGS variable, or
7344   # (2) before a word containing "conftest.", or (3) at the end.
7345   # Note that $ac_compile itself does not contain backslashes and begins
7346   # with a dollar sign (not a hyphen), so the echo should work correctly.
7347   # The option is referenced via a variable to avoid confusing sed.
7348   lt_compile=`echo "$ac_compile" | $SED \
7349   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7350   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7351   -e 's:$: $lt_compiler_flag:'`
7352   (eval echo "\"\$as_me:7352: $lt_compile\"" >&5)
7353   (eval "$lt_compile" 2>conftest.err)
7354   ac_status=$?
7355   cat conftest.err >&5
7356   echo "$as_me:7356: \$? = $ac_status" >&5
7357   if (exit $ac_status) && test -s "$ac_outfile"; then
7358     # The compiler can only warn and ignore the option if not recognized
7359     # So say no if there are warnings other than the usual output.
7360     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7361     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7362     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7363       lt_cv_prog_compiler_rtti_exceptions=yes
7364     fi
7365   fi
7366   $RM conftest*
7367
7368fi
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7370$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7371
7372if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7373    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7374else
7375    :
7376fi
7377
7378fi
7379
7380
7381
7382
7383
7384
7385  lt_prog_compiler_wl=
7386lt_prog_compiler_pic=
7387lt_prog_compiler_static=
7388
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7390$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7391
7392  if test "$GCC" = yes; then
7393    lt_prog_compiler_wl='-Wl,'
7394    lt_prog_compiler_static='-static'
7395
7396    case $host_os in
7397      aix*)
7398      # All AIX code is PIC.
7399      if test "$host_cpu" = ia64; then
7400	# AIX 5 now supports IA64 processor
7401	lt_prog_compiler_static='-Bstatic'
7402      fi
7403      ;;
7404
7405    amigaos*)
7406      case $host_cpu in
7407      powerpc)
7408            # see comment about AmigaOS4 .so support
7409            lt_prog_compiler_pic='-fPIC'
7410        ;;
7411      m68k)
7412            # FIXME: we need at least 68020 code to build shared libraries, but
7413            # adding the `-m68020' flag to GCC prevents building anything better,
7414            # like `-m68040'.
7415            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7416        ;;
7417      esac
7418      ;;
7419
7420    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7421      # PIC is the default for these OSes.
7422      ;;
7423
7424    mingw* | cygwin* | pw32* | os2* | cegcc*)
7425      # This hack is so that the source file can tell whether it is being
7426      # built for inclusion in a dll (and should export symbols for example).
7427      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7428      # (--disable-auto-import) libraries
7429      lt_prog_compiler_pic='-DDLL_EXPORT'
7430      ;;
7431
7432    darwin* | rhapsody*)
7433      # PIC is the default on this platform
7434      # Common symbols not allowed in MH_DYLIB files
7435      lt_prog_compiler_pic='-fno-common'
7436      ;;
7437
7438    hpux*)
7439      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7440      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7441      # sets the default TLS model and affects inlining.
7442      case $host_cpu in
7443      hppa*64*)
7444	# +Z the default
7445	;;
7446      *)
7447	lt_prog_compiler_pic='-fPIC'
7448	;;
7449      esac
7450      ;;
7451
7452    interix[3-9]*)
7453      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7454      # Instead, we relocate shared libraries at runtime.
7455      ;;
7456
7457    msdosdjgpp*)
7458      # Just because we use GCC doesn't mean we suddenly get shared libraries
7459      # on systems that don't support them.
7460      lt_prog_compiler_can_build_shared=no
7461      enable_shared=no
7462      ;;
7463
7464    *nto* | *qnx*)
7465      # QNX uses GNU C++, but need to define -shared option too, otherwise
7466      # it will coredump.
7467      lt_prog_compiler_pic='-fPIC -shared'
7468      ;;
7469
7470    sysv4*MP*)
7471      if test -d /usr/nec; then
7472	lt_prog_compiler_pic=-Kconform_pic
7473      fi
7474      ;;
7475
7476    *)
7477      lt_prog_compiler_pic='-fPIC'
7478      ;;
7479    esac
7480  else
7481    # PORTME Check for flag to pass linker flags through the system compiler.
7482    case $host_os in
7483    aix*)
7484      lt_prog_compiler_wl='-Wl,'
7485      if test "$host_cpu" = ia64; then
7486	# AIX 5 now supports IA64 processor
7487	lt_prog_compiler_static='-Bstatic'
7488      else
7489	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7490      fi
7491      ;;
7492
7493    mingw* | cygwin* | pw32* | os2* | cegcc*)
7494      # This hack is so that the source file can tell whether it is being
7495      # built for inclusion in a dll (and should export symbols for example).
7496      lt_prog_compiler_pic='-DDLL_EXPORT'
7497      ;;
7498
7499    hpux9* | hpux10* | hpux11*)
7500      lt_prog_compiler_wl='-Wl,'
7501      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7502      # not for PA HP-UX.
7503      case $host_cpu in
7504      hppa*64*|ia64*)
7505	# +Z the default
7506	;;
7507      *)
7508	lt_prog_compiler_pic='+Z'
7509	;;
7510      esac
7511      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7512      lt_prog_compiler_static='${wl}-a ${wl}archive'
7513      ;;
7514
7515    irix5* | irix6* | nonstopux*)
7516      lt_prog_compiler_wl='-Wl,'
7517      # PIC (with -KPIC) is the default.
7518      lt_prog_compiler_static='-non_shared'
7519      ;;
7520
7521    linux* | k*bsd*-gnu)
7522      case $cc_basename in
7523      # old Intel for x86_64 which still supported -KPIC.
7524      ecc*)
7525	lt_prog_compiler_wl='-Wl,'
7526	lt_prog_compiler_pic='-KPIC'
7527	lt_prog_compiler_static='-static'
7528        ;;
7529      # icc used to be incompatible with GCC.
7530      # ICC 10 doesn't accept -KPIC any more.
7531      icc* | ifort*)
7532	lt_prog_compiler_wl='-Wl,'
7533	lt_prog_compiler_pic='-fPIC'
7534	lt_prog_compiler_static='-static'
7535        ;;
7536      # Lahey Fortran 8.1.
7537      lf95*)
7538	lt_prog_compiler_wl='-Wl,'
7539	lt_prog_compiler_pic='--shared'
7540	lt_prog_compiler_static='--static'
7541	;;
7542      pgcc* | pgf77* | pgf90* | pgf95*)
7543        # Portland Group compilers (*not* the Pentium gcc compiler,
7544	# which looks to be a dead project)
7545	lt_prog_compiler_wl='-Wl,'
7546	lt_prog_compiler_pic='-fpic'
7547	lt_prog_compiler_static='-Bstatic'
7548        ;;
7549      ccc*)
7550        lt_prog_compiler_wl='-Wl,'
7551        # All Alpha code is PIC.
7552        lt_prog_compiler_static='-non_shared'
7553        ;;
7554      xl*)
7555	# IBM XL C 8.0/Fortran 10.1 on PPC
7556	lt_prog_compiler_wl='-Wl,'
7557	lt_prog_compiler_pic='-qpic'
7558	lt_prog_compiler_static='-qstaticlink'
7559	;;
7560      *)
7561	case `$CC -V 2>&1 | sed 5q` in
7562	*Sun\ C*)
7563	  # Sun C 5.9
7564	  lt_prog_compiler_pic='-KPIC'
7565	  lt_prog_compiler_static='-Bstatic'
7566	  lt_prog_compiler_wl='-Wl,'
7567	  ;;
7568	*Sun\ F*)
7569	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7570	  lt_prog_compiler_pic='-KPIC'
7571	  lt_prog_compiler_static='-Bstatic'
7572	  lt_prog_compiler_wl=''
7573	  ;;
7574	esac
7575	;;
7576      esac
7577      ;;
7578
7579    newsos6)
7580      lt_prog_compiler_pic='-KPIC'
7581      lt_prog_compiler_static='-Bstatic'
7582      ;;
7583
7584    *nto* | *qnx*)
7585      # QNX uses GNU C++, but need to define -shared option too, otherwise
7586      # it will coredump.
7587      lt_prog_compiler_pic='-fPIC -shared'
7588      ;;
7589
7590    osf3* | osf4* | osf5*)
7591      lt_prog_compiler_wl='-Wl,'
7592      # All OSF/1 code is PIC.
7593      lt_prog_compiler_static='-non_shared'
7594      ;;
7595
7596    rdos*)
7597      lt_prog_compiler_static='-non_shared'
7598      ;;
7599
7600    solaris*)
7601      lt_prog_compiler_pic='-KPIC'
7602      lt_prog_compiler_static='-Bstatic'
7603      case $cc_basename in
7604      f77* | f90* | f95*)
7605	lt_prog_compiler_wl='-Qoption ld ';;
7606      *)
7607	lt_prog_compiler_wl='-Wl,';;
7608      esac
7609      ;;
7610
7611    sunos4*)
7612      lt_prog_compiler_wl='-Qoption ld '
7613      lt_prog_compiler_pic='-PIC'
7614      lt_prog_compiler_static='-Bstatic'
7615      ;;
7616
7617    sysv4 | sysv4.2uw2* | sysv4.3*)
7618      lt_prog_compiler_wl='-Wl,'
7619      lt_prog_compiler_pic='-KPIC'
7620      lt_prog_compiler_static='-Bstatic'
7621      ;;
7622
7623    sysv4*MP*)
7624      if test -d /usr/nec ;then
7625	lt_prog_compiler_pic='-Kconform_pic'
7626	lt_prog_compiler_static='-Bstatic'
7627      fi
7628      ;;
7629
7630    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7631      lt_prog_compiler_wl='-Wl,'
7632      lt_prog_compiler_pic='-KPIC'
7633      lt_prog_compiler_static='-Bstatic'
7634      ;;
7635
7636    unicos*)
7637      lt_prog_compiler_wl='-Wl,'
7638      lt_prog_compiler_can_build_shared=no
7639      ;;
7640
7641    uts4*)
7642      lt_prog_compiler_pic='-pic'
7643      lt_prog_compiler_static='-Bstatic'
7644      ;;
7645
7646    *)
7647      lt_prog_compiler_can_build_shared=no
7648      ;;
7649    esac
7650  fi
7651
7652case $host_os in
7653  # For platforms which do not support PIC, -DPIC is meaningless:
7654  *djgpp*)
7655    lt_prog_compiler_pic=
7656    ;;
7657  *)
7658    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7659    ;;
7660esac
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7662$as_echo "$lt_prog_compiler_pic" >&6; }
7663
7664
7665
7666
7667
7668
7669#
7670# Check to make sure the PIC flag actually works.
7671#
7672if test -n "$lt_prog_compiler_pic"; then
7673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7674$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7675if ${lt_cv_prog_compiler_pic_works+:} false; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  lt_cv_prog_compiler_pic_works=no
7679   ac_outfile=conftest.$ac_objext
7680   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7681   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7682   # Insert the option either (1) after the last *FLAGS variable, or
7683   # (2) before a word containing "conftest.", or (3) at the end.
7684   # Note that $ac_compile itself does not contain backslashes and begins
7685   # with a dollar sign (not a hyphen), so the echo should work correctly.
7686   # The option is referenced via a variable to avoid confusing sed.
7687   lt_compile=`echo "$ac_compile" | $SED \
7688   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7689   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7690   -e 's:$: $lt_compiler_flag:'`
7691   (eval echo "\"\$as_me:7691: $lt_compile\"" >&5)
7692   (eval "$lt_compile" 2>conftest.err)
7693   ac_status=$?
7694   cat conftest.err >&5
7695   echo "$as_me:7695: \$? = $ac_status" >&5
7696   if (exit $ac_status) && test -s "$ac_outfile"; then
7697     # The compiler can only warn and ignore the option if not recognized
7698     # So say no if there are warnings other than the usual output.
7699     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7700     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7701     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7702       lt_cv_prog_compiler_pic_works=yes
7703     fi
7704   fi
7705   $RM conftest*
7706
7707fi
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7709$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7710
7711if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7712    case $lt_prog_compiler_pic in
7713     "" | " "*) ;;
7714     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7715     esac
7716else
7717    lt_prog_compiler_pic=
7718     lt_prog_compiler_can_build_shared=no
7719fi
7720
7721fi
7722
7723
7724
7725
7726
7727
7728#
7729# Check to make sure the static flag actually works.
7730#
7731wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7733$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7734if ${lt_cv_prog_compiler_static_works+:} false; then :
7735  $as_echo_n "(cached) " >&6
7736else
7737  lt_cv_prog_compiler_static_works=no
7738   save_LDFLAGS="$LDFLAGS"
7739   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7740   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7741   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7742     # The linker can only warn and ignore the option if not recognized
7743     # So say no if there are warnings
7744     if test -s conftest.err; then
7745       # Append any errors to the config.log.
7746       cat conftest.err 1>&5
7747       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7748       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7749       if diff conftest.exp conftest.er2 >/dev/null; then
7750         lt_cv_prog_compiler_static_works=yes
7751       fi
7752     else
7753       lt_cv_prog_compiler_static_works=yes
7754     fi
7755   fi
7756   $RM -r conftest*
7757   LDFLAGS="$save_LDFLAGS"
7758
7759fi
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7761$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7762
7763if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7764    :
7765else
7766    lt_prog_compiler_static=
7767fi
7768
7769
7770
7771
7772
7773
7774
7775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7776$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7777if ${lt_cv_prog_compiler_c_o+:} false; then :
7778  $as_echo_n "(cached) " >&6
7779else
7780  lt_cv_prog_compiler_c_o=no
7781   $RM -r conftest 2>/dev/null
7782   mkdir conftest
7783   cd conftest
7784   mkdir out
7785   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7786
7787   lt_compiler_flag="-o out/conftest2.$ac_objext"
7788   # Insert the option either (1) after the last *FLAGS variable, or
7789   # (2) before a word containing "conftest.", or (3) at the end.
7790   # Note that $ac_compile itself does not contain backslashes and begins
7791   # with a dollar sign (not a hyphen), so the echo should work correctly.
7792   lt_compile=`echo "$ac_compile" | $SED \
7793   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7794   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7795   -e 's:$: $lt_compiler_flag:'`
7796   (eval echo "\"\$as_me:7796: $lt_compile\"" >&5)
7797   (eval "$lt_compile" 2>out/conftest.err)
7798   ac_status=$?
7799   cat out/conftest.err >&5
7800   echo "$as_me:7800: \$? = $ac_status" >&5
7801   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7802   then
7803     # The compiler can only warn and ignore the option if not recognized
7804     # So say no if there are warnings
7805     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7806     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7807     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7808       lt_cv_prog_compiler_c_o=yes
7809     fi
7810   fi
7811   chmod u+w . 2>&5
7812   $RM conftest*
7813   # SGI C++ compiler will create directory out/ii_files/ for
7814   # template instantiation
7815   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7816   $RM out/* && rmdir out
7817   cd ..
7818   $RM -r conftest
7819   $RM conftest*
7820
7821fi
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7823$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7824
7825
7826
7827
7828
7829
7830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7831$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7832if ${lt_cv_prog_compiler_c_o+:} false; then :
7833  $as_echo_n "(cached) " >&6
7834else
7835  lt_cv_prog_compiler_c_o=no
7836   $RM -r conftest 2>/dev/null
7837   mkdir conftest
7838   cd conftest
7839   mkdir out
7840   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7841
7842   lt_compiler_flag="-o out/conftest2.$ac_objext"
7843   # Insert the option either (1) after the last *FLAGS variable, or
7844   # (2) before a word containing "conftest.", or (3) at the end.
7845   # Note that $ac_compile itself does not contain backslashes and begins
7846   # with a dollar sign (not a hyphen), so the echo should work correctly.
7847   lt_compile=`echo "$ac_compile" | $SED \
7848   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7849   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7850   -e 's:$: $lt_compiler_flag:'`
7851   (eval echo "\"\$as_me:7851: $lt_compile\"" >&5)
7852   (eval "$lt_compile" 2>out/conftest.err)
7853   ac_status=$?
7854   cat out/conftest.err >&5
7855   echo "$as_me:7855: \$? = $ac_status" >&5
7856   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7857   then
7858     # The compiler can only warn and ignore the option if not recognized
7859     # So say no if there are warnings
7860     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7861     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7862     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7863       lt_cv_prog_compiler_c_o=yes
7864     fi
7865   fi
7866   chmod u+w . 2>&5
7867   $RM conftest*
7868   # SGI C++ compiler will create directory out/ii_files/ for
7869   # template instantiation
7870   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7871   $RM out/* && rmdir out
7872   cd ..
7873   $RM -r conftest
7874   $RM conftest*
7875
7876fi
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7878$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7879
7880
7881
7882
7883hard_links="nottested"
7884if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7885  # do not overwrite the value of need_locks provided by the user
7886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7887$as_echo_n "checking if we can lock with hard links... " >&6; }
7888  hard_links=yes
7889  $RM conftest*
7890  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7891  touch conftest.a
7892  ln conftest.a conftest.b 2>&5 || hard_links=no
7893  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7895$as_echo "$hard_links" >&6; }
7896  if test "$hard_links" = no; then
7897    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7898$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7899    need_locks=warn
7900  fi
7901else
7902  need_locks=no
7903fi
7904
7905
7906
7907
7908
7909
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7911$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7912
7913  runpath_var=
7914  allow_undefined_flag=
7915  always_export_symbols=no
7916  archive_cmds=
7917  archive_expsym_cmds=
7918  compiler_needs_object=no
7919  enable_shared_with_static_runtimes=no
7920  export_dynamic_flag_spec=
7921  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7922  hardcode_automatic=no
7923  hardcode_direct=no
7924  hardcode_direct_absolute=no
7925  hardcode_libdir_flag_spec=
7926  hardcode_libdir_flag_spec_ld=
7927  hardcode_libdir_separator=
7928  hardcode_minus_L=no
7929  hardcode_shlibpath_var=unsupported
7930  inherit_rpath=no
7931  link_all_deplibs=unknown
7932  module_cmds=
7933  module_expsym_cmds=
7934  old_archive_from_new_cmds=
7935  old_archive_from_expsyms_cmds=
7936  thread_safe_flag_spec=
7937  whole_archive_flag_spec=
7938  # include_expsyms should be a list of space-separated symbols to be *always*
7939  # included in the symbol list
7940  include_expsyms=
7941  # exclude_expsyms can be an extended regexp of symbols to exclude
7942  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7943  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7944  # as well as any symbol that contains `d'.
7945  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7946  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7947  # platforms (ab)use it in PIC code, but their linkers get confused if
7948  # the symbol is explicitly referenced.  Since portable code cannot
7949  # rely on this symbol name, it's probably fine to never include it in
7950  # preloaded symbol tables.
7951  # Exclude shared library initialization/finalization symbols.
7952  extract_expsyms_cmds=
7953
7954  case $host_os in
7955  cygwin* | mingw* | pw32* | cegcc*)
7956    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7957    # When not using gcc, we currently assume that we are using
7958    # Microsoft Visual C++.
7959    if test "$GCC" != yes; then
7960      with_gnu_ld=no
7961    fi
7962    ;;
7963  interix*)
7964    # we just hope/assume this is gcc and not c89 (= MSVC++)
7965    with_gnu_ld=yes
7966    ;;
7967  openbsd*)
7968    with_gnu_ld=no
7969    ;;
7970  esac
7971
7972  ld_shlibs=yes
7973  if test "$with_gnu_ld" = yes; then
7974    # If archive_cmds runs LD, not CC, wlarc should be empty
7975    wlarc='${wl}'
7976
7977    # Set some defaults for GNU ld with shared library support. These
7978    # are reset later if shared libraries are not supported. Putting them
7979    # here allows them to be overridden if necessary.
7980    runpath_var=LD_RUN_PATH
7981    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7982    export_dynamic_flag_spec='${wl}--export-dynamic'
7983    # ancient GNU ld didn't support --whole-archive et. al.
7984    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7985      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7986    else
7987      whole_archive_flag_spec=
7988    fi
7989    supports_anon_versioning=no
7990    case `$LD -v 2>&1` in
7991      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7992      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7993      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7994      *\ 2.11.*) ;; # other 2.11 versions
7995      *) supports_anon_versioning=yes ;;
7996    esac
7997
7998    # See if GNU ld supports shared libraries.
7999    case $host_os in
8000    aix[3-9]*)
8001      # On AIX/PPC, the GNU linker is very broken
8002      if test "$host_cpu" != ia64; then
8003	ld_shlibs=no
8004	cat <<_LT_EOF 1>&2
8005
8006*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8007*** to be unable to reliably create shared libraries on AIX.
8008*** Therefore, libtool is disabling shared libraries support.  If you
8009*** really care for shared libraries, you may want to modify your PATH
8010*** so that a non-GNU linker is found, and then restart.
8011
8012_LT_EOF
8013      fi
8014      ;;
8015
8016    amigaos*)
8017      case $host_cpu in
8018      powerpc)
8019            # see comment about AmigaOS4 .so support
8020            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8021            archive_expsym_cmds=''
8022        ;;
8023      m68k)
8024            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)'
8025            hardcode_libdir_flag_spec='-L$libdir'
8026            hardcode_minus_L=yes
8027        ;;
8028      esac
8029      ;;
8030
8031    beos*)
8032      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8033	allow_undefined_flag=unsupported
8034	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8035	# support --undefined.  This deserves some investigation.  FIXME
8036	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8037      else
8038	ld_shlibs=no
8039      fi
8040      ;;
8041
8042    cygwin* | mingw* | pw32* | cegcc*)
8043      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8044      # as there is no search path for DLLs.
8045      hardcode_libdir_flag_spec='-L$libdir'
8046      allow_undefined_flag=unsupported
8047      always_export_symbols=no
8048      enable_shared_with_static_runtimes=yes
8049      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8050
8051      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8052        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8053	# If the export-symbols file already is a .def file (1st line
8054	# is EXPORTS), use it as is; otherwise, prepend...
8055	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8056	  cp $export_symbols $output_objdir/$soname.def;
8057	else
8058	  echo EXPORTS > $output_objdir/$soname.def;
8059	  cat $export_symbols >> $output_objdir/$soname.def;
8060	fi~
8061	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8062      else
8063	ld_shlibs=no
8064      fi
8065      ;;
8066
8067    interix[3-9]*)
8068      hardcode_direct=no
8069      hardcode_shlibpath_var=no
8070      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8071      export_dynamic_flag_spec='${wl}-E'
8072      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8073      # Instead, shared libraries are loaded at an image base (0x10000000 by
8074      # default) and relocated if they conflict, which is a slow very memory
8075      # consuming and fragmenting process.  To avoid this, we pick a random,
8076      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8077      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8078      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8079      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'
8080      ;;
8081
8082    gnu* | linux* | tpf* | k*bsd*-gnu)
8083      tmp_diet=no
8084      if test "$host_os" = linux-dietlibc; then
8085	case $cc_basename in
8086	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8087	esac
8088      fi
8089      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8090	 && test "$tmp_diet" = no
8091      then
8092	tmp_addflag=
8093	tmp_sharedflag='-shared'
8094	case $cc_basename,$host_cpu in
8095        pgcc*)				# Portland Group C compiler
8096	  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'
8097	  tmp_addflag=' $pic_flag'
8098	  ;;
8099	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8100	  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'
8101	  tmp_addflag=' $pic_flag -Mnomain' ;;
8102	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8103	  tmp_addflag=' -i_dynamic' ;;
8104	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8105	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8106	ifc* | ifort*)			# Intel Fortran compiler
8107	  tmp_addflag=' -nofor_main' ;;
8108	lf95*)				# Lahey Fortran 8.1
8109	  whole_archive_flag_spec=
8110	  tmp_sharedflag='--shared' ;;
8111	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8112	  tmp_sharedflag='-qmkshrobj'
8113	  tmp_addflag= ;;
8114	esac
8115	case `$CC -V 2>&1 | sed 5q` in
8116	*Sun\ C*)			# Sun C 5.9
8117	  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'
8118	  compiler_needs_object=yes
8119	  tmp_sharedflag='-G' ;;
8120	*Sun\ F*)			# Sun Fortran 8.3
8121	  tmp_sharedflag='-G' ;;
8122	esac
8123	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8124
8125        if test "x$supports_anon_versioning" = xyes; then
8126          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8127	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8128	    echo "local: *; };" >> $output_objdir/$libname.ver~
8129	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8130        fi
8131
8132	case $cc_basename in
8133	xlf*)
8134	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8135	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8136	  hardcode_libdir_flag_spec=
8137	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8138	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8139	  if test "x$supports_anon_versioning" = xyes; then
8140	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8141	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8142	      echo "local: *; };" >> $output_objdir/$libname.ver~
8143	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8144	  fi
8145	  ;;
8146	esac
8147      else
8148        ld_shlibs=no
8149      fi
8150      ;;
8151
8152    netbsd* | netbsdelf*-gnu)
8153      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8154	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8155	wlarc=
8156      else
8157	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8158	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8159      fi
8160      ;;
8161
8162    solaris*)
8163      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8164	ld_shlibs=no
8165	cat <<_LT_EOF 1>&2
8166
8167*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8168*** create shared libraries on Solaris systems.  Therefore, libtool
8169*** is disabling shared libraries support.  We urge you to upgrade GNU
8170*** binutils to release 2.9.1 or newer.  Another option is to modify
8171*** your PATH or compiler configuration so that the native linker is
8172*** used, and then restart.
8173
8174_LT_EOF
8175      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8176	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8177	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8178      else
8179	ld_shlibs=no
8180      fi
8181      ;;
8182
8183    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8184      case `$LD -v 2>&1` in
8185        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8186	ld_shlibs=no
8187	cat <<_LT_EOF 1>&2
8188
8189*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8190*** reliably create shared libraries on SCO systems.  Therefore, libtool
8191*** is disabling shared libraries support.  We urge you to upgrade GNU
8192*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8193*** your PATH or compiler configuration so that the native linker is
8194*** used, and then restart.
8195
8196_LT_EOF
8197	;;
8198	*)
8199	  # For security reasons, it is highly recommended that you always
8200	  # use absolute paths for naming shared libraries, and exclude the
8201	  # DT_RUNPATH tag from executables and libraries.  But doing so
8202	  # requires that you compile everything twice, which is a pain.
8203	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8204	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8205	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8206	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8207	  else
8208	    ld_shlibs=no
8209	  fi
8210	;;
8211      esac
8212      ;;
8213
8214    sunos4*)
8215      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8216      wlarc=
8217      hardcode_direct=yes
8218      hardcode_shlibpath_var=no
8219      ;;
8220
8221    *)
8222      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8223	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8224	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8225      else
8226	ld_shlibs=no
8227      fi
8228      ;;
8229    esac
8230
8231    if test "$ld_shlibs" = no; then
8232      runpath_var=
8233      hardcode_libdir_flag_spec=
8234      export_dynamic_flag_spec=
8235      whole_archive_flag_spec=
8236    fi
8237  else
8238    # PORTME fill in a description of your system's linker (not GNU ld)
8239    case $host_os in
8240    aix3*)
8241      allow_undefined_flag=unsupported
8242      always_export_symbols=yes
8243      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'
8244      # Note: this linker hardcodes the directories in LIBPATH if there
8245      # are no directories specified by -L.
8246      hardcode_minus_L=yes
8247      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8248	# Neither direct hardcoding nor static linking is supported with a
8249	# broken collect2.
8250	hardcode_direct=unsupported
8251      fi
8252      ;;
8253
8254    aix[4-9]*)
8255      if test "$host_cpu" = ia64; then
8256	# On IA64, the linker does run time linking by default, so we don't
8257	# have to do anything special.
8258	aix_use_runtimelinking=no
8259	exp_sym_flag='-Bexport'
8260	no_entry_flag=""
8261      else
8262	# If we're using GNU nm, then we don't want the "-C" option.
8263	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8264	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8265	  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'
8266	else
8267	  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'
8268	fi
8269	aix_use_runtimelinking=no
8270
8271	# Test if we are trying to use run time linking or normal
8272	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8273	# need to do runtime linking.
8274	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8275	  for ld_flag in $LDFLAGS; do
8276	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8277	    aix_use_runtimelinking=yes
8278	    break
8279	  fi
8280	  done
8281	  ;;
8282	esac
8283
8284	exp_sym_flag='-bexport'
8285	no_entry_flag='-bnoentry'
8286      fi
8287
8288      # When large executables or shared objects are built, AIX ld can
8289      # have problems creating the table of contents.  If linking a library
8290      # or program results in "error TOC overflow" add -mminimal-toc to
8291      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8292      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8293
8294      archive_cmds=''
8295      hardcode_direct=yes
8296      hardcode_direct_absolute=yes
8297      hardcode_libdir_separator=':'
8298      link_all_deplibs=yes
8299      file_list_spec='${wl}-f,'
8300
8301      if test "$GCC" = yes; then
8302	case $host_os in aix4.[012]|aix4.[012].*)
8303	# We only want to do this on AIX 4.2 and lower, the check
8304	# below for broken collect2 doesn't work under 4.3+
8305	  collect2name=`${CC} -print-prog-name=collect2`
8306	  if test -f "$collect2name" &&
8307	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8308	  then
8309	  # We have reworked collect2
8310	  :
8311	  else
8312	  # We have old collect2
8313	  hardcode_direct=unsupported
8314	  # It fails to find uninstalled libraries when the uninstalled
8315	  # path is not listed in the libpath.  Setting hardcode_minus_L
8316	  # to unsupported forces relinking
8317	  hardcode_minus_L=yes
8318	  hardcode_libdir_flag_spec='-L$libdir'
8319	  hardcode_libdir_separator=
8320	  fi
8321	  ;;
8322	esac
8323	shared_flag='-shared'
8324	if test "$aix_use_runtimelinking" = yes; then
8325	  shared_flag="$shared_flag "'${wl}-G'
8326	fi
8327	link_all_deplibs=no
8328      else
8329	# not using gcc
8330	if test "$host_cpu" = ia64; then
8331	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8332	# chokes on -Wl,-G. The following line is correct:
8333	  shared_flag='-G'
8334	else
8335	  if test "$aix_use_runtimelinking" = yes; then
8336	    shared_flag='${wl}-G'
8337	  else
8338	    shared_flag='${wl}-bM:SRE'
8339	  fi
8340	fi
8341      fi
8342
8343      export_dynamic_flag_spec='${wl}-bexpall'
8344      # It seems that -bexpall does not export symbols beginning with
8345      # underscore (_), so it is better to generate a list of symbols to export.
8346      always_export_symbols=yes
8347      if test "$aix_use_runtimelinking" = yes; then
8348	# Warning - without using the other runtime loading flags (-brtl),
8349	# -berok will link without error, but may produce a broken library.
8350	allow_undefined_flag='-berok'
8351        # Determine the default libpath from the value encoded in an
8352        # empty executable.
8353        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354/* end confdefs.h.  */
8355
8356int
8357main ()
8358{
8359
8360  ;
8361  return 0;
8362}
8363_ACEOF
8364if ac_fn_c_try_link "$LINENO"; then :
8365
8366lt_aix_libpath_sed='
8367    /Import File Strings/,/^$/ {
8368	/^0/ {
8369	    s/^0  *\(.*\)$/\1/
8370	    p
8371	}
8372    }'
8373aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8374# Check for a 64-bit object if we didn't find anything.
8375if test -z "$aix_libpath"; then
8376  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8377fi
8378fi
8379rm -f core conftest.err conftest.$ac_objext \
8380    conftest$ac_exeext conftest.$ac_ext
8381if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8382
8383        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8384        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8385      else
8386	if test "$host_cpu" = ia64; then
8387	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8388	  allow_undefined_flag="-z nodefs"
8389	  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"
8390	else
8391	 # Determine the default libpath from the value encoded in an
8392	 # empty executable.
8393	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h.  */
8395
8396int
8397main ()
8398{
8399
8400  ;
8401  return 0;
8402}
8403_ACEOF
8404if ac_fn_c_try_link "$LINENO"; then :
8405
8406lt_aix_libpath_sed='
8407    /Import File Strings/,/^$/ {
8408	/^0/ {
8409	    s/^0  *\(.*\)$/\1/
8410	    p
8411	}
8412    }'
8413aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8414# Check for a 64-bit object if we didn't find anything.
8415if test -z "$aix_libpath"; then
8416  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8417fi
8418fi
8419rm -f core conftest.err conftest.$ac_objext \
8420    conftest$ac_exeext conftest.$ac_ext
8421if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8422
8423	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8424	  # Warning - without using the other run time loading flags,
8425	  # -berok will link without error, but may produce a broken library.
8426	  no_undefined_flag=' ${wl}-bernotok'
8427	  allow_undefined_flag=' ${wl}-berok'
8428	  # Exported symbols can be pulled into shared objects from archives
8429	  whole_archive_flag_spec='$convenience'
8430	  archive_cmds_need_lc=yes
8431	  # This is similar to how AIX traditionally builds its shared libraries.
8432	  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'
8433	fi
8434      fi
8435      ;;
8436
8437    amigaos*)
8438      case $host_cpu in
8439      powerpc)
8440            # see comment about AmigaOS4 .so support
8441            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8442            archive_expsym_cmds=''
8443        ;;
8444      m68k)
8445            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)'
8446            hardcode_libdir_flag_spec='-L$libdir'
8447            hardcode_minus_L=yes
8448        ;;
8449      esac
8450      ;;
8451
8452    bsdi[45]*)
8453      export_dynamic_flag_spec=-rdynamic
8454      ;;
8455
8456    cygwin* | mingw* | pw32* | cegcc*)
8457      # When not using gcc, we currently assume that we are using
8458      # Microsoft Visual C++.
8459      # hardcode_libdir_flag_spec is actually meaningless, as there is
8460      # no search path for DLLs.
8461      hardcode_libdir_flag_spec=' '
8462      allow_undefined_flag=unsupported
8463      # Tell ltmain to make .lib files, not .a files.
8464      libext=lib
8465      # Tell ltmain to make .dll files, not .so files.
8466      shrext_cmds=".dll"
8467      # FIXME: Setting linknames here is a bad hack.
8468      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8469      # The linker will automatically build a .lib file if we build a DLL.
8470      old_archive_from_new_cmds='true'
8471      # FIXME: Should let the user specify the lib program.
8472      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8473      fix_srcfile_path='`cygpath -w "$srcfile"`'
8474      enable_shared_with_static_runtimes=yes
8475      ;;
8476
8477    darwin* | rhapsody*)
8478
8479
8480  archive_cmds_need_lc=no
8481  hardcode_direct=no
8482  hardcode_automatic=yes
8483  hardcode_shlibpath_var=unsupported
8484  whole_archive_flag_spec=''
8485  link_all_deplibs=yes
8486  allow_undefined_flag="$_lt_dar_allow_undefined"
8487  case $cc_basename in
8488     ifort*) _lt_dar_can_shared=yes ;;
8489     *) _lt_dar_can_shared=$GCC ;;
8490  esac
8491  if test "$_lt_dar_can_shared" = "yes"; then
8492    output_verbose_link_cmd=echo
8493    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8494    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8495    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}"
8496    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}"
8497
8498  else
8499  ld_shlibs=no
8500  fi
8501
8502      ;;
8503
8504    dgux*)
8505      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8506      hardcode_libdir_flag_spec='-L$libdir'
8507      hardcode_shlibpath_var=no
8508      ;;
8509
8510    freebsd1*)
8511      ld_shlibs=no
8512      ;;
8513
8514    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8515    # support.  Future versions do this automatically, but an explicit c++rt0.o
8516    # does not break anything, and helps significantly (at the cost of a little
8517    # extra space).
8518    freebsd2.2*)
8519      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8520      hardcode_libdir_flag_spec='-R$libdir'
8521      hardcode_direct=yes
8522      hardcode_shlibpath_var=no
8523      ;;
8524
8525    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8526    freebsd2*)
8527      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8528      hardcode_direct=yes
8529      hardcode_minus_L=yes
8530      hardcode_shlibpath_var=no
8531      ;;
8532
8533    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8534    freebsd* | dragonfly*)
8535      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8536      hardcode_libdir_flag_spec='-R$libdir'
8537      hardcode_direct=yes
8538      hardcode_shlibpath_var=no
8539      ;;
8540
8541    hpux9*)
8542      if test "$GCC" = yes; then
8543	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'
8544      else
8545	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'
8546      fi
8547      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8548      hardcode_libdir_separator=:
8549      hardcode_direct=yes
8550
8551      # hardcode_minus_L: Not really in the search PATH,
8552      # but as the default location of the library.
8553      hardcode_minus_L=yes
8554      export_dynamic_flag_spec='${wl}-E'
8555      ;;
8556
8557    hpux10*)
8558      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8559	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8560      else
8561	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8562      fi
8563      if test "$with_gnu_ld" = no; then
8564	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8565	hardcode_libdir_flag_spec_ld='+b $libdir'
8566	hardcode_libdir_separator=:
8567	hardcode_direct=yes
8568	hardcode_direct_absolute=yes
8569	export_dynamic_flag_spec='${wl}-E'
8570	# hardcode_minus_L: Not really in the search PATH,
8571	# but as the default location of the library.
8572	hardcode_minus_L=yes
8573      fi
8574      ;;
8575
8576    hpux11*)
8577      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8578	case $host_cpu in
8579	hppa*64*)
8580	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8581	  ;;
8582	ia64*)
8583	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8584	  ;;
8585	*)
8586	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8587	  ;;
8588	esac
8589      else
8590	case $host_cpu in
8591	hppa*64*)
8592	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8593	  ;;
8594	ia64*)
8595	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8596	  ;;
8597	*)
8598	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8599	  ;;
8600	esac
8601      fi
8602      if test "$with_gnu_ld" = no; then
8603	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8604	hardcode_libdir_separator=:
8605
8606	case $host_cpu in
8607	hppa*64*|ia64*)
8608	  hardcode_direct=no
8609	  hardcode_shlibpath_var=no
8610	  ;;
8611	*)
8612	  hardcode_direct=yes
8613	  hardcode_direct_absolute=yes
8614	  export_dynamic_flag_spec='${wl}-E'
8615
8616	  # hardcode_minus_L: Not really in the search PATH,
8617	  # but as the default location of the library.
8618	  hardcode_minus_L=yes
8619	  ;;
8620	esac
8621      fi
8622      ;;
8623
8624    irix5* | irix6* | nonstopux*)
8625      if test "$GCC" = yes; then
8626	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8627	# Try to use the -exported_symbol ld option, if it does not
8628	# work, assume that -exports_file does not work either and
8629	# implicitly export all symbols.
8630        save_LDFLAGS="$LDFLAGS"
8631        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8632        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633/* end confdefs.h.  */
8634int foo(void) {}
8635_ACEOF
8636if ac_fn_c_try_link "$LINENO"; then :
8637  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8638
8639fi
8640rm -f core conftest.err conftest.$ac_objext \
8641    conftest$ac_exeext conftest.$ac_ext
8642        LDFLAGS="$save_LDFLAGS"
8643      else
8644	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8645	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8646      fi
8647      archive_cmds_need_lc='no'
8648      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8649      hardcode_libdir_separator=:
8650      inherit_rpath=yes
8651      link_all_deplibs=yes
8652      ;;
8653
8654    netbsd* | netbsdelf*-gnu)
8655      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8656	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8657      else
8658	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8659      fi
8660      hardcode_libdir_flag_spec='-R$libdir'
8661      hardcode_direct=yes
8662      hardcode_shlibpath_var=no
8663      ;;
8664
8665    newsos6)
8666      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8667      hardcode_direct=yes
8668      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8669      hardcode_libdir_separator=:
8670      hardcode_shlibpath_var=no
8671      ;;
8672
8673    *nto* | *qnx*)
8674      ;;
8675
8676    openbsd*)
8677      if test -f /usr/libexec/ld.so; then
8678	hardcode_direct=yes
8679	hardcode_shlibpath_var=no
8680	hardcode_direct_absolute=yes
8681	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8682	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8683	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8684	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8685	  export_dynamic_flag_spec='${wl}-E'
8686	else
8687	  case $host_os in
8688	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8689	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8690	     hardcode_libdir_flag_spec='-R$libdir'
8691	     ;;
8692	   *)
8693	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8694	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8695	     ;;
8696	  esac
8697	fi
8698      else
8699	ld_shlibs=no
8700      fi
8701      ;;
8702
8703    os2*)
8704      hardcode_libdir_flag_spec='-L$libdir'
8705      hardcode_minus_L=yes
8706      allow_undefined_flag=unsupported
8707      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'
8708      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8709      ;;
8710
8711    osf3*)
8712      if test "$GCC" = yes; then
8713	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8714	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8715      else
8716	allow_undefined_flag=' -expect_unresolved \*'
8717	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8718      fi
8719      archive_cmds_need_lc='no'
8720      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8721      hardcode_libdir_separator=:
8722      ;;
8723
8724    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8725      if test "$GCC" = yes; then
8726	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8727	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8728	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8729      else
8730	allow_undefined_flag=' -expect_unresolved \*'
8731	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8732	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8733	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8734
8735	# Both c and cxx compiler support -rpath directly
8736	hardcode_libdir_flag_spec='-rpath $libdir'
8737      fi
8738      archive_cmds_need_lc='no'
8739      hardcode_libdir_separator=:
8740      ;;
8741
8742    solaris*)
8743      no_undefined_flag=' -z defs'
8744      if test "$GCC" = yes; then
8745	wlarc='${wl}'
8746	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8747	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8748	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8749      else
8750	case `$CC -V 2>&1` in
8751	*"Compilers 5.0"*)
8752	  wlarc=''
8753	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8755	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8756	  ;;
8757	*)
8758	  wlarc='${wl}'
8759	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8760	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8761	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8762	  ;;
8763	esac
8764      fi
8765      hardcode_libdir_flag_spec='-R$libdir'
8766      hardcode_shlibpath_var=no
8767      case $host_os in
8768      solaris2.[0-5] | solaris2.[0-5].*) ;;
8769      *)
8770	# The compiler driver will combine and reorder linker options,
8771	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8772	# but is careful enough not to reorder.
8773	# Supported since Solaris 2.6 (maybe 2.5.1?)
8774	if test "$GCC" = yes; then
8775	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8776	else
8777	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8778	fi
8779	;;
8780      esac
8781      link_all_deplibs=yes
8782      ;;
8783
8784    sunos4*)
8785      if test "x$host_vendor" = xsequent; then
8786	# Use $CC to link under sequent, because it throws in some extra .o
8787	# files that make .init and .fini sections work.
8788	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8789      else
8790	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8791      fi
8792      hardcode_libdir_flag_spec='-L$libdir'
8793      hardcode_direct=yes
8794      hardcode_minus_L=yes
8795      hardcode_shlibpath_var=no
8796      ;;
8797
8798    sysv4)
8799      case $host_vendor in
8800	sni)
8801	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802	  hardcode_direct=yes # is this really true???
8803	;;
8804	siemens)
8805	  ## LD is ld it makes a PLAMLIB
8806	  ## CC just makes a GrossModule.
8807	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8808	  reload_cmds='$CC -r -o $output$reload_objs'
8809	  hardcode_direct=no
8810        ;;
8811	motorola)
8812	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8813	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8814	;;
8815      esac
8816      runpath_var='LD_RUN_PATH'
8817      hardcode_shlibpath_var=no
8818      ;;
8819
8820    sysv4.3*)
8821      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822      hardcode_shlibpath_var=no
8823      export_dynamic_flag_spec='-Bexport'
8824      ;;
8825
8826    sysv4*MP*)
8827      if test -d /usr/nec; then
8828	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8829	hardcode_shlibpath_var=no
8830	runpath_var=LD_RUN_PATH
8831	hardcode_runpath_var=yes
8832	ld_shlibs=yes
8833      fi
8834      ;;
8835
8836    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8837      no_undefined_flag='${wl}-z,text'
8838      archive_cmds_need_lc=no
8839      hardcode_shlibpath_var=no
8840      runpath_var='LD_RUN_PATH'
8841
8842      if test "$GCC" = yes; then
8843	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8844	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8845      else
8846	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8848      fi
8849      ;;
8850
8851    sysv5* | sco3.2v5* | sco5v6*)
8852      # Note: We can NOT use -z defs as we might desire, because we do not
8853      # link with -lc, and that would cause any symbols used from libc to
8854      # always be unresolved, which means just about no library would
8855      # ever link correctly.  If we're not using GNU ld we use -z text
8856      # though, which does catch some bad symbols but isn't as heavy-handed
8857      # as -z defs.
8858      no_undefined_flag='${wl}-z,text'
8859      allow_undefined_flag='${wl}-z,nodefs'
8860      archive_cmds_need_lc=no
8861      hardcode_shlibpath_var=no
8862      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8863      hardcode_libdir_separator=':'
8864      link_all_deplibs=yes
8865      export_dynamic_flag_spec='${wl}-Bexport'
8866      runpath_var='LD_RUN_PATH'
8867
8868      if test "$GCC" = yes; then
8869	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8870	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8871      else
8872	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8873	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8874      fi
8875      ;;
8876
8877    uts4*)
8878      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8879      hardcode_libdir_flag_spec='-L$libdir'
8880      hardcode_shlibpath_var=no
8881      ;;
8882
8883    *)
8884      ld_shlibs=no
8885      ;;
8886    esac
8887
8888    if test x$host_vendor = xsni; then
8889      case $host in
8890      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8891	export_dynamic_flag_spec='${wl}-Blargedynsym'
8892	;;
8893      esac
8894    fi
8895  fi
8896
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8898$as_echo "$ld_shlibs" >&6; }
8899test "$ld_shlibs" = no && can_build_shared=no
8900
8901with_gnu_ld=$with_gnu_ld
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917#
8918# Do we need to explicitly link libc?
8919#
8920case "x$archive_cmds_need_lc" in
8921x|xyes)
8922  # Assume -lc should be added
8923  archive_cmds_need_lc=yes
8924
8925  if test "$enable_shared" = yes && test "$GCC" = yes; then
8926    case $archive_cmds in
8927    *'~'*)
8928      # FIXME: we may have to deal with multi-command sequences.
8929      ;;
8930    '$CC '*)
8931      # Test whether the compiler implicitly links with -lc since on some
8932      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8933      # to ld, don't add -lc before -lgcc.
8934      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8935$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8936      $RM conftest*
8937      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8938
8939      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8940  (eval $ac_compile) 2>&5
8941  ac_status=$?
8942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8943  test $ac_status = 0; } 2>conftest.err; then
8944        soname=conftest
8945        lib=conftest
8946        libobjs=conftest.$ac_objext
8947        deplibs=
8948        wl=$lt_prog_compiler_wl
8949	pic_flag=$lt_prog_compiler_pic
8950        compiler_flags=-v
8951        linker_flags=-v
8952        verstring=
8953        output_objdir=.
8954        libname=conftest
8955        lt_save_allow_undefined_flag=$allow_undefined_flag
8956        allow_undefined_flag=
8957        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8958  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8959  ac_status=$?
8960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8961  test $ac_status = 0; }
8962        then
8963	  archive_cmds_need_lc=no
8964        else
8965	  archive_cmds_need_lc=yes
8966        fi
8967        allow_undefined_flag=$lt_save_allow_undefined_flag
8968      else
8969        cat conftest.err 1>&5
8970      fi
8971      $RM conftest*
8972      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8973$as_echo "$archive_cmds_need_lc" >&6; }
8974      ;;
8975    esac
8976  fi
8977  ;;
8978esac
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9137$as_echo_n "checking dynamic linker characteristics... " >&6; }
9138
9139if test "$GCC" = yes; then
9140  case $host_os in
9141    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9142    *) lt_awk_arg="/^libraries:/" ;;
9143  esac
9144  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9145  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9146    # if the path contains ";" then we assume it to be the separator
9147    # otherwise default to the standard path separator (i.e. ":") - it is
9148    # assumed that no part of a normal pathname contains ";" but that should
9149    # okay in the real world where ";" in dirpaths is itself problematic.
9150    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9151  else
9152    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9153  fi
9154  # Ok, now we have the path, separated by spaces, we can step through it
9155  # and add multilib dir if necessary.
9156  lt_tmp_lt_search_path_spec=
9157  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9158  for lt_sys_path in $lt_search_path_spec; do
9159    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9160      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9161    else
9162      test -d "$lt_sys_path" && \
9163	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9164    fi
9165  done
9166  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9167BEGIN {RS=" "; FS="/|\n";} {
9168  lt_foo="";
9169  lt_count=0;
9170  for (lt_i = NF; lt_i > 0; lt_i--) {
9171    if ($lt_i != "" && $lt_i != ".") {
9172      if ($lt_i == "..") {
9173        lt_count++;
9174      } else {
9175        if (lt_count == 0) {
9176          lt_foo="/" $lt_i lt_foo;
9177        } else {
9178          lt_count--;
9179        }
9180      }
9181    }
9182  }
9183  if (lt_foo != "") { lt_freq[lt_foo]++; }
9184  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9185}'`
9186  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9187else
9188  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9189fi
9190library_names_spec=
9191libname_spec='lib$name'
9192soname_spec=
9193shrext_cmds=".so"
9194postinstall_cmds=
9195postuninstall_cmds=
9196finish_cmds=
9197finish_eval=
9198shlibpath_var=
9199shlibpath_overrides_runpath=unknown
9200version_type=none
9201dynamic_linker="$host_os ld.so"
9202sys_lib_dlsearch_path_spec="/lib /usr/lib"
9203need_lib_prefix=unknown
9204hardcode_into_libs=no
9205
9206# when you set need_version to no, make sure it does not cause -set_version
9207# flags to be left without arguments
9208need_version=unknown
9209
9210case $host_os in
9211aix3*)
9212  version_type=linux
9213  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9214  shlibpath_var=LIBPATH
9215
9216  # AIX 3 has no versioning support, so we append a major version to the name.
9217  soname_spec='${libname}${release}${shared_ext}$major'
9218  ;;
9219
9220aix[4-9]*)
9221  version_type=linux
9222  need_lib_prefix=no
9223  need_version=no
9224  hardcode_into_libs=yes
9225  if test "$host_cpu" = ia64; then
9226    # AIX 5 supports IA64
9227    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9228    shlibpath_var=LD_LIBRARY_PATH
9229  else
9230    # With GCC up to 2.95.x, collect2 would create an import file
9231    # for dependence libraries.  The import file would start with
9232    # the line `#! .'.  This would cause the generated library to
9233    # depend on `.', always an invalid library.  This was fixed in
9234    # development snapshots of GCC prior to 3.0.
9235    case $host_os in
9236      aix4 | aix4.[01] | aix4.[01].*)
9237      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9238	   echo ' yes '
9239	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9240	:
9241      else
9242	can_build_shared=no
9243      fi
9244      ;;
9245    esac
9246    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9247    # soname into executable. Probably we can add versioning support to
9248    # collect2, so additional links can be useful in future.
9249    if test "$aix_use_runtimelinking" = yes; then
9250      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9251      # instead of lib<name>.a to let people know that these are not
9252      # typical AIX shared libraries.
9253      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9254    else
9255      # We preserve .a as extension for shared libraries through AIX4.2
9256      # and later when we are not doing run time linking.
9257      library_names_spec='${libname}${release}.a $libname.a'
9258      soname_spec='${libname}${release}${shared_ext}$major'
9259    fi
9260    shlibpath_var=LIBPATH
9261  fi
9262  ;;
9263
9264amigaos*)
9265  case $host_cpu in
9266  powerpc)
9267    # Since July 2007 AmigaOS4 officially supports .so libraries.
9268    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9269    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270    ;;
9271  m68k)
9272    library_names_spec='$libname.ixlibrary $libname.a'
9273    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9274    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'
9275    ;;
9276  esac
9277  ;;
9278
9279beos*)
9280  library_names_spec='${libname}${shared_ext}'
9281  dynamic_linker="$host_os ld.so"
9282  shlibpath_var=LIBRARY_PATH
9283  ;;
9284
9285bsdi[45]*)
9286  version_type=linux
9287  need_version=no
9288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289  soname_spec='${libname}${release}${shared_ext}$major'
9290  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9291  shlibpath_var=LD_LIBRARY_PATH
9292  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9293  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9294  # the default ld.so.conf also contains /usr/contrib/lib and
9295  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9296  # libtool to hard-code these into programs
9297  ;;
9298
9299cygwin* | mingw* | pw32* | cegcc*)
9300  version_type=windows
9301  shrext_cmds=".dll"
9302  need_version=no
9303  need_lib_prefix=no
9304
9305  case $GCC,$host_os in
9306  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9307    library_names_spec='$libname.dll.a'
9308    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9309    postinstall_cmds='base_file=`basename \${file}`~
9310      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9311      dldir=$destdir/`dirname \$dlpath`~
9312      test -d \$dldir || mkdir -p \$dldir~
9313      $install_prog $dir/$dlname \$dldir/$dlname~
9314      chmod a+x \$dldir/$dlname~
9315      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9316        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9317      fi'
9318    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9319      dlpath=$dir/\$dldll~
9320       $RM \$dlpath'
9321    shlibpath_overrides_runpath=yes
9322
9323    case $host_os in
9324    cygwin*)
9325      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9326      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9327      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9328      ;;
9329    mingw* | cegcc*)
9330      # MinGW DLLs use traditional 'lib' prefix
9331      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9332      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9333      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9334        # It is most probably a Windows format PATH printed by
9335        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9336        # path with ; separators, and with drive letters. We can handle the
9337        # drive letters (cygwin fileutils understands them), so leave them,
9338        # especially as we might pass files found there to a mingw objdump,
9339        # which wouldn't understand a cygwinified path. Ahh.
9340        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9341      else
9342        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9343      fi
9344      ;;
9345    pw32*)
9346      # pw32 DLLs use 'pw' prefix rather than 'lib'
9347      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9348      ;;
9349    esac
9350    ;;
9351
9352  *)
9353    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9354    ;;
9355  esac
9356  dynamic_linker='Win32 ld.exe'
9357  # FIXME: first we should search . and the directory the executable is in
9358  shlibpath_var=PATH
9359  ;;
9360
9361darwin* | rhapsody*)
9362  dynamic_linker="$host_os dyld"
9363  version_type=darwin
9364  need_lib_prefix=no
9365  need_version=no
9366  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9367  soname_spec='${libname}${release}${major}$shared_ext'
9368  shlibpath_overrides_runpath=yes
9369  shlibpath_var=DYLD_LIBRARY_PATH
9370  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9371
9372  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9373  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9374  ;;
9375
9376dgux*)
9377  version_type=linux
9378  need_lib_prefix=no
9379  need_version=no
9380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9381  soname_spec='${libname}${release}${shared_ext}$major'
9382  shlibpath_var=LD_LIBRARY_PATH
9383  ;;
9384
9385freebsd1*)
9386  dynamic_linker=no
9387  ;;
9388
9389freebsd* | dragonfly*)
9390  # DragonFly does not have aout.  When/if they implement a new
9391  # versioning mechanism, adjust this.
9392  if test -x /usr/bin/objformat; then
9393    objformat=`/usr/bin/objformat`
9394  else
9395    case $host_os in
9396    freebsd[123]*) objformat=aout ;;
9397    *) objformat=elf ;;
9398    esac
9399  fi
9400  version_type=freebsd-$objformat
9401  case $version_type in
9402    freebsd-elf*)
9403      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9404      need_version=no
9405      need_lib_prefix=no
9406      ;;
9407    freebsd-*)
9408      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9409      need_version=yes
9410      ;;
9411  esac
9412  shlibpath_var=LD_LIBRARY_PATH
9413  case $host_os in
9414  freebsd2*)
9415    shlibpath_overrides_runpath=yes
9416    ;;
9417  freebsd3.[01]* | freebsdelf3.[01]*)
9418    shlibpath_overrides_runpath=yes
9419    hardcode_into_libs=yes
9420    ;;
9421  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9422  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9423    shlibpath_overrides_runpath=no
9424    hardcode_into_libs=yes
9425    ;;
9426  *) # from 4.6 on, and DragonFly
9427    shlibpath_overrides_runpath=yes
9428    hardcode_into_libs=yes
9429    ;;
9430  esac
9431  ;;
9432
9433gnu*)
9434  version_type=linux
9435  need_lib_prefix=no
9436  need_version=no
9437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9438  soname_spec='${libname}${release}${shared_ext}$major'
9439  shlibpath_var=LD_LIBRARY_PATH
9440  hardcode_into_libs=yes
9441  ;;
9442
9443hpux9* | hpux10* | hpux11*)
9444  # Give a soname corresponding to the major version so that dld.sl refuses to
9445  # link against other versions.
9446  version_type=sunos
9447  need_lib_prefix=no
9448  need_version=no
9449  case $host_cpu in
9450  ia64*)
9451    shrext_cmds='.so'
9452    hardcode_into_libs=yes
9453    dynamic_linker="$host_os dld.so"
9454    shlibpath_var=LD_LIBRARY_PATH
9455    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9456    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457    soname_spec='${libname}${release}${shared_ext}$major'
9458    if test "X$HPUX_IA64_MODE" = X32; then
9459      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9460    else
9461      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9462    fi
9463    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9464    ;;
9465  hppa*64*)
9466    shrext_cmds='.sl'
9467    hardcode_into_libs=yes
9468    dynamic_linker="$host_os dld.sl"
9469    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9470    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9471    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472    soname_spec='${libname}${release}${shared_ext}$major'
9473    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9474    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9475    ;;
9476  *)
9477    shrext_cmds='.sl'
9478    dynamic_linker="$host_os dld.sl"
9479    shlibpath_var=SHLIB_PATH
9480    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9481    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482    soname_spec='${libname}${release}${shared_ext}$major'
9483    ;;
9484  esac
9485  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9486  postinstall_cmds='chmod 555 $lib'
9487  ;;
9488
9489interix[3-9]*)
9490  version_type=linux
9491  need_lib_prefix=no
9492  need_version=no
9493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9494  soname_spec='${libname}${release}${shared_ext}$major'
9495  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9496  shlibpath_var=LD_LIBRARY_PATH
9497  shlibpath_overrides_runpath=no
9498  hardcode_into_libs=yes
9499  ;;
9500
9501irix5* | irix6* | nonstopux*)
9502  case $host_os in
9503    nonstopux*) version_type=nonstopux ;;
9504    *)
9505	if test "$lt_cv_prog_gnu_ld" = yes; then
9506		version_type=linux
9507	else
9508		version_type=irix
9509	fi ;;
9510  esac
9511  need_lib_prefix=no
9512  need_version=no
9513  soname_spec='${libname}${release}${shared_ext}$major'
9514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9515  case $host_os in
9516  irix5* | nonstopux*)
9517    libsuff= shlibsuff=
9518    ;;
9519  *)
9520    case $LD in # libtool.m4 will add one of these switches to LD
9521    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9522      libsuff= shlibsuff= libmagic=32-bit;;
9523    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9524      libsuff=32 shlibsuff=N32 libmagic=N32;;
9525    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9526      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9527    *) libsuff= shlibsuff= libmagic=never-match;;
9528    esac
9529    ;;
9530  esac
9531  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9532  shlibpath_overrides_runpath=no
9533  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9534  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9535  hardcode_into_libs=yes
9536  ;;
9537
9538# No shared lib support for Linux oldld, aout, or coff.
9539linux*oldld* | linux*aout* | linux*coff*)
9540  dynamic_linker=no
9541  ;;
9542
9543# This must be Linux ELF.
9544linux* | k*bsd*-gnu)
9545  version_type=linux
9546  need_lib_prefix=no
9547  need_version=no
9548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549  soname_spec='${libname}${release}${shared_ext}$major'
9550  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9551  shlibpath_var=LD_LIBRARY_PATH
9552  shlibpath_overrides_runpath=no
9553  # Some binutils ld are patched to set DT_RUNPATH
9554  save_LDFLAGS=$LDFLAGS
9555  save_libdir=$libdir
9556  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9557       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559/* end confdefs.h.  */
9560
9561int
9562main ()
9563{
9564
9565  ;
9566  return 0;
9567}
9568_ACEOF
9569if ac_fn_c_try_link "$LINENO"; then :
9570  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9571  shlibpath_overrides_runpath=yes
9572fi
9573fi
9574rm -f core conftest.err conftest.$ac_objext \
9575    conftest$ac_exeext conftest.$ac_ext
9576  LDFLAGS=$save_LDFLAGS
9577  libdir=$save_libdir
9578
9579  # This implies no fast_install, which is unacceptable.
9580  # Some rework will be needed to allow for fast_install
9581  # before this can be enabled.
9582  hardcode_into_libs=yes
9583
9584  # Append ld.so.conf contents to the search path
9585  if test -f /etc/ld.so.conf; then
9586    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' ' '`
9587    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9588  fi
9589
9590  # We used to test for /lib/ld.so.1 and disable shared libraries on
9591  # powerpc, because MkLinux only supported shared libraries with the
9592  # GNU dynamic linker.  Since this was broken with cross compilers,
9593  # most powerpc-linux boxes support dynamic linking these days and
9594  # people can always --disable-shared, the test was removed, and we
9595  # assume the GNU/Linux dynamic linker is in use.
9596  dynamic_linker='GNU/Linux ld.so'
9597  ;;
9598
9599netbsdelf*-gnu)
9600  version_type=linux
9601  need_lib_prefix=no
9602  need_version=no
9603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9604  soname_spec='${libname}${release}${shared_ext}$major'
9605  shlibpath_var=LD_LIBRARY_PATH
9606  shlibpath_overrides_runpath=no
9607  hardcode_into_libs=yes
9608  dynamic_linker='NetBSD ld.elf_so'
9609  ;;
9610
9611netbsd*)
9612  version_type=sunos
9613  need_lib_prefix=no
9614  need_version=no
9615  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9616    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9617    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9618    dynamic_linker='NetBSD (a.out) ld.so'
9619  else
9620    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9621    soname_spec='${libname}${release}${shared_ext}$major'
9622    dynamic_linker='NetBSD ld.elf_so'
9623  fi
9624  shlibpath_var=LD_LIBRARY_PATH
9625  shlibpath_overrides_runpath=yes
9626  hardcode_into_libs=yes
9627  ;;
9628
9629newsos6)
9630  version_type=linux
9631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  shlibpath_overrides_runpath=yes
9634  ;;
9635
9636*nto* | *qnx*)
9637  version_type=qnx
9638  need_lib_prefix=no
9639  need_version=no
9640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641  soname_spec='${libname}${release}${shared_ext}$major'
9642  shlibpath_var=LD_LIBRARY_PATH
9643  shlibpath_overrides_runpath=no
9644  hardcode_into_libs=yes
9645  dynamic_linker='ldqnx.so'
9646  ;;
9647
9648openbsd*)
9649  version_type=sunos
9650  sys_lib_dlsearch_path_spec="/usr/lib"
9651  need_lib_prefix=no
9652  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9653  case $host_os in
9654    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9655    *)				need_version=no  ;;
9656  esac
9657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9658  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9659  shlibpath_var=LD_LIBRARY_PATH
9660  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9661    case $host_os in
9662      openbsd2.[89] | openbsd2.[89].*)
9663	shlibpath_overrides_runpath=no
9664	;;
9665      *)
9666	shlibpath_overrides_runpath=yes
9667	;;
9668      esac
9669  else
9670    shlibpath_overrides_runpath=yes
9671  fi
9672  ;;
9673
9674os2*)
9675  libname_spec='$name'
9676  shrext_cmds=".dll"
9677  need_lib_prefix=no
9678  library_names_spec='$libname${shared_ext} $libname.a'
9679  dynamic_linker='OS/2 ld.exe'
9680  shlibpath_var=LIBPATH
9681  ;;
9682
9683osf3* | osf4* | osf5*)
9684  version_type=osf
9685  need_lib_prefix=no
9686  need_version=no
9687  soname_spec='${libname}${release}${shared_ext}$major'
9688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689  shlibpath_var=LD_LIBRARY_PATH
9690  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9691  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9692  ;;
9693
9694rdos*)
9695  dynamic_linker=no
9696  ;;
9697
9698solaris*)
9699  version_type=linux
9700  need_lib_prefix=no
9701  need_version=no
9702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703  soname_spec='${libname}${release}${shared_ext}$major'
9704  shlibpath_var=LD_LIBRARY_PATH
9705  shlibpath_overrides_runpath=yes
9706  hardcode_into_libs=yes
9707  # ldd complains unless libraries are executable
9708  postinstall_cmds='chmod +x $lib'
9709  ;;
9710
9711sunos4*)
9712  version_type=sunos
9713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9714  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9715  shlibpath_var=LD_LIBRARY_PATH
9716  shlibpath_overrides_runpath=yes
9717  if test "$with_gnu_ld" = yes; then
9718    need_lib_prefix=no
9719  fi
9720  need_version=yes
9721  ;;
9722
9723sysv4 | sysv4.3*)
9724  version_type=linux
9725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726  soname_spec='${libname}${release}${shared_ext}$major'
9727  shlibpath_var=LD_LIBRARY_PATH
9728  case $host_vendor in
9729    sni)
9730      shlibpath_overrides_runpath=no
9731      need_lib_prefix=no
9732      runpath_var=LD_RUN_PATH
9733      ;;
9734    siemens)
9735      need_lib_prefix=no
9736      ;;
9737    motorola)
9738      need_lib_prefix=no
9739      need_version=no
9740      shlibpath_overrides_runpath=no
9741      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9742      ;;
9743  esac
9744  ;;
9745
9746sysv4*MP*)
9747  if test -d /usr/nec ;then
9748    version_type=linux
9749    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9750    soname_spec='$libname${shared_ext}.$major'
9751    shlibpath_var=LD_LIBRARY_PATH
9752  fi
9753  ;;
9754
9755sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9756  version_type=freebsd-elf
9757  need_lib_prefix=no
9758  need_version=no
9759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9760  soname_spec='${libname}${release}${shared_ext}$major'
9761  shlibpath_var=LD_LIBRARY_PATH
9762  shlibpath_overrides_runpath=yes
9763  hardcode_into_libs=yes
9764  if test "$with_gnu_ld" = yes; then
9765    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9766  else
9767    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9768    case $host_os in
9769      sco3.2v5*)
9770        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9771	;;
9772    esac
9773  fi
9774  sys_lib_dlsearch_path_spec='/usr/lib'
9775  ;;
9776
9777tpf*)
9778  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9779  version_type=linux
9780  need_lib_prefix=no
9781  need_version=no
9782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783  shlibpath_var=LD_LIBRARY_PATH
9784  shlibpath_overrides_runpath=no
9785  hardcode_into_libs=yes
9786  ;;
9787
9788uts4*)
9789  version_type=linux
9790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791  soname_spec='${libname}${release}${shared_ext}$major'
9792  shlibpath_var=LD_LIBRARY_PATH
9793  ;;
9794
9795*)
9796  dynamic_linker=no
9797  ;;
9798esac
9799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9800$as_echo "$dynamic_linker" >&6; }
9801test "$dynamic_linker" = no && can_build_shared=no
9802
9803variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9804if test "$GCC" = yes; then
9805  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9806fi
9807
9808if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9809  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9810fi
9811if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9812  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9813fi
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9902$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9903hardcode_action=
9904if test -n "$hardcode_libdir_flag_spec" ||
9905   test -n "$runpath_var" ||
9906   test "X$hardcode_automatic" = "Xyes" ; then
9907
9908  # We can hardcode non-existent directories.
9909  if test "$hardcode_direct" != no &&
9910     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9911     # have to relink, otherwise we might link with an installed library
9912     # when we should be linking with a yet-to-be-installed one
9913     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9914     test "$hardcode_minus_L" != no; then
9915    # Linking always hardcodes the temporary library directory.
9916    hardcode_action=relink
9917  else
9918    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9919    hardcode_action=immediate
9920  fi
9921else
9922  # We cannot hardcode anything, or else we can only hardcode existing
9923  # directories.
9924  hardcode_action=unsupported
9925fi
9926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9927$as_echo "$hardcode_action" >&6; }
9928
9929if test "$hardcode_action" = relink ||
9930   test "$inherit_rpath" = yes; then
9931  # Fast installation is not supported
9932  enable_fast_install=no
9933elif test "$shlibpath_overrides_runpath" = yes ||
9934     test "$enable_shared" = no; then
9935  # Fast installation is not necessary
9936  enable_fast_install=needless
9937fi
9938
9939
9940
9941
9942
9943
9944  if test "x$enable_dlopen" != xyes; then
9945  enable_dlopen=unknown
9946  enable_dlopen_self=unknown
9947  enable_dlopen_self_static=unknown
9948else
9949  lt_cv_dlopen=no
9950  lt_cv_dlopen_libs=
9951
9952  case $host_os in
9953  beos*)
9954    lt_cv_dlopen="load_add_on"
9955    lt_cv_dlopen_libs=
9956    lt_cv_dlopen_self=yes
9957    ;;
9958
9959  mingw* | pw32* | cegcc*)
9960    lt_cv_dlopen="LoadLibrary"
9961    lt_cv_dlopen_libs=
9962    ;;
9963
9964  cygwin*)
9965    lt_cv_dlopen="dlopen"
9966    lt_cv_dlopen_libs=
9967    ;;
9968
9969  darwin*)
9970  # if libdl is installed we need to link against it
9971    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9972$as_echo_n "checking for dlopen in -ldl... " >&6; }
9973if ${ac_cv_lib_dl_dlopen+:} false; then :
9974  $as_echo_n "(cached) " >&6
9975else
9976  ac_check_lib_save_LIBS=$LIBS
9977LIBS="-ldl  $LIBS"
9978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979/* end confdefs.h.  */
9980
9981/* Override any GCC internal prototype to avoid an error.
9982   Use char because int might match the return type of a GCC
9983   builtin and then its argument prototype would still apply.  */
9984#ifdef __cplusplus
9985extern "C"
9986#endif
9987char dlopen ();
9988int
9989main ()
9990{
9991return dlopen ();
9992  ;
9993  return 0;
9994}
9995_ACEOF
9996if ac_fn_c_try_link "$LINENO"; then :
9997  ac_cv_lib_dl_dlopen=yes
9998else
9999  ac_cv_lib_dl_dlopen=no
10000fi
10001rm -f core conftest.err conftest.$ac_objext \
10002    conftest$ac_exeext conftest.$ac_ext
10003LIBS=$ac_check_lib_save_LIBS
10004fi
10005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10006$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10007if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10008  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10009else
10010
10011    lt_cv_dlopen="dyld"
10012    lt_cv_dlopen_libs=
10013    lt_cv_dlopen_self=yes
10014
10015fi
10016
10017    ;;
10018
10019  *)
10020    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10021if test "x$ac_cv_func_shl_load" = xyes; then :
10022  lt_cv_dlopen="shl_load"
10023else
10024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10025$as_echo_n "checking for shl_load in -ldld... " >&6; }
10026if ${ac_cv_lib_dld_shl_load+:} false; then :
10027  $as_echo_n "(cached) " >&6
10028else
10029  ac_check_lib_save_LIBS=$LIBS
10030LIBS="-ldld  $LIBS"
10031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032/* end confdefs.h.  */
10033
10034/* Override any GCC internal prototype to avoid an error.
10035   Use char because int might match the return type of a GCC
10036   builtin and then its argument prototype would still apply.  */
10037#ifdef __cplusplus
10038extern "C"
10039#endif
10040char shl_load ();
10041int
10042main ()
10043{
10044return shl_load ();
10045  ;
10046  return 0;
10047}
10048_ACEOF
10049if ac_fn_c_try_link "$LINENO"; then :
10050  ac_cv_lib_dld_shl_load=yes
10051else
10052  ac_cv_lib_dld_shl_load=no
10053fi
10054rm -f core conftest.err conftest.$ac_objext \
10055    conftest$ac_exeext conftest.$ac_ext
10056LIBS=$ac_check_lib_save_LIBS
10057fi
10058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10059$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10060if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10061  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10062else
10063  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10064if test "x$ac_cv_func_dlopen" = xyes; then :
10065  lt_cv_dlopen="dlopen"
10066else
10067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10068$as_echo_n "checking for dlopen in -ldl... " >&6; }
10069if ${ac_cv_lib_dl_dlopen+:} false; then :
10070  $as_echo_n "(cached) " >&6
10071else
10072  ac_check_lib_save_LIBS=$LIBS
10073LIBS="-ldl  $LIBS"
10074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h.  */
10076
10077/* Override any GCC internal prototype to avoid an error.
10078   Use char because int might match the return type of a GCC
10079   builtin and then its argument prototype would still apply.  */
10080#ifdef __cplusplus
10081extern "C"
10082#endif
10083char dlopen ();
10084int
10085main ()
10086{
10087return dlopen ();
10088  ;
10089  return 0;
10090}
10091_ACEOF
10092if ac_fn_c_try_link "$LINENO"; then :
10093  ac_cv_lib_dl_dlopen=yes
10094else
10095  ac_cv_lib_dl_dlopen=no
10096fi
10097rm -f core conftest.err conftest.$ac_objext \
10098    conftest$ac_exeext conftest.$ac_ext
10099LIBS=$ac_check_lib_save_LIBS
10100fi
10101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10102$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10103if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10104  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10105else
10106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10107$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10108if ${ac_cv_lib_svld_dlopen+:} false; then :
10109  $as_echo_n "(cached) " >&6
10110else
10111  ac_check_lib_save_LIBS=$LIBS
10112LIBS="-lsvld  $LIBS"
10113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114/* end confdefs.h.  */
10115
10116/* Override any GCC internal prototype to avoid an error.
10117   Use char because int might match the return type of a GCC
10118   builtin and then its argument prototype would still apply.  */
10119#ifdef __cplusplus
10120extern "C"
10121#endif
10122char dlopen ();
10123int
10124main ()
10125{
10126return dlopen ();
10127  ;
10128  return 0;
10129}
10130_ACEOF
10131if ac_fn_c_try_link "$LINENO"; then :
10132  ac_cv_lib_svld_dlopen=yes
10133else
10134  ac_cv_lib_svld_dlopen=no
10135fi
10136rm -f core conftest.err conftest.$ac_objext \
10137    conftest$ac_exeext conftest.$ac_ext
10138LIBS=$ac_check_lib_save_LIBS
10139fi
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10141$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10142if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10143  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10144else
10145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10146$as_echo_n "checking for dld_link in -ldld... " >&6; }
10147if ${ac_cv_lib_dld_dld_link+:} false; then :
10148  $as_echo_n "(cached) " >&6
10149else
10150  ac_check_lib_save_LIBS=$LIBS
10151LIBS="-ldld  $LIBS"
10152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153/* end confdefs.h.  */
10154
10155/* Override any GCC internal prototype to avoid an error.
10156   Use char because int might match the return type of a GCC
10157   builtin and then its argument prototype would still apply.  */
10158#ifdef __cplusplus
10159extern "C"
10160#endif
10161char dld_link ();
10162int
10163main ()
10164{
10165return dld_link ();
10166  ;
10167  return 0;
10168}
10169_ACEOF
10170if ac_fn_c_try_link "$LINENO"; then :
10171  ac_cv_lib_dld_dld_link=yes
10172else
10173  ac_cv_lib_dld_dld_link=no
10174fi
10175rm -f core conftest.err conftest.$ac_objext \
10176    conftest$ac_exeext conftest.$ac_ext
10177LIBS=$ac_check_lib_save_LIBS
10178fi
10179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10180$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10181if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10182  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10183fi
10184
10185
10186fi
10187
10188
10189fi
10190
10191
10192fi
10193
10194
10195fi
10196
10197
10198fi
10199
10200    ;;
10201  esac
10202
10203  if test "x$lt_cv_dlopen" != xno; then
10204    enable_dlopen=yes
10205  else
10206    enable_dlopen=no
10207  fi
10208
10209  case $lt_cv_dlopen in
10210  dlopen)
10211    save_CPPFLAGS="$CPPFLAGS"
10212    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10213
10214    save_LDFLAGS="$LDFLAGS"
10215    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10216
10217    save_LIBS="$LIBS"
10218    LIBS="$lt_cv_dlopen_libs $LIBS"
10219
10220    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10221$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10222if ${lt_cv_dlopen_self+:} false; then :
10223  $as_echo_n "(cached) " >&6
10224else
10225  	  if test "$cross_compiling" = yes; then :
10226  lt_cv_dlopen_self=cross
10227else
10228  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10229  lt_status=$lt_dlunknown
10230  cat > conftest.$ac_ext <<_LT_EOF
10231#line 10231 "configure"
10232#include "confdefs.h"
10233
10234#if HAVE_DLFCN_H
10235#include <dlfcn.h>
10236#endif
10237
10238#include <stdio.h>
10239
10240#ifdef RTLD_GLOBAL
10241#  define LT_DLGLOBAL		RTLD_GLOBAL
10242#else
10243#  ifdef DL_GLOBAL
10244#    define LT_DLGLOBAL		DL_GLOBAL
10245#  else
10246#    define LT_DLGLOBAL		0
10247#  endif
10248#endif
10249
10250/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10251   find out it does not work in some platform. */
10252#ifndef LT_DLLAZY_OR_NOW
10253#  ifdef RTLD_LAZY
10254#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10255#  else
10256#    ifdef DL_LAZY
10257#      define LT_DLLAZY_OR_NOW		DL_LAZY
10258#    else
10259#      ifdef RTLD_NOW
10260#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10261#      else
10262#        ifdef DL_NOW
10263#          define LT_DLLAZY_OR_NOW	DL_NOW
10264#        else
10265#          define LT_DLLAZY_OR_NOW	0
10266#        endif
10267#      endif
10268#    endif
10269#  endif
10270#endif
10271
10272void fnord() { int i=42;}
10273int main ()
10274{
10275  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10276  int status = $lt_dlunknown;
10277
10278  if (self)
10279    {
10280      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10281      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10282      /* dlclose (self); */
10283    }
10284  else
10285    puts (dlerror ());
10286
10287  return status;
10288}
10289_LT_EOF
10290  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10291  (eval $ac_link) 2>&5
10292  ac_status=$?
10293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10294  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10295    (./conftest; exit; ) >&5 2>/dev/null
10296    lt_status=$?
10297    case x$lt_status in
10298      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10299      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10300      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10301    esac
10302  else :
10303    # compilation failed
10304    lt_cv_dlopen_self=no
10305  fi
10306fi
10307rm -fr conftest*
10308
10309
10310fi
10311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10312$as_echo "$lt_cv_dlopen_self" >&6; }
10313
10314    if test "x$lt_cv_dlopen_self" = xyes; then
10315      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10316      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10317$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10318if ${lt_cv_dlopen_self_static+:} false; then :
10319  $as_echo_n "(cached) " >&6
10320else
10321  	  if test "$cross_compiling" = yes; then :
10322  lt_cv_dlopen_self_static=cross
10323else
10324  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10325  lt_status=$lt_dlunknown
10326  cat > conftest.$ac_ext <<_LT_EOF
10327#line 10327 "configure"
10328#include "confdefs.h"
10329
10330#if HAVE_DLFCN_H
10331#include <dlfcn.h>
10332#endif
10333
10334#include <stdio.h>
10335
10336#ifdef RTLD_GLOBAL
10337#  define LT_DLGLOBAL		RTLD_GLOBAL
10338#else
10339#  ifdef DL_GLOBAL
10340#    define LT_DLGLOBAL		DL_GLOBAL
10341#  else
10342#    define LT_DLGLOBAL		0
10343#  endif
10344#endif
10345
10346/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10347   find out it does not work in some platform. */
10348#ifndef LT_DLLAZY_OR_NOW
10349#  ifdef RTLD_LAZY
10350#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10351#  else
10352#    ifdef DL_LAZY
10353#      define LT_DLLAZY_OR_NOW		DL_LAZY
10354#    else
10355#      ifdef RTLD_NOW
10356#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10357#      else
10358#        ifdef DL_NOW
10359#          define LT_DLLAZY_OR_NOW	DL_NOW
10360#        else
10361#          define LT_DLLAZY_OR_NOW	0
10362#        endif
10363#      endif
10364#    endif
10365#  endif
10366#endif
10367
10368void fnord() { int i=42;}
10369int main ()
10370{
10371  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10372  int status = $lt_dlunknown;
10373
10374  if (self)
10375    {
10376      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10377      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10378      /* dlclose (self); */
10379    }
10380  else
10381    puts (dlerror ());
10382
10383  return status;
10384}
10385_LT_EOF
10386  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10387  (eval $ac_link) 2>&5
10388  ac_status=$?
10389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10390  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10391    (./conftest; exit; ) >&5 2>/dev/null
10392    lt_status=$?
10393    case x$lt_status in
10394      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10395      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10396      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10397    esac
10398  else :
10399    # compilation failed
10400    lt_cv_dlopen_self_static=no
10401  fi
10402fi
10403rm -fr conftest*
10404
10405
10406fi
10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10408$as_echo "$lt_cv_dlopen_self_static" >&6; }
10409    fi
10410
10411    CPPFLAGS="$save_CPPFLAGS"
10412    LDFLAGS="$save_LDFLAGS"
10413    LIBS="$save_LIBS"
10414    ;;
10415  esac
10416
10417  case $lt_cv_dlopen_self in
10418  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10419  *) enable_dlopen_self=unknown ;;
10420  esac
10421
10422  case $lt_cv_dlopen_self_static in
10423  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10424  *) enable_dlopen_self_static=unknown ;;
10425  esac
10426fi
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444striplib=
10445old_striplib=
10446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10447$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10448if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10449  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10450  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10452$as_echo "yes" >&6; }
10453else
10454# FIXME - insert some real tests, host_os isn't really good enough
10455  case $host_os in
10456  darwin*)
10457    if test -n "$STRIP" ; then
10458      striplib="$STRIP -x"
10459      old_striplib="$STRIP -S"
10460      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10461$as_echo "yes" >&6; }
10462    else
10463      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464$as_echo "no" >&6; }
10465    fi
10466    ;;
10467  *)
10468    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469$as_echo "no" >&6; }
10470    ;;
10471  esac
10472fi
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485  # Report which library types will actually be built
10486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10487$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10489$as_echo "$can_build_shared" >&6; }
10490
10491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10492$as_echo_n "checking whether to build shared libraries... " >&6; }
10493  test "$can_build_shared" = "no" && enable_shared=no
10494
10495  # On AIX, shared libraries and static libraries use the same namespace, and
10496  # are all built from PIC.
10497  case $host_os in
10498  aix3*)
10499    test "$enable_shared" = yes && enable_static=no
10500    if test -n "$RANLIB"; then
10501      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10502      postinstall_cmds='$RANLIB $lib'
10503    fi
10504    ;;
10505
10506  aix[4-9]*)
10507    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10508      test "$enable_shared" = yes && enable_static=no
10509    fi
10510    ;;
10511  esac
10512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10513$as_echo "$enable_shared" >&6; }
10514
10515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10516$as_echo_n "checking whether to build static libraries... " >&6; }
10517  # Make sure either enable_shared or enable_static is yes.
10518  test "$enable_shared" = yes || enable_static=yes
10519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10520$as_echo "$enable_static" >&6; }
10521
10522
10523
10524
10525fi
10526ac_ext=c
10527ac_cpp='$CPP $CPPFLAGS'
10528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10530ac_compiler_gnu=$ac_cv_c_compiler_gnu
10531
10532CC="$lt_save_CC"
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546        ac_config_commands="$ac_config_commands libtool"
10547
10548
10549
10550
10551# Only expand once:
10552
10553
10554
10555if test x"$CONFIG_SHELL" = x; then
10556  CONFIG_SHELL="$SHELL"
10557fi
10558
10559ac_ext=c
10560ac_cpp='$CPP $CPPFLAGS'
10561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10563ac_compiler_gnu=$ac_cv_c_compiler_gnu
10564if test -n "$ac_tool_prefix"; then
10565  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10566set dummy ${ac_tool_prefix}gcc; ac_word=$2
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568$as_echo_n "checking for $ac_word... " >&6; }
10569if ${ac_cv_prog_CC+:} false; then :
10570  $as_echo_n "(cached) " >&6
10571else
10572  if test -n "$CC"; then
10573  ac_cv_prog_CC="$CC" # Let the user override the test.
10574else
10575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576for as_dir in $PATH
10577do
10578  IFS=$as_save_IFS
10579  test -z "$as_dir" && as_dir=.
10580    for ac_exec_ext in '' $ac_executable_extensions; do
10581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10582    ac_cv_prog_CC="${ac_tool_prefix}gcc"
10583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10584    break 2
10585  fi
10586done
10587  done
10588IFS=$as_save_IFS
10589
10590fi
10591fi
10592CC=$ac_cv_prog_CC
10593if test -n "$CC"; then
10594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10595$as_echo "$CC" >&6; }
10596else
10597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598$as_echo "no" >&6; }
10599fi
10600
10601
10602fi
10603if test -z "$ac_cv_prog_CC"; then
10604  ac_ct_CC=$CC
10605  # Extract the first word of "gcc", so it can be a program name with args.
10606set dummy gcc; ac_word=$2
10607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10608$as_echo_n "checking for $ac_word... " >&6; }
10609if ${ac_cv_prog_ac_ct_CC+:} false; then :
10610  $as_echo_n "(cached) " >&6
10611else
10612  if test -n "$ac_ct_CC"; then
10613  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10614else
10615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10616for as_dir in $PATH
10617do
10618  IFS=$as_save_IFS
10619  test -z "$as_dir" && as_dir=.
10620    for ac_exec_ext in '' $ac_executable_extensions; do
10621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10622    ac_cv_prog_ac_ct_CC="gcc"
10623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10624    break 2
10625  fi
10626done
10627  done
10628IFS=$as_save_IFS
10629
10630fi
10631fi
10632ac_ct_CC=$ac_cv_prog_ac_ct_CC
10633if test -n "$ac_ct_CC"; then
10634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10635$as_echo "$ac_ct_CC" >&6; }
10636else
10637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638$as_echo "no" >&6; }
10639fi
10640
10641  if test "x$ac_ct_CC" = x; then
10642    CC=""
10643  else
10644    case $cross_compiling:$ac_tool_warned in
10645yes:)
10646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10648ac_tool_warned=yes ;;
10649esac
10650    CC=$ac_ct_CC
10651  fi
10652else
10653  CC="$ac_cv_prog_CC"
10654fi
10655
10656if test -z "$CC"; then
10657          if test -n "$ac_tool_prefix"; then
10658    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10659set dummy ${ac_tool_prefix}cc; ac_word=$2
10660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661$as_echo_n "checking for $ac_word... " >&6; }
10662if ${ac_cv_prog_CC+:} false; then :
10663  $as_echo_n "(cached) " >&6
10664else
10665  if test -n "$CC"; then
10666  ac_cv_prog_CC="$CC" # Let the user override the test.
10667else
10668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669for as_dir in $PATH
10670do
10671  IFS=$as_save_IFS
10672  test -z "$as_dir" && as_dir=.
10673    for ac_exec_ext in '' $ac_executable_extensions; do
10674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10675    ac_cv_prog_CC="${ac_tool_prefix}cc"
10676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10677    break 2
10678  fi
10679done
10680  done
10681IFS=$as_save_IFS
10682
10683fi
10684fi
10685CC=$ac_cv_prog_CC
10686if test -n "$CC"; then
10687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10688$as_echo "$CC" >&6; }
10689else
10690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691$as_echo "no" >&6; }
10692fi
10693
10694
10695  fi
10696fi
10697if test -z "$CC"; then
10698  # Extract the first word of "cc", so it can be a program name with args.
10699set dummy cc; ac_word=$2
10700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701$as_echo_n "checking for $ac_word... " >&6; }
10702if ${ac_cv_prog_CC+:} false; then :
10703  $as_echo_n "(cached) " >&6
10704else
10705  if test -n "$CC"; then
10706  ac_cv_prog_CC="$CC" # Let the user override the test.
10707else
10708  ac_prog_rejected=no
10709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710for as_dir in $PATH
10711do
10712  IFS=$as_save_IFS
10713  test -z "$as_dir" && as_dir=.
10714    for ac_exec_ext in '' $ac_executable_extensions; do
10715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10716    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10717       ac_prog_rejected=yes
10718       continue
10719     fi
10720    ac_cv_prog_CC="cc"
10721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722    break 2
10723  fi
10724done
10725  done
10726IFS=$as_save_IFS
10727
10728if test $ac_prog_rejected = yes; then
10729  # We found a bogon in the path, so make sure we never use it.
10730  set dummy $ac_cv_prog_CC
10731  shift
10732  if test $# != 0; then
10733    # We chose a different compiler from the bogus one.
10734    # However, it has the same basename, so the bogon will be chosen
10735    # first if we set CC to just the basename; use the full file name.
10736    shift
10737    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10738  fi
10739fi
10740fi
10741fi
10742CC=$ac_cv_prog_CC
10743if test -n "$CC"; then
10744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10745$as_echo "$CC" >&6; }
10746else
10747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748$as_echo "no" >&6; }
10749fi
10750
10751
10752fi
10753if test -z "$CC"; then
10754  if test -n "$ac_tool_prefix"; then
10755  for ac_prog in cl.exe
10756  do
10757    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10758set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10760$as_echo_n "checking for $ac_word... " >&6; }
10761if ${ac_cv_prog_CC+:} false; then :
10762  $as_echo_n "(cached) " >&6
10763else
10764  if test -n "$CC"; then
10765  ac_cv_prog_CC="$CC" # Let the user override the test.
10766else
10767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768for as_dir in $PATH
10769do
10770  IFS=$as_save_IFS
10771  test -z "$as_dir" && as_dir=.
10772    for ac_exec_ext in '' $ac_executable_extensions; do
10773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10774    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10776    break 2
10777  fi
10778done
10779  done
10780IFS=$as_save_IFS
10781
10782fi
10783fi
10784CC=$ac_cv_prog_CC
10785if test -n "$CC"; then
10786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10787$as_echo "$CC" >&6; }
10788else
10789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790$as_echo "no" >&6; }
10791fi
10792
10793
10794    test -n "$CC" && break
10795  done
10796fi
10797if test -z "$CC"; then
10798  ac_ct_CC=$CC
10799  for ac_prog in cl.exe
10800do
10801  # Extract the first word of "$ac_prog", so it can be a program name with args.
10802set dummy $ac_prog; ac_word=$2
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10804$as_echo_n "checking for $ac_word... " >&6; }
10805if ${ac_cv_prog_ac_ct_CC+:} false; then :
10806  $as_echo_n "(cached) " >&6
10807else
10808  if test -n "$ac_ct_CC"; then
10809  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10810else
10811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812for as_dir in $PATH
10813do
10814  IFS=$as_save_IFS
10815  test -z "$as_dir" && as_dir=.
10816    for ac_exec_ext in '' $ac_executable_extensions; do
10817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10818    ac_cv_prog_ac_ct_CC="$ac_prog"
10819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10820    break 2
10821  fi
10822done
10823  done
10824IFS=$as_save_IFS
10825
10826fi
10827fi
10828ac_ct_CC=$ac_cv_prog_ac_ct_CC
10829if test -n "$ac_ct_CC"; then
10830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10831$as_echo "$ac_ct_CC" >&6; }
10832else
10833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834$as_echo "no" >&6; }
10835fi
10836
10837
10838  test -n "$ac_ct_CC" && break
10839done
10840
10841  if test "x$ac_ct_CC" = x; then
10842    CC=""
10843  else
10844    case $cross_compiling:$ac_tool_warned in
10845yes:)
10846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10848ac_tool_warned=yes ;;
10849esac
10850    CC=$ac_ct_CC
10851  fi
10852fi
10853
10854fi
10855
10856
10857test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10859as_fn_error $? "no acceptable C compiler found in \$PATH
10860See \`config.log' for more details" "$LINENO" 5; }
10861
10862# Provide some information about the compiler.
10863$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10864set X $ac_compile
10865ac_compiler=$2
10866for ac_option in --version -v -V -qversion; do
10867  { { ac_try="$ac_compiler $ac_option >&5"
10868case "(($ac_try" in
10869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870  *) ac_try_echo=$ac_try;;
10871esac
10872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10873$as_echo "$ac_try_echo"; } >&5
10874  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10875  ac_status=$?
10876  if test -s conftest.err; then
10877    sed '10a\
10878... rest of stderr output deleted ...
10879         10q' conftest.err >conftest.er1
10880    cat conftest.er1 >&5
10881  fi
10882  rm -f conftest.er1 conftest.err
10883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10884  test $ac_status = 0; }
10885done
10886
10887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10888$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10889if ${ac_cv_c_compiler_gnu+:} false; then :
10890  $as_echo_n "(cached) " >&6
10891else
10892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893/* end confdefs.h.  */
10894
10895int
10896main ()
10897{
10898#ifndef __GNUC__
10899       choke me
10900#endif
10901
10902  ;
10903  return 0;
10904}
10905_ACEOF
10906if ac_fn_c_try_compile "$LINENO"; then :
10907  ac_compiler_gnu=yes
10908else
10909  ac_compiler_gnu=no
10910fi
10911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912ac_cv_c_compiler_gnu=$ac_compiler_gnu
10913
10914fi
10915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10916$as_echo "$ac_cv_c_compiler_gnu" >&6; }
10917if test $ac_compiler_gnu = yes; then
10918  GCC=yes
10919else
10920  GCC=
10921fi
10922ac_test_CFLAGS=${CFLAGS+set}
10923ac_save_CFLAGS=$CFLAGS
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10925$as_echo_n "checking whether $CC accepts -g... " >&6; }
10926if ${ac_cv_prog_cc_g+:} false; then :
10927  $as_echo_n "(cached) " >&6
10928else
10929  ac_save_c_werror_flag=$ac_c_werror_flag
10930   ac_c_werror_flag=yes
10931   ac_cv_prog_cc_g=no
10932   CFLAGS="-g"
10933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934/* end confdefs.h.  */
10935
10936int
10937main ()
10938{
10939
10940  ;
10941  return 0;
10942}
10943_ACEOF
10944if ac_fn_c_try_compile "$LINENO"; then :
10945  ac_cv_prog_cc_g=yes
10946else
10947  CFLAGS=""
10948      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949/* end confdefs.h.  */
10950
10951int
10952main ()
10953{
10954
10955  ;
10956  return 0;
10957}
10958_ACEOF
10959if ac_fn_c_try_compile "$LINENO"; then :
10960
10961else
10962  ac_c_werror_flag=$ac_save_c_werror_flag
10963	 CFLAGS="-g"
10964	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965/* end confdefs.h.  */
10966
10967int
10968main ()
10969{
10970
10971  ;
10972  return 0;
10973}
10974_ACEOF
10975if ac_fn_c_try_compile "$LINENO"; then :
10976  ac_cv_prog_cc_g=yes
10977fi
10978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979fi
10980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10981fi
10982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10983   ac_c_werror_flag=$ac_save_c_werror_flag
10984fi
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10986$as_echo "$ac_cv_prog_cc_g" >&6; }
10987if test "$ac_test_CFLAGS" = set; then
10988  CFLAGS=$ac_save_CFLAGS
10989elif test $ac_cv_prog_cc_g = yes; then
10990  if test "$GCC" = yes; then
10991    CFLAGS="-g -O2"
10992  else
10993    CFLAGS="-g"
10994  fi
10995else
10996  if test "$GCC" = yes; then
10997    CFLAGS="-O2"
10998  else
10999    CFLAGS=
11000  fi
11001fi
11002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11003$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11004if ${ac_cv_prog_cc_c89+:} false; then :
11005  $as_echo_n "(cached) " >&6
11006else
11007  ac_cv_prog_cc_c89=no
11008ac_save_CC=$CC
11009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010/* end confdefs.h.  */
11011#include <stdarg.h>
11012#include <stdio.h>
11013struct stat;
11014/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11015struct buf { int x; };
11016FILE * (*rcsopen) (struct buf *, struct stat *, int);
11017static char *e (p, i)
11018     char **p;
11019     int i;
11020{
11021  return p[i];
11022}
11023static char *f (char * (*g) (char **, int), char **p, ...)
11024{
11025  char *s;
11026  va_list v;
11027  va_start (v,p);
11028  s = g (p, va_arg (v,int));
11029  va_end (v);
11030  return s;
11031}
11032
11033/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11034   function prototypes and stuff, but not '\xHH' hex character constants.
11035   These don't provoke an error unfortunately, instead are silently treated
11036   as 'x'.  The following induces an error, until -std is added to get
11037   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11038   array size at least.  It's necessary to write '\x00'==0 to get something
11039   that's true only with -std.  */
11040int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11041
11042/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11043   inside strings and character constants.  */
11044#define FOO(x) 'x'
11045int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11046
11047int test (int i, double x);
11048struct s1 {int (*f) (int a);};
11049struct s2 {int (*f) (double a);};
11050int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11051int argc;
11052char **argv;
11053int
11054main ()
11055{
11056return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11057  ;
11058  return 0;
11059}
11060_ACEOF
11061for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11062	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11063do
11064  CC="$ac_save_CC $ac_arg"
11065  if ac_fn_c_try_compile "$LINENO"; then :
11066  ac_cv_prog_cc_c89=$ac_arg
11067fi
11068rm -f core conftest.err conftest.$ac_objext
11069  test "x$ac_cv_prog_cc_c89" != "xno" && break
11070done
11071rm -f conftest.$ac_ext
11072CC=$ac_save_CC
11073
11074fi
11075# AC_CACHE_VAL
11076case "x$ac_cv_prog_cc_c89" in
11077  x)
11078    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11079$as_echo "none needed" >&6; } ;;
11080  xno)
11081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11082$as_echo "unsupported" >&6; } ;;
11083  *)
11084    CC="$CC $ac_cv_prog_cc_c89"
11085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11086$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11087esac
11088if test "x$ac_cv_prog_cc_c89" != xno; then :
11089
11090fi
11091
11092ac_ext=c
11093ac_cpp='$CPP $CPPFLAGS'
11094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11096ac_compiler_gnu=$ac_cv_c_compiler_gnu
11097
11098ac_ext=cpp
11099ac_cpp='$CXXCPP $CPPFLAGS'
11100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11103if test -z "$CXX"; then
11104  if test -n "$CCC"; then
11105    CXX=$CCC
11106  else
11107    if test -n "$ac_tool_prefix"; then
11108  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11109  do
11110    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11111set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11113$as_echo_n "checking for $ac_word... " >&6; }
11114if ${ac_cv_prog_CXX+:} false; then :
11115  $as_echo_n "(cached) " >&6
11116else
11117  if test -n "$CXX"; then
11118  ac_cv_prog_CXX="$CXX" # Let the user override the test.
11119else
11120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11121for as_dir in $PATH
11122do
11123  IFS=$as_save_IFS
11124  test -z "$as_dir" && as_dir=.
11125    for ac_exec_ext in '' $ac_executable_extensions; do
11126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11127    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11129    break 2
11130  fi
11131done
11132  done
11133IFS=$as_save_IFS
11134
11135fi
11136fi
11137CXX=$ac_cv_prog_CXX
11138if test -n "$CXX"; then
11139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11140$as_echo "$CXX" >&6; }
11141else
11142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143$as_echo "no" >&6; }
11144fi
11145
11146
11147    test -n "$CXX" && break
11148  done
11149fi
11150if test -z "$CXX"; then
11151  ac_ct_CXX=$CXX
11152  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11153do
11154  # Extract the first word of "$ac_prog", so it can be a program name with args.
11155set dummy $ac_prog; ac_word=$2
11156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157$as_echo_n "checking for $ac_word... " >&6; }
11158if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11159  $as_echo_n "(cached) " >&6
11160else
11161  if test -n "$ac_ct_CXX"; then
11162  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11163else
11164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165for as_dir in $PATH
11166do
11167  IFS=$as_save_IFS
11168  test -z "$as_dir" && as_dir=.
11169    for ac_exec_ext in '' $ac_executable_extensions; do
11170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11171    ac_cv_prog_ac_ct_CXX="$ac_prog"
11172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173    break 2
11174  fi
11175done
11176  done
11177IFS=$as_save_IFS
11178
11179fi
11180fi
11181ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11182if test -n "$ac_ct_CXX"; then
11183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11184$as_echo "$ac_ct_CXX" >&6; }
11185else
11186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187$as_echo "no" >&6; }
11188fi
11189
11190
11191  test -n "$ac_ct_CXX" && break
11192done
11193
11194  if test "x$ac_ct_CXX" = x; then
11195    CXX="g++"
11196  else
11197    case $cross_compiling:$ac_tool_warned in
11198yes:)
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11201ac_tool_warned=yes ;;
11202esac
11203    CXX=$ac_ct_CXX
11204  fi
11205fi
11206
11207  fi
11208fi
11209# Provide some information about the compiler.
11210$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11211set X $ac_compile
11212ac_compiler=$2
11213for ac_option in --version -v -V -qversion; do
11214  { { ac_try="$ac_compiler $ac_option >&5"
11215case "(($ac_try" in
11216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217  *) ac_try_echo=$ac_try;;
11218esac
11219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11220$as_echo "$ac_try_echo"; } >&5
11221  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11222  ac_status=$?
11223  if test -s conftest.err; then
11224    sed '10a\
11225... rest of stderr output deleted ...
11226         10q' conftest.err >conftest.er1
11227    cat conftest.er1 >&5
11228  fi
11229  rm -f conftest.er1 conftest.err
11230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11231  test $ac_status = 0; }
11232done
11233
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11235$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11236if ${ac_cv_cxx_compiler_gnu+:} false; then :
11237  $as_echo_n "(cached) " >&6
11238else
11239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240/* end confdefs.h.  */
11241
11242int
11243main ()
11244{
11245#ifndef __GNUC__
11246       choke me
11247#endif
11248
11249  ;
11250  return 0;
11251}
11252_ACEOF
11253if ac_fn_cxx_try_compile "$LINENO"; then :
11254  ac_compiler_gnu=yes
11255else
11256  ac_compiler_gnu=no
11257fi
11258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11259ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11260
11261fi
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11263$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11264if test $ac_compiler_gnu = yes; then
11265  GXX=yes
11266else
11267  GXX=
11268fi
11269ac_test_CXXFLAGS=${CXXFLAGS+set}
11270ac_save_CXXFLAGS=$CXXFLAGS
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11272$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11273if ${ac_cv_prog_cxx_g+:} false; then :
11274  $as_echo_n "(cached) " >&6
11275else
11276  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11277   ac_cxx_werror_flag=yes
11278   ac_cv_prog_cxx_g=no
11279   CXXFLAGS="-g"
11280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281/* end confdefs.h.  */
11282
11283int
11284main ()
11285{
11286
11287  ;
11288  return 0;
11289}
11290_ACEOF
11291if ac_fn_cxx_try_compile "$LINENO"; then :
11292  ac_cv_prog_cxx_g=yes
11293else
11294  CXXFLAGS=""
11295      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296/* end confdefs.h.  */
11297
11298int
11299main ()
11300{
11301
11302  ;
11303  return 0;
11304}
11305_ACEOF
11306if ac_fn_cxx_try_compile "$LINENO"; then :
11307
11308else
11309  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11310	 CXXFLAGS="-g"
11311	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312/* end confdefs.h.  */
11313
11314int
11315main ()
11316{
11317
11318  ;
11319  return 0;
11320}
11321_ACEOF
11322if ac_fn_cxx_try_compile "$LINENO"; then :
11323  ac_cv_prog_cxx_g=yes
11324fi
11325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11326fi
11327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328fi
11329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11330   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11331fi
11332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11333$as_echo "$ac_cv_prog_cxx_g" >&6; }
11334if test "$ac_test_CXXFLAGS" = set; then
11335  CXXFLAGS=$ac_save_CXXFLAGS
11336elif test $ac_cv_prog_cxx_g = yes; then
11337  if test "$GXX" = yes; then
11338    CXXFLAGS="-g -O2"
11339  else
11340    CXXFLAGS="-g"
11341  fi
11342else
11343  if test "$GXX" = yes; then
11344    CXXFLAGS="-O2"
11345  else
11346    CXXFLAGS=
11347  fi
11348fi
11349ac_ext=c
11350ac_cpp='$CPP $CPPFLAGS'
11351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11353ac_compiler_gnu=$ac_cv_c_compiler_gnu
11354
11355
11356ac_ext=cpp
11357ac_cpp='$CXXCPP $CPPFLAGS'
11358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11361if test -z "$CXX"; then
11362  if test -n "$CCC"; then
11363    CXX=$CCC
11364  else
11365    if test -n "$ac_tool_prefix"; then
11366  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11367  do
11368    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11369set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11371$as_echo_n "checking for $ac_word... " >&6; }
11372if ${ac_cv_prog_CXX+:} false; then :
11373  $as_echo_n "(cached) " >&6
11374else
11375  if test -n "$CXX"; then
11376  ac_cv_prog_CXX="$CXX" # Let the user override the test.
11377else
11378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379for as_dir in $PATH
11380do
11381  IFS=$as_save_IFS
11382  test -z "$as_dir" && as_dir=.
11383    for ac_exec_ext in '' $ac_executable_extensions; do
11384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11385    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11387    break 2
11388  fi
11389done
11390  done
11391IFS=$as_save_IFS
11392
11393fi
11394fi
11395CXX=$ac_cv_prog_CXX
11396if test -n "$CXX"; then
11397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11398$as_echo "$CXX" >&6; }
11399else
11400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401$as_echo "no" >&6; }
11402fi
11403
11404
11405    test -n "$CXX" && break
11406  done
11407fi
11408if test -z "$CXX"; then
11409  ac_ct_CXX=$CXX
11410  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11411do
11412  # Extract the first word of "$ac_prog", so it can be a program name with args.
11413set dummy $ac_prog; ac_word=$2
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415$as_echo_n "checking for $ac_word... " >&6; }
11416if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11417  $as_echo_n "(cached) " >&6
11418else
11419  if test -n "$ac_ct_CXX"; then
11420  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11421else
11422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423for as_dir in $PATH
11424do
11425  IFS=$as_save_IFS
11426  test -z "$as_dir" && as_dir=.
11427    for ac_exec_ext in '' $ac_executable_extensions; do
11428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11429    ac_cv_prog_ac_ct_CXX="$ac_prog"
11430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11431    break 2
11432  fi
11433done
11434  done
11435IFS=$as_save_IFS
11436
11437fi
11438fi
11439ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11440if test -n "$ac_ct_CXX"; then
11441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11442$as_echo "$ac_ct_CXX" >&6; }
11443else
11444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445$as_echo "no" >&6; }
11446fi
11447
11448
11449  test -n "$ac_ct_CXX" && break
11450done
11451
11452  if test "x$ac_ct_CXX" = x; then
11453    CXX="g++"
11454  else
11455    case $cross_compiling:$ac_tool_warned in
11456yes:)
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11459ac_tool_warned=yes ;;
11460esac
11461    CXX=$ac_ct_CXX
11462  fi
11463fi
11464
11465  fi
11466fi
11467# Provide some information about the compiler.
11468$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11469set X $ac_compile
11470ac_compiler=$2
11471for ac_option in --version -v -V -qversion; do
11472  { { ac_try="$ac_compiler $ac_option >&5"
11473case "(($ac_try" in
11474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475  *) ac_try_echo=$ac_try;;
11476esac
11477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11478$as_echo "$ac_try_echo"; } >&5
11479  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11480  ac_status=$?
11481  if test -s conftest.err; then
11482    sed '10a\
11483... rest of stderr output deleted ...
11484         10q' conftest.err >conftest.er1
11485    cat conftest.er1 >&5
11486  fi
11487  rm -f conftest.er1 conftest.err
11488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11489  test $ac_status = 0; }
11490done
11491
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11493$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11494if ${ac_cv_cxx_compiler_gnu+:} false; then :
11495  $as_echo_n "(cached) " >&6
11496else
11497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498/* end confdefs.h.  */
11499
11500int
11501main ()
11502{
11503#ifndef __GNUC__
11504       choke me
11505#endif
11506
11507  ;
11508  return 0;
11509}
11510_ACEOF
11511if ac_fn_cxx_try_compile "$LINENO"; then :
11512  ac_compiler_gnu=yes
11513else
11514  ac_compiler_gnu=no
11515fi
11516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11517ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11518
11519fi
11520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11521$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11522if test $ac_compiler_gnu = yes; then
11523  GXX=yes
11524else
11525  GXX=
11526fi
11527ac_test_CXXFLAGS=${CXXFLAGS+set}
11528ac_save_CXXFLAGS=$CXXFLAGS
11529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11530$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11531if ${ac_cv_prog_cxx_g+:} false; then :
11532  $as_echo_n "(cached) " >&6
11533else
11534  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11535   ac_cxx_werror_flag=yes
11536   ac_cv_prog_cxx_g=no
11537   CXXFLAGS="-g"
11538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539/* end confdefs.h.  */
11540
11541int
11542main ()
11543{
11544
11545  ;
11546  return 0;
11547}
11548_ACEOF
11549if ac_fn_cxx_try_compile "$LINENO"; then :
11550  ac_cv_prog_cxx_g=yes
11551else
11552  CXXFLAGS=""
11553      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11554/* end confdefs.h.  */
11555
11556int
11557main ()
11558{
11559
11560  ;
11561  return 0;
11562}
11563_ACEOF
11564if ac_fn_cxx_try_compile "$LINENO"; then :
11565
11566else
11567  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11568	 CXXFLAGS="-g"
11569	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570/* end confdefs.h.  */
11571
11572int
11573main ()
11574{
11575
11576  ;
11577  return 0;
11578}
11579_ACEOF
11580if ac_fn_cxx_try_compile "$LINENO"; then :
11581  ac_cv_prog_cxx_g=yes
11582fi
11583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11584fi
11585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11586fi
11587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11588   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11589fi
11590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11591$as_echo "$ac_cv_prog_cxx_g" >&6; }
11592if test "$ac_test_CXXFLAGS" = set; then
11593  CXXFLAGS=$ac_save_CXXFLAGS
11594elif test $ac_cv_prog_cxx_g = yes; then
11595  if test "$GXX" = yes; then
11596    CXXFLAGS="-g -O2"
11597  else
11598    CXXFLAGS="-g"
11599  fi
11600else
11601  if test "$GXX" = yes; then
11602    CXXFLAGS="-O2"
11603  else
11604    CXXFLAGS=
11605  fi
11606fi
11607ac_ext=c
11608ac_cpp='$CPP $CPPFLAGS'
11609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11611ac_compiler_gnu=$ac_cv_c_compiler_gnu
11612
11613if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11614    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11615    (test "X$CXX" != "Xg++"))) ; then
11616  ac_ext=cpp
11617ac_cpp='$CXXCPP $CPPFLAGS'
11618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11622$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11623if test -z "$CXXCPP"; then
11624  if ${ac_cv_prog_CXXCPP+:} false; then :
11625  $as_echo_n "(cached) " >&6
11626else
11627      # Double quotes because CXXCPP needs to be expanded
11628    for CXXCPP in "$CXX -E" "/lib/cpp"
11629    do
11630      ac_preproc_ok=false
11631for ac_cxx_preproc_warn_flag in '' yes
11632do
11633  # Use a header file that comes with gcc, so configuring glibc
11634  # with a fresh cross-compiler works.
11635  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11636  # <limits.h> exists even on freestanding compilers.
11637  # On the NeXT, cc -E runs the code through the compiler's parser,
11638  # not just through cpp. "Syntax error" is here to catch this case.
11639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640/* end confdefs.h.  */
11641#ifdef __STDC__
11642# include <limits.h>
11643#else
11644# include <assert.h>
11645#endif
11646		     Syntax error
11647_ACEOF
11648if ac_fn_cxx_try_cpp "$LINENO"; then :
11649
11650else
11651  # Broken: fails on valid input.
11652continue
11653fi
11654rm -f conftest.err conftest.i conftest.$ac_ext
11655
11656  # OK, works on sane cases.  Now check whether nonexistent headers
11657  # can be detected and how.
11658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659/* end confdefs.h.  */
11660#include <ac_nonexistent.h>
11661_ACEOF
11662if ac_fn_cxx_try_cpp "$LINENO"; then :
11663  # Broken: success on invalid input.
11664continue
11665else
11666  # Passes both tests.
11667ac_preproc_ok=:
11668break
11669fi
11670rm -f conftest.err conftest.i conftest.$ac_ext
11671
11672done
11673# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11674rm -f conftest.i conftest.err conftest.$ac_ext
11675if $ac_preproc_ok; then :
11676  break
11677fi
11678
11679    done
11680    ac_cv_prog_CXXCPP=$CXXCPP
11681
11682fi
11683  CXXCPP=$ac_cv_prog_CXXCPP
11684else
11685  ac_cv_prog_CXXCPP=$CXXCPP
11686fi
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11688$as_echo "$CXXCPP" >&6; }
11689ac_preproc_ok=false
11690for ac_cxx_preproc_warn_flag in '' yes
11691do
11692  # Use a header file that comes with gcc, so configuring glibc
11693  # with a fresh cross-compiler works.
11694  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11695  # <limits.h> exists even on freestanding compilers.
11696  # On the NeXT, cc -E runs the code through the compiler's parser,
11697  # not just through cpp. "Syntax error" is here to catch this case.
11698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699/* end confdefs.h.  */
11700#ifdef __STDC__
11701# include <limits.h>
11702#else
11703# include <assert.h>
11704#endif
11705		     Syntax error
11706_ACEOF
11707if ac_fn_cxx_try_cpp "$LINENO"; then :
11708
11709else
11710  # Broken: fails on valid input.
11711continue
11712fi
11713rm -f conftest.err conftest.i conftest.$ac_ext
11714
11715  # OK, works on sane cases.  Now check whether nonexistent headers
11716  # can be detected and how.
11717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11718/* end confdefs.h.  */
11719#include <ac_nonexistent.h>
11720_ACEOF
11721if ac_fn_cxx_try_cpp "$LINENO"; then :
11722  # Broken: success on invalid input.
11723continue
11724else
11725  # Passes both tests.
11726ac_preproc_ok=:
11727break
11728fi
11729rm -f conftest.err conftest.i conftest.$ac_ext
11730
11731done
11732# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11733rm -f conftest.i conftest.err conftest.$ac_ext
11734if $ac_preproc_ok; then :
11735
11736else
11737  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11739_lt_caught_CXX_error=yes; }
11740fi
11741
11742ac_ext=c
11743ac_cpp='$CPP $CPPFLAGS'
11744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11746ac_compiler_gnu=$ac_cv_c_compiler_gnu
11747
11748else
11749  _lt_caught_CXX_error=yes
11750fi
11751
11752
11753
11754
11755ac_ext=cpp
11756ac_cpp='$CXXCPP $CPPFLAGS'
11757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11760
11761archive_cmds_need_lc_CXX=no
11762allow_undefined_flag_CXX=
11763always_export_symbols_CXX=no
11764archive_expsym_cmds_CXX=
11765compiler_needs_object_CXX=no
11766export_dynamic_flag_spec_CXX=
11767hardcode_direct_CXX=no
11768hardcode_direct_absolute_CXX=no
11769hardcode_libdir_flag_spec_CXX=
11770hardcode_libdir_flag_spec_ld_CXX=
11771hardcode_libdir_separator_CXX=
11772hardcode_minus_L_CXX=no
11773hardcode_shlibpath_var_CXX=unsupported
11774hardcode_automatic_CXX=no
11775inherit_rpath_CXX=no
11776module_cmds_CXX=
11777module_expsym_cmds_CXX=
11778link_all_deplibs_CXX=unknown
11779old_archive_cmds_CXX=$old_archive_cmds
11780no_undefined_flag_CXX=
11781whole_archive_flag_spec_CXX=
11782enable_shared_with_static_runtimes_CXX=no
11783
11784# Source file extension for C++ test sources.
11785ac_ext=cpp
11786
11787# Object file extension for compiled C++ test sources.
11788objext=o
11789objext_CXX=$objext
11790
11791# No sense in running all these tests if we already determined that
11792# the CXX compiler isn't working.  Some variables (like enable_shared)
11793# are currently assumed to apply to all compilers on this platform,
11794# and will be corrupted by setting them based on a non-working compiler.
11795if test "$_lt_caught_CXX_error" != yes; then
11796  # Code to be used in simple compile tests
11797  lt_simple_compile_test_code="int some_variable = 0;"
11798
11799  # Code to be used in simple link tests
11800  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11801
11802  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11803
11804
11805
11806
11807
11808
11809# If no C compiler was specified, use CC.
11810LTCC=${LTCC-"$CC"}
11811
11812# If no C compiler flags were specified, use CFLAGS.
11813LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11814
11815# Allow CC to be a program name with arguments.
11816compiler=$CC
11817
11818
11819  # save warnings/boilerplate of simple test code
11820  ac_outfile=conftest.$ac_objext
11821echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11822eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11823_lt_compiler_boilerplate=`cat conftest.err`
11824$RM conftest*
11825
11826  ac_outfile=conftest.$ac_objext
11827echo "$lt_simple_link_test_code" >conftest.$ac_ext
11828eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11829_lt_linker_boilerplate=`cat conftest.err`
11830$RM -r conftest*
11831
11832
11833  # Allow CC to be a program name with arguments.
11834  lt_save_CC=$CC
11835  lt_save_LD=$LD
11836  lt_save_GCC=$GCC
11837  GCC=$GXX
11838  lt_save_with_gnu_ld=$with_gnu_ld
11839  lt_save_path_LD=$lt_cv_path_LD
11840  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11841    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11842  else
11843    $as_unset lt_cv_prog_gnu_ld
11844  fi
11845  if test -n "${lt_cv_path_LDCXX+set}"; then
11846    lt_cv_path_LD=$lt_cv_path_LDCXX
11847  else
11848    $as_unset lt_cv_path_LD
11849  fi
11850  test -z "${LDCXX+set}" || LD=$LDCXX
11851  CC=${CXX-"c++"}
11852  compiler=$CC
11853  compiler_CXX=$CC
11854  for cc_temp in $compiler""; do
11855  case $cc_temp in
11856    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11857    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11858    \-*) ;;
11859    *) break;;
11860  esac
11861done
11862cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11863
11864
11865  if test -n "$compiler"; then
11866    # We don't want -fno-exception when compiling C++ code, so set the
11867    # no_builtin_flag separately
11868    if test "$GXX" = yes; then
11869      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11870    else
11871      lt_prog_compiler_no_builtin_flag_CXX=
11872    fi
11873
11874    if test "$GXX" = yes; then
11875      # Set up default GNU C++ configuration
11876
11877
11878
11879# Check whether --with-gnu-ld was given.
11880if test "${with_gnu_ld+set}" = set; then :
11881  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11882else
11883  with_gnu_ld=no
11884fi
11885
11886ac_prog=ld
11887if test "$GCC" = yes; then
11888  # Check if gcc -print-prog-name=ld gives a path.
11889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11890$as_echo_n "checking for ld used by $CC... " >&6; }
11891  case $host in
11892  *-*-mingw*)
11893    # gcc leaves a trailing carriage return which upsets mingw
11894    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11895  *)
11896    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11897  esac
11898  case $ac_prog in
11899    # Accept absolute paths.
11900    [\\/]* | ?:[\\/]*)
11901      re_direlt='/[^/][^/]*/\.\./'
11902      # Canonicalize the pathname of ld
11903      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11904      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11905	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11906      done
11907      test -z "$LD" && LD="$ac_prog"
11908      ;;
11909  "")
11910    # If it fails, then pretend we aren't using GCC.
11911    ac_prog=ld
11912    ;;
11913  *)
11914    # If it is relative, then search for the first ld in PATH.
11915    with_gnu_ld=unknown
11916    ;;
11917  esac
11918elif test "$with_gnu_ld" = yes; then
11919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11920$as_echo_n "checking for GNU ld... " >&6; }
11921else
11922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11923$as_echo_n "checking for non-GNU ld... " >&6; }
11924fi
11925if ${lt_cv_path_LD+:} false; then :
11926  $as_echo_n "(cached) " >&6
11927else
11928  if test -z "$LD"; then
11929  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11930  for ac_dir in $PATH; do
11931    IFS="$lt_save_ifs"
11932    test -z "$ac_dir" && ac_dir=.
11933    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11934      lt_cv_path_LD="$ac_dir/$ac_prog"
11935      # Check to see if the program is GNU ld.  I'd rather use --version,
11936      # but apparently some variants of GNU ld only accept -v.
11937      # Break only if it was the GNU/non-GNU ld that we prefer.
11938      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11939      *GNU* | *'with BFD'*)
11940	test "$with_gnu_ld" != no && break
11941	;;
11942      *)
11943	test "$with_gnu_ld" != yes && break
11944	;;
11945      esac
11946    fi
11947  done
11948  IFS="$lt_save_ifs"
11949else
11950  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11951fi
11952fi
11953
11954LD="$lt_cv_path_LD"
11955if test -n "$LD"; then
11956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11957$as_echo "$LD" >&6; }
11958else
11959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960$as_echo "no" >&6; }
11961fi
11962test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11964$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11965if ${lt_cv_prog_gnu_ld+:} false; then :
11966  $as_echo_n "(cached) " >&6
11967else
11968  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11969case `$LD -v 2>&1 </dev/null` in
11970*GNU* | *'with BFD'*)
11971  lt_cv_prog_gnu_ld=yes
11972  ;;
11973*)
11974  lt_cv_prog_gnu_ld=no
11975  ;;
11976esac
11977fi
11978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11979$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11980with_gnu_ld=$lt_cv_prog_gnu_ld
11981
11982
11983
11984
11985
11986
11987
11988      # Check if GNU C++ uses GNU ld as the underlying linker, since the
11989      # archiving commands below assume that GNU ld is being used.
11990      if test "$with_gnu_ld" = yes; then
11991        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11992        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'
11993
11994        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11995        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11996
11997        # If archive_cmds runs LD, not CC, wlarc should be empty
11998        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11999        #     investigate it a little bit more. (MM)
12000        wlarc='${wl}'
12001
12002        # ancient GNU ld didn't support --whole-archive et. al.
12003        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12004	  $GREP 'no-whole-archive' > /dev/null; then
12005          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12006        else
12007          whole_archive_flag_spec_CXX=
12008        fi
12009      else
12010        with_gnu_ld=no
12011        wlarc=
12012
12013        # A generic and very simple default shared library creation
12014        # command for GNU C++ for the case where it uses the native
12015        # linker, instead of GNU ld.  If possible, this setting should
12016        # overridden to take advantage of the native linker features on
12017        # the platform it is being used on.
12018        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12019      fi
12020
12021      # Commands to make compiler produce verbose output that lists
12022      # what "hidden" libraries, object files and flags are used when
12023      # linking a shared library.
12024      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12025
12026    else
12027      GXX=no
12028      with_gnu_ld=no
12029      wlarc=
12030    fi
12031
12032    # PORTME: fill in a description of your system's C++ link characteristics
12033    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12034$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12035    ld_shlibs_CXX=yes
12036    case $host_os in
12037      aix3*)
12038        # FIXME: insert proper C++ library support
12039        ld_shlibs_CXX=no
12040        ;;
12041      aix[4-9]*)
12042        if test "$host_cpu" = ia64; then
12043          # On IA64, the linker does run time linking by default, so we don't
12044          # have to do anything special.
12045          aix_use_runtimelinking=no
12046          exp_sym_flag='-Bexport'
12047          no_entry_flag=""
12048        else
12049          aix_use_runtimelinking=no
12050
12051          # Test if we are trying to use run time linking or normal
12052          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12053          # need to do runtime linking.
12054          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12055	    for ld_flag in $LDFLAGS; do
12056	      case $ld_flag in
12057	      *-brtl*)
12058	        aix_use_runtimelinking=yes
12059	        break
12060	        ;;
12061	      esac
12062	    done
12063	    ;;
12064          esac
12065
12066          exp_sym_flag='-bexport'
12067          no_entry_flag='-bnoentry'
12068        fi
12069
12070        # When large executables or shared objects are built, AIX ld can
12071        # have problems creating the table of contents.  If linking a library
12072        # or program results in "error TOC overflow" add -mminimal-toc to
12073        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12074        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12075
12076        archive_cmds_CXX=''
12077        hardcode_direct_CXX=yes
12078        hardcode_direct_absolute_CXX=yes
12079        hardcode_libdir_separator_CXX=':'
12080        link_all_deplibs_CXX=yes
12081        file_list_spec_CXX='${wl}-f,'
12082
12083        if test "$GXX" = yes; then
12084          case $host_os in aix4.[012]|aix4.[012].*)
12085          # We only want to do this on AIX 4.2 and lower, the check
12086          # below for broken collect2 doesn't work under 4.3+
12087	  collect2name=`${CC} -print-prog-name=collect2`
12088	  if test -f "$collect2name" &&
12089	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12090	  then
12091	    # We have reworked collect2
12092	    :
12093	  else
12094	    # We have old collect2
12095	    hardcode_direct_CXX=unsupported
12096	    # It fails to find uninstalled libraries when the uninstalled
12097	    # path is not listed in the libpath.  Setting hardcode_minus_L
12098	    # to unsupported forces relinking
12099	    hardcode_minus_L_CXX=yes
12100	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12101	    hardcode_libdir_separator_CXX=
12102	  fi
12103          esac
12104          shared_flag='-shared'
12105	  if test "$aix_use_runtimelinking" = yes; then
12106	    shared_flag="$shared_flag "'${wl}-G'
12107	  fi
12108        else
12109          # not using gcc
12110          if test "$host_cpu" = ia64; then
12111	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12112	  # chokes on -Wl,-G. The following line is correct:
12113	  shared_flag='-G'
12114          else
12115	    if test "$aix_use_runtimelinking" = yes; then
12116	      shared_flag='${wl}-G'
12117	    else
12118	      shared_flag='${wl}-bM:SRE'
12119	    fi
12120          fi
12121        fi
12122
12123        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12124        # It seems that -bexpall does not export symbols beginning with
12125        # underscore (_), so it is better to generate a list of symbols to
12126	# export.
12127        always_export_symbols_CXX=yes
12128        if test "$aix_use_runtimelinking" = yes; then
12129          # Warning - without using the other runtime loading flags (-brtl),
12130          # -berok will link without error, but may produce a broken library.
12131          allow_undefined_flag_CXX='-berok'
12132          # Determine the default libpath from the value encoded in an empty
12133          # executable.
12134          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135/* end confdefs.h.  */
12136
12137int
12138main ()
12139{
12140
12141  ;
12142  return 0;
12143}
12144_ACEOF
12145if ac_fn_cxx_try_link "$LINENO"; then :
12146
12147lt_aix_libpath_sed='
12148    /Import File Strings/,/^$/ {
12149	/^0/ {
12150	    s/^0  *\(.*\)$/\1/
12151	    p
12152	}
12153    }'
12154aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12155# Check for a 64-bit object if we didn't find anything.
12156if test -z "$aix_libpath"; then
12157  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12158fi
12159fi
12160rm -f core conftest.err conftest.$ac_objext \
12161    conftest$ac_exeext conftest.$ac_ext
12162if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12163
12164          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12165
12166          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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12167        else
12168          if test "$host_cpu" = ia64; then
12169	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12170	    allow_undefined_flag_CXX="-z nodefs"
12171	    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"
12172          else
12173	    # Determine the default libpath from the value encoded in an
12174	    # empty executable.
12175	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176/* end confdefs.h.  */
12177
12178int
12179main ()
12180{
12181
12182  ;
12183  return 0;
12184}
12185_ACEOF
12186if ac_fn_cxx_try_link "$LINENO"; then :
12187
12188lt_aix_libpath_sed='
12189    /Import File Strings/,/^$/ {
12190	/^0/ {
12191	    s/^0  *\(.*\)$/\1/
12192	    p
12193	}
12194    }'
12195aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12196# Check for a 64-bit object if we didn't find anything.
12197if test -z "$aix_libpath"; then
12198  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12199fi
12200fi
12201rm -f core conftest.err conftest.$ac_objext \
12202    conftest$ac_exeext conftest.$ac_ext
12203if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12204
12205	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12206	    # Warning - without using the other run time loading flags,
12207	    # -berok will link without error, but may produce a broken library.
12208	    no_undefined_flag_CXX=' ${wl}-bernotok'
12209	    allow_undefined_flag_CXX=' ${wl}-berok'
12210	    # Exported symbols can be pulled into shared objects from archives
12211	    whole_archive_flag_spec_CXX='$convenience'
12212	    archive_cmds_need_lc_CXX=yes
12213	    # This is similar to how AIX traditionally builds its shared
12214	    # libraries.
12215	    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'
12216          fi
12217        fi
12218        ;;
12219
12220      beos*)
12221	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12222	  allow_undefined_flag_CXX=unsupported
12223	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12224	  # support --undefined.  This deserves some investigation.  FIXME
12225	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12226	else
12227	  ld_shlibs_CXX=no
12228	fi
12229	;;
12230
12231      chorus*)
12232        case $cc_basename in
12233          *)
12234	  # FIXME: insert proper C++ library support
12235	  ld_shlibs_CXX=no
12236	  ;;
12237        esac
12238        ;;
12239
12240      cygwin* | mingw* | pw32* | cegcc*)
12241        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12242        # as there is no search path for DLLs.
12243        hardcode_libdir_flag_spec_CXX='-L$libdir'
12244        allow_undefined_flag_CXX=unsupported
12245        always_export_symbols_CXX=no
12246        enable_shared_with_static_runtimes_CXX=yes
12247
12248        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12249          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'
12250          # If the export-symbols file already is a .def file (1st line
12251          # is EXPORTS), use it as is; otherwise, prepend...
12252          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12253	    cp $export_symbols $output_objdir/$soname.def;
12254          else
12255	    echo EXPORTS > $output_objdir/$soname.def;
12256	    cat $export_symbols >> $output_objdir/$soname.def;
12257          fi~
12258          $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'
12259        else
12260          ld_shlibs_CXX=no
12261        fi
12262        ;;
12263      darwin* | rhapsody*)
12264
12265
12266  archive_cmds_need_lc_CXX=no
12267  hardcode_direct_CXX=no
12268  hardcode_automatic_CXX=yes
12269  hardcode_shlibpath_var_CXX=unsupported
12270  whole_archive_flag_spec_CXX=''
12271  link_all_deplibs_CXX=yes
12272  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12273  case $cc_basename in
12274     ifort*) _lt_dar_can_shared=yes ;;
12275     *) _lt_dar_can_shared=$GCC ;;
12276  esac
12277  if test "$_lt_dar_can_shared" = "yes"; then
12278    output_verbose_link_cmd=echo
12279    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}"
12280    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12281    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}"
12282    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}"
12283       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12284      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}"
12285      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}"
12286    fi
12287
12288  else
12289  ld_shlibs_CXX=no
12290  fi
12291
12292	;;
12293
12294      dgux*)
12295        case $cc_basename in
12296          ec++*)
12297	    # FIXME: insert proper C++ library support
12298	    ld_shlibs_CXX=no
12299	    ;;
12300          ghcx*)
12301	    # Green Hills C++ Compiler
12302	    # FIXME: insert proper C++ library support
12303	    ld_shlibs_CXX=no
12304	    ;;
12305          *)
12306	    # FIXME: insert proper C++ library support
12307	    ld_shlibs_CXX=no
12308	    ;;
12309        esac
12310        ;;
12311
12312      freebsd[12]*)
12313        # C++ shared libraries reported to be fairly broken before
12314	# switch to ELF
12315        ld_shlibs_CXX=no
12316        ;;
12317
12318      freebsd-elf*)
12319        archive_cmds_need_lc_CXX=no
12320        ;;
12321
12322      freebsd* | dragonfly*)
12323        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12324        # conventions
12325        ld_shlibs_CXX=yes
12326        ;;
12327
12328      gnu*)
12329        ;;
12330
12331      hpux9*)
12332        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12333        hardcode_libdir_separator_CXX=:
12334        export_dynamic_flag_spec_CXX='${wl}-E'
12335        hardcode_direct_CXX=yes
12336        hardcode_minus_L_CXX=yes # Not in the search PATH,
12337				             # but as the default
12338				             # location of the library.
12339
12340        case $cc_basename in
12341          CC*)
12342            # FIXME: insert proper C++ library support
12343            ld_shlibs_CXX=no
12344            ;;
12345          aCC*)
12346            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'
12347            # Commands to make compiler produce verbose output that lists
12348            # what "hidden" libraries, object files and flags are used when
12349            # linking a shared library.
12350            #
12351            # There doesn't appear to be a way to prevent this compiler from
12352            # explicitly linking system object files so we need to strip them
12353            # from the output so that they don't get included in the library
12354            # dependencies.
12355            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12356            ;;
12357          *)
12358            if test "$GXX" = yes; then
12359              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'
12360            else
12361              # FIXME: insert proper C++ library support
12362              ld_shlibs_CXX=no
12363            fi
12364            ;;
12365        esac
12366        ;;
12367
12368      hpux10*|hpux11*)
12369        if test $with_gnu_ld = no; then
12370	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12371	  hardcode_libdir_separator_CXX=:
12372
12373          case $host_cpu in
12374            hppa*64*|ia64*)
12375              ;;
12376            *)
12377	      export_dynamic_flag_spec_CXX='${wl}-E'
12378              ;;
12379          esac
12380        fi
12381        case $host_cpu in
12382          hppa*64*|ia64*)
12383            hardcode_direct_CXX=no
12384            hardcode_shlibpath_var_CXX=no
12385            ;;
12386          *)
12387            hardcode_direct_CXX=yes
12388            hardcode_direct_absolute_CXX=yes
12389            hardcode_minus_L_CXX=yes # Not in the search PATH,
12390					         # but as the default
12391					         # location of the library.
12392            ;;
12393        esac
12394
12395        case $cc_basename in
12396          CC*)
12397	    # FIXME: insert proper C++ library support
12398	    ld_shlibs_CXX=no
12399	    ;;
12400          aCC*)
12401	    case $host_cpu in
12402	      hppa*64*)
12403	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12404	        ;;
12405	      ia64*)
12406	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12407	        ;;
12408	      *)
12409	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12410	        ;;
12411	    esac
12412	    # Commands to make compiler produce verbose output that lists
12413	    # what "hidden" libraries, object files and flags are used when
12414	    # linking a shared library.
12415	    #
12416	    # There doesn't appear to be a way to prevent this compiler from
12417	    # explicitly linking system object files so we need to strip them
12418	    # from the output so that they don't get included in the library
12419	    # dependencies.
12420	    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 "X$list" | $Xsed'
12421	    ;;
12422          *)
12423	    if test "$GXX" = yes; then
12424	      if test $with_gnu_ld = no; then
12425	        case $host_cpu in
12426	          hppa*64*)
12427	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12428	            ;;
12429	          ia64*)
12430	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12431	            ;;
12432	          *)
12433	            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'
12434	            ;;
12435	        esac
12436	      fi
12437	    else
12438	      # FIXME: insert proper C++ library support
12439	      ld_shlibs_CXX=no
12440	    fi
12441	    ;;
12442        esac
12443        ;;
12444
12445      interix[3-9]*)
12446	hardcode_direct_CXX=no
12447	hardcode_shlibpath_var_CXX=no
12448	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12449	export_dynamic_flag_spec_CXX='${wl}-E'
12450	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12451	# Instead, shared libraries are loaded at an image base (0x10000000 by
12452	# default) and relocated if they conflict, which is a slow very memory
12453	# consuming and fragmenting process.  To avoid this, we pick a random,
12454	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12455	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12456	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'
12457	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'
12458	;;
12459      irix5* | irix6*)
12460        case $cc_basename in
12461          CC*)
12462	    # SGI C++
12463	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12464
12465	    # Archives containing C++ object files must be created using
12466	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12467	    # necessary to make sure instantiated templates are included
12468	    # in the archive.
12469	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12470	    ;;
12471          *)
12472	    if test "$GXX" = yes; then
12473	      if test "$with_gnu_ld" = no; then
12474	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12475	      else
12476	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12477	      fi
12478	    fi
12479	    link_all_deplibs_CXX=yes
12480	    ;;
12481        esac
12482        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12483        hardcode_libdir_separator_CXX=:
12484        inherit_rpath_CXX=yes
12485        ;;
12486
12487      linux* | k*bsd*-gnu)
12488        case $cc_basename in
12489          KCC*)
12490	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12491
12492	    # KCC will only create a shared library if the output file
12493	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12494	    # to its proper name (with version) after linking.
12495	    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'
12496	    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'
12497	    # Commands to make compiler produce verbose output that lists
12498	    # what "hidden" libraries, object files and flags are used when
12499	    # linking a shared library.
12500	    #
12501	    # There doesn't appear to be a way to prevent this compiler from
12502	    # explicitly linking system object files so we need to strip them
12503	    # from the output so that they don't get included in the library
12504	    # dependencies.
12505	    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 "X$list" | $Xsed'
12506
12507	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12508	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12509
12510	    # Archives containing C++ object files must be created using
12511	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12512	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12513	    ;;
12514	  icpc* | ecpc* )
12515	    # Intel C++
12516	    with_gnu_ld=yes
12517	    # version 8.0 and above of icpc choke on multiply defined symbols
12518	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12519	    # earlier do not add the objects themselves.
12520	    case `$CC -V 2>&1` in
12521	      *"Version 7."*)
12522	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12523		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'
12524		;;
12525	      *)  # Version 8.0 or newer
12526	        tmp_idyn=
12527	        case $host_cpu in
12528		  ia64*) tmp_idyn=' -i_dynamic';;
12529		esac
12530	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12531		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'
12532		;;
12533	    esac
12534	    archive_cmds_need_lc_CXX=no
12535	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12536	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12537	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12538	    ;;
12539          pgCC* | pgcpp*)
12540            # Portland Group C++ compiler
12541	    case `$CC -V` in
12542	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12543	      prelink_cmds_CXX='tpldir=Template.dir~
12544		rm -rf $tpldir~
12545		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12546		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12547	      old_archive_cmds_CXX='tpldir=Template.dir~
12548		rm -rf $tpldir~
12549		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12550		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12551		$RANLIB $oldlib'
12552	      archive_cmds_CXX='tpldir=Template.dir~
12553		rm -rf $tpldir~
12554		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12555		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12556	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12557		rm -rf $tpldir~
12558		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12559		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12560	      ;;
12561	    *) # Version 6 will use weak symbols
12562	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12563	      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'
12564	      ;;
12565	    esac
12566
12567	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12568	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12569	    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'
12570            ;;
12571	  cxx*)
12572	    # Compaq C++
12573	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12574	    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'
12575
12576	    runpath_var=LD_RUN_PATH
12577	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12578	    hardcode_libdir_separator_CXX=:
12579
12580	    # Commands to make compiler produce verbose output that lists
12581	    # what "hidden" libraries, object files and flags are used when
12582	    # linking a shared library.
12583	    #
12584	    # There doesn't appear to be a way to prevent this compiler from
12585	    # explicitly linking system object files so we need to strip them
12586	    # from the output so that they don't get included in the library
12587	    # dependencies.
12588	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12589	    ;;
12590	  xl*)
12591	    # IBM XL 8.0 on PPC, with GNU ld
12592	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12593	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12594	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12595	    if test "x$supports_anon_versioning" = xyes; then
12596	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12597		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12598		echo "local: *; };" >> $output_objdir/$libname.ver~
12599		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12600	    fi
12601	    ;;
12602	  *)
12603	    case `$CC -V 2>&1 | sed 5q` in
12604	    *Sun\ C*)
12605	      # Sun C++ 5.9
12606	      no_undefined_flag_CXX=' -zdefs'
12607	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12608	      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'
12609	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12610	      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'
12611	      compiler_needs_object_CXX=yes
12612
12613	      # Not sure whether something based on
12614	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12615	      # would be better.
12616	      output_verbose_link_cmd='echo'
12617
12618	      # Archives containing C++ object files must be created using
12619	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12620	      # necessary to make sure instantiated templates are included
12621	      # in the archive.
12622	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12623	      ;;
12624	    esac
12625	    ;;
12626	esac
12627	;;
12628
12629      lynxos*)
12630        # FIXME: insert proper C++ library support
12631	ld_shlibs_CXX=no
12632	;;
12633
12634      m88k*)
12635        # FIXME: insert proper C++ library support
12636        ld_shlibs_CXX=no
12637	;;
12638
12639      mvs*)
12640        case $cc_basename in
12641          cxx*)
12642	    # FIXME: insert proper C++ library support
12643	    ld_shlibs_CXX=no
12644	    ;;
12645	  *)
12646	    # FIXME: insert proper C++ library support
12647	    ld_shlibs_CXX=no
12648	    ;;
12649	esac
12650	;;
12651
12652      netbsd*)
12653        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12654	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12655	  wlarc=
12656	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12657	  hardcode_direct_CXX=yes
12658	  hardcode_shlibpath_var_CXX=no
12659	fi
12660	# Workaround some broken pre-1.5 toolchains
12661	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12662	;;
12663
12664      *nto* | *qnx*)
12665        ld_shlibs_CXX=yes
12666	;;
12667
12668      openbsd2*)
12669        # C++ shared libraries are fairly broken
12670	ld_shlibs_CXX=no
12671	;;
12672
12673      openbsd*)
12674	if test -f /usr/libexec/ld.so; then
12675	  hardcode_direct_CXX=yes
12676	  hardcode_shlibpath_var_CXX=no
12677	  hardcode_direct_absolute_CXX=yes
12678	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12679	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12680	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12681	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12682	    export_dynamic_flag_spec_CXX='${wl}-E'
12683	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12684	  fi
12685	  output_verbose_link_cmd=echo
12686	else
12687	  ld_shlibs_CXX=no
12688	fi
12689	;;
12690
12691      osf3* | osf4* | osf5*)
12692        case $cc_basename in
12693          KCC*)
12694	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12695
12696	    # KCC will only create a shared library if the output file
12697	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12698	    # to its proper name (with version) after linking.
12699	    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'
12700
12701	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12702	    hardcode_libdir_separator_CXX=:
12703
12704	    # Archives containing C++ object files must be created using
12705	    # the KAI C++ compiler.
12706	    case $host in
12707	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12708	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12709	    esac
12710	    ;;
12711          RCC*)
12712	    # Rational C++ 2.4.1
12713	    # FIXME: insert proper C++ library support
12714	    ld_shlibs_CXX=no
12715	    ;;
12716          cxx*)
12717	    case $host in
12718	      osf3*)
12719	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12720	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12721	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12722		;;
12723	      *)
12724	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12725	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12726	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12727	          echo "-hidden">> $lib.exp~
12728	          $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12729	          $RM $lib.exp'
12730	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12731		;;
12732	    esac
12733
12734	    hardcode_libdir_separator_CXX=:
12735
12736	    # Commands to make compiler produce verbose output that lists
12737	    # what "hidden" libraries, object files and flags are used when
12738	    # linking a shared library.
12739	    #
12740	    # There doesn't appear to be a way to prevent this compiler from
12741	    # explicitly linking system object files so we need to strip them
12742	    # from the output so that they don't get included in the library
12743	    # dependencies.
12744	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12745	    ;;
12746	  *)
12747	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12748	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12749	      case $host in
12750	        osf3*)
12751	          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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12752		  ;;
12753	        *)
12754	          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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12755		  ;;
12756	      esac
12757
12758	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12759	      hardcode_libdir_separator_CXX=:
12760
12761	      # Commands to make compiler produce verbose output that lists
12762	      # what "hidden" libraries, object files and flags are used when
12763	      # linking a shared library.
12764	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12765
12766	    else
12767	      # FIXME: insert proper C++ library support
12768	      ld_shlibs_CXX=no
12769	    fi
12770	    ;;
12771        esac
12772        ;;
12773
12774      psos*)
12775        # FIXME: insert proper C++ library support
12776        ld_shlibs_CXX=no
12777        ;;
12778
12779      sunos4*)
12780        case $cc_basename in
12781          CC*)
12782	    # Sun C++ 4.x
12783	    # FIXME: insert proper C++ library support
12784	    ld_shlibs_CXX=no
12785	    ;;
12786          lcc*)
12787	    # Lucid
12788	    # FIXME: insert proper C++ library support
12789	    ld_shlibs_CXX=no
12790	    ;;
12791          *)
12792	    # FIXME: insert proper C++ library support
12793	    ld_shlibs_CXX=no
12794	    ;;
12795        esac
12796        ;;
12797
12798      solaris*)
12799        case $cc_basename in
12800          CC*)
12801	    # Sun C++ 4.2, 5.x and Centerline C++
12802            archive_cmds_need_lc_CXX=yes
12803	    no_undefined_flag_CXX=' -zdefs'
12804	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12805	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12806	      $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'
12807
12808	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12809	    hardcode_shlibpath_var_CXX=no
12810	    case $host_os in
12811	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12812	      *)
12813		# The compiler driver will combine and reorder linker options,
12814		# but understands `-z linker_flag'.
12815	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12816		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12817	        ;;
12818	    esac
12819	    link_all_deplibs_CXX=yes
12820
12821	    output_verbose_link_cmd='echo'
12822
12823	    # Archives containing C++ object files must be created using
12824	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12825	    # necessary to make sure instantiated templates are included
12826	    # in the archive.
12827	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12828	    ;;
12829          gcx*)
12830	    # Green Hills C++ Compiler
12831	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12832
12833	    # The C++ compiler must be used to create the archive.
12834	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12835	    ;;
12836          *)
12837	    # GNU C++ compiler with Solaris linker
12838	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12839	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12840	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12841	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12842	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12843		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12844
12845	        # Commands to make compiler produce verbose output that lists
12846	        # what "hidden" libraries, object files and flags are used when
12847	        # linking a shared library.
12848	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12849	      else
12850	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12851	        # platform.
12852	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12853	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12854		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12855
12856	        # Commands to make compiler produce verbose output that lists
12857	        # what "hidden" libraries, object files and flags are used when
12858	        # linking a shared library.
12859	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12860	      fi
12861
12862	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12863	      case $host_os in
12864		solaris2.[0-5] | solaris2.[0-5].*) ;;
12865		*)
12866		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12867		  ;;
12868	      esac
12869	    fi
12870	    ;;
12871        esac
12872        ;;
12873
12874    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12875      no_undefined_flag_CXX='${wl}-z,text'
12876      archive_cmds_need_lc_CXX=no
12877      hardcode_shlibpath_var_CXX=no
12878      runpath_var='LD_RUN_PATH'
12879
12880      case $cc_basename in
12881        CC*)
12882	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12883	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12884	  ;;
12885	*)
12886	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12887	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12888	  ;;
12889      esac
12890      ;;
12891
12892      sysv5* | sco3.2v5* | sco5v6*)
12893	# Note: We can NOT use -z defs as we might desire, because we do not
12894	# link with -lc, and that would cause any symbols used from libc to
12895	# always be unresolved, which means just about no library would
12896	# ever link correctly.  If we're not using GNU ld we use -z text
12897	# though, which does catch some bad symbols but isn't as heavy-handed
12898	# as -z defs.
12899	no_undefined_flag_CXX='${wl}-z,text'
12900	allow_undefined_flag_CXX='${wl}-z,nodefs'
12901	archive_cmds_need_lc_CXX=no
12902	hardcode_shlibpath_var_CXX=no
12903	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12904	hardcode_libdir_separator_CXX=':'
12905	link_all_deplibs_CXX=yes
12906	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12907	runpath_var='LD_RUN_PATH'
12908
12909	case $cc_basename in
12910          CC*)
12911	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12912	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12913	    ;;
12914	  *)
12915	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12916	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12917	    ;;
12918	esac
12919      ;;
12920
12921      tandem*)
12922        case $cc_basename in
12923          NCC*)
12924	    # NonStop-UX NCC 3.20
12925	    # FIXME: insert proper C++ library support
12926	    ld_shlibs_CXX=no
12927	    ;;
12928          *)
12929	    # FIXME: insert proper C++ library support
12930	    ld_shlibs_CXX=no
12931	    ;;
12932        esac
12933        ;;
12934
12935      vxworks*)
12936        # FIXME: insert proper C++ library support
12937        ld_shlibs_CXX=no
12938        ;;
12939
12940      *)
12941        # FIXME: insert proper C++ library support
12942        ld_shlibs_CXX=no
12943        ;;
12944    esac
12945
12946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12947$as_echo "$ld_shlibs_CXX" >&6; }
12948    test "$ld_shlibs_CXX" = no && can_build_shared=no
12949
12950    GCC_CXX="$GXX"
12951    LD_CXX="$LD"
12952
12953    ## CAVEAT EMPTOR:
12954    ## There is no encapsulation within the following macros, do not change
12955    ## the running order or otherwise move them around unless you know exactly
12956    ## what you are doing...
12957    # Dependencies to place before and after the object being linked:
12958predep_objects_CXX=
12959postdep_objects_CXX=
12960predeps_CXX=
12961postdeps_CXX=
12962compiler_lib_search_path_CXX=
12963
12964cat > conftest.$ac_ext <<_LT_EOF
12965class Foo
12966{
12967public:
12968  Foo (void) { a = 0; }
12969private:
12970  int a;
12971};
12972_LT_EOF
12973
12974if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12975  (eval $ac_compile) 2>&5
12976  ac_status=$?
12977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12978  test $ac_status = 0; }; then
12979  # Parse the compiler output and extract the necessary
12980  # objects, libraries and library flags.
12981
12982  # Sentinel used to keep track of whether or not we are before
12983  # the conftest object file.
12984  pre_test_object_deps_done=no
12985
12986  for p in `eval "$output_verbose_link_cmd"`; do
12987    case $p in
12988
12989    -L* | -R* | -l*)
12990       # Some compilers place space between "-{L,R}" and the path.
12991       # Remove the space.
12992       if test $p = "-L" ||
12993          test $p = "-R"; then
12994	 prev=$p
12995	 continue
12996       else
12997	 prev=
12998       fi
12999
13000       if test "$pre_test_object_deps_done" = no; then
13001	 case $p in
13002	 -L* | -R*)
13003	   # Internal compiler library paths should come after those
13004	   # provided the user.  The postdeps already come after the
13005	   # user supplied libs so there is no need to process them.
13006	   if test -z "$compiler_lib_search_path_CXX"; then
13007	     compiler_lib_search_path_CXX="${prev}${p}"
13008	   else
13009	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13010	   fi
13011	   ;;
13012	 # The "-l" case would never come before the object being
13013	 # linked, so don't bother handling this case.
13014	 esac
13015       else
13016	 if test -z "$postdeps_CXX"; then
13017	   postdeps_CXX="${prev}${p}"
13018	 else
13019	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13020	 fi
13021       fi
13022       ;;
13023
13024    *.$objext)
13025       # This assumes that the test object file only shows up
13026       # once in the compiler output.
13027       if test "$p" = "conftest.$objext"; then
13028	 pre_test_object_deps_done=yes
13029	 continue
13030       fi
13031
13032       if test "$pre_test_object_deps_done" = no; then
13033	 if test -z "$predep_objects_CXX"; then
13034	   predep_objects_CXX="$p"
13035	 else
13036	   predep_objects_CXX="$predep_objects_CXX $p"
13037	 fi
13038       else
13039	 if test -z "$postdep_objects_CXX"; then
13040	   postdep_objects_CXX="$p"
13041	 else
13042	   postdep_objects_CXX="$postdep_objects_CXX $p"
13043	 fi
13044       fi
13045       ;;
13046
13047    *) ;; # Ignore the rest.
13048
13049    esac
13050  done
13051
13052  # Clean up.
13053  rm -f a.out a.exe
13054else
13055  echo "libtool.m4: error: problem compiling CXX test program"
13056fi
13057
13058$RM -f confest.$objext
13059
13060# PORTME: override above test on systems where it is broken
13061case $host_os in
13062interix[3-9]*)
13063  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13064  # hack all around it, let's just trust "g++" to DTRT.
13065  predep_objects_CXX=
13066  postdep_objects_CXX=
13067  postdeps_CXX=
13068  ;;
13069
13070linux*)
13071  case `$CC -V 2>&1 | sed 5q` in
13072  *Sun\ C*)
13073    # Sun C++ 5.9
13074
13075    # The more standards-conforming stlport4 library is
13076    # incompatible with the Cstd library. Avoid specifying
13077    # it if it's in CXXFLAGS. Ignore libCrun as
13078    # -library=stlport4 depends on it.
13079    case " $CXX $CXXFLAGS " in
13080    *" -library=stlport4 "*)
13081      solaris_use_stlport4=yes
13082      ;;
13083    esac
13084
13085    if test "$solaris_use_stlport4" != yes; then
13086      postdeps_CXX='-library=Cstd -library=Crun'
13087    fi
13088    ;;
13089  esac
13090  ;;
13091
13092solaris*)
13093  case $cc_basename in
13094  CC*)
13095    # The more standards-conforming stlport4 library is
13096    # incompatible with the Cstd library. Avoid specifying
13097    # it if it's in CXXFLAGS. Ignore libCrun as
13098    # -library=stlport4 depends on it.
13099    case " $CXX $CXXFLAGS " in
13100    *" -library=stlport4 "*)
13101      solaris_use_stlport4=yes
13102      ;;
13103    esac
13104
13105    # Adding this requires a known-good setup of shared libraries for
13106    # Sun compiler versions before 5.6, else PIC objects from an old
13107    # archive will be linked into the output, leading to subtle bugs.
13108    if test "$solaris_use_stlport4" != yes; then
13109      postdeps_CXX='-library=Cstd -library=Crun'
13110    fi
13111    ;;
13112  esac
13113  ;;
13114esac
13115
13116
13117case " $postdeps_CXX " in
13118*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13119esac
13120 compiler_lib_search_dirs_CXX=
13121if test -n "${compiler_lib_search_path_CXX}"; then
13122 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13123fi
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155    lt_prog_compiler_wl_CXX=
13156lt_prog_compiler_pic_CXX=
13157lt_prog_compiler_static_CXX=
13158
13159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13160$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13161
13162  # C++ specific cases for pic, static, wl, etc.
13163  if test "$GXX" = yes; then
13164    lt_prog_compiler_wl_CXX='-Wl,'
13165    lt_prog_compiler_static_CXX='-static'
13166
13167    case $host_os in
13168    aix*)
13169      # All AIX code is PIC.
13170      if test "$host_cpu" = ia64; then
13171	# AIX 5 now supports IA64 processor
13172	lt_prog_compiler_static_CXX='-Bstatic'
13173      fi
13174      ;;
13175
13176    amigaos*)
13177      case $host_cpu in
13178      powerpc)
13179            # see comment about AmigaOS4 .so support
13180            lt_prog_compiler_pic_CXX='-fPIC'
13181        ;;
13182      m68k)
13183            # FIXME: we need at least 68020 code to build shared libraries, but
13184            # adding the `-m68020' flag to GCC prevents building anything better,
13185            # like `-m68040'.
13186            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13187        ;;
13188      esac
13189      ;;
13190
13191    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13192      # PIC is the default for these OSes.
13193      ;;
13194    mingw* | cygwin* | os2* | pw32* | cegcc*)
13195      # This hack is so that the source file can tell whether it is being
13196      # built for inclusion in a dll (and should export symbols for example).
13197      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13198      # (--disable-auto-import) libraries
13199      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13200      ;;
13201    darwin* | rhapsody*)
13202      # PIC is the default on this platform
13203      # Common symbols not allowed in MH_DYLIB files
13204      lt_prog_compiler_pic_CXX='-fno-common'
13205      ;;
13206    *djgpp*)
13207      # DJGPP does not support shared libraries at all
13208      lt_prog_compiler_pic_CXX=
13209      ;;
13210    interix[3-9]*)
13211      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13212      # Instead, we relocate shared libraries at runtime.
13213      ;;
13214    sysv4*MP*)
13215      if test -d /usr/nec; then
13216	lt_prog_compiler_pic_CXX=-Kconform_pic
13217      fi
13218      ;;
13219    hpux*)
13220      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13221      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13222      # sets the default TLS model and affects inlining.
13223      case $host_cpu in
13224      hppa*64*)
13225	;;
13226      *)
13227	lt_prog_compiler_pic_CXX='-fPIC'
13228	;;
13229      esac
13230      ;;
13231    *qnx* | *nto*)
13232      # QNX uses GNU C++, but need to define -shared option too, otherwise
13233      # it will coredump.
13234      lt_prog_compiler_pic_CXX='-fPIC -shared'
13235      ;;
13236    *)
13237      lt_prog_compiler_pic_CXX='-fPIC'
13238      ;;
13239    esac
13240  else
13241    case $host_os in
13242      aix[4-9]*)
13243	# All AIX code is PIC.
13244	if test "$host_cpu" = ia64; then
13245	  # AIX 5 now supports IA64 processor
13246	  lt_prog_compiler_static_CXX='-Bstatic'
13247	else
13248	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13249	fi
13250	;;
13251      chorus*)
13252	case $cc_basename in
13253	cxch68*)
13254	  # Green Hills C++ Compiler
13255	  # _LT_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"
13256	  ;;
13257	esac
13258	;;
13259      dgux*)
13260	case $cc_basename in
13261	  ec++*)
13262	    lt_prog_compiler_pic_CXX='-KPIC'
13263	    ;;
13264	  ghcx*)
13265	    # Green Hills C++ Compiler
13266	    lt_prog_compiler_pic_CXX='-pic'
13267	    ;;
13268	  *)
13269	    ;;
13270	esac
13271	;;
13272      freebsd* | dragonfly*)
13273	# FreeBSD uses GNU C++
13274	;;
13275      hpux9* | hpux10* | hpux11*)
13276	case $cc_basename in
13277	  CC*)
13278	    lt_prog_compiler_wl_CXX='-Wl,'
13279	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13280	    if test "$host_cpu" != ia64; then
13281	      lt_prog_compiler_pic_CXX='+Z'
13282	    fi
13283	    ;;
13284	  aCC*)
13285	    lt_prog_compiler_wl_CXX='-Wl,'
13286	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13287	    case $host_cpu in
13288	    hppa*64*|ia64*)
13289	      # +Z the default
13290	      ;;
13291	    *)
13292	      lt_prog_compiler_pic_CXX='+Z'
13293	      ;;
13294	    esac
13295	    ;;
13296	  *)
13297	    ;;
13298	esac
13299	;;
13300      interix*)
13301	# This is c89, which is MS Visual C++ (no shared libs)
13302	# Anyone wants to do a port?
13303	;;
13304      irix5* | irix6* | nonstopux*)
13305	case $cc_basename in
13306	  CC*)
13307	    lt_prog_compiler_wl_CXX='-Wl,'
13308	    lt_prog_compiler_static_CXX='-non_shared'
13309	    # CC pic flag -KPIC is the default.
13310	    ;;
13311	  *)
13312	    ;;
13313	esac
13314	;;
13315      linux* | k*bsd*-gnu)
13316	case $cc_basename in
13317	  KCC*)
13318	    # KAI C++ Compiler
13319	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13320	    lt_prog_compiler_pic_CXX='-fPIC'
13321	    ;;
13322	  ecpc* )
13323	    # old Intel C++ for x86_64 which still supported -KPIC.
13324	    lt_prog_compiler_wl_CXX='-Wl,'
13325	    lt_prog_compiler_pic_CXX='-KPIC'
13326	    lt_prog_compiler_static_CXX='-static'
13327	    ;;
13328	  icpc* )
13329	    # Intel C++, used to be incompatible with GCC.
13330	    # ICC 10 doesn't accept -KPIC any more.
13331	    lt_prog_compiler_wl_CXX='-Wl,'
13332	    lt_prog_compiler_pic_CXX='-fPIC'
13333	    lt_prog_compiler_static_CXX='-static'
13334	    ;;
13335	  pgCC* | pgcpp*)
13336	    # Portland Group C++ compiler
13337	    lt_prog_compiler_wl_CXX='-Wl,'
13338	    lt_prog_compiler_pic_CXX='-fpic'
13339	    lt_prog_compiler_static_CXX='-Bstatic'
13340	    ;;
13341	  cxx*)
13342	    # Compaq C++
13343	    # Make sure the PIC flag is empty.  It appears that all Alpha
13344	    # Linux and Compaq Tru64 Unix objects are PIC.
13345	    lt_prog_compiler_pic_CXX=
13346	    lt_prog_compiler_static_CXX='-non_shared'
13347	    ;;
13348	  xlc* | xlC*)
13349	    # IBM XL 8.0 on PPC
13350	    lt_prog_compiler_wl_CXX='-Wl,'
13351	    lt_prog_compiler_pic_CXX='-qpic'
13352	    lt_prog_compiler_static_CXX='-qstaticlink'
13353	    ;;
13354	  *)
13355	    case `$CC -V 2>&1 | sed 5q` in
13356	    *Sun\ C*)
13357	      # Sun C++ 5.9
13358	      lt_prog_compiler_pic_CXX='-KPIC'
13359	      lt_prog_compiler_static_CXX='-Bstatic'
13360	      lt_prog_compiler_wl_CXX='-Qoption ld '
13361	      ;;
13362	    esac
13363	    ;;
13364	esac
13365	;;
13366      lynxos*)
13367	;;
13368      m88k*)
13369	;;
13370      mvs*)
13371	case $cc_basename in
13372	  cxx*)
13373	    lt_prog_compiler_pic_CXX='-W c,exportall'
13374	    ;;
13375	  *)
13376	    ;;
13377	esac
13378	;;
13379      netbsd* | netbsdelf*-gnu)
13380	;;
13381      *qnx* | *nto*)
13382        # QNX uses GNU C++, but need to define -shared option too, otherwise
13383        # it will coredump.
13384        lt_prog_compiler_pic_CXX='-fPIC -shared'
13385        ;;
13386      osf3* | osf4* | osf5*)
13387	case $cc_basename in
13388	  KCC*)
13389	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13390	    ;;
13391	  RCC*)
13392	    # Rational C++ 2.4.1
13393	    lt_prog_compiler_pic_CXX='-pic'
13394	    ;;
13395	  cxx*)
13396	    # Digital/Compaq C++
13397	    lt_prog_compiler_wl_CXX='-Wl,'
13398	    # Make sure the PIC flag is empty.  It appears that all Alpha
13399	    # Linux and Compaq Tru64 Unix objects are PIC.
13400	    lt_prog_compiler_pic_CXX=
13401	    lt_prog_compiler_static_CXX='-non_shared'
13402	    ;;
13403	  *)
13404	    ;;
13405	esac
13406	;;
13407      psos*)
13408	;;
13409      solaris*)
13410	case $cc_basename in
13411	  CC*)
13412	    # Sun C++ 4.2, 5.x and Centerline C++
13413	    lt_prog_compiler_pic_CXX='-KPIC'
13414	    lt_prog_compiler_static_CXX='-Bstatic'
13415	    lt_prog_compiler_wl_CXX='-Qoption ld '
13416	    ;;
13417	  gcx*)
13418	    # Green Hills C++ Compiler
13419	    lt_prog_compiler_pic_CXX='-PIC'
13420	    ;;
13421	  *)
13422	    ;;
13423	esac
13424	;;
13425      sunos4*)
13426	case $cc_basename in
13427	  CC*)
13428	    # Sun C++ 4.x
13429	    lt_prog_compiler_pic_CXX='-pic'
13430	    lt_prog_compiler_static_CXX='-Bstatic'
13431	    ;;
13432	  lcc*)
13433	    # Lucid
13434	    lt_prog_compiler_pic_CXX='-pic'
13435	    ;;
13436	  *)
13437	    ;;
13438	esac
13439	;;
13440      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13441	case $cc_basename in
13442	  CC*)
13443	    lt_prog_compiler_wl_CXX='-Wl,'
13444	    lt_prog_compiler_pic_CXX='-KPIC'
13445	    lt_prog_compiler_static_CXX='-Bstatic'
13446	    ;;
13447	esac
13448	;;
13449      tandem*)
13450	case $cc_basename in
13451	  NCC*)
13452	    # NonStop-UX NCC 3.20
13453	    lt_prog_compiler_pic_CXX='-KPIC'
13454	    ;;
13455	  *)
13456	    ;;
13457	esac
13458	;;
13459      vxworks*)
13460	;;
13461      *)
13462	lt_prog_compiler_can_build_shared_CXX=no
13463	;;
13464    esac
13465  fi
13466
13467case $host_os in
13468  # For platforms which do not support PIC, -DPIC is meaningless:
13469  *djgpp*)
13470    lt_prog_compiler_pic_CXX=
13471    ;;
13472  *)
13473    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13474    ;;
13475esac
13476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13477$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13478
13479
13480
13481#
13482# Check to make sure the PIC flag actually works.
13483#
13484if test -n "$lt_prog_compiler_pic_CXX"; then
13485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13486$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13487if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13488  $as_echo_n "(cached) " >&6
13489else
13490  lt_cv_prog_compiler_pic_works_CXX=no
13491   ac_outfile=conftest.$ac_objext
13492   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13493   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13494   # Insert the option either (1) after the last *FLAGS variable, or
13495   # (2) before a word containing "conftest.", or (3) at the end.
13496   # Note that $ac_compile itself does not contain backslashes and begins
13497   # with a dollar sign (not a hyphen), so the echo should work correctly.
13498   # The option is referenced via a variable to avoid confusing sed.
13499   lt_compile=`echo "$ac_compile" | $SED \
13500   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13501   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13502   -e 's:$: $lt_compiler_flag:'`
13503   (eval echo "\"\$as_me:13503: $lt_compile\"" >&5)
13504   (eval "$lt_compile" 2>conftest.err)
13505   ac_status=$?
13506   cat conftest.err >&5
13507   echo "$as_me:13507: \$? = $ac_status" >&5
13508   if (exit $ac_status) && test -s "$ac_outfile"; then
13509     # The compiler can only warn and ignore the option if not recognized
13510     # So say no if there are warnings other than the usual output.
13511     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13512     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13513     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13514       lt_cv_prog_compiler_pic_works_CXX=yes
13515     fi
13516   fi
13517   $RM conftest*
13518
13519fi
13520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13521$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13522
13523if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13524    case $lt_prog_compiler_pic_CXX in
13525     "" | " "*) ;;
13526     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13527     esac
13528else
13529    lt_prog_compiler_pic_CXX=
13530     lt_prog_compiler_can_build_shared_CXX=no
13531fi
13532
13533fi
13534
13535
13536
13537#
13538# Check to make sure the static flag actually works.
13539#
13540wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13542$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13543if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13544  $as_echo_n "(cached) " >&6
13545else
13546  lt_cv_prog_compiler_static_works_CXX=no
13547   save_LDFLAGS="$LDFLAGS"
13548   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13549   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13550   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13551     # The linker can only warn and ignore the option if not recognized
13552     # So say no if there are warnings
13553     if test -s conftest.err; then
13554       # Append any errors to the config.log.
13555       cat conftest.err 1>&5
13556       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13557       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13558       if diff conftest.exp conftest.er2 >/dev/null; then
13559         lt_cv_prog_compiler_static_works_CXX=yes
13560       fi
13561     else
13562       lt_cv_prog_compiler_static_works_CXX=yes
13563     fi
13564   fi
13565   $RM -r conftest*
13566   LDFLAGS="$save_LDFLAGS"
13567
13568fi
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13570$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13571
13572if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13573    :
13574else
13575    lt_prog_compiler_static_CXX=
13576fi
13577
13578
13579
13580
13581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13582$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13583if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13584  $as_echo_n "(cached) " >&6
13585else
13586  lt_cv_prog_compiler_c_o_CXX=no
13587   $RM -r conftest 2>/dev/null
13588   mkdir conftest
13589   cd conftest
13590   mkdir out
13591   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13592
13593   lt_compiler_flag="-o out/conftest2.$ac_objext"
13594   # Insert the option either (1) after the last *FLAGS variable, or
13595   # (2) before a word containing "conftest.", or (3) at the end.
13596   # Note that $ac_compile itself does not contain backslashes and begins
13597   # with a dollar sign (not a hyphen), so the echo should work correctly.
13598   lt_compile=`echo "$ac_compile" | $SED \
13599   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13600   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13601   -e 's:$: $lt_compiler_flag:'`
13602   (eval echo "\"\$as_me:13602: $lt_compile\"" >&5)
13603   (eval "$lt_compile" 2>out/conftest.err)
13604   ac_status=$?
13605   cat out/conftest.err >&5
13606   echo "$as_me:13606: \$? = $ac_status" >&5
13607   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13608   then
13609     # The compiler can only warn and ignore the option if not recognized
13610     # So say no if there are warnings
13611     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13612     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13613     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13614       lt_cv_prog_compiler_c_o_CXX=yes
13615     fi
13616   fi
13617   chmod u+w . 2>&5
13618   $RM conftest*
13619   # SGI C++ compiler will create directory out/ii_files/ for
13620   # template instantiation
13621   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13622   $RM out/* && rmdir out
13623   cd ..
13624   $RM -r conftest
13625   $RM conftest*
13626
13627fi
13628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13629$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13630
13631
13632
13633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13634$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13635if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13636  $as_echo_n "(cached) " >&6
13637else
13638  lt_cv_prog_compiler_c_o_CXX=no
13639   $RM -r conftest 2>/dev/null
13640   mkdir conftest
13641   cd conftest
13642   mkdir out
13643   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13644
13645   lt_compiler_flag="-o out/conftest2.$ac_objext"
13646   # Insert the option either (1) after the last *FLAGS variable, or
13647   # (2) before a word containing "conftest.", or (3) at the end.
13648   # Note that $ac_compile itself does not contain backslashes and begins
13649   # with a dollar sign (not a hyphen), so the echo should work correctly.
13650   lt_compile=`echo "$ac_compile" | $SED \
13651   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13652   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13653   -e 's:$: $lt_compiler_flag:'`
13654   (eval echo "\"\$as_me:13654: $lt_compile\"" >&5)
13655   (eval "$lt_compile" 2>out/conftest.err)
13656   ac_status=$?
13657   cat out/conftest.err >&5
13658   echo "$as_me:13658: \$? = $ac_status" >&5
13659   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13660   then
13661     # The compiler can only warn and ignore the option if not recognized
13662     # So say no if there are warnings
13663     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13664     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13665     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13666       lt_cv_prog_compiler_c_o_CXX=yes
13667     fi
13668   fi
13669   chmod u+w . 2>&5
13670   $RM conftest*
13671   # SGI C++ compiler will create directory out/ii_files/ for
13672   # template instantiation
13673   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13674   $RM out/* && rmdir out
13675   cd ..
13676   $RM -r conftest
13677   $RM conftest*
13678
13679fi
13680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13681$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13682
13683
13684
13685
13686hard_links="nottested"
13687if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13688  # do not overwrite the value of need_locks provided by the user
13689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13690$as_echo_n "checking if we can lock with hard links... " >&6; }
13691  hard_links=yes
13692  $RM conftest*
13693  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13694  touch conftest.a
13695  ln conftest.a conftest.b 2>&5 || hard_links=no
13696  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13698$as_echo "$hard_links" >&6; }
13699  if test "$hard_links" = no; then
13700    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13701$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13702    need_locks=warn
13703  fi
13704else
13705  need_locks=no
13706fi
13707
13708
13709
13710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13711$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13712
13713  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13714  case $host_os in
13715  aix[4-9]*)
13716    # If we're using GNU nm, then we don't want the "-C" option.
13717    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13718    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13719      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'
13720    else
13721      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'
13722    fi
13723    ;;
13724  pw32*)
13725    export_symbols_cmds_CXX="$ltdll_cmds"
13726  ;;
13727  cygwin* | mingw* | cegcc*)
13728    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'
13729  ;;
13730  linux* | k*bsd*-gnu)
13731    link_all_deplibs_CXX=no
13732  ;;
13733  *)
13734    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13735  ;;
13736  esac
13737  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13738
13739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13740$as_echo "$ld_shlibs_CXX" >&6; }
13741test "$ld_shlibs_CXX" = no && can_build_shared=no
13742
13743with_gnu_ld_CXX=$with_gnu_ld
13744
13745
13746
13747
13748
13749
13750#
13751# Do we need to explicitly link libc?
13752#
13753case "x$archive_cmds_need_lc_CXX" in
13754x|xyes)
13755  # Assume -lc should be added
13756  archive_cmds_need_lc_CXX=yes
13757
13758  if test "$enable_shared" = yes && test "$GCC" = yes; then
13759    case $archive_cmds_CXX in
13760    *'~'*)
13761      # FIXME: we may have to deal with multi-command sequences.
13762      ;;
13763    '$CC '*)
13764      # Test whether the compiler implicitly links with -lc since on some
13765      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13766      # to ld, don't add -lc before -lgcc.
13767      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13768$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13769      $RM conftest*
13770      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13771
13772      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13773  (eval $ac_compile) 2>&5
13774  ac_status=$?
13775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13776  test $ac_status = 0; } 2>conftest.err; then
13777        soname=conftest
13778        lib=conftest
13779        libobjs=conftest.$ac_objext
13780        deplibs=
13781        wl=$lt_prog_compiler_wl_CXX
13782	pic_flag=$lt_prog_compiler_pic_CXX
13783        compiler_flags=-v
13784        linker_flags=-v
13785        verstring=
13786        output_objdir=.
13787        libname=conftest
13788        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13789        allow_undefined_flag_CXX=
13790        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13791  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13792  ac_status=$?
13793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13794  test $ac_status = 0; }
13795        then
13796	  archive_cmds_need_lc_CXX=no
13797        else
13798	  archive_cmds_need_lc_CXX=yes
13799        fi
13800        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13801      else
13802        cat conftest.err 1>&5
13803      fi
13804      $RM conftest*
13805      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13806$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13807      ;;
13808    esac
13809  fi
13810  ;;
13811esac
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13877$as_echo_n "checking dynamic linker characteristics... " >&6; }
13878
13879library_names_spec=
13880libname_spec='lib$name'
13881soname_spec=
13882shrext_cmds=".so"
13883postinstall_cmds=
13884postuninstall_cmds=
13885finish_cmds=
13886finish_eval=
13887shlibpath_var=
13888shlibpath_overrides_runpath=unknown
13889version_type=none
13890dynamic_linker="$host_os ld.so"
13891sys_lib_dlsearch_path_spec="/lib /usr/lib"
13892need_lib_prefix=unknown
13893hardcode_into_libs=no
13894
13895# when you set need_version to no, make sure it does not cause -set_version
13896# flags to be left without arguments
13897need_version=unknown
13898
13899case $host_os in
13900aix3*)
13901  version_type=linux
13902  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13903  shlibpath_var=LIBPATH
13904
13905  # AIX 3 has no versioning support, so we append a major version to the name.
13906  soname_spec='${libname}${release}${shared_ext}$major'
13907  ;;
13908
13909aix[4-9]*)
13910  version_type=linux
13911  need_lib_prefix=no
13912  need_version=no
13913  hardcode_into_libs=yes
13914  if test "$host_cpu" = ia64; then
13915    # AIX 5 supports IA64
13916    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13917    shlibpath_var=LD_LIBRARY_PATH
13918  else
13919    # With GCC up to 2.95.x, collect2 would create an import file
13920    # for dependence libraries.  The import file would start with
13921    # the line `#! .'.  This would cause the generated library to
13922    # depend on `.', always an invalid library.  This was fixed in
13923    # development snapshots of GCC prior to 3.0.
13924    case $host_os in
13925      aix4 | aix4.[01] | aix4.[01].*)
13926      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13927	   echo ' yes '
13928	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13929	:
13930      else
13931	can_build_shared=no
13932      fi
13933      ;;
13934    esac
13935    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13936    # soname into executable. Probably we can add versioning support to
13937    # collect2, so additional links can be useful in future.
13938    if test "$aix_use_runtimelinking" = yes; then
13939      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13940      # instead of lib<name>.a to let people know that these are not
13941      # typical AIX shared libraries.
13942      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13943    else
13944      # We preserve .a as extension for shared libraries through AIX4.2
13945      # and later when we are not doing run time linking.
13946      library_names_spec='${libname}${release}.a $libname.a'
13947      soname_spec='${libname}${release}${shared_ext}$major'
13948    fi
13949    shlibpath_var=LIBPATH
13950  fi
13951  ;;
13952
13953amigaos*)
13954  case $host_cpu in
13955  powerpc)
13956    # Since July 2007 AmigaOS4 officially supports .so libraries.
13957    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13958    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13959    ;;
13960  m68k)
13961    library_names_spec='$libname.ixlibrary $libname.a'
13962    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13963    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'
13964    ;;
13965  esac
13966  ;;
13967
13968beos*)
13969  library_names_spec='${libname}${shared_ext}'
13970  dynamic_linker="$host_os ld.so"
13971  shlibpath_var=LIBRARY_PATH
13972  ;;
13973
13974bsdi[45]*)
13975  version_type=linux
13976  need_version=no
13977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978  soname_spec='${libname}${release}${shared_ext}$major'
13979  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13980  shlibpath_var=LD_LIBRARY_PATH
13981  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13982  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13983  # the default ld.so.conf also contains /usr/contrib/lib and
13984  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13985  # libtool to hard-code these into programs
13986  ;;
13987
13988cygwin* | mingw* | pw32* | cegcc*)
13989  version_type=windows
13990  shrext_cmds=".dll"
13991  need_version=no
13992  need_lib_prefix=no
13993
13994  case $GCC,$host_os in
13995  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13996    library_names_spec='$libname.dll.a'
13997    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13998    postinstall_cmds='base_file=`basename \${file}`~
13999      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14000      dldir=$destdir/`dirname \$dlpath`~
14001      test -d \$dldir || mkdir -p \$dldir~
14002      $install_prog $dir/$dlname \$dldir/$dlname~
14003      chmod a+x \$dldir/$dlname~
14004      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14005        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14006      fi'
14007    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14008      dlpath=$dir/\$dldll~
14009       $RM \$dlpath'
14010    shlibpath_overrides_runpath=yes
14011
14012    case $host_os in
14013    cygwin*)
14014      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14015      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14016      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14017      ;;
14018    mingw* | cegcc*)
14019      # MinGW DLLs use traditional 'lib' prefix
14020      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14021      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14022      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14023        # It is most probably a Windows format PATH printed by
14024        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14025        # path with ; separators, and with drive letters. We can handle the
14026        # drive letters (cygwin fileutils understands them), so leave them,
14027        # especially as we might pass files found there to a mingw objdump,
14028        # which wouldn't understand a cygwinified path. Ahh.
14029        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14030      else
14031        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14032      fi
14033      ;;
14034    pw32*)
14035      # pw32 DLLs use 'pw' prefix rather than 'lib'
14036      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14037      ;;
14038    esac
14039    ;;
14040
14041  *)
14042    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14043    ;;
14044  esac
14045  dynamic_linker='Win32 ld.exe'
14046  # FIXME: first we should search . and the directory the executable is in
14047  shlibpath_var=PATH
14048  ;;
14049
14050darwin* | rhapsody*)
14051  dynamic_linker="$host_os dyld"
14052  version_type=darwin
14053  need_lib_prefix=no
14054  need_version=no
14055  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14056  soname_spec='${libname}${release}${major}$shared_ext'
14057  shlibpath_overrides_runpath=yes
14058  shlibpath_var=DYLD_LIBRARY_PATH
14059  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14060
14061  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14062  ;;
14063
14064dgux*)
14065  version_type=linux
14066  need_lib_prefix=no
14067  need_version=no
14068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14069  soname_spec='${libname}${release}${shared_ext}$major'
14070  shlibpath_var=LD_LIBRARY_PATH
14071  ;;
14072
14073freebsd1*)
14074  dynamic_linker=no
14075  ;;
14076
14077freebsd* | dragonfly*)
14078  # DragonFly does not have aout.  When/if they implement a new
14079  # versioning mechanism, adjust this.
14080  if test -x /usr/bin/objformat; then
14081    objformat=`/usr/bin/objformat`
14082  else
14083    case $host_os in
14084    freebsd[123]*) objformat=aout ;;
14085    *) objformat=elf ;;
14086    esac
14087  fi
14088  version_type=freebsd-$objformat
14089  case $version_type in
14090    freebsd-elf*)
14091      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14092      need_version=no
14093      need_lib_prefix=no
14094      ;;
14095    freebsd-*)
14096      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14097      need_version=yes
14098      ;;
14099  esac
14100  shlibpath_var=LD_LIBRARY_PATH
14101  case $host_os in
14102  freebsd2*)
14103    shlibpath_overrides_runpath=yes
14104    ;;
14105  freebsd3.[01]* | freebsdelf3.[01]*)
14106    shlibpath_overrides_runpath=yes
14107    hardcode_into_libs=yes
14108    ;;
14109  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14110  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14111    shlibpath_overrides_runpath=no
14112    hardcode_into_libs=yes
14113    ;;
14114  *) # from 4.6 on, and DragonFly
14115    shlibpath_overrides_runpath=yes
14116    hardcode_into_libs=yes
14117    ;;
14118  esac
14119  ;;
14120
14121gnu*)
14122  version_type=linux
14123  need_lib_prefix=no
14124  need_version=no
14125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14126  soname_spec='${libname}${release}${shared_ext}$major'
14127  shlibpath_var=LD_LIBRARY_PATH
14128  hardcode_into_libs=yes
14129  ;;
14130
14131hpux9* | hpux10* | hpux11*)
14132  # Give a soname corresponding to the major version so that dld.sl refuses to
14133  # link against other versions.
14134  version_type=sunos
14135  need_lib_prefix=no
14136  need_version=no
14137  case $host_cpu in
14138  ia64*)
14139    shrext_cmds='.so'
14140    hardcode_into_libs=yes
14141    dynamic_linker="$host_os dld.so"
14142    shlibpath_var=LD_LIBRARY_PATH
14143    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14144    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14145    soname_spec='${libname}${release}${shared_ext}$major'
14146    if test "X$HPUX_IA64_MODE" = X32; then
14147      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14148    else
14149      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14150    fi
14151    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14152    ;;
14153  hppa*64*)
14154    shrext_cmds='.sl'
14155    hardcode_into_libs=yes
14156    dynamic_linker="$host_os dld.sl"
14157    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14158    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14159    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160    soname_spec='${libname}${release}${shared_ext}$major'
14161    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14162    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14163    ;;
14164  *)
14165    shrext_cmds='.sl'
14166    dynamic_linker="$host_os dld.sl"
14167    shlibpath_var=SHLIB_PATH
14168    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14169    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14170    soname_spec='${libname}${release}${shared_ext}$major'
14171    ;;
14172  esac
14173  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14174  postinstall_cmds='chmod 555 $lib'
14175  ;;
14176
14177interix[3-9]*)
14178  version_type=linux
14179  need_lib_prefix=no
14180  need_version=no
14181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14182  soname_spec='${libname}${release}${shared_ext}$major'
14183  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14184  shlibpath_var=LD_LIBRARY_PATH
14185  shlibpath_overrides_runpath=no
14186  hardcode_into_libs=yes
14187  ;;
14188
14189irix5* | irix6* | nonstopux*)
14190  case $host_os in
14191    nonstopux*) version_type=nonstopux ;;
14192    *)
14193	if test "$lt_cv_prog_gnu_ld" = yes; then
14194		version_type=linux
14195	else
14196		version_type=irix
14197	fi ;;
14198  esac
14199  need_lib_prefix=no
14200  need_version=no
14201  soname_spec='${libname}${release}${shared_ext}$major'
14202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14203  case $host_os in
14204  irix5* | nonstopux*)
14205    libsuff= shlibsuff=
14206    ;;
14207  *)
14208    case $LD in # libtool.m4 will add one of these switches to LD
14209    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14210      libsuff= shlibsuff= libmagic=32-bit;;
14211    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14212      libsuff=32 shlibsuff=N32 libmagic=N32;;
14213    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14214      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14215    *) libsuff= shlibsuff= libmagic=never-match;;
14216    esac
14217    ;;
14218  esac
14219  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14220  shlibpath_overrides_runpath=no
14221  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14222  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14223  hardcode_into_libs=yes
14224  ;;
14225
14226# No shared lib support for Linux oldld, aout, or coff.
14227linux*oldld* | linux*aout* | linux*coff*)
14228  dynamic_linker=no
14229  ;;
14230
14231# This must be Linux ELF.
14232linux* | k*bsd*-gnu)
14233  version_type=linux
14234  need_lib_prefix=no
14235  need_version=no
14236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14237  soname_spec='${libname}${release}${shared_ext}$major'
14238  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14239  shlibpath_var=LD_LIBRARY_PATH
14240  shlibpath_overrides_runpath=no
14241  # Some binutils ld are patched to set DT_RUNPATH
14242  save_LDFLAGS=$LDFLAGS
14243  save_libdir=$libdir
14244  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14245       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247/* end confdefs.h.  */
14248
14249int
14250main ()
14251{
14252
14253  ;
14254  return 0;
14255}
14256_ACEOF
14257if ac_fn_cxx_try_link "$LINENO"; then :
14258  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14259  shlibpath_overrides_runpath=yes
14260fi
14261fi
14262rm -f core conftest.err conftest.$ac_objext \
14263    conftest$ac_exeext conftest.$ac_ext
14264  LDFLAGS=$save_LDFLAGS
14265  libdir=$save_libdir
14266
14267  # This implies no fast_install, which is unacceptable.
14268  # Some rework will be needed to allow for fast_install
14269  # before this can be enabled.
14270  hardcode_into_libs=yes
14271
14272  # Append ld.so.conf contents to the search path
14273  if test -f /etc/ld.so.conf; then
14274    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' ' '`
14275    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14276  fi
14277
14278  # We used to test for /lib/ld.so.1 and disable shared libraries on
14279  # powerpc, because MkLinux only supported shared libraries with the
14280  # GNU dynamic linker.  Since this was broken with cross compilers,
14281  # most powerpc-linux boxes support dynamic linking these days and
14282  # people can always --disable-shared, the test was removed, and we
14283  # assume the GNU/Linux dynamic linker is in use.
14284  dynamic_linker='GNU/Linux ld.so'
14285  ;;
14286
14287netbsdelf*-gnu)
14288  version_type=linux
14289  need_lib_prefix=no
14290  need_version=no
14291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14292  soname_spec='${libname}${release}${shared_ext}$major'
14293  shlibpath_var=LD_LIBRARY_PATH
14294  shlibpath_overrides_runpath=no
14295  hardcode_into_libs=yes
14296  dynamic_linker='NetBSD ld.elf_so'
14297  ;;
14298
14299netbsd*)
14300  version_type=sunos
14301  need_lib_prefix=no
14302  need_version=no
14303  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14304    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14305    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14306    dynamic_linker='NetBSD (a.out) ld.so'
14307  else
14308    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14309    soname_spec='${libname}${release}${shared_ext}$major'
14310    dynamic_linker='NetBSD ld.elf_so'
14311  fi
14312  shlibpath_var=LD_LIBRARY_PATH
14313  shlibpath_overrides_runpath=yes
14314  hardcode_into_libs=yes
14315  ;;
14316
14317newsos6)
14318  version_type=linux
14319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14320  shlibpath_var=LD_LIBRARY_PATH
14321  shlibpath_overrides_runpath=yes
14322  ;;
14323
14324*nto* | *qnx*)
14325  version_type=qnx
14326  need_lib_prefix=no
14327  need_version=no
14328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14329  soname_spec='${libname}${release}${shared_ext}$major'
14330  shlibpath_var=LD_LIBRARY_PATH
14331  shlibpath_overrides_runpath=no
14332  hardcode_into_libs=yes
14333  dynamic_linker='ldqnx.so'
14334  ;;
14335
14336openbsd*)
14337  version_type=sunos
14338  sys_lib_dlsearch_path_spec="/usr/lib"
14339  need_lib_prefix=no
14340  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14341  case $host_os in
14342    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14343    *)				need_version=no  ;;
14344  esac
14345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14346  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14347  shlibpath_var=LD_LIBRARY_PATH
14348  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14349    case $host_os in
14350      openbsd2.[89] | openbsd2.[89].*)
14351	shlibpath_overrides_runpath=no
14352	;;
14353      *)
14354	shlibpath_overrides_runpath=yes
14355	;;
14356      esac
14357  else
14358    shlibpath_overrides_runpath=yes
14359  fi
14360  ;;
14361
14362os2*)
14363  libname_spec='$name'
14364  shrext_cmds=".dll"
14365  need_lib_prefix=no
14366  library_names_spec='$libname${shared_ext} $libname.a'
14367  dynamic_linker='OS/2 ld.exe'
14368  shlibpath_var=LIBPATH
14369  ;;
14370
14371osf3* | osf4* | osf5*)
14372  version_type=osf
14373  need_lib_prefix=no
14374  need_version=no
14375  soname_spec='${libname}${release}${shared_ext}$major'
14376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14377  shlibpath_var=LD_LIBRARY_PATH
14378  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14379  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14380  ;;
14381
14382rdos*)
14383  dynamic_linker=no
14384  ;;
14385
14386solaris*)
14387  version_type=linux
14388  need_lib_prefix=no
14389  need_version=no
14390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391  soname_spec='${libname}${release}${shared_ext}$major'
14392  shlibpath_var=LD_LIBRARY_PATH
14393  shlibpath_overrides_runpath=yes
14394  hardcode_into_libs=yes
14395  # ldd complains unless libraries are executable
14396  postinstall_cmds='chmod +x $lib'
14397  ;;
14398
14399sunos4*)
14400  version_type=sunos
14401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14402  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14403  shlibpath_var=LD_LIBRARY_PATH
14404  shlibpath_overrides_runpath=yes
14405  if test "$with_gnu_ld" = yes; then
14406    need_lib_prefix=no
14407  fi
14408  need_version=yes
14409  ;;
14410
14411sysv4 | sysv4.3*)
14412  version_type=linux
14413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14414  soname_spec='${libname}${release}${shared_ext}$major'
14415  shlibpath_var=LD_LIBRARY_PATH
14416  case $host_vendor in
14417    sni)
14418      shlibpath_overrides_runpath=no
14419      need_lib_prefix=no
14420      runpath_var=LD_RUN_PATH
14421      ;;
14422    siemens)
14423      need_lib_prefix=no
14424      ;;
14425    motorola)
14426      need_lib_prefix=no
14427      need_version=no
14428      shlibpath_overrides_runpath=no
14429      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14430      ;;
14431  esac
14432  ;;
14433
14434sysv4*MP*)
14435  if test -d /usr/nec ;then
14436    version_type=linux
14437    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14438    soname_spec='$libname${shared_ext}.$major'
14439    shlibpath_var=LD_LIBRARY_PATH
14440  fi
14441  ;;
14442
14443sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14444  version_type=freebsd-elf
14445  need_lib_prefix=no
14446  need_version=no
14447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14448  soname_spec='${libname}${release}${shared_ext}$major'
14449  shlibpath_var=LD_LIBRARY_PATH
14450  shlibpath_overrides_runpath=yes
14451  hardcode_into_libs=yes
14452  if test "$with_gnu_ld" = yes; then
14453    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14454  else
14455    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14456    case $host_os in
14457      sco3.2v5*)
14458        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14459	;;
14460    esac
14461  fi
14462  sys_lib_dlsearch_path_spec='/usr/lib'
14463  ;;
14464
14465tpf*)
14466  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14467  version_type=linux
14468  need_lib_prefix=no
14469  need_version=no
14470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471  shlibpath_var=LD_LIBRARY_PATH
14472  shlibpath_overrides_runpath=no
14473  hardcode_into_libs=yes
14474  ;;
14475
14476uts4*)
14477  version_type=linux
14478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14479  soname_spec='${libname}${release}${shared_ext}$major'
14480  shlibpath_var=LD_LIBRARY_PATH
14481  ;;
14482
14483*)
14484  dynamic_linker=no
14485  ;;
14486esac
14487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14488$as_echo "$dynamic_linker" >&6; }
14489test "$dynamic_linker" = no && can_build_shared=no
14490
14491variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14492if test "$GCC" = yes; then
14493  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14494fi
14495
14496if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14497  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14498fi
14499if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14500  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14501fi
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14539$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14540hardcode_action_CXX=
14541if test -n "$hardcode_libdir_flag_spec_CXX" ||
14542   test -n "$runpath_var_CXX" ||
14543   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14544
14545  # We can hardcode non-existent directories.
14546  if test "$hardcode_direct_CXX" != no &&
14547     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14548     # have to relink, otherwise we might link with an installed library
14549     # when we should be linking with a yet-to-be-installed one
14550     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14551     test "$hardcode_minus_L_CXX" != no; then
14552    # Linking always hardcodes the temporary library directory.
14553    hardcode_action_CXX=relink
14554  else
14555    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14556    hardcode_action_CXX=immediate
14557  fi
14558else
14559  # We cannot hardcode anything, or else we can only hardcode existing
14560  # directories.
14561  hardcode_action_CXX=unsupported
14562fi
14563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14564$as_echo "$hardcode_action_CXX" >&6; }
14565
14566if test "$hardcode_action_CXX" = relink ||
14567   test "$inherit_rpath_CXX" = yes; then
14568  # Fast installation is not supported
14569  enable_fast_install=no
14570elif test "$shlibpath_overrides_runpath" = yes ||
14571     test "$enable_shared" = no; then
14572  # Fast installation is not necessary
14573  enable_fast_install=needless
14574fi
14575
14576
14577
14578
14579
14580
14581
14582  fi # test -n "$compiler"
14583
14584  CC=$lt_save_CC
14585  LDCXX=$LD
14586  LD=$lt_save_LD
14587  GCC=$lt_save_GCC
14588  with_gnu_ld=$lt_save_with_gnu_ld
14589  lt_cv_path_LDCXX=$lt_cv_path_LD
14590  lt_cv_path_LD=$lt_save_path_LD
14591  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14592  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14593fi # test "$_lt_caught_CXX_error" != yes
14594
14595ac_ext=c
14596ac_cpp='$CPP $CPPFLAGS'
14597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14599ac_compiler_gnu=$ac_cv_c_compiler_gnu
14600
14601
14602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14603$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14604set x ${MAKE-make}
14605ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14606if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
14607  $as_echo_n "(cached) " >&6
14608else
14609  cat >conftest.make <<\_ACEOF
14610SHELL = /bin/sh
14611all:
14612	@echo '@@@%%%=$(MAKE)=@@@%%%'
14613_ACEOF
14614# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14615case `${MAKE-make} -f conftest.make 2>/dev/null` in
14616  *@@@%%%=?*=@@@%%%*)
14617    eval ac_cv_prog_make_${ac_make}_set=yes;;
14618  *)
14619    eval ac_cv_prog_make_${ac_make}_set=no;;
14620esac
14621rm -f conftest.make
14622fi
14623if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14625$as_echo "yes" >&6; }
14626  SET_MAKE=
14627else
14628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14629$as_echo "no" >&6; }
14630  SET_MAKE="MAKE=${MAKE-make}"
14631fi
14632
14633# Find a good install program.  We prefer a C program (faster),
14634# so one script is as good as another.  But avoid the broken or
14635# incompatible versions:
14636# SysV /etc/install, /usr/sbin/install
14637# SunOS /usr/etc/install
14638# IRIX /sbin/install
14639# AIX /bin/install
14640# AmigaOS /C/install, which installs bootblocks on floppy discs
14641# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14642# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14643# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14644# OS/2's system install, which has a completely different semantic
14645# ./install, which can be erroneously created by make from ./install.sh.
14646# Reject install programs that cannot install multiple files.
14647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14648$as_echo_n "checking for a BSD-compatible install... " >&6; }
14649if test -z "$INSTALL"; then
14650if ${ac_cv_path_install+:} false; then :
14651  $as_echo_n "(cached) " >&6
14652else
14653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14654for as_dir in $PATH
14655do
14656  IFS=$as_save_IFS
14657  test -z "$as_dir" && as_dir=.
14658    # Account for people who put trailing slashes in PATH elements.
14659case $as_dir/ in #((
14660  ./ | .// | /[cC]/* | \
14661  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14662  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14663  /usr/ucb/* ) ;;
14664  *)
14665    # OSF1 and SCO ODT 3.0 have their own names for install.
14666    # Don't use installbsd from OSF since it installs stuff as root
14667    # by default.
14668    for ac_prog in ginstall scoinst install; do
14669      for ac_exec_ext in '' $ac_executable_extensions; do
14670	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14671	  if test $ac_prog = install &&
14672	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14673	    # AIX install.  It has an incompatible calling convention.
14674	    :
14675	  elif test $ac_prog = install &&
14676	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14677	    # program-specific install script used by HP pwplus--don't use.
14678	    :
14679	  else
14680	    rm -rf conftest.one conftest.two conftest.dir
14681	    echo one > conftest.one
14682	    echo two > conftest.two
14683	    mkdir conftest.dir
14684	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14685	      test -s conftest.one && test -s conftest.two &&
14686	      test -s conftest.dir/conftest.one &&
14687	      test -s conftest.dir/conftest.two
14688	    then
14689	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14690	      break 3
14691	    fi
14692	  fi
14693	fi
14694      done
14695    done
14696    ;;
14697esac
14698
14699  done
14700IFS=$as_save_IFS
14701
14702rm -rf conftest.one conftest.two conftest.dir
14703
14704fi
14705  if test "${ac_cv_path_install+set}" = set; then
14706    INSTALL=$ac_cv_path_install
14707  else
14708    # As a last resort, use the slow shell script.  Don't cache a
14709    # value for INSTALL within a source directory, because that will
14710    # break other packages using the cache if that directory is
14711    # removed, or if the value is a relative name.
14712    INSTALL=$ac_install_sh
14713  fi
14714fi
14715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14716$as_echo "$INSTALL" >&6; }
14717
14718# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14719# It thinks the first close brace ends the variable substitution.
14720test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14721
14722test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14723
14724test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14725
14726
14727
14728# Check whether --enable-largefile was given.
14729if test "${enable_largefile+set}" = set; then :
14730  enableval=$enable_largefile;
14731fi
14732
14733if test "$enable_largefile" != no; then
14734
14735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14736$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14737if ${ac_cv_sys_largefile_CC+:} false; then :
14738  $as_echo_n "(cached) " >&6
14739else
14740  ac_cv_sys_largefile_CC=no
14741     if test "$GCC" != yes; then
14742       ac_save_CC=$CC
14743       while :; do
14744	 # IRIX 6.2 and later do not support large files by default,
14745	 # so use the C compiler's -n32 option if that helps.
14746	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747/* end confdefs.h.  */
14748#include <sys/types.h>
14749 /* Check that off_t can represent 2**63 - 1 correctly.
14750    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14751    since some C++ compilers masquerading as C compilers
14752    incorrectly reject 9223372036854775807.  */
14753#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14754  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14755		       && LARGE_OFF_T % 2147483647 == 1)
14756		      ? 1 : -1];
14757int
14758main ()
14759{
14760
14761  ;
14762  return 0;
14763}
14764_ACEOF
14765	 if ac_fn_c_try_compile "$LINENO"; then :
14766  break
14767fi
14768rm -f core conftest.err conftest.$ac_objext
14769	 CC="$CC -n32"
14770	 if ac_fn_c_try_compile "$LINENO"; then :
14771  ac_cv_sys_largefile_CC=' -n32'; break
14772fi
14773rm -f core conftest.err conftest.$ac_objext
14774	 break
14775       done
14776       CC=$ac_save_CC
14777       rm -f conftest.$ac_ext
14778    fi
14779fi
14780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14781$as_echo "$ac_cv_sys_largefile_CC" >&6; }
14782  if test "$ac_cv_sys_largefile_CC" != no; then
14783    CC=$CC$ac_cv_sys_largefile_CC
14784  fi
14785
14786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14787$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14788if ${ac_cv_sys_file_offset_bits+:} false; then :
14789  $as_echo_n "(cached) " >&6
14790else
14791  while :; do
14792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793/* end confdefs.h.  */
14794#include <sys/types.h>
14795 /* Check that off_t can represent 2**63 - 1 correctly.
14796    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14797    since some C++ compilers masquerading as C compilers
14798    incorrectly reject 9223372036854775807.  */
14799#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14800  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14801		       && LARGE_OFF_T % 2147483647 == 1)
14802		      ? 1 : -1];
14803int
14804main ()
14805{
14806
14807  ;
14808  return 0;
14809}
14810_ACEOF
14811if ac_fn_c_try_compile "$LINENO"; then :
14812  ac_cv_sys_file_offset_bits=no; break
14813fi
14814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816/* end confdefs.h.  */
14817#define _FILE_OFFSET_BITS 64
14818#include <sys/types.h>
14819 /* Check that off_t can represent 2**63 - 1 correctly.
14820    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14821    since some C++ compilers masquerading as C compilers
14822    incorrectly reject 9223372036854775807.  */
14823#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14824  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14825		       && LARGE_OFF_T % 2147483647 == 1)
14826		      ? 1 : -1];
14827int
14828main ()
14829{
14830
14831  ;
14832  return 0;
14833}
14834_ACEOF
14835if ac_fn_c_try_compile "$LINENO"; then :
14836  ac_cv_sys_file_offset_bits=64; break
14837fi
14838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839  ac_cv_sys_file_offset_bits=unknown
14840  break
14841done
14842fi
14843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14844$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14845case $ac_cv_sys_file_offset_bits in #(
14846  no | unknown) ;;
14847  *)
14848cat >>confdefs.h <<_ACEOF
14849#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14850_ACEOF
14851;;
14852esac
14853rm -rf conftest*
14854  if test $ac_cv_sys_file_offset_bits = unknown; then
14855    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14856$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14857if ${ac_cv_sys_large_files+:} false; then :
14858  $as_echo_n "(cached) " >&6
14859else
14860  while :; do
14861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862/* end confdefs.h.  */
14863#include <sys/types.h>
14864 /* Check that off_t can represent 2**63 - 1 correctly.
14865    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14866    since some C++ compilers masquerading as C compilers
14867    incorrectly reject 9223372036854775807.  */
14868#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14869  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14870		       && LARGE_OFF_T % 2147483647 == 1)
14871		      ? 1 : -1];
14872int
14873main ()
14874{
14875
14876  ;
14877  return 0;
14878}
14879_ACEOF
14880if ac_fn_c_try_compile "$LINENO"; then :
14881  ac_cv_sys_large_files=no; break
14882fi
14883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885/* end confdefs.h.  */
14886#define _LARGE_FILES 1
14887#include <sys/types.h>
14888 /* Check that off_t can represent 2**63 - 1 correctly.
14889    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14890    since some C++ compilers masquerading as C compilers
14891    incorrectly reject 9223372036854775807.  */
14892#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14893  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14894		       && LARGE_OFF_T % 2147483647 == 1)
14895		      ? 1 : -1];
14896int
14897main ()
14898{
14899
14900  ;
14901  return 0;
14902}
14903_ACEOF
14904if ac_fn_c_try_compile "$LINENO"; then :
14905  ac_cv_sys_large_files=1; break
14906fi
14907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908  ac_cv_sys_large_files=unknown
14909  break
14910done
14911fi
14912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14913$as_echo "$ac_cv_sys_large_files" >&6; }
14914case $ac_cv_sys_large_files in #(
14915  no | unknown) ;;
14916  *)
14917cat >>confdefs.h <<_ACEOF
14918#define _LARGE_FILES $ac_cv_sys_large_files
14919_ACEOF
14920;;
14921esac
14922rm -rf conftest*
14923  fi
14924
14925
14926fi
14927
14928
14929# The native HP-UX 10 compiler needs -Ae to enable Extended ANSI compliance
14930# (-Ae is the default in the native compiler under HP-UX 11).
14931if test $ac_cv_c_compiler_gnu = no -a "$OSTYPE" = "-DHPUX10"; then
14932  CFLAGS="$CFLAGS -Ae"
14933fi
14934
14935LDFLAGS="-L\$(top_srcdir)/lib -L\$(top_builddir)/lib $LDFLAGS"
14936
14937# AIX has issues with the -rdynamic linker flag.  How many different AIX
14938# versions should we support here?
14939if test $ac_cv_c_compiler_gnu = yes && test "$OSTYPE" != "-DAIX7"; then
14940    LDFLAGS="$LDFLAGS -rdynamic"
14941fi
14942
14943# Record the current CPPFLAGS, LDFLAGS, and LIBS here
14944ac_orig_cppflags="$CPPFLAGS"
14945ac_orig_ldflags="$LDFLAGS"
14946ac_orig_libs="$LIBS"
14947
14948if test $ac_cv_c_compiler_gnu = yes; then
14949  if test x"$CFLAGS" = "x-g -O2"; then
14950    fullCFLAGS="-O2"
14951  else
14952    fullCFLAGS="$CFLAGS"
14953  fi
14954
14955
14956    if echo $ac_cv_build_cpu | egrep "^i[34567]86$" > /dev/null 2>&1; then
14957    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -malign-jumps -malign-loops -malign-functions" >&5
14958$as_echo_n "checking whether the C compiler accepts -malign-jumps -malign-loops -malign-functions... " >&6; }
14959    CFLAGS="-malign-jumps=2 -malign-loops=2 -malign-functions=2"
14960    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961/* end confdefs.h.  */
14962
14963int
14964main ()
14965{
14966
14967  ;
14968  return 0;
14969}
14970_ACEOF
14971if ac_fn_c_try_compile "$LINENO"; then :
14972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14973$as_echo "yes" >&6; }; fullCFLAGS="$fullCFLAGS $CFLAGS"
14974else
14975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14976$as_echo "no" >&6; }
14977fi
14978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14979  fi
14980
14981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -Wall" >&5
14982$as_echo_n "checking whether the C compiler accepts -Wall... " >&6; }
14983  CFLAGS="-Wall"
14984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985/* end confdefs.h.  */
14986
14987int
14988main ()
14989{
14990
14991  ;
14992  return 0;
14993}
14994_ACEOF
14995if ac_fn_c_try_compile "$LINENO"; then :
14996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14997$as_echo "yes" >&6; }; fullCFLAGS="$fullCFLAGS $CFLAGS"
14998else
14999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000$as_echo "no" >&6; }
15001fi
15002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003
15004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -fno-omit-frame-pointer" >&5
15005$as_echo_n "checking whether the C compiler accepts -fno-omit-frame-pointer... " >&6; }
15006  CFLAGS="-fno-omit-frame-pointer"
15007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15008/* end confdefs.h.  */
15009
15010int
15011main ()
15012{
15013
15014  ;
15015  return 0;
15016}
15017_ACEOF
15018if ac_fn_c_try_compile "$LINENO"; then :
15019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15020$as_echo "yes" >&6; }; fullCFLAGS="$fullCFLAGS $CFLAGS"
15021else
15022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15023$as_echo "no" >&6; }
15024fi
15025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026
15027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -fno-strict-aliasing" >&5
15028$as_echo_n "checking whether the C compiler accepts -fno-strict-aliasing... " >&6; }
15029  CFLAGS="-fno-strict-aliasing"
15030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031/* end confdefs.h.  */
15032
15033int
15034main ()
15035{
15036
15037  ;
15038  return 0;
15039}
15040_ACEOF
15041if ac_fn_c_try_compile "$LINENO"; then :
15042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15043$as_echo "yes" >&6; }; fullCFLAGS="$fullCFLAGS $CFLAGS"
15044else
15045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15046$as_echo "no" >&6; }
15047fi
15048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049
15050  CFLAGS="-g2 $fullCFLAGS"
15051fi
15052
15053if test x$exec_prefix = xNONE ; then
15054  exec_prefix=$prefix
15055fi
15056
15057if test x$prefix = xNONE ; then
15058  prefix=/usr/local
15059  bindir=/usr/local/bin
15060  datadir=/usr/local/share
15061  libexecdir=/usr/local/libexec
15062  sbindir=/usr/local/sbin
15063fi
15064
15065BINDIR=`eval echo $bindir`
15066
15067DATADIR=`eval echo $datadir`
15068
15069INCLUDEDIR=`eval echo $includedir`
15070
15071LIBEXECDIR=`eval echo $libexecdir`
15072
15073LOCALSTATEDIR=`eval echo $localstatedir`
15074
15075RUNSTATEDIR=`eval echo $runstatedir`
15076
15077PREFIX=`eval echo $prefix`
15078
15079SBINDIR=`eval echo $sbindir`
15080
15081SYSCONFDIR=`eval echo $sysconfdir`
15082
15083
15084LIB_DEPS="\"\""
15085
15086
15087
15088
15089
15090LIB_OBJS="pr_fnmatch.o sstrncpy.o strsep.o vsnprintf.o glibc-glob.o glibc-hstrerror.o glibc-mkstemp.o pr-syslog.o pwgrent.o hanson-tpl.o ccan-json.o openbsd-blowfish.o openbsd-bcrypt.o"
15091
15092
15093# Check whether --with-getopt was given.
15094if test "${with_getopt+set}" = set; then :
15095  withval=$with_getopt;
15096    if test "$withval" != "no" ; then
15097      for ac_func in getopt
15098do :
15099  ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
15100if test "x$ac_cv_func_getopt" = xyes; then :
15101  cat >>confdefs.h <<_ACEOF
15102#define HAVE_GETOPT 1
15103_ACEOF
15104 for ac_header in getopt.h
15105do :
15106  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15107if test "x$ac_cv_header_getopt_h" = xyes; then :
15108  cat >>confdefs.h <<_ACEOF
15109#define HAVE_GETOPT_H 1
15110_ACEOF
15111
15112fi
15113
15114done
15115
15116         for ac_func in getopt_long
15117do :
15118  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15119if test "x$ac_cv_func_getopt_long" = xyes; then :
15120  cat >>confdefs.h <<_ACEOF
15121#define HAVE_GETOPT_LONG 1
15122_ACEOF
15123
15124fi
15125done
15126
15127
15128$as_echo "#define PR_USE_SYSTEM_GETOPT 1" >>confdefs.h
15129
15130else
15131  LIB_OBJS="$LIB_OBJS getopt.o getopt1.o"
15132
15133fi
15134done
15135
15136    fi
15137
15138else
15139
15140    for ac_func in getopt
15141do :
15142  ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
15143if test "x$ac_cv_func_getopt" = xyes; then :
15144  cat >>confdefs.h <<_ACEOF
15145#define HAVE_GETOPT 1
15146_ACEOF
15147 for ac_header in getopt.h
15148do :
15149  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15150if test "x$ac_cv_header_getopt_h" = xyes; then :
15151  cat >>confdefs.h <<_ACEOF
15152#define HAVE_GETOPT_H 1
15153_ACEOF
15154
15155fi
15156
15157done
15158
15159       for ac_func in getopt_long
15160do :
15161  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15162if test "x$ac_cv_func_getopt_long" = xyes; then :
15163  cat >>confdefs.h <<_ACEOF
15164#define HAVE_GETOPT_LONG 1
15165_ACEOF
15166
15167fi
15168done
15169
15170
15171$as_echo "#define PR_USE_SYSTEM_GETOPT 1" >>confdefs.h
15172
15173else
15174  LIB_OBJS="$LIB_OBJS getopt.o getopt1.o"
15175
15176fi
15177done
15178
15179
15180fi
15181
15182
15183
15184# Check whether --with-lastlog was given.
15185if test "${with_lastlog+set}" = set; then :
15186  withval=$with_lastlog;
15187    if test "x$withval" = "xno" ; then
15188      # nothing to do
15189      foo=bar
15190
15191    elif test -n "$withval" ; then
15192
15193$as_echo "#define PR_USE_LASTLOG 1" >>confdefs.h
15194
15195      for ac_header in lastlog.h paths.h
15196do :
15197  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15198ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15199if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15200  cat >>confdefs.h <<_ACEOF
15201#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15202_ACEOF
15203
15204fi
15205
15206done
15207
15208
15209      if test "x${withval}" != "xyes" ; then
15210        pr_lastlog_path="$withval"
15211
15212      else
15213                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LASTLOG_FILE" >&5
15214$as_echo_n "checking for LASTLOG_FILE... " >&6; }
15215        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216/* end confdefs.h.  */
15217
15218            #include <sys/types.h>
15219            #include <utmp.h>
15220            #ifdef HAVE_LASTLOG_H
15221            #  include <lastlog.h>
15222            #endif
15223            #ifdef HAVE_PATHS_H
15224            #  include <paths.h>
15225            #endif
15226            #ifdef HAVE_LOGIN_H
15227            # include <login.h>
15228            #endif
15229
15230int
15231main ()
15232{
15233
15234            char *lastlog = LASTLOG_FILE;
15235
15236  ;
15237  return 0;
15238}
15239_ACEOF
15240if ac_fn_c_try_compile "$LINENO"; then :
15241
15242            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15243$as_echo "yes" >&6; }
15244
15245else
15246
15247            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15248$as_echo "no" >&6; }
15249            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _PATH_LASTLOG" >&5
15250$as_echo_n "checking for _PATH_LASTLOG... " >&6; }
15251            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252/* end confdefs.h.  */
15253
15254                #include <sys/types.h>
15255                #include <utmp.h>
15256                #ifdef HAVE_LASTLOG_H
15257                #  include <lastlog.h>
15258                #endif
15259                #ifdef HAVE_PATHS_H
15260                #  include <paths.h>
15261                #endif
15262
15263int
15264main ()
15265{
15266
15267                char *lastlog = _PATH_LASTLOG;
15268
15269  ;
15270  return 0;
15271}
15272_ACEOF
15273if ac_fn_c_try_compile "$LINENO"; then :
15274
15275                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15276$as_echo "yes" >&6; }
15277
15278else
15279
15280                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15281$as_echo "no" >&6; }
15282                found_lastlog_path=no
15283
15284fi
15285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15286
15287fi
15288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289
15290         if test -z "$pr_lastlog_path" ; then
15291           if test x"$found_lastlog_path" = x"no" ; then
15292             for f in /var/log/lastlog /var/adm/lastlog /usr/adm/lastlog /etc/security/lastlog ; do
15293               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $f" >&5
15294$as_echo_n "checking for $f... " >&6; }
15295               if (test -d "$f" || test -f "$f") ; then
15296                 pr_lastlog_path=$f
15297                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15298$as_echo "yes" >&6; }
15299
15300               else
15301                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15302$as_echo "no" >&6; }
15303               fi
15304             done
15305
15306             if test -z "$pr_lastlog_path" ; then
15307               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
15308$as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
15309             fi
15310          fi
15311        fi
15312      fi
15313
15314      if test -n "$pr_lastlog_path" ; then
15315
15316cat >>confdefs.h <<_ACEOF
15317#define PR_LASTLOG_PATH "`eval echo "$pr_lastlog_path"`"
15318_ACEOF
15319
15320      fi
15321    fi
15322
15323fi
15324
15325
15326
15327# Check whether --with-includes was given.
15328if test "${with_includes+set}" = set; then :
15329  withval=$with_includes;
15330    if test x"$withval" != x; then
15331      if test x"$withval" = xyes; then
15332        as_fn_error $? "--with-includes parameter missing required colon-separated list of include paths" "$LINENO" 5
15333      fi
15334
15335      if test x"$withval" != xno; then
15336        ac_addl_includes=`echo "$withval" | sed -e 's/:/ /g'` ;
15337        for ainclude in $ac_addl_includes; do
15338          if test x"$ac_build_addl_includes" = x ; then
15339            ac_build_addl_includes="-I$ainclude"
15340          else
15341            ac_build_addl_includes="-I$ainclude $ac_build_addl_includes"
15342          fi
15343        done
15344        CPPFLAGS="$CPPFLAGS $ac_build_addl_includes"
15345      fi
15346    fi
15347
15348fi
15349
15350
15351
15352# Check whether --with-libraries was given.
15353if test "${with_libraries+set}" = set; then :
15354  withval=$with_libraries;
15355    if test x"$withval" != x; then
15356      if test x"$withval" = xyes; then
15357        as_fn_error $? "--with-libraries parameter missing required colon-separated list of library paths" "$LINENO" 5
15358      fi
15359
15360      if test x"$withval" != xno; then
15361        ac_addl_libdirs=`echo "$withval" | sed -e 's/:/ /g'` ;
15362        for alibdir in $ac_addl_libdirs; do
15363          if test x"$ac_build_addl_libdirs" = x ; then
15364            ac_build_addl_libdirs="-L$alibdir"
15365          else
15366            ac_build_addl_libdirs="-L$alibdir $ac_build_addl_libdirs"
15367          fi
15368        done
15369        LDFLAGS="$LDFLAGS $ac_build_addl_libdirs"
15370      fi
15371    fi
15372
15373fi
15374
15375
15376ifsession_requested="false"
15377
15378# Check whether --with-modules was given.
15379if test "${with_modules+set}" = set; then :
15380  withval=$with_modules;
15381    if test x"$withval" != x; then
15382      if test x"$withval" = xyes; then
15383        as_fn_error $? "--with-modules parameter missing required colon-separated list of modules" "$LINENO" 5
15384      fi
15385
15386      if test x"$withval" != xno; then
15387        modules_list=`echo "$withval" | sed -e 's/:/ /g'`;
15388
15389        for amodule in $modules_list; do
15390          if test x"$amodule" = xmod_dso ; then
15391            as_fn_error $? "use --enable-dso instead of --with-modules=mod_dso for DSO support" "$LINENO" 5
15392          fi
15393
15394          if test x"$amodule" = xmod_ifsession ; then
15395            ifsession_requested="true"
15396          fi
15397
15398          if test x"$amodule" = xmod_lang ; then
15399            as_fn_error $? "use --enable-nls instead of --with-modules=mod_lang for NLS/UTF8 support" "$LINENO" 5
15400          fi
15401
15402          if test x"$amodule" = xmod_memcache ; then
15403            as_fn_error $? "use --enable-memcache instead of --with-modules=mod_memcache for Memcache support" "$LINENO" 5
15404          fi
15405
15406          if test x"$amodule" = xmod_redis ; then
15407            as_fn_error $? "use --enable-redis instead of --with-modules=mod_redis for Redis support" "$LINENO" 5
15408          fi
15409        done
15410
15411        # Trim off any leading/trailing colons, and collapse double-colons
15412        # into single colons; these are common typos.
15413        ac_static_modules=`echo "$withval" | sed 's/::/:/g' | sed 's/^://' | sed 's/:$//' | sed -e 's/:/.o /g'`.o ;
15414
15415        for amodule in $ac_static_modules; do
15416          ac_build_static_modules="modules/$amodule $ac_build_static_modules"
15417        done
15418
15419                        if test x"$ifsession_requested" = xtrue; then
15420          ac_static_modules=`echo "$ac_static_modules" | sed -e 's/mod_ifsession\.o//g'`
15421          ac_static_modules="$ac_static_modules mod_ifsession.o"
15422
15423          ac_build_static_modules=`echo "$ac_build_static_modules" | sed -e 's/modules\/mod_ifsession\.o//g'`
15424          ac_build_static_modules="$ac_build_static_modules modules/mod_ifsession.o";
15425        fi
15426      fi
15427    fi
15428
15429fi
15430
15431
15432if test x"$enable_memcache" = xyes; then
15433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcached_create in -lmemcached" >&5
15434$as_echo_n "checking for memcached_create in -lmemcached... " >&6; }
15435if ${ac_cv_lib_memcached_memcached_create+:} false; then :
15436  $as_echo_n "(cached) " >&6
15437else
15438  ac_check_lib_save_LIBS=$LIBS
15439LIBS="-lmemcached  $LIBS"
15440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441/* end confdefs.h.  */
15442
15443/* Override any GCC internal prototype to avoid an error.
15444   Use char because int might match the return type of a GCC
15445   builtin and then its argument prototype would still apply.  */
15446#ifdef __cplusplus
15447extern "C"
15448#endif
15449char memcached_create ();
15450int
15451main ()
15452{
15453return memcached_create ();
15454  ;
15455  return 0;
15456}
15457_ACEOF
15458if ac_fn_c_try_link "$LINENO"; then :
15459  ac_cv_lib_memcached_memcached_create=yes
15460else
15461  ac_cv_lib_memcached_memcached_create=no
15462fi
15463rm -f core conftest.err conftest.$ac_objext \
15464    conftest$ac_exeext conftest.$ac_ext
15465LIBS=$ac_check_lib_save_LIBS
15466fi
15467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcached_memcached_create" >&5
15468$as_echo "$ac_cv_lib_memcached_memcached_create" >&6; }
15469if test "x$ac_cv_lib_memcached_memcached_create" = xyes; then :
15470  cat >>confdefs.h <<_ACEOF
15471#define HAVE_LIBMEMCACHED 1
15472_ACEOF
15473
15474  LIBS="-lmemcached $LIBS"
15475
15476fi
15477
15478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmemcached_util_ping in -lmemcachedutil" >&5
15479$as_echo_n "checking for libmemcached_util_ping in -lmemcachedutil... " >&6; }
15480if ${ac_cv_lib_memcachedutil_libmemcached_util_ping+:} false; then :
15481  $as_echo_n "(cached) " >&6
15482else
15483  ac_check_lib_save_LIBS=$LIBS
15484LIBS="-lmemcachedutil  $LIBS"
15485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486/* end confdefs.h.  */
15487
15488/* Override any GCC internal prototype to avoid an error.
15489   Use char because int might match the return type of a GCC
15490   builtin and then its argument prototype would still apply.  */
15491#ifdef __cplusplus
15492extern "C"
15493#endif
15494char libmemcached_util_ping ();
15495int
15496main ()
15497{
15498return libmemcached_util_ping ();
15499  ;
15500  return 0;
15501}
15502_ACEOF
15503if ac_fn_c_try_link "$LINENO"; then :
15504  ac_cv_lib_memcachedutil_libmemcached_util_ping=yes
15505else
15506  ac_cv_lib_memcachedutil_libmemcached_util_ping=no
15507fi
15508rm -f core conftest.err conftest.$ac_objext \
15509    conftest$ac_exeext conftest.$ac_ext
15510LIBS=$ac_check_lib_save_LIBS
15511fi
15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcachedutil_libmemcached_util_ping" >&5
15513$as_echo "$ac_cv_lib_memcachedutil_libmemcached_util_ping" >&6; }
15514if test "x$ac_cv_lib_memcachedutil_libmemcached_util_ping" = xyes; then :
15515  cat >>confdefs.h <<_ACEOF
15516#define HAVE_LIBMEMCACHEDUTIL 1
15517_ACEOF
15518
15519  LIBS="-lmemcachedutil $LIBS"
15520
15521fi
15522
15523
15524  # Yes, we DO want mod_memcache AFTER the other modules in the static
15525  # module list. Otherwise, the module load ordering will be such that
15526  # memcache support will not work as expected
15527  ac_static_modules="$ac_static_modules mod_memcache.o"
15528  ac_build_static_modules="$ac_build_static_modules modules/mod_memcache.o"
15529fi
15530
15531if test x"$enable_redis" = xyes; then
15532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redisConnect in -lhiredis" >&5
15533$as_echo_n "checking for redisConnect in -lhiredis... " >&6; }
15534if ${ac_cv_lib_hiredis_redisConnect+:} false; then :
15535  $as_echo_n "(cached) " >&6
15536else
15537  ac_check_lib_save_LIBS=$LIBS
15538LIBS="-lhiredis  $LIBS"
15539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540/* end confdefs.h.  */
15541
15542/* Override any GCC internal prototype to avoid an error.
15543   Use char because int might match the return type of a GCC
15544   builtin and then its argument prototype would still apply.  */
15545#ifdef __cplusplus
15546extern "C"
15547#endif
15548char redisConnect ();
15549int
15550main ()
15551{
15552return redisConnect ();
15553  ;
15554  return 0;
15555}
15556_ACEOF
15557if ac_fn_c_try_link "$LINENO"; then :
15558  ac_cv_lib_hiredis_redisConnect=yes
15559else
15560  ac_cv_lib_hiredis_redisConnect=no
15561fi
15562rm -f core conftest.err conftest.$ac_objext \
15563    conftest$ac_exeext conftest.$ac_ext
15564LIBS=$ac_check_lib_save_LIBS
15565fi
15566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hiredis_redisConnect" >&5
15567$as_echo "$ac_cv_lib_hiredis_redisConnect" >&6; }
15568if test "x$ac_cv_lib_hiredis_redisConnect" = xyes; then :
15569  cat >>confdefs.h <<_ACEOF
15570#define HAVE_LIBHIREDIS 1
15571_ACEOF
15572
15573  LIBS="-lhiredis $LIBS"
15574
15575fi
15576
15577
15578  # Yes, we DO want mod_redis AFTER the other modules in the static
15579  # module list. Otherwise, the module load ordering will be such that
15580  # Redis support will not work as expected.
15581  ac_static_modules="$ac_static_modules mod_redis.o"
15582  ac_build_static_modules="$ac_build_static_modules modules/mod_redis.o"
15583fi
15584
15585ac_unshareable_modules="mod_auth mod_rlimit mod_auth_unix mod_core mod_dso mod_ls mod_xfer mod_log mod_site mod_cap mod_ctrls mod_memcache mod_redis"
15586
15587
15588# Check whether --with-shared was given.
15589if test "${with_shared+set}" = set; then :
15590  withval=$with_shared;
15591    if test x"$withval" != x; then
15592      if test x"$withval" = xyes; then
15593        as_fn_error $? "--with-shared parameter missing required colon-separated list of modules" "$LINENO" 5
15594      fi
15595
15596      if test x"$withval" != xno; then
15597        # Trim off any leading/trailing colons, and collapse double-colons
15598        # into single colons; these are common typos.
15599        shared_modules=`echo "$withval" | sed 's/::/:/g'| sed 's/^://' | sed 's/:$//' | sed -e 's/:/ /g'`;
15600        ac_shared_modules=`echo "$withval" | sed 's/::/:/g'| sed 's/^://' | sed 's/:$//' | sed -e 's/:/.la /g'`.la;
15601
15602        # First double-check that the given list does not contain any
15603        # unshareable modules
15604        for amodule in $pr_shared_modules; do
15605          for smodule in $ac_unshareable_modules; do
15606            if test x"$amodule" = x"$smodule"; then
15607              as_fn_error $? "cannot build $amodule as a shared module" "$LINENO" 5
15608            fi
15609          done
15610        done
15611
15612        for amodule in $ac_shared_modules; do
15613          ac_build_shared_modules="modules/$amodule $ac_build_shared_modules"
15614        done
15615
15616        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Werror=implicit-function-declaration" >&5
15617$as_echo_n "checking whether ${CC-cc} accepts -Werror=implicit-function-declaration... " >&6; }
15618   echo 'void f(){}' > conftest.c
15619   if test -z "`${CC-cc} -c -Werror=implicit-function-declaration conftest.c 2>&1`"; then
15620     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15621$as_echo "yes" >&6; }
15622     CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
15623   else
15624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15625$as_echo "no" >&6; }
15626   fi
15627   rm -fr conftest*
15628
15629      fi
15630    fi
15631
15632fi
15633
15634
15635my_config="mysql_config"
15636
15637# Check whether --with-mysql-config was given.
15638if test "${with_mysql_config+set}" = set; then :
15639  withval=$with_mysql_config;
15640    if test x"$withval" != x; then
15641      my_config=`echo "$withval"`
15642
15643      if test -z "$my_config"; then
15644        my_config="no"
15645
15646      elif test x"$my_config" = xno; then
15647        # do nothing
15648        foo=bar
15649
15650      elif test x"$my_config" = xyes; then
15651        # Use the default
15652        my_config="mysql_config"
15653
15654      elif test -x "$my_config"; then
15655        # do nothing
15656        foo=bar
15657
15658      else
15659        as_fn_error $? "mysql_config path $my_config is not executable" "$LINENO" 5
15660      fi
15661
15662    else
15663      my_config="no"
15664    fi
15665
15666fi
15667
15668
15669openssl_cmdline="openssl"
15670
15671# Check whether --with-openssl-cmdline was given.
15672if test "${with_openssl_cmdline+set}" = set; then :
15673  withval=$with_openssl_cmdline;
15674    if test x"$withval" != x; then
15675      openssl_cmdline=`echo "$withval"`
15676
15677      if test -z "$openssl_cmdline"; then
15678        openssl_cmdline="no"
15679
15680      elif test x"$openssl_cmdline" = xno; then
15681        # do nothing
15682        foo=bar
15683
15684      elif test x"$openssl_cmdline" = xyes; then
15685        # Use the default
15686        openssl_cmdline="openssl"
15687
15688      elif test -x "$openssl_cmdline"; then
15689        # do nothing
15690        foo=bar
15691
15692      else
15693        as_fn_error $? "openssl path $openssl_cmdline is not executable" "$LINENO" 5
15694      fi
15695
15696    else
15697      openssl_cmdline="no"
15698    fi
15699
15700fi
15701
15702
15703
15704pg_config="pg_config"
15705
15706# Check whether --with-postgres-config was given.
15707if test "${with_postgres_config+set}" = set; then :
15708  withval=$with_postgres_config;
15709    if test x"$withval" != x; then
15710      pg_config=`echo "$withval"`
15711
15712      if test -z "$pg_config"; then
15713        pg_config="no"
15714
15715      elif test x"$pg_config" = xno; then
15716        # do nothing
15717        foo=bar
15718
15719      elif test x"$pg_config" = xyes; then
15720        # Use the default
15721        pg_config="pg_config"
15722
15723      elif test -x "$pg_config"; then
15724        # do nothing
15725        foo=bar
15726
15727      else
15728        as_fn_error $? "pg_config path $pg_config is not executable" "$LINENO" 5
15729      fi
15730
15731    else
15732      pg_config="no"
15733    fi
15734
15735fi
15736
15737
15738pkgconfigdir=NONE
15739
15740# Check whether --with-pkgconfig was given.
15741if test "${with_pkgconfig+set}" = set; then :
15742  withval=$with_pkgconfig;
15743    if test x"$withval" != x; then
15744      if test x"$withval" = xyes; then
15745        as_fn_error $? "--with-pkgconfig parameter missing required directory path" "$LINENO" 5
15746      fi
15747
15748      if test x"$withval" != xno; then
15749        pkgconfigdir=`echo "$withval"`
15750      fi
15751    fi
15752
15753fi
15754
15755
15756
15757# Check whether --enable-auth-file was given.
15758if test "${enable_auth_file+set}" = set; then :
15759  enableval=$enable_auth_file;
15760    if test "$enableval" = "no"; then
15761      ac_core_modules=`echo "$ac_core_modules" | sed -e 's/mod_auth_file\.o//'`
15762      ac_build_core_modules=`echo "$ac_build_core_modules" | sed -e 's/modules\/mod_auth_file\.o//'`
15763    fi
15764
15765fi
15766
15767
15768# Check whether --enable-autoshadow was given.
15769if test "${enable_autoshadow+set}" = set; then :
15770  enableval=$enable_autoshadow;
15771            if test "$enableval" = "yes" && test "$OSTYPE" = "-DAIX4"; then
15772      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AIX does not support traditional shadowed passwords" >&5
15773$as_echo "$as_me: WARNING: AIX does not support traditional shadowed passwords" >&2;}
15774      enableval="no"
15775    fi
15776
15777    if test "$enableval" != "no" ; then
15778
15779$as_echo "#define PR_USE_SHADOW 1" >>confdefs.h
15780
15781
15782$as_echo "#define PR_USE_AUTO_SHADOW 1" >>confdefs.h
15783
15784      force_shadow="yes"
15785    fi
15786fi
15787
15788
15789# Check whether --enable-auth-pam was given.
15790if test "${enable_auth_pam+set}" = set; then :
15791  enableval=$enable_auth_pam;
15792    if test "$enableval" = "no"; then
15793      if test `echo $ac_static_modules | grep -c mod_auth_pam` != "0"; then
15794        as_fn_error $? "You cannot run configure with --disable-auth-pam and include mod_auth_pam in --with-modules at the same time" "$LINENO" 5
15795      fi
15796
15797      if test `echo $ac_shared_modules | grep -c mod_auth_pam` != "0"; then
15798        as_fn_error $? "You cannot run configure with --disable-auth-pam and include mod_auth_pam in --with-shared at the same time" "$LINENO" 5
15799      fi
15800    fi
15801
15802fi
15803
15804
15805# Check whether --enable-builtin-getaddrinfo was given.
15806if test "${enable_builtin_getaddrinfo+set}" = set; then :
15807  enableval=$enable_builtin_getaddrinfo;
15808    if test x"$enableval" = xyes; then
15809
15810$as_echo "#define PR_USE_GETADDRINFO 1" >>confdefs.h
15811
15812    fi
15813
15814fi
15815
15816
15817if test "$OSTYPE" = "-DHPUX11"; then
15818  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HP-UX 11 has broken getaddrinfo(), using builtin version" >&5
15819$as_echo "$as_me: WARNING: HP-UX 11 has broken getaddrinfo(), using builtin version" >&2;}
15820
15821$as_echo "#define PR_USE_GETADDRINFO 1" >>confdefs.h
15822
15823fi
15824
15825# Check whether --enable-builtin-getnameinfo was given.
15826if test "${enable_builtin_getnameinfo+set}" = set; then :
15827  enableval=$enable_builtin_getnameinfo;
15828    if test x"$enableval" = xyes; then
15829
15830$as_echo "#define PR_USE_GETNAMEINFO 1" >>confdefs.h
15831
15832    fi
15833
15834fi
15835
15836
15837# Check whether --enable-cap was given.
15838if test "${enable_cap+set}" = set; then :
15839  enableval=$enable_cap;
15840fi
15841
15842
15843# Check whether --enable-ctrls was given.
15844if test "${enable_ctrls+set}" = set; then :
15845  enableval=$enable_ctrls;  if test x"$enableval" = xyes ; then
15846
15847$as_echo "#define PR_USE_CTRLS 1" >>confdefs.h
15848
15849    fi
15850
15851fi
15852
15853
15854# Check whether --enable-facl was given.
15855if test "${enable_facl+set}" = set; then :
15856  enableval=$enable_facl;
15857fi
15858
15859
15860# Check whether --enable-curses was given.
15861if test "${enable_curses+set}" = set; then :
15862  enableval=$enable_curses;
15863fi
15864
15865
15866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
15867$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
15868if ${libltdl_cv_shlibext+:} false; then :
15869  $as_echo_n "(cached) " >&6
15870else
15871
15872module=yes
15873eval libltdl_cv_shlibext=$shrext_cmds
15874
15875fi
15876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
15877$as_echo "$libltdl_cv_shlibext" >&6; }
15878if test -n "$libltdl_cv_shlibext"; then
15879
15880cat >>confdefs.h <<_ACEOF
15881#define LT_MODULE_EXT "$libltdl_cv_shlibext"
15882_ACEOF
15883
15884fi
15885
15886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
15887$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
15888if ${lt_cv_module_path_var+:} false; then :
15889  $as_echo_n "(cached) " >&6
15890else
15891  lt_cv_module_path_var="$shlibpath_var"
15892fi
15893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
15894$as_echo "$lt_cv_module_path_var" >&6; }
15895if test -n "$lt_cv_module_path_var"; then
15896
15897cat >>confdefs.h <<_ACEOF
15898#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15899_ACEOF
15900
15901fi
15902
15903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
15904$as_echo_n "checking for the default library search path... " >&6; }
15905if ${lt_cv_sys_dlsearch_path+:} false; then :
15906  $as_echo_n "(cached) " >&6
15907else
15908  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15909fi
15910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
15911$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
15912if test -n "$lt_cv_sys_dlsearch_path"; then
15913  sys_dlsearch_path=
15914  for dir in $lt_cv_sys_dlsearch_path; do
15915    if test -z "$sys_dlsearch_path"; then
15916      sys_dlsearch_path="$dir"
15917    else
15918      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15919    fi
15920  done
15921
15922cat >>confdefs.h <<_ACEOF
15923#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15924_ACEOF
15925
15926fi
15927
15928
15929LT_DLLOADERS=
15930
15931
15932ac_ext=c
15933ac_cpp='$CPP $CPPFLAGS'
15934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936ac_compiler_gnu=$ac_cv_c_compiler_gnu
15937
15938
15939LIBADD_DLOPEN=
15940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15941$as_echo_n "checking for library containing dlopen... " >&6; }
15942if ${ac_cv_search_dlopen+:} false; then :
15943  $as_echo_n "(cached) " >&6
15944else
15945  ac_func_search_save_LIBS=$LIBS
15946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947/* end confdefs.h.  */
15948
15949/* Override any GCC internal prototype to avoid an error.
15950   Use char because int might match the return type of a GCC
15951   builtin and then its argument prototype would still apply.  */
15952#ifdef __cplusplus
15953extern "C"
15954#endif
15955char dlopen ();
15956int
15957main ()
15958{
15959return dlopen ();
15960  ;
15961  return 0;
15962}
15963_ACEOF
15964for ac_lib in '' dl; do
15965  if test -z "$ac_lib"; then
15966    ac_res="none required"
15967  else
15968    ac_res=-l$ac_lib
15969    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15970  fi
15971  if ac_fn_c_try_link "$LINENO"; then :
15972  ac_cv_search_dlopen=$ac_res
15973fi
15974rm -f core conftest.err conftest.$ac_objext \
15975    conftest$ac_exeext
15976  if ${ac_cv_search_dlopen+:} false; then :
15977  break
15978fi
15979done
15980if ${ac_cv_search_dlopen+:} false; then :
15981
15982else
15983  ac_cv_search_dlopen=no
15984fi
15985rm conftest.$ac_ext
15986LIBS=$ac_func_search_save_LIBS
15987fi
15988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15989$as_echo "$ac_cv_search_dlopen" >&6; }
15990ac_res=$ac_cv_search_dlopen
15991if test "$ac_res" != no; then :
15992  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15993
15994$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15995
15996	if test "$ac_cv_search_dlopen" != "none required" ; then
15997	  LIBADD_DLOPEN="-ldl"
15998	fi
15999	libltdl_cv_lib_dl_dlopen="yes"
16000	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16001else
16002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003/* end confdefs.h.  */
16004#if HAVE_DLFCN_H
16005#  include <dlfcn.h>
16006#endif
16007
16008int
16009main ()
16010{
16011dlopen(0, 0);
16012  ;
16013  return 0;
16014}
16015_ACEOF
16016if ac_fn_c_try_link "$LINENO"; then :
16017
16018$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16019
16020	    libltdl_cv_func_dlopen="yes"
16021	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16022else
16023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16024$as_echo_n "checking for dlopen in -lsvld... " >&6; }
16025if ${ac_cv_lib_svld_dlopen+:} false; then :
16026  $as_echo_n "(cached) " >&6
16027else
16028  ac_check_lib_save_LIBS=$LIBS
16029LIBS="-lsvld  $LIBS"
16030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031/* end confdefs.h.  */
16032
16033/* Override any GCC internal prototype to avoid an error.
16034   Use char because int might match the return type of a GCC
16035   builtin and then its argument prototype would still apply.  */
16036#ifdef __cplusplus
16037extern "C"
16038#endif
16039char dlopen ();
16040int
16041main ()
16042{
16043return dlopen ();
16044  ;
16045  return 0;
16046}
16047_ACEOF
16048if ac_fn_c_try_link "$LINENO"; then :
16049  ac_cv_lib_svld_dlopen=yes
16050else
16051  ac_cv_lib_svld_dlopen=no
16052fi
16053rm -f core conftest.err conftest.$ac_objext \
16054    conftest$ac_exeext conftest.$ac_ext
16055LIBS=$ac_check_lib_save_LIBS
16056fi
16057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16058$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16059if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16060
16061$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16062
16063	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16064		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16065fi
16066
16067fi
16068rm -f core conftest.err conftest.$ac_objext \
16069    conftest$ac_exeext conftest.$ac_ext
16070fi
16071
16072if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16073then
16074  lt_save_LIBS="$LIBS"
16075  LIBS="$LIBS $LIBADD_DLOPEN"
16076  for ac_func in dlerror
16077do :
16078  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16079if test "x$ac_cv_func_dlerror" = xyes; then :
16080  cat >>confdefs.h <<_ACEOF
16081#define HAVE_DLERROR 1
16082_ACEOF
16083
16084fi
16085done
16086
16087  LIBS="$lt_save_LIBS"
16088fi
16089
16090
16091LIBADD_SHL_LOAD=
16092ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16093if test "x$ac_cv_func_shl_load" = xyes; then :
16094
16095$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16096
16097	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16098else
16099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16100$as_echo_n "checking for shl_load in -ldld... " >&6; }
16101if ${ac_cv_lib_dld_shl_load+:} false; then :
16102  $as_echo_n "(cached) " >&6
16103else
16104  ac_check_lib_save_LIBS=$LIBS
16105LIBS="-ldld  $LIBS"
16106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16107/* end confdefs.h.  */
16108
16109/* Override any GCC internal prototype to avoid an error.
16110   Use char because int might match the return type of a GCC
16111   builtin and then its argument prototype would still apply.  */
16112#ifdef __cplusplus
16113extern "C"
16114#endif
16115char shl_load ();
16116int
16117main ()
16118{
16119return shl_load ();
16120  ;
16121  return 0;
16122}
16123_ACEOF
16124if ac_fn_c_try_link "$LINENO"; then :
16125  ac_cv_lib_dld_shl_load=yes
16126else
16127  ac_cv_lib_dld_shl_load=no
16128fi
16129rm -f core conftest.err conftest.$ac_objext \
16130    conftest$ac_exeext conftest.$ac_ext
16131LIBS=$ac_check_lib_save_LIBS
16132fi
16133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16134$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16135if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16136
16137$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16138
16139	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16140	    LIBADD_SHL_LOAD="-ldld"
16141fi
16142
16143fi
16144
16145
16146
16147case $host_os in
16148darwin[1567].*)
16149# We only want this for pre-Mac OS X 10.4.
16150  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16151if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16152
16153$as_echo "#define HAVE_DYLD 1" >>confdefs.h
16154
16155	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16156fi
16157
16158  ;;
16159beos*)
16160  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16161  ;;
16162cygwin* | mingw* | os2* | pw32*)
16163  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16164"
16165if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16166  ac_have_decl=1
16167else
16168  ac_have_decl=0
16169fi
16170
16171cat >>confdefs.h <<_ACEOF
16172#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16173_ACEOF
16174
16175  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16176  ;;
16177esac
16178
16179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16180$as_echo_n "checking for dld_link in -ldld... " >&6; }
16181if ${ac_cv_lib_dld_dld_link+:} false; then :
16182  $as_echo_n "(cached) " >&6
16183else
16184  ac_check_lib_save_LIBS=$LIBS
16185LIBS="-ldld  $LIBS"
16186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187/* end confdefs.h.  */
16188
16189/* Override any GCC internal prototype to avoid an error.
16190   Use char because int might match the return type of a GCC
16191   builtin and then its argument prototype would still apply.  */
16192#ifdef __cplusplus
16193extern "C"
16194#endif
16195char dld_link ();
16196int
16197main ()
16198{
16199return dld_link ();
16200  ;
16201  return 0;
16202}
16203_ACEOF
16204if ac_fn_c_try_link "$LINENO"; then :
16205  ac_cv_lib_dld_dld_link=yes
16206else
16207  ac_cv_lib_dld_dld_link=no
16208fi
16209rm -f core conftest.err conftest.$ac_objext \
16210    conftest$ac_exeext conftest.$ac_ext
16211LIBS=$ac_check_lib_save_LIBS
16212fi
16213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16214$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16215if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16216
16217$as_echo "#define HAVE_DLD 1" >>confdefs.h
16218
16219		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16220fi
16221
16222
16223
16224
16225LT_DLPREOPEN=
16226if test -n "$LT_DLLOADERS"
16227then
16228  for lt_loader in $LT_DLLOADERS; do
16229    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16230  done
16231
16232$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16233
16234fi
16235
16236
16237LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16238
16239
16240ac_ext=c
16241ac_cpp='$CPP $CPPFLAGS'
16242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16244ac_compiler_gnu=$ac_cv_c_compiler_gnu
16245
16246
16247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16248$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16249if ${lt_cv_sys_symbol_underscore+:} false; then :
16250  $as_echo_n "(cached) " >&6
16251else
16252  lt_cv_sys_symbol_underscore=no
16253  cat > conftest.$ac_ext <<_LT_EOF
16254void nm_test_func(){}
16255int main(){nm_test_func;return 0;}
16256_LT_EOF
16257  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16258  (eval $ac_compile) 2>&5
16259  ac_status=$?
16260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16261  test $ac_status = 0; }; then
16262    # Now try to grab the symbols.
16263    ac_nlist=conftest.nm
16264    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
16265  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16266  ac_status=$?
16267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16268  test $ac_status = 0; } && test -s "$ac_nlist"; then
16269      # See whether the symbols have a leading underscore.
16270      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16271        lt_cv_sys_symbol_underscore=yes
16272      else
16273        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16274	  :
16275        else
16276	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16277        fi
16278      fi
16279    else
16280      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16281    fi
16282  else
16283    echo "configure: failed program was:" >&5
16284    cat conftest.c >&5
16285  fi
16286  rm -rf conftest*
16287
16288fi
16289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16290$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
16291  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16292
16293
16294if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16295  if test x"$libltdl_cv_func_dlopen" = xyes ||
16296     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
16297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16298$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16299if ${libltdl_cv_need_uscore+:} false; then :
16300  $as_echo_n "(cached) " >&6
16301else
16302  libltdl_cv_need_uscore=unknown
16303          save_LIBS="$LIBS"
16304          LIBS="$LIBS $LIBADD_DLOPEN"
16305	  if test "$cross_compiling" = yes; then :
16306  libltdl_cv_need_uscore=cross
16307else
16308  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16309  lt_status=$lt_dlunknown
16310  cat > conftest.$ac_ext <<_LT_EOF
16311#line 16311 "configure"
16312#include "confdefs.h"
16313
16314#if HAVE_DLFCN_H
16315#include <dlfcn.h>
16316#endif
16317
16318#include <stdio.h>
16319
16320#ifdef RTLD_GLOBAL
16321#  define LT_DLGLOBAL		RTLD_GLOBAL
16322#else
16323#  ifdef DL_GLOBAL
16324#    define LT_DLGLOBAL		DL_GLOBAL
16325#  else
16326#    define LT_DLGLOBAL		0
16327#  endif
16328#endif
16329
16330/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16331   find out it does not work in some platform. */
16332#ifndef LT_DLLAZY_OR_NOW
16333#  ifdef RTLD_LAZY
16334#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16335#  else
16336#    ifdef DL_LAZY
16337#      define LT_DLLAZY_OR_NOW		DL_LAZY
16338#    else
16339#      ifdef RTLD_NOW
16340#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16341#      else
16342#        ifdef DL_NOW
16343#          define LT_DLLAZY_OR_NOW	DL_NOW
16344#        else
16345#          define LT_DLLAZY_OR_NOW	0
16346#        endif
16347#      endif
16348#    endif
16349#  endif
16350#endif
16351
16352void fnord() { int i=42;}
16353int main ()
16354{
16355  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16356  int status = $lt_dlunknown;
16357
16358  if (self)
16359    {
16360      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16361      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16362      /* dlclose (self); */
16363    }
16364  else
16365    puts (dlerror ());
16366
16367  return status;
16368}
16369_LT_EOF
16370  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16371  (eval $ac_link) 2>&5
16372  ac_status=$?
16373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16374  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16375    (./conftest; exit; ) >&5 2>/dev/null
16376    lt_status=$?
16377    case x$lt_status in
16378      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16379      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16380      x$lt_dlunknown|x*)  ;;
16381    esac
16382  else :
16383    # compilation failed
16384
16385  fi
16386fi
16387rm -fr conftest*
16388
16389	  LIBS="$save_LIBS"
16390
16391fi
16392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16393$as_echo "$libltdl_cv_need_uscore" >&6; }
16394  fi
16395fi
16396
16397if test x"$libltdl_cv_need_uscore" = xyes; then
16398
16399$as_echo "#define NEED_USCORE 1" >>confdefs.h
16400
16401fi
16402
16403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16404$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16405if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16406  $as_echo_n "(cached) " >&6
16407else
16408  # PORTME does your system automatically load deplibs for dlopen?
16409  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16410  # For now, we just catch OSes we know something about -- in the
16411  # future, we'll try test this programmatically.
16412  lt_cv_sys_dlopen_deplibs=unknown
16413  case $host_os in
16414  aix3*|aix4.1.*|aix4.2.*)
16415    # Unknown whether this is true for these versions of AIX, but
16416    # we want this `case' here to explicitly catch those versions.
16417    lt_cv_sys_dlopen_deplibs=unknown
16418    ;;
16419  aix[4-9]*)
16420    lt_cv_sys_dlopen_deplibs=yes
16421    ;;
16422  amigaos*)
16423    case $host_cpu in
16424    powerpc)
16425      lt_cv_sys_dlopen_deplibs=no
16426      ;;
16427    esac
16428    ;;
16429  darwin*)
16430    # Assuming the user has installed a libdl from somewhere, this is true
16431    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16432    lt_cv_sys_dlopen_deplibs=yes
16433    ;;
16434  freebsd* | dragonfly*)
16435    lt_cv_sys_dlopen_deplibs=yes
16436    ;;
16437  gnu* | linux* | k*bsd*-gnu)
16438    # GNU and its variants, using gnu ld.so (Glibc)
16439    lt_cv_sys_dlopen_deplibs=yes
16440    ;;
16441  hpux10*|hpux11*)
16442    lt_cv_sys_dlopen_deplibs=yes
16443    ;;
16444  interix*)
16445    lt_cv_sys_dlopen_deplibs=yes
16446    ;;
16447  irix[12345]*|irix6.[01]*)
16448    # Catch all versions of IRIX before 6.2, and indicate that we don't
16449    # know how it worked for any of those versions.
16450    lt_cv_sys_dlopen_deplibs=unknown
16451    ;;
16452  irix*)
16453    # The case above catches anything before 6.2, and it's known that
16454    # at 6.2 and later dlopen does load deplibs.
16455    lt_cv_sys_dlopen_deplibs=yes
16456    ;;
16457  netbsd* | netbsdelf*-gnu)
16458    lt_cv_sys_dlopen_deplibs=yes
16459    ;;
16460  openbsd*)
16461    lt_cv_sys_dlopen_deplibs=yes
16462    ;;
16463  osf[1234]*)
16464    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16465    # it did *not* use an RPATH in a shared library to find objects the
16466    # library depends on, so we explicitly say `no'.
16467    lt_cv_sys_dlopen_deplibs=no
16468    ;;
16469  osf5.0|osf5.0a|osf5.1)
16470    # dlopen *does* load deplibs and with the right loader patch applied
16471    # it even uses RPATH in a shared library to search for shared objects
16472    # that the library depends on, but there's no easy way to know if that
16473    # patch is installed.  Since this is the case, all we can really
16474    # say is unknown -- it depends on the patch being installed.  If
16475    # it is, this changes to `yes'.  Without it, it would be `no'.
16476    lt_cv_sys_dlopen_deplibs=unknown
16477    ;;
16478  osf*)
16479    # the two cases above should catch all versions of osf <= 5.1.  Read
16480    # the comments above for what we know about them.
16481    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16482    # is used to find them so we can finally say `yes'.
16483    lt_cv_sys_dlopen_deplibs=yes
16484    ;;
16485  qnx*)
16486    lt_cv_sys_dlopen_deplibs=yes
16487    ;;
16488  solaris*)
16489    lt_cv_sys_dlopen_deplibs=yes
16490    ;;
16491  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16492    libltdl_cv_sys_dlopen_deplibs=yes
16493    ;;
16494  esac
16495
16496fi
16497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16498$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
16499if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16500
16501$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
16502
16503fi
16504
16505:
16506
16507for ac_header in argz.h
16508do :
16509  ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16510"
16511if test "x$ac_cv_header_argz_h" = xyes; then :
16512  cat >>confdefs.h <<_ACEOF
16513#define HAVE_ARGZ_H 1
16514_ACEOF
16515
16516fi
16517
16518done
16519
16520
16521ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
16522#  include <argz.h>
16523#endif
16524"
16525if test "x$ac_cv_type_error_t" = xyes; then :
16526
16527cat >>confdefs.h <<_ACEOF
16528#define HAVE_ERROR_T 1
16529_ACEOF
16530
16531
16532else
16533
16534$as_echo "#define error_t int" >>confdefs.h
16535
16536
16537$as_echo "#define __error_t_defined 1" >>confdefs.h
16538
16539fi
16540
16541
16542ARGZ_H=
16543for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16544	argz_next argz_stringify
16545do :
16546  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16547ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16548if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16549  cat >>confdefs.h <<_ACEOF
16550#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16551_ACEOF
16552
16553else
16554  ARGZ_H=argz.h;
16555
16556  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16557
16558fi
16559done
16560
16561
16562if test -z "$ARGZ_H"; then :
16563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16564$as_echo_n "checking if argz actually works... " >&6; }
16565if ${lt_cv_sys_argz_works+:} false; then :
16566  $as_echo_n "(cached) " >&6
16567else
16568  case $host_os in #(
16569	 *cygwin*)
16570	   lt_cv_sys_argz_works=no
16571	   if test "$cross_compiling" != no; then
16572	     lt_cv_sys_argz_works="guessing no"
16573	   else
16574	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16575	     save_IFS=$IFS
16576	     IFS=-.
16577	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16578	     IFS=$save_IFS
16579	     lt_os_major=${2-0}
16580	     lt_os_minor=${3-0}
16581	     lt_os_micro=${4-0}
16582	     if test "$lt_os_major" -gt 1 \
16583		|| { test "$lt_os_major" -eq 1 \
16584		  && { test "$lt_os_minor" -gt 5 \
16585		    || { test "$lt_os_minor" -eq 5 \
16586		      && test "$lt_os_micro" -gt 24; }; }; }; then
16587	       lt_cv_sys_argz_works=yes
16588	     fi
16589	   fi
16590	   ;; #(
16591	 *) lt_cv_sys_argz_works=yes ;;
16592	 esac
16593fi
16594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16595$as_echo "$lt_cv_sys_argz_works" >&6; }
16596     if test $lt_cv_sys_argz_works = yes; then :
16597
16598$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
16599
16600else
16601  ARGZ_H=argz.h
16602
16603
16604  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16605
16606fi
16607fi
16608
16609
16610
16611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16612$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16613if ${libltdl_cv_preloaded_symbols+:} false; then :
16614  $as_echo_n "(cached) " >&6
16615else
16616  if test -n "$lt_cv_sys_global_symbol_pipe"; then
16617    libltdl_cv_preloaded_symbols=yes
16618  else
16619    libltdl_cv_preloaded_symbols=no
16620  fi
16621
16622fi
16623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16624$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
16625if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16626
16627$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
16628
16629fi
16630
16631
16632
16633# Check whether --enable-dso was given.
16634if test "${enable_dso+set}" = set; then :
16635  enableval=$enable_dso;
16636    if test x"$enableval" = x"yes"; then
16637      ac_core_modules="$ac_core_modules mod_dso.o"
16638      ac_build_core_modules="$ac_build_core_modules modules/mod_dso.o"
16639
16640      MAIN_LDFLAGS="-L\$(top_srcdir)/lib/libltdl -dlopen self -export-dynamic"
16641      MAIN_LIBS="$MAIN_LIBS \$(LIBLTDL)"
16642
16643      MODULE_LDFLAGS="-avoid-version -export-dynamic -module"
16644
16645      INSTALL_DEPS="install-libltdl"
16646      LIB_DEPS="libltdl"
16647      MODULE_DEPS="libltdl"
16648
16649$as_echo "#define PR_USE_DSO 1" >>confdefs.h
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660      # Set options
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673# Check whether --with-included_ltdl was given.
16674if test "${with_included_ltdl+set}" = set; then :
16675  withval=$with_included_ltdl;
16676fi
16677
16678
16679if test "x$with_included_ltdl" != xyes; then
16680  # We are not being forced to use the included libltdl sources, so
16681  # decide whether there is a useful installed version we can use.
16682  ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
16683
16684"
16685if test "x$ac_cv_header_ltdl_h" = xyes; then :
16686  ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
16687	    #include <ltdl.h>
16688"
16689if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16691$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16692if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16693  $as_echo_n "(cached) " >&6
16694else
16695  ac_check_lib_save_LIBS=$LIBS
16696LIBS="-lltdl  $LIBS"
16697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698/* end confdefs.h.  */
16699
16700/* Override any GCC internal prototype to avoid an error.
16701   Use char because int might match the return type of a GCC
16702   builtin and then its argument prototype would still apply.  */
16703#ifdef __cplusplus
16704extern "C"
16705#endif
16706char lt_dladvise_preload ();
16707int
16708main ()
16709{
16710return lt_dladvise_preload ();
16711  ;
16712  return 0;
16713}
16714_ACEOF
16715if ac_fn_c_try_link "$LINENO"; then :
16716  ac_cv_lib_ltdl_lt_dladvise_preload=yes
16717else
16718  ac_cv_lib_ltdl_lt_dladvise_preload=no
16719fi
16720rm -f core conftest.err conftest.$ac_objext \
16721    conftest$ac_exeext conftest.$ac_ext
16722LIBS=$ac_check_lib_save_LIBS
16723fi
16724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16725$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16726if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
16727  with_included_ltdl=no
16728else
16729  with_included_ltdl=yes
16730fi
16731
16732else
16733  with_included_ltdl=yes
16734fi
16735
16736else
16737  with_included_ltdl=yes
16738fi
16739
16740
16741fi
16742
16743
16744
16745
16746# Check whether --with-ltdl_include was given.
16747if test "${with_ltdl_include+set}" = set; then :
16748  withval=$with_ltdl_include;
16749fi
16750
16751
16752if test -n "$with_ltdl_include"; then
16753  if test -f "$with_ltdl_include/ltdl.h"; then :
16754  else
16755    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
16756  fi
16757else
16758  with_ltdl_include=no
16759fi
16760
16761
16762# Check whether --with-ltdl_lib was given.
16763if test "${with_ltdl_lib+set}" = set; then :
16764  withval=$with_ltdl_lib;
16765fi
16766
16767
16768if test -n "$with_ltdl_lib"; then
16769  if test -f "$with_ltdl_lib/libltdl.la"; then :
16770  else
16771    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
16772  fi
16773else
16774  with_ltdl_lib=no
16775fi
16776
16777case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16778  ,yes,no,no,)
16779	case $enable_ltdl_convenience in
16780  no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
16781  "") enable_ltdl_convenience=yes
16782      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16783esac
16784LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16785LTDLDEPS=$LIBLTDL
16786LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16787
16788
16789
16790
16791
16792# For backwards non-gettext consistent compatibility...
16793INCLTDL="$LTDLINCL"
16794
16795
16796	;;
16797  ,no,no,no,)
16798	# If the included ltdl is not to be used, then use the
16799	# preinstalled libltdl we found.
16800
16801$as_echo "#define HAVE_LTDL 1" >>confdefs.h
16802
16803	LIBLTDL=-lltdl
16804	LTDLDEPS=
16805	LTDLINCL=
16806	;;
16807  ,no*,no,*)
16808	as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
16809	;;
16810  *)	with_included_ltdl=no
16811	LIBLTDL="-L$with_ltdl_lib -lltdl"
16812	LTDLDEPS=
16813	LTDLINCL="-I$with_ltdl_include"
16814	;;
16815esac
16816INCLTDL="$LTDLINCL"
16817
16818# Report our decision...
16819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
16820$as_echo_n "checking where to find libltdl headers... " >&6; }
16821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
16822$as_echo "$LTDLINCL" >&6; }
16823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
16824$as_echo_n "checking where to find libltdl library... " >&6; }
16825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
16826$as_echo "$LIBLTDL" >&6; }
16827
16828
16829
16830
16831
16832    subdirs="$subdirs lib/libltdl"
16833
16834
16835
16836
16837
16838# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16839# the user used.  This is so that ltdl.h can pick up the parent projects
16840# config.h file, The first file in AC_CONFIG_HEADERS must contain the
16841# definitions required by ltdl.c.
16842# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16843
16844
16845
16846for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
16847do :
16848  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16849ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16850"
16851if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16852  cat >>confdefs.h <<_ACEOF
16853#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16854_ACEOF
16855
16856fi
16857
16858done
16859
16860
16861for ac_func in closedir opendir readdir
16862do :
16863  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16864ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16865if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16866  cat >>confdefs.h <<_ACEOF
16867#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16868_ACEOF
16869
16870else
16871
16872
16873  _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
16874
16875fi
16876done
16877
16878for ac_func in strlcat strlcpy
16879do :
16880  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16882if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16883  cat >>confdefs.h <<_ACEOF
16884#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16885_ACEOF
16886
16887else
16888
16889
16890  _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16891
16892fi
16893done
16894
16895
16896
16897cat >>confdefs.h <<_ACEOF
16898#define LT_LIBEXT "$libext"
16899_ACEOF
16900
16901
16902name=ltdl
16903LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
16904
16905
16906
16907
16908
16909
16910
16911
16912# Only expand once:
16913
16914
16915
16916
16917
16918
16919case $enable_ltdl_convenience in
16920  no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
16921  "") enable_ltdl_convenience=yes
16922      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16923esac
16924LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16925LTDLDEPS=$LIBLTDL
16926LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16927
16928
16929
16930
16931
16932# For backwards non-gettext consistent compatibility...
16933INCLTDL="$LTDLINCL"
16934
16935
16936
16937    fi
16938
16939fi
16940
16941
16942# Check whether --enable-ident was given.
16943if test "${enable_ident+set}" = set; then :
16944  enableval=$enable_ident;
16945fi
16946
16947
16948# Check whether --enable-memcache was given.
16949if test "${enable_memcache+set}" = set; then :
16950  enableval=$enable_memcache;  if test x"$enableval" = xyes ; then
16951
16952$as_echo "#define PR_USE_MEMCACHE 1" >>confdefs.h
16953
16954    fi
16955
16956fi
16957
16958
16959ENABLE_NLS="\"\""
16960# Check whether --enable-nls was given.
16961if test "${enable_nls+set}" = set; then :
16962  enableval=$enable_nls;  if test x"$enableval" = x"yes" ; then
16963
16964
16965      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
16966$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
16967if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
16968  $as_echo_n "(cached) " >&6
16969else
16970  ac_check_lib_save_LIBS=$LIBS
16971LIBS="-lintl  $LIBS"
16972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973/* end confdefs.h.  */
16974
16975/* Override any GCC internal prototype to avoid an error.
16976   Use char because int might match the return type of a GCC
16977   builtin and then its argument prototype would still apply.  */
16978#ifdef __cplusplus
16979extern "C"
16980#endif
16981char bindtextdomain ();
16982int
16983main ()
16984{
16985return bindtextdomain ();
16986  ;
16987  return 0;
16988}
16989_ACEOF
16990if ac_fn_c_try_link "$LINENO"; then :
16991  ac_cv_lib_intl_bindtextdomain=yes
16992else
16993  ac_cv_lib_intl_bindtextdomain=no
16994fi
16995rm -f core conftest.err conftest.$ac_objext \
16996    conftest$ac_exeext conftest.$ac_ext
16997LIBS=$ac_check_lib_save_LIBS
16998fi
16999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
17000$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
17001if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
17002  ac_build_addl_libs="-lintl $ac_build_addl_libs" UTILS_LIBS="-lintl"
17003
17004$as_echo "#define HAVE_LIBINTL 1" >>confdefs.h
17005
17006
17007$as_echo "#define PR_USE_NLS 1" >>confdefs.h
17008
17009         ENABLE_NLS="1"
17010
17011else
17012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lc" >&5
17013$as_echo_n "checking for bindtextdomain in -lc... " >&6; }
17014if ${ac_cv_lib_c_bindtextdomain+:} false; then :
17015  $as_echo_n "(cached) " >&6
17016else
17017  ac_check_lib_save_LIBS=$LIBS
17018LIBS="-lc  $LIBS"
17019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020/* end confdefs.h.  */
17021
17022/* Override any GCC internal prototype to avoid an error.
17023   Use char because int might match the return type of a GCC
17024   builtin and then its argument prototype would still apply.  */
17025#ifdef __cplusplus
17026extern "C"
17027#endif
17028char bindtextdomain ();
17029int
17030main ()
17031{
17032return bindtextdomain ();
17033  ;
17034  return 0;
17035}
17036_ACEOF
17037if ac_fn_c_try_link "$LINENO"; then :
17038  ac_cv_lib_c_bindtextdomain=yes
17039else
17040  ac_cv_lib_c_bindtextdomain=no
17041fi
17042rm -f core conftest.err conftest.$ac_objext \
17043    conftest$ac_exeext conftest.$ac_ext
17044LIBS=$ac_check_lib_save_LIBS
17045fi
17046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_bindtextdomain" >&5
17047$as_echo "$ac_cv_lib_c_bindtextdomain" >&6; }
17048if test "x$ac_cv_lib_c_bindtextdomain" = xyes; then :
17049
17050$as_echo "#define PR_USE_NLS 1" >>confdefs.h
17051
17052           ENABLE_NLS="1"
17053
17054else
17055  as_fn_error $? "libintl support, required for NLS, not present -- aborting" "$LINENO" 5
17056
17057fi
17058
17059
17060fi
17061
17062
17063                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
17064$as_echo_n "checking for iconv_open in -liconv... " >&6; }
17065if ${ac_cv_lib_iconv_iconv_open+:} false; then :
17066  $as_echo_n "(cached) " >&6
17067else
17068  ac_check_lib_save_LIBS=$LIBS
17069LIBS="-liconv  $LIBS"
17070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071/* end confdefs.h.  */
17072
17073/* Override any GCC internal prototype to avoid an error.
17074   Use char because int might match the return type of a GCC
17075   builtin and then its argument prototype would still apply.  */
17076#ifdef __cplusplus
17077extern "C"
17078#endif
17079char iconv_open ();
17080int
17081main ()
17082{
17083return iconv_open ();
17084  ;
17085  return 0;
17086}
17087_ACEOF
17088if ac_fn_c_try_link "$LINENO"; then :
17089  ac_cv_lib_iconv_iconv_open=yes
17090else
17091  ac_cv_lib_iconv_iconv_open=no
17092fi
17093rm -f core conftest.err conftest.$ac_objext \
17094    conftest$ac_exeext conftest.$ac_ext
17095LIBS=$ac_check_lib_save_LIBS
17096fi
17097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
17098$as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
17099if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
17100  LIBS="$LIBS -liconv"
17101
17102$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
17103
17104
17105$as_echo "#define PR_USE_NLS 1" >>confdefs.h
17106
17107         ENABLE_NLS="1"
17108
17109else
17110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
17111$as_echo_n "checking for libiconv_open in -liconv... " >&6; }
17112if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
17113  $as_echo_n "(cached) " >&6
17114else
17115  ac_check_lib_save_LIBS=$LIBS
17116LIBS="-liconv  $LIBS"
17117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17118/* end confdefs.h.  */
17119
17120/* Override any GCC internal prototype to avoid an error.
17121   Use char because int might match the return type of a GCC
17122   builtin and then its argument prototype would still apply.  */
17123#ifdef __cplusplus
17124extern "C"
17125#endif
17126char libiconv_open ();
17127int
17128main ()
17129{
17130return libiconv_open ();
17131  ;
17132  return 0;
17133}
17134_ACEOF
17135if ac_fn_c_try_link "$LINENO"; then :
17136  ac_cv_lib_iconv_libiconv_open=yes
17137else
17138  ac_cv_lib_iconv_libiconv_open=no
17139fi
17140rm -f core conftest.err conftest.$ac_objext \
17141    conftest$ac_exeext conftest.$ac_ext
17142LIBS=$ac_check_lib_save_LIBS
17143fi
17144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
17145$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
17146if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
17147  LIBS="$LIBS -liconv"
17148
17149$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
17150
17151
17152$as_echo "#define PR_USE_NLS 1" >>confdefs.h
17153
17154           ENABLE_NLS="1"
17155
17156else
17157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -lc" >&5
17158$as_echo_n "checking for iconv_open in -lc... " >&6; }
17159if ${ac_cv_lib_c_iconv_open+:} false; then :
17160  $as_echo_n "(cached) " >&6
17161else
17162  ac_check_lib_save_LIBS=$LIBS
17163LIBS="-lc  $LIBS"
17164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165/* end confdefs.h.  */
17166
17167/* Override any GCC internal prototype to avoid an error.
17168   Use char because int might match the return type of a GCC
17169   builtin and then its argument prototype would still apply.  */
17170#ifdef __cplusplus
17171extern "C"
17172#endif
17173char iconv_open ();
17174int
17175main ()
17176{
17177return iconv_open ();
17178  ;
17179  return 0;
17180}
17181_ACEOF
17182if ac_fn_c_try_link "$LINENO"; then :
17183  ac_cv_lib_c_iconv_open=yes
17184else
17185  ac_cv_lib_c_iconv_open=no
17186fi
17187rm -f core conftest.err conftest.$ac_objext \
17188    conftest$ac_exeext conftest.$ac_ext
17189LIBS=$ac_check_lib_save_LIBS
17190fi
17191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_iconv_open" >&5
17192$as_echo "$ac_cv_lib_c_iconv_open" >&6; }
17193if test "x$ac_cv_lib_c_iconv_open" = xyes; then :
17194
17195$as_echo "#define PR_USE_NLS 1" >>confdefs.h
17196
17197             ENABLE_NLS="1"
17198
17199else
17200  as_fn_error $? "libiconv support, required for NLS, not present -- aborting" "$LINENO" 5
17201
17202fi
17203
17204
17205fi
17206
17207
17208fi
17209
17210    fi
17211
17212fi
17213
17214
17215# Check whether --enable-nonblocking-log-open was given.
17216if test "${enable_nonblocking_log_open+set}" = set; then :
17217  enableval=$enable_nonblocking_log_open;
17218fi
17219
17220
17221# Check whether --enable-ncurses was given.
17222if test "${enable_ncurses+set}" = set; then :
17223  enableval=$enable_ncurses;
17224fi
17225
17226
17227# Check whether --enable-pcre was given.
17228if test "${enable_pcre+set}" = set; then :
17229  enableval=$enable_pcre;
17230    if test x"$enableval" = xyes ; then
17231
17232$as_echo "#define PR_USE_PCRE 1" >>confdefs.h
17233
17234      ac_build_addl_libs="$ac_build_addl_libs -lpcreposix -lpcre"
17235
17236      # Check for other PCRE-specific functionality here
17237      saved_ldflags="$LDFLAGS"
17238      saved_libs="$LIBS"
17239      saved_cppflags="$CPPFLAGS"
17240
17241      # fiddle with CPPFLAGS, LDFLAGS
17242      CPPFLAGS="$CPPFLAGS $ac_build_addl_includes"
17243      LDFLAGS="$LDFLAGS $ac_build_addl_libdirs"
17244
17245            LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
17246      LIBS="$LIBS -lpcre -lpcreposix"
17247
17248      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE's pcre_free_study" >&5
17249$as_echo_n "checking for PCRE's pcre_free_study... " >&6; }
17250      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251/* end confdefs.h.  */
17252 #ifdef HAVE_STDDEF_H
17253          # include <stddef.h>
17254          #endif
17255          #ifdef HAVE_STDLIB_H
17256          # include <stdlib.h>
17257          #endif
17258          #ifdef HAVE_SYS_TYPES_H
17259          # include <sys/types.h>
17260          #endif
17261          #include <pcre.h>
17262
17263int
17264main ()
17265{
17266
17267          pcre_extra *extra = NULL;
17268          pcre_free_study(extra);
17269
17270  ;
17271  return 0;
17272}
17273_ACEOF
17274if ac_fn_c_try_link "$LINENO"; then :
17275
17276          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17277$as_echo "yes" >&6; }
17278
17279$as_echo "#define HAVE_PCRE_PCRE_FREE_STUDY 1" >>confdefs.h
17280
17281
17282else
17283
17284          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17285$as_echo "no" >&6; }
17286
17287
17288fi
17289rm -f core conftest.err conftest.$ac_objext \
17290    conftest$ac_exeext conftest.$ac_ext
17291
17292      # restore CPPFLAGS, LDFLAGS
17293      CPPFLAGS="$saved_cppflags"
17294      LDFLAGS="$saved_ldflags"
17295      LIBS="$saved_libs"
17296    fi
17297
17298fi
17299
17300
17301# Check whether --enable-redis was given.
17302if test "${enable_redis+set}" = set; then :
17303  enableval=$enable_redis;  if test x"$enableval" = xyes ; then
17304      ac_fn_c_check_header_mongrel "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default"
17305if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
17306
17307$as_echo "#define HAVE_HIREDIS_HIREDIS_H 1" >>confdefs.h
17308
17309
17310$as_echo "#define PR_USE_REDIS 1" >>confdefs.h
17311
17312
17313fi
17314
17315
17316
17317      # Check for the redisReconnect() function in Hiredis; earlier versions
17318      # did not have this.
17319      saved_ldflags="$LDFLAGS"
17320      saved_libs="$LIBS"
17321      saved_cppflags="$CPPFLAGS"
17322
17323      # fiddle with CPPFLAGS, LDFLAGS
17324      CPPFLAGS="$CPPFLAGS $ac_build_addl_includes"
17325      LDFLAGS="$LDFLAGS $ac_build_addl_libdirs"
17326
17327            LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
17328      LIBS="$LIBS -lhiredis"
17329
17330      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Hiredis' redisReconnect" >&5
17331$as_echo_n "checking for Hiredis' redisReconnect... " >&6; }
17332      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333/* end confdefs.h.  */
17334
17335          #ifdef HAVE_STDLIB_H
17336          # include <stdlib.h>
17337          #endif
17338          #ifdef HAVE_SYS_TYPES_H
17339          # include <sys/types.h>
17340          #endif
17341          #include <hiredis/hiredis.h>
17342
17343int
17344main ()
17345{
17346
17347          (void) redisReconnect(NULL);
17348
17349  ;
17350  return 0;
17351}
17352_ACEOF
17353if ac_fn_c_try_link "$LINENO"; then :
17354
17355          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17356$as_echo "yes" >&6; }
17357
17358$as_echo "#define HAVE_HIREDIS_REDISRECONNECT 1" >>confdefs.h
17359
17360
17361else
17362
17363          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17364$as_echo "no" >&6; }
17365
17366
17367fi
17368rm -f core conftest.err conftest.$ac_objext \
17369    conftest$ac_exeext conftest.$ac_ext
17370
17371      # restore CPPFLAGS, LDFLAGS
17372      CPPFLAGS="$saved_cppflags"
17373      LDFLAGS="$saved_ldflags"
17374      LIBS="$saved_libs"
17375    fi
17376
17377fi
17378
17379
17380# Check whether --enable-force-setpassent was given.
17381if test "${enable_force_setpassent+set}" = set; then :
17382  enableval=$enable_force_setpassent;
17383fi
17384
17385
17386# Check whether --enable-ipv6 was given.
17387if test "${enable_ipv6+set}" = set; then :
17388  enableval=$enable_ipv6;
17389fi
17390
17391
17392pr_use_openssl=""
17393# Check whether --enable-openssl was given.
17394if test "${enable_openssl+set}" = set; then :
17395  enableval=$enable_openssl;  if test x"$enableval" = xno ; then
17396      pr_use_openssl="no"
17397    fi
17398
17399fi
17400
17401
17402pr_use_sodium=""
17403# Check whether --enable-sodium was given.
17404if test "${enable_sodium+set}" = set; then :
17405  enableval=$enable_sodium;  if test x"$enableval" = xno ; then
17406      pr_use_sodium="no"
17407    fi
17408
17409fi
17410
17411
17412# Check whether --enable-sendfile was given.
17413if test "${enable_sendfile+set}" = set; then :
17414  enableval=$enable_sendfile;
17415fi
17416
17417
17418# Check whether --enable-shadow was given.
17419if test "${enable_shadow+set}" = set; then :
17420  enableval=$enable_shadow;
17421            if test "$enableval" = "yes" && test "$OSTYPE" = "-DAIX4"; then
17422      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AIX does not support traditional shadowed passwords" >&5
17423$as_echo "$as_me: WARNING: AIX does not support traditional shadowed passwords" >&2;}
17424      enableval="no"
17425    fi
17426
17427    if test "$enableval" = "no" ; then
17428      use_shadow=""
17429      force_shadow="no"
17430    else
17431
17432$as_echo "#define PR_USE_SHADOW 1" >>confdefs.h
17433
17434      force_shadow="yes"
17435    fi
17436fi
17437
17438
17439# Check whether --enable-sia was given.
17440if test "${enable_sia+set}" = set; then :
17441  enableval=$enable_sia;
17442    if test x"$enableval" = xyes ; then
17443
17444            for ac_header in sia.h siad.h sys/security.h
17445do :
17446  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17447ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17448if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17449  cat >>confdefs.h <<_ACEOF
17450#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17451_ACEOF
17452
17453fi
17454
17455done
17456
17457
17458      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_auth_parameters in -lsecurity" >&5
17459$as_echo_n "checking for set_auth_parameters in -lsecurity... " >&6; }
17460if ${ac_cv_lib_security_set_auth_parameters+:} false; then :
17461  $as_echo_n "(cached) " >&6
17462else
17463  ac_check_lib_save_LIBS=$LIBS
17464LIBS="-lsecurity  $LIBS"
17465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466/* end confdefs.h.  */
17467
17468/* Override any GCC internal prototype to avoid an error.
17469   Use char because int might match the return type of a GCC
17470   builtin and then its argument prototype would still apply.  */
17471#ifdef __cplusplus
17472extern "C"
17473#endif
17474char set_auth_parameters ();
17475int
17476main ()
17477{
17478return set_auth_parameters ();
17479  ;
17480  return 0;
17481}
17482_ACEOF
17483if ac_fn_c_try_link "$LINENO"; then :
17484  ac_cv_lib_security_set_auth_parameters=yes
17485else
17486  ac_cv_lib_security_set_auth_parameters=no
17487fi
17488rm -f core conftest.err conftest.$ac_objext \
17489    conftest$ac_exeext conftest.$ac_ext
17490LIBS=$ac_check_lib_save_LIBS
17491fi
17492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_security_set_auth_parameters" >&5
17493$as_echo "$ac_cv_lib_security_set_auth_parameters" >&6; }
17494if test "x$ac_cv_lib_security_set_auth_parameters" = xyes; then :
17495  cat >>confdefs.h <<_ACEOF
17496#define HAVE_LIBSECURITY 1
17497_ACEOF
17498
17499  LIBS="-lsecurity $LIBS"
17500
17501fi
17502
17503      for ac_func in set_auth_parameters
17504do :
17505  ac_fn_c_check_func "$LINENO" "set_auth_parameters" "ac_cv_func_set_auth_parameters"
17506if test "x$ac_cv_func_set_auth_parameters" = xyes; then :
17507  cat >>confdefs.h <<_ACEOF
17508#define HAVE_SET_AUTH_PARAMETERS 1
17509_ACEOF
17510
17511fi
17512done
17513
17514
17515      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprpwent in -lsec" >&5
17516$as_echo_n "checking for getprpwent in -lsec... " >&6; }
17517if ${ac_cv_lib_sec_getprpwent+:} false; then :
17518  $as_echo_n "(cached) " >&6
17519else
17520  ac_check_lib_save_LIBS=$LIBS
17521LIBS="-lsec  $LIBS"
17522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523/* end confdefs.h.  */
17524
17525/* Override any GCC internal prototype to avoid an error.
17526   Use char because int might match the return type of a GCC
17527   builtin and then its argument prototype would still apply.  */
17528#ifdef __cplusplus
17529extern "C"
17530#endif
17531char getprpwent ();
17532int
17533main ()
17534{
17535return getprpwent ();
17536  ;
17537  return 0;
17538}
17539_ACEOF
17540if ac_fn_c_try_link "$LINENO"; then :
17541  ac_cv_lib_sec_getprpwent=yes
17542else
17543  ac_cv_lib_sec_getprpwent=no
17544fi
17545rm -f core conftest.err conftest.$ac_objext \
17546    conftest$ac_exeext conftest.$ac_ext
17547LIBS=$ac_check_lib_save_LIBS
17548fi
17549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_getprpwent" >&5
17550$as_echo "$ac_cv_lib_sec_getprpwent" >&6; }
17551if test "x$ac_cv_lib_sec_getprpwent" = xyes; then :
17552  cat >>confdefs.h <<_ACEOF
17553#define HAVE_LIBSEC 1
17554_ACEOF
17555
17556  LIBS="-lsec $LIBS"
17557
17558fi
17559
17560      for ac_func in getprpwent
17561do :
17562  ac_fn_c_check_func "$LINENO" "getprpwent" "ac_cv_func_getprpwent"
17563if test "x$ac_cv_func_getprpwent" = xyes; then :
17564  cat >>confdefs.h <<_ACEOF
17565#define HAVE_GETPRPWENT 1
17566_ACEOF
17567
17568fi
17569done
17570
17571
17572
17573$as_echo "#define PR_USE_SIA 1" >>confdefs.h
17574
17575    fi
17576
17577fi
17578
17579
17580ENABLE_TESTS="\"\""
17581# Check whether --enable-tests was given.
17582if test "${enable_tests+set}" = set; then :
17583  enableval=$enable_tests;
17584    if test x"$enableval" != xno ; then
17585      for ac_header in check.h
17586do :
17587  ac_fn_c_check_header_mongrel "$LINENO" "check.h" "ac_cv_header_check_h" "$ac_includes_default"
17588if test "x$ac_cv_header_check_h" = xyes; then :
17589  cat >>confdefs.h <<_ACEOF
17590#define HAVE_CHECK_H 1
17591_ACEOF
17592
17593fi
17594
17595done
17596
17597
17598      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcase_create in -lcheck" >&5
17599$as_echo_n "checking for tcase_create in -lcheck... " >&6; }
17600if ${ac_cv_lib_check_tcase_create+:} false; then :
17601  $as_echo_n "(cached) " >&6
17602else
17603  ac_check_lib_save_LIBS=$LIBS
17604LIBS="-lcheck  $LIBS"
17605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17606/* end confdefs.h.  */
17607
17608/* Override any GCC internal prototype to avoid an error.
17609   Use char because int might match the return type of a GCC
17610   builtin and then its argument prototype would still apply.  */
17611#ifdef __cplusplus
17612extern "C"
17613#endif
17614char tcase_create ();
17615int
17616main ()
17617{
17618return tcase_create ();
17619  ;
17620  return 0;
17621}
17622_ACEOF
17623if ac_fn_c_try_link "$LINENO"; then :
17624  ac_cv_lib_check_tcase_create=yes
17625else
17626  ac_cv_lib_check_tcase_create=no
17627fi
17628rm -f core conftest.err conftest.$ac_objext \
17629    conftest$ac_exeext conftest.$ac_ext
17630LIBS=$ac_check_lib_save_LIBS
17631fi
17632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_check_tcase_create" >&5
17633$as_echo "$ac_cv_lib_check_tcase_create" >&6; }
17634if test "x$ac_cv_lib_check_tcase_create" = xyes; then :
17635
17636$as_echo "#define HAVE_LIBCHECK 1" >>confdefs.h
17637
17638         ENABLE_TESTS="1"
17639
17640$as_echo "#define PR_USE_TESTS 1" >>confdefs.h
17641
17642
17643else
17644
17645         as_fn_error $? "libcheck support, required for tests, not present -- aborting" "$LINENO" 5
17646
17647
17648fi
17649
17650
17651      if test x"$enableval" != x"nonetwork" ; then
17652
17653$as_echo "#define PR_USE_NETWORK_TESTS 1" >>confdefs.h
17654
17655      fi
17656    fi
17657
17658fi
17659
17660
17661# Check whether --enable-trace was given.
17662if test "${enable_trace+set}" = set; then :
17663  enableval=$enable_trace;
17664fi
17665
17666
17667# Check whether --enable-xattr was given.
17668if test "${enable_xattr+set}" = set; then :
17669  enableval=$enable_xattr;
17670fi
17671
17672
17673pr_devel_cflags="-g3 -O0 -Wcast-align -Wchar-subscripts -Winline -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wshadow -Wundef"
17674pr_devel_libs=""
17675
17676# Check whether --enable-devel was given.
17677if test "${enable_devel+set}" = set; then :
17678  enableval=$enable_devel;
17679    if test x"$enableval" != xno ; then
17680      devel="yes"
17681
17682      # Additional warnings but only for developer mode.  Note that
17683      # -Wconversion is a bit noisy at the moment, thus why we
17684      # selectively choose which warnings to enable.
17685      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wdangling-else" >&5
17686$as_echo_n "checking whether ${CC-cc} accepts -Wdangling-else... " >&6; }
17687   echo 'void f(){}' > conftest.c
17688   if test -z "`${CC-cc} -c -Wdangling-else conftest.c 2>&1`"; then
17689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17690$as_echo "yes" >&6; }
17691     CFLAGS="$CFLAGS -Wdangling-else"
17692   else
17693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17694$as_echo "no" >&6; }
17695   fi
17696   rm -fr conftest*
17697
17698      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wextra" >&5
17699$as_echo_n "checking whether ${CC-cc} accepts -Wextra... " >&6; }
17700   echo 'void f(){}' > conftest.c
17701   if test -z "`${CC-cc} -c -Wextra conftest.c 2>&1`"; then
17702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17703$as_echo "yes" >&6; }
17704     CFLAGS="$CFLAGS -Wextra"
17705   else
17706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17707$as_echo "no" >&6; }
17708   fi
17709   rm -fr conftest*
17710
17711      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Werror=implicit-function-declaration" >&5
17712$as_echo_n "checking whether ${CC-cc} accepts -Werror=implicit-function-declaration... " >&6; }
17713   echo 'void f(){}' > conftest.c
17714   if test -z "`${CC-cc} -c -Werror=implicit-function-declaration conftest.c 2>&1`"; then
17715     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17716$as_echo "yes" >&6; }
17717     CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
17718   else
17719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17720$as_echo "no" >&6; }
17721   fi
17722   rm -fr conftest*
17723
17724      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Winit-self" >&5
17725$as_echo_n "checking whether ${CC-cc} accepts -Winit-self... " >&6; }
17726   echo 'void f(){}' > conftest.c
17727   if test -z "`${CC-cc} -c -Winit-self conftest.c 2>&1`"; then
17728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17729$as_echo "yes" >&6; }
17730     CFLAGS="$CFLAGS -Winit-self"
17731   else
17732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17733$as_echo "no" >&6; }
17734   fi
17735   rm -fr conftest*
17736
17737      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wno-missing-field-initializers" >&5
17738$as_echo_n "checking whether ${CC-cc} accepts -Wno-missing-field-initializers... " >&6; }
17739   echo 'void f(){}' > conftest.c
17740   if test -z "`${CC-cc} -c -Wno-missing-field-initializers conftest.c 2>&1`"; then
17741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17742$as_echo "yes" >&6; }
17743     CFLAGS="$CFLAGS -Wno-missing-field-initializers"
17744   else
17745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17746$as_echo "no" >&6; }
17747   fi
17748   rm -fr conftest*
17749
17750      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wno-unused-parameter" >&5
17751$as_echo_n "checking whether ${CC-cc} accepts -Wno-unused-parameter... " >&6; }
17752   echo 'void f(){}' > conftest.c
17753   if test -z "`${CC-cc} -c -Wno-unused-parameter conftest.c 2>&1`"; then
17754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17755$as_echo "yes" >&6; }
17756     CFLAGS="$CFLAGS -Wno-unused-parameter"
17757   else
17758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17759$as_echo "no" >&6; }
17760   fi
17761   rm -fr conftest*
17762
17763      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wnull-dereference" >&5
17764$as_echo_n "checking whether ${CC-cc} accepts -Wnull-dereference... " >&6; }
17765   echo 'void f(){}' > conftest.c
17766   if test -z "`${CC-cc} -c -Wnull-dereference conftest.c 2>&1`"; then
17767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17768$as_echo "yes" >&6; }
17769     CFLAGS="$CFLAGS -Wnull-dereference"
17770   else
17771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17772$as_echo "no" >&6; }
17773   fi
17774   rm -fr conftest*
17775
17776      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wstrict-prototypes" >&5
17777$as_echo_n "checking whether ${CC-cc} accepts -Wstrict-prototypes... " >&6; }
17778   echo 'void f(){}' > conftest.c
17779   if test -z "`${CC-cc} -c -Wstrict-prototypes conftest.c 2>&1`"; then
17780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17781$as_echo "yes" >&6; }
17782     CFLAGS="$CFLAGS -Wstrict-prototypes"
17783   else
17784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17785$as_echo "no" >&6; }
17786   fi
17787   rm -fr conftest*
17788
17789      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fdelete-null-pointer-checks" >&5
17790$as_echo_n "checking whether ${CC-cc} accepts -fdelete-null-pointer-checks... " >&6; }
17791   echo 'void f(){}' > conftest.c
17792   if test -z "`${CC-cc} -c -fdelete-null-pointer-checks conftest.c 2>&1`"; then
17793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17794$as_echo "yes" >&6; }
17795     CFLAGS="$CFLAGS -fdelete-null-pointer-checks"
17796   else
17797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17798$as_echo "no" >&6; }
17799   fi
17800   rm -fr conftest*
17801
17802
17803
17804      if test `echo $enableval | grep -c coredump` = "1" ; then
17805        pr_devel_cflags="-DPR_DEVEL_COREDUMP $pr_devel_cflags"
17806      fi
17807
17808      if test `echo $enableval | grep -c coverage` = "1" ; then
17809        pr_devel_cflags="-DPR_DEVEL_COVERAGE --coverage $pr_devel_cflags"
17810        pr_devel_libs="--coverage $pr_devel_libs"
17811      fi
17812
17813      if test `echo $enableval | grep -c nodaemon` = "1" ; then
17814        pr_devel_cflags="-DPR_DEVEL_NO_DAEMON $pr_devel_cflags"
17815      fi
17816
17817      if test `echo $enableval | grep -c nofork` = "1" ; then
17818        pr_devel_cflags="-DPR_DEVEL_NO_FORK $pr_devel_cflags"
17819      fi
17820
17821      if test `echo $enableval | grep -c profile` = "1" ; then
17822        pr_devel_cflags="-DPR_DEVEL_PROFILE -p -pg $pr_devel_cflags"
17823        pr_devel_libs="-pg $pr_devel_libs"
17824      fi
17825
17826      if test `echo $enableval | grep -c sanitize` = "1" ; then
17827        pr_devel_cflags="-fsanitize=address $pr_devel_cflags"
17828        pr_devel_libs="-fsanitize=address $pr_devel_libs"
17829
17830        # Determine whether we need to link with libasan (gcc) or not (clang)
17831        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -lasan" >&5
17832$as_echo_n "checking whether the C compiler accepts -lasan... " >&6; }
17833        saved_ldflags=$LDFLAGS
17834        LDFLAGS="-lasan $LDFLAGS"
17835        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17836/* end confdefs.h.  */
17837
17838
17839int
17840main ()
17841{
17842
17843            int i;
17844            i = 7;
17845
17846  ;
17847  return 0;
17848}
17849_ACEOF
17850if ac_fn_c_try_link "$LINENO"; then :
17851
17852            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17853$as_echo "yes" >&6; }
17854            pr_devel_libs="-lasan $pr_devel_libs"
17855
17856else
17857
17858            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17859$as_echo "no" >&6; }
17860
17861
17862fi
17863rm -f core conftest.err conftest.$ac_objext \
17864    conftest$ac_exeext conftest.$ac_ext
17865        LDFLAGS=$saved_ldflags
17866      fi
17867
17868
17869      if test `echo $enableval | grep -c timing` = "1"; then
17870        pr_devel_cflags="-DPR_DEVEL_TIMING $pr_devel_cflags"
17871      fi
17872
17873    else
17874      devel="no"
17875    fi
17876
17877fi
17878
17879
17880# Check whether --enable-buffer-size was given.
17881if test "${enable_buffer_size+set}" = set; then :
17882  enableval=$enable_buffer_size;
17883    if test "$enableval" = "yes" || test "$enableval" = "no" ; then
17884      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: buffer size defaulting to 1024 bytes" >&5
17885$as_echo "$as_me: WARNING: buffer size defaulting to 1024 bytes" >&2;}
17886
17887cat >>confdefs.h <<_ACEOF
17888#define PR_TUNABLE_BUFFER_SIZE 1024
17889_ACEOF
17890
17891    else
17892
17893cat >>confdefs.h <<_ACEOF
17894#define PR_TUNABLE_BUFFER_SIZE $enableval
17895_ACEOF
17896
17897    fi
17898
17899fi
17900
17901
17902# Check whether --enable-pool-size was given.
17903if test "${enable_pool_size+set}" = set; then :
17904  enableval=$enable_pool_size;
17905    if test "$enableval" = "yes" || test "$enableval" = "no" ; then
17906      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pool size defaulting to 512 bytes" >&5
17907$as_echo "$as_me: WARNING: pool size defaulting to 512 bytes" >&2;}
17908
17909cat >>confdefs.h <<_ACEOF
17910#define PR_TUNABLE_NEW_POOL_SIZE 512
17911_ACEOF
17912
17913    else
17914
17915cat >>confdefs.h <<_ACEOF
17916#define PR_TUNABLE_NEW_POOL_SIZE $enableval
17917_ACEOF
17918
17919    fi
17920
17921fi
17922
17923
17924# Check whether --enable-scoreboard-buffer-size was given.
17925if test "${enable_scoreboard_buffer_size+set}" = set; then :
17926  enableval=$enable_scoreboard_buffer_size;
17927    if test "$enableval" = "yes" || test "$enableval" = "no" ; then
17928      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: scoreboard buffer size defaulting to 80 bytes" >&5
17929$as_echo "$as_me: WARNING: scoreboard buffer size defaulting to 80 bytes" >&2;}
17930
17931cat >>confdefs.h <<_ACEOF
17932#define PR_TUNABLE_SCOREBOARD_BUFFER_SIZE 80
17933_ACEOF
17934
17935    else
17936
17937cat >>confdefs.h <<_ACEOF
17938#define PR_TUNABLE_SCOREBOARD_BUFFER_SIZE $enableval
17939_ACEOF
17940
17941    fi
17942
17943fi
17944
17945
17946# Check whether --enable-scoreboard-updates was given.
17947if test "${enable_scoreboard_updates+set}" = set; then :
17948  enableval=$enable_scoreboard_updates;
17949    if test x"$enableval" = xyes || test x"$enableval" = xno ; then
17950      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: scoreboard updates defaulting to 10" >&5
17951$as_echo "$as_me: WARNING: scoreboard updates defaulting to 10" >&2;}
17952
17953cat >>confdefs.h <<_ACEOF
17954#define PR_TUNABLE_XFER_SCOREBOARD_UPDATES 10
17955_ACEOF
17956
17957    else
17958
17959cat >>confdefs.h <<_ACEOF
17960#define PR_TUNABLE_XFER_SCOREBOARD_UPDATES $enableval
17961_ACEOF
17962
17963    fi
17964
17965fi
17966
17967
17968keepsyms="yes"
17969# Check whether --enable-strip was given.
17970if test "${enable_strip+set}" = set; then :
17971  enableval=$enable_strip;
17972    if test x"$enableval" = xyes ; then
17973      keepsyms="no"
17974    fi
17975
17976
17977fi
17978
17979
17980# Check whether --enable-timeout-ident was given.
17981if test "${enable_timeout_ident+set}" = set; then :
17982  enableval=$enable_timeout_ident;
17983    if test "$enableval" = "yes" || test "$enableval" = "no" ; then
17984      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ident timeout defaulting to 10 secs" >&5
17985$as_echo "$as_me: WARNING: ident timeout defaulting to 10 secs" >&2;}
17986
17987cat >>confdefs.h <<_ACEOF
17988#define PR_TUNABLE_TIMEOUTIDENT 10
17989_ACEOF
17990
17991    else
17992
17993cat >>confdefs.h <<_ACEOF
17994#define PR_TUNABLE_TIMEOUTIDENT $enableval
17995_ACEOF
17996
17997    fi
17998
17999fi
18000
18001
18002# Check whether --enable-timeout-idle was given.
18003if test "${enable_timeout_idle+set}" = set; then :
18004  enableval=$enable_timeout_idle;
18005    if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18006      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: idle timeout defaulting to 600 secs" >&5
18007$as_echo "$as_me: WARNING: idle timeout defaulting to 600 secs" >&2;}
18008
18009cat >>confdefs.h <<_ACEOF
18010#define PR_TUNABLE_TIMEOUTIDLE 600
18011_ACEOF
18012
18013    else
18014
18015cat >>confdefs.h <<_ACEOF
18016#define PR_TUNABLE_TIMEOUTIDLE $enableval
18017_ACEOF
18018
18019    fi
18020
18021fi
18022
18023
18024# Check whether --enable-timeout-linger was given.
18025if test "${enable_timeout_linger+set}" = set; then :
18026  enableval=$enable_timeout_linger;
18027    if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18028      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linger timeout defaulting to 30 secs" >&5
18029$as_echo "$as_me: WARNING: linger timeout defaulting to 30 secs" >&2;}
18030
18031cat >>confdefs.h <<_ACEOF
18032#define PR_TUNABLE_TIMEOUTLINGER 30
18033_ACEOF
18034
18035    else
18036
18037cat >>confdefs.h <<_ACEOF
18038#define PR_TUNABLE_TIMEOUTLINGER $enableval
18039_ACEOF
18040
18041    fi
18042
18043fi
18044
18045
18046# Check whether --enable-timeout-login was given.
18047if test "${enable_timeout_login+set}" = set; then :
18048  enableval=$enable_timeout_login;
18049    if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18050      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: login timeout defaulting to 300 secs" >&5
18051$as_echo "$as_me: WARNING: login timeout defaulting to 300 secs" >&2;}
18052
18053cat >>confdefs.h <<_ACEOF
18054#define PR_TUNABLE_TIMEOUTLOGIN 300
18055_ACEOF
18056
18057    else
18058
18059cat >>confdefs.h <<_ACEOF
18060#define PR_TUNABLE_TIMEOUTLOGIN $enableval
18061_ACEOF
18062
18063    fi
18064
18065fi
18066
18067
18068# Check whether --enable-timeout-no-transfer was given.
18069if test "${enable_timeout_no_transfer+set}" = set; then :
18070  enableval=$enable_timeout_no_transfer;
18071    if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18072      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no data transfer timeout defaulting to 300 secs" >&5
18073$as_echo "$as_me: WARNING: no data transfer timeout defaulting to 300 secs" >&2;}
18074
18075cat >>confdefs.h <<_ACEOF
18076#define PR_TUNABLE_TIMEOUTNOXFER 300
18077_ACEOF
18078
18079    else
18080
18081cat >>confdefs.h <<_ACEOF
18082#define PR_TUNABLE_TIMEOUTNOXFER $enableval
18083_ACEOF
18084
18085    fi
18086
18087fi
18088
18089
18090# Check whether --enable-timeout-stalled was given.
18091if test "${enable_timeout_stalled+set}" = set; then :
18092  enableval=$enable_timeout_stalled;
18093    if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18094      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: stalled timeout defaulting to 3600 secs" >&5
18095$as_echo "$as_me: WARNING: stalled timeout defaulting to 3600 secs" >&2;}
18096
18097cat >>confdefs.h <<_ACEOF
18098#define PR_TUNABLE_TIMEOUTSTALLED 3600
18099_ACEOF
18100
18101    else
18102
18103cat >>confdefs.h <<_ACEOF
18104#define PR_TUNABLE_TIMEOUTSTALLED $enableval
18105_ACEOF
18106
18107    fi
18108
18109fi
18110
18111
18112# Check whether --enable-parser-buffer-size was given.
18113if test "${enable_parser_buffer_size+set}" = set; then :
18114  enableval=$enable_parser_buffer_size;
18115    if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18116      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: parser buffer size defaulting to regular buffer size" >&5
18117$as_echo "$as_me: WARNING: parser buffer size defaulting to regular buffer size" >&2;}
18118
18119cat >>confdefs.h <<_ACEOF
18120#define PR_TUNABLE_PARSER_BUFFER_SIZE 4096
18121_ACEOF
18122
18123    else
18124
18125cat >>confdefs.h <<_ACEOF
18126#define PR_TUNABLE_PARSER_BUFFER_SIZE $enableval
18127_ACEOF
18128
18129    fi
18130
18131fi
18132
18133
18134# Check whether --enable-transfer-buffer-size was given.
18135if test "${enable_transfer_buffer_size+set}" = set; then :
18136  enableval=$enable_transfer_buffer_size;
18137    if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18138      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: transfer buffer size defaulting to regular buffer size" >&5
18139$as_echo "$as_me: WARNING: transfer buffer size defaulting to regular buffer size" >&2;}
18140
18141cat >>confdefs.h <<_ACEOF
18142#define PR_TUNABLE_XFER_BUFFER_SIZE 8192
18143_ACEOF
18144
18145    else
18146
18147cat >>confdefs.h <<_ACEOF
18148#define PR_TUNABLE_XFER_BUFFER_SIZE $enableval
18149_ACEOF
18150
18151    fi
18152
18153fi
18154
18155
18156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standalone crypt" >&5
18157$as_echo_n "checking for standalone crypt... " >&6; }
18158if ${pr_cv_lib_standalone_crypt+:} false; then :
18159  $as_echo_n "(cached) " >&6
18160else
18161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18162/* end confdefs.h.  */
18163
18164int
18165main ()
18166{
18167crypt();
18168  ;
18169  return 0;
18170}
18171_ACEOF
18172if ac_fn_c_try_link "$LINENO"; then :
18173  pr_cv_lib_standalone_crypt="yes"
18174else
18175  pr_cv_lib_standalone_crypt="no"
18176fi
18177rm -f core conftest.err conftest.$ac_objext \
18178    conftest$ac_exeext conftest.$ac_ext
18179fi
18180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_lib_standalone_crypt" >&5
18181$as_echo "$pr_cv_lib_standalone_crypt" >&6; }
18182
18183if test "$pr_cv_lib_standalone_crypt" = "no"; then
18184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18185$as_echo_n "checking for crypt in -lcrypt... " >&6; }
18186if ${ac_cv_lib_crypt_crypt+:} false; then :
18187  $as_echo_n "(cached) " >&6
18188else
18189  ac_check_lib_save_LIBS=$LIBS
18190LIBS="-lcrypt  $LIBS"
18191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192/* end confdefs.h.  */
18193
18194/* Override any GCC internal prototype to avoid an error.
18195   Use char because int might match the return type of a GCC
18196   builtin and then its argument prototype would still apply.  */
18197#ifdef __cplusplus
18198extern "C"
18199#endif
18200char crypt ();
18201int
18202main ()
18203{
18204return crypt ();
18205  ;
18206  return 0;
18207}
18208_ACEOF
18209if ac_fn_c_try_link "$LINENO"; then :
18210  ac_cv_lib_crypt_crypt=yes
18211else
18212  ac_cv_lib_crypt_crypt=no
18213fi
18214rm -f core conftest.err conftest.$ac_objext \
18215    conftest$ac_exeext conftest.$ac_ext
18216LIBS=$ac_check_lib_save_LIBS
18217fi
18218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18219$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18220if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
18221  cat >>confdefs.h <<_ACEOF
18222#define HAVE_LIBCRYPT 1
18223_ACEOF
18224
18225  LIBS="-lcrypt $LIBS"
18226
18227fi
18228
18229fi
18230
18231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standalone gethostbyname" >&5
18232$as_echo_n "checking for standalone gethostbyname... " >&6; }
18233if ${pr_cv_lib_standalone_gethost+:} false; then :
18234  $as_echo_n "(cached) " >&6
18235else
18236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18237/* end confdefs.h.  */
18238
18239int
18240main ()
18241{
18242gethostbyname();
18243  ;
18244  return 0;
18245}
18246_ACEOF
18247if ac_fn_c_try_link "$LINENO"; then :
18248  pr_cv_lib_standalone_gethost="yes"
18249else
18250  pr_cv_lib_standalone_gethost="no"
18251fi
18252rm -f core conftest.err conftest.$ac_objext \
18253    conftest$ac_exeext conftest.$ac_ext
18254fi
18255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_lib_standalone_gethost" >&5
18256$as_echo "$pr_cv_lib_standalone_gethost" >&6; }
18257
18258if test "$pr_cv_lib_standalone_gethost" = "no"; then
18259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
18260$as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
18261if ${ac_cv_lib_resolv_gethostbyname+:} false; then :
18262  $as_echo_n "(cached) " >&6
18263else
18264  ac_check_lib_save_LIBS=$LIBS
18265LIBS="-lresolv  $LIBS"
18266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267/* end confdefs.h.  */
18268
18269/* Override any GCC internal prototype to avoid an error.
18270   Use char because int might match the return type of a GCC
18271   builtin and then its argument prototype would still apply.  */
18272#ifdef __cplusplus
18273extern "C"
18274#endif
18275char gethostbyname ();
18276int
18277main ()
18278{
18279return gethostbyname ();
18280  ;
18281  return 0;
18282}
18283_ACEOF
18284if ac_fn_c_try_link "$LINENO"; then :
18285  ac_cv_lib_resolv_gethostbyname=yes
18286else
18287  ac_cv_lib_resolv_gethostbyname=no
18288fi
18289rm -f core conftest.err conftest.$ac_objext \
18290    conftest$ac_exeext conftest.$ac_ext
18291LIBS=$ac_check_lib_save_LIBS
18292fi
18293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
18294$as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
18295if test "x$ac_cv_lib_resolv_gethostbyname" = xyes; then :
18296  cat >>confdefs.h <<_ACEOF
18297#define HAVE_LIBRESOLV 1
18298_ACEOF
18299
18300  LIBS="-lresolv $LIBS"
18301
18302fi
18303
18304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
18305$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
18306if ${ac_cv_lib_resolv_inet_aton+:} false; then :
18307  $as_echo_n "(cached) " >&6
18308else
18309  ac_check_lib_save_LIBS=$LIBS
18310LIBS="-lresolv  $LIBS"
18311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312/* end confdefs.h.  */
18313
18314/* Override any GCC internal prototype to avoid an error.
18315   Use char because int might match the return type of a GCC
18316   builtin and then its argument prototype would still apply.  */
18317#ifdef __cplusplus
18318extern "C"
18319#endif
18320char inet_aton ();
18321int
18322main ()
18323{
18324return inet_aton ();
18325  ;
18326  return 0;
18327}
18328_ACEOF
18329if ac_fn_c_try_link "$LINENO"; then :
18330  ac_cv_lib_resolv_inet_aton=yes
18331else
18332  ac_cv_lib_resolv_inet_aton=no
18333fi
18334rm -f core conftest.err conftest.$ac_objext \
18335    conftest$ac_exeext conftest.$ac_ext
18336LIBS=$ac_check_lib_save_LIBS
18337fi
18338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
18339$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
18340if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
18341  cat >>confdefs.h <<_ACEOF
18342#define HAVE_LIBRESOLV 1
18343_ACEOF
18344
18345  LIBS="-lresolv $LIBS"
18346
18347fi
18348
18349fi
18350
18351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standalone inet_aton" >&5
18352$as_echo_n "checking for standalone inet_aton... " >&6; }
18353if ${pr_cv_lib_standalone_aton+:} false; then :
18354  $as_echo_n "(cached) " >&6
18355else
18356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357/* end confdefs.h.  */
18358
18359int
18360main ()
18361{
18362inet_aton();
18363  ;
18364  return 0;
18365}
18366_ACEOF
18367if ac_fn_c_try_link "$LINENO"; then :
18368  pr_cv_lib_standalone_aton="yes"
18369else
18370  pr_cv_lib_standalone_aton="no"
18371fi
18372rm -f core conftest.err conftest.$ac_objext \
18373    conftest$ac_exeext conftest.$ac_ext
18374fi
18375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_lib_standalone_aton" >&5
18376$as_echo "$pr_cv_lib_standalone_aton" >&6; }
18377
18378if test "$pr_cv_lib_standalone_aton" = "no"; then
18379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lbind" >&5
18380$as_echo_n "checking for inet_aton in -lbind... " >&6; }
18381if ${ac_cv_lib_bind_inet_aton+:} false; then :
18382  $as_echo_n "(cached) " >&6
18383else
18384  ac_check_lib_save_LIBS=$LIBS
18385LIBS="-lbind  $LIBS"
18386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387/* end confdefs.h.  */
18388
18389/* Override any GCC internal prototype to avoid an error.
18390   Use char because int might match the return type of a GCC
18391   builtin and then its argument prototype would still apply.  */
18392#ifdef __cplusplus
18393extern "C"
18394#endif
18395char inet_aton ();
18396int
18397main ()
18398{
18399return inet_aton ();
18400  ;
18401  return 0;
18402}
18403_ACEOF
18404if ac_fn_c_try_link "$LINENO"; then :
18405  ac_cv_lib_bind_inet_aton=yes
18406else
18407  ac_cv_lib_bind_inet_aton=no
18408fi
18409rm -f core conftest.err conftest.$ac_objext \
18410    conftest$ac_exeext conftest.$ac_ext
18411LIBS=$ac_check_lib_save_LIBS
18412fi
18413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_aton" >&5
18414$as_echo "$ac_cv_lib_bind_inet_aton" >&6; }
18415if test "x$ac_cv_lib_bind_inet_aton" = xyes; then :
18416  cat >>confdefs.h <<_ACEOF
18417#define HAVE_LIBBIND 1
18418_ACEOF
18419
18420  LIBS="-lbind $LIBS"
18421
18422fi
18423
18424fi
18425
18426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standalone nsl functions" >&5
18427$as_echo_n "checking for standalone nsl functions... " >&6; }
18428if ${pr_cv_lib_standalone_nsl+:} false; then :
18429  $as_echo_n "(cached) " >&6
18430else
18431
18432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433/* end confdefs.h.  */
18434
18435int
18436main ()
18437{
18438gethostent();
18439  ;
18440  return 0;
18441}
18442_ACEOF
18443if ac_fn_c_try_link "$LINENO"; then :
18444  pr_cv_lib_standalone_nsl="yes"
18445else
18446  pr_cv_lib_standalone_nsl="no"
18447fi
18448rm -f core conftest.err conftest.$ac_objext \
18449    conftest$ac_exeext conftest.$ac_ext
18450fi
18451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_lib_standalone_nsl" >&5
18452$as_echo "$pr_cv_lib_standalone_nsl" >&6; }
18453
18454if test "$pr_cv_lib_standalone_nsl" = "no"; then
18455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostent in -lnsl" >&5
18456$as_echo_n "checking for gethostent in -lnsl... " >&6; }
18457if ${ac_cv_lib_nsl_gethostent+:} false; then :
18458  $as_echo_n "(cached) " >&6
18459else
18460  ac_check_lib_save_LIBS=$LIBS
18461LIBS="-lnsl  $LIBS"
18462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18463/* end confdefs.h.  */
18464
18465/* Override any GCC internal prototype to avoid an error.
18466   Use char because int might match the return type of a GCC
18467   builtin and then its argument prototype would still apply.  */
18468#ifdef __cplusplus
18469extern "C"
18470#endif
18471char gethostent ();
18472int
18473main ()
18474{
18475return gethostent ();
18476  ;
18477  return 0;
18478}
18479_ACEOF
18480if ac_fn_c_try_link "$LINENO"; then :
18481  ac_cv_lib_nsl_gethostent=yes
18482else
18483  ac_cv_lib_nsl_gethostent=no
18484fi
18485rm -f core conftest.err conftest.$ac_objext \
18486    conftest$ac_exeext conftest.$ac_ext
18487LIBS=$ac_check_lib_save_LIBS
18488fi
18489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostent" >&5
18490$as_echo "$ac_cv_lib_nsl_gethostent" >&6; }
18491if test "x$ac_cv_lib_nsl_gethostent" = xyes; then :
18492  cat >>confdefs.h <<_ACEOF
18493#define HAVE_LIBNSL 1
18494_ACEOF
18495
18496  LIBS="-lnsl $LIBS"
18497
18498fi
18499
18500fi
18501
18502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standalone socket functions" >&5
18503$as_echo_n "checking for standalone socket functions... " >&6; }
18504if ${pr_cv_lib_standalone_sockets+:} false; then :
18505  $as_echo_n "(cached) " >&6
18506else
18507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18508/* end confdefs.h.  */
18509
18510int
18511main ()
18512{
18513bind();
18514  ;
18515  return 0;
18516}
18517_ACEOF
18518if ac_fn_c_try_link "$LINENO"; then :
18519  pr_cv_lib_standalone_sockets="yes"
18520else
18521  pr_cv_lib_standalone_sockets="no"
18522fi
18523rm -f core conftest.err conftest.$ac_objext \
18524    conftest$ac_exeext conftest.$ac_ext
18525fi
18526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_lib_standalone_sockets" >&5
18527$as_echo "$pr_cv_lib_standalone_sockets" >&6; }
18528
18529if test "$pr_cv_lib_standalone_sockets" = "no"; then
18530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
18531$as_echo_n "checking for bind in -lsocket... " >&6; }
18532if ${ac_cv_lib_socket_bind+:} false; then :
18533  $as_echo_n "(cached) " >&6
18534else
18535  ac_check_lib_save_LIBS=$LIBS
18536LIBS="-lsocket  $LIBS"
18537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538/* end confdefs.h.  */
18539
18540/* Override any GCC internal prototype to avoid an error.
18541   Use char because int might match the return type of a GCC
18542   builtin and then its argument prototype would still apply.  */
18543#ifdef __cplusplus
18544extern "C"
18545#endif
18546char bind ();
18547int
18548main ()
18549{
18550return bind ();
18551  ;
18552  return 0;
18553}
18554_ACEOF
18555if ac_fn_c_try_link "$LINENO"; then :
18556  ac_cv_lib_socket_bind=yes
18557else
18558  ac_cv_lib_socket_bind=no
18559fi
18560rm -f core conftest.err conftest.$ac_objext \
18561    conftest$ac_exeext conftest.$ac_ext
18562LIBS=$ac_check_lib_save_LIBS
18563fi
18564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
18565$as_echo "$ac_cv_lib_socket_bind" >&6; }
18566if test "x$ac_cv_lib_socket_bind" = xyes; then :
18567  cat >>confdefs.h <<_ACEOF
18568#define HAVE_LIBSOCKET 1
18569_ACEOF
18570
18571  LIBS="-lsocket $LIBS"
18572
18573fi
18574
18575fi
18576
18577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _pw_stayopen variable" >&5
18578$as_echo_n "checking for _pw_stayopen variable... " >&6; }
18579if ${pr_cv_var__pw_stayopen+:} false; then :
18580  $as_echo_n "(cached) " >&6
18581else
18582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583/* end confdefs.h.  */
18584extern int _pw_stayopen;
18585int
18586main ()
18587{
18588_pw_stayopen = 1;
18589  ;
18590  return 0;
18591}
18592_ACEOF
18593if ac_fn_c_try_link "$LINENO"; then :
18594  pr_cv_var__pw_stayopen="yes"
18595else
18596  pr_cv_var__pw_stayopen="no"
18597fi
18598rm -f core conftest.err conftest.$ac_objext \
18599    conftest$ac_exeext conftest.$ac_ext
18600fi
18601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_var__pw_stayopen" >&5
18602$as_echo "$pr_cv_var__pw_stayopen" >&6; }
18603
18604if test "$pr_cv_var__pw_stayopen" = "yes"; then
18605
18606$as_echo "#define HAVE__PW_STAYOPEN 1" >>confdefs.h
18607
18608fi
18609
18610for ac_header in krb.h login.h prot.h usersec.h sys/audit.h
18611do :
18612  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18613ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18614if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18615  cat >>confdefs.h <<_ACEOF
18616#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18617_ACEOF
18618
18619fi
18620
18621done
18622
18623
18624for ac_header in hpsecurity.h
18625do :
18626  ac_fn_c_check_header_mongrel "$LINENO" "hpsecurity.h" "ac_cv_header_hpsecurity_h" "$ac_includes_default"
18627if test "x$ac_cv_header_hpsecurity_h" = xyes; then :
18628  cat >>confdefs.h <<_ACEOF
18629#define HAVE_HPSECURITY_H 1
18630_ACEOF
18631
18632    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
18633$as_echo_n "checking for library containing getprpwnam... " >&6; }
18634if ${ac_cv_search_getprpwnam+:} false; then :
18635  $as_echo_n "(cached) " >&6
18636else
18637  ac_func_search_save_LIBS=$LIBS
18638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639/* end confdefs.h.  */
18640
18641/* Override any GCC internal prototype to avoid an error.
18642   Use char because int might match the return type of a GCC
18643   builtin and then its argument prototype would still apply.  */
18644#ifdef __cplusplus
18645extern "C"
18646#endif
18647char getprpwnam ();
18648int
18649main ()
18650{
18651return getprpwnam ();
18652  ;
18653  return 0;
18654}
18655_ACEOF
18656for ac_lib in '' sec; do
18657  if test -z "$ac_lib"; then
18658    ac_res="none required"
18659  else
18660    ac_res=-l$ac_lib
18661    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18662  fi
18663  if ac_fn_c_try_link "$LINENO"; then :
18664  ac_cv_search_getprpwnam=$ac_res
18665fi
18666rm -f core conftest.err conftest.$ac_objext \
18667    conftest$ac_exeext
18668  if ${ac_cv_search_getprpwnam+:} false; then :
18669  break
18670fi
18671done
18672if ${ac_cv_search_getprpwnam+:} false; then :
18673
18674else
18675  ac_cv_search_getprpwnam=no
18676fi
18677rm conftest.$ac_ext
18678LIBS=$ac_func_search_save_LIBS
18679fi
18680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
18681$as_echo "$ac_cv_search_getprpwnam" >&6; }
18682ac_res=$ac_cv_search_getprpwnam
18683if test "$ac_res" != no; then :
18684  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18685
18686fi
18687
18688
18689else
18690
18691    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hpsecurity.h workaround" >&5
18692$as_echo_n "checking for hpsecurity.h workaround... " >&6; }
18693    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18694/* end confdefs.h.  */
18695
18696#include <values.h>
18697#undef MAXINT
18698#include <hpsecurity.h>
18699
18700int
18701main ()
18702{
18703
18704  ;
18705  return 0;
18706}
18707_ACEOF
18708if ac_fn_c_try_compile "$LINENO"; then :
18709
18710
18711$as_echo "#define HAVE_HPSECURITY_H 1" >>confdefs.h
18712
18713    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
18714$as_echo_n "checking for library containing getprpwnam... " >&6; }
18715if ${ac_cv_search_getprpwnam+:} false; then :
18716  $as_echo_n "(cached) " >&6
18717else
18718  ac_func_search_save_LIBS=$LIBS
18719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18720/* end confdefs.h.  */
18721
18722/* Override any GCC internal prototype to avoid an error.
18723   Use char because int might match the return type of a GCC
18724   builtin and then its argument prototype would still apply.  */
18725#ifdef __cplusplus
18726extern "C"
18727#endif
18728char getprpwnam ();
18729int
18730main ()
18731{
18732return getprpwnam ();
18733  ;
18734  return 0;
18735}
18736_ACEOF
18737for ac_lib in '' sec; do
18738  if test -z "$ac_lib"; then
18739    ac_res="none required"
18740  else
18741    ac_res=-l$ac_lib
18742    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18743  fi
18744  if ac_fn_c_try_link "$LINENO"; then :
18745  ac_cv_search_getprpwnam=$ac_res
18746fi
18747rm -f core conftest.err conftest.$ac_objext \
18748    conftest$ac_exeext
18749  if ${ac_cv_search_getprpwnam+:} false; then :
18750  break
18751fi
18752done
18753if ${ac_cv_search_getprpwnam+:} false; then :
18754
18755else
18756  ac_cv_search_getprpwnam=no
18757fi
18758rm conftest.$ac_ext
18759LIBS=$ac_func_search_save_LIBS
18760fi
18761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
18762$as_echo "$ac_cv_search_getprpwnam" >&6; }
18763ac_res=$ac_cv_search_getprpwnam
18764if test "$ac_res" != no; then :
18765  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18766
18767fi
18768
18769    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18770$as_echo "yes" >&6; }
18771
18772else
18773
18774    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18775$as_echo "no" >&6; }
18776
18777fi
18778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18779
18780fi
18781
18782done
18783
18784
18785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX authenticate" >&5
18786$as_echo_n "checking for AIX authenticate... " >&6; }
18787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18788/* end confdefs.h.  */
18789
18790  #include <sys/types.h>
18791  #ifdef HAVE_USERSEC_H
18792  # include <usersec.h>
18793  #else
18794  # error "we are not on AIX"
18795  #endif
18796
18797int
18798main ()
18799{
18800
18801    (void) authenticate(NULL, NULL, NULL, NULL);
18802
18803  ;
18804  return 0;
18805}
18806_ACEOF
18807if ac_fn_c_try_link "$LINENO"; then :
18808
18809
18810$as_echo "#define HAVE_AUTHENTICATE 1" >>confdefs.h
18811
18812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18813$as_echo "yes" >&6; }
18814
18815else
18816
18817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18818$as_echo "no" >&6; }
18819
18820
18821fi
18822rm -f core conftest.err conftest.$ac_objext \
18823    conftest$ac_exeext conftest.$ac_ext
18824
18825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX loginfailed" >&5
18826$as_echo_n "checking for AIX loginfailed... " >&6; }
18827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18828/* end confdefs.h.  */
18829
18830  #include <sys/types.h>
18831  #ifdef HAVE_USERSEC_H
18832  # include <usersec.h>
18833  #else
18834  # error "we are not on AIX"
18835  #endif
18836
18837int
18838main ()
18839{
18840
18841    (void) loginfailed(NULL, NULL, NULL, 0);
18842
18843  ;
18844  return 0;
18845}
18846_ACEOF
18847if ac_fn_c_try_link "$LINENO"; then :
18848
18849
18850$as_echo "#define HAVE_LOGINFAILED 1" >>confdefs.h
18851
18852    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18853$as_echo "yes" >&6; }
18854
18855else
18856
18857    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18858$as_echo "no" >&6; }
18859
18860
18861fi
18862rm -f core conftest.err conftest.$ac_objext \
18863    conftest$ac_exeext conftest.$ac_ext
18864
18865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX loginsuccess" >&5
18866$as_echo_n "checking for AIX loginsuccess... " >&6; }
18867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18868/* end confdefs.h.  */
18869
18870  #include <sys/types.h>
18871  #ifdef HAVE_USERSEC_H
18872  # include <usersec.h>
18873  #else
18874  # error "we are not on AIX"
18875  #endif
18876
18877int
18878main ()
18879{
18880
18881    (void) loginsuccess(NULL, NULL, NULL, NULL);
18882
18883  ;
18884  return 0;
18885}
18886_ACEOF
18887if ac_fn_c_try_link "$LINENO"; then :
18888
18889
18890$as_echo "#define HAVE_LOGINSUCCESS 1" >>confdefs.h
18891
18892    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18893$as_echo "yes" >&6; }
18894
18895else
18896
18897    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18898$as_echo "no" >&6; }
18899
18900
18901fi
18902rm -f core conftest.err conftest.$ac_objext \
18903    conftest$ac_exeext conftest.$ac_ext
18904
18905
18906if test x"$install_user" = x; then
18907  if test "x$target_os" = "xcygwin"; then
18908    install_user=`id -u`
18909  else
18910    install_user=root
18911  fi
18912fi
18913if test x"$install_group" = x ; then
18914  if test "x$target_os" = "xcygwin"; then
18915    install_group=`id -g`
18916  else
18917    install_group=`sed -n '/.*:.*:0:/{s/^\(.*\):.*:0:.*/\1/p;q;}' /etc/group 2>/dev/null`
18918  fi
18919fi
18920
18921
18922
18923
18924ac_header_dirent=no
18925for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18926  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18928$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18929if eval \${$as_ac_Header+:} false; then :
18930  $as_echo_n "(cached) " >&6
18931else
18932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933/* end confdefs.h.  */
18934#include <sys/types.h>
18935#include <$ac_hdr>
18936
18937int
18938main ()
18939{
18940if ((DIR *) 0)
18941return 0;
18942  ;
18943  return 0;
18944}
18945_ACEOF
18946if ac_fn_c_try_compile "$LINENO"; then :
18947  eval "$as_ac_Header=yes"
18948else
18949  eval "$as_ac_Header=no"
18950fi
18951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952fi
18953eval ac_res=\$$as_ac_Header
18954	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18955$as_echo "$ac_res" >&6; }
18956if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18957  cat >>confdefs.h <<_ACEOF
18958#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18959_ACEOF
18960
18961ac_header_dirent=$ac_hdr; break
18962fi
18963
18964done
18965# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18966if test $ac_header_dirent = dirent.h; then
18967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18968$as_echo_n "checking for library containing opendir... " >&6; }
18969if ${ac_cv_search_opendir+:} false; then :
18970  $as_echo_n "(cached) " >&6
18971else
18972  ac_func_search_save_LIBS=$LIBS
18973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18974/* end confdefs.h.  */
18975
18976/* Override any GCC internal prototype to avoid an error.
18977   Use char because int might match the return type of a GCC
18978   builtin and then its argument prototype would still apply.  */
18979#ifdef __cplusplus
18980extern "C"
18981#endif
18982char opendir ();
18983int
18984main ()
18985{
18986return opendir ();
18987  ;
18988  return 0;
18989}
18990_ACEOF
18991for ac_lib in '' dir; do
18992  if test -z "$ac_lib"; then
18993    ac_res="none required"
18994  else
18995    ac_res=-l$ac_lib
18996    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18997  fi
18998  if ac_fn_c_try_link "$LINENO"; then :
18999  ac_cv_search_opendir=$ac_res
19000fi
19001rm -f core conftest.err conftest.$ac_objext \
19002    conftest$ac_exeext
19003  if ${ac_cv_search_opendir+:} false; then :
19004  break
19005fi
19006done
19007if ${ac_cv_search_opendir+:} false; then :
19008
19009else
19010  ac_cv_search_opendir=no
19011fi
19012rm conftest.$ac_ext
19013LIBS=$ac_func_search_save_LIBS
19014fi
19015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19016$as_echo "$ac_cv_search_opendir" >&6; }
19017ac_res=$ac_cv_search_opendir
19018if test "$ac_res" != no; then :
19019  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19020
19021fi
19022
19023else
19024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19025$as_echo_n "checking for library containing opendir... " >&6; }
19026if ${ac_cv_search_opendir+:} false; then :
19027  $as_echo_n "(cached) " >&6
19028else
19029  ac_func_search_save_LIBS=$LIBS
19030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19031/* end confdefs.h.  */
19032
19033/* Override any GCC internal prototype to avoid an error.
19034   Use char because int might match the return type of a GCC
19035   builtin and then its argument prototype would still apply.  */
19036#ifdef __cplusplus
19037extern "C"
19038#endif
19039char opendir ();
19040int
19041main ()
19042{
19043return opendir ();
19044  ;
19045  return 0;
19046}
19047_ACEOF
19048for ac_lib in '' x; do
19049  if test -z "$ac_lib"; then
19050    ac_res="none required"
19051  else
19052    ac_res=-l$ac_lib
19053    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19054  fi
19055  if ac_fn_c_try_link "$LINENO"; then :
19056  ac_cv_search_opendir=$ac_res
19057fi
19058rm -f core conftest.err conftest.$ac_objext \
19059    conftest$ac_exeext
19060  if ${ac_cv_search_opendir+:} false; then :
19061  break
19062fi
19063done
19064if ${ac_cv_search_opendir+:} false; then :
19065
19066else
19067  ac_cv_search_opendir=no
19068fi
19069rm conftest.$ac_ext
19070LIBS=$ac_func_search_save_LIBS
19071fi
19072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19073$as_echo "$ac_cv_search_opendir" >&6; }
19074ac_res=$ac_cv_search_opendir
19075if test "$ac_res" != no; then :
19076  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19077
19078fi
19079
19080fi
19081
19082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19083$as_echo_n "checking for ANSI C header files... " >&6; }
19084if ${ac_cv_header_stdc+:} false; then :
19085  $as_echo_n "(cached) " >&6
19086else
19087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088/* end confdefs.h.  */
19089#include <stdlib.h>
19090#include <stdarg.h>
19091#include <string.h>
19092#include <float.h>
19093
19094int
19095main ()
19096{
19097
19098  ;
19099  return 0;
19100}
19101_ACEOF
19102if ac_fn_c_try_compile "$LINENO"; then :
19103  ac_cv_header_stdc=yes
19104else
19105  ac_cv_header_stdc=no
19106fi
19107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19108
19109if test $ac_cv_header_stdc = yes; then
19110  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112/* end confdefs.h.  */
19113#include <string.h>
19114
19115_ACEOF
19116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19117  $EGREP "memchr" >/dev/null 2>&1; then :
19118
19119else
19120  ac_cv_header_stdc=no
19121fi
19122rm -f conftest*
19123
19124fi
19125
19126if test $ac_cv_header_stdc = yes; then
19127  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129/* end confdefs.h.  */
19130#include <stdlib.h>
19131
19132_ACEOF
19133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19134  $EGREP "free" >/dev/null 2>&1; then :
19135
19136else
19137  ac_cv_header_stdc=no
19138fi
19139rm -f conftest*
19140
19141fi
19142
19143if test $ac_cv_header_stdc = yes; then
19144  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19145  if test "$cross_compiling" = yes; then :
19146  :
19147else
19148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149/* end confdefs.h.  */
19150#include <ctype.h>
19151#include <stdlib.h>
19152#if ((' ' & 0x0FF) == 0x020)
19153# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19154# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19155#else
19156# define ISLOWER(c) \
19157		   (('a' <= (c) && (c) <= 'i') \
19158		     || ('j' <= (c) && (c) <= 'r') \
19159		     || ('s' <= (c) && (c) <= 'z'))
19160# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19161#endif
19162
19163#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19164int
19165main ()
19166{
19167  int i;
19168  for (i = 0; i < 256; i++)
19169    if (XOR (islower (i), ISLOWER (i))
19170	|| toupper (i) != TOUPPER (i))
19171      return 2;
19172  return 0;
19173}
19174_ACEOF
19175if ac_fn_c_try_run "$LINENO"; then :
19176
19177else
19178  ac_cv_header_stdc=no
19179fi
19180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19181  conftest.$ac_objext conftest.beam conftest.$ac_ext
19182fi
19183
19184fi
19185fi
19186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19187$as_echo "$ac_cv_header_stdc" >&6; }
19188if test $ac_cv_header_stdc = yes; then
19189
19190$as_echo "#define STDC_HEADERS 1" >>confdefs.h
19191
19192fi
19193
19194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
19195$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
19196if ${ac_cv_header_sys_wait_h+:} false; then :
19197  $as_echo_n "(cached) " >&6
19198else
19199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200/* end confdefs.h.  */
19201#include <sys/types.h>
19202#include <sys/wait.h>
19203#ifndef WEXITSTATUS
19204# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19205#endif
19206#ifndef WIFEXITED
19207# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19208#endif
19209
19210int
19211main ()
19212{
19213  int s;
19214  wait (&s);
19215  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19216  ;
19217  return 0;
19218}
19219_ACEOF
19220if ac_fn_c_try_compile "$LINENO"; then :
19221  ac_cv_header_sys_wait_h=yes
19222else
19223  ac_cv_header_sys_wait_h=no
19224fi
19225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19226fi
19227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
19228$as_echo "$ac_cv_header_sys_wait_h" >&6; }
19229if test $ac_cv_header_sys_wait_h = yes; then
19230
19231$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
19232
19233fi
19234
19235for ac_header in fcntl.h signal.h linux/prctl.h sys/ioctl.h sys/prctl.h sys/resource.h sys/time.h junistd.h memory.h
19236do :
19237  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19238ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19239if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19240  cat >>confdefs.h <<_ACEOF
19241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19242_ACEOF
19243
19244fi
19245
19246done
19247
19248if test x"$force_shadow" != xno ; then
19249  for ac_header in shadow.h
19250do :
19251  ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
19252if test "x$ac_cv_header_shadow_h" = xyes; then :
19253  cat >>confdefs.h <<_ACEOF
19254#define HAVE_SHADOW_H 1
19255_ACEOF
19256  if test "$use_shadow" = "" && test -f /etc/shadow ; then
19257
19258$as_echo "#define PR_USE_SHADOW 1" >>confdefs.h
19259
19260
19261        ac_fn_c_check_member "$LINENO" "struct spwd" "sp_warn" "ac_cv_member_struct_spwd_sp_warn" "#include <shadow.h>
19262"
19263if test "x$ac_cv_member_struct_spwd_sp_warn" = xyes; then :
19264
19265$as_echo "#define HAVE_SPWD_SP_WARN 1" >>confdefs.h
19266
19267fi
19268
19269        ac_fn_c_check_member "$LINENO" "struct spwd" "sp_inact" "ac_cv_member_struct_spwd_sp_inact" "#include <shadow.h>
19270"
19271if test "x$ac_cv_member_struct_spwd_sp_inact" = xyes; then :
19272
19273$as_echo "#define HAVE_SPWD_SP_INACT 1" >>confdefs.h
19274
19275fi
19276
19277        ac_fn_c_check_member "$LINENO" "struct spwd" "sp_expire" "ac_cv_member_struct_spwd_sp_expire" "#include <shadow.h>
19278"
19279if test "x$ac_cv_member_struct_spwd_sp_expire" = xyes; then :
19280
19281$as_echo "#define HAVE_SPWD_SP_EXPIRE 1" >>confdefs.h
19282
19283fi
19284
19285      fi
19286fi
19287
19288done
19289
19290fi
19291
19292if test x"$enable_auth_pam" != xno ; then
19293  for ac_header in security/pam_appl.h security/pam_modules.h pam/pam_appl.h
19294do :
19295  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19296ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19297      #ifdef HAVE_SECURITY_PAM_APPL_H
19298      # include <security/pam_appl.h>
19299      #endif
19300
19301"
19302if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19303  cat >>confdefs.h <<_ACEOF
19304#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19305_ACEOF
19306
19307      if test `echo $ac_static_modules | grep -c mod_auth_pam` = "0"; then
19308        ac_static_modules="mod_auth_pam.o $ac_static_modules"
19309        ac_build_static_modules="modules/mod_auth_pam.o $ac_build_static_modules"
19310      fi
19311
19312fi
19313
19314done
19315
19316
19317
19318  if test `echo $ac_static_modules | grep -c mod_auth_pam` = "1"; then
19319
19320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
19321$as_echo_n "checking for pam_start in -lpam... " >&6; }
19322if ${ac_cv_lib_pam_pam_start+:} false; then :
19323  $as_echo_n "(cached) " >&6
19324else
19325  ac_check_lib_save_LIBS=$LIBS
19326LIBS="-lpam  $LIBS"
19327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19328/* end confdefs.h.  */
19329
19330/* Override any GCC internal prototype to avoid an error.
19331   Use char because int might match the return type of a GCC
19332   builtin and then its argument prototype would still apply.  */
19333#ifdef __cplusplus
19334extern "C"
19335#endif
19336char pam_start ();
19337int
19338main ()
19339{
19340return pam_start ();
19341  ;
19342  return 0;
19343}
19344_ACEOF
19345if ac_fn_c_try_link "$LINENO"; then :
19346  ac_cv_lib_pam_pam_start=yes
19347else
19348  ac_cv_lib_pam_pam_start=no
19349fi
19350rm -f core conftest.err conftest.$ac_objext \
19351    conftest$ac_exeext conftest.$ac_ext
19352LIBS=$ac_check_lib_save_LIBS
19353fi
19354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
19355$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
19356if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
19357
19358$as_echo "#define HAVE_PAM 1" >>confdefs.h
19359
19360else
19361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_end in -lpam" >&5
19362$as_echo_n "checking for pam_end in -lpam... " >&6; }
19363if ${ac_cv_lib_pam_pam_end+:} false; then :
19364  $as_echo_n "(cached) " >&6
19365else
19366  ac_check_lib_save_LIBS=$LIBS
19367LIBS="-lpam -ldl $LIBS"
19368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369/* end confdefs.h.  */
19370
19371/* Override any GCC internal prototype to avoid an error.
19372   Use char because int might match the return type of a GCC
19373   builtin and then its argument prototype would still apply.  */
19374#ifdef __cplusplus
19375extern "C"
19376#endif
19377char pam_end ();
19378int
19379main ()
19380{
19381return pam_end ();
19382  ;
19383  return 0;
19384}
19385_ACEOF
19386if ac_fn_c_try_link "$LINENO"; then :
19387  ac_cv_lib_pam_pam_end=yes
19388else
19389  ac_cv_lib_pam_pam_end=no
19390fi
19391rm -f core conftest.err conftest.$ac_objext \
19392    conftest$ac_exeext conftest.$ac_ext
19393LIBS=$ac_check_lib_save_LIBS
19394fi
19395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_end" >&5
19396$as_echo "$ac_cv_lib_pam_pam_end" >&6; }
19397if test "x$ac_cv_lib_pam_pam_end" = xyes; then :
19398
19399$as_echo "#define HAVE_PAM 1" >>confdefs.h
19400
19401					LIBS="$LIBS -ldl"
19402fi
19403
19404fi
19405
19406  fi
19407
19408fi
19409
19410ac_add_mod_cap="no"
19411ac_have_libcap="no"
19412if test x"$enable_cap" != xno; then
19413  case "$host" in
19414    *-linux-*)
19415      rev=`uname -r | awk -F'[.-]' '{printf "%03d%03d%03d", $1, $2, $3}'`
19416
19417      if test $rev -ge 002001097; then
19418        for ac_header in linux/capability.h sys/capability.h
19419do :
19420  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19421ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19422if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19423  cat >>confdefs.h <<_ACEOF
19424#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19425_ACEOF
19426
19427fi
19428
19429done
19430
19431
19432        if test x"$ac_cv_header_linux_capability_h" = "xyes" && test x"$ac_cv_header_sys_capability_h" = "xyes"; then
19433          ac_add_mod_cap="yes"
19434        fi
19435
19436        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap2" >&5
19437$as_echo_n "checking for cap_init in -lcap2... " >&6; }
19438if ${ac_cv_lib_cap2_cap_init+:} false; then :
19439  $as_echo_n "(cached) " >&6
19440else
19441  ac_check_lib_save_LIBS=$LIBS
19442LIBS="-lcap2  $LIBS"
19443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19444/* end confdefs.h.  */
19445
19446/* Override any GCC internal prototype to avoid an error.
19447   Use char because int might match the return type of a GCC
19448   builtin and then its argument prototype would still apply.  */
19449#ifdef __cplusplus
19450extern "C"
19451#endif
19452char cap_init ();
19453int
19454main ()
19455{
19456return cap_init ();
19457  ;
19458  return 0;
19459}
19460_ACEOF
19461if ac_fn_c_try_link "$LINENO"; then :
19462  ac_cv_lib_cap2_cap_init=yes
19463else
19464  ac_cv_lib_cap2_cap_init=no
19465fi
19466rm -f core conftest.err conftest.$ac_objext \
19467    conftest$ac_exeext conftest.$ac_ext
19468LIBS=$ac_check_lib_save_LIBS
19469fi
19470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap2_cap_init" >&5
19471$as_echo "$ac_cv_lib_cap2_cap_init" >&6; }
19472if test "x$ac_cv_lib_cap2_cap_init" = xyes; then :
19473  ac_have_libcap="yes"
19474
19475$as_echo "#define HAVE_LIBCAP2 1" >>confdefs.h
19476
19477
19478
19479else
19480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
19481$as_echo_n "checking for cap_init in -lcap... " >&6; }
19482if ${ac_cv_lib_cap_cap_init+:} false; then :
19483  $as_echo_n "(cached) " >&6
19484else
19485  ac_check_lib_save_LIBS=$LIBS
19486LIBS="-lcap  $LIBS"
19487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19488/* end confdefs.h.  */
19489
19490/* Override any GCC internal prototype to avoid an error.
19491   Use char because int might match the return type of a GCC
19492   builtin and then its argument prototype would still apply.  */
19493#ifdef __cplusplus
19494extern "C"
19495#endif
19496char cap_init ();
19497int
19498main ()
19499{
19500return cap_init ();
19501  ;
19502  return 0;
19503}
19504_ACEOF
19505if ac_fn_c_try_link "$LINENO"; then :
19506  ac_cv_lib_cap_cap_init=yes
19507else
19508  ac_cv_lib_cap_cap_init=no
19509fi
19510rm -f core conftest.err conftest.$ac_objext \
19511    conftest$ac_exeext conftest.$ac_ext
19512LIBS=$ac_check_lib_save_LIBS
19513fi
19514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
19515$as_echo "$ac_cv_lib_cap_cap_init" >&6; }
19516if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
19517  ac_have_libcap="yes"
19518
19519$as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
19520
19521
19522fi
19523
19524
19525fi
19526
19527      fi
19528  esac
19529fi
19530
19531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cap" >&5
19532$as_echo_n "checking whether to enable mod_cap... " >&6; }
19533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_add_mod_cap" >&5
19534$as_echo "$ac_add_mod_cap" >&6; }
19535
19536if test x"$ac_add_mod_cap" = xyes; then
19537
19538      if test x"$ifsession_requested" = xtrue; then
19539    ac_static_modules=`echo "$ac_static_modules" | sed -e 's/mod_ifsession\.o//g'`
19540    ac_static_modules="$ac_static_modules mod_cap.o mod_ifsession.o"
19541
19542    ac_build_static_modules=`echo "$ac_build_static_modules" | sed -e 's/modules\/mod_ifsession\.o//g'`
19543    ac_build_static_modules="$ac_build_static_modules modules/mod_cap.o modules/mod_ifsession.o";
19544
19545  else
19546    ac_static_modules="$ac_static_modules mod_cap.o"
19547    ac_build_static_modules="$ac_build_static_modules modules/mod_cap.o"
19548  fi
19549fi
19550
19551for ac_header in bstring.h crypt.h ctype.h execinfo.h iconv.h inttypes.h langinfo.h limits.h locale.h sasl/sasl.h
19552do :
19553  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19554ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19555if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19556  cat >>confdefs.h <<_ACEOF
19557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19558_ACEOF
19559
19560fi
19561
19562done
19563
19564for ac_header in string.h strings.h stropts.h
19565do :
19566  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19567ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19568if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19569  cat >>confdefs.h <<_ACEOF
19570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19571_ACEOF
19572
19573fi
19574
19575done
19576
19577for ac_header in sys/file.h sys/mman.h sys/types.h sys/ucred.h sys/uio.h sys/socket.h
19578do :
19579  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19580ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19581if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19582  cat >>confdefs.h <<_ACEOF
19583#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19584_ACEOF
19585
19586fi
19587
19588done
19589
19590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net/if.h" >&5
19591$as_echo_n "checking for net/if.h... " >&6; }
19592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19593/* end confdefs.h.  */
19594
19595  #include <time.h>
19596  #ifdef HAVE_SYS_TYPES_H
19597  # include <sys/types.h>
19598  #endif
19599  #ifdef HAVE_SYS_SOCKET_H
19600  # include <sys/socket.h>
19601  #endif
19602  #include <net/if.h>
19603
19604int
19605main ()
19606{
19607
19608
19609  ;
19610  return 0;
19611}
19612_ACEOF
19613if ac_fn_c_try_compile "$LINENO"; then :
19614
19615
19616$as_echo "#define HAVE_NET_IF_H 1" >>confdefs.h
19617
19618    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19619$as_echo "yes" >&6; }
19620
19621else
19622
19623    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19624$as_echo "no" >&6; }
19625
19626fi
19627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19628
19629for ac_header in ifaddrs.h
19630do :
19631  ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
19632if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
19633  cat >>confdefs.h <<_ACEOF
19634#define HAVE_IFADDRS_H 1
19635_ACEOF
19636
19637fi
19638
19639done
19640
19641
19642for ac_header in sys/param.h sys/mount.h
19643do :
19644  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19645ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19646
19647     #if HAVE_SYS_PARAM_H
19648     # include <sys/param.h>
19649     #endif
19650
19651
19652"
19653if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19654  cat >>confdefs.h <<_ACEOF
19655#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19656_ACEOF
19657
19658fi
19659
19660done
19661
19662
19663for ac_header in netdb.h netinet/in.h
19664do :
19665  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19666ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19667if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19668  cat >>confdefs.h <<_ACEOF
19669#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19670_ACEOF
19671
19672fi
19673
19674done
19675
19676
19677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb.h requires _USE_IRS" >&5
19678$as_echo_n "checking whether netdb.h requires _USE_IRS... " >&6; }
19679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680/* end confdefs.h.  */
19681#include <netdb.h>
19682
19683_ACEOF
19684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19685  $EGREP "_USE_IRS" >/dev/null 2>&1; then :
19686
19687
19688$as_echo "#define _USE_IRS 1" >>confdefs.h
19689
19690    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19691$as_echo "yes" >&6; }
19692
19693else
19694
19695    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19696$as_echo "no" >&6; }
19697
19698fi
19699rm -f conftest*
19700
19701
19702for ac_header in netinet/in_systm.h
19703do :
19704  ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "
19705
19706     #if HAVE_SYS_TYPES_H
19707     # include <sys/types.h>
19708     #endif
19709
19710
19711"
19712if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then :
19713  cat >>confdefs.h <<_ACEOF
19714#define HAVE_NETINET_IN_SYSTM_H 1
19715_ACEOF
19716
19717fi
19718
19719done
19720
19721
19722for ac_header in netinet/ip.h
19723do :
19724  ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "
19725
19726     #if HAVE_SYS_TYPES_H
19727     # include <sys/types.h>
19728     #endif
19729     #if HAVE_NETINET_IN_H
19730     # include <netinet/in.h>
19731     #endif
19732     #if HAVE_NETINET_IN_SYSTM_H
19733     # include <netinet/in_systm.h>
19734     #endif
19735
19736
19737"
19738if test "x$ac_cv_header_netinet_ip_h" = xyes; then :
19739  cat >>confdefs.h <<_ACEOF
19740#define HAVE_NETINET_IP_H 1
19741_ACEOF
19742
19743fi
19744
19745done
19746
19747
19748for ac_header in netinet/tcp.h arpa/inet.h idna.h libintl.h
19749do :
19750  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19751ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19752if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19753  cat >>confdefs.h <<_ACEOF
19754#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19755_ACEOF
19756
19757fi
19758
19759done
19760
19761for ac_header in regex.h sys/stat.h errno.h sys/termios.h sys/termio.h
19762do :
19763  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19764ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19765if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19766  cat >>confdefs.h <<_ACEOF
19767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19768_ACEOF
19769
19770fi
19771
19772done
19773
19774for ac_header in sys/statfs.h sys/statvfs.h sys/un.h sys/vfs.h sys/select.h
19775do :
19776  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19777ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19778if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19779  cat >>confdefs.h <<_ACEOF
19780#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19781_ACEOF
19782
19783fi
19784
19785done
19786
19787for ac_header in termios.h dirent.h ndir.h sys/ndir.h sys/dir.h vmsdir.h
19788do :
19789  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19790ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19791if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19792  cat >>confdefs.h <<_ACEOF
19793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19794_ACEOF
19795
19796fi
19797
19798done
19799
19800for ac_header in ucred.h ucontext.h utime.h utmpx.h
19801do :
19802  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19803ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19804if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19805  cat >>confdefs.h <<_ACEOF
19806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19807_ACEOF
19808
19809fi
19810
19811done
19812
19813ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
19814if test "x$ac_cv_header_syslog_h" = xyes; then :
19815  have_syslog_h="yes"
19816fi
19817
19818
19819for ac_header in curses.h ncurses.h
19820do :
19821  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19822ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19823if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19824  cat >>confdefs.h <<_ACEOF
19825#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19826_ACEOF
19827
19828fi
19829
19830done
19831
19832
19833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname global variable" >&5
19834$as_echo_n "checking for tzname global variable... " >&6; }
19835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19836/* end confdefs.h.  */
19837
19838  #include <time.h>
19839
19840int
19841main ()
19842{
19843
19844    char *dup[2];
19845    dup[0] = tzname[0];
19846    dup[1] = tzname[1];
19847
19848  ;
19849  return 0;
19850}
19851_ACEOF
19852if ac_fn_c_try_compile "$LINENO"; then :
19853
19854
19855$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19856
19857    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19858$as_echo "yes" >&6; }
19859
19860else
19861
19862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19863$as_echo "no" >&6; }
19864
19865fi
19866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19867
19868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19869$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19870if ${ac_cv_c_const+:} false; then :
19871  $as_echo_n "(cached) " >&6
19872else
19873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19874/* end confdefs.h.  */
19875
19876int
19877main ()
19878{
19879
19880#ifndef __cplusplus
19881  /* Ultrix mips cc rejects this sort of thing.  */
19882  typedef int charset[2];
19883  const charset cs = { 0, 0 };
19884  /* SunOS 4.1.1 cc rejects this.  */
19885  char const *const *pcpcc;
19886  char **ppc;
19887  /* NEC SVR4.0.2 mips cc rejects this.  */
19888  struct point {int x, y;};
19889  static struct point const zero = {0,0};
19890  /* AIX XL C 1.02.0.0 rejects this.
19891     It does not let you subtract one const X* pointer from another in
19892     an arm of an if-expression whose if-part is not a constant
19893     expression */
19894  const char *g = "string";
19895  pcpcc = &g + (g ? g-g : 0);
19896  /* HPUX 7.0 cc rejects these. */
19897  ++pcpcc;
19898  ppc = (char**) pcpcc;
19899  pcpcc = (char const *const *) ppc;
19900  { /* SCO 3.2v4 cc rejects this sort of thing.  */
19901    char tx;
19902    char *t = &tx;
19903    char const *s = 0 ? (char *) 0 : (char const *) 0;
19904
19905    *t++ = 0;
19906    if (s) return 0;
19907  }
19908  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19909    int x[] = {25, 17};
19910    const int *foo = &x[0];
19911    ++foo;
19912  }
19913  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19914    typedef const int *iptr;
19915    iptr p = 0;
19916    ++p;
19917  }
19918  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19919       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19920    struct s { int j; const int *ap[3]; } bx;
19921    struct s *b = &bx; b->j = 5;
19922  }
19923  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19924    const int foo = 10;
19925    if (!foo) return 0;
19926  }
19927  return !cs[0] && !zero.x;
19928#endif
19929
19930  ;
19931  return 0;
19932}
19933_ACEOF
19934if ac_fn_c_try_compile "$LINENO"; then :
19935  ac_cv_c_const=yes
19936else
19937  ac_cv_c_const=no
19938fi
19939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19940fi
19941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19942$as_echo "$ac_cv_c_const" >&6; }
19943if test $ac_cv_c_const = no; then
19944
19945$as_echo "#define const /**/" >>confdefs.h
19946
19947fi
19948
19949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19950$as_echo_n "checking for inline... " >&6; }
19951if ${ac_cv_c_inline+:} false; then :
19952  $as_echo_n "(cached) " >&6
19953else
19954  ac_cv_c_inline=no
19955for ac_kw in inline __inline__ __inline; do
19956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957/* end confdefs.h.  */
19958#ifndef __cplusplus
19959typedef int foo_t;
19960static $ac_kw foo_t static_foo () {return 0; }
19961$ac_kw foo_t foo () {return 0; }
19962#endif
19963
19964_ACEOF
19965if ac_fn_c_try_compile "$LINENO"; then :
19966  ac_cv_c_inline=$ac_kw
19967fi
19968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19969  test "$ac_cv_c_inline" != no && break
19970done
19971
19972fi
19973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19974$as_echo "$ac_cv_c_inline" >&6; }
19975
19976case $ac_cv_c_inline in
19977  inline | yes) ;;
19978  *)
19979    case $ac_cv_c_inline in
19980      no) ac_val=;;
19981      *) ac_val=$ac_cv_c_inline;;
19982    esac
19983    cat >>confdefs.h <<_ACEOF
19984#ifndef __cplusplus
19985#define inline $ac_val
19986#endif
19987_ACEOF
19988    ;;
19989esac
19990
19991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19992$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19993if ${ac_cv_type_uid_t+:} false; then :
19994  $as_echo_n "(cached) " >&6
19995else
19996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997/* end confdefs.h.  */
19998#include <sys/types.h>
19999
20000_ACEOF
20001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20002  $EGREP "uid_t" >/dev/null 2>&1; then :
20003  ac_cv_type_uid_t=yes
20004else
20005  ac_cv_type_uid_t=no
20006fi
20007rm -f conftest*
20008
20009fi
20010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20011$as_echo "$ac_cv_type_uid_t" >&6; }
20012if test $ac_cv_type_uid_t = no; then
20013
20014$as_echo "#define uid_t int" >>confdefs.h
20015
20016
20017$as_echo "#define gid_t int" >>confdefs.h
20018
20019fi
20020
20021ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20022if test "x$ac_cv_type_pid_t" = xyes; then :
20023
20024else
20025
20026cat >>confdefs.h <<_ACEOF
20027#define pid_t int
20028_ACEOF
20029
20030fi
20031
20032ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20033if test "x$ac_cv_type_size_t" = xyes; then :
20034
20035else
20036
20037cat >>confdefs.h <<_ACEOF
20038#define size_t unsigned int
20039_ACEOF
20040
20041fi
20042
20043ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20044if test "x$ac_cv_type_mode_t" = xyes; then :
20045
20046else
20047
20048cat >>confdefs.h <<_ACEOF
20049#define mode_t int
20050_ACEOF
20051
20052fi
20053
20054ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20055if test "x$ac_cv_type_off_t" = xyes; then :
20056
20057else
20058
20059cat >>confdefs.h <<_ACEOF
20060#define off_t long int
20061_ACEOF
20062
20063fi
20064
20065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20066$as_echo_n "checking type of array argument to getgroups... " >&6; }
20067if ${ac_cv_type_getgroups+:} false; then :
20068  $as_echo_n "(cached) " >&6
20069else
20070  if test "$cross_compiling" = yes; then :
20071  ac_cv_type_getgroups=cross
20072else
20073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20074/* end confdefs.h.  */
20075/* Thanks to Mike Rendell for this test.  */
20076$ac_includes_default
20077#define NGID 256
20078#undef MAX
20079#define MAX(x, y) ((x) > (y) ? (x) : (y))
20080
20081int
20082main ()
20083{
20084  gid_t gidset[NGID];
20085  int i, n;
20086  union { gid_t gval; long int lval; }  val;
20087
20088  val.lval = -1;
20089  for (i = 0; i < NGID; i++)
20090    gidset[i] = val.gval;
20091  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20092		 gidset);
20093  /* Exit non-zero if getgroups seems to require an array of ints.  This
20094     happens when gid_t is short int but getgroups modifies an array
20095     of ints.  */
20096  return n > 0 && gidset[n] != val.gval;
20097}
20098_ACEOF
20099if ac_fn_c_try_run "$LINENO"; then :
20100  ac_cv_type_getgroups=gid_t
20101else
20102  ac_cv_type_getgroups=int
20103fi
20104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20105  conftest.$ac_objext conftest.beam conftest.$ac_ext
20106fi
20107
20108if test $ac_cv_type_getgroups = cross; then
20109        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20110/* end confdefs.h.  */
20111#include <unistd.h>
20112
20113_ACEOF
20114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20115  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20116  ac_cv_type_getgroups=gid_t
20117else
20118  ac_cv_type_getgroups=int
20119fi
20120rm -f conftest*
20121
20122fi
20123fi
20124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20125$as_echo "$ac_cv_type_getgroups" >&6; }
20126
20127cat >>confdefs.h <<_ACEOF
20128#define GETGROUPS_T $ac_cv_type_getgroups
20129_ACEOF
20130
20131
20132
20133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the getgrouplist(3) function takes ints" >&5
20134$as_echo_n "checking whether the getgrouplist(3) function takes ints... " >&6; }
20135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20136/* end confdefs.h.  */
20137
20138  #define _GNU_SOURCE
20139  #ifdef HAVE_GRP_H
20140  # include <grp.h>
20141  #endif
20142  #ifdef HAVE_UNISTD_H
20143  # include <unistd.h>
20144  #endif
20145
20146int
20147main ()
20148{
20149
20150  int (*f)(const char *, int, int *, int *) = getgrouplist;
20151
20152  ;
20153  return 0;
20154}
20155_ACEOF
20156if ac_fn_c_try_link "$LINENO"; then :
20157
20158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20159$as_echo "yes" >&6; }
20160
20161$as_echo "#define HAVE_GETGROUPLIST_TAKES_INTS 1" >>confdefs.h
20162
20163
20164else
20165
20166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20167$as_echo "no" >&6; }
20168
20169fi
20170rm -f core conftest.err conftest.$ac_objext \
20171    conftest$ac_exeext conftest.$ac_ext
20172
20173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20174$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20175if ${ac_cv_header_time+:} false; then :
20176  $as_echo_n "(cached) " >&6
20177else
20178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20179/* end confdefs.h.  */
20180#include <sys/types.h>
20181#include <sys/time.h>
20182#include <time.h>
20183
20184int
20185main ()
20186{
20187if ((struct tm *) 0)
20188return 0;
20189  ;
20190  return 0;
20191}
20192_ACEOF
20193if ac_fn_c_try_compile "$LINENO"; then :
20194  ac_cv_header_time=yes
20195else
20196  ac_cv_header_time=no
20197fi
20198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20199fi
20200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20201$as_echo "$ac_cv_header_time" >&6; }
20202if test $ac_cv_header_time = yes; then
20203
20204$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20205
20206fi
20207
20208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20209$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20210if ${ac_cv_struct_tm+:} false; then :
20211  $as_echo_n "(cached) " >&6
20212else
20213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20214/* end confdefs.h.  */
20215#include <sys/types.h>
20216#include <time.h>
20217
20218int
20219main ()
20220{
20221struct tm tm;
20222				     int *p = &tm.tm_sec;
20223				     return !p;
20224  ;
20225  return 0;
20226}
20227_ACEOF
20228if ac_fn_c_try_compile "$LINENO"; then :
20229  ac_cv_struct_tm=time.h
20230else
20231  ac_cv_struct_tm=sys/time.h
20232fi
20233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20234fi
20235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20236$as_echo "$ac_cv_struct_tm" >&6; }
20237if test $ac_cv_struct_tm = sys/time.h; then
20238
20239$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20240
20241fi
20242
20243
20244# The cast to long int works around a bug in the HP C Compiler
20245# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20246# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20247# This bug is HP SR number 8606223364.
20248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
20249$as_echo_n "checking size of short... " >&6; }
20250if ${ac_cv_sizeof_short+:} false; then :
20251  $as_echo_n "(cached) " >&6
20252else
20253  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
20254
20255else
20256  if test "$ac_cv_type_short" = yes; then
20257     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20259as_fn_error 77 "cannot compute sizeof (short)
20260See \`config.log' for more details" "$LINENO" 5; }
20261   else
20262     ac_cv_sizeof_short=0
20263   fi
20264fi
20265
20266fi
20267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
20268$as_echo "$ac_cv_sizeof_short" >&6; }
20269
20270
20271
20272cat >>confdefs.h <<_ACEOF
20273#define SIZEOF_SHORT $ac_cv_sizeof_short
20274_ACEOF
20275
20276
20277# The cast to long int works around a bug in the HP C Compiler
20278# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20279# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20280# This bug is HP SR number 8606223364.
20281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20282$as_echo_n "checking size of int... " >&6; }
20283if ${ac_cv_sizeof_int+:} false; then :
20284  $as_echo_n "(cached) " >&6
20285else
20286  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
20287
20288else
20289  if test "$ac_cv_type_int" = yes; then
20290     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20292as_fn_error 77 "cannot compute sizeof (int)
20293See \`config.log' for more details" "$LINENO" 5; }
20294   else
20295     ac_cv_sizeof_int=0
20296   fi
20297fi
20298
20299fi
20300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20301$as_echo "$ac_cv_sizeof_int" >&6; }
20302
20303
20304
20305cat >>confdefs.h <<_ACEOF
20306#define SIZEOF_INT $ac_cv_sizeof_int
20307_ACEOF
20308
20309
20310# The cast to long int works around a bug in the HP C Compiler
20311# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20312# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20313# This bug is HP SR number 8606223364.
20314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
20315$as_echo_n "checking size of long... " >&6; }
20316if ${ac_cv_sizeof_long+:} false; then :
20317  $as_echo_n "(cached) " >&6
20318else
20319  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
20320
20321else
20322  if test "$ac_cv_type_long" = yes; then
20323     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20325as_fn_error 77 "cannot compute sizeof (long)
20326See \`config.log' for more details" "$LINENO" 5; }
20327   else
20328     ac_cv_sizeof_long=0
20329   fi
20330fi
20331
20332fi
20333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
20334$as_echo "$ac_cv_sizeof_long" >&6; }
20335
20336
20337
20338cat >>confdefs.h <<_ACEOF
20339#define SIZEOF_LONG $ac_cv_sizeof_long
20340_ACEOF
20341
20342
20343# The cast to long int works around a bug in the HP C Compiler
20344# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20345# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20346# This bug is HP SR number 8606223364.
20347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
20348$as_echo_n "checking size of long long... " >&6; }
20349if ${ac_cv_sizeof_long_long+:} false; then :
20350  $as_echo_n "(cached) " >&6
20351else
20352  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
20353
20354else
20355  if test "$ac_cv_type_long_long" = yes; then
20356     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20358as_fn_error 77 "cannot compute sizeof (long long)
20359See \`config.log' for more details" "$LINENO" 5; }
20360   else
20361     ac_cv_sizeof_long_long=0
20362   fi
20363fi
20364
20365fi
20366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
20367$as_echo "$ac_cv_sizeof_long_long" >&6; }
20368
20369
20370
20371cat >>confdefs.h <<_ACEOF
20372#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20373_ACEOF
20374
20375
20376# The cast to long int works around a bug in the HP C Compiler
20377# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20378# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20379# This bug is HP SR number 8606223364.
20380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
20381$as_echo_n "checking size of off_t... " >&6; }
20382if ${ac_cv_sizeof_off_t+:} false; then :
20383  $as_echo_n "(cached) " >&6
20384else
20385  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
20386
20387else
20388  if test "$ac_cv_type_off_t" = yes; then
20389     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20391as_fn_error 77 "cannot compute sizeof (off_t)
20392See \`config.log' for more details" "$LINENO" 5; }
20393   else
20394     ac_cv_sizeof_off_t=0
20395   fi
20396fi
20397
20398fi
20399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
20400$as_echo "$ac_cv_sizeof_off_t" >&6; }
20401
20402
20403
20404cat >>confdefs.h <<_ACEOF
20405#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20406_ACEOF
20407
20408
20409# The cast to long int works around a bug in the HP C Compiler
20410# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20411# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20412# This bug is HP SR number 8606223364.
20413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
20414$as_echo_n "checking size of size_t... " >&6; }
20415if ${ac_cv_sizeof_size_t+:} false; then :
20416  $as_echo_n "(cached) " >&6
20417else
20418  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
20419
20420else
20421  if test "$ac_cv_type_size_t" = yes; then
20422     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20424as_fn_error 77 "cannot compute sizeof (size_t)
20425See \`config.log' for more details" "$LINENO" 5; }
20426   else
20427     ac_cv_sizeof_size_t=0
20428   fi
20429fi
20430
20431fi
20432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
20433$as_echo "$ac_cv_sizeof_size_t" >&6; }
20434
20435
20436
20437cat >>confdefs.h <<_ACEOF
20438#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20439_ACEOF
20440
20441
20442# The cast to long int works around a bug in the HP C Compiler
20443# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20444# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20445# This bug is HP SR number 8606223364.
20446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
20447$as_echo_n "checking size of time_t... " >&6; }
20448if ${ac_cv_sizeof_time_t+:} false; then :
20449  $as_echo_n "(cached) " >&6
20450else
20451  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
20452
20453else
20454  if test "$ac_cv_type_time_t" = yes; then
20455     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20457as_fn_error 77 "cannot compute sizeof (time_t)
20458See \`config.log' for more details" "$LINENO" 5; }
20459   else
20460     ac_cv_sizeof_time_t=0
20461   fi
20462fi
20463
20464fi
20465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
20466$as_echo "$ac_cv_sizeof_time_t" >&6; }
20467
20468
20469
20470cat >>confdefs.h <<_ACEOF
20471#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
20472_ACEOF
20473
20474
20475# The cast to long int works around a bug in the HP C Compiler
20476# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20477# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20478# This bug is HP SR number 8606223364.
20479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
20480$as_echo_n "checking size of char *... " >&6; }
20481if ${ac_cv_sizeof_char_p+:} false; then :
20482  $as_echo_n "(cached) " >&6
20483else
20484  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
20485
20486else
20487  if test "$ac_cv_type_char_p" = yes; then
20488     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20490as_fn_error 77 "cannot compute sizeof (char *)
20491See \`config.log' for more details" "$LINENO" 5; }
20492   else
20493     ac_cv_sizeof_char_p=0
20494   fi
20495fi
20496
20497fi
20498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
20499$as_echo "$ac_cv_sizeof_char_p" >&6; }
20500
20501
20502
20503cat >>confdefs.h <<_ACEOF
20504#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
20505_ACEOF
20506
20507
20508# The cast to long int works around a bug in the HP C Compiler
20509# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20510# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20511# This bug is HP SR number 8606223364.
20512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
20513$as_echo_n "checking size of void *... " >&6; }
20514if ${ac_cv_sizeof_void_p+:} false; then :
20515  $as_echo_n "(cached) " >&6
20516else
20517  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
20518
20519else
20520  if test "$ac_cv_type_void_p" = yes; then
20521     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20523as_fn_error 77 "cannot compute sizeof (void *)
20524See \`config.log' for more details" "$LINENO" 5; }
20525   else
20526     ac_cv_sizeof_void_p=0
20527   fi
20528fi
20529
20530fi
20531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
20532$as_echo "$ac_cv_sizeof_void_p" >&6; }
20533
20534
20535
20536cat >>confdefs.h <<_ACEOF
20537#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20538_ACEOF
20539
20540
20541# The cast to long int works around a bug in the HP C Compiler
20542# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20543# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20544# This bug is HP SR number 8606223364.
20545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uid_t" >&5
20546$as_echo_n "checking size of uid_t... " >&6; }
20547if ${ac_cv_sizeof_uid_t+:} false; then :
20548  $as_echo_n "(cached) " >&6
20549else
20550  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uid_t))" "ac_cv_sizeof_uid_t"        "$ac_includes_default"; then :
20551
20552else
20553  if test "$ac_cv_type_uid_t" = yes; then
20554     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20556as_fn_error 77 "cannot compute sizeof (uid_t)
20557See \`config.log' for more details" "$LINENO" 5; }
20558   else
20559     ac_cv_sizeof_uid_t=0
20560   fi
20561fi
20562
20563fi
20564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uid_t" >&5
20565$as_echo "$ac_cv_sizeof_uid_t" >&6; }
20566
20567
20568
20569cat >>confdefs.h <<_ACEOF
20570#define SIZEOF_UID_T $ac_cv_sizeof_uid_t
20571_ACEOF
20572
20573
20574# The cast to long int works around a bug in the HP C Compiler
20575# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20576# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20577# This bug is HP SR number 8606223364.
20578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of gid_t" >&5
20579$as_echo_n "checking size of gid_t... " >&6; }
20580if ${ac_cv_sizeof_gid_t+:} false; then :
20581  $as_echo_n "(cached) " >&6
20582else
20583  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (gid_t))" "ac_cv_sizeof_gid_t"        "$ac_includes_default"; then :
20584
20585else
20586  if test "$ac_cv_type_gid_t" = yes; then
20587     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20589as_fn_error 77 "cannot compute sizeof (gid_t)
20590See \`config.log' for more details" "$LINENO" 5; }
20591   else
20592     ac_cv_sizeof_gid_t=0
20593   fi
20594fi
20595
20596fi
20597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_gid_t" >&5
20598$as_echo "$ac_cv_sizeof_gid_t" >&6; }
20599
20600
20601
20602cat >>confdefs.h <<_ACEOF
20603#define SIZEOF_GID_T $ac_cv_sizeof_gid_t
20604_ACEOF
20605
20606
20607
20608ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20609if test "x$ac_cv_type_mode_t" = xyes; then :
20610
20611else
20612
20613cat >>confdefs.h <<_ACEOF
20614#define mode_t mode_t
20615_ACEOF
20616
20617fi
20618
20619ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
20620if test "x$ac_cv_type_ino_t" = xyes; then :
20621
20622else
20623
20624cat >>confdefs.h <<_ACEOF
20625#define ino_t ino_t
20626_ACEOF
20627
20628fi
20629
20630ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "
20631  #if HAVE_INTTYPES_H
20632  # include <inttypes.h>
20633  #endif
20634
20635"
20636if test "x$ac_cv_type_intptr_t" = xyes; then :
20637
20638$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
20639
20640fi
20641
20642
20643ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20644    #if HAVE_SYS_TYPES_H
20645    # include <sys/types.h>
20646    #endif
20647    #if HAVE_NETDB_H
20648    # include <netdb.h>
20649    #endif
20650    #include <sys/socket.h>
20651
20652"
20653if test "x$ac_cv_type_socklen_t" = xyes; then :
20654
20655cat >>confdefs.h <<_ACEOF
20656#define HAVE_SOCKLEN_T 1
20657_ACEOF
20658
20659
20660else
20661  $as_echo "#define socklen_t int" >>confdefs.h
20662
20663fi
20664
20665
20666for ac_header in utmp.h
20667do :
20668  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
20669if test "x$ac_cv_header_utmp_h" = xyes; then :
20670  cat >>confdefs.h <<_ACEOF
20671#define HAVE_UTMP_H 1
20672_ACEOF
20673 have_utmp=1
20674else
20675  have_utmp=0
20676fi
20677
20678done
20679
20680
20681if test $have_utmp; then
20682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct utmp has ut_user" >&5
20683$as_echo_n "checking whether struct utmp has ut_user... " >&6; }
20684if ${pr_cv_header_utmaxtype+:} false; then :
20685  $as_echo_n "(cached) " >&6
20686else
20687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20688/* end confdefs.h.  */
20689#include <utmp.h>
20690
20691_ACEOF
20692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20693  $EGREP " *ut_user.*;" >/dev/null 2>&1; then :
20694  pr_cv_header_utmaxtype="yes"
20695else
20696  pr_cv_header_utmaxtype="no"
20697fi
20698rm -f conftest*
20699
20700fi
20701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_header_utmaxtype" >&5
20702$as_echo "$pr_cv_header_utmaxtype" >&6; }
20703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct utmp has ut_host" >&5
20704$as_echo_n "checking whether struct utmp has ut_host... " >&6; }
20705if ${pr_cv_header_ut_host+:} false; then :
20706  $as_echo_n "(cached) " >&6
20707else
20708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20709/* end confdefs.h.  */
20710#include <utmp.h>
20711
20712_ACEOF
20713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20714  $EGREP " *ut_host.*;" >/dev/null 2>&1; then :
20715  pr_cv_header_ut_host="yes"
20716else
20717  pr_cv_header_ut_host="no"
20718fi
20719rm -f conftest*
20720
20721fi
20722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_header_ut_host" >&5
20723$as_echo "$pr_cv_header_ut_host" >&6; }
20724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct utmp has ut_exit" >&5
20725$as_echo_n "checking whether struct utmp has ut_exit... " >&6; }
20726if ${pr_cv_header_ut_exit+:} false; then :
20727  $as_echo_n "(cached) " >&6
20728else
20729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20730/* end confdefs.h.  */
20731#include <utmp.h>
20732
20733_ACEOF
20734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20735  $EGREP " *ut_exit.*;" >/dev/null 2>&1; then :
20736  pr_cv_header_ut_exit="yes"
20737else
20738  pr_cv_header_ut_exit="no"
20739fi
20740rm -f conftest*
20741
20742fi
20743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_header_ut_exit" >&5
20744$as_echo "$pr_cv_header_ut_exit" >&6; }
20745  if test "$pr_cv_header_utmaxtype" = "yes"; then
20746
20747$as_echo "#define HAVE_UTMAXTYPE 1" >>confdefs.h
20748
20749  fi
20750  if test "$pr_cv_header_ut_host" = "yes"; then
20751
20752$as_echo "#define HAVE_UT_UT_HOST 1" >>confdefs.h
20753
20754  fi
20755  if test "$pr_cv_header_ut_exit" = "yes"; then
20756
20757$as_echo "#define HAVE_UT_UT_EXIT 1" >>confdefs.h
20758
20759  fi
20760fi
20761
20762if test "$have_syslog_h" = "yes"; then
20763
20764$as_echo "#define HAVE_SYSLOG_H 1" >>confdefs.h
20765
20766
20767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syslog.h defines LOG_CRON" >&5
20768$as_echo_n "checking whether syslog.h defines LOG_CRON... " >&6; }
20769if ${pr_cv_header_syslog_log_cron+:} false; then :
20770  $as_echo_n "(cached) " >&6
20771else
20772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20773/* end confdefs.h.  */
20774
20775#include <syslog.h>
20776#ifdef LOG_CRON
20777  yes
20778#endif
20779
20780_ACEOF
20781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20782  $EGREP "yes" >/dev/null 2>&1; then :
20783  pr_cv_header_syslog_log_cron="yes"
20784else
20785  pr_cv_header_syslog_log_cron="no"
20786fi
20787rm -f conftest*
20788
20789fi
20790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_header_syslog_log_cron" >&5
20791$as_echo "$pr_cv_header_syslog_log_cron" >&6; }
20792
20793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syslog.h defines LOG_FTP" >&5
20794$as_echo_n "checking whether syslog.h defines LOG_FTP... " >&6; }
20795if ${pr_cv_header_syslog_log_ftp+:} false; then :
20796  $as_echo_n "(cached) " >&6
20797else
20798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20799/* end confdefs.h.  */
20800
20801#include <syslog.h>
20802#ifdef LOG_FTP
20803  yes
20804#endif
20805
20806_ACEOF
20807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20808  $EGREP "yes" >/dev/null 2>&1; then :
20809  pr_cv_header_syslog_log_ftp="yes"
20810else
20811  pr_cv_header_syslog_log_ftp="no"
20812fi
20813rm -f conftest*
20814
20815fi
20816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_header_syslog_log_ftp" >&5
20817$as_echo "$pr_cv_header_syslog_log_ftp" >&6; }
20818
20819  if test "$pr_cv_header_syslog_log_cron" = "yes"; then
20820
20821$as_echo "#define HAVE_LOG_CRON 1" >>confdefs.h
20822
20823  fi
20824  if test "$pr_cv_header_syslog_log_ftp" = "yes"; then
20825
20826$as_echo "#define HAVE_LOG_FTP 1" >>confdefs.h
20827
20828  fi
20829fi
20830
20831for dirfd in d_fd dd_fd __dd_fd ; do
20832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dirfd in DIR structure" >&5
20833$as_echo_n "checking for $dirfd in DIR structure... " >&6; }
20834	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20835/* end confdefs.h.  */
20836
20837#include <stdio.h>
20838#include <dirent.h>
20839
20840int
20841main ()
20842{
20843
20844DIR *dirp;
20845int i = dirp->$dirfd;
20846
20847  ;
20848  return 0;
20849}
20850_ACEOF
20851if ac_fn_c_try_compile "$LINENO"; then :
20852  eval ac_cv_struct_dir_$dirfd=yes
20853fi
20854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20855	if test "`eval echo x'$''ac_cv_struct_dir_'$dirfd`" = xyes ; then
20856		ucdirfd=`echo $dirfd | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20857		cat >>confdefs.h <<_ACEOF
20858#define HAVE_STRUCT_DIR_$ucdirfd 1
20859_ACEOF
20860
20861		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20862$as_echo "yes" >&6; }
20863		break
20864	else
20865		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20866$as_echo "no" >&6; }
20867	fi
20868done
20869
20870
20871
20872# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20873# for constant arguments.  Useless!
20874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
20875$as_echo_n "checking for working alloca.h... " >&6; }
20876if ${ac_cv_working_alloca_h+:} false; then :
20877  $as_echo_n "(cached) " >&6
20878else
20879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880/* end confdefs.h.  */
20881#include <alloca.h>
20882int
20883main ()
20884{
20885char *p = (char *) alloca (2 * sizeof (int));
20886			  if (p) return 0;
20887  ;
20888  return 0;
20889}
20890_ACEOF
20891if ac_fn_c_try_link "$LINENO"; then :
20892  ac_cv_working_alloca_h=yes
20893else
20894  ac_cv_working_alloca_h=no
20895fi
20896rm -f core conftest.err conftest.$ac_objext \
20897    conftest$ac_exeext conftest.$ac_ext
20898fi
20899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
20900$as_echo "$ac_cv_working_alloca_h" >&6; }
20901if test $ac_cv_working_alloca_h = yes; then
20902
20903$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
20904
20905fi
20906
20907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
20908$as_echo_n "checking for alloca... " >&6; }
20909if ${ac_cv_func_alloca_works+:} false; then :
20910  $as_echo_n "(cached) " >&6
20911else
20912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20913/* end confdefs.h.  */
20914#ifdef __GNUC__
20915# define alloca __builtin_alloca
20916#else
20917# ifdef _MSC_VER
20918#  include <malloc.h>
20919#  define alloca _alloca
20920# else
20921#  ifdef HAVE_ALLOCA_H
20922#   include <alloca.h>
20923#  else
20924#   ifdef _AIX
20925 #pragma alloca
20926#   else
20927#    ifndef alloca /* predefined by HP cc +Olibcalls */
20928void *alloca (size_t);
20929#    endif
20930#   endif
20931#  endif
20932# endif
20933#endif
20934
20935int
20936main ()
20937{
20938char *p = (char *) alloca (1);
20939				    if (p) return 0;
20940  ;
20941  return 0;
20942}
20943_ACEOF
20944if ac_fn_c_try_link "$LINENO"; then :
20945  ac_cv_func_alloca_works=yes
20946else
20947  ac_cv_func_alloca_works=no
20948fi
20949rm -f core conftest.err conftest.$ac_objext \
20950    conftest$ac_exeext conftest.$ac_ext
20951fi
20952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
20953$as_echo "$ac_cv_func_alloca_works" >&6; }
20954
20955if test $ac_cv_func_alloca_works = yes; then
20956
20957$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20958
20959else
20960  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20961# that cause trouble.  Some versions do not even contain alloca or
20962# contain a buggy version.  If you still want to use their alloca,
20963# use ar to extract alloca.o from them instead of compiling alloca.c.
20964
20965ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20966
20967$as_echo "#define C_ALLOCA 1" >>confdefs.h
20968
20969
20970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
20971$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20972if ${ac_cv_os_cray+:} false; then :
20973  $as_echo_n "(cached) " >&6
20974else
20975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976/* end confdefs.h.  */
20977#if defined CRAY && ! defined CRAY2
20978webecray
20979#else
20980wenotbecray
20981#endif
20982
20983_ACEOF
20984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20985  $EGREP "webecray" >/dev/null 2>&1; then :
20986  ac_cv_os_cray=yes
20987else
20988  ac_cv_os_cray=no
20989fi
20990rm -f conftest*
20991
20992fi
20993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
20994$as_echo "$ac_cv_os_cray" >&6; }
20995if test $ac_cv_os_cray = yes; then
20996  for ac_func in _getb67 GETB67 getb67; do
20997    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20998ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20999if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21000
21001cat >>confdefs.h <<_ACEOF
21002#define CRAY_STACKSEG_END $ac_func
21003_ACEOF
21004
21005    break
21006fi
21007
21008  done
21009fi
21010
21011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21012$as_echo_n "checking stack direction for C alloca... " >&6; }
21013if ${ac_cv_c_stack_direction+:} false; then :
21014  $as_echo_n "(cached) " >&6
21015else
21016  if test "$cross_compiling" = yes; then :
21017  ac_cv_c_stack_direction=0
21018else
21019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21020/* end confdefs.h.  */
21021$ac_includes_default
21022int
21023find_stack_direction (int *addr, int depth)
21024{
21025  int dir, dummy = 0;
21026  if (! addr)
21027    addr = &dummy;
21028  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21029  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21030  return dir + dummy;
21031}
21032
21033int
21034main (int argc, char **argv)
21035{
21036  return find_stack_direction (0, argc + !argv + 20) < 0;
21037}
21038_ACEOF
21039if ac_fn_c_try_run "$LINENO"; then :
21040  ac_cv_c_stack_direction=1
21041else
21042  ac_cv_c_stack_direction=-1
21043fi
21044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21045  conftest.$ac_objext conftest.beam conftest.$ac_ext
21046fi
21047
21048fi
21049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21050$as_echo "$ac_cv_c_stack_direction" >&6; }
21051cat >>confdefs.h <<_ACEOF
21052#define STACK_DIRECTION $ac_cv_c_stack_direction
21053_ACEOF
21054
21055
21056fi
21057
21058
21059old_LDFLAGS=$LDFLAGS
21060LDFLAGS="$LDFLAGS -L/usr/ucblib/"
21061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca in -lucb" >&5
21062$as_echo_n "checking for alloca in -lucb... " >&6; }
21063if ${ac_cv_lib_ucb_alloca+:} false; then :
21064  $as_echo_n "(cached) " >&6
21065else
21066  ac_check_lib_save_LIBS=$LIBS
21067LIBS="-lucb  $LIBS"
21068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21069/* end confdefs.h.  */
21070
21071/* Override any GCC internal prototype to avoid an error.
21072   Use char because int might match the return type of a GCC
21073   builtin and then its argument prototype would still apply.  */
21074#ifdef __cplusplus
21075extern "C"
21076#endif
21077char alloca ();
21078int
21079main ()
21080{
21081return alloca ();
21082  ;
21083  return 0;
21084}
21085_ACEOF
21086if ac_fn_c_try_link "$LINENO"; then :
21087  ac_cv_lib_ucb_alloca=yes
21088else
21089  ac_cv_lib_ucb_alloca=no
21090fi
21091rm -f core conftest.err conftest.$ac_objext \
21092    conftest$ac_exeext conftest.$ac_ext
21093LIBS=$ac_check_lib_save_LIBS
21094fi
21095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_alloca" >&5
21096$as_echo "$ac_cv_lib_ucb_alloca" >&6; }
21097if test "x$ac_cv_lib_ucb_alloca" = xyes; then :
21098  cat >>confdefs.h <<_ACEOF
21099#define HAVE_LIBUCB 1
21100_ACEOF
21101
21102  LIBS="-lucb $LIBS"
21103
21104fi
21105
21106LDFLAGS=$old_LDFLAGS
21107
21108if test $ac_cv_c_compiler_gnu = yes; then
21109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21110$as_echo_n "checking whether $CC needs -traditional... " >&6; }
21111if ${ac_cv_prog_gcc_traditional+:} false; then :
21112  $as_echo_n "(cached) " >&6
21113else
21114    ac_pattern="Autoconf.*'x'"
21115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21116/* end confdefs.h.  */
21117#include <sgtty.h>
21118Autoconf TIOCGETP
21119_ACEOF
21120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21121  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21122  ac_cv_prog_gcc_traditional=yes
21123else
21124  ac_cv_prog_gcc_traditional=no
21125fi
21126rm -f conftest*
21127
21128
21129  if test $ac_cv_prog_gcc_traditional = no; then
21130    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21131/* end confdefs.h.  */
21132#include <termio.h>
21133Autoconf TCGETA
21134_ACEOF
21135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21136  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21137  ac_cv_prog_gcc_traditional=yes
21138fi
21139rm -f conftest*
21140
21141  fi
21142fi
21143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21144$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21145  if test $ac_cv_prog_gcc_traditional = yes; then
21146    CC="$CC -traditional"
21147  fi
21148fi
21149
21150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21151$as_echo_n "checking return type of signal handlers... " >&6; }
21152if ${ac_cv_type_signal+:} false; then :
21153  $as_echo_n "(cached) " >&6
21154else
21155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21156/* end confdefs.h.  */
21157#include <sys/types.h>
21158#include <signal.h>
21159
21160int
21161main ()
21162{
21163return *(signal (0, 0)) (0) == 1;
21164  ;
21165  return 0;
21166}
21167_ACEOF
21168if ac_fn_c_try_compile "$LINENO"; then :
21169  ac_cv_type_signal=int
21170else
21171  ac_cv_type_signal=void
21172fi
21173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21174fi
21175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21176$as_echo "$ac_cv_type_signal" >&6; }
21177
21178cat >>confdefs.h <<_ACEOF
21179#define RETSIGTYPE $ac_cv_type_signal
21180_ACEOF
21181
21182
21183for ac_func in vprintf
21184do :
21185  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21186if test "x$ac_cv_func_vprintf" = xyes; then :
21187  cat >>confdefs.h <<_ACEOF
21188#define HAVE_VPRINTF 1
21189_ACEOF
21190
21191ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21192if test "x$ac_cv_func__doprnt" = xyes; then :
21193
21194$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21195
21196fi
21197
21198fi
21199done
21200
21201
21202
21203for ac_func in bcopy crypt ctime_r fdatasync fgetspent flock fpathconf freeaddrinfo fsync futimes getifaddrs getpgid getpgrp gmtime_r localtime_r mkdtemp nl_langinfo
21204do :
21205  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21206ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21207if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21208  cat >>confdefs.h <<_ACEOF
21209#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21210_ACEOF
21211
21212fi
21213done
21214
21215
21216ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
21217if test "x$ac_cv_func_gai_strerror" = xyes; then :
21218
21219$as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
21220
21221else
21222  LIB_OBJS="$LIB_OBJS glibc-gai_strerror.o"
21223
21224fi
21225
21226
21227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21228$as_echo_n "checking for iconv... " >&6; }
21229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21230/* end confdefs.h.  */
21231 #ifdef HAVE_STDDEF_H
21232    # include <stddef.h>
21233    #endif
21234    #ifdef HAVE_STDLIB_H
21235    # include <stdlib.h>
21236    #endif
21237    #ifdef HAVE_SYS_TYPES_H
21238    # include <sys/types.h>
21239    #endif
21240    #ifdef HAVE_ICONV_H
21241    # include <iconv.h>
21242    #endif
21243
21244int
21245main ()
21246{
21247
21248    size_t res, in_len = 0, out_len = 0;
21249    const char *in = NULL;
21250    char *out = NULL;
21251    res = iconv((iconv_t)-1, &in, &in_len, &out, &out_len);
21252
21253  ;
21254  return 0;
21255}
21256_ACEOF
21257if ac_fn_c_try_link "$LINENO"; then :
21258
21259    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21260$as_echo "yes" >&6; }
21261
21262$as_echo "#define HAVE_ICONV 1" >>confdefs.h
21263
21264
21265else
21266
21267    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21268$as_echo "no" >&6; }
21269
21270
21271fi
21272rm -f core conftest.err conftest.$ac_objext \
21273    conftest$ac_exeext conftest.$ac_ext
21274
21275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for idna_to_ascii_8z" >&5
21276$as_echo_n "checking for idna_to_ascii_8z... " >&6; }
21277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21278/* end confdefs.h.  */
21279
21280    #include <sys/types.h>
21281    #ifdef HAVE_IDNA_H
21282    #  include <idna.h>
21283    #endif
21284
21285int
21286main ()
21287{
21288
21289    int flags = 0, res = 0;
21290    const char *input = NULL;
21291    char *output = NULL;
21292    res = idna_to_ascii_8z(input, &output, flags);
21293
21294  ;
21295  return 0;
21296}
21297_ACEOF
21298if ac_fn_c_try_compile "$LINENO"; then :
21299
21300    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21301$as_echo "yes" >&6; }
21302
21303$as_echo "#define HAVE_IDNA_TO_ASCII_8Z 1" >>confdefs.h
21304
21305    MAIN_LIBS="$MAIN_LIBS -lidn"
21306
21307else
21308
21309    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21310$as_echo "no" >&6; }
21311
21312
21313fi
21314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315
21316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5
21317$as_echo_n "checking for dirfd... " >&6; }
21318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21319/* end confdefs.h.  */
21320 #ifdef HAVE_STDDEF_H
21321    # include <stddef.h>
21322    #endif
21323    #ifdef HAVE_STDLIB_H
21324    # include <stdlib.h>
21325    #endif
21326    #ifdef HAVE_STDIO_H
21327    # include <stdio.h>
21328    #endif
21329    #ifdef HAVE_SYS_TYPES_H
21330    # include <sys/types.h>
21331    #endif
21332    #if HAVE_DIRENT_H
21333    # include <dirent.h>
21334    #endif
21335
21336int
21337main ()
21338{
21339
21340    DIR *dirh = NULL;
21341    int fd;
21342
21343    fd = dirfd(dirh);
21344
21345  ;
21346  return 0;
21347}
21348_ACEOF
21349if ac_fn_c_try_link "$LINENO"; then :
21350
21351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21352$as_echo "yes" >&6; }
21353
21354$as_echo "#define HAVE_DIRFD 1" >>confdefs.h
21355
21356
21357else
21358
21359    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21360$as_echo "no" >&6; }
21361
21362
21363fi
21364rm -f core conftest.err conftest.$ac_objext \
21365    conftest$ac_exeext conftest.$ac_ext
21366
21367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
21368$as_echo_n "checking for getaddrinfo... " >&6; }
21369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21370/* end confdefs.h.  */
21371 #ifdef HAVE_STDDEF_H
21372    # include <stddef.h>
21373    #endif
21374    #ifdef HAVE_STDLIB_H
21375    # include <stdlib.h>
21376    #endif
21377    #ifdef HAVE_STDIO_H
21378    # include <stdio.h>
21379    #endif
21380    #if HAVE_SYS_TYPES_H
21381    # include <sys/types.h>
21382    #endif
21383    #if HAVE_SYS_SOCKET_H
21384    # include <sys/socket.h>
21385    #endif
21386    #if HAVE_NETDB_H
21387    # include <netdb.h>
21388    #endif
21389
21390int
21391main ()
21392{
21393
21394    getaddrinfo(NULL, NULL, NULL, NULL);
21395
21396  ;
21397  return 0;
21398}
21399_ACEOF
21400if ac_fn_c_try_link "$LINENO"; then :
21401
21402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21403$as_echo "yes" >&6; }
21404
21405$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
21406
21407
21408else
21409
21410    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21411$as_echo "no" >&6; }
21412
21413
21414fi
21415rm -f core conftest.err conftest.$ac_objext \
21416    conftest$ac_exeext conftest.$ac_ext
21417
21418for ac_func in getcwd getenv getgrouplist getgroups getgrset gethostbyname2 gethostname getnameinfo
21419do :
21420  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21421ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21422if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21423  cat >>confdefs.h <<_ACEOF
21424#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21425_ACEOF
21426
21427fi
21428done
21429
21430for ac_func in gettimeofday hstrerror inet_aton inet_ntop inet_pton initgroups
21431do :
21432  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21433ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21434if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21435  cat >>confdefs.h <<_ACEOF
21436#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21437_ACEOF
21438
21439fi
21440done
21441
21442for ac_func in loginrestrictions
21443do :
21444  ac_fn_c_check_func "$LINENO" "loginrestrictions" "ac_cv_func_loginrestrictions"
21445if test "x$ac_cv_func_loginrestrictions" = xyes; then :
21446  cat >>confdefs.h <<_ACEOF
21447#define HAVE_LOGINRESTRICTIONS 1
21448_ACEOF
21449
21450fi
21451done
21452
21453for ac_func in explicit_bzero memcpy mempcpy memset_s mkdir mkstemp mlock mlockall munlock munlockall
21454do :
21455  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21456ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21457if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21458  cat >>confdefs.h <<_ACEOF
21459#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21460_ACEOF
21461
21462fi
21463done
21464
21465for ac_func in pathconf posix_fadvise pread prctl putenv pwrite random regcomp rmdir select setgroups socket srandom statfs strchr strcoll strerror timingsafe_bcmp
21466do :
21467  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21468ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21469if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21470  cat >>confdefs.h <<_ACEOF
21471#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21472_ACEOF
21473
21474fi
21475done
21476
21477for ac_func in strlcat strlcpy strsep strtod strtof strtol strtoll strtoull setprotoent setspent endprotoent
21478do :
21479  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21480ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21481if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21482  cat >>confdefs.h <<_ACEOF
21483#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21484_ACEOF
21485
21486fi
21487done
21488
21489# __snprintf and __vsnprintf are only on solaris and _really_ broken there.
21490for ac_func in vsnprintf snprintf
21491do :
21492  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21493ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21494if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21495  cat >>confdefs.h <<_ACEOF
21496#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21497_ACEOF
21498
21499fi
21500done
21501
21502if test x"$ac_cv_func_vsnprintf" != xyes || test x"$ac_cv_func_snprintf" != xyes
21503then
21504	for ac_func in fconvert fcvt
21505do :
21506  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21507ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21508if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21509  cat >>confdefs.h <<_ACEOF
21510#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21511_ACEOF
21512
21513fi
21514done
21515
21516	for ac_header in floatingpoint.h
21517do :
21518  ac_fn_c_check_header_mongrel "$LINENO" "floatingpoint.h" "ac_cv_header_floatingpoint_h" "$ac_includes_default"
21519if test "x$ac_cv_header_floatingpoint_h" = xyes; then :
21520  cat >>confdefs.h <<_ACEOF
21521#define HAVE_FLOATINGPOINT_H 1
21522_ACEOF
21523
21524fi
21525
21526done
21527
21528fi
21529for ac_func in setsid setgroupent seteuid setegid setenv setpgid siginterrupt
21530do :
21531  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21532ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21533if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21534  cat >>confdefs.h <<_ACEOF
21535#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21536_ACEOF
21537
21538fi
21539done
21540
21541for ac_func in tzset uname unsetenv
21542do :
21543  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21544ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21545if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21546  cat >>confdefs.h <<_ACEOF
21547#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21548_ACEOF
21549
21550fi
21551done
21552
21553
21554ac_fn_c_check_func "$LINENO" "setpassent" "ac_cv_func_setpassent"
21555if test "x$ac_cv_func_setpassent" = xyes; then :
21556  case "$target_os:$enable_force_setpassent" in
21557  *freebsd[23]\.[0-3]*:)
21558    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling broken FreeBSD setpassent()" >&5
21559$as_echo "$as_me: WARNING: Disabling broken FreeBSD setpassent()" >&2;}
21560        ;;
21561  *:no) ;;
21562  *)
21563$as_echo "#define HAVE_SETPASSENT 1" >>confdefs.h
21564 ;;
21565esac
21566fi
21567
21568
21569if test x"$enable_ctrls" = xyes; then
21570  for ac_func in getpeereid getpeerucred
21571do :
21572  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21573ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21574if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21575  cat >>confdefs.h <<_ACEOF
21576#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21577_ACEOF
21578
21579fi
21580done
21581
21582  ac_static_modules="$ac_static_modules mod_ctrls.o"
21583  ac_build_static_modules="$ac_build_static_modules modules/mod_ctrls.o"
21584fi
21585
21586if test x"$enable_nls" = xyes; then
21587  ac_static_modules="$ac_static_modules mod_lang.o"
21588  ac_build_static_modules="$ac_build_static_modules modules/mod_lang.o"
21589
21590    if test x"$ifsession_requested" = xtrue; then
21591    ac_static_modules=`echo "$ac_static_modules" | sed -e 's/mod_ifsession\.o//g'`
21592    ac_static_modules="$ac_static_modules mod_ifsession.o"
21593
21594    ac_build_static_modules=`echo "$ac_build_static_modules" | sed -e 's/modules\/mod_ifsession\.o//g'`
21595    ac_build_static_modules="$ac_build_static_modules modules/mod_ifsession.o";
21596  fi
21597fi
21598
21599ac_fn_c_check_member "$LINENO" "struct cmsgcred" "cmcred_uid" "ac_cv_member_struct_cmsgcred_cmcred_uid" "
21600    #if HAVE_SYS_TYPES_H
21601    # include <sys/types.h>
21602    #endif
21603    #if HAVE_SYS_SOCKET_H
21604    # include <sys/socket.h>
21605    #endif
21606    #if HAVE_SYS_UIO_H
21607    # include <sys/uio.h>
21608    #endif
21609
21610"
21611if test "x$ac_cv_member_struct_cmsgcred_cmcred_uid" = xyes; then :
21612
21613$as_echo "#define HAVE_STRUCT_CMSGCRED 1" >>confdefs.h
21614
21615fi
21616
21617
21618ac_fn_c_check_member "$LINENO" "struct sockcred" "sc_uid" "ac_cv_member_struct_sockcred_sc_uid" "
21619    #if HAVE_SYS_TYPES_H
21620    # include <sys/types.h>
21621    #endif
21622    #if HAVE_SYS_SOCKET_H
21623    # include <sys/socket.h>
21624    #endif
21625    #if HAVE_SYS_UIO_H
21626    # include <sys/uio.h>
21627    #endif
21628
21629"
21630if test "x$ac_cv_member_struct_sockcred_sc_uid" = xyes; then :
21631
21632$as_echo "#define HAVE_STRUCT_SOCKCRED 1" >>confdefs.h
21633
21634fi
21635
21636
21637# See:
21638#   https://github.com/proftpd/proftpd/issues/75
21639ac_fn_c_check_member "$LINENO" "struct sockpeercred" "uid" "ac_cv_member_struct_sockpeercred_uid" "
21640    #if HAVE_SYS_TYPES_H
21641    # include <sys/types.h>
21642    #endif
21643    #if HAVE_SYS_SOCKET_H
21644    # include <sys/socket.h>
21645    #endif
21646    #if HAVE_SYS_UIO_H
21647    # include <sys/uio.h>
21648    #endif
21649
21650"
21651if test "x$ac_cv_member_struct_sockpeercred_uid" = xyes; then :
21652
21653$as_echo "#define HAVE_STRUCT_SOCKPEERCRED 1" >>confdefs.h
21654
21655fi
21656
21657
21658ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21659    #if HAVE_SYS_TYPES_H
21660    # include <sys/types.h>
21661    #endif
21662    #if HAVE_SYS_SOCKET_H
21663    # include <sys/socket.h>
21664    #endif
21665    #if HAVE_NETINET_IN_H
21666    # include <netinet/in.h>
21667    #endif
21668
21669"
21670if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
21671
21672$as_echo "#define SIN_LEN 1" >>confdefs.h
21673
21674fi
21675
21676
21677ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
21678    #if HAVE_SYS_TYPES_H
21679    # include <sys/types.h>
21680    #endif
21681    #if HAVE_SYS_PARAM_H
21682    # include <sys/param.h>
21683    #endif
21684    #if HAVE_SYS_MOUNT_H
21685    # include <sys/mount.h>
21686    #endif
21687    #if HAVE_SYS_VFS_H
21688    # include <sys/vfs.h>
21689    #endif
21690    #if HAVE_SYS_STATFS_H
21691    # include <sys/statfs.h>
21692    #endif
21693
21694"
21695if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
21696
21697$as_echo "#define HAVE_STATFS_F_FSTYPENAME 1" >>confdefs.h
21698
21699fi
21700
21701
21702ac_fn_c_check_member "$LINENO" "struct statfs" "f_type" "ac_cv_member_struct_statfs_f_type" "
21703    #if HAVE_SYS_TYPES_H
21704    # include <sys/types.h>
21705    #endif
21706    #if HAVE_SYS_PARAM_H
21707    # include <sys/param.h>
21708    #endif
21709    #if HAVE_SYS_MOUNT_H
21710    # include <sys/mount.h>
21711    #endif
21712    #if HAVE_SYS_VFS_H
21713    # include <sys/vfs.h>
21714    #endif
21715    #if HAVE_SYS_STATFS_H
21716    # include <sys/statfs.h>
21717    #endif
21718
21719"
21720if test "x$ac_cv_member_struct_statfs_f_type" = xyes; then :
21721
21722$as_echo "#define HAVE_STATFS_F_TYPE 1" >>confdefs.h
21723
21724fi
21725
21726
21727if test x"$enable_largefile" = xno; then
21728
21729$as_echo "#define PR_USE_LARGEFILES 0" >>confdefs.h
21730
21731else
21732
21733$as_echo "#define PR_USE_LARGEFILES 1" >>confdefs.h
21734
21735fi
21736
21737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct addrinfo is defined" >&5
21738$as_echo_n "checking whether struct addrinfo is defined... " >&6; }
21739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21740/* end confdefs.h.  */
21741 #include <stdio.h>
21742   #ifdef HAVE_UNISTD_H
21743   # include <unistd.h>
21744   #endif
21745   #include <sys/types.h>
21746   #include <sys/socket.h>
21747   #include <netdb.h>
21748
21749int
21750main ()
21751{
21752do {
21753   struct addrinfo a;
21754   (void) a.ai_flags;
21755  } while(0)
21756
21757  ;
21758  return 0;
21759}
21760_ACEOF
21761if ac_fn_c_try_compile "$LINENO"; then :
21762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21763$as_echo "yes" >&6; }
21764
21765$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21766
21767
21768else
21769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21770$as_echo "no" >&6; }
21771
21772fi
21773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774
21775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_storage is defined" >&5
21776$as_echo_n "checking whether struct sockaddr_storage is defined... " >&6; }
21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778/* end confdefs.h.  */
21779 #include <stdio.h>
21780   #ifdef HAVE_UNISTD_H
21781   # include <unistd.h>
21782   #endif
21783   #include <sys/types.h>
21784   #include <sys/socket.h>
21785   #include <netdb.h>
21786
21787int
21788main ()
21789{
21790do {
21791   struct sockaddr_storage ss;
21792  } while(0)
21793
21794  ;
21795  return 0;
21796}
21797_ACEOF
21798if ac_fn_c_try_compile "$LINENO"; then :
21799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21800$as_echo "yes" >&6; }
21801
21802$as_echo "#define HAVE_STRUCT_SS 1" >>confdefs.h
21803
21804
21805else
21806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21807$as_echo "no" >&6; }
21808
21809fi
21810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21811
21812
21813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ss_family is defined" >&5
21814$as_echo_n "checking whether ss_family is defined... " >&6; }
21815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21816/* end confdefs.h.  */
21817
21818    #include <stdio.h>
21819    #include <unistd.h>
21820    #include <sys/types.h>
21821    #include <sys/socket.h>
21822
21823int
21824main ()
21825{
21826
21827    do {
21828     struct sockaddr_storage a;
21829     (void) a.ss_family;
21830    } while(0)
21831
21832  ;
21833  return 0;
21834}
21835_ACEOF
21836if ac_fn_c_try_compile "$LINENO"; then :
21837
21838    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21839$as_echo "yes" >&6; }
21840
21841$as_echo "#define HAVE_SS_FAMILY 1" >>confdefs.h
21842
21843
21844else
21845
21846    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21847$as_echo "no" >&6; }
21848    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __ss_family is defined" >&5
21849$as_echo_n "checking whether __ss_family is defined... " >&6; }
21850    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21851/* end confdefs.h.  */
21852
21853      #include <stdio.h>
21854      #include <unistd.h>
21855      #include <sys/types.h>
21856      #include <sys/socket.h>
21857
21858int
21859main ()
21860{
21861
21862      do {
21863       struct sockaddr_storage a;
21864       (void) a.__ss_family;
21865      } while(0)
21866
21867  ;
21868  return 0;
21869}
21870_ACEOF
21871if ac_fn_c_try_compile "$LINENO"; then :
21872
21873      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21874$as_echo "yes" >&6; }
21875
21876$as_echo "#define HAVE___SS_FAMILY 1" >>confdefs.h
21877
21878
21879else
21880
21881      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21882$as_echo "no" >&6; }
21883
21884fi
21885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21886
21887fi
21888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21889
21890
21891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ss_len is defined" >&5
21892$as_echo_n "checking whether ss_len is defined... " >&6; }
21893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21894/* end confdefs.h.  */
21895
21896    #include <stdio.h>
21897    #include <unistd.h>
21898    #include <sys/types.h>
21899    #include <sys/socket.h>
21900
21901int
21902main ()
21903{
21904
21905    do {
21906     struct sockaddr_storage a;
21907     (void) a.ss_len;
21908    } while(0)
21909
21910  ;
21911  return 0;
21912}
21913_ACEOF
21914if ac_fn_c_try_compile "$LINENO"; then :
21915
21916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21917$as_echo "yes" >&6; }
21918
21919$as_echo "#define HAVE_SS_LEN 1" >>confdefs.h
21920
21921
21922else
21923
21924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21925$as_echo "no" >&6; }
21926    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __ss_len is defined" >&5
21927$as_echo_n "checking whether __ss_len is defined... " >&6; }
21928    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21929/* end confdefs.h.  */
21930
21931      #include <stdio.h>
21932      #include <unistd.h>
21933      #include <sys/types.h>
21934      #include <sys/socket.h>
21935
21936int
21937main ()
21938{
21939
21940      do {
21941       struct sockaddr_storage a;
21942       (void) a.__ss_len;
21943      } while(0)
21944
21945  ;
21946  return 0;
21947}
21948_ACEOF
21949if ac_fn_c_try_compile "$LINENO"; then :
21950
21951      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21952$as_echo "yes" >&6; }
21953
21954$as_echo "#define HAVE___SS_LEN 1" >>confdefs.h
21955
21956
21957else
21958
21959      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21960$as_echo "no" >&6; }
21961
21962fi
21963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964
21965fi
21966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21967
21968
21969for ac_header in sys/acl.h acl/libacl.h
21970do :
21971  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21972ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21973if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21974  cat >>confdefs.h <<_ACEOF
21975#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21976_ACEOF
21977
21978fi
21979
21980done
21981
21982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perm_copy_fd in -lacl" >&5
21983$as_echo_n "checking for perm_copy_fd in -lacl... " >&6; }
21984if ${ac_cv_lib_acl_perm_copy_fd+:} false; then :
21985  $as_echo_n "(cached) " >&6
21986else
21987  ac_check_lib_save_LIBS=$LIBS
21988LIBS="-lacl  $LIBS"
21989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990/* end confdefs.h.  */
21991
21992/* Override any GCC internal prototype to avoid an error.
21993   Use char because int might match the return type of a GCC
21994   builtin and then its argument prototype would still apply.  */
21995#ifdef __cplusplus
21996extern "C"
21997#endif
21998char perm_copy_fd ();
21999int
22000main ()
22001{
22002return perm_copy_fd ();
22003  ;
22004  return 0;
22005}
22006_ACEOF
22007if ac_fn_c_try_link "$LINENO"; then :
22008  ac_cv_lib_acl_perm_copy_fd=yes
22009else
22010  ac_cv_lib_acl_perm_copy_fd=no
22011fi
22012rm -f core conftest.err conftest.$ac_objext \
22013    conftest$ac_exeext conftest.$ac_ext
22014LIBS=$ac_check_lib_save_LIBS
22015fi
22016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_perm_copy_fd" >&5
22017$as_echo "$ac_cv_lib_acl_perm_copy_fd" >&6; }
22018if test "x$ac_cv_lib_acl_perm_copy_fd" = xyes; then :
22019
22020$as_echo "#define HAVE_LIBACL 1" >>confdefs.h
22021
22022
22023fi
22024
22025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which POSIX ACL implementation to use" >&5
22026$as_echo_n "checking which POSIX ACL implementation to use... " >&6; }
22027if ${pr_cv_func_facl+:} false; then :
22028  $as_echo_n "(cached) " >&6
22029else
22030  pr_cv_func_facl="none"
22031
22032    if test "$pr_cv_func_facl" = "none"; then
22033    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22034/* end confdefs.h.  */
22035 #include <sys/types.h>
22036        #ifdef HAVE_SYS_ACL_H
22037        # include <sys/acl.h>
22038        #endif
22039        #ifdef HAVE_ACL_LIBACL_H
22040        # include <acl/libacl.h>
22041        #endif
22042
22043int
22044main ()
22045{
22046 acl_permset_t permset;
22047        /* On BSD, ACL_READ_DATA is a #define. */
22048        #ifdef ACL_READ_DATA
22049        acl_perm_t perm = ACL_READ_DATA;
22050        #else
22051        # error "ACL_READ_DATA not #defined on this platform"
22052        #endif /* ACL_READ_DATA */
22053        (void)acl_get_perm_np(permset, perm);
22054
22055  ;
22056  return 0;
22057}
22058_ACEOF
22059if ac_fn_c_try_link "$LINENO"; then :
22060  pr_cv_func_facl="BSD"
22061fi
22062rm -f core conftest.err conftest.$ac_objext \
22063    conftest$ac_exeext conftest.$ac_ext
22064  fi
22065
22066    if test "$pr_cv_func_facl" = "none"; then
22067    old_ldflags=$LDFLAGS
22068    old_libs=$LIBS
22069    new_ldflags=`echo "$LDFLAGS" | sed -e 's/-L\$(top_srcdir)\/lib//g'`
22070    LDFLAGS="$new_ldflags"
22071    LIBS="-lacl $LIBS"
22072    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22073/* end confdefs.h.  */
22074 #include <sys/types.h>
22075        #ifdef HAVE_SYS_ACL_H
22076        # include <sys/acl.h>
22077        #endif
22078        #ifdef HAVE_ACL_LIBACL_H
22079        # include <acl/libacl.h>
22080        #endif
22081
22082int
22083main ()
22084{
22085 acl_permset_t permset;
22086        acl_perm_t perm;
22087        (void)acl_get_perm(permset, perm);
22088
22089  ;
22090  return 0;
22091}
22092_ACEOF
22093if ac_fn_c_try_link "$LINENO"; then :
22094  pr_cv_func_facl="Linux"
22095fi
22096rm -f core conftest.err conftest.$ac_objext \
22097    conftest$ac_exeext conftest.$ac_ext
22098    LDFLAGS=$old_ldflags
22099    LIBS=$old_libs
22100  fi
22101
22102    if test "$pr_cv_func_facl" = "none"; then
22103    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22104/* end confdefs.h.  */
22105 #include <sys/types.h>
22106        #ifdef HAVE_SYS_ACL_H
22107        # include <sys/acl.h>
22108        #endif
22109        #ifdef HAVE_ACL_LIBACL_H
22110        # include <acl/libacl.h>
22111        #endif
22112
22113int
22114main ()
22115{
22116 acl_entry_t ae;
22117        /* On Mac, ACL_READ_DATA is an enum value. */
22118        acl_perm_t perm = ACL_READ_DATA;
22119        (void)acl_get_qualifier(ae);
22120
22121  ;
22122  return 0;
22123}
22124_ACEOF
22125if ac_fn_c_try_link "$LINENO"; then :
22126  pr_cv_func_facl="MacOSX"
22127fi
22128rm -f core conftest.err conftest.$ac_objext \
22129    conftest$ac_exeext conftest.$ac_ext
22130  fi
22131
22132    if test "$pr_cv_func_facl" = "none"; then
22133    old_ldflags=$LDFLAGS
22134    LDFLAGS="-lsec $LDFLAGS"
22135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22136/* end confdefs.h.  */
22137 #ifdef HAVE_STDDEF_H
22138        # include <stddef.h>
22139        #endif
22140        #ifdef HAVE_STDLIB_H
22141        # include <stdlib.h>
22142        #endif
22143        #ifdef HAVE_SYS_TYPES_H
22144        # include <sys/types.h>
22145        #endif
22146        #ifdef HAVE_SYS_ACL_H
22147        # include <sys/acl.h>
22148        #endif
22149        #ifdef HAVE_ACL_LIBACL_H
22150        # include <acl/libacl.h>
22151        #endif
22152
22153int
22154main ()
22155{
22156 aclent_t ae;
22157        (void)aclcheck(&ae,0,NULL);
22158
22159  ;
22160  return 0;
22161}
22162_ACEOF
22163if ac_fn_c_try_link "$LINENO"; then :
22164  pr_cv_func_facl="Solaris"
22165fi
22166rm -f core conftest.err conftest.$ac_objext \
22167    conftest$ac_exeext conftest.$ac_ext
22168    LDFLAGS=$old_ldflags
22169  fi
22170
22171fi
22172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_func_facl" >&5
22173$as_echo "$pr_cv_func_facl" >&6; }
22174
22175if test "$pr_cv_func_facl" != "none"; then
22176
22177$as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
22178
22179
22180  case "$pr_cv_func_facl" in
22181    "BSD")
22182
22183$as_echo "#define HAVE_BSD_POSIX_ACL 1" >>confdefs.h
22184
22185      ;;
22186
22187    "Linux")
22188
22189$as_echo "#define HAVE_LINUX_POSIX_ACL 1" >>confdefs.h
22190
22191      ;;
22192
22193    "MacOSX")
22194
22195$as_echo "#define HAVE_MACOSX_POSIX_ACL 1" >>confdefs.h
22196
22197      ;;
22198
22199    "Solaris")
22200
22201$as_echo "#define HAVE_LIBSEC 1" >>confdefs.h
22202
22203
22204$as_echo "#define HAVE_SOLARIS_POSIX_ACL 1" >>confdefs.h
22205
22206      ;;
22207  esac
22208fi
22209
22210if test x"$enable_facl" = xyes ; then
22211
22212$as_echo "#define PR_USE_FACL 1" >>confdefs.h
22213
22214
22215  case "$pr_cv_func_facl" in
22216    "Linux")
22217      ac_build_addl_libs="-lacl $ac_build_addl_libs"
22218      ;;
22219
22220    "Solaris")
22221      ac_build_addl_libs="-lsec $ac_build_addl_libs"
22222      ;;
22223  esac
22224fi
22225
22226if test x"$enable_ipv6" != xno ; then
22227
22228$as_echo "#define PR_USE_IPV6 1" >>confdefs.h
22229
22230fi
22231
22232if test x"$enable_sendfile" != xno ; then
22233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which sendfile() implementation to use" >&5
22234$as_echo_n "checking which sendfile() implementation to use... " >&6; }
22235if ${pr_cv_func_sendfile+:} false; then :
22236  $as_echo_n "(cached) " >&6
22237else
22238  pr_cv_func_sendfile="none"
22239
22240        if test "$pr_cv_func_sendfile" = "none"; then
22241      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242/* end confdefs.h.  */
22243 #include <sys/types.h>
22244          #include <sys/sendfile.h>
22245          #include <unistd.h>
22246
22247int
22248main ()
22249{
22250 int i;
22251          off_t o;
22252          size_t c;
22253          (void)sendfile(i,i,&o,c);
22254
22255  ;
22256  return 0;
22257}
22258_ACEOF
22259if ac_fn_c_try_link "$LINENO"; then :
22260  pr_cv_func_sendfile="Linux"
22261fi
22262rm -f core conftest.err conftest.$ac_objext \
22263    conftest$ac_exeext conftest.$ac_ext
22264    fi
22265
22266        if test "$pr_cv_func_sendfile" = "none"; then
22267      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22268/* end confdefs.h.  */
22269 #include <sys/types.h>
22270          #include <sys/socket.h>
22271          #include <sys/uio.h>
22272
22273int
22274main ()
22275{
22276 int i;
22277          off_t o;
22278          size_t n;
22279          struct sf_hdtr h;
22280          (void)sendfile(i,i,o,n,&h,&o,i);
22281
22282  ;
22283  return 0;
22284}
22285_ACEOF
22286if ac_fn_c_try_link "$LINENO"; then :
22287  pr_cv_func_sendfile="BSD"
22288fi
22289rm -f core conftest.err conftest.$ac_objext \
22290    conftest$ac_exeext conftest.$ac_ext
22291    fi
22292
22293        if test "$pr_cv_func_sendfile" = "none"; then
22294      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22295/* end confdefs.h.  */
22296 #include <sys/types.h>
22297          #include <sys/socket.h>
22298
22299int
22300main ()
22301{
22302 uint f;
22303          int h;
22304          struct sf_parms p;
22305          (void)send_file(&(h),&(p),f);
22306
22307  ;
22308  return 0;
22309}
22310_ACEOF
22311if ac_fn_c_try_link "$LINENO"; then :
22312  pr_cv_func_sendfile="AIX"
22313fi
22314rm -f core conftest.err conftest.$ac_objext \
22315    conftest$ac_exeext conftest.$ac_ext
22316    fi
22317
22318        if test "$pr_cv_func_sendfile" = "none"; then
22319      old_ldflags=$LDFLAGS
22320      LDFLAGS="-lsendfile $LDFLAGS"
22321      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322/* end confdefs.h.  */
22323 #include <sys/types.h>
22324          #include <sys/sendfile.h>
22325          #include <unistd.h>
22326
22327int
22328main ()
22329{
22330 int i;
22331          off_t o;
22332          size_t c;
22333          (void)sendfile(i,i,&o,c);
22334
22335  ;
22336  return 0;
22337}
22338_ACEOF
22339if ac_fn_c_try_link "$LINENO"; then :
22340  pr_cv_func_sendfile="Solaris"
22341fi
22342rm -f core conftest.err conftest.$ac_objext \
22343    conftest$ac_exeext conftest.$ac_ext
22344      LDFLAGS=$old_ldflags
22345    fi
22346
22347        if test "$pr_cv_func_sendfile" = "none"; then
22348      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22349/* end confdefs.h.  */
22350 #include <sys/types.h>
22351          #include <sys/socket.h>
22352          #include <sys/uio.h>
22353
22354int
22355main ()
22356{
22357 int i;
22358          off_t o, n;
22359          struct sf_hdtr h;
22360          (void)sendfile(i,i,o,&n,&h,i);
22361
22362  ;
22363  return 0;
22364}
22365_ACEOF
22366if ac_fn_c_try_link "$LINENO"; then :
22367  pr_cv_func_sendfile="MacOSX"
22368fi
22369rm -f core conftest.err conftest.$ac_objext \
22370    conftest$ac_exeext conftest.$ac_ext
22371    fi
22372
22373fi
22374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_func_sendfile" >&5
22375$as_echo "$pr_cv_func_sendfile" >&6; }
22376
22377
22378  if test x"$pr_cv_func_sendfile" != x"none"; then
22379            if test x"$pr_cv_func_sendfile" != x"AIX"; then
22380
22381$as_echo "#define HAVE_SENDFILE 1" >>confdefs.h
22382
22383
22384$as_echo "#define PR_USE_SENDFILE 1" >>confdefs.h
22385
22386    fi
22387  fi
22388
22389  case "$pr_cv_func_sendfile" in
22390    "Linux")
22391      for ac_header in sys/sendfile.h
22392do :
22393  ac_fn_c_check_header_mongrel "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
22394if test "x$ac_cv_header_sys_sendfile_h" = xyes; then :
22395  cat >>confdefs.h <<_ACEOF
22396#define HAVE_SYS_SENDFILE_H 1
22397_ACEOF
22398
22399fi
22400
22401done
22402
22403
22404$as_echo "#define HAVE_LINUX_SENDFILE 1" >>confdefs.h
22405
22406      ;;
22407
22408    "BSD")
22409
22410$as_echo "#define HAVE_BSD_SENDFILE 1" >>confdefs.h
22411
22412      ;;
22413
22414    "AIX")
22415      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** AIX sendfile support automatically disabled **" >&5
22416$as_echo "$as_me: WARNING: ** AIX sendfile support automatically disabled **" >&2;}
22417      ;;
22418
22419    "Solaris")
22420      for ac_header in sys/sendfile.h
22421do :
22422  ac_fn_c_check_header_mongrel "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
22423if test "x$ac_cv_header_sys_sendfile_h" = xyes; then :
22424  cat >>confdefs.h <<_ACEOF
22425#define HAVE_SYS_SENDFILE_H 1
22426_ACEOF
22427
22428fi
22429
22430done
22431
22432
22433$as_echo "#define HAVE_SOLARIS_SENDFILE 1" >>confdefs.h
22434
22435      ac_build_addl_libs="-lsendfile $ac_build_addl_libs"
22436      ;;
22437
22438    "MacOSX")
22439
22440$as_echo "#define HAVE_MACOSX_SENDFILE 1" >>confdefs.h
22441
22442      ;;
22443  esac
22444fi
22445
22446if test x"$enable_trace" != xno ; then
22447
22448$as_echo "#define PR_USE_TRACE 1" >>confdefs.h
22449
22450fi
22451
22452if test x"$enable_xattr" != xno ; then
22453  # On Free/Net/OpenBSD, it's sys/extattr.h
22454  ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
22455if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
22456
22457$as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
22458
22459
22460$as_echo "#define PR_USE_XATTR 1" >>confdefs.h
22461
22462
22463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_delete_link" >&5
22464$as_echo_n "checking for extattr_delete_link... " >&6; }
22465     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22466/* end confdefs.h.  */
22467 #ifdef HAVE_STDDEF_H
22468         # include <stddef.h>
22469         #endif
22470         #ifdef HAVE_STDLIB_H
22471         # include <stdlib.h>
22472         #endif
22473         #ifdef HAVE_SYS_TYPES_H
22474         # include <sys/types.h>
22475         #endif
22476         #ifdef HAVE_SYS_EXTATTR_H
22477         # include <sys/extattr.h>
22478         #endif
22479
22480int
22481main ()
22482{
22483
22484         int res;
22485         int namespace = 0;
22486         const char *path = NULL, name = NULL;
22487         res = extattr_delete_link(path, namespace, name);
22488
22489  ;
22490  return 0;
22491}
22492_ACEOF
22493if ac_fn_c_try_link "$LINENO"; then :
22494
22495         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22496$as_echo "yes" >&6; }
22497
22498$as_echo "#define HAVE_EXTATTR_DELETE_LINK 1" >>confdefs.h
22499
22500
22501else
22502
22503         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22504$as_echo "no" >&6; }
22505
22506
22507fi
22508rm -f core conftest.err conftest.$ac_objext \
22509    conftest$ac_exeext conftest.$ac_ext
22510
22511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_get_link" >&5
22512$as_echo_n "checking for extattr_get_link... " >&6; }
22513     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22514/* end confdefs.h.  */
22515 #ifdef HAVE_STDDEF_H
22516         # include <stddef.h>
22517         #endif
22518         #ifdef HAVE_STDLIB_H
22519         # include <stdlib.h>
22520         #endif
22521         #ifdef HAVE_SYS_TYPES_H
22522         # include <sys/types.h>
22523         #endif
22524         #ifdef HAVE_SYS_EXTATTR_H
22525         # include <sys/extattr.h>
22526         #endif
22527
22528int
22529main ()
22530{
22531
22532         ssize_t res;
22533         int namespace = 0;
22534         const char *path = NULL, name = NULL;
22535         void *val = NULL;
22536         size_t sz = 0;
22537         res = extattr_get_link(path, namespace, name, val, sz);
22538
22539  ;
22540  return 0;
22541}
22542_ACEOF
22543if ac_fn_c_try_link "$LINENO"; then :
22544
22545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22546$as_echo "yes" >&6; }
22547
22548$as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
22549
22550
22551else
22552
22553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22554$as_echo "no" >&6; }
22555
22556
22557fi
22558rm -f core conftest.err conftest.$ac_objext \
22559    conftest$ac_exeext conftest.$ac_ext
22560
22561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_list_link" >&5
22562$as_echo_n "checking for extattr_list_link... " >&6; }
22563     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22564/* end confdefs.h.  */
22565 #ifdef HAVE_STDDEF_H
22566         # include <stddef.h>
22567         #endif
22568         #ifdef HAVE_STDLIB_H
22569         # include <stdlib.h>
22570         #endif
22571         #ifdef HAVE_SYS_TYPES_H
22572         # include <sys/types.h>
22573         #endif
22574         #ifdef HAVE_SYS_EXTATTR_H
22575         # include <sys/extattr.h>
22576         #endif
22577
22578int
22579main ()
22580{
22581
22582         ssize_t res;
22583         int namespace = 0;
22584         const char *path = NULL;
22585         void *val = NULL;
22586         size_t sz = 0;
22587         res = extattr_list_link(path, namespace, val, sz);
22588
22589  ;
22590  return 0;
22591}
22592_ACEOF
22593if ac_fn_c_try_link "$LINENO"; then :
22594
22595         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22596$as_echo "yes" >&6; }
22597
22598$as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
22599
22600
22601else
22602
22603         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22604$as_echo "no" >&6; }
22605
22606
22607fi
22608rm -f core conftest.err conftest.$ac_objext \
22609    conftest$ac_exeext conftest.$ac_ext
22610
22611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_set_link" >&5
22612$as_echo_n "checking for extattr_set_link... " >&6; }
22613     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22614/* end confdefs.h.  */
22615 #ifdef HAVE_STDDEF_H
22616         # include <stddef.h>
22617         #endif
22618         #ifdef HAVE_STDLIB_H
22619         # include <stdlib.h>
22620         #endif
22621         #ifdef HAVE_SYS_TYPES_H
22622         # include <sys/types.h>
22623         #endif
22624         #ifdef HAVE_SYS_EXTATTR_H
22625         # include <sys/extattr.h>
22626         #endif
22627
22628int
22629main ()
22630{
22631
22632         int res;
22633         int namespace = 0;
22634         const char *path = NULL, name = NULL;
22635         void *val = NULL;
22636         size_t sz = 0;
22637         res = extattr_set_link(path, namespace, name, val, sz);
22638
22639  ;
22640  return 0;
22641}
22642_ACEOF
22643if ac_fn_c_try_link "$LINENO"; then :
22644
22645         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22646$as_echo "yes" >&6; }
22647
22648$as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
22649
22650
22651else
22652
22653         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22654$as_echo "no" >&6; }
22655
22656
22657fi
22658rm -f core conftest.err conftest.$ac_objext \
22659    conftest$ac_exeext conftest.$ac_ext
22660
22661fi
22662
22663
22664
22665  # On Linux/MacOSX, it's sys/xattr.h
22666  ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
22667if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
22668
22669$as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
22670
22671
22672$as_echo "#define PR_USE_XATTR 1" >>confdefs.h
22673
22674     for ac_header in attr/xattr.h
22675do :
22676  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
22677if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
22678  cat >>confdefs.h <<_ACEOF
22679#define HAVE_ATTR_XATTR_H 1
22680_ACEOF
22681
22682fi
22683
22684done
22685
22686
22687     # Some platforms need libattr for extended attributes
22688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
22689$as_echo_n "checking for setxattr in -lattr... " >&6; }
22690if ${ac_cv_lib_attr_setxattr+:} false; then :
22691  $as_echo_n "(cached) " >&6
22692else
22693  ac_check_lib_save_LIBS=$LIBS
22694LIBS="-lattr  $LIBS"
22695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22696/* end confdefs.h.  */
22697
22698/* Override any GCC internal prototype to avoid an error.
22699   Use char because int might match the return type of a GCC
22700   builtin and then its argument prototype would still apply.  */
22701#ifdef __cplusplus
22702extern "C"
22703#endif
22704char setxattr ();
22705int
22706main ()
22707{
22708return setxattr ();
22709  ;
22710  return 0;
22711}
22712_ACEOF
22713if ac_fn_c_try_link "$LINENO"; then :
22714  ac_cv_lib_attr_setxattr=yes
22715else
22716  ac_cv_lib_attr_setxattr=no
22717fi
22718rm -f core conftest.err conftest.$ac_objext \
22719    conftest$ac_exeext conftest.$ac_ext
22720LIBS=$ac_check_lib_save_LIBS
22721fi
22722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
22723$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
22724if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
22725  cat >>confdefs.h <<_ACEOF
22726#define HAVE_LIBATTR 1
22727_ACEOF
22728
22729  LIBS="-lattr $LIBS"
22730
22731fi
22732
22733
22734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetxattr" >&5
22735$as_echo_n "checking for lgetxattr... " >&6; }
22736     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22737/* end confdefs.h.  */
22738 #ifdef HAVE_STDDEF_H
22739         # include <stddef.h>
22740         #endif
22741         #ifdef HAVE_STDLIB_H
22742         # include <stdlib.h>
22743         #endif
22744         #ifdef HAVE_SYS_TYPES_H
22745         # include <sys/types.h>
22746         #endif
22747         #ifdef HAVE_SYS_XATTR_H
22748         # include <sys/xattr.h>
22749         #endif
22750
22751int
22752main ()
22753{
22754
22755         ssize_t res;
22756         const char *path = NULL, *name = NULL;
22757         void *val = NULL;
22758         size_t sz = 0;
22759         res = lgetxattr(path, name, val, sz);
22760
22761  ;
22762  return 0;
22763}
22764_ACEOF
22765if ac_fn_c_try_link "$LINENO"; then :
22766
22767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22768$as_echo "yes" >&6; }
22769
22770$as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
22771
22772
22773else
22774
22775         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22776$as_echo "no" >&6; }
22777
22778
22779fi
22780rm -f core conftest.err conftest.$ac_objext \
22781    conftest$ac_exeext conftest.$ac_ext
22782
22783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llistxattr" >&5
22784$as_echo_n "checking for llistxattr... " >&6; }
22785     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22786/* end confdefs.h.  */
22787 #ifdef HAVE_STDDEF_H
22788         # include <stddef.h>
22789         #endif
22790         #ifdef HAVE_STDLIB_H
22791         # include <stdlib.h>
22792         #endif
22793         #ifdef HAVE_SYS_TYPES_H
22794         # include <sys/types.h>
22795         #endif
22796         #ifdef HAVE_SYS_XATTR_H
22797         # include <sys/xattr.h>
22798         #endif
22799
22800int
22801main ()
22802{
22803
22804         ssize_t res;
22805         const char *path = NULL;
22806         char *names = NUL;
22807         size_t namessz = 0;
22808         res = llistxattr(path, names, namessz);
22809
22810  ;
22811  return 0;
22812}
22813_ACEOF
22814if ac_fn_c_try_link "$LINENO"; then :
22815
22816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22817$as_echo "yes" >&6; }
22818
22819$as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
22820
22821
22822else
22823
22824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22825$as_echo "no" >&6; }
22826
22827
22828fi
22829rm -f core conftest.err conftest.$ac_objext \
22830    conftest$ac_exeext conftest.$ac_ext
22831
22832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lremovexattr" >&5
22833$as_echo_n "checking for lremovexattr... " >&6; }
22834     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22835/* end confdefs.h.  */
22836 #ifdef HAVE_STDDEF_H
22837         # include <stddef.h>
22838         #endif
22839         #ifdef HAVE_STDLIB_H
22840         # include <stdlib.h>
22841         #endif
22842         #ifdef HAVE_SYS_TYPES_H
22843         # include <sys/types.h>
22844         #endif
22845         #ifdef HAVE_SYS_XATTR_H
22846         # include <sys/xattr.h>
22847         #endif
22848
22849int
22850main ()
22851{
22852
22853         ssize_t res;
22854         const char *path = NULL, *name = NULL;
22855         res = lremovexattr(path, name);
22856
22857  ;
22858  return 0;
22859}
22860_ACEOF
22861if ac_fn_c_try_link "$LINENO"; then :
22862
22863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22864$as_echo "yes" >&6; }
22865
22866$as_echo "#define HAVE_LREMOVEXATTR 1" >>confdefs.h
22867
22868
22869else
22870
22871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22872$as_echo "no" >&6; }
22873
22874
22875fi
22876rm -f core conftest.err conftest.$ac_objext \
22877    conftest$ac_exeext conftest.$ac_ext
22878
22879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsetxattr" >&5
22880$as_echo_n "checking for lsetxattr... " >&6; }
22881     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22882/* end confdefs.h.  */
22883 #ifdef HAVE_STDDEF_H
22884         # include <stddef.h>
22885         #endif
22886         #ifdef HAVE_STDLIB_H
22887         # include <stdlib.h>
22888         #endif
22889         #ifdef HAVE_SYS_TYPES_H
22890         # include <sys/types.h>
22891         #endif
22892         #ifdef HAVE_SYS_XATTR_H
22893         # include <sys/xattr.h>
22894         #endif
22895
22896int
22897main ()
22898{
22899
22900         int res, flags = 0;
22901         const char *path = NULL, *name = NULL;
22902         const void *val = NULL;
22903         res = lsetxattr(path, name, val, flags);
22904
22905  ;
22906  return 0;
22907}
22908_ACEOF
22909if ac_fn_c_try_link "$LINENO"; then :
22910
22911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22912$as_echo "yes" >&6; }
22913
22914$as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
22915
22916
22917else
22918
22919         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22920$as_echo "no" >&6; }
22921
22922
22923fi
22924rm -f core conftest.err conftest.$ac_objext \
22925    conftest$ac_exeext conftest.$ac_ext
22926
22927fi
22928
22929
22930fi
22931
22932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setgrent returns void" >&5
22933$as_echo_n "checking whether setgrent returns void... " >&6; }
22934if ${ac_cv_func_setgrent_void+:} false; then :
22935  $as_echo_n "(cached) " >&6
22936else
22937  if test "$cross_compiling" = yes; then :
22938  ac_cv_func_setgrent_void=yes
22939else
22940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22941/* end confdefs.h.  */
22942
22943    #include <sys/types.h>
22944    #include <grp.h>
22945    int main(int argc, char *argv) {
22946      int i = 0;
22947      getgrent();
22948      i = setgrent();
22949      return (i != 1);
22950    }
22951
22952_ACEOF
22953if ac_fn_c_try_run "$LINENO"; then :
22954  ac_cv_func_setgrent_void=no
22955else
22956  ac_cv_func_setgrent_void=yes
22957fi
22958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22959  conftest.$ac_objext conftest.beam conftest.$ac_ext
22960fi
22961
22962fi
22963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setgrent_void" >&5
22964$as_echo "$ac_cv_func_setgrent_void" >&6; }
22965
22966if test $ac_cv_func_setgrent_void = yes; then
22967
22968$as_echo "#define SETGRENT_VOID 1" >>confdefs.h
22969
22970fi
22971
22972
22973if test x"$enable_curses" != xno ; then
22974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
22975$as_echo_n "checking for initscr in -lcurses... " >&6; }
22976if ${ac_cv_lib_curses_initscr+:} false; then :
22977  $as_echo_n "(cached) " >&6
22978else
22979  ac_check_lib_save_LIBS=$LIBS
22980LIBS="-lcurses  $LIBS"
22981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22982/* end confdefs.h.  */
22983
22984/* Override any GCC internal prototype to avoid an error.
22985   Use char because int might match the return type of a GCC
22986   builtin and then its argument prototype would still apply.  */
22987#ifdef __cplusplus
22988extern "C"
22989#endif
22990char initscr ();
22991int
22992main ()
22993{
22994return initscr ();
22995  ;
22996  return 0;
22997}
22998_ACEOF
22999if ac_fn_c_try_link "$LINENO"; then :
23000  ac_cv_lib_curses_initscr=yes
23001else
23002  ac_cv_lib_curses_initscr=no
23003fi
23004rm -f core conftest.err conftest.$ac_objext \
23005    conftest$ac_exeext conftest.$ac_ext
23006LIBS=$ac_check_lib_save_LIBS
23007fi
23008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
23009$as_echo "$ac_cv_lib_curses_initscr" >&6; }
23010if test "x$ac_cv_lib_curses_initscr" = xyes; then :
23011   CURSES_LIBS="-lcurses"
23012
23013$as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h
23014
23015
23016$as_echo "#define PR_USE_CURSES 1" >>confdefs.h
23017
23018
23019fi
23020
23021
23022          if test x"$enable_nls" = xyes ; then
23023    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for halfdelay in -ltinfow" >&5
23024$as_echo_n "checking for halfdelay in -ltinfow... " >&6; }
23025if ${ac_cv_lib_tinfow_halfdelay+:} false; then :
23026  $as_echo_n "(cached) " >&6
23027else
23028  ac_check_lib_save_LIBS=$LIBS
23029LIBS="-ltinfow  $LIBS"
23030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23031/* end confdefs.h.  */
23032
23033/* Override any GCC internal prototype to avoid an error.
23034   Use char because int might match the return type of a GCC
23035   builtin and then its argument prototype would still apply.  */
23036#ifdef __cplusplus
23037extern "C"
23038#endif
23039char halfdelay ();
23040int
23041main ()
23042{
23043return halfdelay ();
23044  ;
23045  return 0;
23046}
23047_ACEOF
23048if ac_fn_c_try_link "$LINENO"; then :
23049  ac_cv_lib_tinfow_halfdelay=yes
23050else
23051  ac_cv_lib_tinfow_halfdelay=no
23052fi
23053rm -f core conftest.err conftest.$ac_objext \
23054    conftest$ac_exeext conftest.$ac_ext
23055LIBS=$ac_check_lib_save_LIBS
23056fi
23057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfow_halfdelay" >&5
23058$as_echo "$ac_cv_lib_tinfow_halfdelay" >&6; }
23059if test "x$ac_cv_lib_tinfow_halfdelay" = xyes; then :
23060   UTILS_LIBS="$UTILS_LIBS -ltinfow"
23061
23062$as_echo "#define HAVE_LIBTINFOW 1" >>confdefs.h
23063
23064
23065else
23066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for halfdelay in -ltinfo" >&5
23067$as_echo_n "checking for halfdelay in -ltinfo... " >&6; }
23068if ${ac_cv_lib_tinfo_halfdelay+:} false; then :
23069  $as_echo_n "(cached) " >&6
23070else
23071  ac_check_lib_save_LIBS=$LIBS
23072LIBS="-ltinfo  $LIBS"
23073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23074/* end confdefs.h.  */
23075
23076/* Override any GCC internal prototype to avoid an error.
23077   Use char because int might match the return type of a GCC
23078   builtin and then its argument prototype would still apply.  */
23079#ifdef __cplusplus
23080extern "C"
23081#endif
23082char halfdelay ();
23083int
23084main ()
23085{
23086return halfdelay ();
23087  ;
23088  return 0;
23089}
23090_ACEOF
23091if ac_fn_c_try_link "$LINENO"; then :
23092  ac_cv_lib_tinfo_halfdelay=yes
23093else
23094  ac_cv_lib_tinfo_halfdelay=no
23095fi
23096rm -f core conftest.err conftest.$ac_objext \
23097    conftest$ac_exeext conftest.$ac_ext
23098LIBS=$ac_check_lib_save_LIBS
23099fi
23100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_halfdelay" >&5
23101$as_echo "$ac_cv_lib_tinfo_halfdelay" >&6; }
23102if test "x$ac_cv_lib_tinfo_halfdelay" = xyes; then :
23103   UTILS_LIBS="$UTILS_LIBS -ltinfo"
23104
23105$as_echo "#define HAVE_LIBTINFO 1" >>confdefs.h
23106
23107
23108fi
23109
23110
23111fi
23112
23113  else
23114    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for halfdelay in -ltinfo" >&5
23115$as_echo_n "checking for halfdelay in -ltinfo... " >&6; }
23116if ${ac_cv_lib_tinfo_halfdelay+:} false; then :
23117  $as_echo_n "(cached) " >&6
23118else
23119  ac_check_lib_save_LIBS=$LIBS
23120LIBS="-ltinfo  $LIBS"
23121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23122/* end confdefs.h.  */
23123
23124/* Override any GCC internal prototype to avoid an error.
23125   Use char because int might match the return type of a GCC
23126   builtin and then its argument prototype would still apply.  */
23127#ifdef __cplusplus
23128extern "C"
23129#endif
23130char halfdelay ();
23131int
23132main ()
23133{
23134return halfdelay ();
23135  ;
23136  return 0;
23137}
23138_ACEOF
23139if ac_fn_c_try_link "$LINENO"; then :
23140  ac_cv_lib_tinfo_halfdelay=yes
23141else
23142  ac_cv_lib_tinfo_halfdelay=no
23143fi
23144rm -f core conftest.err conftest.$ac_objext \
23145    conftest$ac_exeext conftest.$ac_ext
23146LIBS=$ac_check_lib_save_LIBS
23147fi
23148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_halfdelay" >&5
23149$as_echo "$ac_cv_lib_tinfo_halfdelay" >&6; }
23150if test "x$ac_cv_lib_tinfo_halfdelay" = xyes; then :
23151   UTILS_LIBS="$UTILS_LIBS -ltinfo"
23152
23153$as_echo "#define HAVE_LIBTINFO 1" >>confdefs.h
23154
23155
23156fi
23157
23158  fi
23159fi
23160
23161if test x"$enable_ncurses" != xno ; then
23162  pr_have_ncursesw="no"
23163
23164
23165  if test x"$enable_nls" = xyes ; then
23166    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
23167$as_echo_n "checking for initscr in -lncursesw... " >&6; }
23168if ${ac_cv_lib_ncursesw_initscr+:} false; then :
23169  $as_echo_n "(cached) " >&6
23170else
23171  ac_check_lib_save_LIBS=$LIBS
23172LIBS="-lncursesw  $LIBS"
23173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23174/* end confdefs.h.  */
23175
23176/* Override any GCC internal prototype to avoid an error.
23177   Use char because int might match the return type of a GCC
23178   builtin and then its argument prototype would still apply.  */
23179#ifdef __cplusplus
23180extern "C"
23181#endif
23182char initscr ();
23183int
23184main ()
23185{
23186return initscr ();
23187  ;
23188  return 0;
23189}
23190_ACEOF
23191if ac_fn_c_try_link "$LINENO"; then :
23192  ac_cv_lib_ncursesw_initscr=yes
23193else
23194  ac_cv_lib_ncursesw_initscr=no
23195fi
23196rm -f core conftest.err conftest.$ac_objext \
23197    conftest$ac_exeext conftest.$ac_ext
23198LIBS=$ac_check_lib_save_LIBS
23199fi
23200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
23201$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
23202if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
23203   CURSES_LIBS="-lncursesw"
23204        pr_have_ncursesw="yes"
23205
23206$as_echo "#define HAVE_LIBNCURSESW 1" >>confdefs.h
23207
23208
23209else
23210
23211        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
23212$as_echo_n "checking for initscr in -lncurses... " >&6; }
23213if ${ac_cv_lib_ncurses_initscr+:} false; then :
23214  $as_echo_n "(cached) " >&6
23215else
23216  ac_check_lib_save_LIBS=$LIBS
23217LIBS="-lncurses  $LIBS"
23218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23219/* end confdefs.h.  */
23220
23221/* Override any GCC internal prototype to avoid an error.
23222   Use char because int might match the return type of a GCC
23223   builtin and then its argument prototype would still apply.  */
23224#ifdef __cplusplus
23225extern "C"
23226#endif
23227char initscr ();
23228int
23229main ()
23230{
23231return initscr ();
23232  ;
23233  return 0;
23234}
23235_ACEOF
23236if ac_fn_c_try_link "$LINENO"; then :
23237  ac_cv_lib_ncurses_initscr=yes
23238else
23239  ac_cv_lib_ncurses_initscr=no
23240fi
23241rm -f core conftest.err conftest.$ac_objext \
23242    conftest$ac_exeext conftest.$ac_ext
23243LIBS=$ac_check_lib_save_LIBS
23244fi
23245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
23246$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
23247if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
23248   CURSES_LIBS="-lncurses"
23249
23250$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
23251
23252
23253fi
23254
23255
23256fi
23257
23258
23259  else
23260    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
23261$as_echo_n "checking for initscr in -lncurses... " >&6; }
23262if ${ac_cv_lib_ncurses_initscr+:} false; then :
23263  $as_echo_n "(cached) " >&6
23264else
23265  ac_check_lib_save_LIBS=$LIBS
23266LIBS="-lncurses  $LIBS"
23267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23268/* end confdefs.h.  */
23269
23270/* Override any GCC internal prototype to avoid an error.
23271   Use char because int might match the return type of a GCC
23272   builtin and then its argument prototype would still apply.  */
23273#ifdef __cplusplus
23274extern "C"
23275#endif
23276char initscr ();
23277int
23278main ()
23279{
23280return initscr ();
23281  ;
23282  return 0;
23283}
23284_ACEOF
23285if ac_fn_c_try_link "$LINENO"; then :
23286  ac_cv_lib_ncurses_initscr=yes
23287else
23288  ac_cv_lib_ncurses_initscr=no
23289fi
23290rm -f core conftest.err conftest.$ac_objext \
23291    conftest$ac_exeext conftest.$ac_ext
23292LIBS=$ac_check_lib_save_LIBS
23293fi
23294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
23295$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
23296if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
23297   CURSES_LIBS="-lncurses"
23298
23299$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
23300
23301
23302fi
23303
23304  fi
23305
23306
23307  if test x"$pr_have_ncursesw" = xyes ; then
23308
23309$as_echo "#define PR_USE_NCURSESW 1" >>confdefs.h
23310
23311    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for halfdelay in -ltinfow" >&5
23312$as_echo_n "checking for halfdelay in -ltinfow... " >&6; }
23313if ${ac_cv_lib_tinfow_halfdelay+:} false; then :
23314  $as_echo_n "(cached) " >&6
23315else
23316  ac_check_lib_save_LIBS=$LIBS
23317LIBS="-ltinfow  $LIBS"
23318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23319/* end confdefs.h.  */
23320
23321/* Override any GCC internal prototype to avoid an error.
23322   Use char because int might match the return type of a GCC
23323   builtin and then its argument prototype would still apply.  */
23324#ifdef __cplusplus
23325extern "C"
23326#endif
23327char halfdelay ();
23328int
23329main ()
23330{
23331return halfdelay ();
23332  ;
23333  return 0;
23334}
23335_ACEOF
23336if ac_fn_c_try_link "$LINENO"; then :
23337  ac_cv_lib_tinfow_halfdelay=yes
23338else
23339  ac_cv_lib_tinfow_halfdelay=no
23340fi
23341rm -f core conftest.err conftest.$ac_objext \
23342    conftest$ac_exeext conftest.$ac_ext
23343LIBS=$ac_check_lib_save_LIBS
23344fi
23345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfow_halfdelay" >&5
23346$as_echo "$ac_cv_lib_tinfow_halfdelay" >&6; }
23347if test "x$ac_cv_lib_tinfow_halfdelay" = xyes; then :
23348   UTILS_LIBS="$UTILS_LIBS -ltinfow"
23349
23350$as_echo "#define HAVE_LIBTINFOW 1" >>confdefs.h
23351
23352
23353else
23354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for halfdelay in -ltinfo" >&5
23355$as_echo_n "checking for halfdelay in -ltinfo... " >&6; }
23356if ${ac_cv_lib_tinfo_halfdelay+:} false; then :
23357  $as_echo_n "(cached) " >&6
23358else
23359  ac_check_lib_save_LIBS=$LIBS
23360LIBS="-ltinfo  $LIBS"
23361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23362/* end confdefs.h.  */
23363
23364/* Override any GCC internal prototype to avoid an error.
23365   Use char because int might match the return type of a GCC
23366   builtin and then its argument prototype would still apply.  */
23367#ifdef __cplusplus
23368extern "C"
23369#endif
23370char halfdelay ();
23371int
23372main ()
23373{
23374return halfdelay ();
23375  ;
23376  return 0;
23377}
23378_ACEOF
23379if ac_fn_c_try_link "$LINENO"; then :
23380  ac_cv_lib_tinfo_halfdelay=yes
23381else
23382  ac_cv_lib_tinfo_halfdelay=no
23383fi
23384rm -f core conftest.err conftest.$ac_objext \
23385    conftest$ac_exeext conftest.$ac_ext
23386LIBS=$ac_check_lib_save_LIBS
23387fi
23388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_halfdelay" >&5
23389$as_echo "$ac_cv_lib_tinfo_halfdelay" >&6; }
23390if test "x$ac_cv_lib_tinfo_halfdelay" = xyes; then :
23391   UTILS_LIBS="$UTILS_LIBS -ltinfo"
23392
23393$as_echo "#define HAVE_LIBTINFO 1" >>confdefs.h
23394
23395
23396fi
23397
23398
23399fi
23400
23401  else
23402
23403$as_echo "#define PR_USE_NCURSES 1" >>confdefs.h
23404
23405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for halfdelay in -ltinfo" >&5
23406$as_echo_n "checking for halfdelay in -ltinfo... " >&6; }
23407if ${ac_cv_lib_tinfo_halfdelay+:} false; then :
23408  $as_echo_n "(cached) " >&6
23409else
23410  ac_check_lib_save_LIBS=$LIBS
23411LIBS="-ltinfo  $LIBS"
23412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23413/* end confdefs.h.  */
23414
23415/* Override any GCC internal prototype to avoid an error.
23416   Use char because int might match the return type of a GCC
23417   builtin and then its argument prototype would still apply.  */
23418#ifdef __cplusplus
23419extern "C"
23420#endif
23421char halfdelay ();
23422int
23423main ()
23424{
23425return halfdelay ();
23426  ;
23427  return 0;
23428}
23429_ACEOF
23430if ac_fn_c_try_link "$LINENO"; then :
23431  ac_cv_lib_tinfo_halfdelay=yes
23432else
23433  ac_cv_lib_tinfo_halfdelay=no
23434fi
23435rm -f core conftest.err conftest.$ac_objext \
23436    conftest$ac_exeext conftest.$ac_ext
23437LIBS=$ac_check_lib_save_LIBS
23438fi
23439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_halfdelay" >&5
23440$as_echo "$ac_cv_lib_tinfo_halfdelay" >&6; }
23441if test "x$ac_cv_lib_tinfo_halfdelay" = xyes; then :
23442   UTILS_LIBS="$UTILS_LIBS -ltinfo"
23443
23444$as_echo "#define HAVE_LIBTINFO 1" >>confdefs.h
23445
23446
23447fi
23448
23449  fi
23450fi
23451
23452if test x"$enable_nonblocking_log_open" != xno; then
23453
23454$as_echo "#define PR_USE_NONBLOCKING_LOG_OPEN 1" >>confdefs.h
23455
23456fi
23457
23458if test x"$enable_ident" == xyes ; then
23459  ac_static_modules="mod_ident.o $ac_static_modules"
23460  ac_build_static_modules="modules/mod_ident.o $ac_build_static_modules"
23461fi
23462
23463for ac_func in setproctitle
23464do :
23465  ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
23466if test "x$ac_cv_func_setproctitle" = xyes; then :
23467  cat >>confdefs.h <<_ACEOF
23468#define HAVE_SETPROCTITLE 1
23469_ACEOF
23470
23471fi
23472done
23473
23474for ac_header in libutil.h
23475do :
23476  ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
23477if test "x$ac_cv_header_libutil_h" = xyes; then :
23478  cat >>confdefs.h <<_ACEOF
23479#define HAVE_LIBUTIL_H 1
23480_ACEOF
23481
23482fi
23483
23484done
23485
23486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
23487$as_echo_n "checking for setproctitle in -lutil... " >&6; }
23488if ${ac_cv_lib_util_setproctitle+:} false; then :
23489  $as_echo_n "(cached) " >&6
23490else
23491  ac_check_lib_save_LIBS=$LIBS
23492LIBS="-lutil  $LIBS"
23493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23494/* end confdefs.h.  */
23495
23496/* Override any GCC internal prototype to avoid an error.
23497   Use char because int might match the return type of a GCC
23498   builtin and then its argument prototype would still apply.  */
23499#ifdef __cplusplus
23500extern "C"
23501#endif
23502char setproctitle ();
23503int
23504main ()
23505{
23506return setproctitle ();
23507  ;
23508  return 0;
23509}
23510_ACEOF
23511if ac_fn_c_try_link "$LINENO"; then :
23512  ac_cv_lib_util_setproctitle=yes
23513else
23514  ac_cv_lib_util_setproctitle=no
23515fi
23516rm -f core conftest.err conftest.$ac_objext \
23517    conftest$ac_exeext conftest.$ac_ext
23518LIBS=$ac_check_lib_save_LIBS
23519fi
23520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
23521$as_echo "$ac_cv_lib_util_setproctitle" >&6; }
23522if test "x$ac_cv_lib_util_setproctitle" = xyes; then :
23523  $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
23524
23525		ac_cv_func_setproctitle="yes" ; LIBS="$LIBS -lutil"
23526fi
23527
23528
23529if test "$ac_cv_func_setproctitle" = "yes"; then
23530  $as_echo "#define PF_ARGV_TYPE PF_ARGV_NONE" >>confdefs.h
23531
23532else
23533  pf_argv_set="no"
23534
23535  for ac_header in sys/pstat.h
23536do :
23537  ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default"
23538if test "x$ac_cv_header_sys_pstat_h" = xyes; then :
23539  cat >>confdefs.h <<_ACEOF
23540#define HAVE_SYS_PSTAT_H 1
23541_ACEOF
23542 have_pstat_h="yes"
23543else
23544  have_pstat_h="no"
23545fi
23546
23547done
23548
23549  if test "$have_pstat_h" = "yes"; then
23550    for ac_func in pstat
23551do :
23552  ac_fn_c_check_func "$LINENO" "pstat" "ac_cv_func_pstat"
23553if test "x$ac_cv_func_pstat" = xyes; then :
23554  cat >>confdefs.h <<_ACEOF
23555#define HAVE_PSTAT 1
23556_ACEOF
23557
23558fi
23559done
23560
23561
23562    if test "$ac_cv_func_pstat" = "yes"; then
23563	$as_echo "#define PF_ARGV_TYPE PF_ARGV_PSTAT" >>confdefs.h
23564
23565    else
23566	$as_echo "#define PF_ARGV_TYPE PF_ARGV_WRITEABLE" >>confdefs.h
23567
23568    fi
23569
23570    pf_argv_set="yes"
23571  fi
23572
23573  if test "$pf_argv_set" = "no"; then
23574    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23575/* end confdefs.h.  */
23576#include <sys/exec.h>
23577
23578_ACEOF
23579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23580  $EGREP "#define.*PS_STRINGS.*" >/dev/null 2>&1; then :
23581  have_psstrings="yes"
23582else
23583  have_psstrings="no"
23584fi
23585rm -f conftest*
23586
23587    if test "$have_psstrings" = "yes"; then
23588	$as_echo "#define PF_ARGV_TYPE PF_ARGV_PSSTRINGS" >>confdefs.h
23589
23590	pf_argv_set="yes"
23591    fi
23592  fi
23593
23594  if test "$pf_argv_set" = "no"; then
23595    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname and __progname_full are available" >&5
23596$as_echo_n "checking whether __progname and __progname_full are available... " >&6; }
23597if ${pf_cv_var_progname+:} false; then :
23598  $as_echo_n "(cached) " >&6
23599else
23600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23601/* end confdefs.h.  */
23602extern char *__progname, *__progname_full;
23603int
23604main ()
23605{
23606__progname = "foo"; __progname_full = "foo bar";
23607  ;
23608  return 0;
23609}
23610_ACEOF
23611if ac_fn_c_try_link "$LINENO"; then :
23612  pf_cv_var_progname="yes"
23613else
23614  pf_cv_var_progname="no"
23615fi
23616rm -f core conftest.err conftest.$ac_objext \
23617    conftest$ac_exeext conftest.$ac_ext
23618fi
23619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pf_cv_var_progname" >&5
23620$as_echo "$pf_cv_var_progname" >&6; }
23621
23622    if test "$pf_cv_var_progname" = "yes"; then
23623
23624$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
23625
23626    fi
23627
23628    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which argv replacement method to use" >&5
23629$as_echo_n "checking which argv replacement method to use... " >&6; }
23630if ${pf_cv_argv_type+:} false; then :
23631  $as_echo_n "(cached) " >&6
23632else
23633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23634/* end confdefs.h.  */
23635
23636#if defined(__GNU_HURD__)
23637  yes
23638#endif
23639
23640_ACEOF
23641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23642  $EGREP "yes" >/dev/null 2>&1; then :
23643  pf_cv_argv_type="new"
23644else
23645  pf_cv_argv_type="writeable"
23646fi
23647rm -f conftest*
23648
23649fi
23650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pf_cv_argv_type" >&5
23651$as_echo "$pf_cv_argv_type" >&6; }
23652
23653    if test "$pf_cv_argv_type" = "new"; then
23654	$as_echo "#define PF_ARGV_TYPE PF_ARGV_NEW" >>confdefs.h
23655
23656	pf_argv_set="yes"
23657    fi
23658
23659    if test "$pf_argv_set" = "no"; then
23660	$as_echo "#define PF_ARGV_TYPE PF_ARGV_WRITEABLE" >>confdefs.h
23661
23662    fi
23663  fi
23664fi
23665
23666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lexecinfo" >&5
23667$as_echo_n "checking for backtrace in -lexecinfo... " >&6; }
23668if ${ac_cv_lib_execinfo_backtrace+:} false; then :
23669  $as_echo_n "(cached) " >&6
23670else
23671  ac_check_lib_save_LIBS=$LIBS
23672LIBS="-lexecinfo  $LIBS"
23673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23674/* end confdefs.h.  */
23675
23676/* Override any GCC internal prototype to avoid an error.
23677   Use char because int might match the return type of a GCC
23678   builtin and then its argument prototype would still apply.  */
23679#ifdef __cplusplus
23680extern "C"
23681#endif
23682char backtrace ();
23683int
23684main ()
23685{
23686return backtrace ();
23687  ;
23688  return 0;
23689}
23690_ACEOF
23691if ac_fn_c_try_link "$LINENO"; then :
23692  ac_cv_lib_execinfo_backtrace=yes
23693else
23694  ac_cv_lib_execinfo_backtrace=no
23695fi
23696rm -f core conftest.err conftest.$ac_objext \
23697    conftest$ac_exeext conftest.$ac_ext
23698LIBS=$ac_check_lib_save_LIBS
23699fi
23700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace" >&5
23701$as_echo "$ac_cv_lib_execinfo_backtrace" >&6; }
23702if test "x$ac_cv_lib_execinfo_backtrace" = xyes; then :
23703  cat >>confdefs.h <<_ACEOF
23704#define HAVE_LIBEXECINFO 1
23705_ACEOF
23706
23707  LIBS="-lexecinfo $LIBS"
23708
23709fi
23710
23711
23712for ac_header in execinfo.h ucontext.h
23713do :
23714  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23715ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23716if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23717  cat >>confdefs.h <<_ACEOF
23718#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23719_ACEOF
23720
23721fi
23722
23723done
23724
23725
23726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace" >&5
23727$as_echo_n "checking for backtrace... " >&6; }
23728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23729/* end confdefs.h.  */
23730
23731    #ifdef HAVE_STDDEF_H
23732    # include <stddef.h>
23733    #endif
23734    #ifdef HAVE_STDLIB_H
23735    # include <stdlib.h>
23736    #endif
23737    #ifdef HAVE_EXECINFO_H
23738    # include <execinfo.h>
23739    #endif
23740    #ifdef HAVE_UCONTEXT_H
23741    # include <ucontext.h>
23742    #endif
23743
23744int
23745main ()
23746{
23747
23748    void **syms = NULL;
23749    int res, nsyms = 0;
23750    res = backtrace(syms, nsyms);
23751
23752  ;
23753  return 0;
23754}
23755_ACEOF
23756if ac_fn_c_try_link "$LINENO"; then :
23757
23758    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23759$as_echo "yes" >&6; }
23760
23761$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
23762
23763
23764else
23765
23766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23767$as_echo "no" >&6; }
23768
23769
23770fi
23771rm -f core conftest.err conftest.$ac_objext \
23772    conftest$ac_exeext conftest.$ac_ext
23773
23774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols" >&5
23775$as_echo_n "checking for backtrace_symbols... " >&6; }
23776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23777/* end confdefs.h.  */
23778
23779    #ifdef HAVE_STDDEF_H
23780    # include <stddef.h>
23781    #endif
23782    #ifdef HAVE_STDLIB_H
23783    # include <stdlib.h>
23784    #endif
23785    #ifdef HAVE_EXECINFO_H
23786    # include <execinfo.h>
23787    #endif
23788    #ifdef HAVE_UCONTEXT_H
23789    # include <ucontext.h>
23790    #endif
23791
23792int
23793main ()
23794{
23795
23796    void **syms = NULL;
23797    int nsyms = 0;
23798    char **res;
23799    res = backtrace_symbols(syms, nsyms);
23800
23801  ;
23802  return 0;
23803}
23804_ACEOF
23805if ac_fn_c_try_link "$LINENO"; then :
23806
23807    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23808$as_echo "yes" >&6; }
23809
23810$as_echo "#define HAVE_BACKTRACE_SYMBOLS 1" >>confdefs.h
23811
23812
23813else
23814
23815    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23816$as_echo "no" >&6; }
23817
23818
23819fi
23820rm -f core conftest.err conftest.$ac_objext \
23821    conftest$ac_exeext conftest.$ac_ext
23822
23823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports %llu format" >&5
23824$as_echo_n "checking whether printf supports %llu format... " >&6; };
23825if test "$cross_compiling" = yes; then :
23826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
23827$as_echo "cross-compiling" >&6; };
23828$as_echo "#define HAVE_LU 1" >>confdefs.h
23829
23830
23831else
23832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23833/* end confdefs.h.  */
23834 #include <stdio.h>
23835    int main(int argc, char *argv[]) {
23836      return (fprintf(stderr, "%llu\n", (unsigned long long) 1) == 2 ? 0 : 1);
23837    }
23838
23839_ACEOF
23840if ac_fn_c_try_run "$LINENO"; then :
23841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23842$as_echo "yes" >&6; };
23843$as_echo "#define HAVE_LLU 1" >>confdefs.h
23844
23845else
23846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23847$as_echo "no" >&6; };
23848$as_echo "#define HAVE_LU 1" >>confdefs.h
23849
23850fi
23851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23852  conftest.$ac_objext conftest.beam conftest.$ac_ext
23853fi
23854
23855
23856LIBS="-lsupp $LIBS"
23857
23858ac_shared_module_dirs=
23859ac_static_module_dirs=
23860
23861for amodule in $ac_shared_modules; do
23862  module=`echo "$amodule" | sed -e 's/\.la//g'`.o;
23863
23864  ac_core_modules=`echo "$ac_core_modules" | sed -e "s/$module//g"`;
23865  ac_build_core_modules=`echo "$ac_build_core_modules" | sed -e "s/modules\/$module//g"`;
23866
23867  ac_static_modules=`echo "$ac_static_modules" | sed -e "s/$module//g"`;
23868  ac_build_static_modules=`echo "$ac_build_static_modules" | sed -e "s/modules\/$module//g"`;
23869done
23870
23871GLUE_MODULE_OBJS="$ac_core_modules $ac_static_modules"
23872
23873my_core_modules=`echo "$ac_core_modules" | sed -e 's/\.o//g'`;
23874my_static_modules=`echo "$ac_static_modules" | sed -e 's/\.o//g'`;
23875my_shared_modules=`echo "$ac_shared_modules" | sed -e 's/\.la//g'`;
23876all_modules="$my_core_modules $my_static_modules $my_shared_modules";
23877
23878pr_use_mysql="no"
23879pr_use_postgres="no"
23880
23881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for duplicate module build requests" >&5
23882$as_echo_n "checking for duplicate module build requests... " >&6; }
23883for i in $all_modules; do
23884  once=no;
23885
23886      if test x"$i" = x"mod_auth_otp"; then
23887    if test x"$pr_use_openssl" = x ; then
23888      pr_use_openssl=yes
23889    fi
23890
23891  elif test x"$i" = x"mod_digest"; then
23892    if test x"$pr_use_openssl" = x ; then
23893      pr_use_openssl=yes
23894    fi
23895
23896  elif test x"$i" = x"mod_tls"; then
23897    if test x"$pr_use_openssl" = x ; then
23898      pr_use_openssl=yes
23899    fi
23900
23901  elif test x"$i" = x"mod_sftp"; then
23902    if test x"$pr_use_openssl" = x ; then
23903      pr_use_openssl=yes
23904    fi
23905
23906    if test x"$pr_use_sodium" = x ; then
23907      pr_use_sodium=yes
23908    fi
23909
23910  elif test x"$i" = x"mod_sql_passwd"; then
23911    if test x"$pr_use_openssl" = x ; then
23912      pr_use_openssl=yes
23913    fi
23914
23915    if test x"$pr_use_sodium" = x ; then
23916      pr_use_sodium=yes
23917    fi
23918  fi
23919
23920  for j in $all_modules; do
23921    if test x"$i" = x"$j"; then
23922      if test x"$once" = xno; then
23923        once=yes;
23924
23925      else
23926        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23927$as_echo "yes" >&6; }
23928        as_fn_error $? "duplicate build request for $j -- aborting" "$LINENO" 5
23929      fi
23930    fi
23931  done
23932
23933      if test x"$i" = x"mod_sql_mysql"; then
23934    pr_use_mysql="yes"
23935
23936    if test x"$my_config" != xno; then
23937      if `$my_config --version 2>/dev/null 1>&2`; then
23938        # mysql_config --include gives path WITH -I prefix
23939        mysql_includes=`$my_config --include 2>/dev/null`
23940        if test ! -z "$mysql_includes"; then
23941          ac_build_addl_includes="$ac_build_addl_includes $mysql_includes"
23942        fi
23943
23944        # mysql_config --libs gives ALL options; use just the -L ones.
23945        #
23946        # Note that due to Bug#3702, we also need to look for -pthread, and
23947        # if present, add it to the LIBS list of flags.
23948
23949        mysql_libdirs=`$my_config --libs 2>/dev/null`
23950        if test ! -z "$mysql_libdirs"; then
23951          for my_libdir in $mysql_libdirs; do
23952            l=`echo -n "$my_libdir" | sed -n '/^-L/{p;}'`
23953            if test ! -z "$l"; then
23954              ac_build_addl_libdirs="$ac_build_addl_libdirs $my_libdir"
23955            fi
23956
23957            if test x"$my_libdir" = x"-pthread"; then
23958              LIBS="$LIBS -pthread"
23959            fi
23960          done
23961        fi
23962      fi
23963    fi
23964
23965  elif test x"$i" = x"mod_sql_postgres"; then
23966    pr_use_postgres="yes"
23967
23968    if test x"$pg_config" != xno; then
23969      if `$pg_config 2>/dev/null 1>&2`; then
23970        # pg_config --includedir gives path, no -I prefix
23971        pg_includes=`$pg_config --includedir 2>/dev/null`
23972        if test ! -z "$pg_includes"; then
23973          ac_build_addl_includes="$ac_build_addl_includes -I$pg_includes"
23974        fi
23975
23976        # pg_config --libdir gives path, no -L prefix
23977        pg_libdirs=`$pg_config --libdir 2>/dev/null`
23978        if test ! -z "pg_libdirs"; then
23979          ac_build_addl_libdirs="$ac_build_addl_libdirs -L$pg_libdirs"
23980        fi
23981
23982        # I suspect that we will also need to look for -pthread here
23983        # (a la Bug#3702), as a forums post about proftpd+postgres describes
23984        # the same "Alarm clock" symptom as seen with MySQL; see:
23985        #
23986        #  http://forums.proftpd.org/smf/index.php/topic,1424.0.html
23987
23988        # pg_config --libs gives libs, with -l prefixes
23989        pg_libs=`$pg_config --libs 2>/dev/null`
23990        if test ! -z "$pg_libs"; then
23991          for pg_lib in $pg_lib; do
23992            if test x"$pg_lib" = x"-pthread"; then
23993              LIBS="$LIBS -pthread"
23994            fi
23995          done
23996        fi
23997      fi
23998    fi
23999  fi
24000done
24001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24002$as_echo "no" >&6; }
24003
24004if test x"$pr_use_mysql" = xyes; then
24005    saved_cppflags="$CPPFLAGS"
24006  saved_ldflags="$LDFLAGS"
24007  saved_libs="$LIBS"
24008
24009    CPPFLAGS="$CPPFLAGS $ac_build_addl_includes"
24010  LDFLAGS="$LDFLAGS $ac_build_addl_libdirs"
24011
24012    LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24013  LIBS="$LIBS -lm -lmysqlclient -lz"
24014
24015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_get_option" >&5
24016$as_echo_n "checking for mysql_get_option... " >&6; }
24017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24018/* end confdefs.h.  */
24019 #ifdef HAVE_STDDEF_H
24020      # include <stddef.h>
24021      #endif
24022      #ifdef HAVE_STDLIB_H
24023      # include <stdlib.h>
24024      #endif
24025      #ifdef HAVE_SYS_TYPES_H
24026      # include <sys/types.h>
24027      #endif
24028      #include <mysql.h>
24029
24030int
24031main ()
24032{
24033
24034      (void) mysql_get_option(NULL, 0, NULL);
24035
24036  ;
24037  return 0;
24038}
24039_ACEOF
24040if ac_fn_c_try_link "$LINENO"; then :
24041
24042      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24043$as_echo "yes" >&6; }
24044
24045$as_echo "#define HAVE_MYSQL_GET_OPTION 1" >>confdefs.h
24046
24047
24048else
24049
24050      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24051$as_echo "no" >&6; }
24052
24053
24054fi
24055rm -f core conftest.err conftest.$ac_objext \
24056    conftest$ac_exeext conftest.$ac_ext
24057
24058
24059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL's make_scrambled_password" >&5
24060$as_echo_n "checking for MySQL's make_scrambled_password... " >&6; }
24061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24062/* end confdefs.h.  */
24063 #ifdef HAVE_STDDEF_H
24064      # include <stddef.h>
24065      #endif
24066      #ifdef HAVE_STDLIB_H
24067      # include <stdlib.h>
24068      #endif
24069      #ifdef HAVE_SYS_TYPES_H
24070      # include <sys/types.h>
24071      #endif
24072      #include <mysql.h>
24073
24074int
24075main ()
24076{
24077
24078      char output[32];
24079      char *input = NULL;
24080      (void) make_scrambled_password(output, input);
24081
24082  ;
24083  return 0;
24084}
24085_ACEOF
24086if ac_fn_c_try_link "$LINENO"; then :
24087
24088      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24089$as_echo "yes" >&6; }
24090
24091$as_echo "#define HAVE_MYSQL_MAKE_SCRAMBLED_PASSWORD 1" >>confdefs.h
24092
24093
24094else
24095
24096      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24097$as_echo "no" >&6; }
24098
24099
24100fi
24101rm -f core conftest.err conftest.$ac_objext \
24102    conftest$ac_exeext conftest.$ac_ext
24103
24104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL's make_scrambled_password_323" >&5
24105$as_echo_n "checking for MySQL's make_scrambled_password_323... " >&6; }
24106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24107/* end confdefs.h.  */
24108 #ifdef HAVE_STDDEF_H
24109      # include <stddef.h>
24110      #endif
24111      #ifdef HAVE_STDLIB_H
24112      # include <stdlib.h>
24113      #endif
24114      #ifdef HAVE_SYS_TYPES_H
24115      # include <sys/types.h>
24116      #endif
24117      #include <mysql.h>
24118
24119int
24120main ()
24121{
24122
24123      char output[32];
24124      char *input = NULL;
24125      (void) make_scrambled_password_323(output, input);
24126
24127  ;
24128  return 0;
24129}
24130_ACEOF
24131if ac_fn_c_try_link "$LINENO"; then :
24132
24133      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24134$as_echo "yes" >&6; }
24135
24136$as_echo "#define HAVE_MYSQL_MAKE_SCRAMBLED_PASSWORD_323 1" >>confdefs.h
24137
24138
24139else
24140
24141      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24142$as_echo "no" >&6; }
24143
24144
24145fi
24146rm -f core conftest.err conftest.$ac_objext \
24147    conftest$ac_exeext conftest.$ac_ext
24148
24149  # For Bug#3669 in the RedHat case, we need to check for
24150  # my_make_scrambled_password.
24151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL's my_make_scrambled_password" >&5
24152$as_echo_n "checking for MySQL's my_make_scrambled_password... " >&6; }
24153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24154/* end confdefs.h.  */
24155 #ifdef HAVE_STDDEF_H
24156      # include <stddef.h>
24157      #endif
24158      #ifdef HAVE_STDLIB_H
24159      # include <stdlib.h>
24160      #endif
24161      #ifdef HAVE_SYS_TYPES_H
24162      # include <sys/types.h>
24163      #endif
24164      #include <mysql.h>
24165
24166int
24167main ()
24168{
24169
24170      char output[32];
24171      char *input = NULL;
24172      size_t inputlen = 0;
24173      (void) my_make_scrambled_password(output, input, inputlen);
24174
24175  ;
24176  return 0;
24177}
24178_ACEOF
24179if ac_fn_c_try_link "$LINENO"; then :
24180
24181      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24182$as_echo "yes" >&6; }
24183
24184$as_echo "#define HAVE_MYSQL_MY_MAKE_SCRAMBLED_PASSWORD 1" >>confdefs.h
24185
24186
24187else
24188
24189      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24190$as_echo "no" >&6; }
24191
24192
24193fi
24194rm -f core conftest.err conftest.$ac_objext \
24195    conftest$ac_exeext conftest.$ac_ext
24196
24197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL's my_make_scrambled_password_323" >&5
24198$as_echo_n "checking for MySQL's my_make_scrambled_password_323... " >&6; }
24199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24200/* end confdefs.h.  */
24201 #ifdef HAVE_STDDEF_H
24202      # include <stddef.h>
24203      #endif
24204      #ifdef HAVE_STDLIB_H
24205      # include <stdlib.h>
24206      #endif
24207      #ifdef HAVE_SYS_TYPES_H
24208      # include <sys/types.h>
24209      #endif
24210      #include <mysql.h>
24211
24212int
24213main ()
24214{
24215
24216      char output[32];
24217      char *input = NULL;
24218      size_t inputlen = 0;
24219      (void) my_make_scrambled_password_323(output, input, inputlen);
24220
24221  ;
24222  return 0;
24223}
24224_ACEOF
24225if ac_fn_c_try_link "$LINENO"; then :
24226
24227      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24228$as_echo "yes" >&6; }
24229
24230$as_echo "#define HAVE_MYSQL_MY_MAKE_SCRAMBLED_PASSWORD_323 1" >>confdefs.h
24231
24232
24233else
24234
24235      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24236$as_echo "no" >&6; }
24237
24238
24239fi
24240rm -f core conftest.err conftest.$ac_objext \
24241    conftest$ac_exeext conftest.$ac_ext
24242
24243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL's mysql_ssl_set" >&5
24244$as_echo_n "checking for MySQL's mysql_ssl_set... " >&6; }
24245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24246/* end confdefs.h.  */
24247 #ifdef HAVE_STDDEF_H
24248      # include <stddef.h>
24249      #endif
24250      #ifdef HAVE_STDLIB_H
24251      # include <stdlib.h>
24252      #endif
24253      #ifdef HAVE_SYS_TYPES_H
24254      # include <sys/types.h>
24255      #endif
24256      #include <mysql.h>
24257
24258int
24259main ()
24260{
24261
24262      MYSQL *mysql = NULL;
24263      (void) mysql_ssl_set(mysql, NULL, NULL, NULL, NULL, NULL);
24264
24265  ;
24266  return 0;
24267}
24268_ACEOF
24269if ac_fn_c_try_link "$LINENO"; then :
24270
24271      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24272$as_echo "yes" >&6; }
24273
24274$as_echo "#define HAVE_MYSQL_MYSQL_SSL_SET 1" >>confdefs.h
24275
24276
24277else
24278
24279      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24280$as_echo "no" >&6; }
24281
24282
24283fi
24284rm -f core conftest.err conftest.$ac_objext \
24285    conftest$ac_exeext conftest.$ac_ext
24286
24287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL's mysql_get_ssl_cipher" >&5
24288$as_echo_n "checking for MySQL's mysql_get_ssl_cipher... " >&6; }
24289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24290/* end confdefs.h.  */
24291 #ifdef HAVE_STDDEF_H
24292      # include <stddef.h>
24293      #endif
24294      #ifdef HAVE_STDLIB_H
24295      # include <stdlib.h>
24296      #endif
24297      #ifdef HAVE_SYS_TYPES_H
24298      # include <sys/types.h>
24299      #endif
24300      #include <mysql.h>
24301
24302int
24303main ()
24304{
24305
24306      MYSQL *mysql = NULL;
24307      (void) mysql_get_ssl_cipher(mysql);
24308
24309  ;
24310  return 0;
24311}
24312_ACEOF
24313if ac_fn_c_try_link "$LINENO"; then :
24314
24315      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24316$as_echo "yes" >&6; }
24317
24318$as_echo "#define HAVE_MYSQL_MYSQL_GET_SSL_CIPHER 1" >>confdefs.h
24319
24320
24321else
24322
24323      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24324$as_echo "no" >&6; }
24325
24326
24327fi
24328rm -f core conftest.err conftest.$ac_objext \
24329    conftest$ac_exeext conftest.$ac_ext
24330
24331    CPPFLAGS="$saved_cppflags"
24332  LDFLAGS="$saved_ldflags"
24333  LIBS="$saved_libs"
24334fi
24335
24336if test x"$pr_use_openssl" = xyes; then
24337
24338$as_echo "#define PR_USE_OPENSSL 1" >>confdefs.h
24339
24340  ac_build_addl_libs="$ac_build_addl_libs -lssl -lcrypto"
24341
24342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL is compiled with FIPS support" >&5
24343$as_echo_n "checking whether OpenSSL is compiled with FIPS support... " >&6; }
24344  saved_libs="$LIBS"
24345
24346    LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24347  LIBS="$LIBS -lcrypto"
24348
24349  if test "$cross_compiling" = yes; then :
24350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
24351$as_echo "unknown" >&6; }
24352
24353else
24354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24355/* end confdefs.h.  */
24356
24357      #include <openssl/crypto.h>
24358      #include <openssl/fips.h>
24359      int main(int argc, char *argv[]) {
24360      # ifdef OPENSSL_FIPS
24361        return 0;
24362      # else
24363        return 1;
24364      #endif
24365      }
24366
24367_ACEOF
24368if ac_fn_c_try_run "$LINENO"; then :
24369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24370$as_echo "yes" >&6; };
24371$as_echo "#define PR_USE_OPENSSL_FIPS 1" >>confdefs.h
24372
24373else
24374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24375$as_echo "no" >&6; }
24376fi
24377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24378  conftest.$ac_objext conftest.beam conftest.$ac_ext
24379fi
24380
24381  LIBS="$saved_libs"
24382
24383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL functions succeeds" >&5
24384$as_echo_n "checking whether linking with OpenSSL functions succeeds... " >&6; }
24385  saved_libs="$LIBS"
24386
24387    LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24388  LIBS="-lcrypto $LIBS"
24389
24390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24391/* end confdefs.h.  */
24392
24393      #include <openssl/evp.h>
24394
24395int
24396main ()
24397{
24398
24399      SSLeay_add_all_algorithms();
24400
24401  ;
24402  return 0;
24403}
24404_ACEOF
24405if ac_fn_c_try_link "$LINENO"; then :
24406
24407      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24408$as_echo "yes" >&6; }
24409      LIBS="$saved_libs"
24410
24411else
24412
24413      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24414$as_echo "no" >&6; }
24415
24416      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL functions requires -ldl" >&5
24417$as_echo_n "checking whether linking with OpenSSL functions requires -ldl... " >&6; }
24418      LIBS="-lcrypto -ldl $LIBS"
24419      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24420/* end confdefs.h.  */
24421
24422          #include <openssl/evp.h>
24423
24424int
24425main ()
24426{
24427
24428          SSLeay_add_all_algorithms();
24429
24430  ;
24431  return 0;
24432}
24433_ACEOF
24434if ac_fn_c_try_link "$LINENO"; then :
24435
24436          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24437$as_echo "yes" >&6; }
24438          LIBS="$saved_libs -ldl"
24439
24440else
24441
24442          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24443$as_echo "no" >&6; }
24444          LIBS="$saved_libs"
24445
24446
24447fi
24448rm -f core conftest.err conftest.$ac_objext \
24449    conftest$ac_exeext conftest.$ac_ext
24450
24451      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL functions requires -lz" >&5
24452$as_echo_n "checking whether linking with OpenSSL functions requires -lz... " >&6; }
24453      saved_libs="$LIBS"
24454
24455            LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24456      LIBS="-lcrypto -lz $LIBS"
24457
24458      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24459/* end confdefs.h.  */
24460
24461          #include <openssl/evp.h>
24462          #include <openssl/bio.h>
24463          #include <openssl/comp.h>
24464
24465int
24466main ()
24467{
24468
24469          BIO *bio;
24470          SSLeay_add_all_algorithms();
24471          bio = BIO_new(BIO_f_zlib());
24472
24473  ;
24474  return 0;
24475}
24476_ACEOF
24477if ac_fn_c_try_link "$LINENO"; then :
24478
24479          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24480$as_echo "yes" >&6; }
24481          LIBS="$saved_libs -lz"
24482
24483else
24484
24485          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24486$as_echo "no" >&6; }
24487          LIBS="$saved_libs"
24488
24489
24490fi
24491rm -f core conftest.err conftest.$ac_objext \
24492    conftest$ac_exeext conftest.$ac_ext
24493
24494
24495fi
24496rm -f core conftest.err conftest.$ac_objext \
24497    conftest$ac_exeext conftest.$ac_ext
24498
24499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5
24500$as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; }
24501  saved_libs="$LIBS"
24502
24503    LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24504  LIBS="-lcrypto $LIBS"
24505
24506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24507/* end confdefs.h.  */
24508
24509      #include <openssl/ec.h>
24510      #include <openssl/ecdh.h>
24511      #include <openssl/ecdsa.h>
24512      #include <openssl/evp.h>
24513      #include <openssl/objects.h>
24514      #include <openssl/opensslv.h>
24515      #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
24516      # error "OpenSSL < 0.9.8g has unreliable ECC code"
24517      #endif
24518
24519int
24520main ()
24521{
24522
24523      EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
24524      const EVP_MD *m = EVP_sha512();
24525
24526  ;
24527  return 0;
24528}
24529_ACEOF
24530if ac_fn_c_try_link "$LINENO"; then :
24531
24532      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24533$as_echo "yes" >&6; }
24534
24535$as_echo "#define PR_USE_OPENSSL_ECC 1" >>confdefs.h
24536
24537
24538else
24539
24540      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24541$as_echo "no" >&6; }
24542
24543
24544fi
24545rm -f core conftest.err conftest.$ac_objext \
24546    conftest$ac_exeext conftest.$ac_ext
24547  LIBS="$saved_libs"
24548
24549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has EVP_CipherInit_ex support" >&5
24550$as_echo_n "checking whether OpenSSL has EVP_CipherInit_ex support... " >&6; }
24551  saved_libs="$LIBS"
24552
24553    LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24554  LIBS="-lcrypto $LIBS"
24555
24556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24557/* end confdefs.h.  */
24558
24559      #include <openssl/evp.h>
24560
24561int
24562main ()
24563{
24564
24565      (void) EVP_CipherInit_ex(NULL, NULL, NULL, NULL, NULL, 1);
24566
24567  ;
24568  return 0;
24569}
24570_ACEOF
24571if ac_fn_c_try_link "$LINENO"; then :
24572
24573      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24574$as_echo "yes" >&6; }
24575
24576$as_echo "#define PR_USE_OPENSSL_EVP_CIPHERINIT_EX 1" >>confdefs.h
24577
24578
24579else
24580
24581      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24582$as_echo "no" >&6; }
24583
24584
24585fi
24586rm -f core conftest.err conftest.$ac_objext \
24587    conftest$ac_exeext conftest.$ac_ext
24588  LIBS="$saved_libs"
24589
24590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has ALPN support" >&5
24591$as_echo_n "checking whether OpenSSL has ALPN support... " >&6; }
24592  saved_libs="$LIBS"
24593
24594    LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24595  LIBS="-lcrypto -lssl $LIBS"
24596
24597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24598/* end confdefs.h.  */
24599
24600      #ifdef HAVE_STDDEF_H
24601      # include <stddef.h>
24602      #endif
24603      #ifdef HAVE_STDLIB_H
24604      # include <stdlib.h>
24605      #endif
24606      #include <openssl/ssl.h>
24607
24608int
24609main ()
24610{
24611
24612      SSL_CTX *ctx = NULL;
24613      SSL_CTX_set_alpn_select_cb(ctx, NULL, NULL);
24614
24615  ;
24616  return 0;
24617}
24618_ACEOF
24619if ac_fn_c_try_link "$LINENO"; then :
24620
24621      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24622$as_echo "yes" >&6; }
24623
24624$as_echo "#define PR_USE_OPENSSL_ALPN 1" >>confdefs.h
24625
24626
24627else
24628
24629      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24630$as_echo "no" >&6; }
24631
24632
24633fi
24634rm -f core conftest.err conftest.$ac_objext \
24635    conftest$ac_exeext conftest.$ac_ext
24636  LIBS="$saved_libs"
24637
24638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NPN support" >&5
24639$as_echo_n "checking whether OpenSSL has NPN support... " >&6; }
24640  saved_libs="$LIBS"
24641
24642    LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24643  LIBS="-lcrypto -lssl $LIBS"
24644
24645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24646/* end confdefs.h.  */
24647
24648      #ifdef HAVE_STDDEF_H
24649      # include <stddef.h>
24650      #endif
24651      #ifdef HAVE_STDLIB_H
24652      # include <stdlib.h>
24653      #endif
24654      #include <openssl/ssl.h>
24655
24656int
24657main ()
24658{
24659
24660      SSL_CTX *ctx = NULL;
24661      SSL_CTX_set_next_protos_advertised_cb(ctx, NULL, NULL);
24662
24663  ;
24664  return 0;
24665}
24666_ACEOF
24667if ac_fn_c_try_link "$LINENO"; then :
24668
24669      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24670$as_echo "yes" >&6; }
24671
24672$as_echo "#define PR_USE_OPENSSL_NPN 1" >>confdefs.h
24673
24674
24675else
24676
24677      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24678$as_echo "no" >&6; }
24679
24680
24681fi
24682rm -f core conftest.err conftest.$ac_objext \
24683    conftest$ac_exeext conftest.$ac_ext
24684  LIBS="$saved_libs"
24685
24686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has OCSP support" >&5
24687$as_echo_n "checking whether OpenSSL has OCSP support... " >&6; }
24688  saved_libs="$LIBS"
24689
24690    LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24691  LIBS="-lcrypto -lssl $LIBS"
24692
24693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24694/* end confdefs.h.  */
24695
24696      #ifdef HAVE_STDDEF_H
24697      # include <stddef.h>
24698      #endif
24699      #ifdef HAVE_STDLIB_H
24700      # include <stdlib.h>
24701      #endif
24702      #include <openssl/ssl.h>
24703      #include <openssl/ocsp.h>
24704
24705int
24706main ()
24707{
24708
24709      SSL_CTX *ctx = NULL;
24710      SSL_CTX_set_tlsext_status_cb(ctx, NULL);
24711      SSL_CTX_set_tlsext_status_arg(ctx, NULL);
24712
24713  ;
24714  return 0;
24715}
24716_ACEOF
24717if ac_fn_c_try_link "$LINENO"; then :
24718
24719      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24720$as_echo "yes" >&6; }
24721
24722$as_echo "#define PR_USE_OPENSSL_OCSP 1" >>confdefs.h
24723
24724
24725else
24726
24727      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24728$as_echo "no" >&6; }
24729
24730
24731fi
24732rm -f core conftest.err conftest.$ac_objext \
24733    conftest$ac_exeext conftest.$ac_ext
24734  LIBS="$saved_libs"
24735
24736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has SSL num tickets support" >&5
24737$as_echo_n "checking whether OpenSSL has SSL num tickets support... " >&6; }
24738  saved_libs="$LIBS"
24739
24740    LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24741  LIBS="-lcrypto -lssl $LIBS"
24742
24743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24744/* end confdefs.h.  */
24745
24746      #include <openssl/ssl.h>
24747
24748int
24749main ()
24750{
24751
24752      (void) SSL_set_num_tickets(NULL, 0);
24753
24754  ;
24755  return 0;
24756}
24757_ACEOF
24758if ac_fn_c_try_link "$LINENO"; then :
24759
24760      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24761$as_echo "yes" >&6; }
24762
24763$as_echo "#define PR_USE_OPENSSL_SSL_NUM_TICKETS 1" >>confdefs.h
24764
24765
24766else
24767
24768      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24769$as_echo "no" >&6; }
24770
24771
24772fi
24773rm -f core conftest.err conftest.$ac_objext \
24774    conftest$ac_exeext conftest.$ac_ext
24775  LIBS="$saved_libs"
24776
24777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has SSL read ahead support" >&5
24778$as_echo_n "checking whether OpenSSL has SSL read ahead support... " >&6; }
24779  saved_libs="$LIBS"
24780
24781    LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24782  LIBS="-lcrypto -lssl $LIBS"
24783
24784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785/* end confdefs.h.  */
24786
24787      #include <openssl/ssl.h>
24788
24789int
24790main ()
24791{
24792
24793      (void) SSL_set_read_ahead(NULL, 1);
24794
24795  ;
24796  return 0;
24797}
24798_ACEOF
24799if ac_fn_c_try_link "$LINENO"; then :
24800
24801      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24802$as_echo "yes" >&6; }
24803
24804$as_echo "#define PR_USE_OPENSSL_SSL_READ_AHEAD 1" >>confdefs.h
24805
24806
24807else
24808
24809      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24810$as_echo "no" >&6; }
24811
24812
24813fi
24814rm -f core conftest.err conftest.$ac_objext \
24815    conftest$ac_exeext conftest.$ac_ext
24816  LIBS="$saved_libs"
24817
24818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has SSL session ID context set support" >&5
24819$as_echo_n "checking whether OpenSSL has SSL session ID context set support... " >&6; }
24820  saved_libs="$LIBS"
24821
24822    LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24823  LIBS="-lcrypto -lssl $LIBS"
24824
24825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24826/* end confdefs.h.  */
24827
24828      #include <openssl/ssl.h>
24829
24830int
24831main ()
24832{
24833
24834      (void) SSL_SESSION_set1_id_context(NULL, NULL, 0);
24835
24836  ;
24837  return 0;
24838}
24839_ACEOF
24840if ac_fn_c_try_link "$LINENO"; then :
24841
24842      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24843$as_echo "yes" >&6; }
24844
24845$as_echo "#define PR_USE_OPENSSL_SSL_SESSION_SET1_ID_CONTEXT 1" >>confdefs.h
24846
24847
24848else
24849
24850      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24851$as_echo "no" >&6; }
24852
24853
24854fi
24855rm -f core conftest.err conftest.$ac_objext \
24856    conftest$ac_exeext conftest.$ac_ext
24857  LIBS="$saved_libs"
24858
24859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has SSL session ticket callback support" >&5
24860$as_echo_n "checking whether OpenSSL has SSL session ticket callback support... " >&6; }
24861  saved_libs="$LIBS"
24862
24863    LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24864  LIBS="-lcrypto -lssl $LIBS"
24865
24866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24867/* end confdefs.h.  */
24868
24869      #include <openssl/ssl.h>
24870
24871int
24872main ()
24873{
24874
24875
24876      (void) SSL_CTX_set_session_ticket_cb(NULL, NULL, NULL, NULL);
24877
24878  ;
24879  return 0;
24880}
24881_ACEOF
24882if ac_fn_c_try_link "$LINENO"; then :
24883
24884      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24885$as_echo "yes" >&6; }
24886
24887$as_echo "#define PR_USE_OPENSSL_SSL_SESSION_TICKET_CALLBACK 1" >>confdefs.h
24888
24889
24890else
24891
24892      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24893$as_echo "no" >&6; }
24894
24895
24896fi
24897rm -f core conftest.err conftest.$ac_objext \
24898    conftest$ac_exeext conftest.$ac_ext
24899  LIBS="$saved_libs"
24900
24901  pr_use_pthread_for_openssl="no"
24902  if test x"$openssl_cmdline" != xno; then
24903    if `$openssl_cmdline version 2>/dev/null 1>&2`; then
24904      openssl_cflags=`$openssl_cmdline version -f 2>/dev/null`
24905      if test ! -z "$openssl_cflags"; then
24906        # Look for the -pthread flag, indicating that this OpenSSL was built
24907        # with threads support (see Bug#3795)
24908        for openssl_cflag in $openssl_cflags; do
24909          if test x"$openssl_cflag" = x"-pthread"; then
24910            pr_use_pthread_for_openssl="yes"
24911          fi
24912        done
24913
24914        if test x"$pr_use_pthread_for_openssl" = xno ; then
24915          # If we're on FreeBSD, AND if OpenSSL is being used, AND if
24916          # openssl version -f shows no flags, then ASSUME that we do need
24917          # the -pthread flag, to avoid regressions of Bug#3795.
24918          if test `echo $ostype | grep -c FREEBSD` != "0" ; then
24919            pr_use_pthread_for_openssl="yes"
24920          fi
24921        fi
24922      fi
24923    fi
24924  else
24925    # If we're on FreeBSD, AND if OpenSSL is being used, then ASSUME that we
24926    # do need the -pthread flag, to avoid regressions of Bug#3795.
24927    if test `echo $ostype | grep -c DFREEBSD` != "0" ; then
24928      pr_use_pthread_for_openssl="yes"
24929    fi
24930  fi
24931
24932  if test x"$pr_use_pthread_for_openssl" = xyes ; then
24933    LIBS="$LIBS -pthread"
24934  fi
24935fi
24936
24937if test x"$pr_use_postgres" = xyes; then
24938  # Check for other Postgres-specific functionality here
24939  saved_ldflags="$LDFLAGS"
24940  saved_libs="$LIBS"
24941  saved_cppflags="$CPPFLAGS"
24942
24943  # fiddle with CPPFLAGS, LDFLAGS
24944  CPPFLAGS="$CPPFLAGS $ac_build_addl_includes"
24945  LDFLAGS="$LDFLAGS $ac_build_addl_libdirs"
24946
24947    LIBS=`echo "$LIBS" | sed -e 's/-lsupp//g'`;
24948  LIBS="$LIBS -lm -lpq"
24949
24950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres's PQescapeStringConn" >&5
24951$as_echo_n "checking for Postgres's PQescapeStringConn... " >&6; }
24952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24953/* end confdefs.h.  */
24954 #ifdef HAVE_STDDEF_H
24955      # include <stddef.h>
24956      #endif
24957      #ifdef HAVE_STDLIB_H
24958      # include <stdlib.h>
24959      #endif
24960      #ifdef HAVE_SYS_TYPES_H
24961      # include <sys/types.h>
24962      #endif
24963      #include <libpq-fe.h>
24964
24965int
24966main ()
24967{
24968
24969      char *input = NULL, *output = NULL;
24970      size_t inputlen = 0;
24971      PGconn *postgres = NULL;
24972      int pgerr = 0;
24973      PQescapeStringConn(postgres, output, input, inputlen, &pgerr);
24974
24975  ;
24976  return 0;
24977}
24978_ACEOF
24979if ac_fn_c_try_link "$LINENO"; then :
24980
24981      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24982$as_echo "yes" >&6; }
24983
24984$as_echo "#define HAVE_POSTGRES_PQESCAPESTRINGCONN 1" >>confdefs.h
24985
24986
24987else
24988
24989      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24990$as_echo "no" >&6; }
24991
24992
24993fi
24994rm -f core conftest.err conftest.$ac_objext \
24995    conftest$ac_exeext conftest.$ac_ext
24996
24997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres's PQgetssl" >&5
24998$as_echo_n "checking for Postgres's PQgetssl... " >&6; }
24999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25000/* end confdefs.h.  */
25001 #ifdef HAVE_STDDEF_H
25002      # include <stddef.h>
25003      #endif
25004      #ifdef HAVE_STDLIB_H
25005      # include <stdlib.h>
25006      #endif
25007      #ifdef HAVE_SYS_TYPES_H
25008      # include <sys/types.h>
25009      #endif
25010      #include <libpq-fe.h>
25011
25012int
25013main ()
25014{
25015
25016      const PGconn *pg = NULL;
25017      (void) PQgetssl(pg);
25018
25019  ;
25020  return 0;
25021}
25022_ACEOF
25023if ac_fn_c_try_link "$LINENO"; then :
25024
25025      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25026$as_echo "yes" >&6; }
25027
25028$as_echo "#define HAVE_POSTGRES_PQGETSSL 1" >>confdefs.h
25029
25030
25031else
25032
25033      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25034$as_echo "no" >&6; }
25035
25036
25037fi
25038rm -f core conftest.err conftest.$ac_objext \
25039    conftest$ac_exeext conftest.$ac_ext
25040
25041  # restore CPPFLAGS, LDFLAGS
25042  CPPFLAGS="$saved_cppflags"
25043  LDFLAGS="$saved_ldflags"
25044
25045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres's PQinitOpenSSL" >&5
25046$as_echo_n "checking for Postgres's PQinitOpenSSL... " >&6; }
25047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25048/* end confdefs.h.  */
25049
25050      #ifdef HAVE_STDLIB_H
25051      # include <stdlib.h>
25052      #endif
25053      #ifdef HAVE_SYS_TYPES_H
25054      # include <sys/types.h>
25055      #endif
25056      #include <libpq-fe.h>
25057
25058int
25059main ()
25060{
25061
25062      int init_ssl = 0, init_crypto = 0;
25063      PQinitOpenSSL(init_ssl, init_crypto);
25064
25065  ;
25066  return 0;
25067}
25068_ACEOF
25069if ac_fn_c_try_link "$LINENO"; then :
25070
25071      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25072$as_echo "yes" >&6; }
25073
25074$as_echo "#define HAVE_POSTGRES_PQINITOPENSSL 1" >>confdefs.h
25075
25076
25077else
25078
25079      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25080$as_echo "no" >&6; }
25081
25082
25083fi
25084rm -f core conftest.err conftest.$ac_objext \
25085    conftest$ac_exeext conftest.$ac_ext
25086
25087  # restore CPPFLAGS, LDFLAGS
25088  CPPFLAGS="$saved_cppflags"
25089  LDFLAGS="$saved_ldflags"
25090  LIBS="$saved_libs"
25091fi
25092
25093if test x"$pr_use_sodium" = xyes; then
25094  ac_fn_c_check_header_mongrel "$LINENO" "sodium.h" "ac_cv_header_sodium_h" "$ac_includes_default"
25095if test "x$ac_cv_header_sodium_h" = xyes; then :
25096
25097$as_echo "#define HAVE_SODIUM_H 1" >>confdefs.h
25098
25099
25100$as_echo "#define PR_USE_SODIUM 1" >>confdefs.h
25101
25102     ac_build_addl_libs="$ac_build_addl_libs -lsodium"
25103     ac_orig_libs="$ac_orig_libs -lsodium"
25104     SHARED_MODULE_LIBS="$SHARED_MODULE_LIBS -lsodium"
25105
25106fi
25107
25108
25109fi
25110
25111for module in $ac_shared_modules ; do
25112  moduledir=`echo "$module" | sed -e 's/\.la$//'`;
25113
25114  if test -f $srcdir/modules/$src -o -f $srcdir/contrib/$src; then
25115    continue
25116
25117  elif test -d $srcdir/modules/$moduledir; then
25118    ac_shared_module_dirs="$ac_shared_module_dirs modules/$moduledir";
25119    ac_shared_modules=`echo "$ac_shared_modules" | sed -e "s/$module//"`
25120
25121  elif test -d $srcdir/contrib/$moduledir; then
25122    ac_shared_module_dirs="$ac_shared_module_dirs contrib/$moduledir";
25123    ac_shared_modules=`echo "$ac_shared_modules" | sed -e "s/$module//"`
25124  fi
25125done
25126
25127for module in $ac_static_modules ; do
25128  moduledir=`echo "$module" | sed -e 's/\.o$//'`;
25129
25130  if test -f $srcdir/modules/$src -o -f $srcdir/contrib/$src; then
25131    continue
25132
25133  elif test -d $srcdir/modules/$moduledir; then
25134    ac_static_module_dirs="$ac_static_module_dirs modules/$moduledir";
25135    ac_static_modules=`echo "$ac_static_modules" | sed -e "s/$module//"`
25136
25137  elif test -d $srcdir/contrib/$moduledir; then
25138    ac_static_module_dirs="$ac_static_module_dirs contrib/$moduledir";
25139    ac_static_modules=`echo "$ac_static_modules" | sed -e "s/$module//"`
25140
25141    addonlibs=""
25142    src=`echo "$module" | sed -e 's/\.o$//'`.c;
25143    srcinc=`echo "$module" | sed -e 's/\.o$//'`.h;
25144
25145    if test -f $srcdir/contrib/$moduledir/$src ; then
25146      srcarch=`sed -n '/.*\$Archive: \(.*\)\$.*/s//\1/p' "$srcdir/contrib/$moduledir/$src"`
25147      srclib=`sed -n '/.*\$Libraries: \(.*\)\$.*/s//\1/p' "$srcdir/contrib/$moduledir/$src"`
25148    else
25149      srcarch=
25150      srclib=
25151    fi
25152
25153    if test -f $srcdir/contrib/$moduledir/$srcinc ; then
25154      if test -z $srcarch ; then
25155        incarch=`sed -n '/.*\$Archive: \(.*\)\$.*/s//\1/p' "$srcdir/contrib/$moduledir/$srcinc"`
25156      else
25157        incarch=
25158      fi
25159
25160      inclib=`sed -n '/.*\$Libraries: \(.*\)\$.*/s//\1/p' "$srcdir/contrib/$moduledir/$srcinc"`
25161    else
25162      incarch=
25163      inclib=
25164    fi
25165
25166            for thearch in $srcarch $incarch; do
25167      archive=`echo "$thearch" | sed -e 's/\.a$//'`
25168
25169      if test x"$archive" != x"$moduledir" ; then
25170        as_fn_error $? "specified archive '$thearch' does not match expected module archive name '$moduledir.a' -- aborting" "$LINENO" 5
25171      fi
25172
25173      ac_static_modules=`echo "$ac_static_modules" | sed -e "s/$module//g"`
25174      ac_build_static_modules=`echo "$ac_build_static_modules" | sed -e "s/modules\/$module//g"`
25175      ac_build_static_module_archives="$ac_build_static_module_archives contrib/$moduledir/$thearch"
25176    done
25177
25178        for thelib in $srclib $inclib; do
25179      dup="xno"
25180
25181      for somelib in $ac_addl_libs $LIBS; do
25182        if test "$thelib" = "$somelib"; then
25183          dup="xyes"
25184          break
25185        fi
25186      done
25187
25188      if test "$dup" = x"no"; then
25189        addonlibs="$addonlibs $thelib"
25190      fi
25191    done
25192
25193    test x"$addonlibs" = x || ac_addl_libs="$addonlibs $ac_addl_libs"
25194  fi
25195done
25196
25197if test ! -z "$ac_shared_module_dirs" ; then
25198  subdirs="$subdirs $ac_shared_module_dirs"
25199
25200else
25201  ac_shared_module_dirs="\"\""
25202fi
25203
25204if test ! -z "$ac_static_module_dirs" ; then
25205  subdirs="$subdirs $ac_static_module_dirs"
25206
25207else
25208  ac_static_module_dirs="\"\""
25209fi
25210
25211for module in $ac_shared_modules; do
25212  if test x"$enable_dso" != xyes ; then
25213    as_fn_error $? "cannot build shared modules without DSO support -- aborting" "$LINENO" 5
25214  fi
25215
25216  moduledir=`echo "$module" | sed -e 's/\.la$//'`;
25217  src=`echo "$module" | sed -e 's/\.la$//'`.c;
25218  srcinc=`echo "$module" | sed -e 's/\.la$//'`.h;
25219
25220  if test -f $srcdir/modules/$src -o -f $srcdir/contrib/$src; then
25221    if test ! -e $srcdir/modules/$src; then
25222      olddir=`pwd`
25223      cd $srcdir/modules
25224      ln -s ../contrib/$src $src
25225      cd $olddir
25226    fi
25227
25228    if test ! -e $srcdir/include/$srcinc -a -f $srcdir/contrib/$srcinc ; then
25229      olddir=`pwd`
25230      cd $srcdir/include
25231      ln -s ../contrib/$srcinc $srcinc
25232      cd $olddir
25233    fi
25234
25235  elif test -d $srcdir/modules/$moduledir -o -d $srcdir/contrib/$moduledir; then
25236    continue
25237
25238  else
25239    as_fn_error $? "source file '$srcdir/modules/$src' cannot be found -- aborting" "$LINENO" 5
25240  fi
25241done
25242
25243for module in $ac_static_modules; do
25244  addonlibs=""
25245  moduledir=`echo "$module" | sed -e 's/\.o$//'`;
25246  src=`echo "$module" | sed -e 's/\.o$//'`.c;
25247  srcinc=`echo "$module" | sed -e 's/\.o$//'`.h;
25248
25249  if test -f $srcdir/modules/$src -o -f $srcdir/contrib/$src; then
25250    if test ! -e $srcdir/modules/$src; then
25251      olddir=`pwd`
25252      cd $srcdir/modules
25253      ln -s ../contrib/$src $src
25254      cd $olddir
25255    fi
25256
25257    if test ! -f $srcdir/include/$srcinc -a -f $srcdir/contrib/$srcinc ; then
25258      olddir=`pwd`
25259      cd $srcdir/include
25260      ln -s ../contrib/$srcinc $srcinc
25261      cd $olddir
25262    fi
25263
25264    srclib=`sed -n '/.*\$Libraries: \(.*\)\$.*/s//\1/p' "$srcdir/modules/$src"`
25265
25266    if test -f $srcdir/include/$srcinc ; then
25267      inclib=`sed -n '/.*\$Libraries: \(.*\)\$.*/s//\1/p' "$srcdir/include/$srcinc"`
25268    else
25269      inclib=
25270    fi
25271
25272        for thelib in $srclib $inclib; do
25273      dup="xno"
25274
25275      for somelib in $ac_addl_libs $LIBS; do
25276        if test "$thelib" = "$somelib"; then
25277          dup="xyes"
25278          break
25279        fi
25280      done
25281
25282      if test "$dup" = x"no"; then
25283        addonlibs="$addonlibs $thelib"
25284      fi
25285    done
25286
25287    test x"$addonlibs" = x || ac_addl_libs="$addonlibs $ac_addl_libs"
25288
25289  elif test -d $srcdir/modules/$moduledir -o -d $srcdir/contrib/$moduledir; then
25290    continue
25291
25292  else
25293    as_fn_error $? "source file '$srcdir/modules/$src' cannot be found -- aborting" "$LINENO" 5
25294  fi
25295done
25296
25297ac_addl_libs=`echo "$ac_addl_libs" | sed -e 's/ *\$//'`
25298ac_addl_libs=`echo "$ac_addl_libs" | sed -e 's/^ *//'`
25299test "x$ac_addl_libs" = x || ac_build_addl_libs="$ac_build_addl_libs $ac_addl_libs"
25300ac_addl_dirs=`echo "$ac_addl_dirs" | sed -e 's/ *\$//'`
25301ac_addl_dirs=`echo "$ac_addl_dirs" | sed -e 's/^ *//'`
25302ADDL_DIRS="$ac_addl_dirs"
25303
25304ADDL_CPPFLAGS="$ac_orig_cppflags"
25305
25306# Restore the original CPPFLAGS and LDFLAGS settings
25307CPPFLAGS="$ac_orig_cppflags"
25308LDFLAGS="$ac_orig_ldflags"
25309
25310INCLUDES="$ac_build_addl_includes"
25311LIBDIRS="$ac_build_addl_libdirs"
25312LIBRARIES="$ac_build_addl_libs"
25313SHARED_MODULE_DIRS="$ac_shared_module_dirs"
25314if test ! -z "$ac_shared_modules" ; then
25315  SHARED_MODULE_OBJS="$ac_shared_modules"
25316else
25317  SHARED_MODULE_OBJS="\"\""
25318fi
25319STATIC_MODULE_DIRS="$ac_static_module_dirs"
25320STATIC_MODULE_OBJS="$ac_core_modules $ac_static_modules"
25321BUILD_SHARED_MODULE_OBJS="$ac_build_shared_modules"
25322BUILD_STATIC_MODULE_ARCHIVES="$ac_build_static_module_archives"
25323BUILD_STATIC_MODULE_OBJS="$ac_build_core_modules $ac_build_static_modules"
25324SHARED_MODULE_LIBS="$ac_orig_libs"
25325
25326build_version=`cat $srcdir/include/version.h | grep "#define PROFTPD_VERSION_TEXT" | sed -e 's/^.*\"\(.*\)\"/\1/'`
25327BUILD_VERSION="$build_version"
25328RELEASE_VERSION=`echo $build_version | sed 's/rc.*$//'`
25329RC_VERSION=""
25330if test `echo $build_version | grep -c rc` != "0"; then
25331  RC_VERSION=`echo $build_version | sed 's/^.*rc/rc/'`
25332fi
25333
25334pr_saved_prefix="$prefix"
25335pr_saved_exec_prefix="$exec_prefix"
25336
25337test "x$prefix" = xNONE && prefix=$ac_default_prefix
25338test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25339
25340
25341cat >>confdefs.h <<_ACEOF
25342#define PR_CONFIG_DIR "`eval echo "${sysconfdir}"`"
25343_ACEOF
25344
25345
25346cat >>confdefs.h <<_ACEOF
25347#define PR_INCLUDE_DIR "`eval echo "${includedir}"`"
25348_ACEOF
25349
25350
25351cat >>confdefs.h <<_ACEOF
25352#define PR_LIBEXEC_DIR "`eval echo "${libexecdir}"`"
25353_ACEOF
25354
25355
25356locale_dir="`eval echo ${localedir}`"
25357locale_dir="`eval echo ${locale_dir}`"
25358
25359cat >>confdefs.h <<_ACEOF
25360#define PR_LOCALE_DIR "`eval echo "${locale_dir}"`"
25361_ACEOF
25362
25363
25364
25365cat >>confdefs.h <<_ACEOF
25366#define PR_RUN_DIR "`eval echo "${localstatedir}"`"
25367_ACEOF
25368
25369
25370cat >>confdefs.h <<_ACEOF
25371#define PR_CONFIG_FILE_PATH "`eval echo "${sysconfdir}/proftpd.conf"`"
25372_ACEOF
25373
25374
25375cat >>confdefs.h <<_ACEOF
25376#define PR_PID_FILE_PATH "`eval echo "${localstatedir}/proftpd.pid"`"
25377_ACEOF
25378
25379
25380prefix="$pr_saved_prefix"
25381exec_prefix="$pr_saved_exec_prefix"
25382
25383if test x"$pkgconfigdir" = xNONE ; then
25384  pkgconfigdir="${libdir}/pkgconfig"
25385else
25386  pkgconfigdir="${prefix}/$pkgconfigdir"
25387fi
25388
25389
25390if test x"$devel" = xyes ; then
25391
25392$as_echo "#define PR_USE_DEVEL 1" >>confdefs.h
25393
25394
25395    CFLAGS=`echo "$CFLAGS" | sed -e 's/\-O2//'`
25396  CFLAGS="$CFLAGS $pr_devel_cflags"
25397  LIBS="$LIBS $pr_devel_libs"
25398
25399  if test x"$GCC" = xyes; then
25400
25401                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wcomment" >&5
25402$as_echo_n "checking whether ${CC-cc} accepts -Wcomment... " >&6; }
25403   echo 'void f(){}' > conftest.c
25404   if test -z "`${CC-cc} -c -Wcomment conftest.c 2>&1`"; then
25405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25406$as_echo "yes" >&6; }
25407     CFLAGS="$CFLAGS -Wcomment"
25408   else
25409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25410$as_echo "no" >&6; }
25411   fi
25412   rm -fr conftest*
25413
25414    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wdangling-else" >&5
25415$as_echo_n "checking whether ${CC-cc} accepts -Wdangling-else... " >&6; }
25416   echo 'void f(){}' > conftest.c
25417   if test -z "`${CC-cc} -c -Wdangling-else conftest.c 2>&1`"; then
25418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25419$as_echo "yes" >&6; }
25420     CFLAGS="$CFLAGS -Wdangling-else"
25421   else
25422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25423$as_echo "no" >&6; }
25424   fi
25425   rm -fr conftest*
25426
25427    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wdeclaration-after-statement" >&5
25428$as_echo_n "checking whether ${CC-cc} accepts -Wdeclaration-after-statement... " >&6; }
25429   echo 'void f(){}' > conftest.c
25430   if test -z "`${CC-cc} -c -Wdeclaration-after-statement conftest.c 2>&1`"; then
25431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25432$as_echo "yes" >&6; }
25433     CFLAGS="$CFLAGS -Wdeclaration-after-statement"
25434   else
25435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25436$as_echo "no" >&6; }
25437   fi
25438   rm -fr conftest*
25439
25440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wduplicated-branches" >&5
25441$as_echo_n "checking whether ${CC-cc} accepts -Wduplicated-branches... " >&6; }
25442   echo 'void f(){}' > conftest.c
25443   if test -z "`${CC-cc} -c -Wduplicated-branches conftest.c 2>&1`"; then
25444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25445$as_echo "yes" >&6; }
25446     CFLAGS="$CFLAGS -Wduplicated-branches"
25447   else
25448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25449$as_echo "no" >&6; }
25450   fi
25451   rm -fr conftest*
25452
25453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wfloat-equal" >&5
25454$as_echo_n "checking whether ${CC-cc} accepts -Wfloat-equal... " >&6; }
25455   echo 'void f(){}' > conftest.c
25456   if test -z "`${CC-cc} -c -Wfloat-equal conftest.c 2>&1`"; then
25457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25458$as_echo "yes" >&6; }
25459     CFLAGS="$CFLAGS -Wfloat-equal"
25460   else
25461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25462$as_echo "no" >&6; }
25463   fi
25464   rm -fr conftest*
25465
25466    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wformat" >&5
25467$as_echo_n "checking whether ${CC-cc} accepts -Wformat... " >&6; }
25468   echo 'void f(){}' > conftest.c
25469   if test -z "`${CC-cc} -c -Wformat conftest.c 2>&1`"; then
25470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25471$as_echo "yes" >&6; }
25472     CFLAGS="$CFLAGS -Wformat"
25473   else
25474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25475$as_echo "no" >&6; }
25476   fi
25477   rm -fr conftest*
25478
25479    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wformat-security" >&5
25480$as_echo_n "checking whether ${CC-cc} accepts -Wformat-security... " >&6; }
25481   echo 'void f(){}' > conftest.c
25482   if test -z "`${CC-cc} -c -Wformat-security conftest.c 2>&1`"; then
25483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25484$as_echo "yes" >&6; }
25485     CFLAGS="$CFLAGS -Wformat-security"
25486   else
25487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25488$as_echo "no" >&6; }
25489   fi
25490   rm -fr conftest*
25491
25492    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wimplicit-function-declaration" >&5
25493$as_echo_n "checking whether ${CC-cc} accepts -Wimplicit-function-declaration... " >&6; }
25494   echo 'void f(){}' > conftest.c
25495   if test -z "`${CC-cc} -c -Wimplicit-function-declaration conftest.c 2>&1`"; then
25496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25497$as_echo "yes" >&6; }
25498     CFLAGS="$CFLAGS -Wimplicit-function-declaration"
25499   else
25500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25501$as_echo "no" >&6; }
25502   fi
25503   rm -fr conftest*
25504
25505    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wmaybe-uninitialized" >&5
25506$as_echo_n "checking whether ${CC-cc} accepts -Wmaybe-uninitialized... " >&6; }
25507   echo 'void f(){}' > conftest.c
25508   if test -z "`${CC-cc} -c -Wmaybe-uninitialized conftest.c 2>&1`"; then
25509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25510$as_echo "yes" >&6; }
25511     CFLAGS="$CFLAGS -Wmaybe-uninitialized"
25512   else
25513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25514$as_echo "no" >&6; }
25515   fi
25516   rm -fr conftest*
25517
25518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wmissing-braces" >&5
25519$as_echo_n "checking whether ${CC-cc} accepts -Wmissing-braces... " >&6; }
25520   echo 'void f(){}' > conftest.c
25521   if test -z "`${CC-cc} -c -Wmissing-braces conftest.c 2>&1`"; then
25522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25523$as_echo "yes" >&6; }
25524     CFLAGS="$CFLAGS -Wmissing-braces"
25525   else
25526     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25527$as_echo "no" >&6; }
25528   fi
25529   rm -fr conftest*
25530
25531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wparentheses" >&5
25532$as_echo_n "checking whether ${CC-cc} accepts -Wparentheses... " >&6; }
25533   echo 'void f(){}' > conftest.c
25534   if test -z "`${CC-cc} -c -Wparentheses conftest.c 2>&1`"; then
25535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25536$as_echo "yes" >&6; }
25537     CFLAGS="$CFLAGS -Wparentheses"
25538   else
25539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25540$as_echo "no" >&6; }
25541   fi
25542   rm -fr conftest*
25543
25544    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wpointer-to-int-cast" >&5
25545$as_echo_n "checking whether ${CC-cc} accepts -Wpointer-to-int-cast... " >&6; }
25546   echo 'void f(){}' > conftest.c
25547   if test -z "`${CC-cc} -c -Wpointer-to-int-cast conftest.c 2>&1`"; then
25548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25549$as_echo "yes" >&6; }
25550     CFLAGS="$CFLAGS -Wpointer-to-int-cast"
25551   else
25552     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25553$as_echo "no" >&6; }
25554   fi
25555   rm -fr conftest*
25556
25557    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wreturn-local-addr" >&5
25558$as_echo_n "checking whether ${CC-cc} accepts -Wreturn-local-addr... " >&6; }
25559   echo 'void f(){}' > conftest.c
25560   if test -z "`${CC-cc} -c -Wreturn-local-addr conftest.c 2>&1`"; then
25561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25562$as_echo "yes" >&6; }
25563     CFLAGS="$CFLAGS -Wreturn-local-addr"
25564   else
25565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25566$as_echo "no" >&6; }
25567   fi
25568   rm -fr conftest*
25569
25570    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wstack-protector" >&5
25571$as_echo_n "checking whether ${CC-cc} accepts -Wstack-protector... " >&6; }
25572   echo 'void f(){}' > conftest.c
25573   if test -z "`${CC-cc} -c -Wstack-protector conftest.c 2>&1`"; then
25574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25575$as_echo "yes" >&6; }
25576     CFLAGS="$CFLAGS -Wstack-protector"
25577   else
25578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25579$as_echo "no" >&6; }
25580   fi
25581   rm -fr conftest*
25582
25583    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wstrict-overflow" >&5
25584$as_echo_n "checking whether ${CC-cc} accepts -Wstrict-overflow... " >&6; }
25585   echo 'void f(){}' > conftest.c
25586   if test -z "`${CC-cc} -c -Wstrict-overflow conftest.c 2>&1`"; then
25587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25588$as_echo "yes" >&6; }
25589     CFLAGS="$CFLAGS -Wstrict-overflow"
25590   else
25591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25592$as_echo "no" >&6; }
25593   fi
25594   rm -fr conftest*
25595
25596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wswitch" >&5
25597$as_echo_n "checking whether ${CC-cc} accepts -Wswitch... " >&6; }
25598   echo 'void f(){}' > conftest.c
25599   if test -z "`${CC-cc} -c -Wswitch conftest.c 2>&1`"; then
25600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25601$as_echo "yes" >&6; }
25602     CFLAGS="$CFLAGS -Wswitch"
25603   else
25604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25605$as_echo "no" >&6; }
25606   fi
25607   rm -fr conftest*
25608
25609    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wunreachable-code" >&5
25610$as_echo_n "checking whether ${CC-cc} accepts -Wunreachable-code... " >&6; }
25611   echo 'void f(){}' > conftest.c
25612   if test -z "`${CC-cc} -c -Wunreachable-code conftest.c 2>&1`"; then
25613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25614$as_echo "yes" >&6; }
25615     CFLAGS="$CFLAGS -Wunreachable-code"
25616   else
25617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25618$as_echo "no" >&6; }
25619   fi
25620   rm -fr conftest*
25621
25622    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wunused-variable" >&5
25623$as_echo_n "checking whether ${CC-cc} accepts -Wunused-variable... " >&6; }
25624   echo 'void f(){}' > conftest.c
25625   if test -z "`${CC-cc} -c -Wunused-variable conftest.c 2>&1`"; then
25626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25627$as_echo "yes" >&6; }
25628     CFLAGS="$CFLAGS -Wunused-variable"
25629   else
25630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25631$as_echo "no" >&6; }
25632   fi
25633   rm -fr conftest*
25634
25635    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fstack-protector" >&5
25636$as_echo_n "checking whether ${CC-cc} accepts -fstack-protector... " >&6; }
25637   echo 'void f(){}' > conftest.c
25638   if test -z "`${CC-cc} -c -fstack-protector conftest.c 2>&1`"; then
25639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25640$as_echo "yes" >&6; }
25641     CFLAGS="$CFLAGS -fstack-protector"
25642   else
25643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25644$as_echo "no" >&6; }
25645   fi
25646   rm -fr conftest*
25647
25648    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fstack-protector-all" >&5
25649$as_echo_n "checking whether ${CC-cc} accepts -fstack-protector-all... " >&6; }
25650   echo 'void f(){}' > conftest.c
25651   if test -z "`${CC-cc} -c -fstack-protector-all conftest.c 2>&1`"; then
25652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25653$as_echo "yes" >&6; }
25654     CFLAGS="$CFLAGS -fstack-protector-all"
25655   else
25656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25657$as_echo "no" >&6; }
25658   fi
25659   rm -fr conftest*
25660
25661    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fno-common" >&5
25662$as_echo_n "checking whether ${CC-cc} accepts -fno-common... " >&6; }
25663   echo 'void f(){}' > conftest.c
25664   if test -z "`${CC-cc} -c -fno-common conftest.c 2>&1`"; then
25665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25666$as_echo "yes" >&6; }
25667     CFLAGS="$CFLAGS -fno-common"
25668   else
25669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25670$as_echo "no" >&6; }
25671   fi
25672   rm -fr conftest*
25673
25674  fi
25675
25676    INSTALL_STRIP=""
25677else
25678
25679  if test x"$keepsyms" = xyes ; then
25680        INSTALL_STRIP=""
25681
25682  else
25683        INSTALL_STRIP="-s"
25684  fi
25685fi
25686
25687if test "$OSTYPE" = "-DDARWIN6" -o "$OSTYPE" = "-DDARWIN7" -o "$OSTYPE" = "-DDARWIN8"; then
25688            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wno-long-double" >&5
25689$as_echo_n "checking whether ${CC-cc} accepts -Wno-long-double... " >&6; }
25690   echo 'void f(){}' > conftest.c
25691   if test -z "`${CC-cc} -c -Wno-long-double conftest.c 2>&1`"; then
25692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25693$as_echo "yes" >&6; }
25694     CFLAGS="$CFLAGS -Wno-long-double"
25695   else
25696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25697$as_echo "no" >&6; }
25698   fi
25699   rm -fr conftest*
25700
25701fi
25702
25703my_cflags="\"$CFLAGS\""
25704
25705cat >>confdefs.h <<_ACEOF
25706#define PR_BUILD_CFLAGS $my_cflags
25707_ACEOF
25708
25709my_ldflags="\"$LDFLAGS $LIBDIRS\""
25710
25711cat >>confdefs.h <<_ACEOF
25712#define PR_BUILD_LDFLAGS $my_ldflags
25713_ACEOF
25714
25715my_libs="\"$LIBRARIES $LIBS\""
25716
25717cat >>confdefs.h <<_ACEOF
25718#define PR_BUILD_LIBS $my_libs
25719_ACEOF
25720
25721
25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755ac_config_headers="$ac_config_headers config.h"
25756
25757
25758ac_config_files="$ac_config_files contrib/Makefile include/Makefile lib/Makefile locale/Makefile modules/Makefile src/Makefile src/prxs src/ftpdctl.8 src/proftpd.8 src/proftpd.conf.5 src/xferlog.5 tests/Makefile utils/Makefile utils/ftpcount.1 utils/ftpscrub.8 utils/ftpshut.8 utils/ftptop.1 utils/ftpwho.1 Makefile Make.rules"
25759
25760ac_config_commands="$ac_config_commands default"
25761
25762cat >confcache <<\_ACEOF
25763# This file is a shell script that caches the results of configure
25764# tests run on this system so they can be shared between configure
25765# scripts and configure runs, see configure's option --config-cache.
25766# It is not useful on other systems.  If it contains results you don't
25767# want to keep, you may remove or edit it.
25768#
25769# config.status only pays attention to the cache file if you give it
25770# the --recheck option to rerun configure.
25771#
25772# `ac_cv_env_foo' variables (set or unset) will be overridden when
25773# loading this file, other *unset* `ac_cv_foo' will be assigned the
25774# following values.
25775
25776_ACEOF
25777
25778# The following way of writing the cache mishandles newlines in values,
25779# but we know of no workaround that is simple, portable, and efficient.
25780# So, we kill variables containing newlines.
25781# Ultrix sh set writes to stderr and can't be redirected directly,
25782# and sets the high bit in the cache file unless we assign to the vars.
25783(
25784  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25785    eval ac_val=\$$ac_var
25786    case $ac_val in #(
25787    *${as_nl}*)
25788      case $ac_var in #(
25789      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25790$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25791      esac
25792      case $ac_var in #(
25793      _ | IFS | as_nl) ;; #(
25794      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25795      *) { eval $ac_var=; unset $ac_var;} ;;
25796      esac ;;
25797    esac
25798  done
25799
25800  (set) 2>&1 |
25801    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25802    *${as_nl}ac_space=\ *)
25803      # `set' does not quote correctly, so add quotes: double-quote
25804      # substitution turns \\\\ into \\, and sed turns \\ into \.
25805      sed -n \
25806	"s/'/'\\\\''/g;
25807	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25808      ;; #(
25809    *)
25810      # `set' quotes correctly as required by POSIX, so do not add quotes.
25811      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25812      ;;
25813    esac |
25814    sort
25815) |
25816  sed '
25817     /^ac_cv_env_/b end
25818     t clear
25819     :clear
25820     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25821     t end
25822     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25823     :end' >>confcache
25824if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25825  if test -w "$cache_file"; then
25826    if test "x$cache_file" != "x/dev/null"; then
25827      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25828$as_echo "$as_me: updating cache $cache_file" >&6;}
25829      if test ! -f "$cache_file" || test -h "$cache_file"; then
25830	cat confcache >"$cache_file"
25831      else
25832        case $cache_file in #(
25833        */* | ?:*)
25834	  mv -f confcache "$cache_file"$$ &&
25835	  mv -f "$cache_file"$$ "$cache_file" ;; #(
25836        *)
25837	  mv -f confcache "$cache_file" ;;
25838	esac
25839      fi
25840    fi
25841  else
25842    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25843$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25844  fi
25845fi
25846rm -f confcache
25847
25848test "x$prefix" = xNONE && prefix=$ac_default_prefix
25849# Let make expand exec_prefix.
25850test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25851
25852DEFS=-DHAVE_CONFIG_H
25853
25854ac_libobjs=
25855ac_ltlibobjs=
25856U=
25857for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25858  # 1. Remove the extension, and $U if already installed.
25859  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25860  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25861  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25862  #    will be set to the directory where LIBOBJS objects are built.
25863  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25864  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25865done
25866LIBOBJS=$ac_libobjs
25867
25868LTLIBOBJS=$ac_ltlibobjs
25869
25870
25871LT_CONFIG_H=config.h
25872
25873    _ltdl_libobjs=
25874    _ltdl_ltlibobjs=
25875    if test -n "$_LT_LIBOBJS"; then
25876      # Remove the extension.
25877      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
25878      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
25879        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
25880        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
25881      done
25882    fi
25883    ltdl_LIBOBJS=$_ltdl_libobjs
25884
25885    ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
25886
25887
25888
25889: "${CONFIG_STATUS=./config.status}"
25890ac_write_fail=0
25891ac_clean_files_save=$ac_clean_files
25892ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25893{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25894$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25895as_write_fail=0
25896cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25897#! $SHELL
25898# Generated by $as_me.
25899# Run this file to recreate the current configuration.
25900# Compiler output produced by configure, useful for debugging
25901# configure, is in config.log if it exists.
25902
25903debug=false
25904ac_cs_recheck=false
25905ac_cs_silent=false
25906
25907SHELL=\${CONFIG_SHELL-$SHELL}
25908export SHELL
25909_ASEOF
25910cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25911## -------------------- ##
25912## M4sh Initialization. ##
25913## -------------------- ##
25914
25915# Be more Bourne compatible
25916DUALCASE=1; export DUALCASE # for MKS sh
25917if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25918  emulate sh
25919  NULLCMD=:
25920  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25921  # is contrary to our usage.  Disable this feature.
25922  alias -g '${1+"$@"}'='"$@"'
25923  setopt NO_GLOB_SUBST
25924else
25925  case `(set -o) 2>/dev/null` in #(
25926  *posix*) :
25927    set -o posix ;; #(
25928  *) :
25929     ;;
25930esac
25931fi
25932
25933
25934as_nl='
25935'
25936export as_nl
25937# Printing a long string crashes Solaris 7 /usr/bin/printf.
25938as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25939as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25940as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25941# Prefer a ksh shell builtin over an external printf program on Solaris,
25942# but without wasting forks for bash or zsh.
25943if test -z "$BASH_VERSION$ZSH_VERSION" \
25944    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25945  as_echo='print -r --'
25946  as_echo_n='print -rn --'
25947elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25948  as_echo='printf %s\n'
25949  as_echo_n='printf %s'
25950else
25951  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25952    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25953    as_echo_n='/usr/ucb/echo -n'
25954  else
25955    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25956    as_echo_n_body='eval
25957      arg=$1;
25958      case $arg in #(
25959      *"$as_nl"*)
25960	expr "X$arg" : "X\\(.*\\)$as_nl";
25961	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25962      esac;
25963      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25964    '
25965    export as_echo_n_body
25966    as_echo_n='sh -c $as_echo_n_body as_echo'
25967  fi
25968  export as_echo_body
25969  as_echo='sh -c $as_echo_body as_echo'
25970fi
25971
25972# The user is always right.
25973if test "${PATH_SEPARATOR+set}" != set; then
25974  PATH_SEPARATOR=:
25975  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25976    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25977      PATH_SEPARATOR=';'
25978  }
25979fi
25980
25981
25982# IFS
25983# We need space, tab and new line, in precisely that order.  Quoting is
25984# there to prevent editors from complaining about space-tab.
25985# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25986# splitting by setting IFS to empty value.)
25987IFS=" ""	$as_nl"
25988
25989# Find who we are.  Look in the path if we contain no directory separator.
25990as_myself=
25991case $0 in #((
25992  *[\\/]* ) as_myself=$0 ;;
25993  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25994for as_dir in $PATH
25995do
25996  IFS=$as_save_IFS
25997  test -z "$as_dir" && as_dir=.
25998    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25999  done
26000IFS=$as_save_IFS
26001
26002     ;;
26003esac
26004# We did not find ourselves, most probably we were run as `sh COMMAND'
26005# in which case we are not to be found in the path.
26006if test "x$as_myself" = x; then
26007  as_myself=$0
26008fi
26009if test ! -f "$as_myself"; then
26010  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26011  exit 1
26012fi
26013
26014# Unset variables that we do not need and which cause bugs (e.g. in
26015# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26016# suppresses any "Segmentation fault" message there.  '((' could
26017# trigger a bug in pdksh 5.2.14.
26018for as_var in BASH_ENV ENV MAIL MAILPATH
26019do eval test x\${$as_var+set} = xset \
26020  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26021done
26022PS1='$ '
26023PS2='> '
26024PS4='+ '
26025
26026# NLS nuisances.
26027LC_ALL=C
26028export LC_ALL
26029LANGUAGE=C
26030export LANGUAGE
26031
26032# CDPATH.
26033(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26034
26035
26036# as_fn_error STATUS ERROR [LINENO LOG_FD]
26037# ----------------------------------------
26038# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26039# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26040# script with STATUS, using 1 if that was 0.
26041as_fn_error ()
26042{
26043  as_status=$1; test $as_status -eq 0 && as_status=1
26044  if test "$4"; then
26045    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26046    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26047  fi
26048  $as_echo "$as_me: error: $2" >&2
26049  as_fn_exit $as_status
26050} # as_fn_error
26051
26052
26053# as_fn_set_status STATUS
26054# -----------------------
26055# Set $? to STATUS, without forking.
26056as_fn_set_status ()
26057{
26058  return $1
26059} # as_fn_set_status
26060
26061# as_fn_exit STATUS
26062# -----------------
26063# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26064as_fn_exit ()
26065{
26066  set +e
26067  as_fn_set_status $1
26068  exit $1
26069} # as_fn_exit
26070
26071# as_fn_unset VAR
26072# ---------------
26073# Portably unset VAR.
26074as_fn_unset ()
26075{
26076  { eval $1=; unset $1;}
26077}
26078as_unset=as_fn_unset
26079# as_fn_append VAR VALUE
26080# ----------------------
26081# Append the text in VALUE to the end of the definition contained in VAR. Take
26082# advantage of any shell optimizations that allow amortized linear growth over
26083# repeated appends, instead of the typical quadratic growth present in naive
26084# implementations.
26085if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26086  eval 'as_fn_append ()
26087  {
26088    eval $1+=\$2
26089  }'
26090else
26091  as_fn_append ()
26092  {
26093    eval $1=\$$1\$2
26094  }
26095fi # as_fn_append
26096
26097# as_fn_arith ARG...
26098# ------------------
26099# Perform arithmetic evaluation on the ARGs, and store the result in the
26100# global $as_val. Take advantage of shells that can avoid forks. The arguments
26101# must be portable across $(()) and expr.
26102if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26103  eval 'as_fn_arith ()
26104  {
26105    as_val=$(( $* ))
26106  }'
26107else
26108  as_fn_arith ()
26109  {
26110    as_val=`expr "$@" || test $? -eq 1`
26111  }
26112fi # as_fn_arith
26113
26114
26115if expr a : '\(a\)' >/dev/null 2>&1 &&
26116   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26117  as_expr=expr
26118else
26119  as_expr=false
26120fi
26121
26122if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26123  as_basename=basename
26124else
26125  as_basename=false
26126fi
26127
26128if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26129  as_dirname=dirname
26130else
26131  as_dirname=false
26132fi
26133
26134as_me=`$as_basename -- "$0" ||
26135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26136	 X"$0" : 'X\(//\)$' \| \
26137	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26138$as_echo X/"$0" |
26139    sed '/^.*\/\([^/][^/]*\)\/*$/{
26140	    s//\1/
26141	    q
26142	  }
26143	  /^X\/\(\/\/\)$/{
26144	    s//\1/
26145	    q
26146	  }
26147	  /^X\/\(\/\).*/{
26148	    s//\1/
26149	    q
26150	  }
26151	  s/.*/./; q'`
26152
26153# Avoid depending upon Character Ranges.
26154as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26155as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26156as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26157as_cr_digits='0123456789'
26158as_cr_alnum=$as_cr_Letters$as_cr_digits
26159
26160ECHO_C= ECHO_N= ECHO_T=
26161case `echo -n x` in #(((((
26162-n*)
26163  case `echo 'xy\c'` in
26164  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
26165  xy)  ECHO_C='\c';;
26166  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26167       ECHO_T='	';;
26168  esac;;
26169*)
26170  ECHO_N='-n';;
26171esac
26172
26173rm -f conf$$ conf$$.exe conf$$.file
26174if test -d conf$$.dir; then
26175  rm -f conf$$.dir/conf$$.file
26176else
26177  rm -f conf$$.dir
26178  mkdir conf$$.dir 2>/dev/null
26179fi
26180if (echo >conf$$.file) 2>/dev/null; then
26181  if ln -s conf$$.file conf$$ 2>/dev/null; then
26182    as_ln_s='ln -s'
26183    # ... but there are two gotchas:
26184    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26185    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26186    # In both cases, we have to default to `cp -pR'.
26187    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26188      as_ln_s='cp -pR'
26189  elif ln conf$$.file conf$$ 2>/dev/null; then
26190    as_ln_s=ln
26191  else
26192    as_ln_s='cp -pR'
26193  fi
26194else
26195  as_ln_s='cp -pR'
26196fi
26197rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26198rmdir conf$$.dir 2>/dev/null
26199
26200
26201# as_fn_mkdir_p
26202# -------------
26203# Create "$as_dir" as a directory, including parents if necessary.
26204as_fn_mkdir_p ()
26205{
26206
26207  case $as_dir in #(
26208  -*) as_dir=./$as_dir;;
26209  esac
26210  test -d "$as_dir" || eval $as_mkdir_p || {
26211    as_dirs=
26212    while :; do
26213      case $as_dir in #(
26214      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26215      *) as_qdir=$as_dir;;
26216      esac
26217      as_dirs="'$as_qdir' $as_dirs"
26218      as_dir=`$as_dirname -- "$as_dir" ||
26219$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26220	 X"$as_dir" : 'X\(//\)[^/]' \| \
26221	 X"$as_dir" : 'X\(//\)$' \| \
26222	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26223$as_echo X"$as_dir" |
26224    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26225	    s//\1/
26226	    q
26227	  }
26228	  /^X\(\/\/\)[^/].*/{
26229	    s//\1/
26230	    q
26231	  }
26232	  /^X\(\/\/\)$/{
26233	    s//\1/
26234	    q
26235	  }
26236	  /^X\(\/\).*/{
26237	    s//\1/
26238	    q
26239	  }
26240	  s/.*/./; q'`
26241      test -d "$as_dir" && break
26242    done
26243    test -z "$as_dirs" || eval "mkdir $as_dirs"
26244  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26245
26246
26247} # as_fn_mkdir_p
26248if mkdir -p . 2>/dev/null; then
26249  as_mkdir_p='mkdir -p "$as_dir"'
26250else
26251  test -d ./-p && rmdir ./-p
26252  as_mkdir_p=false
26253fi
26254
26255
26256# as_fn_executable_p FILE
26257# -----------------------
26258# Test if FILE is an executable regular file.
26259as_fn_executable_p ()
26260{
26261  test -f "$1" && test -x "$1"
26262} # as_fn_executable_p
26263as_test_x='test -x'
26264as_executable_p=as_fn_executable_p
26265
26266# Sed expression to map a string onto a valid CPP name.
26267as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26268
26269# Sed expression to map a string onto a valid variable name.
26270as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26271
26272
26273exec 6>&1
26274## ----------------------------------- ##
26275## Main body of $CONFIG_STATUS script. ##
26276## ----------------------------------- ##
26277_ASEOF
26278test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26279
26280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26281# Save the log message, to keep $0 and so on meaningful, and to
26282# report actual input values of CONFIG_FILES etc. instead of their
26283# values after options handling.
26284ac_log="
26285This file was extended by $as_me, which was
26286generated by GNU Autoconf 2.69.  Invocation command line was
26287
26288  CONFIG_FILES    = $CONFIG_FILES
26289  CONFIG_HEADERS  = $CONFIG_HEADERS
26290  CONFIG_LINKS    = $CONFIG_LINKS
26291  CONFIG_COMMANDS = $CONFIG_COMMANDS
26292  $ $0 $@
26293
26294on `(hostname || uname -n) 2>/dev/null | sed 1q`
26295"
26296
26297_ACEOF
26298
26299case $ac_config_files in *"
26300"*) set x $ac_config_files; shift; ac_config_files=$*;;
26301esac
26302
26303case $ac_config_headers in *"
26304"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26305esac
26306
26307
26308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26309# Files that config.status was made for.
26310config_files="$ac_config_files"
26311config_headers="$ac_config_headers"
26312config_commands="$ac_config_commands"
26313
26314_ACEOF
26315
26316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26317ac_cs_usage="\
26318\`$as_me' instantiates files and other configuration actions
26319from templates according to the current configuration.  Unless the files
26320and actions are specified as TAGs, all are instantiated by default.
26321
26322Usage: $0 [OPTION]... [TAG]...
26323
26324  -h, --help       print this help, then exit
26325  -V, --version    print version number and configuration settings, then exit
26326      --config     print configuration, then exit
26327  -q, --quiet, --silent
26328                   do not print progress messages
26329  -d, --debug      don't remove temporary files
26330      --recheck    update $as_me by reconfiguring in the same conditions
26331      --file=FILE[:TEMPLATE]
26332                   instantiate the configuration file FILE
26333      --header=FILE[:TEMPLATE]
26334                   instantiate the configuration header FILE
26335
26336Configuration files:
26337$config_files
26338
26339Configuration headers:
26340$config_headers
26341
26342Configuration commands:
26343$config_commands
26344
26345Report bugs to the package provider."
26346
26347_ACEOF
26348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26349ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26350ac_cs_version="\\
26351config.status
26352configured by $0, generated by GNU Autoconf 2.69,
26353  with options \\"\$ac_cs_config\\"
26354
26355Copyright (C) 2012 Free Software Foundation, Inc.
26356This config.status script is free software; the Free Software Foundation
26357gives unlimited permission to copy, distribute and modify it."
26358
26359ac_pwd='$ac_pwd'
26360srcdir='$srcdir'
26361INSTALL='$INSTALL'
26362test -n "\$AWK" || AWK=awk
26363_ACEOF
26364
26365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26366# The default lists apply if the user does not specify any file.
26367ac_need_defaults=:
26368while test $# != 0
26369do
26370  case $1 in
26371  --*=?*)
26372    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26373    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26374    ac_shift=:
26375    ;;
26376  --*=)
26377    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26378    ac_optarg=
26379    ac_shift=:
26380    ;;
26381  *)
26382    ac_option=$1
26383    ac_optarg=$2
26384    ac_shift=shift
26385    ;;
26386  esac
26387
26388  case $ac_option in
26389  # Handling of the options.
26390  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26391    ac_cs_recheck=: ;;
26392  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26393    $as_echo "$ac_cs_version"; exit ;;
26394  --config | --confi | --conf | --con | --co | --c )
26395    $as_echo "$ac_cs_config"; exit ;;
26396  --debug | --debu | --deb | --de | --d | -d )
26397    debug=: ;;
26398  --file | --fil | --fi | --f )
26399    $ac_shift
26400    case $ac_optarg in
26401    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26402    '') as_fn_error $? "missing file argument" ;;
26403    esac
26404    as_fn_append CONFIG_FILES " '$ac_optarg'"
26405    ac_need_defaults=false;;
26406  --header | --heade | --head | --hea )
26407    $ac_shift
26408    case $ac_optarg in
26409    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26410    esac
26411    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26412    ac_need_defaults=false;;
26413  --he | --h)
26414    # Conflict between --help and --header
26415    as_fn_error $? "ambiguous option: \`$1'
26416Try \`$0 --help' for more information.";;
26417  --help | --hel | -h )
26418    $as_echo "$ac_cs_usage"; exit ;;
26419  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26420  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26421    ac_cs_silent=: ;;
26422
26423  # This is an error.
26424  -*) as_fn_error $? "unrecognized option: \`$1'
26425Try \`$0 --help' for more information." ;;
26426
26427  *) as_fn_append ac_config_targets " $1"
26428     ac_need_defaults=false ;;
26429
26430  esac
26431  shift
26432done
26433
26434ac_configure_extra_args=
26435
26436if $ac_cs_silent; then
26437  exec 6>/dev/null
26438  ac_configure_extra_args="$ac_configure_extra_args --silent"
26439fi
26440
26441_ACEOF
26442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26443if \$ac_cs_recheck; then
26444  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26445  shift
26446  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26447  CONFIG_SHELL='$SHELL'
26448  export CONFIG_SHELL
26449  exec "\$@"
26450fi
26451
26452_ACEOF
26453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26454exec 5>>config.log
26455{
26456  echo
26457  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26458## Running $as_me. ##
26459_ASBOX
26460  $as_echo "$ac_log"
26461} >&5
26462
26463_ACEOF
26464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26465#
26466# INIT-COMMANDS
26467#
26468
26469
26470# The HP-UX ksh and POSIX shell print the target directory to stdout
26471# if CDPATH is set.
26472(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26473
26474sed_quote_subst='$sed_quote_subst'
26475double_quote_subst='$double_quote_subst'
26476delay_variable_subst='$delay_variable_subst'
26477macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
26478macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
26479enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
26480enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
26481pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
26482enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
26483host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
26484host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
26485host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
26486build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
26487build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
26488build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
26489SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
26490Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
26491GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
26492EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
26493FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
26494LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
26495NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
26496LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
26497max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
26498ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
26499exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
26500lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
26501lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
26502lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
26503reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
26504reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26505OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
26506deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
26507file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
26508AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
26509AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26510STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
26511RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
26512old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26513old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26514old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26515CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
26516CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26517compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
26518GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
26519lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
26520lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
26521lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
26522lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26523objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
26524SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
26525ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
26526MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
26527lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
26528lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
26529lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
26530lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
26531lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
26532need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
26533DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
26534NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
26535LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
26536OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
26537OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
26538libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
26539shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26540extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26541archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
26542enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
26543export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26544whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26545compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
26546old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26547old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26548archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26549archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26550module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26551module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26552with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
26553allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26554no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26555hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26556hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
26557hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
26558hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
26559hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
26560hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
26561hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26562hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
26563inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
26564link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
26565fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
26566always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
26567export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26568exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26569include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26570prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26571file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
26572variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
26573need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26574need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
26575version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
26576runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26577shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26578shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
26579libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26580library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
26581soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26582postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26583postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26584finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26585finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
26586hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
26587sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26588sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26589hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
26590enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
26591enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
26592enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
26593old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
26594striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
26595compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
26596predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
26597postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
26598predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
26599postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
26600compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
26601LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26602old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26603compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26604GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26605lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26606lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26607lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26608lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26609lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26610archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26611enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26612export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26613whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26614compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26615old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26616old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26617archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26618archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26619module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26620module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26621with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26622allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26623no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26624hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26625hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26626hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26627hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26628hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26629hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26630hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26631hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26632inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26633link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26634fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26635always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26636export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26637exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26638include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26639prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26640file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26641hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26642compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26643predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26644postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26645predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26646postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26647compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26648
26649LTCC='$LTCC'
26650LTCFLAGS='$LTCFLAGS'
26651compiler='$compiler_DEFAULT'
26652
26653# Quote evaled strings.
26654for var in SED \
26655GREP \
26656EGREP \
26657FGREP \
26658LD \
26659NM \
26660LN_S \
26661lt_SP2NL \
26662lt_NL2SP \
26663reload_flag \
26664OBJDUMP \
26665deplibs_check_method \
26666file_magic_cmd \
26667AR \
26668AR_FLAGS \
26669STRIP \
26670RANLIB \
26671CC \
26672CFLAGS \
26673compiler \
26674lt_cv_sys_global_symbol_pipe \
26675lt_cv_sys_global_symbol_to_cdecl \
26676lt_cv_sys_global_symbol_to_c_name_address \
26677lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26678SHELL \
26679ECHO \
26680lt_prog_compiler_no_builtin_flag \
26681lt_prog_compiler_wl \
26682lt_prog_compiler_pic \
26683lt_prog_compiler_static \
26684lt_cv_prog_compiler_c_o \
26685need_locks \
26686DSYMUTIL \
26687NMEDIT \
26688LIPO \
26689OTOOL \
26690OTOOL64 \
26691shrext_cmds \
26692export_dynamic_flag_spec \
26693whole_archive_flag_spec \
26694compiler_needs_object \
26695with_gnu_ld \
26696allow_undefined_flag \
26697no_undefined_flag \
26698hardcode_libdir_flag_spec \
26699hardcode_libdir_flag_spec_ld \
26700hardcode_libdir_separator \
26701fix_srcfile_path \
26702exclude_expsyms \
26703include_expsyms \
26704file_list_spec \
26705variables_saved_for_relink \
26706libname_spec \
26707library_names_spec \
26708soname_spec \
26709finish_eval \
26710old_striplib \
26711striplib \
26712compiler_lib_search_dirs \
26713predep_objects \
26714postdep_objects \
26715predeps \
26716postdeps \
26717compiler_lib_search_path \
26718LD_CXX \
26719compiler_CXX \
26720lt_prog_compiler_no_builtin_flag_CXX \
26721lt_prog_compiler_wl_CXX \
26722lt_prog_compiler_pic_CXX \
26723lt_prog_compiler_static_CXX \
26724lt_cv_prog_compiler_c_o_CXX \
26725export_dynamic_flag_spec_CXX \
26726whole_archive_flag_spec_CXX \
26727compiler_needs_object_CXX \
26728with_gnu_ld_CXX \
26729allow_undefined_flag_CXX \
26730no_undefined_flag_CXX \
26731hardcode_libdir_flag_spec_CXX \
26732hardcode_libdir_flag_spec_ld_CXX \
26733hardcode_libdir_separator_CXX \
26734fix_srcfile_path_CXX \
26735exclude_expsyms_CXX \
26736include_expsyms_CXX \
26737file_list_spec_CXX \
26738compiler_lib_search_dirs_CXX \
26739predep_objects_CXX \
26740postdep_objects_CXX \
26741predeps_CXX \
26742postdeps_CXX \
26743compiler_lib_search_path_CXX; do
26744    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26745    *[\\\\\\\`\\"\\\$]*)
26746      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26747      ;;
26748    *)
26749      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26750      ;;
26751    esac
26752done
26753
26754# Double-quote double-evaled strings.
26755for var in reload_cmds \
26756old_postinstall_cmds \
26757old_postuninstall_cmds \
26758old_archive_cmds \
26759extract_expsyms_cmds \
26760old_archive_from_new_cmds \
26761old_archive_from_expsyms_cmds \
26762archive_cmds \
26763archive_expsym_cmds \
26764module_cmds \
26765module_expsym_cmds \
26766export_symbols_cmds \
26767prelink_cmds \
26768postinstall_cmds \
26769postuninstall_cmds \
26770finish_cmds \
26771sys_lib_search_path_spec \
26772sys_lib_dlsearch_path_spec \
26773old_archive_cmds_CXX \
26774old_archive_from_new_cmds_CXX \
26775old_archive_from_expsyms_cmds_CXX \
26776archive_cmds_CXX \
26777archive_expsym_cmds_CXX \
26778module_cmds_CXX \
26779module_expsym_cmds_CXX \
26780export_symbols_cmds_CXX \
26781prelink_cmds_CXX; do
26782    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26783    *[\\\\\\\`\\"\\\$]*)
26784      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26785      ;;
26786    *)
26787      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26788      ;;
26789    esac
26790done
26791
26792# Fix-up fallback echo if it was mangled by the above quoting rules.
26793case \$lt_ECHO in
26794*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
26795  ;;
26796esac
26797
26798ac_aux_dir='$ac_aux_dir'
26799xsi_shell='$xsi_shell'
26800lt_shell_append='$lt_shell_append'
26801
26802# See if we are running on zsh, and set the options which allow our
26803# commands through without removal of \ escapes INIT.
26804if test -n "\${ZSH_VERSION+set}" ; then
26805   setopt NO_GLOB_SUBST
26806fi
26807
26808
26809    PACKAGE='$PACKAGE'
26810    VERSION='$VERSION'
26811    TIMESTAMP='$TIMESTAMP'
26812    RM='$RM'
26813    ofile='$ofile'
26814
26815
26816
26817
26818
26819
26820_ACEOF
26821
26822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26823
26824# Handling of arguments.
26825for ac_config_target in $ac_config_targets
26826do
26827  case $ac_config_target in
26828    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26829    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26830    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
26831    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26832    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26833    "locale/Makefile") CONFIG_FILES="$CONFIG_FILES locale/Makefile" ;;
26834    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
26835    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26836    "src/prxs") CONFIG_FILES="$CONFIG_FILES src/prxs" ;;
26837    "src/ftpdctl.8") CONFIG_FILES="$CONFIG_FILES src/ftpdctl.8" ;;
26838    "src/proftpd.8") CONFIG_FILES="$CONFIG_FILES src/proftpd.8" ;;
26839    "src/proftpd.conf.5") CONFIG_FILES="$CONFIG_FILES src/proftpd.conf.5" ;;
26840    "src/xferlog.5") CONFIG_FILES="$CONFIG_FILES src/xferlog.5" ;;
26841    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
26842    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
26843    "utils/ftpcount.1") CONFIG_FILES="$CONFIG_FILES utils/ftpcount.1" ;;
26844    "utils/ftpscrub.8") CONFIG_FILES="$CONFIG_FILES utils/ftpscrub.8" ;;
26845    "utils/ftpshut.8") CONFIG_FILES="$CONFIG_FILES utils/ftpshut.8" ;;
26846    "utils/ftptop.1") CONFIG_FILES="$CONFIG_FILES utils/ftptop.1" ;;
26847    "utils/ftpwho.1") CONFIG_FILES="$CONFIG_FILES utils/ftpwho.1" ;;
26848    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26849    "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
26850    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26851
26852  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26853  esac
26854done
26855
26856
26857# If the user did not use the arguments to specify the items to instantiate,
26858# then the envvar interface is used.  Set only those that are not.
26859# We use the long form for the default assignment because of an extremely
26860# bizarre bug on SunOS 4.1.3.
26861if $ac_need_defaults; then
26862  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26863  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26864  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26865fi
26866
26867# Have a temporary directory for convenience.  Make it in the build tree
26868# simply because there is no reason against having it here, and in addition,
26869# creating and moving files from /tmp can sometimes cause problems.
26870# Hook for its removal unless debugging.
26871# Note that there is a small window in which the directory will not be cleaned:
26872# after its creation but before its name has been assigned to `$tmp'.
26873$debug ||
26874{
26875  tmp= ac_tmp=
26876  trap 'exit_status=$?
26877  : "${ac_tmp:=$tmp}"
26878  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26879' 0
26880  trap 'as_fn_exit 1' 1 2 13 15
26881}
26882# Create a (secure) tmp directory for tmp files.
26883
26884{
26885  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26886  test -d "$tmp"
26887}  ||
26888{
26889  tmp=./conf$$-$RANDOM
26890  (umask 077 && mkdir "$tmp")
26891} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26892ac_tmp=$tmp
26893
26894# Set up the scripts for CONFIG_FILES section.
26895# No need to generate them if there are no CONFIG_FILES.
26896# This happens for instance with `./config.status config.h'.
26897if test -n "$CONFIG_FILES"; then
26898
26899
26900ac_cr=`echo X | tr X '\015'`
26901# On cygwin, bash can eat \r inside `` if the user requested igncr.
26902# But we know of no other shell where ac_cr would be empty at this
26903# point, so we can use a bashism as a fallback.
26904if test "x$ac_cr" = x; then
26905  eval ac_cr=\$\'\\r\'
26906fi
26907ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26908if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26909  ac_cs_awk_cr='\\r'
26910else
26911  ac_cs_awk_cr=$ac_cr
26912fi
26913
26914echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26915_ACEOF
26916
26917
26918{
26919  echo "cat >conf$$subs.awk <<_ACEOF" &&
26920  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26921  echo "_ACEOF"
26922} >conf$$subs.sh ||
26923  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26924ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26925ac_delim='%!_!# '
26926for ac_last_try in false false false false false :; do
26927  . ./conf$$subs.sh ||
26928    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26929
26930  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26931  if test $ac_delim_n = $ac_delim_num; then
26932    break
26933  elif $ac_last_try; then
26934    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26935  else
26936    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26937  fi
26938done
26939rm -f conf$$subs.sh
26940
26941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26942cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26943_ACEOF
26944sed -n '
26945h
26946s/^/S["/; s/!.*/"]=/
26947p
26948g
26949s/^[^!]*!//
26950:repl
26951t repl
26952s/'"$ac_delim"'$//
26953t delim
26954:nl
26955h
26956s/\(.\{148\}\)..*/\1/
26957t more1
26958s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26959p
26960n
26961b repl
26962:more1
26963s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26964p
26965g
26966s/.\{148\}//
26967t nl
26968:delim
26969h
26970s/\(.\{148\}\)..*/\1/
26971t more2
26972s/["\\]/\\&/g; s/^/"/; s/$/"/
26973p
26974b
26975:more2
26976s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26977p
26978g
26979s/.\{148\}//
26980t delim
26981' <conf$$subs.awk | sed '
26982/^[^""]/{
26983  N
26984  s/\n//
26985}
26986' >>$CONFIG_STATUS || ac_write_fail=1
26987rm -f conf$$subs.awk
26988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26989_ACAWK
26990cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26991  for (key in S) S_is_set[key] = 1
26992  FS = ""
26993
26994}
26995{
26996  line = $ 0
26997  nfields = split(line, field, "@")
26998  substed = 0
26999  len = length(field[1])
27000  for (i = 2; i < nfields; i++) {
27001    key = field[i]
27002    keylen = length(key)
27003    if (S_is_set[key]) {
27004      value = S[key]
27005      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27006      len += length(value) + length(field[++i])
27007      substed = 1
27008    } else
27009      len += 1 + keylen
27010  }
27011
27012  print line
27013}
27014
27015_ACAWK
27016_ACEOF
27017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27018if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27019  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27020else
27021  cat
27022fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27023  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27024_ACEOF
27025
27026# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27027# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27028# trailing colons and then remove the whole line if VPATH becomes empty
27029# (actually we leave an empty line to preserve line numbers).
27030if test "x$srcdir" = x.; then
27031  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
27032h
27033s///
27034s/^/:/
27035s/[	 ]*$/:/
27036s/:\$(srcdir):/:/g
27037s/:\${srcdir}:/:/g
27038s/:@srcdir@:/:/g
27039s/^:*//
27040s/:*$//
27041x
27042s/\(=[	 ]*\).*/\1/
27043G
27044s/\n//
27045s/^[^=]*=[	 ]*$//
27046}'
27047fi
27048
27049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27050fi # test -n "$CONFIG_FILES"
27051
27052# Set up the scripts for CONFIG_HEADERS section.
27053# No need to generate them if there are no CONFIG_HEADERS.
27054# This happens for instance with `./config.status Makefile'.
27055if test -n "$CONFIG_HEADERS"; then
27056cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27057BEGIN {
27058_ACEOF
27059
27060# Transform confdefs.h into an awk script `defines.awk', embedded as
27061# here-document in config.status, that substitutes the proper values into
27062# config.h.in to produce config.h.
27063
27064# Create a delimiter string that does not exist in confdefs.h, to ease
27065# handling of long lines.
27066ac_delim='%!_!# '
27067for ac_last_try in false false :; do
27068  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27069  if test -z "$ac_tt"; then
27070    break
27071  elif $ac_last_try; then
27072    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27073  else
27074    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27075  fi
27076done
27077
27078# For the awk script, D is an array of macro values keyed by name,
27079# likewise P contains macro parameters if any.  Preserve backslash
27080# newline sequences.
27081
27082ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27083sed -n '
27084s/.\{148\}/&'"$ac_delim"'/g
27085t rset
27086:rset
27087s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
27088t def
27089d
27090:def
27091s/\\$//
27092t bsnl
27093s/["\\]/\\&/g
27094s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27095D["\1"]=" \3"/p
27096s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
27097d
27098:bsnl
27099s/["\\]/\\&/g
27100s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27101D["\1"]=" \3\\\\\\n"\\/p
27102t cont
27103s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27104t cont
27105d
27106:cont
27107n
27108s/.\{148\}/&'"$ac_delim"'/g
27109t clear
27110:clear
27111s/\\$//
27112t bsnlc
27113s/["\\]/\\&/g; s/^/"/; s/$/"/p
27114d
27115:bsnlc
27116s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27117b cont
27118' <confdefs.h | sed '
27119s/'"$ac_delim"'/"\\\
27120"/g' >>$CONFIG_STATUS || ac_write_fail=1
27121
27122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27123  for (key in D) D_is_set[key] = 1
27124  FS = ""
27125}
27126/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27127  line = \$ 0
27128  split(line, arg, " ")
27129  if (arg[1] == "#") {
27130    defundef = arg[2]
27131    mac1 = arg[3]
27132  } else {
27133    defundef = substr(arg[1], 2)
27134    mac1 = arg[2]
27135  }
27136  split(mac1, mac2, "(") #)
27137  macro = mac2[1]
27138  prefix = substr(line, 1, index(line, defundef) - 1)
27139  if (D_is_set[macro]) {
27140    # Preserve the white space surrounding the "#".
27141    print prefix "define", macro P[macro] D[macro]
27142    next
27143  } else {
27144    # Replace #undef with comments.  This is necessary, for example,
27145    # in the case of _POSIX_SOURCE, which is predefined and required
27146    # on some systems where configure will not decide to define it.
27147    if (defundef == "undef") {
27148      print "/*", prefix defundef, macro, "*/"
27149      next
27150    }
27151  }
27152}
27153{ print }
27154_ACAWK
27155_ACEOF
27156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27157  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27158fi # test -n "$CONFIG_HEADERS"
27159
27160
27161eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27162shift
27163for ac_tag
27164do
27165  case $ac_tag in
27166  :[FHLC]) ac_mode=$ac_tag; continue;;
27167  esac
27168  case $ac_mode$ac_tag in
27169  :[FHL]*:*);;
27170  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27171  :[FH]-) ac_tag=-:-;;
27172  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27173  esac
27174  ac_save_IFS=$IFS
27175  IFS=:
27176  set x $ac_tag
27177  IFS=$ac_save_IFS
27178  shift
27179  ac_file=$1
27180  shift
27181
27182  case $ac_mode in
27183  :L) ac_source=$1;;
27184  :[FH])
27185    ac_file_inputs=
27186    for ac_f
27187    do
27188      case $ac_f in
27189      -) ac_f="$ac_tmp/stdin";;
27190      *) # Look for the file first in the build tree, then in the source tree
27191	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
27192	 # because $ac_f cannot contain `:'.
27193	 test -f "$ac_f" ||
27194	   case $ac_f in
27195	   [\\/$]*) false;;
27196	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27197	   esac ||
27198	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27199      esac
27200      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27201      as_fn_append ac_file_inputs " '$ac_f'"
27202    done
27203
27204    # Let's still pretend it is `configure' which instantiates (i.e., don't
27205    # use $as_me), people would be surprised to read:
27206    #    /* config.h.  Generated by config.status.  */
27207    configure_input='Generated from '`
27208	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27209	`' by configure.'
27210    if test x"$ac_file" != x-; then
27211      configure_input="$ac_file.  $configure_input"
27212      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27213$as_echo "$as_me: creating $ac_file" >&6;}
27214    fi
27215    # Neutralize special characters interpreted by sed in replacement strings.
27216    case $configure_input in #(
27217    *\&* | *\|* | *\\* )
27218       ac_sed_conf_input=`$as_echo "$configure_input" |
27219       sed 's/[\\\\&|]/\\\\&/g'`;; #(
27220    *) ac_sed_conf_input=$configure_input;;
27221    esac
27222
27223    case $ac_tag in
27224    *:-:* | *:-) cat >"$ac_tmp/stdin" \
27225      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27226    esac
27227    ;;
27228  esac
27229
27230  ac_dir=`$as_dirname -- "$ac_file" ||
27231$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27232	 X"$ac_file" : 'X\(//\)[^/]' \| \
27233	 X"$ac_file" : 'X\(//\)$' \| \
27234	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27235$as_echo X"$ac_file" |
27236    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27237	    s//\1/
27238	    q
27239	  }
27240	  /^X\(\/\/\)[^/].*/{
27241	    s//\1/
27242	    q
27243	  }
27244	  /^X\(\/\/\)$/{
27245	    s//\1/
27246	    q
27247	  }
27248	  /^X\(\/\).*/{
27249	    s//\1/
27250	    q
27251	  }
27252	  s/.*/./; q'`
27253  as_dir="$ac_dir"; as_fn_mkdir_p
27254  ac_builddir=.
27255
27256case "$ac_dir" in
27257.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27258*)
27259  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27260  # A ".." for each directory in $ac_dir_suffix.
27261  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27262  case $ac_top_builddir_sub in
27263  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27264  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27265  esac ;;
27266esac
27267ac_abs_top_builddir=$ac_pwd
27268ac_abs_builddir=$ac_pwd$ac_dir_suffix
27269# for backward compatibility:
27270ac_top_builddir=$ac_top_build_prefix
27271
27272case $srcdir in
27273  .)  # We are building in place.
27274    ac_srcdir=.
27275    ac_top_srcdir=$ac_top_builddir_sub
27276    ac_abs_top_srcdir=$ac_pwd ;;
27277  [\\/]* | ?:[\\/]* )  # Absolute name.
27278    ac_srcdir=$srcdir$ac_dir_suffix;
27279    ac_top_srcdir=$srcdir
27280    ac_abs_top_srcdir=$srcdir ;;
27281  *) # Relative name.
27282    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27283    ac_top_srcdir=$ac_top_build_prefix$srcdir
27284    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27285esac
27286ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27287
27288
27289  case $ac_mode in
27290  :F)
27291  #
27292  # CONFIG_FILE
27293  #
27294
27295  case $INSTALL in
27296  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27297  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27298  esac
27299_ACEOF
27300
27301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27302# If the template does not know about datarootdir, expand it.
27303# FIXME: This hack should be removed a few years after 2.60.
27304ac_datarootdir_hack=; ac_datarootdir_seen=
27305ac_sed_dataroot='
27306/datarootdir/ {
27307  p
27308  q
27309}
27310/@datadir@/p
27311/@docdir@/p
27312/@infodir@/p
27313/@localedir@/p
27314/@mandir@/p'
27315case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27316*datarootdir*) ac_datarootdir_seen=yes;;
27317*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27318  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27319$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27320_ACEOF
27321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27322  ac_datarootdir_hack='
27323  s&@datadir@&$datadir&g
27324  s&@docdir@&$docdir&g
27325  s&@infodir@&$infodir&g
27326  s&@localedir@&$localedir&g
27327  s&@mandir@&$mandir&g
27328  s&\\\${datarootdir}&$datarootdir&g' ;;
27329esac
27330_ACEOF
27331
27332# Neutralize VPATH when `$srcdir' = `.'.
27333# Shell code in configure.ac might set extrasub.
27334# FIXME: do we really want to maintain this feature?
27335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27336ac_sed_extra="$ac_vpsub
27337$extrasub
27338_ACEOF
27339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27340:t
27341/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27342s|@configure_input@|$ac_sed_conf_input|;t t
27343s&@top_builddir@&$ac_top_builddir_sub&;t t
27344s&@top_build_prefix@&$ac_top_build_prefix&;t t
27345s&@srcdir@&$ac_srcdir&;t t
27346s&@abs_srcdir@&$ac_abs_srcdir&;t t
27347s&@top_srcdir@&$ac_top_srcdir&;t t
27348s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27349s&@builddir@&$ac_builddir&;t t
27350s&@abs_builddir@&$ac_abs_builddir&;t t
27351s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27352s&@INSTALL@&$ac_INSTALL&;t t
27353$ac_datarootdir_hack
27354"
27355eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27356  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27357
27358test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27359  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27360  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
27361      "$ac_tmp/out"`; test -z "$ac_out"; } &&
27362  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27363which seems to be undefined.  Please make sure it is defined" >&5
27364$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27365which seems to be undefined.  Please make sure it is defined" >&2;}
27366
27367  rm -f "$ac_tmp/stdin"
27368  case $ac_file in
27369  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27370  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27371  esac \
27372  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27373 ;;
27374  :H)
27375  #
27376  # CONFIG_HEADER
27377  #
27378  if test x"$ac_file" != x-; then
27379    {
27380      $as_echo "/* $configure_input  */" \
27381      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27382    } >"$ac_tmp/config.h" \
27383      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27384    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27385      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27386$as_echo "$as_me: $ac_file is unchanged" >&6;}
27387    else
27388      rm -f "$ac_file"
27389      mv "$ac_tmp/config.h" "$ac_file" \
27390	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
27391    fi
27392  else
27393    $as_echo "/* $configure_input  */" \
27394      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27395      || as_fn_error $? "could not create -" "$LINENO" 5
27396  fi
27397 ;;
27398
27399  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27400$as_echo "$as_me: executing $ac_file commands" >&6;}
27401 ;;
27402  esac
27403
27404
27405  case $ac_file$ac_mode in
27406    "libtool":C)
27407
27408    # See if we are running on zsh, and set the options which allow our
27409    # commands through without removal of \ escapes.
27410    if test -n "${ZSH_VERSION+set}" ; then
27411      setopt NO_GLOB_SUBST
27412    fi
27413
27414    cfgfile="${ofile}T"
27415    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27416    $RM "$cfgfile"
27417
27418    cat <<_LT_EOF >> "$cfgfile"
27419#! $SHELL
27420
27421# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27422# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27423# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27424# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27425#
27426#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27427#                 2006, 2007, 2008 Free Software Foundation, Inc.
27428#   Written by Gordon Matzigkeit, 1996
27429#
27430#   This file is part of GNU Libtool.
27431#
27432# GNU Libtool is free software; you can redistribute it and/or
27433# modify it under the terms of the GNU General Public License as
27434# published by the Free Software Foundation; either version 2 of
27435# the License, or (at your option) any later version.
27436#
27437# As a special exception to the GNU General Public License,
27438# if you distribute this file as part of a program or library that
27439# is built using GNU Libtool, you may include this file under the
27440# same distribution terms that you use for the rest of that program.
27441#
27442# GNU Libtool is distributed in the hope that it will be useful,
27443# but WITHOUT ANY WARRANTY; without even the implied warranty of
27444# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27445# GNU General Public License for more details.
27446#
27447# You should have received a copy of the GNU General Public License
27448# along with GNU Libtool; see the file COPYING.  If not, a copy
27449# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27450# obtained by writing to the Free Software Foundation, Inc.,
27451# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27452
27453
27454# The names of the tagged configurations supported by this script.
27455available_tags="CXX "
27456
27457# ### BEGIN LIBTOOL CONFIG
27458
27459# Which release of libtool.m4 was used?
27460macro_version=$macro_version
27461macro_revision=$macro_revision
27462
27463# Whether or not to build shared libraries.
27464build_libtool_libs=$enable_shared
27465
27466# Whether or not to build static libraries.
27467build_old_libs=$enable_static
27468
27469# What type of objects to build.
27470pic_mode=$pic_mode
27471
27472# Whether or not to optimize for fast installation.
27473fast_install=$enable_fast_install
27474
27475# The host system.
27476host_alias=$host_alias
27477host=$host
27478host_os=$host_os
27479
27480# The build system.
27481build_alias=$build_alias
27482build=$build
27483build_os=$build_os
27484
27485# A sed program that does not truncate output.
27486SED=$lt_SED
27487
27488# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27489Xsed="\$SED -e 1s/^X//"
27490
27491# A grep program that handles long lines.
27492GREP=$lt_GREP
27493
27494# An ERE matcher.
27495EGREP=$lt_EGREP
27496
27497# A literal string matcher.
27498FGREP=$lt_FGREP
27499
27500# A BSD- or MS-compatible name lister.
27501NM=$lt_NM
27502
27503# Whether we need soft or hard links.
27504LN_S=$lt_LN_S
27505
27506# What is the maximum length of a command?
27507max_cmd_len=$max_cmd_len
27508
27509# Object file suffix (normally "o").
27510objext=$ac_objext
27511
27512# Executable file suffix (normally "").
27513exeext=$exeext
27514
27515# whether the shell understands "unset".
27516lt_unset=$lt_unset
27517
27518# turn spaces into newlines.
27519SP2NL=$lt_lt_SP2NL
27520
27521# turn newlines into spaces.
27522NL2SP=$lt_lt_NL2SP
27523
27524# How to create reloadable object files.
27525reload_flag=$lt_reload_flag
27526reload_cmds=$lt_reload_cmds
27527
27528# An object symbol dumper.
27529OBJDUMP=$lt_OBJDUMP
27530
27531# Method to check whether dependent libraries are shared objects.
27532deplibs_check_method=$lt_deplibs_check_method
27533
27534# Command to use when deplibs_check_method == "file_magic".
27535file_magic_cmd=$lt_file_magic_cmd
27536
27537# The archiver.
27538AR=$lt_AR
27539AR_FLAGS=$lt_AR_FLAGS
27540
27541# A symbol stripping program.
27542STRIP=$lt_STRIP
27543
27544# Commands used to install an old-style archive.
27545RANLIB=$lt_RANLIB
27546old_postinstall_cmds=$lt_old_postinstall_cmds
27547old_postuninstall_cmds=$lt_old_postuninstall_cmds
27548
27549# A C compiler.
27550LTCC=$lt_CC
27551
27552# LTCC compiler flags.
27553LTCFLAGS=$lt_CFLAGS
27554
27555# Take the output of nm and produce a listing of raw symbols and C names.
27556global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27557
27558# Transform the output of nm in a proper C declaration.
27559global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27560
27561# Transform the output of nm in a C name address pair.
27562global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27563
27564# Transform the output of nm in a C name address pair when lib prefix is needed.
27565global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27566
27567# The name of the directory that contains temporary libtool files.
27568objdir=$objdir
27569
27570# Shell to use when invoking shell scripts.
27571SHELL=$lt_SHELL
27572
27573# An echo program that does not interpret backslashes.
27574ECHO=$lt_ECHO
27575
27576# Used to examine libraries when file_magic_cmd begins with "file".
27577MAGIC_CMD=$MAGIC_CMD
27578
27579# Must we lock files when doing compilation?
27580need_locks=$lt_need_locks
27581
27582# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27583DSYMUTIL=$lt_DSYMUTIL
27584
27585# Tool to change global to local symbols on Mac OS X.
27586NMEDIT=$lt_NMEDIT
27587
27588# Tool to manipulate fat objects and archives on Mac OS X.
27589LIPO=$lt_LIPO
27590
27591# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27592OTOOL=$lt_OTOOL
27593
27594# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27595OTOOL64=$lt_OTOOL64
27596
27597# Old archive suffix (normally "a").
27598libext=$libext
27599
27600# Shared library suffix (normally ".so").
27601shrext_cmds=$lt_shrext_cmds
27602
27603# The commands to extract the exported symbol list from a shared archive.
27604extract_expsyms_cmds=$lt_extract_expsyms_cmds
27605
27606# Variables whose values should be saved in libtool wrapper scripts and
27607# restored at link time.
27608variables_saved_for_relink=$lt_variables_saved_for_relink
27609
27610# Do we need the "lib" prefix for modules?
27611need_lib_prefix=$need_lib_prefix
27612
27613# Do we need a version for libraries?
27614need_version=$need_version
27615
27616# Library versioning type.
27617version_type=$version_type
27618
27619# Shared library runtime path variable.
27620runpath_var=$runpath_var
27621
27622# Shared library path variable.
27623shlibpath_var=$shlibpath_var
27624
27625# Is shlibpath searched before the hard-coded library search path?
27626shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27627
27628# Format of library name prefix.
27629libname_spec=$lt_libname_spec
27630
27631# List of archive names.  First name is the real one, the rest are links.
27632# The last name is the one that the linker finds with -lNAME
27633library_names_spec=$lt_library_names_spec
27634
27635# The coded name of the library, if different from the real name.
27636soname_spec=$lt_soname_spec
27637
27638# Command to use after installation of a shared archive.
27639postinstall_cmds=$lt_postinstall_cmds
27640
27641# Command to use after uninstallation of a shared archive.
27642postuninstall_cmds=$lt_postuninstall_cmds
27643
27644# Commands used to finish a libtool library installation in a directory.
27645finish_cmds=$lt_finish_cmds
27646
27647# As "finish_cmds", except a single script fragment to be evaled but
27648# not shown.
27649finish_eval=$lt_finish_eval
27650
27651# Whether we should hardcode library paths into libraries.
27652hardcode_into_libs=$hardcode_into_libs
27653
27654# Compile-time system search path for libraries.
27655sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27656
27657# Run-time system search path for libraries.
27658sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27659
27660# Whether dlopen is supported.
27661dlopen_support=$enable_dlopen
27662
27663# Whether dlopen of programs is supported.
27664dlopen_self=$enable_dlopen_self
27665
27666# Whether dlopen of statically linked programs is supported.
27667dlopen_self_static=$enable_dlopen_self_static
27668
27669# Commands to strip libraries.
27670old_striplib=$lt_old_striplib
27671striplib=$lt_striplib
27672
27673
27674# The linker used to build libraries.
27675LD=$lt_LD
27676
27677# Commands used to build an old-style archive.
27678old_archive_cmds=$lt_old_archive_cmds
27679
27680# A language specific compiler.
27681CC=$lt_compiler
27682
27683# Is the compiler the GNU compiler?
27684with_gcc=$GCC
27685
27686# Compiler flag to turn off builtin functions.
27687no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27688
27689# How to pass a linker flag through the compiler.
27690wl=$lt_lt_prog_compiler_wl
27691
27692# Additional compiler flags for building library objects.
27693pic_flag=$lt_lt_prog_compiler_pic
27694
27695# Compiler flag to prevent dynamic linking.
27696link_static_flag=$lt_lt_prog_compiler_static
27697
27698# Does compiler simultaneously support -c and -o options?
27699compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27700
27701# Whether or not to add -lc for building shared libraries.
27702build_libtool_need_lc=$archive_cmds_need_lc
27703
27704# Whether or not to disallow shared libs when runtime libs are static.
27705allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27706
27707# Compiler flag to allow reflexive dlopens.
27708export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27709
27710# Compiler flag to generate shared objects directly from archives.
27711whole_archive_flag_spec=$lt_whole_archive_flag_spec
27712
27713# Whether the compiler copes with passing no objects directly.
27714compiler_needs_object=$lt_compiler_needs_object
27715
27716# Create an old-style archive from a shared archive.
27717old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27718
27719# Create a temporary old-style archive to link instead of a shared archive.
27720old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27721
27722# Commands used to build a shared archive.
27723archive_cmds=$lt_archive_cmds
27724archive_expsym_cmds=$lt_archive_expsym_cmds
27725
27726# Commands used to build a loadable module if different from building
27727# a shared archive.
27728module_cmds=$lt_module_cmds
27729module_expsym_cmds=$lt_module_expsym_cmds
27730
27731# Whether we are building with GNU ld or not.
27732with_gnu_ld=$lt_with_gnu_ld
27733
27734# Flag that allows shared libraries with undefined symbols to be built.
27735allow_undefined_flag=$lt_allow_undefined_flag
27736
27737# Flag that enforces no undefined symbols.
27738no_undefined_flag=$lt_no_undefined_flag
27739
27740# Flag to hardcode \$libdir into a binary during linking.
27741# This must work even if \$libdir does not exist
27742hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27743
27744# If ld is used when linking, flag to hardcode \$libdir into a binary
27745# during linking.  This must work even if \$libdir does not exist.
27746hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27747
27748# Whether we need a single "-rpath" flag with a separated argument.
27749hardcode_libdir_separator=$lt_hardcode_libdir_separator
27750
27751# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27752# DIR into the resulting binary.
27753hardcode_direct=$hardcode_direct
27754
27755# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27756# DIR into the resulting binary and the resulting library dependency is
27757# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27758# library is relocated.
27759hardcode_direct_absolute=$hardcode_direct_absolute
27760
27761# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27762# into the resulting binary.
27763hardcode_minus_L=$hardcode_minus_L
27764
27765# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27766# into the resulting binary.
27767hardcode_shlibpath_var=$hardcode_shlibpath_var
27768
27769# Set to "yes" if building a shared library automatically hardcodes DIR
27770# into the library and all subsequent libraries and executables linked
27771# against it.
27772hardcode_automatic=$hardcode_automatic
27773
27774# Set to yes if linker adds runtime paths of dependent libraries
27775# to runtime path list.
27776inherit_rpath=$inherit_rpath
27777
27778# Whether libtool must link a program against all its dependency libraries.
27779link_all_deplibs=$link_all_deplibs
27780
27781# Fix the shell variable \$srcfile for the compiler.
27782fix_srcfile_path=$lt_fix_srcfile_path
27783
27784# Set to "yes" if exported symbols are required.
27785always_export_symbols=$always_export_symbols
27786
27787# The commands to list exported symbols.
27788export_symbols_cmds=$lt_export_symbols_cmds
27789
27790# Symbols that should not be listed in the preloaded symbols.
27791exclude_expsyms=$lt_exclude_expsyms
27792
27793# Symbols that must always be exported.
27794include_expsyms=$lt_include_expsyms
27795
27796# Commands necessary for linking programs (against libraries) with templates.
27797prelink_cmds=$lt_prelink_cmds
27798
27799# Specify filename containing input files.
27800file_list_spec=$lt_file_list_spec
27801
27802# How to hardcode a shared library path into an executable.
27803hardcode_action=$hardcode_action
27804
27805# The directories searched by this compiler when creating a shared library.
27806compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27807
27808# Dependencies to place before and after the objects being linked to
27809# create a shared library.
27810predep_objects=$lt_predep_objects
27811postdep_objects=$lt_postdep_objects
27812predeps=$lt_predeps
27813postdeps=$lt_postdeps
27814
27815# The library search path used internally by the compiler when linking
27816# a shared library.
27817compiler_lib_search_path=$lt_compiler_lib_search_path
27818
27819# ### END LIBTOOL CONFIG
27820
27821_LT_EOF
27822
27823  case $host_os in
27824  aix3*)
27825    cat <<\_LT_EOF >> "$cfgfile"
27826# AIX sometimes has problems with the GCC collect2 program.  For some
27827# reason, if we set the COLLECT_NAMES environment variable, the problems
27828# vanish in a puff of smoke.
27829if test "X${COLLECT_NAMES+set}" != Xset; then
27830  COLLECT_NAMES=
27831  export COLLECT_NAMES
27832fi
27833_LT_EOF
27834    ;;
27835  esac
27836
27837
27838ltmain="$ac_aux_dir/ltmain.sh"
27839
27840
27841  # We use sed instead of cat because bash on DJGPP gets confused if
27842  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27843  # text mode, it properly converts lines to CR/LF.  This bash problem
27844  # is reportedly fixed, but why not run on old versions too?
27845  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27846    || (rm -f "$cfgfile"; exit 1)
27847
27848  case $xsi_shell in
27849  yes)
27850    cat << \_LT_EOF >> "$cfgfile"
27851
27852# func_dirname file append nondir_replacement
27853# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27854# otherwise set result to NONDIR_REPLACEMENT.
27855func_dirname ()
27856{
27857  case ${1} in
27858    */*) func_dirname_result="${1%/*}${2}" ;;
27859    *  ) func_dirname_result="${3}" ;;
27860  esac
27861}
27862
27863# func_basename file
27864func_basename ()
27865{
27866  func_basename_result="${1##*/}"
27867}
27868
27869# func_dirname_and_basename file append nondir_replacement
27870# perform func_basename and func_dirname in a single function
27871# call:
27872#   dirname:  Compute the dirname of FILE.  If nonempty,
27873#             add APPEND to the result, otherwise set result
27874#             to NONDIR_REPLACEMENT.
27875#             value returned in "$func_dirname_result"
27876#   basename: Compute filename of FILE.
27877#             value retuned in "$func_basename_result"
27878# Implementation must be kept synchronized with func_dirname
27879# and func_basename. For efficiency, we do not delegate to
27880# those functions but instead duplicate the functionality here.
27881func_dirname_and_basename ()
27882{
27883  case ${1} in
27884    */*) func_dirname_result="${1%/*}${2}" ;;
27885    *  ) func_dirname_result="${3}" ;;
27886  esac
27887  func_basename_result="${1##*/}"
27888}
27889
27890# func_stripname prefix suffix name
27891# strip PREFIX and SUFFIX off of NAME.
27892# PREFIX and SUFFIX must not contain globbing or regex special
27893# characters, hashes, percent signs, but SUFFIX may contain a leading
27894# dot (in which case that matches only a dot).
27895func_stripname ()
27896{
27897  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27898  # positional parameters, so assign one to ordinary parameter first.
27899  func_stripname_result=${3}
27900  func_stripname_result=${func_stripname_result#"${1}"}
27901  func_stripname_result=${func_stripname_result%"${2}"}
27902}
27903
27904# func_opt_split
27905func_opt_split ()
27906{
27907  func_opt_split_opt=${1%%=*}
27908  func_opt_split_arg=${1#*=}
27909}
27910
27911# func_lo2o object
27912func_lo2o ()
27913{
27914  case ${1} in
27915    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27916    *)    func_lo2o_result=${1} ;;
27917  esac
27918}
27919
27920# func_xform libobj-or-source
27921func_xform ()
27922{
27923  func_xform_result=${1%.*}.lo
27924}
27925
27926# func_arith arithmetic-term...
27927func_arith ()
27928{
27929  func_arith_result=$(( $* ))
27930}
27931
27932# func_len string
27933# STRING may not start with a hyphen.
27934func_len ()
27935{
27936  func_len_result=${#1}
27937}
27938
27939_LT_EOF
27940    ;;
27941  *) # Bourne compatible functions.
27942    cat << \_LT_EOF >> "$cfgfile"
27943
27944# func_dirname file append nondir_replacement
27945# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27946# otherwise set result to NONDIR_REPLACEMENT.
27947func_dirname ()
27948{
27949  # Extract subdirectory from the argument.
27950  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27951  if test "X$func_dirname_result" = "X${1}"; then
27952    func_dirname_result="${3}"
27953  else
27954    func_dirname_result="$func_dirname_result${2}"
27955  fi
27956}
27957
27958# func_basename file
27959func_basename ()
27960{
27961  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27962}
27963
27964
27965# func_stripname prefix suffix name
27966# strip PREFIX and SUFFIX off of NAME.
27967# PREFIX and SUFFIX must not contain globbing or regex special
27968# characters, hashes, percent signs, but SUFFIX may contain a leading
27969# dot (in which case that matches only a dot).
27970# func_strip_suffix prefix name
27971func_stripname ()
27972{
27973  case ${2} in
27974    .*) func_stripname_result=`$ECHO "X${3}" \
27975           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27976    *)  func_stripname_result=`$ECHO "X${3}" \
27977           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27978  esac
27979}
27980
27981# sed scripts:
27982my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27983my_sed_long_arg='1s/^-[^=]*=//'
27984
27985# func_opt_split
27986func_opt_split ()
27987{
27988  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27989  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27990}
27991
27992# func_lo2o object
27993func_lo2o ()
27994{
27995  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27996}
27997
27998# func_xform libobj-or-source
27999func_xform ()
28000{
28001  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
28002}
28003
28004# func_arith arithmetic-term...
28005func_arith ()
28006{
28007  func_arith_result=`expr "$@"`
28008}
28009
28010# func_len string
28011# STRING may not start with a hyphen.
28012func_len ()
28013{
28014  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28015}
28016
28017_LT_EOF
28018esac
28019
28020case $lt_shell_append in
28021  yes)
28022    cat << \_LT_EOF >> "$cfgfile"
28023
28024# func_append var value
28025# Append VALUE to the end of shell variable VAR.
28026func_append ()
28027{
28028  eval "$1+=\$2"
28029}
28030_LT_EOF
28031    ;;
28032  *)
28033    cat << \_LT_EOF >> "$cfgfile"
28034
28035# func_append var value
28036# Append VALUE to the end of shell variable VAR.
28037func_append ()
28038{
28039  eval "$1=\$$1\$2"
28040}
28041
28042_LT_EOF
28043    ;;
28044  esac
28045
28046
28047  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28048    || (rm -f "$cfgfile"; exit 1)
28049
28050  mv -f "$cfgfile" "$ofile" ||
28051    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28052  chmod +x "$ofile"
28053
28054
28055    cat <<_LT_EOF >> "$ofile"
28056
28057# ### BEGIN LIBTOOL TAG CONFIG: CXX
28058
28059# The linker used to build libraries.
28060LD=$lt_LD_CXX
28061
28062# Commands used to build an old-style archive.
28063old_archive_cmds=$lt_old_archive_cmds_CXX
28064
28065# A language specific compiler.
28066CC=$lt_compiler_CXX
28067
28068# Is the compiler the GNU compiler?
28069with_gcc=$GCC_CXX
28070
28071# Compiler flag to turn off builtin functions.
28072no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28073
28074# How to pass a linker flag through the compiler.
28075wl=$lt_lt_prog_compiler_wl_CXX
28076
28077# Additional compiler flags for building library objects.
28078pic_flag=$lt_lt_prog_compiler_pic_CXX
28079
28080# Compiler flag to prevent dynamic linking.
28081link_static_flag=$lt_lt_prog_compiler_static_CXX
28082
28083# Does compiler simultaneously support -c and -o options?
28084compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28085
28086# Whether or not to add -lc for building shared libraries.
28087build_libtool_need_lc=$archive_cmds_need_lc_CXX
28088
28089# Whether or not to disallow shared libs when runtime libs are static.
28090allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28091
28092# Compiler flag to allow reflexive dlopens.
28093export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28094
28095# Compiler flag to generate shared objects directly from archives.
28096whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28097
28098# Whether the compiler copes with passing no objects directly.
28099compiler_needs_object=$lt_compiler_needs_object_CXX
28100
28101# Create an old-style archive from a shared archive.
28102old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28103
28104# Create a temporary old-style archive to link instead of a shared archive.
28105old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28106
28107# Commands used to build a shared archive.
28108archive_cmds=$lt_archive_cmds_CXX
28109archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28110
28111# Commands used to build a loadable module if different from building
28112# a shared archive.
28113module_cmds=$lt_module_cmds_CXX
28114module_expsym_cmds=$lt_module_expsym_cmds_CXX
28115
28116# Whether we are building with GNU ld or not.
28117with_gnu_ld=$lt_with_gnu_ld_CXX
28118
28119# Flag that allows shared libraries with undefined symbols to be built.
28120allow_undefined_flag=$lt_allow_undefined_flag_CXX
28121
28122# Flag that enforces no undefined symbols.
28123no_undefined_flag=$lt_no_undefined_flag_CXX
28124
28125# Flag to hardcode \$libdir into a binary during linking.
28126# This must work even if \$libdir does not exist
28127hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28128
28129# If ld is used when linking, flag to hardcode \$libdir into a binary
28130# during linking.  This must work even if \$libdir does not exist.
28131hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
28132
28133# Whether we need a single "-rpath" flag with a separated argument.
28134hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28135
28136# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28137# DIR into the resulting binary.
28138hardcode_direct=$hardcode_direct_CXX
28139
28140# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28141# DIR into the resulting binary and the resulting library dependency is
28142# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28143# library is relocated.
28144hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28145
28146# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28147# into the resulting binary.
28148hardcode_minus_L=$hardcode_minus_L_CXX
28149
28150# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28151# into the resulting binary.
28152hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28153
28154# Set to "yes" if building a shared library automatically hardcodes DIR
28155# into the library and all subsequent libraries and executables linked
28156# against it.
28157hardcode_automatic=$hardcode_automatic_CXX
28158
28159# Set to yes if linker adds runtime paths of dependent libraries
28160# to runtime path list.
28161inherit_rpath=$inherit_rpath_CXX
28162
28163# Whether libtool must link a program against all its dependency libraries.
28164link_all_deplibs=$link_all_deplibs_CXX
28165
28166# Fix the shell variable \$srcfile for the compiler.
28167fix_srcfile_path=$lt_fix_srcfile_path_CXX
28168
28169# Set to "yes" if exported symbols are required.
28170always_export_symbols=$always_export_symbols_CXX
28171
28172# The commands to list exported symbols.
28173export_symbols_cmds=$lt_export_symbols_cmds_CXX
28174
28175# Symbols that should not be listed in the preloaded symbols.
28176exclude_expsyms=$lt_exclude_expsyms_CXX
28177
28178# Symbols that must always be exported.
28179include_expsyms=$lt_include_expsyms_CXX
28180
28181# Commands necessary for linking programs (against libraries) with templates.
28182prelink_cmds=$lt_prelink_cmds_CXX
28183
28184# Specify filename containing input files.
28185file_list_spec=$lt_file_list_spec_CXX
28186
28187# How to hardcode a shared library path into an executable.
28188hardcode_action=$hardcode_action_CXX
28189
28190# The directories searched by this compiler when creating a shared library.
28191compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28192
28193# Dependencies to place before and after the objects being linked to
28194# create a shared library.
28195predep_objects=$lt_predep_objects_CXX
28196postdep_objects=$lt_postdep_objects_CXX
28197predeps=$lt_predeps_CXX
28198postdeps=$lt_postdeps_CXX
28199
28200# The library search path used internally by the compiler when linking
28201# a shared library.
28202compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28203
28204# ### END LIBTOOL TAG CONFIG: CXX
28205_LT_EOF
28206
28207 ;;
28208    "default":C) echo timestamp > stamp-h
28209 ;;
28210
28211  esac
28212done # for ac_tag
28213
28214
28215as_fn_exit 0
28216_ACEOF
28217ac_clean_files=$ac_clean_files_save
28218
28219test $ac_write_fail = 0 ||
28220  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28221
28222
28223# configure is writing to config.log, and then calls config.status.
28224# config.status does its own redirection, appending to config.log.
28225# Unfortunately, on DOS this fails, as config.log is still kept open
28226# by configure, so config.status won't be able to write to it; its
28227# output is simply discarded.  So we exec the FD to /dev/null,
28228# effectively closing config.log, so it can be properly (re)opened and
28229# appended to by config.status.  When coming back to configure, we
28230# need to make the FD available again.
28231if test "$no_create" != yes; then
28232  ac_cs_success=:
28233  ac_config_status_args=
28234  test "$silent" = yes &&
28235    ac_config_status_args="$ac_config_status_args --quiet"
28236  exec 5>/dev/null
28237  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28238  exec 5>>config.log
28239  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28240  # would make configure fail if this is the last instruction.
28241  $ac_cs_success || as_fn_exit 1
28242fi
28243
28244#
28245# CONFIG_SUBDIRS section.
28246#
28247if test "$no_recursion" != yes; then
28248
28249  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28250  # so they do not pile up.
28251  ac_sub_configure_args=
28252  ac_prev=
28253  eval "set x $ac_configure_args"
28254  shift
28255  for ac_arg
28256  do
28257    if test -n "$ac_prev"; then
28258      ac_prev=
28259      continue
28260    fi
28261    case $ac_arg in
28262    -cache-file | --cache-file | --cache-fil | --cache-fi \
28263    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28264      ac_prev=cache_file ;;
28265    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28266    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28267    | --c=*)
28268      ;;
28269    --config-cache | -C)
28270      ;;
28271    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28272      ac_prev=srcdir ;;
28273    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28274      ;;
28275    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28276      ac_prev=prefix ;;
28277    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28278      ;;
28279    --disable-option-checking)
28280      ;;
28281    *)
28282      case $ac_arg in
28283      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28284      esac
28285      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28286    esac
28287  done
28288
28289  # Always prepend --prefix to ensure using the same prefix
28290  # in subdir configurations.
28291  ac_arg="--prefix=$prefix"
28292  case $ac_arg in
28293  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28294  esac
28295  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28296
28297  # Pass --silent
28298  if test "$silent" = yes; then
28299    ac_sub_configure_args="--silent $ac_sub_configure_args"
28300  fi
28301
28302  # Always prepend --disable-option-checking to silence warnings, since
28303  # different subdirs can have different --enable and --with options.
28304  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28305
28306  ac_popdir=`pwd`
28307  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28308
28309    # Do not complain, so a configure script can configure whichever
28310    # parts of a large source tree are present.
28311    test -d "$srcdir/$ac_dir" || continue
28312
28313    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28314    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28315    $as_echo "$ac_msg" >&6
28316    as_dir="$ac_dir"; as_fn_mkdir_p
28317    ac_builddir=.
28318
28319case "$ac_dir" in
28320.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28321*)
28322  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28323  # A ".." for each directory in $ac_dir_suffix.
28324  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28325  case $ac_top_builddir_sub in
28326  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28327  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28328  esac ;;
28329esac
28330ac_abs_top_builddir=$ac_pwd
28331ac_abs_builddir=$ac_pwd$ac_dir_suffix
28332# for backward compatibility:
28333ac_top_builddir=$ac_top_build_prefix
28334
28335case $srcdir in
28336  .)  # We are building in place.
28337    ac_srcdir=.
28338    ac_top_srcdir=$ac_top_builddir_sub
28339    ac_abs_top_srcdir=$ac_pwd ;;
28340  [\\/]* | ?:[\\/]* )  # Absolute name.
28341    ac_srcdir=$srcdir$ac_dir_suffix;
28342    ac_top_srcdir=$srcdir
28343    ac_abs_top_srcdir=$srcdir ;;
28344  *) # Relative name.
28345    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28346    ac_top_srcdir=$ac_top_build_prefix$srcdir
28347    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28348esac
28349ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28350
28351
28352    cd "$ac_dir"
28353
28354    # Check for guested configure; otherwise get Cygnus style configure.
28355    if test -f "$ac_srcdir/configure.gnu"; then
28356      ac_sub_configure=$ac_srcdir/configure.gnu
28357    elif test -f "$ac_srcdir/configure"; then
28358      ac_sub_configure=$ac_srcdir/configure
28359    elif test -f "$ac_srcdir/configure.in"; then
28360      # This should be Cygnus configure.
28361      ac_sub_configure=$ac_aux_dir/configure
28362    else
28363      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28364$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28365      ac_sub_configure=
28366    fi
28367
28368    # The recursion is here.
28369    if test -n "$ac_sub_configure"; then
28370      # Make the cache file name correct relative to the subdirectory.
28371      case $cache_file in
28372      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28373      *) # Relative name.
28374	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28375      esac
28376
28377      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28378$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28379      # The eval makes quoting arguments work.
28380      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28381	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28382	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28383    fi
28384
28385    cd "$ac_popdir"
28386  done
28387fi
28388if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28389  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28390$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28391fi
28392
28393
28394builddir=.
28395for moduledir in $ac_shared_module_dirs $ac_static_module_dirs; do
28396  srcinc=`echo "$moduledir" | sed -e 's/^.*\///'`.h;
28397
28398  if test -d $builddir/$moduledir ; then
28399    if test ! -e $builddir/include/$srcinc ; then
28400      if test -e $builddir/$moduledir/$srcinc ; then
28401        olddir=`pwd`
28402        cd $builddir/include
28403        ln -s ../$moduledir/$srcinc $srcinc
28404        cd $olddir
28405      fi
28406    fi
28407  fi
28408done
28409
28410# Display a summary of what modules will be compiled
28411echo
28412echo "--------------"
28413echo "Build Summary"
28414echo "--------------"
28415if test ! -z "$my_static_modules"; then
28416  echo "Building the following static modules:"
28417  for amodule in $my_static_modules; do
28418   echo "  $amodule"
28419  done
28420fi
28421
28422if test ! -z "$my_shared_modules"; then
28423  echo
28424  echo "Building the following shared modules:"
28425  for amodule in $my_shared_modules; do
28426    echo "  $amodule"
28427  done
28428fi
28429
28430echo
28431echo "--------------"
28432