1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for pgpool-II 4.3.0.
4#
5# Report bugs to <pgpool-hackers@pgpool.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: pgpool-hackers@pgpool.net about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='pgpool-II'
592PACKAGE_TARNAME='pgpool-II'
593PACKAGE_VERSION='4.3.0'
594PACKAGE_STRING='pgpool-II 4.3.0'
595PACKAGE_BUGREPORT='pgpool-hackers@pgpool.net'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637enable_rpath_FALSE
638enable_rpath_TRUE
639MEMCACHED_DIR
640PGSQL_BIN_DIR
641PGSQL_LIB_DIR
642PGSQL_INCLUDE_DIR
643MEMCACHED_RPATH_OPT
644MEMCACHED_LINK_OPT
645MEMCACHED_INCLUDE_OPT
646PGCONFIG
647use_repl_snprintf_FALSE
648use_repl_snprintf_TRUE
649LIBOBJS
650STYLE_ENV_SET_FALSE
651STYLE_ENV_SET_TRUE
652STYLE
653XSLTPROC_HTML_FLAGS
654SUNIFDEF
655LYNX
656PERL
657OSX
658XMLLINT
659XSLTPROC
660COLLATEINDEX
661CATALOG
662DOCBOOKSTYLE
663have_docbook
664can_build_docs_FALSE
665can_build_docs_TRUE
666JADE
667NSGMLS
668YFLAGS
669YACC
670LEXLIB
671LEX_OUTPUT_ROOT
672LEX
673CPP
674OTOOL64
675OTOOL
676LIPO
677NMEDIT
678DSYMUTIL
679MANIFEST_TOOL
680RANLIB
681ac_ct_AR
682AR
683DLLTOOL
684OBJDUMP
685LN_S
686NM
687ac_ct_DUMPBIN
688DUMPBIN
689LD
690FGREP
691EGREP
692GREP
693SED
694host_os
695host_vendor
696host_cpu
697host
698build_os
699build_vendor
700build_cpu
701build
702LIBTOOL
703AR_FLAGS
704MAINT
705MAINTAINER_MODE_FALSE
706MAINTAINER_MODE_TRUE
707AM_BACKSLASH
708AM_DEFAULT_VERBOSITY
709AM_DEFAULT_V
710AM_V
711am__untar
712am__tar
713AMTAR
714am__leading_dot
715SET_MAKE
716AWK
717mkdir_p
718MKDIR_P
719INSTALL_STRIP_PROGRAM
720STRIP
721install_sh
722MAKEINFO
723AUTOHEADER
724AUTOMAKE
725AUTOCONF
726ACLOCAL
727VERSION
728PACKAGE
729CYGPATH_W
730am__isrc
731INSTALL_DATA
732INSTALL_SCRIPT
733INSTALL_PROGRAM
734OBJEXT
735EXEEXT
736ac_ct_CC
737CPPFLAGS
738LDFLAGS
739CFLAGS
740CC
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_silent_rules
783enable_maintainer_mode
784enable_shared
785enable_static
786with_pic
787enable_fast_install
788with_gnu_ld
789with_sysroot
790enable_libtool_lock
791enable_float4_byval
792enable_float8_byval
793with_pgsql
794with_pgsql_includedir
795with_pgsql_libdir
796with_pgsql_bindir
797with_sunifdef
798with_openssl
799with_ldap
800with_pam
801with_memcached
802enable_rpath
803enable_sequence_lock
804enable_table_lock
805enable_cassert
806'
807      ac_precious_vars='build_alias
808host_alias
809target_alias
810CC
811CFLAGS
812LDFLAGS
813LIBS
814CPPFLAGS
815CPP
816YACC
817YFLAGS
818DOCBOOKSTYLE'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873  # If the previous option needs an argument, assign it.
874  if test -n "$ac_prev"; then
875    eval $ac_prev=\$ac_option
876    ac_prev=
877    continue
878  fi
879
880  case $ac_option in
881  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882  *=)   ac_optarg= ;;
883  *)    ac_optarg=yes ;;
884  esac
885
886  # Accept the important Cygnus configure options, so we can diagnose typos.
887
888  case $ac_dashdash$ac_option in
889  --)
890    ac_dashdash=yes ;;
891
892  -bindir | --bindir | --bindi | --bind | --bin | --bi)
893    ac_prev=bindir ;;
894  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895    bindir=$ac_optarg ;;
896
897  -build | --build | --buil | --bui | --bu)
898    ac_prev=build_alias ;;
899  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900    build_alias=$ac_optarg ;;
901
902  -cache-file | --cache-file | --cache-fil | --cache-fi \
903  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904    ac_prev=cache_file ;;
905  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907    cache_file=$ac_optarg ;;
908
909  --config-cache | -C)
910    cache_file=config.cache ;;
911
912  -datadir | --datadir | --datadi | --datad)
913    ac_prev=datadir ;;
914  -datadir=* | --datadir=* | --datadi=* | --datad=*)
915    datadir=$ac_optarg ;;
916
917  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918  | --dataroo | --dataro | --datar)
919    ac_prev=datarootdir ;;
920  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922    datarootdir=$ac_optarg ;;
923
924  -disable-* | --disable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: $ac_useropt"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936	 ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=no ;;
939
940  -docdir | --docdir | --docdi | --doc | --do)
941    ac_prev=docdir ;;
942  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943    docdir=$ac_optarg ;;
944
945  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946    ac_prev=dvidir ;;
947  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948    dvidir=$ac_optarg ;;
949
950  -enable-* | --enable-*)
951    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952    # Reject names that are not valid shell variable names.
953    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954      as_fn_error $? "invalid feature name: $ac_useropt"
955    ac_useropt_orig=$ac_useropt
956    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957    case $ac_user_opts in
958      *"
959"enable_$ac_useropt"
960"*) ;;
961      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962	 ac_unrecognized_sep=', ';;
963    esac
964    eval enable_$ac_useropt=\$ac_optarg ;;
965
966  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968  | --exec | --exe | --ex)
969    ac_prev=exec_prefix ;;
970  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972  | --exec=* | --exe=* | --ex=*)
973    exec_prefix=$ac_optarg ;;
974
975  -gas | --gas | --ga | --g)
976    # Obsolete; use --with-gas.
977    with_gas=yes ;;
978
979  -help | --help | --hel | --he | -h)
980    ac_init_help=long ;;
981  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982    ac_init_help=recursive ;;
983  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984    ac_init_help=short ;;
985
986  -host | --host | --hos | --ho)
987    ac_prev=host_alias ;;
988  -host=* | --host=* | --hos=* | --ho=*)
989    host_alias=$ac_optarg ;;
990
991  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992    ac_prev=htmldir ;;
993  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994  | --ht=*)
995    htmldir=$ac_optarg ;;
996
997  -includedir | --includedir | --includedi | --included | --include \
998  | --includ | --inclu | --incl | --inc)
999    ac_prev=includedir ;;
1000  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001  | --includ=* | --inclu=* | --incl=* | --inc=*)
1002    includedir=$ac_optarg ;;
1003
1004  -infodir | --infodir | --infodi | --infod | --info | --inf)
1005    ac_prev=infodir ;;
1006  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007    infodir=$ac_optarg ;;
1008
1009  -libdir | --libdir | --libdi | --libd)
1010    ac_prev=libdir ;;
1011  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012    libdir=$ac_optarg ;;
1013
1014  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015  | --libexe | --libex | --libe)
1016    ac_prev=libexecdir ;;
1017  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018  | --libexe=* | --libex=* | --libe=*)
1019    libexecdir=$ac_optarg ;;
1020
1021  -localedir | --localedir | --localedi | --localed | --locale)
1022    ac_prev=localedir ;;
1023  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024    localedir=$ac_optarg ;;
1025
1026  -localstatedir | --localstatedir | --localstatedi | --localstated \
1027  | --localstate | --localstat | --localsta | --localst | --locals)
1028    ac_prev=localstatedir ;;
1029  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031    localstatedir=$ac_optarg ;;
1032
1033  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034    ac_prev=mandir ;;
1035  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036    mandir=$ac_optarg ;;
1037
1038  -nfp | --nfp | --nf)
1039    # Obsolete; use --without-fp.
1040    with_fp=no ;;
1041
1042  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043  | --no-cr | --no-c | -n)
1044    no_create=yes ;;
1045
1046  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048    no_recursion=yes ;;
1049
1050  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052  | --oldin | --oldi | --old | --ol | --o)
1053    ac_prev=oldincludedir ;;
1054  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057    oldincludedir=$ac_optarg ;;
1058
1059  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060    ac_prev=prefix ;;
1061  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062    prefix=$ac_optarg ;;
1063
1064  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065  | --program-pre | --program-pr | --program-p)
1066    ac_prev=program_prefix ;;
1067  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069    program_prefix=$ac_optarg ;;
1070
1071  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072  | --program-suf | --program-su | --program-s)
1073    ac_prev=program_suffix ;;
1074  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076    program_suffix=$ac_optarg ;;
1077
1078  -program-transform-name | --program-transform-name \
1079  | --program-transform-nam | --program-transform-na \
1080  | --program-transform-n | --program-transform- \
1081  | --program-transform | --program-transfor \
1082  | --program-transfo | --program-transf \
1083  | --program-trans | --program-tran \
1084  | --progr-tra | --program-tr | --program-t)
1085    ac_prev=program_transform_name ;;
1086  -program-transform-name=* | --program-transform-name=* \
1087  | --program-transform-nam=* | --program-transform-na=* \
1088  | --program-transform-n=* | --program-transform-=* \
1089  | --program-transform=* | --program-transfor=* \
1090  | --program-transfo=* | --program-transf=* \
1091  | --program-trans=* | --program-tran=* \
1092  | --progr-tra=* | --program-tr=* | --program-t=*)
1093    program_transform_name=$ac_optarg ;;
1094
1095  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096    ac_prev=pdfdir ;;
1097  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098    pdfdir=$ac_optarg ;;
1099
1100  -psdir | --psdir | --psdi | --psd | --ps)
1101    ac_prev=psdir ;;
1102  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103    psdir=$ac_optarg ;;
1104
1105  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106  | -silent | --silent | --silen | --sile | --sil)
1107    silent=yes ;;
1108
1109  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110    ac_prev=sbindir ;;
1111  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112  | --sbi=* | --sb=*)
1113    sbindir=$ac_optarg ;;
1114
1115  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117  | --sharedst | --shareds | --shared | --share | --shar \
1118  | --sha | --sh)
1119    ac_prev=sharedstatedir ;;
1120  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123  | --sha=* | --sh=*)
1124    sharedstatedir=$ac_optarg ;;
1125
1126  -site | --site | --sit)
1127    ac_prev=site ;;
1128  -site=* | --site=* | --sit=*)
1129    site=$ac_optarg ;;
1130
1131  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132    ac_prev=srcdir ;;
1133  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134    srcdir=$ac_optarg ;;
1135
1136  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137  | --syscon | --sysco | --sysc | --sys | --sy)
1138    ac_prev=sysconfdir ;;
1139  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141    sysconfdir=$ac_optarg ;;
1142
1143  -target | --target | --targe | --targ | --tar | --ta | --t)
1144    ac_prev=target_alias ;;
1145  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146    target_alias=$ac_optarg ;;
1147
1148  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149    verbose=yes ;;
1150
1151  -version | --version | --versio | --versi | --vers | -V)
1152    ac_init_version=: ;;
1153
1154  -with-* | --with-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=\$ac_optarg ;;
1169
1170  -without-* | --without-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172    # Reject names that are not valid shell variable names.
1173    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174      as_fn_error $? "invalid package name: $ac_useropt"
1175    ac_useropt_orig=$ac_useropt
1176    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177    case $ac_user_opts in
1178      *"
1179"with_$ac_useropt"
1180"*) ;;
1181      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182	 ac_unrecognized_sep=', ';;
1183    esac
1184    eval with_$ac_useropt=no ;;
1185
1186  --x)
1187    # Obsolete; use --with-x.
1188    with_x=yes ;;
1189
1190  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191  | --x-incl | --x-inc | --x-in | --x-i)
1192    ac_prev=x_includes ;;
1193  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195    x_includes=$ac_optarg ;;
1196
1197  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199    ac_prev=x_libraries ;;
1200  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202    x_libraries=$ac_optarg ;;
1203
1204  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205Try \`$0 --help' for more information"
1206    ;;
1207
1208  *=*)
1209    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210    # Reject names that are not valid shell variable names.
1211    case $ac_envvar in #(
1212      '' | [0-9]* | *[!_$as_cr_alnum]* )
1213      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214    esac
1215    eval $ac_envvar=\$ac_optarg
1216    export $ac_envvar ;;
1217
1218  *)
1219    # FIXME: should be removed in autoconf 3.0.
1220    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224    ;;
1225
1226  esac
1227done
1228
1229if test -n "$ac_prev"; then
1230  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231  as_fn_error $? "missing argument to $ac_option"
1232fi
1233
1234if test -n "$ac_unrecognized_opts"; then
1235  case $enable_option_checking in
1236    no) ;;
1237    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239  esac
1240fi
1241
1242# Check all directory arguments for consistency.
1243for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244		datadir sysconfdir sharedstatedir localstatedir includedir \
1245		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246		libdir localedir mandir
1247do
1248  eval ac_val=\$$ac_var
1249  # Remove trailing slashes.
1250  case $ac_val in
1251    */ )
1252      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253      eval $ac_var=\$ac_val;;
1254  esac
1255  # Be sure to have absolute directory names.
1256  case $ac_val in
1257    [\\/$]* | ?:[\\/]* )  continue;;
1258    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259  esac
1260  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261done
1262
1263# There might be people who depend on the old broken behavior: `$host'
1264# used to hold the argument of --host etc.
1265# FIXME: To remove some day.
1266build=$build_alias
1267host=$host_alias
1268target=$target_alias
1269
1270# FIXME: To remove some day.
1271if test "x$host_alias" != x; then
1272  if test "x$build_alias" = x; then
1273    cross_compiling=maybe
1274  elif test "x$build_alias" != "x$host_alias"; then
1275    cross_compiling=yes
1276  fi
1277fi
1278
1279ac_tool_prefix=
1280test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282test "$silent" = yes && exec 6>/dev/null
1283
1284
1285ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286ac_ls_di=`ls -di .` &&
1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288  as_fn_error $? "working directory cannot be determined"
1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290  as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293# Find the source files, if location was not specified.
1294if test -z "$srcdir"; then
1295  ac_srcdir_defaulted=yes
1296  # Try the directory containing this script, then the parent directory.
1297  ac_confdir=`$as_dirname -- "$as_myself" ||
1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299	 X"$as_myself" : 'X\(//\)[^/]' \| \
1300	 X"$as_myself" : 'X\(//\)$' \| \
1301	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302$as_echo X"$as_myself" |
1303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)[^/].*/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\/\)$/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\).*/{
1316	    s//\1/
1317	    q
1318	  }
1319	  s/.*/./; q'`
1320  srcdir=$ac_confdir
1321  if test ! -r "$srcdir/$ac_unique_file"; then
1322    srcdir=..
1323  fi
1324else
1325  ac_srcdir_defaulted=no
1326fi
1327if test ! -r "$srcdir/$ac_unique_file"; then
1328  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330fi
1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332ac_abs_confdir=`(
1333	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334	pwd)`
1335# When building in place, set srcdir=.
1336if test "$ac_abs_confdir" = "$ac_pwd"; then
1337  srcdir=.
1338fi
1339# Remove unnecessary trailing slashes from srcdir.
1340# Double slashes in file names in object file debugging info
1341# mess up M-x gdb in Emacs.
1342case $srcdir in
1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344esac
1345for ac_var in $ac_precious_vars; do
1346  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_env_${ac_var}_value=\$${ac_var}
1348  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
1351
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356  # Omit some internal or obsolete options to make the list less imposing.
1357  # This message is too long to be a string in the A/UX 3.1 sh.
1358  cat <<_ACEOF
1359\`configure' configures pgpool-II 4.3.0 to adapt to many kinds of systems.
1360
1361Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE.  See below for descriptions of some of the useful variables.
1365
1366Defaults for the options are specified in brackets.
1367
1368Configuration:
1369  -h, --help              display this help and exit
1370      --help=short        display options specific to this package
1371      --help=recursive    display the short help of all the included packages
1372  -V, --version           display version information and exit
1373  -q, --quiet, --silent   do not print \`checking ...' messages
1374      --cache-file=FILE   cache test results in FILE [disabled]
1375  -C, --config-cache      alias for \`--cache-file=config.cache'
1376  -n, --no-create         do not create output files
1377      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378
1379Installation directories:
1380  --prefix=PREFIX         install architecture-independent files in PREFIX
1381                          [$ac_default_prefix]
1382  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383                          [PREFIX]
1384
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
1389
1390For better control, use the options below.
1391
1392Fine tuning of the installation directories:
1393  --bindir=DIR            user executables [EPREFIX/bin]
1394  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1395  --libexecdir=DIR        program executables [EPREFIX/libexec]
1396  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1397  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1398  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1399  --libdir=DIR            object code libraries [EPREFIX/lib]
1400  --includedir=DIR        C header files [PREFIX/include]
1401  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1402  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1403  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1404  --infodir=DIR           info documentation [DATAROOTDIR/info]
1405  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1406  --mandir=DIR            man documentation [DATAROOTDIR/man]
1407  --docdir=DIR            documentation root [DATAROOTDIR/doc/pgpool-II]
1408  --htmldir=DIR           html documentation [DOCDIR]
1409  --dvidir=DIR            dvi documentation [DOCDIR]
1410  --pdfdir=DIR            pdf documentation [DOCDIR]
1411  --psdir=DIR             ps documentation [DOCDIR]
1412_ACEOF
1413
1414  cat <<\_ACEOF
1415
1416Program names:
1417  --program-prefix=PREFIX            prepend PREFIX to installed program names
1418  --program-suffix=SUFFIX            append SUFFIX to installed program names
1419  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1420
1421System types:
1422  --build=BUILD     configure for building on BUILD [guessed]
1423  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424_ACEOF
1425fi
1426
1427if test -n "$ac_init_help"; then
1428  case $ac_init_help in
1429     short | recursive ) echo "Configuration of pgpool-II 4.3.0:";;
1430   esac
1431  cat <<\_ACEOF
1432
1433Optional Features:
1434  --disable-option-checking  ignore unrecognized --enable/--with options
1435  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437  --enable-silent-rules   less verbose build output (undo: "make V=1")
1438  --disable-silent-rules  verbose build output (undo: "make V=0")
1439  --enable-maintainer-mode
1440                          enable make rules and dependencies not useful (and
1441                          sometimes confusing) to the casual installer
1442  --enable-shared[=PKGS]  build shared libraries [default=yes]
1443  --enable-static[=PKGS]  build static libraries [default=yes]
1444  --enable-fast-install[=PKGS]
1445                          optimize for fast installation [default=yes]
1446  --disable-libtool-lock  avoid locking (might break parallel builds)
1447  --disable-float4-byval  disable float4 passed by value
1448  --disable-float8-byval  disable float8 passed by value
1449  --disable-rpath     do not embed shared library search path in executables
1450  --enable-sequence-lock  insert_lock compatible with pgpool-II 3.0 series
1451                          (until 3.0.4)
1452  --enable-table-lock     insert_lock compatible with pgpool-II 2.2 and 2.3
1453                          series
1454  --enable-cassert        build with assertion checks
1455
1456Optional Packages:
1457  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1458  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1459  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1460                          both]
1461  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1462  --with-sysroot=DIR Search for dependent libraries within DIR
1463                        (or the compiler's sysroot if not specified).
1464  --with-pgsql=DIR     site header files for PostgreSQL in DIR
1465  --with-pgsql-includedir=DIR     site header files for PostgreSQL in DIR
1466  --with-pgsql-libdir=DIR     site library files for PostgreSQL in DIR
1467  --with-pgsql-bindir=DIR     site executable files for PostgreSQL in DIR
1468  --with-sunifdef=DIR     install path for sunifdef utility
1469  --with-openssl     build with OpenSSL support
1470  --with-ldap     build with LDAP support
1471  --with-pam     build with PAM support
1472  --with-memcached=DIR     site header files for libmemcached in DIR
1473
1474Some influential environment variables:
1475  CC          C compiler command
1476  CFLAGS      C compiler flags
1477  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1478              nonstandard directory <lib dir>
1479  LIBS        libraries to pass to the linker, e.g. -l<library>
1480  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1481              you have headers in a nonstandard directory <include dir>
1482  CPP         C preprocessor
1483  YACC        The `Yet Another Compiler Compiler' implementation to use.
1484              Defaults to the first program found out of: `bison -y', `byacc',
1485              `yacc'.
1486  YFLAGS      The list of arguments that will be passed by default to $YACC.
1487              This script will default YFLAGS to the empty string to avoid a
1488              default value of `-d' given by some make applications.
1489  DOCBOOKSTYLE
1490              location of DocBook stylesheets
1491
1492Use these variables to override the choices made by `configure' or to help
1493it to find libraries and programs with nonstandard names/locations.
1494
1495Report bugs to <pgpool-hackers@pgpool.net>.
1496_ACEOF
1497ac_status=$?
1498fi
1499
1500if test "$ac_init_help" = "recursive"; then
1501  # If there are subdirs, report their specific --help.
1502  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503    test -d "$ac_dir" ||
1504      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1505      continue
1506    ac_builddir=.
1507
1508case "$ac_dir" in
1509.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510*)
1511  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1512  # A ".." for each directory in $ac_dir_suffix.
1513  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1514  case $ac_top_builddir_sub in
1515  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517  esac ;;
1518esac
1519ac_abs_top_builddir=$ac_pwd
1520ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521# for backward compatibility:
1522ac_top_builddir=$ac_top_build_prefix
1523
1524case $srcdir in
1525  .)  # We are building in place.
1526    ac_srcdir=.
1527    ac_top_srcdir=$ac_top_builddir_sub
1528    ac_abs_top_srcdir=$ac_pwd ;;
1529  [\\/]* | ?:[\\/]* )  # Absolute name.
1530    ac_srcdir=$srcdir$ac_dir_suffix;
1531    ac_top_srcdir=$srcdir
1532    ac_abs_top_srcdir=$srcdir ;;
1533  *) # Relative name.
1534    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535    ac_top_srcdir=$ac_top_build_prefix$srcdir
1536    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537esac
1538ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1539
1540    cd "$ac_dir" || { ac_status=$?; continue; }
1541    # Check for guested configure.
1542    if test -f "$ac_srcdir/configure.gnu"; then
1543      echo &&
1544      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545    elif test -f "$ac_srcdir/configure"; then
1546      echo &&
1547      $SHELL "$ac_srcdir/configure" --help=recursive
1548    else
1549      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550    fi || ac_status=$?
1551    cd "$ac_pwd" || { ac_status=$?; break; }
1552  done
1553fi
1554
1555test -n "$ac_init_help" && exit $ac_status
1556if $ac_init_version; then
1557  cat <<\_ACEOF
1558pgpool-II configure 4.3.0
1559generated by GNU Autoconf 2.69
1560
1561Copyright (C) 2012 Free Software Foundation, Inc.
1562This configure script is free software; the Free Software Foundation
1563gives unlimited permission to copy, distribute and modify it.
1564_ACEOF
1565  exit
1566fi
1567
1568## ------------------------ ##
1569## Autoconf initialization. ##
1570## ------------------------ ##
1571
1572# ac_fn_c_try_compile LINENO
1573# --------------------------
1574# Try to compile conftest.$ac_ext, and return whether this succeeded.
1575ac_fn_c_try_compile ()
1576{
1577  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578  rm -f conftest.$ac_objext
1579  if { { ac_try="$ac_compile"
1580case "(($ac_try" in
1581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582  *) ac_try_echo=$ac_try;;
1583esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5
1586  (eval "$ac_compile") 2>conftest.err
1587  ac_status=$?
1588  if test -s conftest.err; then
1589    grep -v '^ *+' conftest.err >conftest.er1
1590    cat conftest.er1 >&5
1591    mv -f conftest.er1 conftest.err
1592  fi
1593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594  test $ac_status = 0; } && {
1595	 test -z "$ac_c_werror_flag" ||
1596	 test ! -s conftest.err
1597       } && test -s conftest.$ac_objext; then :
1598  ac_retval=0
1599else
1600  $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
1602
1603	ac_retval=1
1604fi
1605  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606  as_fn_set_status $ac_retval
1607
1608} # ac_fn_c_try_compile
1609
1610# ac_fn_c_try_link LINENO
1611# -----------------------
1612# Try to link conftest.$ac_ext, and return whether this succeeded.
1613ac_fn_c_try_link ()
1614{
1615  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616  rm -f conftest.$ac_objext conftest$ac_exeext
1617  if { { ac_try="$ac_link"
1618case "(($ac_try" in
1619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620  *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624  (eval "$ac_link") 2>conftest.err
1625  ac_status=$?
1626  if test -s conftest.err; then
1627    grep -v '^ *+' conftest.err >conftest.er1
1628    cat conftest.er1 >&5
1629    mv -f conftest.er1 conftest.err
1630  fi
1631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632  test $ac_status = 0; } && {
1633	 test -z "$ac_c_werror_flag" ||
1634	 test ! -s conftest.err
1635       } && test -s conftest$ac_exeext && {
1636	 test "$cross_compiling" = yes ||
1637	 test -x conftest$ac_exeext
1638       }; then :
1639  ac_retval=0
1640else
1641  $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644	ac_retval=1
1645fi
1646  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1647  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1648  # interfere with the next link command; also delete a directory that is
1649  # left behind by Apple's compiler.  We do this before executing the actions.
1650  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1651  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652  as_fn_set_status $ac_retval
1653
1654} # ac_fn_c_try_link
1655
1656# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1657# -------------------------------------------------------
1658# Tests whether HEADER exists and can be compiled using the include files in
1659# INCLUDES, setting the cache variable VAR accordingly.
1660ac_fn_c_check_header_compile ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664$as_echo_n "checking for $2... " >&6; }
1665if eval \${$3+:} false; then :
1666  $as_echo_n "(cached) " >&6
1667else
1668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669/* end confdefs.h.  */
1670$4
1671#include <$2>
1672_ACEOF
1673if ac_fn_c_try_compile "$LINENO"; then :
1674  eval "$3=yes"
1675else
1676  eval "$3=no"
1677fi
1678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679fi
1680eval ac_res=\$$3
1681	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682$as_echo "$ac_res" >&6; }
1683  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685} # ac_fn_c_check_header_compile
1686
1687# ac_fn_c_try_cpp LINENO
1688# ----------------------
1689# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_c_try_cpp ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  if { { ac_try="$ac_cpp conftest.$ac_ext"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } > conftest.i && {
1709	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1710	 test ! -s conftest.err
1711       }; then :
1712  ac_retval=0
1713else
1714  $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717    ac_retval=1
1718fi
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_cpp
1723
1724# ac_fn_c_try_run LINENO
1725# ----------------------
1726# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1727# that executables *can* be run.
1728ac_fn_c_try_run ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  if { { ac_try="$ac_link"
1732case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_link") 2>&5
1739  ac_status=$?
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1742  { { case "(($ac_try" in
1743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744  *) ac_try_echo=$ac_try;;
1745esac
1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747$as_echo "$ac_try_echo"; } >&5
1748  (eval "$ac_try") 2>&5
1749  ac_status=$?
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; }; }; then :
1752  ac_retval=0
1753else
1754  $as_echo "$as_me: program exited with status $ac_status" >&5
1755       $as_echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758       ac_retval=$ac_status
1759fi
1760  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762  as_fn_set_status $ac_retval
1763
1764} # ac_fn_c_try_run
1765
1766# ac_fn_c_check_func LINENO FUNC VAR
1767# ----------------------------------
1768# Tests whether FUNC exists, setting the cache variable VAR accordingly
1769ac_fn_c_check_func ()
1770{
1771  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773$as_echo_n "checking for $2... " >&6; }
1774if eval \${$3+:} false; then :
1775  $as_echo_n "(cached) " >&6
1776else
1777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778/* end confdefs.h.  */
1779/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1780   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1781#define $2 innocuous_$2
1782
1783/* System header to define __stub macros and hopefully few prototypes,
1784    which can conflict with char $2 (); below.
1785    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1786    <limits.h> exists even on freestanding compilers.  */
1787
1788#ifdef __STDC__
1789# include <limits.h>
1790#else
1791# include <assert.h>
1792#endif
1793
1794#undef $2
1795
1796/* Override any GCC internal prototype to avoid an error.
1797   Use char because int might match the return type of a GCC
1798   builtin and then its argument prototype would still apply.  */
1799#ifdef __cplusplus
1800extern "C"
1801#endif
1802char $2 ();
1803/* The GNU C library defines this for functions which it implements
1804    to always fail with ENOSYS.  Some functions are actually named
1805    something starting with __ and the normal name is an alias.  */
1806#if defined __stub_$2 || defined __stub___$2
1807choke me
1808#endif
1809
1810int
1811main ()
1812{
1813return $2 ();
1814  ;
1815  return 0;
1816}
1817_ACEOF
1818if ac_fn_c_try_link "$LINENO"; then :
1819  eval "$3=yes"
1820else
1821  eval "$3=no"
1822fi
1823rm -f core conftest.err conftest.$ac_objext \
1824    conftest$ac_exeext conftest.$ac_ext
1825fi
1826eval ac_res=\$$3
1827	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828$as_echo "$ac_res" >&6; }
1829  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830
1831} # ac_fn_c_check_func
1832
1833# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1834# -------------------------------------------------------
1835# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1836# the include files in INCLUDES and setting the cache variable VAR
1837# accordingly.
1838ac_fn_c_check_header_mongrel ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  if eval \${$3+:} false; then :
1842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843$as_echo_n "checking for $2... " >&6; }
1844if eval \${$3+:} false; then :
1845  $as_echo_n "(cached) " >&6
1846fi
1847eval ac_res=\$$3
1848	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849$as_echo "$ac_res" >&6; }
1850else
1851  # Is the header compilable?
1852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1853$as_echo_n "checking $2 usability... " >&6; }
1854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h.  */
1856$4
1857#include <$2>
1858_ACEOF
1859if ac_fn_c_try_compile "$LINENO"; then :
1860  ac_header_compiler=yes
1861else
1862  ac_header_compiler=no
1863fi
1864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1866$as_echo "$ac_header_compiler" >&6; }
1867
1868# Is the header present?
1869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1870$as_echo_n "checking $2 presence... " >&6; }
1871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872/* end confdefs.h.  */
1873#include <$2>
1874_ACEOF
1875if ac_fn_c_try_cpp "$LINENO"; then :
1876  ac_header_preproc=yes
1877else
1878  ac_header_preproc=no
1879fi
1880rm -f conftest.err conftest.i conftest.$ac_ext
1881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1882$as_echo "$ac_header_preproc" >&6; }
1883
1884# So?  What about this header?
1885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1886  yes:no: )
1887    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1888$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1889    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1891    ;;
1892  no:yes:* )
1893    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1894$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1895    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1896$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1897    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1898$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1899    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1900$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1901    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1902$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1903( $as_echo "## ---------------------------------------- ##
1904## Report this to pgpool-hackers@pgpool.net ##
1905## ---------------------------------------- ##"
1906     ) | sed "s/^/$as_me: WARNING:     /" >&2
1907    ;;
1908esac
1909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910$as_echo_n "checking for $2... " >&6; }
1911if eval \${$3+:} false; then :
1912  $as_echo_n "(cached) " >&6
1913else
1914  eval "$3=\$ac_header_compiler"
1915fi
1916eval ac_res=\$$3
1917	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918$as_echo "$ac_res" >&6; }
1919fi
1920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_header_mongrel
1923
1924# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1925# -------------------------------------------
1926# Tests whether TYPE exists after having included INCLUDES, setting cache
1927# variable VAR accordingly.
1928ac_fn_c_check_type ()
1929{
1930  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932$as_echo_n "checking for $2... " >&6; }
1933if eval \${$3+:} false; then :
1934  $as_echo_n "(cached) " >&6
1935else
1936  eval "$3=no"
1937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h.  */
1939$4
1940int
1941main ()
1942{
1943if (sizeof ($2))
1944	 return 0;
1945  ;
1946  return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_compile "$LINENO"; then :
1950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h.  */
1952$4
1953int
1954main ()
1955{
1956if (sizeof (($2)))
1957	    return 0;
1958  ;
1959  return 0;
1960}
1961_ACEOF
1962if ac_fn_c_try_compile "$LINENO"; then :
1963
1964else
1965  eval "$3=yes"
1966fi
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968fi
1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970fi
1971eval ac_res=\$$3
1972	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973$as_echo "$ac_res" >&6; }
1974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976} # ac_fn_c_check_type
1977
1978# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1979# --------------------------------------------
1980# Tries to find the compile-time value of EXPR in a program that includes
1981# INCLUDES, setting VAR accordingly. Returns whether the value could be
1982# computed
1983ac_fn_c_compute_int ()
1984{
1985  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986  if test "$cross_compiling" = yes; then
1987    # Depending upon the size, compute the lo and hi bounds.
1988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h.  */
1990$4
1991int
1992main ()
1993{
1994static int test_array [1 - 2 * !(($2) >= 0)];
1995test_array [0] = 0;
1996return test_array [0];
1997
1998  ;
1999  return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003  ac_lo=0 ac_mid=0
2004  while :; do
2005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h.  */
2007$4
2008int
2009main ()
2010{
2011static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2012test_array [0] = 0;
2013return test_array [0];
2014
2015  ;
2016  return 0;
2017}
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020  ac_hi=$ac_mid; break
2021else
2022  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2023			if test $ac_lo -le $ac_mid; then
2024			  ac_lo= ac_hi=
2025			  break
2026			fi
2027			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030  done
2031else
2032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034$4
2035int
2036main ()
2037{
2038static int test_array [1 - 2 * !(($2) < 0)];
2039test_array [0] = 0;
2040return test_array [0];
2041
2042  ;
2043  return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047  ac_hi=-1 ac_mid=-1
2048  while :; do
2049    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050/* end confdefs.h.  */
2051$4
2052int
2053main ()
2054{
2055static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2056test_array [0] = 0;
2057return test_array [0];
2058
2059  ;
2060  return 0;
2061}
2062_ACEOF
2063if ac_fn_c_try_compile "$LINENO"; then :
2064  ac_lo=$ac_mid; break
2065else
2066  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2067			if test $ac_mid -le $ac_hi; then
2068			  ac_lo= ac_hi=
2069			  break
2070			fi
2071			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074  done
2075else
2076  ac_lo= ac_hi=
2077fi
2078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081# Binary search between lo and hi bounds.
2082while test "x$ac_lo" != "x$ac_hi"; do
2083  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h.  */
2086$4
2087int
2088main ()
2089{
2090static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2091test_array [0] = 0;
2092return test_array [0];
2093
2094  ;
2095  return 0;
2096}
2097_ACEOF
2098if ac_fn_c_try_compile "$LINENO"; then :
2099  ac_hi=$ac_mid
2100else
2101  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104done
2105case $ac_lo in #((
2106?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2107'') ac_retval=1 ;;
2108esac
2109  else
2110    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h.  */
2112$4
2113static long int longval () { return $2; }
2114static unsigned long int ulongval () { return $2; }
2115#include <stdio.h>
2116#include <stdlib.h>
2117int
2118main ()
2119{
2120
2121  FILE *f = fopen ("conftest.val", "w");
2122  if (! f)
2123    return 1;
2124  if (($2) < 0)
2125    {
2126      long int i = longval ();
2127      if (i != ($2))
2128	return 1;
2129      fprintf (f, "%ld", i);
2130    }
2131  else
2132    {
2133      unsigned long int i = ulongval ();
2134      if (i != ($2))
2135	return 1;
2136      fprintf (f, "%lu", i);
2137    }
2138  /* Do not output a trailing newline, as this causes \r\n confusion
2139     on some platforms.  */
2140  return ferror (f) || fclose (f) != 0;
2141
2142  ;
2143  return 0;
2144}
2145_ACEOF
2146if ac_fn_c_try_run "$LINENO"; then :
2147  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2148else
2149  ac_retval=1
2150fi
2151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2152  conftest.$ac_objext conftest.beam conftest.$ac_ext
2153rm -f conftest.val
2154
2155  fi
2156  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157  as_fn_set_status $ac_retval
2158
2159} # ac_fn_c_compute_int
2160
2161# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2162# ----------------------------------------------------
2163# Tries to find if the field MEMBER exists in type AGGR, after including
2164# INCLUDES, setting cache variable VAR accordingly.
2165ac_fn_c_check_member ()
2166{
2167  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2169$as_echo_n "checking for $2.$3... " >&6; }
2170if eval \${$4+:} false; then :
2171  $as_echo_n "(cached) " >&6
2172else
2173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h.  */
2175$5
2176int
2177main ()
2178{
2179static $2 ac_aggr;
2180if (ac_aggr.$3)
2181return 0;
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187  eval "$4=yes"
2188else
2189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190/* end confdefs.h.  */
2191$5
2192int
2193main ()
2194{
2195static $2 ac_aggr;
2196if (sizeof ac_aggr.$3)
2197return 0;
2198  ;
2199  return 0;
2200}
2201_ACEOF
2202if ac_fn_c_try_compile "$LINENO"; then :
2203  eval "$4=yes"
2204else
2205  eval "$4=no"
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208fi
2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210fi
2211eval ac_res=\$$4
2212	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213$as_echo "$ac_res" >&6; }
2214  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215
2216} # ac_fn_c_check_member
2217cat >config.log <<_ACEOF
2218This file contains any messages produced by compilers while
2219running configure, to aid debugging if configure makes a mistake.
2220
2221It was created by pgpool-II $as_me 4.3.0, which was
2222generated by GNU Autoconf 2.69.  Invocation command line was
2223
2224  $ $0 $@
2225
2226_ACEOF
2227exec 5>>config.log
2228{
2229cat <<_ASUNAME
2230## --------- ##
2231## Platform. ##
2232## --------- ##
2233
2234hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2235uname -m = `(uname -m) 2>/dev/null || echo unknown`
2236uname -r = `(uname -r) 2>/dev/null || echo unknown`
2237uname -s = `(uname -s) 2>/dev/null || echo unknown`
2238uname -v = `(uname -v) 2>/dev/null || echo unknown`
2239
2240/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2241/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2242
2243/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2244/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2245/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2246/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2247/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2248/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2249/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2250
2251_ASUNAME
2252
2253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254for as_dir in $PATH
2255do
2256  IFS=$as_save_IFS
2257  test -z "$as_dir" && as_dir=.
2258    $as_echo "PATH: $as_dir"
2259  done
2260IFS=$as_save_IFS
2261
2262} >&5
2263
2264cat >&5 <<_ACEOF
2265
2266
2267## ----------- ##
2268## Core tests. ##
2269## ----------- ##
2270
2271_ACEOF
2272
2273
2274# Keep a trace of the command line.
2275# Strip out --no-create and --no-recursion so they do not pile up.
2276# Strip out --silent because we don't want to record it for future runs.
2277# Also quote any args containing shell meta-characters.
2278# Make two passes to allow for proper duplicate-argument suppression.
2279ac_configure_args=
2280ac_configure_args0=
2281ac_configure_args1=
2282ac_must_keep_next=false
2283for ac_pass in 1 2
2284do
2285  for ac_arg
2286  do
2287    case $ac_arg in
2288    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2289    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2290    | -silent | --silent | --silen | --sile | --sil)
2291      continue ;;
2292    *\'*)
2293      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2294    esac
2295    case $ac_pass in
2296    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2297    2)
2298      as_fn_append ac_configure_args1 " '$ac_arg'"
2299      if test $ac_must_keep_next = true; then
2300	ac_must_keep_next=false # Got value, back to normal.
2301      else
2302	case $ac_arg in
2303	  *=* | --config-cache | -C | -disable-* | --disable-* \
2304	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2305	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2306	  | -with-* | --with-* | -without-* | --without-* | --x)
2307	    case "$ac_configure_args0 " in
2308	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2309	    esac
2310	    ;;
2311	  -* ) ac_must_keep_next=true ;;
2312	esac
2313      fi
2314      as_fn_append ac_configure_args " '$ac_arg'"
2315      ;;
2316    esac
2317  done
2318done
2319{ ac_configure_args0=; unset ac_configure_args0;}
2320{ ac_configure_args1=; unset ac_configure_args1;}
2321
2322# When interrupted or exit'd, cleanup temporary files, and complete
2323# config.log.  We remove comments because anyway the quotes in there
2324# would cause problems or look ugly.
2325# WARNING: Use '\'' to represent an apostrophe within the trap.
2326# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2327trap 'exit_status=$?
2328  # Save into config.log some information that might help in debugging.
2329  {
2330    echo
2331
2332    $as_echo "## ---------------- ##
2333## Cache variables. ##
2334## ---------------- ##"
2335    echo
2336    # The following way of writing the cache mishandles newlines in values,
2337(
2338  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2339    eval ac_val=\$$ac_var
2340    case $ac_val in #(
2341    *${as_nl}*)
2342      case $ac_var in #(
2343      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2344$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2345      esac
2346      case $ac_var in #(
2347      _ | IFS | as_nl) ;; #(
2348      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2349      *) { eval $ac_var=; unset $ac_var;} ;;
2350      esac ;;
2351    esac
2352  done
2353  (set) 2>&1 |
2354    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2355    *${as_nl}ac_space=\ *)
2356      sed -n \
2357	"s/'\''/'\''\\\\'\'''\''/g;
2358	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2359      ;; #(
2360    *)
2361      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2362      ;;
2363    esac |
2364    sort
2365)
2366    echo
2367
2368    $as_echo "## ----------------- ##
2369## Output variables. ##
2370## ----------------- ##"
2371    echo
2372    for ac_var in $ac_subst_vars
2373    do
2374      eval ac_val=\$$ac_var
2375      case $ac_val in
2376      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2377      esac
2378      $as_echo "$ac_var='\''$ac_val'\''"
2379    done | sort
2380    echo
2381
2382    if test -n "$ac_subst_files"; then
2383      $as_echo "## ------------------- ##
2384## File substitutions. ##
2385## ------------------- ##"
2386      echo
2387      for ac_var in $ac_subst_files
2388      do
2389	eval ac_val=\$$ac_var
2390	case $ac_val in
2391	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2392	esac
2393	$as_echo "$ac_var='\''$ac_val'\''"
2394      done | sort
2395      echo
2396    fi
2397
2398    if test -s confdefs.h; then
2399      $as_echo "## ----------- ##
2400## confdefs.h. ##
2401## ----------- ##"
2402      echo
2403      cat confdefs.h
2404      echo
2405    fi
2406    test "$ac_signal" != 0 &&
2407      $as_echo "$as_me: caught signal $ac_signal"
2408    $as_echo "$as_me: exit $exit_status"
2409  } >&5
2410  rm -f core *.core core.conftest.* &&
2411    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2412    exit $exit_status
2413' 0
2414for ac_signal in 1 2 13 15; do
2415  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2416done
2417ac_signal=0
2418
2419# confdefs.h avoids OS command line length limits that DEFS can exceed.
2420rm -f -r conftest* confdefs.h
2421
2422$as_echo "/* confdefs.h */" > confdefs.h
2423
2424# Predefined preprocessor variables.
2425
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE_NAME "$PACKAGE_NAME"
2428_ACEOF
2429
2430cat >>confdefs.h <<_ACEOF
2431#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2432_ACEOF
2433
2434cat >>confdefs.h <<_ACEOF
2435#define PACKAGE_VERSION "$PACKAGE_VERSION"
2436_ACEOF
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE_STRING "$PACKAGE_STRING"
2440_ACEOF
2441
2442cat >>confdefs.h <<_ACEOF
2443#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2444_ACEOF
2445
2446cat >>confdefs.h <<_ACEOF
2447#define PACKAGE_URL "$PACKAGE_URL"
2448_ACEOF
2449
2450
2451# Let the site file select an alternate cache file if it wants to.
2452# Prefer an explicitly selected file to automatically selected ones.
2453ac_site_file1=NONE
2454ac_site_file2=NONE
2455if test -n "$CONFIG_SITE"; then
2456  # We do not want a PATH search for config.site.
2457  case $CONFIG_SITE in #((
2458    -*)  ac_site_file1=./$CONFIG_SITE;;
2459    */*) ac_site_file1=$CONFIG_SITE;;
2460    *)   ac_site_file1=./$CONFIG_SITE;;
2461  esac
2462elif test "x$prefix" != xNONE; then
2463  ac_site_file1=$prefix/share/config.site
2464  ac_site_file2=$prefix/etc/config.site
2465else
2466  ac_site_file1=$ac_default_prefix/share/config.site
2467  ac_site_file2=$ac_default_prefix/etc/config.site
2468fi
2469for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2470do
2471  test "x$ac_site_file" = xNONE && continue
2472  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2473    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2474$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2475    sed 's/^/| /' "$ac_site_file" >&5
2476    . "$ac_site_file" \
2477      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2479as_fn_error $? "failed to load site script $ac_site_file
2480See \`config.log' for more details" "$LINENO" 5; }
2481  fi
2482done
2483
2484if test -r "$cache_file"; then
2485  # Some versions of bash will fail to source /dev/null (special files
2486  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2487  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2488    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2489$as_echo "$as_me: loading cache $cache_file" >&6;}
2490    case $cache_file in
2491      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2492      *)                      . "./$cache_file";;
2493    esac
2494  fi
2495else
2496  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2497$as_echo "$as_me: creating cache $cache_file" >&6;}
2498  >$cache_file
2499fi
2500
2501# Check that the precious variables saved in the cache have kept the same
2502# value.
2503ac_cache_corrupted=false
2504for ac_var in $ac_precious_vars; do
2505  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2506  eval ac_new_set=\$ac_env_${ac_var}_set
2507  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2508  eval ac_new_val=\$ac_env_${ac_var}_value
2509  case $ac_old_set,$ac_new_set in
2510    set,)
2511      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2512$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2513      ac_cache_corrupted=: ;;
2514    ,set)
2515      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2516$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2517      ac_cache_corrupted=: ;;
2518    ,);;
2519    *)
2520      if test "x$ac_old_val" != "x$ac_new_val"; then
2521	# differences in whitespace do not lead to failure.
2522	ac_old_val_w=`echo x $ac_old_val`
2523	ac_new_val_w=`echo x $ac_new_val`
2524	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2525	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2526$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2527	  ac_cache_corrupted=:
2528	else
2529	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2530$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2531	  eval $ac_var=\$ac_old_val
2532	fi
2533	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2534$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2535	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2536$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2537      fi;;
2538  esac
2539  # Pass precious variables to config.status.
2540  if test "$ac_new_set" = set; then
2541    case $ac_new_val in
2542    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2543    *) ac_arg=$ac_var=$ac_new_val ;;
2544    esac
2545    case " $ac_configure_args " in
2546      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2547      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2548    esac
2549  fi
2550done
2551if $ac_cache_corrupted; then
2552  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2555$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2556  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2557fi
2558## -------------------- ##
2559## Main body of script. ##
2560## -------------------- ##
2561
2562ac_ext=c
2563ac_cpp='$CPP $CPPFLAGS'
2564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567
2568
2569
2570ac_ext=c
2571ac_cpp='$CPP $CPPFLAGS'
2572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575if test -n "$ac_tool_prefix"; then
2576  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2577set dummy ${ac_tool_prefix}gcc; ac_word=$2
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579$as_echo_n "checking for $ac_word... " >&6; }
2580if ${ac_cv_prog_CC+:} false; then :
2581  $as_echo_n "(cached) " >&6
2582else
2583  if test -n "$CC"; then
2584  ac_cv_prog_CC="$CC" # Let the user override the test.
2585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589  IFS=$as_save_IFS
2590  test -z "$as_dir" && as_dir=.
2591    for ac_exec_ext in '' $ac_executable_extensions; do
2592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595    break 2
2596  fi
2597done
2598  done
2599IFS=$as_save_IFS
2600
2601fi
2602fi
2603CC=$ac_cv_prog_CC
2604if test -n "$CC"; then
2605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2606$as_echo "$CC" >&6; }
2607else
2608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609$as_echo "no" >&6; }
2610fi
2611
2612
2613fi
2614if test -z "$ac_cv_prog_CC"; then
2615  ac_ct_CC=$CC
2616  # Extract the first word of "gcc", so it can be a program name with args.
2617set dummy gcc; ac_word=$2
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619$as_echo_n "checking for $ac_word... " >&6; }
2620if ${ac_cv_prog_ac_ct_CC+:} false; then :
2621  $as_echo_n "(cached) " >&6
2622else
2623  if test -n "$ac_ct_CC"; then
2624  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2625else
2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH
2628do
2629  IFS=$as_save_IFS
2630  test -z "$as_dir" && as_dir=.
2631    for ac_exec_ext in '' $ac_executable_extensions; do
2632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633    ac_cv_prog_ac_ct_CC="gcc"
2634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635    break 2
2636  fi
2637done
2638  done
2639IFS=$as_save_IFS
2640
2641fi
2642fi
2643ac_ct_CC=$ac_cv_prog_ac_ct_CC
2644if test -n "$ac_ct_CC"; then
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2646$as_echo "$ac_ct_CC" >&6; }
2647else
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649$as_echo "no" >&6; }
2650fi
2651
2652  if test "x$ac_ct_CC" = x; then
2653    CC=""
2654  else
2655    case $cross_compiling:$ac_tool_warned in
2656yes:)
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2659ac_tool_warned=yes ;;
2660esac
2661    CC=$ac_ct_CC
2662  fi
2663else
2664  CC="$ac_cv_prog_CC"
2665fi
2666
2667if test -z "$CC"; then
2668          if test -n "$ac_tool_prefix"; then
2669    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2670set dummy ${ac_tool_prefix}cc; ac_word=$2
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672$as_echo_n "checking for $ac_word... " >&6; }
2673if ${ac_cv_prog_CC+:} false; then :
2674  $as_echo_n "(cached) " >&6
2675else
2676  if test -n "$CC"; then
2677  ac_cv_prog_CC="$CC" # Let the user override the test.
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682  IFS=$as_save_IFS
2683  test -z "$as_dir" && as_dir=.
2684    for ac_exec_ext in '' $ac_executable_extensions; do
2685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686    ac_cv_prog_CC="${ac_tool_prefix}cc"
2687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688    break 2
2689  fi
2690done
2691  done
2692IFS=$as_save_IFS
2693
2694fi
2695fi
2696CC=$ac_cv_prog_CC
2697if test -n "$CC"; then
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2699$as_echo "$CC" >&6; }
2700else
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702$as_echo "no" >&6; }
2703fi
2704
2705
2706  fi
2707fi
2708if test -z "$CC"; then
2709  # Extract the first word of "cc", so it can be a program name with args.
2710set dummy cc; ac_word=$2
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712$as_echo_n "checking for $ac_word... " >&6; }
2713if ${ac_cv_prog_CC+:} false; then :
2714  $as_echo_n "(cached) " >&6
2715else
2716  if test -n "$CC"; then
2717  ac_cv_prog_CC="$CC" # Let the user override the test.
2718else
2719  ac_prog_rejected=no
2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723  IFS=$as_save_IFS
2724  test -z "$as_dir" && as_dir=.
2725    for ac_exec_ext in '' $ac_executable_extensions; do
2726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2728       ac_prog_rejected=yes
2729       continue
2730     fi
2731    ac_cv_prog_CC="cc"
2732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733    break 2
2734  fi
2735done
2736  done
2737IFS=$as_save_IFS
2738
2739if test $ac_prog_rejected = yes; then
2740  # We found a bogon in the path, so make sure we never use it.
2741  set dummy $ac_cv_prog_CC
2742  shift
2743  if test $# != 0; then
2744    # We chose a different compiler from the bogus one.
2745    # However, it has the same basename, so the bogon will be chosen
2746    # first if we set CC to just the basename; use the full file name.
2747    shift
2748    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2749  fi
2750fi
2751fi
2752fi
2753CC=$ac_cv_prog_CC
2754if test -n "$CC"; then
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2756$as_echo "$CC" >&6; }
2757else
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
2760fi
2761
2762
2763fi
2764if test -z "$CC"; then
2765  if test -n "$ac_tool_prefix"; then
2766  for ac_prog in cl.exe
2767  do
2768    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2769set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
2772if ${ac_cv_prog_CC+:} false; then :
2773  $as_echo_n "(cached) " >&6
2774else
2775  if test -n "$CC"; then
2776  ac_cv_prog_CC="$CC" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781  IFS=$as_save_IFS
2782  test -z "$as_dir" && as_dir=.
2783    for ac_exec_ext in '' $ac_executable_extensions; do
2784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787    break 2
2788  fi
2789done
2790  done
2791IFS=$as_save_IFS
2792
2793fi
2794fi
2795CC=$ac_cv_prog_CC
2796if test -n "$CC"; then
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798$as_echo "$CC" >&6; }
2799else
2800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802fi
2803
2804
2805    test -n "$CC" && break
2806  done
2807fi
2808if test -z "$CC"; then
2809  ac_ct_CC=$CC
2810  for ac_prog in cl.exe
2811do
2812  # Extract the first word of "$ac_prog", so it can be a program name with args.
2813set dummy $ac_prog; ac_word=$2
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815$as_echo_n "checking for $ac_word... " >&6; }
2816if ${ac_cv_prog_ac_ct_CC+:} false; then :
2817  $as_echo_n "(cached) " >&6
2818else
2819  if test -n "$ac_ct_CC"; then
2820  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2821else
2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825  IFS=$as_save_IFS
2826  test -z "$as_dir" && as_dir=.
2827    for ac_exec_ext in '' $ac_executable_extensions; do
2828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829    ac_cv_prog_ac_ct_CC="$ac_prog"
2830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831    break 2
2832  fi
2833done
2834  done
2835IFS=$as_save_IFS
2836
2837fi
2838fi
2839ac_ct_CC=$ac_cv_prog_ac_ct_CC
2840if test -n "$ac_ct_CC"; then
2841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2842$as_echo "$ac_ct_CC" >&6; }
2843else
2844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845$as_echo "no" >&6; }
2846fi
2847
2848
2849  test -n "$ac_ct_CC" && break
2850done
2851
2852  if test "x$ac_ct_CC" = x; then
2853    CC=""
2854  else
2855    case $cross_compiling:$ac_tool_warned in
2856yes:)
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2859ac_tool_warned=yes ;;
2860esac
2861    CC=$ac_ct_CC
2862  fi
2863fi
2864
2865fi
2866
2867
2868test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2870as_fn_error $? "no acceptable C compiler found in \$PATH
2871See \`config.log' for more details" "$LINENO" 5; }
2872
2873# Provide some information about the compiler.
2874$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2875set X $ac_compile
2876ac_compiler=$2
2877for ac_option in --version -v -V -qversion; do
2878  { { ac_try="$ac_compiler $ac_option >&5"
2879case "(($ac_try" in
2880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881  *) ac_try_echo=$ac_try;;
2882esac
2883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2884$as_echo "$ac_try_echo"; } >&5
2885  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2886  ac_status=$?
2887  if test -s conftest.err; then
2888    sed '10a\
2889... rest of stderr output deleted ...
2890         10q' conftest.err >conftest.er1
2891    cat conftest.er1 >&5
2892  fi
2893  rm -f conftest.er1 conftest.err
2894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2895  test $ac_status = 0; }
2896done
2897
2898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2899/* end confdefs.h.  */
2900
2901int
2902main ()
2903{
2904
2905  ;
2906  return 0;
2907}
2908_ACEOF
2909ac_clean_files_save=$ac_clean_files
2910ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2911# Try to create an executable without -o first, disregard a.out.
2912# It will help us diagnose broken compilers, and finding out an intuition
2913# of exeext.
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2915$as_echo_n "checking whether the C compiler works... " >&6; }
2916ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2917
2918# The possible output files:
2919ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2920
2921ac_rmfiles=
2922for ac_file in $ac_files
2923do
2924  case $ac_file in
2925    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2926    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2927  esac
2928done
2929rm -f $ac_rmfiles
2930
2931if { { ac_try="$ac_link_default"
2932case "(($ac_try" in
2933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934  *) ac_try_echo=$ac_try;;
2935esac
2936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937$as_echo "$ac_try_echo"; } >&5
2938  (eval "$ac_link_default") 2>&5
2939  ac_status=$?
2940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2941  test $ac_status = 0; }; then :
2942  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2943# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2944# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2945# so that the user can short-circuit this test for compilers unknown to
2946# Autoconf.
2947for ac_file in $ac_files ''
2948do
2949  test -f "$ac_file" || continue
2950  case $ac_file in
2951    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2952	;;
2953    [ab].out )
2954	# We found the default executable, but exeext='' is most
2955	# certainly right.
2956	break;;
2957    *.* )
2958	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2959	then :; else
2960	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2961	fi
2962	# We set ac_cv_exeext here because the later test for it is not
2963	# safe: cross compilers may not add the suffix if given an `-o'
2964	# argument, so we may need to know it at that point already.
2965	# Even if this section looks crufty: it has the advantage of
2966	# actually working.
2967	break;;
2968    * )
2969	break;;
2970  esac
2971done
2972test "$ac_cv_exeext" = no && ac_cv_exeext=
2973
2974else
2975  ac_file=''
2976fi
2977if test -z "$ac_file"; then :
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979$as_echo "no" >&6; }
2980$as_echo "$as_me: failed program was:" >&5
2981sed 's/^/| /' conftest.$ac_ext >&5
2982
2983{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985as_fn_error 77 "C compiler cannot create executables
2986See \`config.log' for more details" "$LINENO" 5; }
2987else
2988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2989$as_echo "yes" >&6; }
2990fi
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2992$as_echo_n "checking for C compiler default output file name... " >&6; }
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2994$as_echo "$ac_file" >&6; }
2995ac_exeext=$ac_cv_exeext
2996
2997rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2998ac_clean_files=$ac_clean_files_save
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3000$as_echo_n "checking for suffix of executables... " >&6; }
3001if { { ac_try="$ac_link"
3002case "(($ac_try" in
3003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004  *) ac_try_echo=$ac_try;;
3005esac
3006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007$as_echo "$ac_try_echo"; } >&5
3008  (eval "$ac_link") 2>&5
3009  ac_status=$?
3010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011  test $ac_status = 0; }; then :
3012  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3013# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3014# work properly (i.e., refer to `conftest.exe'), while it won't with
3015# `rm'.
3016for ac_file in conftest.exe conftest conftest.*; do
3017  test -f "$ac_file" || continue
3018  case $ac_file in
3019    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3020    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3021	  break;;
3022    * ) break;;
3023  esac
3024done
3025else
3026  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3029See \`config.log' for more details" "$LINENO" 5; }
3030fi
3031rm -f conftest conftest$ac_cv_exeext
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3033$as_echo "$ac_cv_exeext" >&6; }
3034
3035rm -f conftest.$ac_ext
3036EXEEXT=$ac_cv_exeext
3037ac_exeext=$EXEEXT
3038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039/* end confdefs.h.  */
3040#include <stdio.h>
3041int
3042main ()
3043{
3044FILE *f = fopen ("conftest.out", "w");
3045 return ferror (f) || fclose (f) != 0;
3046
3047  ;
3048  return 0;
3049}
3050_ACEOF
3051ac_clean_files="$ac_clean_files conftest.out"
3052# Check that the compiler produces executables we can run.  If not, either
3053# the compiler is broken, or we cross compile.
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3055$as_echo_n "checking whether we are cross compiling... " >&6; }
3056if test "$cross_compiling" != yes; then
3057  { { ac_try="$ac_link"
3058case "(($ac_try" in
3059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060  *) ac_try_echo=$ac_try;;
3061esac
3062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063$as_echo "$ac_try_echo"; } >&5
3064  (eval "$ac_link") 2>&5
3065  ac_status=$?
3066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067  test $ac_status = 0; }
3068  if { ac_try='./conftest$ac_cv_exeext'
3069  { { case "(($ac_try" in
3070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071  *) ac_try_echo=$ac_try;;
3072esac
3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074$as_echo "$ac_try_echo"; } >&5
3075  (eval "$ac_try") 2>&5
3076  ac_status=$?
3077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078  test $ac_status = 0; }; }; then
3079    cross_compiling=no
3080  else
3081    if test "$cross_compiling" = maybe; then
3082	cross_compiling=yes
3083    else
3084	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086as_fn_error $? "cannot run C compiled programs.
3087If you meant to cross compile, use \`--host'.
3088See \`config.log' for more details" "$LINENO" 5; }
3089    fi
3090  fi
3091fi
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3093$as_echo "$cross_compiling" >&6; }
3094
3095rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3096ac_clean_files=$ac_clean_files_save
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3098$as_echo_n "checking for suffix of object files... " >&6; }
3099if ${ac_cv_objext+:} false; then :
3100  $as_echo_n "(cached) " >&6
3101else
3102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103/* end confdefs.h.  */
3104
3105int
3106main ()
3107{
3108
3109  ;
3110  return 0;
3111}
3112_ACEOF
3113rm -f conftest.o conftest.obj
3114if { { ac_try="$ac_compile"
3115case "(($ac_try" in
3116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117  *) ac_try_echo=$ac_try;;
3118esac
3119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120$as_echo "$ac_try_echo"; } >&5
3121  (eval "$ac_compile") 2>&5
3122  ac_status=$?
3123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124  test $ac_status = 0; }; then :
3125  for ac_file in conftest.o conftest.obj conftest.*; do
3126  test -f "$ac_file" || continue;
3127  case $ac_file in
3128    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3129    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3130       break;;
3131  esac
3132done
3133else
3134  $as_echo "$as_me: failed program was:" >&5
3135sed 's/^/| /' conftest.$ac_ext >&5
3136
3137{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139as_fn_error $? "cannot compute suffix of object files: cannot compile
3140See \`config.log' for more details" "$LINENO" 5; }
3141fi
3142rm -f conftest.$ac_cv_objext conftest.$ac_ext
3143fi
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3145$as_echo "$ac_cv_objext" >&6; }
3146OBJEXT=$ac_cv_objext
3147ac_objext=$OBJEXT
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3149$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3150if ${ac_cv_c_compiler_gnu+:} false; then :
3151  $as_echo_n "(cached) " >&6
3152else
3153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154/* end confdefs.h.  */
3155
3156int
3157main ()
3158{
3159#ifndef __GNUC__
3160       choke me
3161#endif
3162
3163  ;
3164  return 0;
3165}
3166_ACEOF
3167if ac_fn_c_try_compile "$LINENO"; then :
3168  ac_compiler_gnu=yes
3169else
3170  ac_compiler_gnu=no
3171fi
3172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173ac_cv_c_compiler_gnu=$ac_compiler_gnu
3174
3175fi
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3177$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3178if test $ac_compiler_gnu = yes; then
3179  GCC=yes
3180else
3181  GCC=
3182fi
3183ac_test_CFLAGS=${CFLAGS+set}
3184ac_save_CFLAGS=$CFLAGS
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3186$as_echo_n "checking whether $CC accepts -g... " >&6; }
3187if ${ac_cv_prog_cc_g+:} false; then :
3188  $as_echo_n "(cached) " >&6
3189else
3190  ac_save_c_werror_flag=$ac_c_werror_flag
3191   ac_c_werror_flag=yes
3192   ac_cv_prog_cc_g=no
3193   CFLAGS="-g"
3194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195/* end confdefs.h.  */
3196
3197int
3198main ()
3199{
3200
3201  ;
3202  return 0;
3203}
3204_ACEOF
3205if ac_fn_c_try_compile "$LINENO"; then :
3206  ac_cv_prog_cc_g=yes
3207else
3208  CFLAGS=""
3209      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210/* end confdefs.h.  */
3211
3212int
3213main ()
3214{
3215
3216  ;
3217  return 0;
3218}
3219_ACEOF
3220if ac_fn_c_try_compile "$LINENO"; then :
3221
3222else
3223  ac_c_werror_flag=$ac_save_c_werror_flag
3224	 CFLAGS="-g"
3225	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h.  */
3227
3228int
3229main ()
3230{
3231
3232  ;
3233  return 0;
3234}
3235_ACEOF
3236if ac_fn_c_try_compile "$LINENO"; then :
3237  ac_cv_prog_cc_g=yes
3238fi
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240fi
3241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242fi
3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244   ac_c_werror_flag=$ac_save_c_werror_flag
3245fi
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3247$as_echo "$ac_cv_prog_cc_g" >&6; }
3248if test "$ac_test_CFLAGS" = set; then
3249  CFLAGS=$ac_save_CFLAGS
3250elif test $ac_cv_prog_cc_g = yes; then
3251  if test "$GCC" = yes; then
3252    CFLAGS="-g -O2"
3253  else
3254    CFLAGS="-g"
3255  fi
3256else
3257  if test "$GCC" = yes; then
3258    CFLAGS="-O2"
3259  else
3260    CFLAGS=
3261  fi
3262fi
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3264$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3265if ${ac_cv_prog_cc_c89+:} false; then :
3266  $as_echo_n "(cached) " >&6
3267else
3268  ac_cv_prog_cc_c89=no
3269ac_save_CC=$CC
3270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271/* end confdefs.h.  */
3272#include <stdarg.h>
3273#include <stdio.h>
3274struct stat;
3275/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3276struct buf { int x; };
3277FILE * (*rcsopen) (struct buf *, struct stat *, int);
3278static char *e (p, i)
3279     char **p;
3280     int i;
3281{
3282  return p[i];
3283}
3284static char *f (char * (*g) (char **, int), char **p, ...)
3285{
3286  char *s;
3287  va_list v;
3288  va_start (v,p);
3289  s = g (p, va_arg (v,int));
3290  va_end (v);
3291  return s;
3292}
3293
3294/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3295   function prototypes and stuff, but not '\xHH' hex character constants.
3296   These don't provoke an error unfortunately, instead are silently treated
3297   as 'x'.  The following induces an error, until -std is added to get
3298   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3299   array size at least.  It's necessary to write '\x00'==0 to get something
3300   that's true only with -std.  */
3301int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3302
3303/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3304   inside strings and character constants.  */
3305#define FOO(x) 'x'
3306int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3307
3308int test (int i, double x);
3309struct s1 {int (*f) (int a);};
3310struct s2 {int (*f) (double a);};
3311int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3312int argc;
3313char **argv;
3314int
3315main ()
3316{
3317return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3323	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3324do
3325  CC="$ac_save_CC $ac_arg"
3326  if ac_fn_c_try_compile "$LINENO"; then :
3327  ac_cv_prog_cc_c89=$ac_arg
3328fi
3329rm -f core conftest.err conftest.$ac_objext
3330  test "x$ac_cv_prog_cc_c89" != "xno" && break
3331done
3332rm -f conftest.$ac_ext
3333CC=$ac_save_CC
3334
3335fi
3336# AC_CACHE_VAL
3337case "x$ac_cv_prog_cc_c89" in
3338  x)
3339    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3340$as_echo "none needed" >&6; } ;;
3341  xno)
3342    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3343$as_echo "unsupported" >&6; } ;;
3344  *)
3345    CC="$CC $ac_cv_prog_cc_c89"
3346    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3347$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3348esac
3349if test "x$ac_cv_prog_cc_c89" != xno; then :
3350
3351fi
3352
3353ac_ext=c
3354ac_cpp='$CPP $CPPFLAGS'
3355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3360$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3361if ${ac_cv_prog_cc_c99+:} false; then :
3362  $as_echo_n "(cached) " >&6
3363else
3364  ac_cv_prog_cc_c99=no
3365ac_save_CC=$CC
3366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367/* end confdefs.h.  */
3368#include <stdarg.h>
3369#include <stdbool.h>
3370#include <stdlib.h>
3371#include <wchar.h>
3372#include <stdio.h>
3373
3374// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3375#define debug(...) fprintf (stderr, __VA_ARGS__)
3376#define showlist(...) puts (#__VA_ARGS__)
3377#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3378static void
3379test_varargs_macros (void)
3380{
3381  int x = 1234;
3382  int y = 5678;
3383  debug ("Flag");
3384  debug ("X = %d\n", x);
3385  showlist (The first, second, and third items.);
3386  report (x>y, "x is %d but y is %d", x, y);
3387}
3388
3389// Check long long types.
3390#define BIG64 18446744073709551615ull
3391#define BIG32 4294967295ul
3392#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3393#if !BIG_OK
3394  your preprocessor is broken;
3395#endif
3396#if BIG_OK
3397#else
3398  your preprocessor is broken;
3399#endif
3400static long long int bignum = -9223372036854775807LL;
3401static unsigned long long int ubignum = BIG64;
3402
3403struct incomplete_array
3404{
3405  int datasize;
3406  double data[];
3407};
3408
3409struct named_init {
3410  int number;
3411  const wchar_t *name;
3412  double average;
3413};
3414
3415typedef const char *ccp;
3416
3417static inline int
3418test_restrict (ccp restrict text)
3419{
3420  // See if C++-style comments work.
3421  // Iterate through items via the restricted pointer.
3422  // Also check for declarations in for loops.
3423  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3424    continue;
3425  return 0;
3426}
3427
3428// Check varargs and va_copy.
3429static void
3430test_varargs (const char *format, ...)
3431{
3432  va_list args;
3433  va_start (args, format);
3434  va_list args_copy;
3435  va_copy (args_copy, args);
3436
3437  const char *str;
3438  int number;
3439  float fnumber;
3440
3441  while (*format)
3442    {
3443      switch (*format++)
3444	{
3445	case 's': // string
3446	  str = va_arg (args_copy, const char *);
3447	  break;
3448	case 'd': // int
3449	  number = va_arg (args_copy, int);
3450	  break;
3451	case 'f': // float
3452	  fnumber = va_arg (args_copy, double);
3453	  break;
3454	default:
3455	  break;
3456	}
3457    }
3458  va_end (args_copy);
3459  va_end (args);
3460}
3461
3462int
3463main ()
3464{
3465
3466  // Check bool.
3467  _Bool success = false;
3468
3469  // Check restrict.
3470  if (test_restrict ("String literal") == 0)
3471    success = true;
3472  char *restrict newvar = "Another string";
3473
3474  // Check varargs.
3475  test_varargs ("s, d' f .", "string", 65, 34.234);
3476  test_varargs_macros ();
3477
3478  // Check flexible array members.
3479  struct incomplete_array *ia =
3480    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3481  ia->datasize = 10;
3482  for (int i = 0; i < ia->datasize; ++i)
3483    ia->data[i] = i * 1.234;
3484
3485  // Check named initializers.
3486  struct named_init ni = {
3487    .number = 34,
3488    .name = L"Test wide string",
3489    .average = 543.34343,
3490  };
3491
3492  ni.number = 58;
3493
3494  int dynamic_array[ni.number];
3495  dynamic_array[ni.number - 1] = 543;
3496
3497  // work around unused variable warnings
3498  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3499	  || dynamic_array[ni.number - 1] != 543);
3500
3501  ;
3502  return 0;
3503}
3504_ACEOF
3505for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3506do
3507  CC="$ac_save_CC $ac_arg"
3508  if ac_fn_c_try_compile "$LINENO"; then :
3509  ac_cv_prog_cc_c99=$ac_arg
3510fi
3511rm -f core conftest.err conftest.$ac_objext
3512  test "x$ac_cv_prog_cc_c99" != "xno" && break
3513done
3514rm -f conftest.$ac_ext
3515CC=$ac_save_CC
3516
3517fi
3518# AC_CACHE_VAL
3519case "x$ac_cv_prog_cc_c99" in
3520  x)
3521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3522$as_echo "none needed" >&6; } ;;
3523  xno)
3524    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3525$as_echo "unsupported" >&6; } ;;
3526  *)
3527    CC="$CC $ac_cv_prog_cc_c99"
3528    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3529$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3530esac
3531if test "x$ac_cv_prog_cc_c99" != xno; then :
3532
3533fi
3534
3535
3536
3537# Error out if the compiler does not support C99, as the codebase
3538# relies on that.
3539if test "$ac_cv_prog_cc_c99" = no; then
3540    as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
3541fi
3542
3543am__api_version='1.13'
3544
3545ac_aux_dir=
3546for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3547  if test -f "$ac_dir/install-sh"; then
3548    ac_aux_dir=$ac_dir
3549    ac_install_sh="$ac_aux_dir/install-sh -c"
3550    break
3551  elif test -f "$ac_dir/install.sh"; then
3552    ac_aux_dir=$ac_dir
3553    ac_install_sh="$ac_aux_dir/install.sh -c"
3554    break
3555  elif test -f "$ac_dir/shtool"; then
3556    ac_aux_dir=$ac_dir
3557    ac_install_sh="$ac_aux_dir/shtool install -c"
3558    break
3559  fi
3560done
3561if test -z "$ac_aux_dir"; then
3562  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3563fi
3564
3565# These three variables are undocumented and unsupported,
3566# and are intended to be withdrawn in a future Autoconf release.
3567# They can cause serious problems if a builder's source tree is in a directory
3568# whose full name contains unusual characters.
3569ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3570ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3571ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3572
3573
3574# Find a good install program.  We prefer a C program (faster),
3575# so one script is as good as another.  But avoid the broken or
3576# incompatible versions:
3577# SysV /etc/install, /usr/sbin/install
3578# SunOS /usr/etc/install
3579# IRIX /sbin/install
3580# AIX /bin/install
3581# AmigaOS /C/install, which installs bootblocks on floppy discs
3582# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3583# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3584# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3585# OS/2's system install, which has a completely different semantic
3586# ./install, which can be erroneously created by make from ./install.sh.
3587# Reject install programs that cannot install multiple files.
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3589$as_echo_n "checking for a BSD-compatible install... " >&6; }
3590if test -z "$INSTALL"; then
3591if ${ac_cv_path_install+:} false; then :
3592  $as_echo_n "(cached) " >&6
3593else
3594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH
3596do
3597  IFS=$as_save_IFS
3598  test -z "$as_dir" && as_dir=.
3599    # Account for people who put trailing slashes in PATH elements.
3600case $as_dir/ in #((
3601  ./ | .// | /[cC]/* | \
3602  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3603  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3604  /usr/ucb/* ) ;;
3605  *)
3606    # OSF1 and SCO ODT 3.0 have their own names for install.
3607    # Don't use installbsd from OSF since it installs stuff as root
3608    # by default.
3609    for ac_prog in ginstall scoinst install; do
3610      for ac_exec_ext in '' $ac_executable_extensions; do
3611	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3612	  if test $ac_prog = install &&
3613	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3614	    # AIX install.  It has an incompatible calling convention.
3615	    :
3616	  elif test $ac_prog = install &&
3617	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3618	    # program-specific install script used by HP pwplus--don't use.
3619	    :
3620	  else
3621	    rm -rf conftest.one conftest.two conftest.dir
3622	    echo one > conftest.one
3623	    echo two > conftest.two
3624	    mkdir conftest.dir
3625	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3626	      test -s conftest.one && test -s conftest.two &&
3627	      test -s conftest.dir/conftest.one &&
3628	      test -s conftest.dir/conftest.two
3629	    then
3630	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3631	      break 3
3632	    fi
3633	  fi
3634	fi
3635      done
3636    done
3637    ;;
3638esac
3639
3640  done
3641IFS=$as_save_IFS
3642
3643rm -rf conftest.one conftest.two conftest.dir
3644
3645fi
3646  if test "${ac_cv_path_install+set}" = set; then
3647    INSTALL=$ac_cv_path_install
3648  else
3649    # As a last resort, use the slow shell script.  Don't cache a
3650    # value for INSTALL within a source directory, because that will
3651    # break other packages using the cache if that directory is
3652    # removed, or if the value is a relative name.
3653    INSTALL=$ac_install_sh
3654  fi
3655fi
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3657$as_echo "$INSTALL" >&6; }
3658
3659# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3660# It thinks the first close brace ends the variable substitution.
3661test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3662
3663test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3664
3665test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3666
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3668$as_echo_n "checking whether build environment is sane... " >&6; }
3669# Reject unsafe characters in $srcdir or the absolute working directory
3670# name.  Accept space and tab only in the latter.
3671am_lf='
3672'
3673case `pwd` in
3674  *[\\\"\#\$\&\'\`$am_lf]*)
3675    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3676esac
3677case $srcdir in
3678  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3679    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3680esac
3681
3682# Do 'set' in a subshell so we don't clobber the current shell's
3683# arguments.  Must try -L first in case configure is actually a
3684# symlink; some systems play weird games with the mod time of symlinks
3685# (eg FreeBSD returns the mod time of the symlink's containing
3686# directory).
3687if (
3688   am_has_slept=no
3689   for am_try in 1 2; do
3690     echo "timestamp, slept: $am_has_slept" > conftest.file
3691     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3692     if test "$*" = "X"; then
3693	# -L didn't work.
3694	set X `ls -t "$srcdir/configure" conftest.file`
3695     fi
3696     if test "$*" != "X $srcdir/configure conftest.file" \
3697	&& test "$*" != "X conftest.file $srcdir/configure"; then
3698
3699	# If neither matched, then we have a broken ls.  This can happen
3700	# if, for instance, CONFIG_SHELL is bash and it inherits a
3701	# broken ls alias from the environment.  This has actually
3702	# happened.  Such a system could not be considered "sane".
3703	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3704  alias in your environment" "$LINENO" 5
3705     fi
3706     if test "$2" = conftest.file || test $am_try -eq 2; then
3707       break
3708     fi
3709     # Just in case.
3710     sleep 1
3711     am_has_slept=yes
3712   done
3713   test "$2" = conftest.file
3714   )
3715then
3716   # Ok.
3717   :
3718else
3719   as_fn_error $? "newly created file is older than distributed files!
3720Check your system clock" "$LINENO" 5
3721fi
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3723$as_echo "yes" >&6; }
3724# If we didn't sleep, we still need to ensure time stamps of config.status and
3725# generated files are strictly newer.
3726am_sleep_pid=
3727if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3728  ( sleep 1 ) &
3729  am_sleep_pid=$!
3730fi
3731
3732rm -f conftest.file
3733
3734test "$program_prefix" != NONE &&
3735  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3736# Use a double $ so make ignores it.
3737test "$program_suffix" != NONE &&
3738  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3739# Double any \ or $.
3740# By default was `s,x,x', remove it if useless.
3741ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3742program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3743
3744# expand $ac_aux_dir to an absolute path
3745am_aux_dir=`cd $ac_aux_dir && pwd`
3746
3747if test x"${MISSING+set}" != xset; then
3748  case $am_aux_dir in
3749  *\ * | *\	*)
3750    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3751  *)
3752    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3753  esac
3754fi
3755# Use eval to expand $SHELL
3756if eval "$MISSING --is-lightweight"; then
3757  am_missing_run="$MISSING "
3758else
3759  am_missing_run=
3760  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3761$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3762fi
3763
3764if test x"${install_sh}" != xset; then
3765  case $am_aux_dir in
3766  *\ * | *\	*)
3767    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3768  *)
3769    install_sh="\${SHELL} $am_aux_dir/install-sh"
3770  esac
3771fi
3772
3773# Installed binaries are usually stripped using 'strip' when the user
3774# run "make install-strip".  However 'strip' might not be the right
3775# tool to use in cross-compilation environments, therefore Automake
3776# will honor the 'STRIP' environment variable to overrule this program.
3777if test "$cross_compiling" != no; then
3778  if test -n "$ac_tool_prefix"; then
3779  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3780set dummy ${ac_tool_prefix}strip; ac_word=$2
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782$as_echo_n "checking for $ac_word... " >&6; }
3783if ${ac_cv_prog_STRIP+:} false; then :
3784  $as_echo_n "(cached) " >&6
3785else
3786  if test -n "$STRIP"; then
3787  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3788else
3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790for as_dir in $PATH
3791do
3792  IFS=$as_save_IFS
3793  test -z "$as_dir" && as_dir=.
3794    for ac_exec_ext in '' $ac_executable_extensions; do
3795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798    break 2
3799  fi
3800done
3801  done
3802IFS=$as_save_IFS
3803
3804fi
3805fi
3806STRIP=$ac_cv_prog_STRIP
3807if test -n "$STRIP"; then
3808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3809$as_echo "$STRIP" >&6; }
3810else
3811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812$as_echo "no" >&6; }
3813fi
3814
3815
3816fi
3817if test -z "$ac_cv_prog_STRIP"; then
3818  ac_ct_STRIP=$STRIP
3819  # Extract the first word of "strip", so it can be a program name with args.
3820set dummy strip; ac_word=$2
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822$as_echo_n "checking for $ac_word... " >&6; }
3823if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3824  $as_echo_n "(cached) " >&6
3825else
3826  if test -n "$ac_ct_STRIP"; then
3827  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3828else
3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832  IFS=$as_save_IFS
3833  test -z "$as_dir" && as_dir=.
3834    for ac_exec_ext in '' $ac_executable_extensions; do
3835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3836    ac_cv_prog_ac_ct_STRIP="strip"
3837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838    break 2
3839  fi
3840done
3841  done
3842IFS=$as_save_IFS
3843
3844fi
3845fi
3846ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3847if test -n "$ac_ct_STRIP"; then
3848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3849$as_echo "$ac_ct_STRIP" >&6; }
3850else
3851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852$as_echo "no" >&6; }
3853fi
3854
3855  if test "x$ac_ct_STRIP" = x; then
3856    STRIP=":"
3857  else
3858    case $cross_compiling:$ac_tool_warned in
3859yes:)
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3862ac_tool_warned=yes ;;
3863esac
3864    STRIP=$ac_ct_STRIP
3865  fi
3866else
3867  STRIP="$ac_cv_prog_STRIP"
3868fi
3869
3870fi
3871INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3872
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3874$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3875if test -z "$MKDIR_P"; then
3876  if ${ac_cv_path_mkdir+:} false; then :
3877  $as_echo_n "(cached) " >&6
3878else
3879  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3881do
3882  IFS=$as_save_IFS
3883  test -z "$as_dir" && as_dir=.
3884    for ac_prog in mkdir gmkdir; do
3885	 for ac_exec_ext in '' $ac_executable_extensions; do
3886	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3887	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3888	     'mkdir (GNU coreutils) '* | \
3889	     'mkdir (coreutils) '* | \
3890	     'mkdir (fileutils) '4.1*)
3891	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3892	       break 3;;
3893	   esac
3894	 done
3895       done
3896  done
3897IFS=$as_save_IFS
3898
3899fi
3900
3901  test -d ./--version && rmdir ./--version
3902  if test "${ac_cv_path_mkdir+set}" = set; then
3903    MKDIR_P="$ac_cv_path_mkdir -p"
3904  else
3905    # As a last resort, use the slow shell script.  Don't cache a
3906    # value for MKDIR_P within a source directory, because that will
3907    # break other packages using the cache if that directory is
3908    # removed, or if the value is a relative name.
3909    MKDIR_P="$ac_install_sh -d"
3910  fi
3911fi
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3913$as_echo "$MKDIR_P" >&6; }
3914
3915for ac_prog in gawk mawk nawk awk
3916do
3917  # Extract the first word of "$ac_prog", so it can be a program name with args.
3918set dummy $ac_prog; ac_word=$2
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920$as_echo_n "checking for $ac_word... " >&6; }
3921if ${ac_cv_prog_AWK+:} false; then :
3922  $as_echo_n "(cached) " >&6
3923else
3924  if test -n "$AWK"; then
3925  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3926else
3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH
3929do
3930  IFS=$as_save_IFS
3931  test -z "$as_dir" && as_dir=.
3932    for ac_exec_ext in '' $ac_executable_extensions; do
3933  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934    ac_cv_prog_AWK="$ac_prog"
3935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936    break 2
3937  fi
3938done
3939  done
3940IFS=$as_save_IFS
3941
3942fi
3943fi
3944AWK=$ac_cv_prog_AWK
3945if test -n "$AWK"; then
3946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3947$as_echo "$AWK" >&6; }
3948else
3949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950$as_echo "no" >&6; }
3951fi
3952
3953
3954  test -n "$AWK" && break
3955done
3956
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3958$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3959set x ${MAKE-make}
3960ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3961if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3962  $as_echo_n "(cached) " >&6
3963else
3964  cat >conftest.make <<\_ACEOF
3965SHELL = /bin/sh
3966all:
3967	@echo '@@@%%%=$(MAKE)=@@@%%%'
3968_ACEOF
3969# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3970case `${MAKE-make} -f conftest.make 2>/dev/null` in
3971  *@@@%%%=?*=@@@%%%*)
3972    eval ac_cv_prog_make_${ac_make}_set=yes;;
3973  *)
3974    eval ac_cv_prog_make_${ac_make}_set=no;;
3975esac
3976rm -f conftest.make
3977fi
3978if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3980$as_echo "yes" >&6; }
3981  SET_MAKE=
3982else
3983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984$as_echo "no" >&6; }
3985  SET_MAKE="MAKE=${MAKE-make}"
3986fi
3987
3988rm -rf .tst 2>/dev/null
3989mkdir .tst 2>/dev/null
3990if test -d .tst; then
3991  am__leading_dot=.
3992else
3993  am__leading_dot=_
3994fi
3995rmdir .tst 2>/dev/null
3996
3997# Check whether --enable-silent-rules was given.
3998if test "${enable_silent_rules+set}" = set; then :
3999  enableval=$enable_silent_rules;
4000fi
4001
4002case $enable_silent_rules in # (((
4003  yes) AM_DEFAULT_VERBOSITY=0;;
4004   no) AM_DEFAULT_VERBOSITY=1;;
4005    *) AM_DEFAULT_VERBOSITY=1;;
4006esac
4007am_make=${MAKE-make}
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4009$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4010if ${am_cv_make_support_nested_variables+:} false; then :
4011  $as_echo_n "(cached) " >&6
4012else
4013  if $as_echo 'TRUE=$(BAR$(V))
4014BAR0=false
4015BAR1=true
4016V=1
4017am__doit:
4018	@$(TRUE)
4019.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4020  am_cv_make_support_nested_variables=yes
4021else
4022  am_cv_make_support_nested_variables=no
4023fi
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4026$as_echo "$am_cv_make_support_nested_variables" >&6; }
4027if test $am_cv_make_support_nested_variables = yes; then
4028    AM_V='$(V)'
4029  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4030else
4031  AM_V=$AM_DEFAULT_VERBOSITY
4032  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4033fi
4034AM_BACKSLASH='\'
4035
4036if test "`cd $srcdir && pwd`" != "`pwd`"; then
4037  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4038  # is not polluted with repeated "-I."
4039  am__isrc=' -I$(srcdir)'
4040  # test to see if srcdir already configured
4041  if test -f $srcdir/config.status; then
4042    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4043  fi
4044fi
4045
4046# test whether we have cygpath
4047if test -z "$CYGPATH_W"; then
4048  if (cygpath --version) >/dev/null 2>/dev/null; then
4049    CYGPATH_W='cygpath -w'
4050  else
4051    CYGPATH_W=echo
4052  fi
4053fi
4054
4055
4056# Define the identity of the package.
4057 PACKAGE='pgpool-II'
4058 VERSION='4.3.0'
4059
4060
4061cat >>confdefs.h <<_ACEOF
4062#define PACKAGE "$PACKAGE"
4063_ACEOF
4064
4065
4066cat >>confdefs.h <<_ACEOF
4067#define VERSION "$VERSION"
4068_ACEOF
4069
4070# Some tools Automake needs.
4071
4072ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4073
4074
4075AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4076
4077
4078AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4079
4080
4081AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4082
4083
4084MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4085
4086# For better backward compatibility.  To be removed once Automake 1.9.x
4087# dies out for good.  For more background, see:
4088# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4089# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4090mkdir_p='$(MKDIR_P)'
4091
4092# We need awk for the "check" target.  The system "awk" is bad on
4093# some platforms.
4094# Always define AMTAR for backward compatibility.  Yes, it's still used
4095# in the wild :-(  We should find a proper way to deprecate it ...
4096AMTAR='$${TAR-tar}'
4097
4098
4099# We'll loop over all known methods to create a tar archive until one works.
4100_am_tools='gnutar  pax cpio none'
4101
4102am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4103
4104
4105
4106
4107
4108
4109
4110
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4112$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4113    # Check whether --enable-maintainer-mode was given.
4114if test "${enable_maintainer_mode+set}" = set; then :
4115  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4116else
4117  USE_MAINTAINER_MODE=no
4118fi
4119
4120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4121$as_echo "$USE_MAINTAINER_MODE" >&6; }
4122   if test $USE_MAINTAINER_MODE = yes; then
4123  MAINTAINER_MODE_TRUE=
4124  MAINTAINER_MODE_FALSE='#'
4125else
4126  MAINTAINER_MODE_TRUE='#'
4127  MAINTAINER_MODE_FALSE=
4128fi
4129
4130  MAINT=$MAINTAINER_MODE_TRUE
4131
4132
4133
4134# AC_PROG_RANLIB
4135AR_FLAGS="cr"
4136
4137case `pwd` in
4138  *\ * | *\	*)
4139    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4140$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4141esac
4142
4143
4144
4145macro_version='2.4.2'
4146macro_revision='1.3337'
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160ltmain="$ac_aux_dir/ltmain.sh"
4161
4162# Make sure we can run config.sub.
4163$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4164  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4165
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4167$as_echo_n "checking build system type... " >&6; }
4168if ${ac_cv_build+:} false; then :
4169  $as_echo_n "(cached) " >&6
4170else
4171  ac_build_alias=$build_alias
4172test "x$ac_build_alias" = x &&
4173  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4174test "x$ac_build_alias" = x &&
4175  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4176ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4177  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4178
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4181$as_echo "$ac_cv_build" >&6; }
4182case $ac_cv_build in
4183*-*-*) ;;
4184*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4185esac
4186build=$ac_cv_build
4187ac_save_IFS=$IFS; IFS='-'
4188set x $ac_cv_build
4189shift
4190build_cpu=$1
4191build_vendor=$2
4192shift; shift
4193# Remember, the first character of IFS is used to create $*,
4194# except with old shells:
4195build_os=$*
4196IFS=$ac_save_IFS
4197case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4198
4199
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4201$as_echo_n "checking host system type... " >&6; }
4202if ${ac_cv_host+:} false; then :
4203  $as_echo_n "(cached) " >&6
4204else
4205  if test "x$host_alias" = x; then
4206  ac_cv_host=$ac_cv_build
4207else
4208  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4209    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4210fi
4211
4212fi
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4214$as_echo "$ac_cv_host" >&6; }
4215case $ac_cv_host in
4216*-*-*) ;;
4217*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4218esac
4219host=$ac_cv_host
4220ac_save_IFS=$IFS; IFS='-'
4221set x $ac_cv_host
4222shift
4223host_cpu=$1
4224host_vendor=$2
4225shift; shift
4226# Remember, the first character of IFS is used to create $*,
4227# except with old shells:
4228host_os=$*
4229IFS=$ac_save_IFS
4230case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4231
4232
4233# Backslashify metacharacters that are still active within
4234# double-quoted strings.
4235sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4236
4237# Same as above, but do not quote variable references.
4238double_quote_subst='s/\(["`\\]\)/\\\1/g'
4239
4240# Sed substitution to delay expansion of an escaped shell variable in a
4241# double_quote_subst'ed string.
4242delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4243
4244# Sed substitution to delay expansion of an escaped single quote.
4245delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4246
4247# Sed substitution to avoid accidental globbing in evaled expressions
4248no_glob_subst='s/\*/\\\*/g'
4249
4250ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4251ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4252ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4253
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4255$as_echo_n "checking how to print strings... " >&6; }
4256# Test print first, because it will be a builtin if present.
4257if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4258   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4259  ECHO='print -r --'
4260elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4261  ECHO='printf %s\n'
4262else
4263  # Use this function as a fallback that always works.
4264  func_fallback_echo ()
4265  {
4266    eval 'cat <<_LTECHO_EOF
4267$1
4268_LTECHO_EOF'
4269  }
4270  ECHO='func_fallback_echo'
4271fi
4272
4273# func_echo_all arg...
4274# Invoke $ECHO with all args, space-separated.
4275func_echo_all ()
4276{
4277    $ECHO ""
4278}
4279
4280case "$ECHO" in
4281  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4282$as_echo "printf" >&6; } ;;
4283  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4284$as_echo "print -r" >&6; } ;;
4285  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4286$as_echo "cat" >&6; } ;;
4287esac
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4303$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4304if ${ac_cv_path_SED+:} false; then :
4305  $as_echo_n "(cached) " >&6
4306else
4307            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4308     for ac_i in 1 2 3 4 5 6 7; do
4309       ac_script="$ac_script$as_nl$ac_script"
4310     done
4311     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4312     { ac_script=; unset ac_script;}
4313     if test -z "$SED"; then
4314  ac_path_SED_found=false
4315  # Loop through the user's path and test for each of PROGNAME-LIST
4316  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319  IFS=$as_save_IFS
4320  test -z "$as_dir" && as_dir=.
4321    for ac_prog in sed gsed; do
4322    for ac_exec_ext in '' $ac_executable_extensions; do
4323      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4324      as_fn_executable_p "$ac_path_SED" || continue
4325# Check for GNU ac_path_SED and select it if it is found.
4326  # Check for GNU $ac_path_SED
4327case `"$ac_path_SED" --version 2>&1` in
4328*GNU*)
4329  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4330*)
4331  ac_count=0
4332  $as_echo_n 0123456789 >"conftest.in"
4333  while :
4334  do
4335    cat "conftest.in" "conftest.in" >"conftest.tmp"
4336    mv "conftest.tmp" "conftest.in"
4337    cp "conftest.in" "conftest.nl"
4338    $as_echo '' >> "conftest.nl"
4339    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4340    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4341    as_fn_arith $ac_count + 1 && ac_count=$as_val
4342    if test $ac_count -gt ${ac_path_SED_max-0}; then
4343      # Best one so far, save it but keep looking for a better one
4344      ac_cv_path_SED="$ac_path_SED"
4345      ac_path_SED_max=$ac_count
4346    fi
4347    # 10*(2^10) chars as input seems more than enough
4348    test $ac_count -gt 10 && break
4349  done
4350  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4351esac
4352
4353      $ac_path_SED_found && break 3
4354    done
4355  done
4356  done
4357IFS=$as_save_IFS
4358  if test -z "$ac_cv_path_SED"; then
4359    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4360  fi
4361else
4362  ac_cv_path_SED=$SED
4363fi
4364
4365fi
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4367$as_echo "$ac_cv_path_SED" >&6; }
4368 SED="$ac_cv_path_SED"
4369  rm -f conftest.sed
4370
4371test -z "$SED" && SED=sed
4372Xsed="$SED -e 1s/^X//"
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4385$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4386if ${ac_cv_path_GREP+:} false; then :
4387  $as_echo_n "(cached) " >&6
4388else
4389  if test -z "$GREP"; then
4390  ac_path_GREP_found=false
4391  # Loop through the user's path and test for each of PROGNAME-LIST
4392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394do
4395  IFS=$as_save_IFS
4396  test -z "$as_dir" && as_dir=.
4397    for ac_prog in grep ggrep; do
4398    for ac_exec_ext in '' $ac_executable_extensions; do
4399      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4400      as_fn_executable_p "$ac_path_GREP" || continue
4401# Check for GNU ac_path_GREP and select it if it is found.
4402  # Check for GNU $ac_path_GREP
4403case `"$ac_path_GREP" --version 2>&1` in
4404*GNU*)
4405  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4406*)
4407  ac_count=0
4408  $as_echo_n 0123456789 >"conftest.in"
4409  while :
4410  do
4411    cat "conftest.in" "conftest.in" >"conftest.tmp"
4412    mv "conftest.tmp" "conftest.in"
4413    cp "conftest.in" "conftest.nl"
4414    $as_echo 'GREP' >> "conftest.nl"
4415    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417    as_fn_arith $ac_count + 1 && ac_count=$as_val
4418    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4419      # Best one so far, save it but keep looking for a better one
4420      ac_cv_path_GREP="$ac_path_GREP"
4421      ac_path_GREP_max=$ac_count
4422    fi
4423    # 10*(2^10) chars as input seems more than enough
4424    test $ac_count -gt 10 && break
4425  done
4426  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4427esac
4428
4429      $ac_path_GREP_found && break 3
4430    done
4431  done
4432  done
4433IFS=$as_save_IFS
4434  if test -z "$ac_cv_path_GREP"; then
4435    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4436  fi
4437else
4438  ac_cv_path_GREP=$GREP
4439fi
4440
4441fi
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4443$as_echo "$ac_cv_path_GREP" >&6; }
4444 GREP="$ac_cv_path_GREP"
4445
4446
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4448$as_echo_n "checking for egrep... " >&6; }
4449if ${ac_cv_path_EGREP+:} false; then :
4450  $as_echo_n "(cached) " >&6
4451else
4452  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4453   then ac_cv_path_EGREP="$GREP -E"
4454   else
4455     if test -z "$EGREP"; then
4456  ac_path_EGREP_found=false
4457  # Loop through the user's path and test for each of PROGNAME-LIST
4458  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460do
4461  IFS=$as_save_IFS
4462  test -z "$as_dir" && as_dir=.
4463    for ac_prog in egrep; do
4464    for ac_exec_ext in '' $ac_executable_extensions; do
4465      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4466      as_fn_executable_p "$ac_path_EGREP" || continue
4467# Check for GNU ac_path_EGREP and select it if it is found.
4468  # Check for GNU $ac_path_EGREP
4469case `"$ac_path_EGREP" --version 2>&1` in
4470*GNU*)
4471  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4472*)
4473  ac_count=0
4474  $as_echo_n 0123456789 >"conftest.in"
4475  while :
4476  do
4477    cat "conftest.in" "conftest.in" >"conftest.tmp"
4478    mv "conftest.tmp" "conftest.in"
4479    cp "conftest.in" "conftest.nl"
4480    $as_echo 'EGREP' >> "conftest.nl"
4481    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483    as_fn_arith $ac_count + 1 && ac_count=$as_val
4484    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4485      # Best one so far, save it but keep looking for a better one
4486      ac_cv_path_EGREP="$ac_path_EGREP"
4487      ac_path_EGREP_max=$ac_count
4488    fi
4489    # 10*(2^10) chars as input seems more than enough
4490    test $ac_count -gt 10 && break
4491  done
4492  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493esac
4494
4495      $ac_path_EGREP_found && break 3
4496    done
4497  done
4498  done
4499IFS=$as_save_IFS
4500  if test -z "$ac_cv_path_EGREP"; then
4501    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502  fi
4503else
4504  ac_cv_path_EGREP=$EGREP
4505fi
4506
4507   fi
4508fi
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4510$as_echo "$ac_cv_path_EGREP" >&6; }
4511 EGREP="$ac_cv_path_EGREP"
4512
4513
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4515$as_echo_n "checking for fgrep... " >&6; }
4516if ${ac_cv_path_FGREP+:} false; then :
4517  $as_echo_n "(cached) " >&6
4518else
4519  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4520   then ac_cv_path_FGREP="$GREP -F"
4521   else
4522     if test -z "$FGREP"; then
4523  ac_path_FGREP_found=false
4524  # Loop through the user's path and test for each of PROGNAME-LIST
4525  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4527do
4528  IFS=$as_save_IFS
4529  test -z "$as_dir" && as_dir=.
4530    for ac_prog in fgrep; do
4531    for ac_exec_ext in '' $ac_executable_extensions; do
4532      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4533      as_fn_executable_p "$ac_path_FGREP" || continue
4534# Check for GNU ac_path_FGREP and select it if it is found.
4535  # Check for GNU $ac_path_FGREP
4536case `"$ac_path_FGREP" --version 2>&1` in
4537*GNU*)
4538  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4539*)
4540  ac_count=0
4541  $as_echo_n 0123456789 >"conftest.in"
4542  while :
4543  do
4544    cat "conftest.in" "conftest.in" >"conftest.tmp"
4545    mv "conftest.tmp" "conftest.in"
4546    cp "conftest.in" "conftest.nl"
4547    $as_echo 'FGREP' >> "conftest.nl"
4548    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4549    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4550    as_fn_arith $ac_count + 1 && ac_count=$as_val
4551    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4552      # Best one so far, save it but keep looking for a better one
4553      ac_cv_path_FGREP="$ac_path_FGREP"
4554      ac_path_FGREP_max=$ac_count
4555    fi
4556    # 10*(2^10) chars as input seems more than enough
4557    test $ac_count -gt 10 && break
4558  done
4559  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4560esac
4561
4562      $ac_path_FGREP_found && break 3
4563    done
4564  done
4565  done
4566IFS=$as_save_IFS
4567  if test -z "$ac_cv_path_FGREP"; then
4568    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4569  fi
4570else
4571  ac_cv_path_FGREP=$FGREP
4572fi
4573
4574   fi
4575fi
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4577$as_echo "$ac_cv_path_FGREP" >&6; }
4578 FGREP="$ac_cv_path_FGREP"
4579
4580
4581test -z "$GREP" && GREP=grep
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601# Check whether --with-gnu-ld was given.
4602if test "${with_gnu_ld+set}" = set; then :
4603  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4604else
4605  with_gnu_ld=no
4606fi
4607
4608ac_prog=ld
4609if test "$GCC" = yes; then
4610  # Check if gcc -print-prog-name=ld gives a path.
4611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4612$as_echo_n "checking for ld used by $CC... " >&6; }
4613  case $host in
4614  *-*-mingw*)
4615    # gcc leaves a trailing carriage return which upsets mingw
4616    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4617  *)
4618    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4619  esac
4620  case $ac_prog in
4621    # Accept absolute paths.
4622    [\\/]* | ?:[\\/]*)
4623      re_direlt='/[^/][^/]*/\.\./'
4624      # Canonicalize the pathname of ld
4625      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4626      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4627	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4628      done
4629      test -z "$LD" && LD="$ac_prog"
4630      ;;
4631  "")
4632    # If it fails, then pretend we aren't using GCC.
4633    ac_prog=ld
4634    ;;
4635  *)
4636    # If it is relative, then search for the first ld in PATH.
4637    with_gnu_ld=unknown
4638    ;;
4639  esac
4640elif test "$with_gnu_ld" = yes; then
4641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4642$as_echo_n "checking for GNU ld... " >&6; }
4643else
4644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4645$as_echo_n "checking for non-GNU ld... " >&6; }
4646fi
4647if ${lt_cv_path_LD+:} false; then :
4648  $as_echo_n "(cached) " >&6
4649else
4650  if test -z "$LD"; then
4651  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4652  for ac_dir in $PATH; do
4653    IFS="$lt_save_ifs"
4654    test -z "$ac_dir" && ac_dir=.
4655    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4656      lt_cv_path_LD="$ac_dir/$ac_prog"
4657      # Check to see if the program is GNU ld.  I'd rather use --version,
4658      # but apparently some variants of GNU ld only accept -v.
4659      # Break only if it was the GNU/non-GNU ld that we prefer.
4660      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4661      *GNU* | *'with BFD'*)
4662	test "$with_gnu_ld" != no && break
4663	;;
4664      *)
4665	test "$with_gnu_ld" != yes && break
4666	;;
4667      esac
4668    fi
4669  done
4670  IFS="$lt_save_ifs"
4671else
4672  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4673fi
4674fi
4675
4676LD="$lt_cv_path_LD"
4677if test -n "$LD"; then
4678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4679$as_echo "$LD" >&6; }
4680else
4681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682$as_echo "no" >&6; }
4683fi
4684test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4686$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4687if ${lt_cv_prog_gnu_ld+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4691case `$LD -v 2>&1 </dev/null` in
4692*GNU* | *'with BFD'*)
4693  lt_cv_prog_gnu_ld=yes
4694  ;;
4695*)
4696  lt_cv_prog_gnu_ld=no
4697  ;;
4698esac
4699fi
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4701$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4702with_gnu_ld=$lt_cv_prog_gnu_ld
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4713$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4714if ${lt_cv_path_NM+:} false; then :
4715  $as_echo_n "(cached) " >&6
4716else
4717  if test -n "$NM"; then
4718  # Let the user override the test.
4719  lt_cv_path_NM="$NM"
4720else
4721  lt_nm_to_check="${ac_tool_prefix}nm"
4722  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4723    lt_nm_to_check="$lt_nm_to_check nm"
4724  fi
4725  for lt_tmp_nm in $lt_nm_to_check; do
4726    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4727    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4728      IFS="$lt_save_ifs"
4729      test -z "$ac_dir" && ac_dir=.
4730      tmp_nm="$ac_dir/$lt_tmp_nm"
4731      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4732	# Check to see if the nm accepts a BSD-compat flag.
4733	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4734	#   nm: unknown option "B" ignored
4735	# Tru64's nm complains that /dev/null is an invalid object file
4736	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4737	*/dev/null* | *'Invalid file or object type'*)
4738	  lt_cv_path_NM="$tmp_nm -B"
4739	  break
4740	  ;;
4741	*)
4742	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4743	  */dev/null*)
4744	    lt_cv_path_NM="$tmp_nm -p"
4745	    break
4746	    ;;
4747	  *)
4748	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4749	    continue # so that we can try to find one that supports BSD flags
4750	    ;;
4751	  esac
4752	  ;;
4753	esac
4754      fi
4755    done
4756    IFS="$lt_save_ifs"
4757  done
4758  : ${lt_cv_path_NM=no}
4759fi
4760fi
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4762$as_echo "$lt_cv_path_NM" >&6; }
4763if test "$lt_cv_path_NM" != "no"; then
4764  NM="$lt_cv_path_NM"
4765else
4766  # Didn't find any BSD compatible name lister, look for dumpbin.
4767  if test -n "$DUMPBIN"; then :
4768    # Let the user override the test.
4769  else
4770    if test -n "$ac_tool_prefix"; then
4771  for ac_prog in dumpbin "link -dump"
4772  do
4773    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4774set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776$as_echo_n "checking for $ac_word... " >&6; }
4777if ${ac_cv_prog_DUMPBIN+:} false; then :
4778  $as_echo_n "(cached) " >&6
4779else
4780  if test -n "$DUMPBIN"; then
4781  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4782else
4783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786  IFS=$as_save_IFS
4787  test -z "$as_dir" && as_dir=.
4788    for ac_exec_ext in '' $ac_executable_extensions; do
4789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4790    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792    break 2
4793  fi
4794done
4795  done
4796IFS=$as_save_IFS
4797
4798fi
4799fi
4800DUMPBIN=$ac_cv_prog_DUMPBIN
4801if test -n "$DUMPBIN"; then
4802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4803$as_echo "$DUMPBIN" >&6; }
4804else
4805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806$as_echo "no" >&6; }
4807fi
4808
4809
4810    test -n "$DUMPBIN" && break
4811  done
4812fi
4813if test -z "$DUMPBIN"; then
4814  ac_ct_DUMPBIN=$DUMPBIN
4815  for ac_prog in dumpbin "link -dump"
4816do
4817  # Extract the first word of "$ac_prog", so it can be a program name with args.
4818set dummy $ac_prog; ac_word=$2
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820$as_echo_n "checking for $ac_word... " >&6; }
4821if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4822  $as_echo_n "(cached) " >&6
4823else
4824  if test -n "$ac_ct_DUMPBIN"; then
4825  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4826else
4827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830  IFS=$as_save_IFS
4831  test -z "$as_dir" && as_dir=.
4832    for ac_exec_ext in '' $ac_executable_extensions; do
4833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4834    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836    break 2
4837  fi
4838done
4839  done
4840IFS=$as_save_IFS
4841
4842fi
4843fi
4844ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4845if test -n "$ac_ct_DUMPBIN"; then
4846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4847$as_echo "$ac_ct_DUMPBIN" >&6; }
4848else
4849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850$as_echo "no" >&6; }
4851fi
4852
4853
4854  test -n "$ac_ct_DUMPBIN" && break
4855done
4856
4857  if test "x$ac_ct_DUMPBIN" = x; then
4858    DUMPBIN=":"
4859  else
4860    case $cross_compiling:$ac_tool_warned in
4861yes:)
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4864ac_tool_warned=yes ;;
4865esac
4866    DUMPBIN=$ac_ct_DUMPBIN
4867  fi
4868fi
4869
4870    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4871    *COFF*)
4872      DUMPBIN="$DUMPBIN -symbols"
4873      ;;
4874    *)
4875      DUMPBIN=:
4876      ;;
4877    esac
4878  fi
4879
4880  if test "$DUMPBIN" != ":"; then
4881    NM="$DUMPBIN"
4882  fi
4883fi
4884test -z "$NM" && NM=nm
4885
4886
4887
4888
4889
4890
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4892$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4893if ${lt_cv_nm_interface+:} false; then :
4894  $as_echo_n "(cached) " >&6
4895else
4896  lt_cv_nm_interface="BSD nm"
4897  echo "int some_variable = 0;" > conftest.$ac_ext
4898  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4899  (eval "$ac_compile" 2>conftest.err)
4900  cat conftest.err >&5
4901  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4902  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4903  cat conftest.err >&5
4904  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4905  cat conftest.out >&5
4906  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4907    lt_cv_nm_interface="MS dumpbin"
4908  fi
4909  rm -f conftest*
4910fi
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4912$as_echo "$lt_cv_nm_interface" >&6; }
4913
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4915$as_echo_n "checking whether ln -s works... " >&6; }
4916LN_S=$as_ln_s
4917if test "$LN_S" = "ln -s"; then
4918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919$as_echo "yes" >&6; }
4920else
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4922$as_echo "no, using $LN_S" >&6; }
4923fi
4924
4925# find the maximum length of command line arguments
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4927$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4928if ${lt_cv_sys_max_cmd_len+:} false; then :
4929  $as_echo_n "(cached) " >&6
4930else
4931    i=0
4932  teststring="ABCD"
4933
4934  case $build_os in
4935  msdosdjgpp*)
4936    # On DJGPP, this test can blow up pretty badly due to problems in libc
4937    # (any single argument exceeding 2000 bytes causes a buffer overrun
4938    # during glob expansion).  Even if it were fixed, the result of this
4939    # check would be larger than it should be.
4940    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4941    ;;
4942
4943  gnu*)
4944    # Under GNU Hurd, this test is not required because there is
4945    # no limit to the length of command line arguments.
4946    # Libtool will interpret -1 as no limit whatsoever
4947    lt_cv_sys_max_cmd_len=-1;
4948    ;;
4949
4950  cygwin* | mingw* | cegcc*)
4951    # On Win9x/ME, this test blows up -- it succeeds, but takes
4952    # about 5 minutes as the teststring grows exponentially.
4953    # Worse, since 9x/ME are not pre-emptively multitasking,
4954    # you end up with a "frozen" computer, even though with patience
4955    # the test eventually succeeds (with a max line length of 256k).
4956    # Instead, let's just punt: use the minimum linelength reported by
4957    # all of the supported platforms: 8192 (on NT/2K/XP).
4958    lt_cv_sys_max_cmd_len=8192;
4959    ;;
4960
4961  mint*)
4962    # On MiNT this can take a long time and run out of memory.
4963    lt_cv_sys_max_cmd_len=8192;
4964    ;;
4965
4966  amigaos*)
4967    # On AmigaOS with pdksh, this test takes hours, literally.
4968    # So we just punt and use a minimum line length of 8192.
4969    lt_cv_sys_max_cmd_len=8192;
4970    ;;
4971
4972  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4973    # This has been around since 386BSD, at least.  Likely further.
4974    if test -x /sbin/sysctl; then
4975      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4976    elif test -x /usr/sbin/sysctl; then
4977      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4978    else
4979      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4980    fi
4981    # And add a safety zone
4982    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4983    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4984    ;;
4985
4986  interix*)
4987    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4988    lt_cv_sys_max_cmd_len=196608
4989    ;;
4990
4991  os2*)
4992    # The test takes a long time on OS/2.
4993    lt_cv_sys_max_cmd_len=8192
4994    ;;
4995
4996  osf*)
4997    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4998    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4999    # nice to cause kernel panics so lets avoid the loop below.
5000    # First set a reasonable default.
5001    lt_cv_sys_max_cmd_len=16384
5002    #
5003    if test -x /sbin/sysconfig; then
5004      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5005        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5006      esac
5007    fi
5008    ;;
5009  sco3.2v5*)
5010    lt_cv_sys_max_cmd_len=102400
5011    ;;
5012  sysv5* | sco5v6* | sysv4.2uw2*)
5013    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5014    if test -n "$kargmax"; then
5015      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5016    else
5017      lt_cv_sys_max_cmd_len=32768
5018    fi
5019    ;;
5020  *)
5021    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5022    if test -n "$lt_cv_sys_max_cmd_len"; then
5023      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5024      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5025    else
5026      # Make teststring a little bigger before we do anything with it.
5027      # a 1K string should be a reasonable start.
5028      for i in 1 2 3 4 5 6 7 8 ; do
5029        teststring=$teststring$teststring
5030      done
5031      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5032      # If test is not a shell built-in, we'll probably end up computing a
5033      # maximum length that is only half of the actual maximum length, but
5034      # we can't tell.
5035      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5036	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5037	      test $i != 17 # 1/2 MB should be enough
5038      do
5039        i=`expr $i + 1`
5040        teststring=$teststring$teststring
5041      done
5042      # Only check the string length outside the loop.
5043      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5044      teststring=
5045      # Add a significant safety factor because C++ compilers can tack on
5046      # massive amounts of additional arguments before passing them to the
5047      # linker.  It appears as though 1/2 is a usable value.
5048      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5049    fi
5050    ;;
5051  esac
5052
5053fi
5054
5055if test -n $lt_cv_sys_max_cmd_len ; then
5056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5057$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5058else
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5060$as_echo "none" >&6; }
5061fi
5062max_cmd_len=$lt_cv_sys_max_cmd_len
5063
5064
5065
5066
5067
5068
5069: ${CP="cp -f"}
5070: ${MV="mv -f"}
5071: ${RM="rm -f"}
5072
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5074$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5075# Try some XSI features
5076xsi_shell=no
5077( _lt_dummy="a/b/c"
5078  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5079      = c,a/b,b/c, \
5080    && eval 'test $(( 1 + 1 )) -eq 2 \
5081    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5082  && xsi_shell=yes
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5084$as_echo "$xsi_shell" >&6; }
5085
5086
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5088$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5089lt_shell_append=no
5090( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5091    >/dev/null 2>&1 \
5092  && lt_shell_append=yes
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5094$as_echo "$lt_shell_append" >&6; }
5095
5096
5097if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5098  lt_unset=unset
5099else
5100  lt_unset=false
5101fi
5102
5103
5104
5105
5106
5107# test EBCDIC or ASCII
5108case `echo X|tr X '\101'` in
5109 A) # ASCII based system
5110    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5111  lt_SP2NL='tr \040 \012'
5112  lt_NL2SP='tr \015\012 \040\040'
5113  ;;
5114 *) # EBCDIC based system
5115  lt_SP2NL='tr \100 \n'
5116  lt_NL2SP='tr \r\n \100\100'
5117  ;;
5118esac
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5129$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5130if ${lt_cv_to_host_file_cmd+:} false; then :
5131  $as_echo_n "(cached) " >&6
5132else
5133  case $host in
5134  *-*-mingw* )
5135    case $build in
5136      *-*-mingw* ) # actually msys
5137        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5138        ;;
5139      *-*-cygwin* )
5140        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5141        ;;
5142      * ) # otherwise, assume *nix
5143        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5144        ;;
5145    esac
5146    ;;
5147  *-*-cygwin* )
5148    case $build in
5149      *-*-mingw* ) # actually msys
5150        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5151        ;;
5152      *-*-cygwin* )
5153        lt_cv_to_host_file_cmd=func_convert_file_noop
5154        ;;
5155      * ) # otherwise, assume *nix
5156        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5157        ;;
5158    esac
5159    ;;
5160  * ) # unhandled hosts (and "normal" native builds)
5161    lt_cv_to_host_file_cmd=func_convert_file_noop
5162    ;;
5163esac
5164
5165fi
5166
5167to_host_file_cmd=$lt_cv_to_host_file_cmd
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5169$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5170
5171
5172
5173
5174
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5176$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5177if ${lt_cv_to_tool_file_cmd+:} false; then :
5178  $as_echo_n "(cached) " >&6
5179else
5180  #assume ordinary cross tools, or native build.
5181lt_cv_to_tool_file_cmd=func_convert_file_noop
5182case $host in
5183  *-*-mingw* )
5184    case $build in
5185      *-*-mingw* ) # actually msys
5186        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5187        ;;
5188    esac
5189    ;;
5190esac
5191
5192fi
5193
5194to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5196$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5197
5198
5199
5200
5201
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5203$as_echo_n "checking for $LD option to reload object files... " >&6; }
5204if ${lt_cv_ld_reload_flag+:} false; then :
5205  $as_echo_n "(cached) " >&6
5206else
5207  lt_cv_ld_reload_flag='-r'
5208fi
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5210$as_echo "$lt_cv_ld_reload_flag" >&6; }
5211reload_flag=$lt_cv_ld_reload_flag
5212case $reload_flag in
5213"" | " "*) ;;
5214*) reload_flag=" $reload_flag" ;;
5215esac
5216reload_cmds='$LD$reload_flag -o $output$reload_objs'
5217case $host_os in
5218  cygwin* | mingw* | pw32* | cegcc*)
5219    if test "$GCC" != yes; then
5220      reload_cmds=false
5221    fi
5222    ;;
5223  darwin*)
5224    if test "$GCC" = yes; then
5225      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5226    else
5227      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5228    fi
5229    ;;
5230esac
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240if test -n "$ac_tool_prefix"; then
5241  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5242set dummy ${ac_tool_prefix}objdump; ac_word=$2
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244$as_echo_n "checking for $ac_word... " >&6; }
5245if ${ac_cv_prog_OBJDUMP+:} false; then :
5246  $as_echo_n "(cached) " >&6
5247else
5248  if test -n "$OBJDUMP"; then
5249  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5250else
5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254  IFS=$as_save_IFS
5255  test -z "$as_dir" && as_dir=.
5256    for ac_exec_ext in '' $ac_executable_extensions; do
5257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260    break 2
5261  fi
5262done
5263  done
5264IFS=$as_save_IFS
5265
5266fi
5267fi
5268OBJDUMP=$ac_cv_prog_OBJDUMP
5269if test -n "$OBJDUMP"; then
5270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5271$as_echo "$OBJDUMP" >&6; }
5272else
5273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274$as_echo "no" >&6; }
5275fi
5276
5277
5278fi
5279if test -z "$ac_cv_prog_OBJDUMP"; then
5280  ac_ct_OBJDUMP=$OBJDUMP
5281  # Extract the first word of "objdump", so it can be a program name with args.
5282set dummy objdump; ac_word=$2
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284$as_echo_n "checking for $ac_word... " >&6; }
5285if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288  if test -n "$ac_ct_OBJDUMP"; then
5289  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5290else
5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH
5293do
5294  IFS=$as_save_IFS
5295  test -z "$as_dir" && as_dir=.
5296    for ac_exec_ext in '' $ac_executable_extensions; do
5297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300    break 2
5301  fi
5302done
5303  done
5304IFS=$as_save_IFS
5305
5306fi
5307fi
5308ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5309if test -n "$ac_ct_OBJDUMP"; then
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5311$as_echo "$ac_ct_OBJDUMP" >&6; }
5312else
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314$as_echo "no" >&6; }
5315fi
5316
5317  if test "x$ac_ct_OBJDUMP" = x; then
5318    OBJDUMP="false"
5319  else
5320    case $cross_compiling:$ac_tool_warned in
5321yes:)
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324ac_tool_warned=yes ;;
5325esac
5326    OBJDUMP=$ac_ct_OBJDUMP
5327  fi
5328else
5329  OBJDUMP="$ac_cv_prog_OBJDUMP"
5330fi
5331
5332test -z "$OBJDUMP" && OBJDUMP=objdump
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5343$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5344if ${lt_cv_deplibs_check_method+:} false; then :
5345  $as_echo_n "(cached) " >&6
5346else
5347  lt_cv_file_magic_cmd='$MAGIC_CMD'
5348lt_cv_file_magic_test_file=
5349lt_cv_deplibs_check_method='unknown'
5350# Need to set the preceding variable on all platforms that support
5351# interlibrary dependencies.
5352# 'none' -- dependencies not supported.
5353# `unknown' -- same as none, but documents that we really don't know.
5354# 'pass_all' -- all dependencies passed with no checks.
5355# 'test_compile' -- check by making test program.
5356# 'file_magic [[regex]]' -- check by looking for files in library path
5357# which responds to the $file_magic_cmd with a given extended regex.
5358# If you have `file' or equivalent on your system and you're not sure
5359# whether `pass_all' will *always* work, you probably want this one.
5360
5361case $host_os in
5362aix[4-9]*)
5363  lt_cv_deplibs_check_method=pass_all
5364  ;;
5365
5366beos*)
5367  lt_cv_deplibs_check_method=pass_all
5368  ;;
5369
5370bsdi[45]*)
5371  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5372  lt_cv_file_magic_cmd='/usr/bin/file -L'
5373  lt_cv_file_magic_test_file=/shlib/libc.so
5374  ;;
5375
5376cygwin*)
5377  # func_win32_libid is a shell function defined in ltmain.sh
5378  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5379  lt_cv_file_magic_cmd='func_win32_libid'
5380  ;;
5381
5382mingw* | pw32*)
5383  # Base MSYS/MinGW do not provide the 'file' command needed by
5384  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5385  # unless we find 'file', for example because we are cross-compiling.
5386  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5387  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5388    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5389    lt_cv_file_magic_cmd='func_win32_libid'
5390  else
5391    # Keep this pattern in sync with the one in func_win32_libid.
5392    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5393    lt_cv_file_magic_cmd='$OBJDUMP -f'
5394  fi
5395  ;;
5396
5397cegcc*)
5398  # use the weaker test based on 'objdump'. See mingw*.
5399  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5400  lt_cv_file_magic_cmd='$OBJDUMP -f'
5401  ;;
5402
5403darwin* | rhapsody*)
5404  lt_cv_deplibs_check_method=pass_all
5405  ;;
5406
5407freebsd* | dragonfly*)
5408  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5409    case $host_cpu in
5410    i*86 )
5411      # Not sure whether the presence of OpenBSD here was a mistake.
5412      # Let's accept both of them until this is cleared up.
5413      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5414      lt_cv_file_magic_cmd=/usr/bin/file
5415      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5416      ;;
5417    esac
5418  else
5419    lt_cv_deplibs_check_method=pass_all
5420  fi
5421  ;;
5422
5423gnu*)
5424  lt_cv_deplibs_check_method=pass_all
5425  ;;
5426
5427haiku*)
5428  lt_cv_deplibs_check_method=pass_all
5429  ;;
5430
5431hpux10.20* | hpux11*)
5432  lt_cv_file_magic_cmd=/usr/bin/file
5433  case $host_cpu in
5434  ia64*)
5435    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5436    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5437    ;;
5438  hppa*64*)
5439    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5440    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5441    ;;
5442  *)
5443    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5444    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5445    ;;
5446  esac
5447  ;;
5448
5449interix[3-9]*)
5450  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5451  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5452  ;;
5453
5454irix5* | irix6* | nonstopux*)
5455  case $LD in
5456  *-32|*"-32 ") libmagic=32-bit;;
5457  *-n32|*"-n32 ") libmagic=N32;;
5458  *-64|*"-64 ") libmagic=64-bit;;
5459  *) libmagic=never-match;;
5460  esac
5461  lt_cv_deplibs_check_method=pass_all
5462  ;;
5463
5464# This must be glibc/ELF.
5465linux* | k*bsd*-gnu | kopensolaris*-gnu)
5466  lt_cv_deplibs_check_method=pass_all
5467  ;;
5468
5469netbsd* | netbsdelf*-gnu)
5470  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5471    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5472  else
5473    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5474  fi
5475  ;;
5476
5477newos6*)
5478  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5479  lt_cv_file_magic_cmd=/usr/bin/file
5480  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5481  ;;
5482
5483*nto* | *qnx*)
5484  lt_cv_deplibs_check_method=pass_all
5485  ;;
5486
5487openbsd*)
5488  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5489    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5490  else
5491    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5492  fi
5493  ;;
5494
5495osf3* | osf4* | osf5*)
5496  lt_cv_deplibs_check_method=pass_all
5497  ;;
5498
5499rdos*)
5500  lt_cv_deplibs_check_method=pass_all
5501  ;;
5502
5503solaris*)
5504  lt_cv_deplibs_check_method=pass_all
5505  ;;
5506
5507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5508  lt_cv_deplibs_check_method=pass_all
5509  ;;
5510
5511sysv4 | sysv4.3*)
5512  case $host_vendor in
5513  motorola)
5514    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]'
5515    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5516    ;;
5517  ncr)
5518    lt_cv_deplibs_check_method=pass_all
5519    ;;
5520  sequent)
5521    lt_cv_file_magic_cmd='/bin/file'
5522    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5523    ;;
5524  sni)
5525    lt_cv_file_magic_cmd='/bin/file'
5526    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5527    lt_cv_file_magic_test_file=/lib/libc.so
5528    ;;
5529  siemens)
5530    lt_cv_deplibs_check_method=pass_all
5531    ;;
5532  pc)
5533    lt_cv_deplibs_check_method=pass_all
5534    ;;
5535  esac
5536  ;;
5537
5538tpf*)
5539  lt_cv_deplibs_check_method=pass_all
5540  ;;
5541esac
5542
5543fi
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5545$as_echo "$lt_cv_deplibs_check_method" >&6; }
5546
5547file_magic_glob=
5548want_nocaseglob=no
5549if test "$build" = "$host"; then
5550  case $host_os in
5551  mingw* | pw32*)
5552    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5553      want_nocaseglob=yes
5554    else
5555      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5556    fi
5557    ;;
5558  esac
5559fi
5560
5561file_magic_cmd=$lt_cv_file_magic_cmd
5562deplibs_check_method=$lt_cv_deplibs_check_method
5563test -z "$deplibs_check_method" && deplibs_check_method=unknown
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586if test -n "$ac_tool_prefix"; then
5587  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5588set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590$as_echo_n "checking for $ac_word... " >&6; }
5591if ${ac_cv_prog_DLLTOOL+:} false; then :
5592  $as_echo_n "(cached) " >&6
5593else
5594  if test -n "$DLLTOOL"; then
5595  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5596else
5597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598for as_dir in $PATH
5599do
5600  IFS=$as_save_IFS
5601  test -z "$as_dir" && as_dir=.
5602    for ac_exec_ext in '' $ac_executable_extensions; do
5603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5604    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606    break 2
5607  fi
5608done
5609  done
5610IFS=$as_save_IFS
5611
5612fi
5613fi
5614DLLTOOL=$ac_cv_prog_DLLTOOL
5615if test -n "$DLLTOOL"; then
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5617$as_echo "$DLLTOOL" >&6; }
5618else
5619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620$as_echo "no" >&6; }
5621fi
5622
5623
5624fi
5625if test -z "$ac_cv_prog_DLLTOOL"; then
5626  ac_ct_DLLTOOL=$DLLTOOL
5627  # Extract the first word of "dlltool", so it can be a program name with args.
5628set dummy dlltool; ac_word=$2
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630$as_echo_n "checking for $ac_word... " >&6; }
5631if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5632  $as_echo_n "(cached) " >&6
5633else
5634  if test -n "$ac_ct_DLLTOOL"; then
5635  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5636else
5637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638for as_dir in $PATH
5639do
5640  IFS=$as_save_IFS
5641  test -z "$as_dir" && as_dir=.
5642    for ac_exec_ext in '' $ac_executable_extensions; do
5643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5644    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646    break 2
5647  fi
5648done
5649  done
5650IFS=$as_save_IFS
5651
5652fi
5653fi
5654ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5655if test -n "$ac_ct_DLLTOOL"; then
5656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5657$as_echo "$ac_ct_DLLTOOL" >&6; }
5658else
5659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660$as_echo "no" >&6; }
5661fi
5662
5663  if test "x$ac_ct_DLLTOOL" = x; then
5664    DLLTOOL="false"
5665  else
5666    case $cross_compiling:$ac_tool_warned in
5667yes:)
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5670ac_tool_warned=yes ;;
5671esac
5672    DLLTOOL=$ac_ct_DLLTOOL
5673  fi
5674else
5675  DLLTOOL="$ac_cv_prog_DLLTOOL"
5676fi
5677
5678test -z "$DLLTOOL" && DLLTOOL=dlltool
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5690$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5691if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5692  $as_echo_n "(cached) " >&6
5693else
5694  lt_cv_sharedlib_from_linklib_cmd='unknown'
5695
5696case $host_os in
5697cygwin* | mingw* | pw32* | cegcc*)
5698  # two different shell functions defined in ltmain.sh
5699  # decide which to use based on capabilities of $DLLTOOL
5700  case `$DLLTOOL --help 2>&1` in
5701  *--identify-strict*)
5702    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5703    ;;
5704  *)
5705    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5706    ;;
5707  esac
5708  ;;
5709*)
5710  # fallback: assume linklib IS sharedlib
5711  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5712  ;;
5713esac
5714
5715fi
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5717$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5718sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5719test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5720
5721
5722
5723
5724
5725
5726
5727
5728if test -n "$ac_tool_prefix"; then
5729  for ac_prog in ar
5730  do
5731    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5732set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734$as_echo_n "checking for $ac_word... " >&6; }
5735if ${ac_cv_prog_AR+:} false; then :
5736  $as_echo_n "(cached) " >&6
5737else
5738  if test -n "$AR"; then
5739  ac_cv_prog_AR="$AR" # Let the user override the test.
5740else
5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744  IFS=$as_save_IFS
5745  test -z "$as_dir" && as_dir=.
5746    for ac_exec_ext in '' $ac_executable_extensions; do
5747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750    break 2
5751  fi
5752done
5753  done
5754IFS=$as_save_IFS
5755
5756fi
5757fi
5758AR=$ac_cv_prog_AR
5759if test -n "$AR"; then
5760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5761$as_echo "$AR" >&6; }
5762else
5763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764$as_echo "no" >&6; }
5765fi
5766
5767
5768    test -n "$AR" && break
5769  done
5770fi
5771if test -z "$AR"; then
5772  ac_ct_AR=$AR
5773  for ac_prog in ar
5774do
5775  # Extract the first word of "$ac_prog", so it can be a program name with args.
5776set dummy $ac_prog; ac_word=$2
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778$as_echo_n "checking for $ac_word... " >&6; }
5779if ${ac_cv_prog_ac_ct_AR+:} false; then :
5780  $as_echo_n "(cached) " >&6
5781else
5782  if test -n "$ac_ct_AR"; then
5783  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788  IFS=$as_save_IFS
5789  test -z "$as_dir" && as_dir=.
5790    for ac_exec_ext in '' $ac_executable_extensions; do
5791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792    ac_cv_prog_ac_ct_AR="$ac_prog"
5793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794    break 2
5795  fi
5796done
5797  done
5798IFS=$as_save_IFS
5799
5800fi
5801fi
5802ac_ct_AR=$ac_cv_prog_ac_ct_AR
5803if test -n "$ac_ct_AR"; then
5804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5805$as_echo "$ac_ct_AR" >&6; }
5806else
5807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }
5809fi
5810
5811
5812  test -n "$ac_ct_AR" && break
5813done
5814
5815  if test "x$ac_ct_AR" = x; then
5816    AR="false"
5817  else
5818    case $cross_compiling:$ac_tool_warned in
5819yes:)
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5822ac_tool_warned=yes ;;
5823esac
5824    AR=$ac_ct_AR
5825  fi
5826fi
5827
5828: ${AR=ar}
5829: ${AR_FLAGS=cru}
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5842$as_echo_n "checking for archiver @FILE support... " >&6; }
5843if ${lt_cv_ar_at_file+:} false; then :
5844  $as_echo_n "(cached) " >&6
5845else
5846  lt_cv_ar_at_file=no
5847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848/* end confdefs.h.  */
5849
5850int
5851main ()
5852{
5853
5854  ;
5855  return 0;
5856}
5857_ACEOF
5858if ac_fn_c_try_compile "$LINENO"; then :
5859  echo conftest.$ac_objext > conftest.lst
5860      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5861      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5862  (eval $lt_ar_try) 2>&5
5863  ac_status=$?
5864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865  test $ac_status = 0; }
5866      if test "$ac_status" -eq 0; then
5867	# Ensure the archiver fails upon bogus file names.
5868	rm -f conftest.$ac_objext libconftest.a
5869	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5870  (eval $lt_ar_try) 2>&5
5871  ac_status=$?
5872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5873  test $ac_status = 0; }
5874	if test "$ac_status" -ne 0; then
5875          lt_cv_ar_at_file=@
5876        fi
5877      fi
5878      rm -f conftest.* libconftest.a
5879
5880fi
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882
5883fi
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5885$as_echo "$lt_cv_ar_at_file" >&6; }
5886
5887if test "x$lt_cv_ar_at_file" = xno; then
5888  archiver_list_spec=
5889else
5890  archiver_list_spec=$lt_cv_ar_at_file
5891fi
5892
5893
5894
5895
5896
5897
5898
5899if test -n "$ac_tool_prefix"; then
5900  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5901set dummy ${ac_tool_prefix}strip; ac_word=$2
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903$as_echo_n "checking for $ac_word... " >&6; }
5904if ${ac_cv_prog_STRIP+:} false; then :
5905  $as_echo_n "(cached) " >&6
5906else
5907  if test -n "$STRIP"; then
5908  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5909else
5910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911for as_dir in $PATH
5912do
5913  IFS=$as_save_IFS
5914  test -z "$as_dir" && as_dir=.
5915    for ac_exec_ext in '' $ac_executable_extensions; do
5916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919    break 2
5920  fi
5921done
5922  done
5923IFS=$as_save_IFS
5924
5925fi
5926fi
5927STRIP=$ac_cv_prog_STRIP
5928if test -n "$STRIP"; then
5929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5930$as_echo "$STRIP" >&6; }
5931else
5932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933$as_echo "no" >&6; }
5934fi
5935
5936
5937fi
5938if test -z "$ac_cv_prog_STRIP"; then
5939  ac_ct_STRIP=$STRIP
5940  # Extract the first word of "strip", so it can be a program name with args.
5941set dummy strip; ac_word=$2
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943$as_echo_n "checking for $ac_word... " >&6; }
5944if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5945  $as_echo_n "(cached) " >&6
5946else
5947  if test -n "$ac_ct_STRIP"; then
5948  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953  IFS=$as_save_IFS
5954  test -z "$as_dir" && as_dir=.
5955    for ac_exec_ext in '' $ac_executable_extensions; do
5956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957    ac_cv_prog_ac_ct_STRIP="strip"
5958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959    break 2
5960  fi
5961done
5962  done
5963IFS=$as_save_IFS
5964
5965fi
5966fi
5967ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5968if test -n "$ac_ct_STRIP"; then
5969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5970$as_echo "$ac_ct_STRIP" >&6; }
5971else
5972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973$as_echo "no" >&6; }
5974fi
5975
5976  if test "x$ac_ct_STRIP" = x; then
5977    STRIP=":"
5978  else
5979    case $cross_compiling:$ac_tool_warned in
5980yes:)
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5983ac_tool_warned=yes ;;
5984esac
5985    STRIP=$ac_ct_STRIP
5986  fi
5987else
5988  STRIP="$ac_cv_prog_STRIP"
5989fi
5990
5991test -z "$STRIP" && STRIP=:
5992
5993
5994
5995
5996
5997
5998if test -n "$ac_tool_prefix"; then
5999  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002$as_echo_n "checking for $ac_word... " >&6; }
6003if ${ac_cv_prog_RANLIB+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  if test -n "$RANLIB"; then
6007  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012  IFS=$as_save_IFS
6013  test -z "$as_dir" && as_dir=.
6014    for ac_exec_ext in '' $ac_executable_extensions; do
6015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018    break 2
6019  fi
6020done
6021  done
6022IFS=$as_save_IFS
6023
6024fi
6025fi
6026RANLIB=$ac_cv_prog_RANLIB
6027if test -n "$RANLIB"; then
6028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6029$as_echo "$RANLIB" >&6; }
6030else
6031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032$as_echo "no" >&6; }
6033fi
6034
6035
6036fi
6037if test -z "$ac_cv_prog_RANLIB"; then
6038  ac_ct_RANLIB=$RANLIB
6039  # Extract the first word of "ranlib", so it can be a program name with args.
6040set dummy ranlib; ac_word=$2
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042$as_echo_n "checking for $ac_word... " >&6; }
6043if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6044  $as_echo_n "(cached) " >&6
6045else
6046  if test -n "$ac_ct_RANLIB"; then
6047  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052  IFS=$as_save_IFS
6053  test -z "$as_dir" && as_dir=.
6054    for ac_exec_ext in '' $ac_executable_extensions; do
6055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056    ac_cv_prog_ac_ct_RANLIB="ranlib"
6057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058    break 2
6059  fi
6060done
6061  done
6062IFS=$as_save_IFS
6063
6064fi
6065fi
6066ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6067if test -n "$ac_ct_RANLIB"; then
6068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6069$as_echo "$ac_ct_RANLIB" >&6; }
6070else
6071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072$as_echo "no" >&6; }
6073fi
6074
6075  if test "x$ac_ct_RANLIB" = x; then
6076    RANLIB=":"
6077  else
6078    case $cross_compiling:$ac_tool_warned in
6079yes:)
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082ac_tool_warned=yes ;;
6083esac
6084    RANLIB=$ac_ct_RANLIB
6085  fi
6086else
6087  RANLIB="$ac_cv_prog_RANLIB"
6088fi
6089
6090test -z "$RANLIB" && RANLIB=:
6091
6092
6093
6094
6095
6096
6097# Determine commands to create old-style static archives.
6098old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6099old_postinstall_cmds='chmod 644 $oldlib'
6100old_postuninstall_cmds=
6101
6102if test -n "$RANLIB"; then
6103  case $host_os in
6104  openbsd*)
6105    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6106    ;;
6107  *)
6108    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6109    ;;
6110  esac
6111  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6112fi
6113
6114case $host_os in
6115  darwin*)
6116    lock_old_archive_extraction=yes ;;
6117  *)
6118    lock_old_archive_extraction=no ;;
6119esac
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159# If no C compiler was specified, use CC.
6160LTCC=${LTCC-"$CC"}
6161
6162# If no C compiler flags were specified, use CFLAGS.
6163LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6164
6165# Allow CC to be a program name with arguments.
6166compiler=$CC
6167
6168
6169# Check for command to grab the raw symbol name followed by C symbol from nm.
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6171$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6172if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6173  $as_echo_n "(cached) " >&6
6174else
6175
6176# These are sane defaults that work on at least a few old systems.
6177# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6178
6179# Character class describing NM global symbol codes.
6180symcode='[BCDEGRST]'
6181
6182# Regexp to match symbols that can be accessed directly from C.
6183sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6184
6185# Define system-specific variables.
6186case $host_os in
6187aix*)
6188  symcode='[BCDT]'
6189  ;;
6190cygwin* | mingw* | pw32* | cegcc*)
6191  symcode='[ABCDGISTW]'
6192  ;;
6193hpux*)
6194  if test "$host_cpu" = ia64; then
6195    symcode='[ABCDEGRST]'
6196  fi
6197  ;;
6198irix* | nonstopux*)
6199  symcode='[BCDEGRST]'
6200  ;;
6201osf*)
6202  symcode='[BCDEGQRST]'
6203  ;;
6204solaris*)
6205  symcode='[BDRT]'
6206  ;;
6207sco3.2v5*)
6208  symcode='[DT]'
6209  ;;
6210sysv4.2uw2*)
6211  symcode='[DT]'
6212  ;;
6213sysv5* | sco5v6* | unixware* | OpenUNIX*)
6214  symcode='[ABDT]'
6215  ;;
6216sysv4)
6217  symcode='[DFNSTU]'
6218  ;;
6219esac
6220
6221# If we're using GNU nm, then use its standard symbol codes.
6222case `$NM -V 2>&1` in
6223*GNU* | *'with BFD'*)
6224  symcode='[ABCDGIRSTW]' ;;
6225esac
6226
6227# Transform an extracted symbol line into a proper C declaration.
6228# Some systems (esp. on ia64) link data and code symbols differently,
6229# so use this general approach.
6230lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6231
6232# Transform an extracted symbol line into symbol name and symbol address
6233lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6234lt_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'"
6235
6236# Handle CRLF in mingw tool chain
6237opt_cr=
6238case $build_os in
6239mingw*)
6240  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6241  ;;
6242esac
6243
6244# Try without a prefix underscore, then with it.
6245for ac_symprfx in "" "_"; do
6246
6247  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6248  symxfrm="\\1 $ac_symprfx\\2 \\2"
6249
6250  # Write the raw and C identifiers.
6251  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6252    # Fake it for dumpbin and say T for any non-static function
6253    # and D for any global variable.
6254    # Also find C++ and __fastcall symbols from MSVC++,
6255    # which start with @ or ?.
6256    lt_cv_sys_global_symbol_pipe="$AWK '"\
6257"     {last_section=section; section=\$ 3};"\
6258"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6259"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6260"     \$ 0!~/External *\|/{next};"\
6261"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6262"     {if(hide[section]) next};"\
6263"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6264"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6265"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6266"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6267"     ' prfx=^$ac_symprfx"
6268  else
6269    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6270  fi
6271  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6272
6273  # Check to see that the pipe works correctly.
6274  pipe_works=no
6275
6276  rm -f conftest*
6277  cat > conftest.$ac_ext <<_LT_EOF
6278#ifdef __cplusplus
6279extern "C" {
6280#endif
6281char nm_test_var;
6282void nm_test_func(void);
6283void nm_test_func(void){}
6284#ifdef __cplusplus
6285}
6286#endif
6287int main(){nm_test_var='a';nm_test_func();return(0);}
6288_LT_EOF
6289
6290  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6291  (eval $ac_compile) 2>&5
6292  ac_status=$?
6293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6294  test $ac_status = 0; }; then
6295    # Now try to grab the symbols.
6296    nlist=conftest.nm
6297    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6298  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6299  ac_status=$?
6300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6301  test $ac_status = 0; } && test -s "$nlist"; then
6302      # Try sorting and uniquifying the output.
6303      if sort "$nlist" | uniq > "$nlist"T; then
6304	mv -f "$nlist"T "$nlist"
6305      else
6306	rm -f "$nlist"T
6307      fi
6308
6309      # Make sure that we snagged all the symbols we need.
6310      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6311	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6312	  cat <<_LT_EOF > conftest.$ac_ext
6313/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6314#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6315/* DATA imports from DLLs on WIN32 con't be const, because runtime
6316   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6317# define LT_DLSYM_CONST
6318#elif defined(__osf__)
6319/* This system does not cope well with relocations in const data.  */
6320# define LT_DLSYM_CONST
6321#else
6322# define LT_DLSYM_CONST const
6323#endif
6324
6325#ifdef __cplusplus
6326extern "C" {
6327#endif
6328
6329_LT_EOF
6330	  # Now generate the symbol file.
6331	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6332
6333	  cat <<_LT_EOF >> conftest.$ac_ext
6334
6335/* The mapping between symbol names and symbols.  */
6336LT_DLSYM_CONST struct {
6337  const char *name;
6338  void       *address;
6339}
6340lt__PROGRAM__LTX_preloaded_symbols[] =
6341{
6342  { "@PROGRAM@", (void *) 0 },
6343_LT_EOF
6344	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6345	  cat <<\_LT_EOF >> conftest.$ac_ext
6346  {0, (void *) 0}
6347};
6348
6349/* This works around a problem in FreeBSD linker */
6350#ifdef FREEBSD_WORKAROUND
6351static const void *lt_preloaded_setup() {
6352  return lt__PROGRAM__LTX_preloaded_symbols;
6353}
6354#endif
6355
6356#ifdef __cplusplus
6357}
6358#endif
6359_LT_EOF
6360	  # Now try linking the two files.
6361	  mv conftest.$ac_objext conftstm.$ac_objext
6362	  lt_globsym_save_LIBS=$LIBS
6363	  lt_globsym_save_CFLAGS=$CFLAGS
6364	  LIBS="conftstm.$ac_objext"
6365	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6366	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6367  (eval $ac_link) 2>&5
6368  ac_status=$?
6369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6371	    pipe_works=yes
6372	  fi
6373	  LIBS=$lt_globsym_save_LIBS
6374	  CFLAGS=$lt_globsym_save_CFLAGS
6375	else
6376	  echo "cannot find nm_test_func in $nlist" >&5
6377	fi
6378      else
6379	echo "cannot find nm_test_var in $nlist" >&5
6380      fi
6381    else
6382      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6383    fi
6384  else
6385    echo "$progname: failed program was:" >&5
6386    cat conftest.$ac_ext >&5
6387  fi
6388  rm -rf conftest* conftst*
6389
6390  # Do not use the global_symbol_pipe unless it works.
6391  if test "$pipe_works" = yes; then
6392    break
6393  else
6394    lt_cv_sys_global_symbol_pipe=
6395  fi
6396done
6397
6398fi
6399
6400if test -z "$lt_cv_sys_global_symbol_pipe"; then
6401  lt_cv_sys_global_symbol_to_cdecl=
6402fi
6403if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6405$as_echo "failed" >&6; }
6406else
6407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6408$as_echo "ok" >&6; }
6409fi
6410
6411# Response file support.
6412if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6413  nm_file_list_spec='@'
6414elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6415  nm_file_list_spec='@'
6416fi
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6445$as_echo_n "checking for sysroot... " >&6; }
6446
6447# Check whether --with-sysroot was given.
6448if test "${with_sysroot+set}" = set; then :
6449  withval=$with_sysroot;
6450else
6451  with_sysroot=no
6452fi
6453
6454
6455lt_sysroot=
6456case ${with_sysroot} in #(
6457 yes)
6458   if test "$GCC" = yes; then
6459     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6460   fi
6461   ;; #(
6462 /*)
6463   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6464   ;; #(
6465 no|'')
6466   ;; #(
6467 *)
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6469$as_echo "${with_sysroot}" >&6; }
6470   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6471   ;;
6472esac
6473
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6475$as_echo "${lt_sysroot:-no}" >&6; }
6476
6477
6478
6479
6480
6481# Check whether --enable-libtool-lock was given.
6482if test "${enable_libtool_lock+set}" = set; then :
6483  enableval=$enable_libtool_lock;
6484fi
6485
6486test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6487
6488# Some flags need to be propagated to the compiler or linker for good
6489# libtool support.
6490case $host in
6491ia64-*-hpux*)
6492  # Find out which ABI we are using.
6493  echo 'int i;' > conftest.$ac_ext
6494  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6495  (eval $ac_compile) 2>&5
6496  ac_status=$?
6497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6498  test $ac_status = 0; }; then
6499    case `/usr/bin/file conftest.$ac_objext` in
6500      *ELF-32*)
6501	HPUX_IA64_MODE="32"
6502	;;
6503      *ELF-64*)
6504	HPUX_IA64_MODE="64"
6505	;;
6506    esac
6507  fi
6508  rm -rf conftest*
6509  ;;
6510*-*-irix6*)
6511  # Find out which ABI we are using.
6512  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6513  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6514  (eval $ac_compile) 2>&5
6515  ac_status=$?
6516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517  test $ac_status = 0; }; then
6518    if test "$lt_cv_prog_gnu_ld" = yes; then
6519      case `/usr/bin/file conftest.$ac_objext` in
6520	*32-bit*)
6521	  LD="${LD-ld} -melf32bsmip"
6522	  ;;
6523	*N32*)
6524	  LD="${LD-ld} -melf32bmipn32"
6525	  ;;
6526	*64-bit*)
6527	  LD="${LD-ld} -melf64bmip"
6528	;;
6529      esac
6530    else
6531      case `/usr/bin/file conftest.$ac_objext` in
6532	*32-bit*)
6533	  LD="${LD-ld} -32"
6534	  ;;
6535	*N32*)
6536	  LD="${LD-ld} -n32"
6537	  ;;
6538	*64-bit*)
6539	  LD="${LD-ld} -64"
6540	  ;;
6541      esac
6542    fi
6543  fi
6544  rm -rf conftest*
6545  ;;
6546
6547x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6548s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6549  # Find out which ABI we are using.
6550  echo 'int i;' > conftest.$ac_ext
6551  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6552  (eval $ac_compile) 2>&5
6553  ac_status=$?
6554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6555  test $ac_status = 0; }; then
6556    case `/usr/bin/file conftest.o` in
6557      *32-bit*)
6558	case $host in
6559	  x86_64-*kfreebsd*-gnu)
6560	    LD="${LD-ld} -m elf_i386_fbsd"
6561	    ;;
6562	  x86_64-*linux*)
6563	    LD="${LD-ld} -m elf_i386"
6564	    ;;
6565	  ppc64-*linux*|powerpc64-*linux*)
6566	    LD="${LD-ld} -m elf32ppclinux"
6567	    ;;
6568	  s390x-*linux*)
6569	    LD="${LD-ld} -m elf_s390"
6570	    ;;
6571	  sparc64-*linux*)
6572	    LD="${LD-ld} -m elf32_sparc"
6573	    ;;
6574	esac
6575	;;
6576      *64-bit*)
6577	case $host in
6578	  x86_64-*kfreebsd*-gnu)
6579	    LD="${LD-ld} -m elf_x86_64_fbsd"
6580	    ;;
6581	  x86_64-*linux*)
6582	    LD="${LD-ld} -m elf_x86_64"
6583	    ;;
6584	  ppc*-*linux*|powerpc*-*linux*)
6585	    LD="${LD-ld} -m elf64ppc"
6586	    ;;
6587	  s390*-*linux*|s390*-*tpf*)
6588	    LD="${LD-ld} -m elf64_s390"
6589	    ;;
6590	  sparc*-*linux*)
6591	    LD="${LD-ld} -m elf64_sparc"
6592	    ;;
6593	esac
6594	;;
6595    esac
6596  fi
6597  rm -rf conftest*
6598  ;;
6599
6600*-*-sco3.2v5*)
6601  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6602  SAVE_CFLAGS="$CFLAGS"
6603  CFLAGS="$CFLAGS -belf"
6604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6605$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6606if ${lt_cv_cc_needs_belf+:} false; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  ac_ext=c
6610ac_cpp='$CPP $CPPFLAGS'
6611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6613ac_compiler_gnu=$ac_cv_c_compiler_gnu
6614
6615     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616/* end confdefs.h.  */
6617
6618int
6619main ()
6620{
6621
6622  ;
6623  return 0;
6624}
6625_ACEOF
6626if ac_fn_c_try_link "$LINENO"; then :
6627  lt_cv_cc_needs_belf=yes
6628else
6629  lt_cv_cc_needs_belf=no
6630fi
6631rm -f core conftest.err conftest.$ac_objext \
6632    conftest$ac_exeext conftest.$ac_ext
6633     ac_ext=c
6634ac_cpp='$CPP $CPPFLAGS'
6635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6637ac_compiler_gnu=$ac_cv_c_compiler_gnu
6638
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6641$as_echo "$lt_cv_cc_needs_belf" >&6; }
6642  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6643    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6644    CFLAGS="$SAVE_CFLAGS"
6645  fi
6646  ;;
6647*-*solaris*)
6648  # Find out which ABI we are using.
6649  echo 'int i;' > conftest.$ac_ext
6650  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6651  (eval $ac_compile) 2>&5
6652  ac_status=$?
6653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654  test $ac_status = 0; }; then
6655    case `/usr/bin/file conftest.o` in
6656    *64-bit*)
6657      case $lt_cv_prog_gnu_ld in
6658      yes*)
6659        case $host in
6660        i?86-*-solaris*)
6661          LD="${LD-ld} -m elf_x86_64"
6662          ;;
6663        sparc*-*-solaris*)
6664          LD="${LD-ld} -m elf64_sparc"
6665          ;;
6666        esac
6667        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6668        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6669          LD="${LD-ld}_sol2"
6670        fi
6671        ;;
6672      *)
6673	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6674	  LD="${LD-ld} -64"
6675	fi
6676	;;
6677      esac
6678      ;;
6679    esac
6680  fi
6681  rm -rf conftest*
6682  ;;
6683esac
6684
6685need_locks="$enable_libtool_lock"
6686
6687if test -n "$ac_tool_prefix"; then
6688  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6689set dummy ${ac_tool_prefix}mt; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
6692if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6693  $as_echo_n "(cached) " >&6
6694else
6695  if test -n "$MANIFEST_TOOL"; then
6696  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701  IFS=$as_save_IFS
6702  test -z "$as_dir" && as_dir=.
6703    for ac_exec_ext in '' $ac_executable_extensions; do
6704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710  done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6716if test -n "$MANIFEST_TOOL"; then
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6718$as_echo "$MANIFEST_TOOL" >&6; }
6719else
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721$as_echo "no" >&6; }
6722fi
6723
6724
6725fi
6726if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6727  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6728  # Extract the first word of "mt", so it can be a program name with args.
6729set dummy mt; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  if test -n "$ac_ct_MANIFEST_TOOL"; then
6736  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741  IFS=$as_save_IFS
6742  test -z "$as_dir" && as_dir=.
6743    for ac_exec_ext in '' $ac_executable_extensions; do
6744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747    break 2
6748  fi
6749done
6750  done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6756if test -n "$ac_ct_MANIFEST_TOOL"; then
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6758$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6759else
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6765    MANIFEST_TOOL=":"
6766  else
6767    case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771ac_tool_warned=yes ;;
6772esac
6773    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6774  fi
6775else
6776  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6777fi
6778
6779test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6781$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6782if ${lt_cv_path_mainfest_tool+:} false; then :
6783  $as_echo_n "(cached) " >&6
6784else
6785  lt_cv_path_mainfest_tool=no
6786  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6787  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6788  cat conftest.err >&5
6789  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6790    lt_cv_path_mainfest_tool=yes
6791  fi
6792  rm -f conftest*
6793fi
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6795$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6796if test "x$lt_cv_path_mainfest_tool" != xyes; then
6797  MANIFEST_TOOL=:
6798fi
6799
6800
6801
6802
6803
6804
6805  case $host_os in
6806    rhapsody* | darwin*)
6807    if test -n "$ac_tool_prefix"; then
6808  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6809set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if ${ac_cv_prog_DSYMUTIL+:} false; then :
6813  $as_echo_n "(cached) " >&6
6814else
6815  if test -n "$DSYMUTIL"; then
6816  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821  IFS=$as_save_IFS
6822  test -z "$as_dir" && as_dir=.
6823    for ac_exec_ext in '' $ac_executable_extensions; do
6824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827    break 2
6828  fi
6829done
6830  done
6831IFS=$as_save_IFS
6832
6833fi
6834fi
6835DSYMUTIL=$ac_cv_prog_DSYMUTIL
6836if test -n "$DSYMUTIL"; then
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6838$as_echo "$DSYMUTIL" >&6; }
6839else
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844
6845fi
6846if test -z "$ac_cv_prog_DSYMUTIL"; then
6847  ac_ct_DSYMUTIL=$DSYMUTIL
6848  # Extract the first word of "dsymutil", so it can be a program name with args.
6849set dummy dsymutil; ac_word=$2
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851$as_echo_n "checking for $ac_word... " >&6; }
6852if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  if test -n "$ac_ct_DSYMUTIL"; then
6856  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861  IFS=$as_save_IFS
6862  test -z "$as_dir" && as_dir=.
6863    for ac_exec_ext in '' $ac_executable_extensions; do
6864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6865    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867    break 2
6868  fi
6869done
6870  done
6871IFS=$as_save_IFS
6872
6873fi
6874fi
6875ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6876if test -n "$ac_ct_DSYMUTIL"; then
6877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6878$as_echo "$ac_ct_DSYMUTIL" >&6; }
6879else
6880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881$as_echo "no" >&6; }
6882fi
6883
6884  if test "x$ac_ct_DSYMUTIL" = x; then
6885    DSYMUTIL=":"
6886  else
6887    case $cross_compiling:$ac_tool_warned in
6888yes:)
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891ac_tool_warned=yes ;;
6892esac
6893    DSYMUTIL=$ac_ct_DSYMUTIL
6894  fi
6895else
6896  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6897fi
6898
6899    if test -n "$ac_tool_prefix"; then
6900  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6901set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903$as_echo_n "checking for $ac_word... " >&6; }
6904if ${ac_cv_prog_NMEDIT+:} false; then :
6905  $as_echo_n "(cached) " >&6
6906else
6907  if test -n "$NMEDIT"; then
6908  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913  IFS=$as_save_IFS
6914  test -z "$as_dir" && as_dir=.
6915    for ac_exec_ext in '' $ac_executable_extensions; do
6916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919    break 2
6920  fi
6921done
6922  done
6923IFS=$as_save_IFS
6924
6925fi
6926fi
6927NMEDIT=$ac_cv_prog_NMEDIT
6928if test -n "$NMEDIT"; then
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6930$as_echo "$NMEDIT" >&6; }
6931else
6932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933$as_echo "no" >&6; }
6934fi
6935
6936
6937fi
6938if test -z "$ac_cv_prog_NMEDIT"; then
6939  ac_ct_NMEDIT=$NMEDIT
6940  # Extract the first word of "nmedit", so it can be a program name with args.
6941set dummy nmedit; ac_word=$2
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943$as_echo_n "checking for $ac_word... " >&6; }
6944if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  if test -n "$ac_ct_NMEDIT"; then
6948  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953  IFS=$as_save_IFS
6954  test -z "$as_dir" && as_dir=.
6955    for ac_exec_ext in '' $ac_executable_extensions; do
6956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959    break 2
6960  fi
6961done
6962  done
6963IFS=$as_save_IFS
6964
6965fi
6966fi
6967ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6968if test -n "$ac_ct_NMEDIT"; then
6969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6970$as_echo "$ac_ct_NMEDIT" >&6; }
6971else
6972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973$as_echo "no" >&6; }
6974fi
6975
6976  if test "x$ac_ct_NMEDIT" = x; then
6977    NMEDIT=":"
6978  else
6979    case $cross_compiling:$ac_tool_warned in
6980yes:)
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983ac_tool_warned=yes ;;
6984esac
6985    NMEDIT=$ac_ct_NMEDIT
6986  fi
6987else
6988  NMEDIT="$ac_cv_prog_NMEDIT"
6989fi
6990
6991    if test -n "$ac_tool_prefix"; then
6992  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6993set dummy ${ac_tool_prefix}lipo; ac_word=$2
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
6996if ${ac_cv_prog_LIPO+:} false; then :
6997  $as_echo_n "(cached) " >&6
6998else
6999  if test -n "$LIPO"; then
7000  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005  IFS=$as_save_IFS
7006  test -z "$as_dir" && as_dir=.
7007    for ac_exec_ext in '' $ac_executable_extensions; do
7008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011    break 2
7012  fi
7013done
7014  done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019LIPO=$ac_cv_prog_LIPO
7020if test -n "$LIPO"; then
7021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7022$as_echo "$LIPO" >&6; }
7023else
7024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028
7029fi
7030if test -z "$ac_cv_prog_LIPO"; then
7031  ac_ct_LIPO=$LIPO
7032  # Extract the first word of "lipo", so it can be a program name with args.
7033set dummy lipo; ac_word=$2
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035$as_echo_n "checking for $ac_word... " >&6; }
7036if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  if test -n "$ac_ct_LIPO"; then
7040  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045  IFS=$as_save_IFS
7046  test -z "$as_dir" && as_dir=.
7047    for ac_exec_ext in '' $ac_executable_extensions; do
7048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049    ac_cv_prog_ac_ct_LIPO="lipo"
7050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051    break 2
7052  fi
7053done
7054  done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
7059ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7060if test -n "$ac_ct_LIPO"; then
7061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7062$as_echo "$ac_ct_LIPO" >&6; }
7063else
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066fi
7067
7068  if test "x$ac_ct_LIPO" = x; then
7069    LIPO=":"
7070  else
7071    case $cross_compiling:$ac_tool_warned in
7072yes:)
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075ac_tool_warned=yes ;;
7076esac
7077    LIPO=$ac_ct_LIPO
7078  fi
7079else
7080  LIPO="$ac_cv_prog_LIPO"
7081fi
7082
7083    if test -n "$ac_tool_prefix"; then
7084  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7085set dummy ${ac_tool_prefix}otool; ac_word=$2
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087$as_echo_n "checking for $ac_word... " >&6; }
7088if ${ac_cv_prog_OTOOL+:} false; then :
7089  $as_echo_n "(cached) " >&6
7090else
7091  if test -n "$OTOOL"; then
7092  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7093else
7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097  IFS=$as_save_IFS
7098  test -z "$as_dir" && as_dir=.
7099    for ac_exec_ext in '' $ac_executable_extensions; do
7100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103    break 2
7104  fi
7105done
7106  done
7107IFS=$as_save_IFS
7108
7109fi
7110fi
7111OTOOL=$ac_cv_prog_OTOOL
7112if test -n "$OTOOL"; then
7113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7114$as_echo "$OTOOL" >&6; }
7115else
7116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117$as_echo "no" >&6; }
7118fi
7119
7120
7121fi
7122if test -z "$ac_cv_prog_OTOOL"; then
7123  ac_ct_OTOOL=$OTOOL
7124  # Extract the first word of "otool", so it can be a program name with args.
7125set dummy otool; ac_word=$2
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127$as_echo_n "checking for $ac_word... " >&6; }
7128if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7129  $as_echo_n "(cached) " >&6
7130else
7131  if test -n "$ac_ct_OTOOL"; then
7132  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7133else
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137  IFS=$as_save_IFS
7138  test -z "$as_dir" && as_dir=.
7139    for ac_exec_ext in '' $ac_executable_extensions; do
7140  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141    ac_cv_prog_ac_ct_OTOOL="otool"
7142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143    break 2
7144  fi
7145done
7146  done
7147IFS=$as_save_IFS
7148
7149fi
7150fi
7151ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7152if test -n "$ac_ct_OTOOL"; then
7153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7154$as_echo "$ac_ct_OTOOL" >&6; }
7155else
7156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157$as_echo "no" >&6; }
7158fi
7159
7160  if test "x$ac_ct_OTOOL" = x; then
7161    OTOOL=":"
7162  else
7163    case $cross_compiling:$ac_tool_warned in
7164yes:)
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167ac_tool_warned=yes ;;
7168esac
7169    OTOOL=$ac_ct_OTOOL
7170  fi
7171else
7172  OTOOL="$ac_cv_prog_OTOOL"
7173fi
7174
7175    if test -n "$ac_tool_prefix"; then
7176  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7177set dummy ${ac_tool_prefix}otool64; ac_word=$2
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179$as_echo_n "checking for $ac_word... " >&6; }
7180if ${ac_cv_prog_OTOOL64+:} false; then :
7181  $as_echo_n "(cached) " >&6
7182else
7183  if test -n "$OTOOL64"; then
7184  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7185else
7186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187for as_dir in $PATH
7188do
7189  IFS=$as_save_IFS
7190  test -z "$as_dir" && as_dir=.
7191    for ac_exec_ext in '' $ac_executable_extensions; do
7192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7193    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195    break 2
7196  fi
7197done
7198  done
7199IFS=$as_save_IFS
7200
7201fi
7202fi
7203OTOOL64=$ac_cv_prog_OTOOL64
7204if test -n "$OTOOL64"; then
7205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7206$as_echo "$OTOOL64" >&6; }
7207else
7208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209$as_echo "no" >&6; }
7210fi
7211
7212
7213fi
7214if test -z "$ac_cv_prog_OTOOL64"; then
7215  ac_ct_OTOOL64=$OTOOL64
7216  # Extract the first word of "otool64", so it can be a program name with args.
7217set dummy otool64; ac_word=$2
7218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219$as_echo_n "checking for $ac_word... " >&6; }
7220if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7221  $as_echo_n "(cached) " >&6
7222else
7223  if test -n "$ac_ct_OTOOL64"; then
7224  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7225else
7226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227for as_dir in $PATH
7228do
7229  IFS=$as_save_IFS
7230  test -z "$as_dir" && as_dir=.
7231    for ac_exec_ext in '' $ac_executable_extensions; do
7232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233    ac_cv_prog_ac_ct_OTOOL64="otool64"
7234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7235    break 2
7236  fi
7237done
7238  done
7239IFS=$as_save_IFS
7240
7241fi
7242fi
7243ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7244if test -n "$ac_ct_OTOOL64"; then
7245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7246$as_echo "$ac_ct_OTOOL64" >&6; }
7247else
7248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249$as_echo "no" >&6; }
7250fi
7251
7252  if test "x$ac_ct_OTOOL64" = x; then
7253    OTOOL64=":"
7254  else
7255    case $cross_compiling:$ac_tool_warned in
7256yes:)
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7259ac_tool_warned=yes ;;
7260esac
7261    OTOOL64=$ac_ct_OTOOL64
7262  fi
7263else
7264  OTOOL64="$ac_cv_prog_OTOOL64"
7265fi
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7294$as_echo_n "checking for -single_module linker flag... " >&6; }
7295if ${lt_cv_apple_cc_single_mod+:} false; then :
7296  $as_echo_n "(cached) " >&6
7297else
7298  lt_cv_apple_cc_single_mod=no
7299      if test -z "${LT_MULTI_MODULE}"; then
7300	# By default we will add the -single_module flag. You can override
7301	# by either setting the environment variable LT_MULTI_MODULE
7302	# non-empty at configure time, or by adding -multi_module to the
7303	# link flags.
7304	rm -rf libconftest.dylib*
7305	echo "int foo(void){return 1;}" > conftest.c
7306	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7307-dynamiclib -Wl,-single_module conftest.c" >&5
7308	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7309	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7310        _lt_result=$?
7311	# If there is a non-empty error log, and "single_module"
7312	# appears in it, assume the flag caused a linker warning
7313        if test -s conftest.err && $GREP single_module conftest.err; then
7314	  cat conftest.err >&5
7315	# Otherwise, if the output was created with a 0 exit code from
7316	# the compiler, it worked.
7317	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7318	  lt_cv_apple_cc_single_mod=yes
7319	else
7320	  cat conftest.err >&5
7321	fi
7322	rm -rf libconftest.dylib*
7323	rm -f conftest.*
7324      fi
7325fi
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7327$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7328
7329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7330$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7331if ${lt_cv_ld_exported_symbols_list+:} false; then :
7332  $as_echo_n "(cached) " >&6
7333else
7334  lt_cv_ld_exported_symbols_list=no
7335      save_LDFLAGS=$LDFLAGS
7336      echo "_main" > conftest.sym
7337      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7338      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339/* end confdefs.h.  */
7340
7341int
7342main ()
7343{
7344
7345  ;
7346  return 0;
7347}
7348_ACEOF
7349if ac_fn_c_try_link "$LINENO"; then :
7350  lt_cv_ld_exported_symbols_list=yes
7351else
7352  lt_cv_ld_exported_symbols_list=no
7353fi
7354rm -f core conftest.err conftest.$ac_objext \
7355    conftest$ac_exeext conftest.$ac_ext
7356	LDFLAGS="$save_LDFLAGS"
7357
7358fi
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7360$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7361
7362    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7363$as_echo_n "checking for -force_load linker flag... " >&6; }
7364if ${lt_cv_ld_force_load+:} false; then :
7365  $as_echo_n "(cached) " >&6
7366else
7367  lt_cv_ld_force_load=no
7368      cat > conftest.c << _LT_EOF
7369int forced_loaded() { return 2;}
7370_LT_EOF
7371      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7372      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7373      echo "$AR cru libconftest.a conftest.o" >&5
7374      $AR cru libconftest.a conftest.o 2>&5
7375      echo "$RANLIB libconftest.a" >&5
7376      $RANLIB libconftest.a 2>&5
7377      cat > conftest.c << _LT_EOF
7378int main() { return 0;}
7379_LT_EOF
7380      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7381      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7382      _lt_result=$?
7383      if test -s conftest.err && $GREP force_load conftest.err; then
7384	cat conftest.err >&5
7385      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7386	lt_cv_ld_force_load=yes
7387      else
7388	cat conftest.err >&5
7389      fi
7390        rm -f conftest.err libconftest.a conftest conftest.c
7391        rm -rf conftest.dSYM
7392
7393fi
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7395$as_echo "$lt_cv_ld_force_load" >&6; }
7396    case $host_os in
7397    rhapsody* | darwin1.[012])
7398      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7399    darwin1.*)
7400      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7401    darwin*) # darwin 5.x on
7402      # if running on 10.5 or later, the deployment target defaults
7403      # to the OS version, if on x86, and 10.4, the deployment
7404      # target defaults to 10.4. Don't you love it?
7405      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7406	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7407	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7408	10.[012]*)
7409	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7410	10.*)
7411	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7412      esac
7413    ;;
7414  esac
7415    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7416      _lt_dar_single_mod='$single_module'
7417    fi
7418    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7419      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7420    else
7421      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7422    fi
7423    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7424      _lt_dsymutil='~$DSYMUTIL $lib || :'
7425    else
7426      _lt_dsymutil=
7427    fi
7428    ;;
7429  esac
7430
7431ac_ext=c
7432ac_cpp='$CPP $CPPFLAGS'
7433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7435ac_compiler_gnu=$ac_cv_c_compiler_gnu
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7437$as_echo_n "checking how to run the C preprocessor... " >&6; }
7438# On Suns, sometimes $CPP names a directory.
7439if test -n "$CPP" && test -d "$CPP"; then
7440  CPP=
7441fi
7442if test -z "$CPP"; then
7443  if ${ac_cv_prog_CPP+:} false; then :
7444  $as_echo_n "(cached) " >&6
7445else
7446      # Double quotes because CPP needs to be expanded
7447    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7448    do
7449      ac_preproc_ok=false
7450for ac_c_preproc_warn_flag in '' yes
7451do
7452  # Use a header file that comes with gcc, so configuring glibc
7453  # with a fresh cross-compiler works.
7454  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7455  # <limits.h> exists even on freestanding compilers.
7456  # On the NeXT, cc -E runs the code through the compiler's parser,
7457  # not just through cpp. "Syntax error" is here to catch this case.
7458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459/* end confdefs.h.  */
7460#ifdef __STDC__
7461# include <limits.h>
7462#else
7463# include <assert.h>
7464#endif
7465		     Syntax error
7466_ACEOF
7467if ac_fn_c_try_cpp "$LINENO"; then :
7468
7469else
7470  # Broken: fails on valid input.
7471continue
7472fi
7473rm -f conftest.err conftest.i conftest.$ac_ext
7474
7475  # OK, works on sane cases.  Now check whether nonexistent headers
7476  # can be detected and how.
7477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478/* end confdefs.h.  */
7479#include <ac_nonexistent.h>
7480_ACEOF
7481if ac_fn_c_try_cpp "$LINENO"; then :
7482  # Broken: success on invalid input.
7483continue
7484else
7485  # Passes both tests.
7486ac_preproc_ok=:
7487break
7488fi
7489rm -f conftest.err conftest.i conftest.$ac_ext
7490
7491done
7492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7493rm -f conftest.i conftest.err conftest.$ac_ext
7494if $ac_preproc_ok; then :
7495  break
7496fi
7497
7498    done
7499    ac_cv_prog_CPP=$CPP
7500
7501fi
7502  CPP=$ac_cv_prog_CPP
7503else
7504  ac_cv_prog_CPP=$CPP
7505fi
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7507$as_echo "$CPP" >&6; }
7508ac_preproc_ok=false
7509for ac_c_preproc_warn_flag in '' yes
7510do
7511  # Use a header file that comes with gcc, so configuring glibc
7512  # with a fresh cross-compiler works.
7513  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7514  # <limits.h> exists even on freestanding compilers.
7515  # On the NeXT, cc -E runs the code through the compiler's parser,
7516  # not just through cpp. "Syntax error" is here to catch this case.
7517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h.  */
7519#ifdef __STDC__
7520# include <limits.h>
7521#else
7522# include <assert.h>
7523#endif
7524		     Syntax error
7525_ACEOF
7526if ac_fn_c_try_cpp "$LINENO"; then :
7527
7528else
7529  # Broken: fails on valid input.
7530continue
7531fi
7532rm -f conftest.err conftest.i conftest.$ac_ext
7533
7534  # OK, works on sane cases.  Now check whether nonexistent headers
7535  # can be detected and how.
7536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537/* end confdefs.h.  */
7538#include <ac_nonexistent.h>
7539_ACEOF
7540if ac_fn_c_try_cpp "$LINENO"; then :
7541  # Broken: success on invalid input.
7542continue
7543else
7544  # Passes both tests.
7545ac_preproc_ok=:
7546break
7547fi
7548rm -f conftest.err conftest.i conftest.$ac_ext
7549
7550done
7551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7552rm -f conftest.i conftest.err conftest.$ac_ext
7553if $ac_preproc_ok; then :
7554
7555else
7556  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7558as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7559See \`config.log' for more details" "$LINENO" 5; }
7560fi
7561
7562ac_ext=c
7563ac_cpp='$CPP $CPPFLAGS'
7564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7566ac_compiler_gnu=$ac_cv_c_compiler_gnu
7567
7568
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7570$as_echo_n "checking for ANSI C header files... " >&6; }
7571if ${ac_cv_header_stdc+:} false; then :
7572  $as_echo_n "(cached) " >&6
7573else
7574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h.  */
7576#include <stdlib.h>
7577#include <stdarg.h>
7578#include <string.h>
7579#include <float.h>
7580
7581int
7582main ()
7583{
7584
7585  ;
7586  return 0;
7587}
7588_ACEOF
7589if ac_fn_c_try_compile "$LINENO"; then :
7590  ac_cv_header_stdc=yes
7591else
7592  ac_cv_header_stdc=no
7593fi
7594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595
7596if test $ac_cv_header_stdc = yes; then
7597  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h.  */
7600#include <string.h>
7601
7602_ACEOF
7603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7604  $EGREP "memchr" >/dev/null 2>&1; then :
7605
7606else
7607  ac_cv_header_stdc=no
7608fi
7609rm -f conftest*
7610
7611fi
7612
7613if test $ac_cv_header_stdc = yes; then
7614  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616/* end confdefs.h.  */
7617#include <stdlib.h>
7618
7619_ACEOF
7620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7621  $EGREP "free" >/dev/null 2>&1; then :
7622
7623else
7624  ac_cv_header_stdc=no
7625fi
7626rm -f conftest*
7627
7628fi
7629
7630if test $ac_cv_header_stdc = yes; then
7631  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7632  if test "$cross_compiling" = yes; then :
7633  :
7634else
7635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636/* end confdefs.h.  */
7637#include <ctype.h>
7638#include <stdlib.h>
7639#if ((' ' & 0x0FF) == 0x020)
7640# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7641# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7642#else
7643# define ISLOWER(c) \
7644		   (('a' <= (c) && (c) <= 'i') \
7645		     || ('j' <= (c) && (c) <= 'r') \
7646		     || ('s' <= (c) && (c) <= 'z'))
7647# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7648#endif
7649
7650#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7651int
7652main ()
7653{
7654  int i;
7655  for (i = 0; i < 256; i++)
7656    if (XOR (islower (i), ISLOWER (i))
7657	|| toupper (i) != TOUPPER (i))
7658      return 2;
7659  return 0;
7660}
7661_ACEOF
7662if ac_fn_c_try_run "$LINENO"; then :
7663
7664else
7665  ac_cv_header_stdc=no
7666fi
7667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7668  conftest.$ac_objext conftest.beam conftest.$ac_ext
7669fi
7670
7671fi
7672fi
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7674$as_echo "$ac_cv_header_stdc" >&6; }
7675if test $ac_cv_header_stdc = yes; then
7676
7677$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7678
7679fi
7680
7681# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7682for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7683		  inttypes.h stdint.h unistd.h
7684do :
7685  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7686ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7687"
7688if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7689  cat >>confdefs.h <<_ACEOF
7690#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7691_ACEOF
7692
7693fi
7694
7695done
7696
7697
7698for ac_header in dlfcn.h
7699do :
7700  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7701"
7702if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7703  cat >>confdefs.h <<_ACEOF
7704#define HAVE_DLFCN_H 1
7705_ACEOF
7706
7707fi
7708
7709done
7710
7711
7712
7713
7714
7715# Set options
7716
7717
7718
7719        enable_dlopen=no
7720
7721
7722  enable_win32_dll=no
7723
7724
7725            # Check whether --enable-shared was given.
7726if test "${enable_shared+set}" = set; then :
7727  enableval=$enable_shared; p=${PACKAGE-default}
7728    case $enableval in
7729    yes) enable_shared=yes ;;
7730    no) enable_shared=no ;;
7731    *)
7732      enable_shared=no
7733      # Look at the argument we got.  We use all the common list separators.
7734      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7735      for pkg in $enableval; do
7736	IFS="$lt_save_ifs"
7737	if test "X$pkg" = "X$p"; then
7738	  enable_shared=yes
7739	fi
7740      done
7741      IFS="$lt_save_ifs"
7742      ;;
7743    esac
7744else
7745  enable_shared=yes
7746fi
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756  # Check whether --enable-static was given.
7757if test "${enable_static+set}" = set; then :
7758  enableval=$enable_static; p=${PACKAGE-default}
7759    case $enableval in
7760    yes) enable_static=yes ;;
7761    no) enable_static=no ;;
7762    *)
7763     enable_static=no
7764      # Look at the argument we got.  We use all the common list separators.
7765      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7766      for pkg in $enableval; do
7767	IFS="$lt_save_ifs"
7768	if test "X$pkg" = "X$p"; then
7769	  enable_static=yes
7770	fi
7771      done
7772      IFS="$lt_save_ifs"
7773      ;;
7774    esac
7775else
7776  enable_static=yes
7777fi
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788# Check whether --with-pic was given.
7789if test "${with_pic+set}" = set; then :
7790  withval=$with_pic; lt_p=${PACKAGE-default}
7791    case $withval in
7792    yes|no) pic_mode=$withval ;;
7793    *)
7794      pic_mode=default
7795      # Look at the argument we got.  We use all the common list separators.
7796      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7797      for lt_pkg in $withval; do
7798	IFS="$lt_save_ifs"
7799	if test "X$lt_pkg" = "X$lt_p"; then
7800	  pic_mode=yes
7801	fi
7802      done
7803      IFS="$lt_save_ifs"
7804      ;;
7805    esac
7806else
7807  pic_mode=default
7808fi
7809
7810
7811test -z "$pic_mode" && pic_mode=default
7812
7813
7814
7815
7816
7817
7818
7819  # Check whether --enable-fast-install was given.
7820if test "${enable_fast_install+set}" = set; then :
7821  enableval=$enable_fast_install; p=${PACKAGE-default}
7822    case $enableval in
7823    yes) enable_fast_install=yes ;;
7824    no) enable_fast_install=no ;;
7825    *)
7826      enable_fast_install=no
7827      # Look at the argument we got.  We use all the common list separators.
7828      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7829      for pkg in $enableval; do
7830	IFS="$lt_save_ifs"
7831	if test "X$pkg" = "X$p"; then
7832	  enable_fast_install=yes
7833	fi
7834      done
7835      IFS="$lt_save_ifs"
7836      ;;
7837    esac
7838else
7839  enable_fast_install=yes
7840fi
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852# This can be used to rebuild libtool when needed
7853LIBTOOL_DEPS="$ltmain"
7854
7855# Always use our own libtool.
7856LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887test -z "$LN_S" && LN_S="ln -s"
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902if test -n "${ZSH_VERSION+set}" ; then
7903   setopt NO_GLOB_SUBST
7904fi
7905
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7907$as_echo_n "checking for objdir... " >&6; }
7908if ${lt_cv_objdir+:} false; then :
7909  $as_echo_n "(cached) " >&6
7910else
7911  rm -f .libs 2>/dev/null
7912mkdir .libs 2>/dev/null
7913if test -d .libs; then
7914  lt_cv_objdir=.libs
7915else
7916  # MS-DOS does not allow filenames that begin with a dot.
7917  lt_cv_objdir=_libs
7918fi
7919rmdir .libs 2>/dev/null
7920fi
7921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7922$as_echo "$lt_cv_objdir" >&6; }
7923objdir=$lt_cv_objdir
7924
7925
7926
7927
7928
7929cat >>confdefs.h <<_ACEOF
7930#define LT_OBJDIR "$lt_cv_objdir/"
7931_ACEOF
7932
7933
7934
7935
7936case $host_os in
7937aix3*)
7938  # AIX sometimes has problems with the GCC collect2 program.  For some
7939  # reason, if we set the COLLECT_NAMES environment variable, the problems
7940  # vanish in a puff of smoke.
7941  if test "X${COLLECT_NAMES+set}" != Xset; then
7942    COLLECT_NAMES=
7943    export COLLECT_NAMES
7944  fi
7945  ;;
7946esac
7947
7948# Global variables:
7949ofile=libtool
7950can_build_shared=yes
7951
7952# All known linkers require a `.a' archive for static linking (except MSVC,
7953# which needs '.lib').
7954libext=a
7955
7956with_gnu_ld="$lt_cv_prog_gnu_ld"
7957
7958old_CC="$CC"
7959old_CFLAGS="$CFLAGS"
7960
7961# Set sane defaults for various variables
7962test -z "$CC" && CC=cc
7963test -z "$LTCC" && LTCC=$CC
7964test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7965test -z "$LD" && LD=ld
7966test -z "$ac_objext" && ac_objext=o
7967
7968for cc_temp in $compiler""; do
7969  case $cc_temp in
7970    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7971    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7972    \-*) ;;
7973    *) break;;
7974  esac
7975done
7976cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7977
7978
7979# Only perform the check for file, if the check method requires it
7980test -z "$MAGIC_CMD" && MAGIC_CMD=file
7981case $deplibs_check_method in
7982file_magic*)
7983  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7985$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7986if ${lt_cv_path_MAGIC_CMD+:} false; then :
7987  $as_echo_n "(cached) " >&6
7988else
7989  case $MAGIC_CMD in
7990[\\/*] |  ?:[\\/]*)
7991  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7992  ;;
7993*)
7994  lt_save_MAGIC_CMD="$MAGIC_CMD"
7995  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7996  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7997  for ac_dir in $ac_dummy; do
7998    IFS="$lt_save_ifs"
7999    test -z "$ac_dir" && ac_dir=.
8000    if test -f $ac_dir/${ac_tool_prefix}file; then
8001      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8002      if test -n "$file_magic_test_file"; then
8003	case $deplibs_check_method in
8004	"file_magic "*)
8005	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8006	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8007	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8008	    $EGREP "$file_magic_regex" > /dev/null; then
8009	    :
8010	  else
8011	    cat <<_LT_EOF 1>&2
8012
8013*** Warning: the command libtool uses to detect shared libraries,
8014*** $file_magic_cmd, produces output that libtool cannot recognize.
8015*** The result is that libtool may fail to recognize shared libraries
8016*** as such.  This will affect the creation of libtool libraries that
8017*** depend on shared libraries, but programs linked with such libtool
8018*** libraries will work regardless of this problem.  Nevertheless, you
8019*** may want to report the problem to your system manager and/or to
8020*** bug-libtool@gnu.org
8021
8022_LT_EOF
8023	  fi ;;
8024	esac
8025      fi
8026      break
8027    fi
8028  done
8029  IFS="$lt_save_ifs"
8030  MAGIC_CMD="$lt_save_MAGIC_CMD"
8031  ;;
8032esac
8033fi
8034
8035MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8036if test -n "$MAGIC_CMD"; then
8037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8038$as_echo "$MAGIC_CMD" >&6; }
8039else
8040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041$as_echo "no" >&6; }
8042fi
8043
8044
8045
8046
8047
8048if test -z "$lt_cv_path_MAGIC_CMD"; then
8049  if test -n "$ac_tool_prefix"; then
8050    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8051$as_echo_n "checking for file... " >&6; }
8052if ${lt_cv_path_MAGIC_CMD+:} false; then :
8053  $as_echo_n "(cached) " >&6
8054else
8055  case $MAGIC_CMD in
8056[\\/*] |  ?:[\\/]*)
8057  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8058  ;;
8059*)
8060  lt_save_MAGIC_CMD="$MAGIC_CMD"
8061  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8062  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8063  for ac_dir in $ac_dummy; do
8064    IFS="$lt_save_ifs"
8065    test -z "$ac_dir" && ac_dir=.
8066    if test -f $ac_dir/file; then
8067      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8068      if test -n "$file_magic_test_file"; then
8069	case $deplibs_check_method in
8070	"file_magic "*)
8071	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8072	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8073	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8074	    $EGREP "$file_magic_regex" > /dev/null; then
8075	    :
8076	  else
8077	    cat <<_LT_EOF 1>&2
8078
8079*** Warning: the command libtool uses to detect shared libraries,
8080*** $file_magic_cmd, produces output that libtool cannot recognize.
8081*** The result is that libtool may fail to recognize shared libraries
8082*** as such.  This will affect the creation of libtool libraries that
8083*** depend on shared libraries, but programs linked with such libtool
8084*** libraries will work regardless of this problem.  Nevertheless, you
8085*** may want to report the problem to your system manager and/or to
8086*** bug-libtool@gnu.org
8087
8088_LT_EOF
8089	  fi ;;
8090	esac
8091      fi
8092      break
8093    fi
8094  done
8095  IFS="$lt_save_ifs"
8096  MAGIC_CMD="$lt_save_MAGIC_CMD"
8097  ;;
8098esac
8099fi
8100
8101MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8102if test -n "$MAGIC_CMD"; then
8103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8104$as_echo "$MAGIC_CMD" >&6; }
8105else
8106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107$as_echo "no" >&6; }
8108fi
8109
8110
8111  else
8112    MAGIC_CMD=:
8113  fi
8114fi
8115
8116  fi
8117  ;;
8118esac
8119
8120# Use C for the default configuration in the libtool script
8121
8122lt_save_CC="$CC"
8123ac_ext=c
8124ac_cpp='$CPP $CPPFLAGS'
8125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8127ac_compiler_gnu=$ac_cv_c_compiler_gnu
8128
8129
8130# Source file extension for C test sources.
8131ac_ext=c
8132
8133# Object file extension for compiled C test sources.
8134objext=o
8135objext=$objext
8136
8137# Code to be used in simple compile tests
8138lt_simple_compile_test_code="int some_variable = 0;"
8139
8140# Code to be used in simple link tests
8141lt_simple_link_test_code='int main(){return(0);}'
8142
8143
8144
8145
8146
8147
8148
8149# If no C compiler was specified, use CC.
8150LTCC=${LTCC-"$CC"}
8151
8152# If no C compiler flags were specified, use CFLAGS.
8153LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8154
8155# Allow CC to be a program name with arguments.
8156compiler=$CC
8157
8158# Save the default compiler, since it gets overwritten when the other
8159# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8160compiler_DEFAULT=$CC
8161
8162# save warnings/boilerplate of simple test code
8163ac_outfile=conftest.$ac_objext
8164echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8165eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8166_lt_compiler_boilerplate=`cat conftest.err`
8167$RM conftest*
8168
8169ac_outfile=conftest.$ac_objext
8170echo "$lt_simple_link_test_code" >conftest.$ac_ext
8171eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8172_lt_linker_boilerplate=`cat conftest.err`
8173$RM -r conftest*
8174
8175
8176## CAVEAT EMPTOR:
8177## There is no encapsulation within the following macros, do not change
8178## the running order or otherwise move them around unless you know exactly
8179## what you are doing...
8180if test -n "$compiler"; then
8181
8182lt_prog_compiler_no_builtin_flag=
8183
8184if test "$GCC" = yes; then
8185  case $cc_basename in
8186  nvcc*)
8187    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8188  *)
8189    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8190  esac
8191
8192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8193$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8194if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8195  $as_echo_n "(cached) " >&6
8196else
8197  lt_cv_prog_compiler_rtti_exceptions=no
8198   ac_outfile=conftest.$ac_objext
8199   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8200   lt_compiler_flag="-fno-rtti -fno-exceptions"
8201   # Insert the option either (1) after the last *FLAGS variable, or
8202   # (2) before a word containing "conftest.", or (3) at the end.
8203   # Note that $ac_compile itself does not contain backslashes and begins
8204   # with a dollar sign (not a hyphen), so the echo should work correctly.
8205   # The option is referenced via a variable to avoid confusing sed.
8206   lt_compile=`echo "$ac_compile" | $SED \
8207   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8208   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8209   -e 's:$: $lt_compiler_flag:'`
8210   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8211   (eval "$lt_compile" 2>conftest.err)
8212   ac_status=$?
8213   cat conftest.err >&5
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   if (exit $ac_status) && test -s "$ac_outfile"; then
8216     # The compiler can only warn and ignore the option if not recognized
8217     # So say no if there are warnings other than the usual output.
8218     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8219     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8220     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8221       lt_cv_prog_compiler_rtti_exceptions=yes
8222     fi
8223   fi
8224   $RM conftest*
8225
8226fi
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8228$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8229
8230if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8231    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8232else
8233    :
8234fi
8235
8236fi
8237
8238
8239
8240
8241
8242
8243  lt_prog_compiler_wl=
8244lt_prog_compiler_pic=
8245lt_prog_compiler_static=
8246
8247
8248  if test "$GCC" = yes; then
8249    lt_prog_compiler_wl='-Wl,'
8250    lt_prog_compiler_static='-static'
8251
8252    case $host_os in
8253      aix*)
8254      # All AIX code is PIC.
8255      if test "$host_cpu" = ia64; then
8256	# AIX 5 now supports IA64 processor
8257	lt_prog_compiler_static='-Bstatic'
8258      fi
8259      ;;
8260
8261    amigaos*)
8262      case $host_cpu in
8263      powerpc)
8264            # see comment about AmigaOS4 .so support
8265            lt_prog_compiler_pic='-fPIC'
8266        ;;
8267      m68k)
8268            # FIXME: we need at least 68020 code to build shared libraries, but
8269            # adding the `-m68020' flag to GCC prevents building anything better,
8270            # like `-m68040'.
8271            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8272        ;;
8273      esac
8274      ;;
8275
8276    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8277      # PIC is the default for these OSes.
8278      ;;
8279
8280    mingw* | cygwin* | pw32* | os2* | cegcc*)
8281      # This hack is so that the source file can tell whether it is being
8282      # built for inclusion in a dll (and should export symbols for example).
8283      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8284      # (--disable-auto-import) libraries
8285      lt_prog_compiler_pic='-DDLL_EXPORT'
8286      ;;
8287
8288    darwin* | rhapsody*)
8289      # PIC is the default on this platform
8290      # Common symbols not allowed in MH_DYLIB files
8291      lt_prog_compiler_pic='-fno-common'
8292      ;;
8293
8294    haiku*)
8295      # PIC is the default for Haiku.
8296      # The "-static" flag exists, but is broken.
8297      lt_prog_compiler_static=
8298      ;;
8299
8300    hpux*)
8301      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8302      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8303      # sets the default TLS model and affects inlining.
8304      case $host_cpu in
8305      hppa*64*)
8306	# +Z the default
8307	;;
8308      *)
8309	lt_prog_compiler_pic='-fPIC'
8310	;;
8311      esac
8312      ;;
8313
8314    interix[3-9]*)
8315      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8316      # Instead, we relocate shared libraries at runtime.
8317      ;;
8318
8319    msdosdjgpp*)
8320      # Just because we use GCC doesn't mean we suddenly get shared libraries
8321      # on systems that don't support them.
8322      lt_prog_compiler_can_build_shared=no
8323      enable_shared=no
8324      ;;
8325
8326    *nto* | *qnx*)
8327      # QNX uses GNU C++, but need to define -shared option too, otherwise
8328      # it will coredump.
8329      lt_prog_compiler_pic='-fPIC -shared'
8330      ;;
8331
8332    sysv4*MP*)
8333      if test -d /usr/nec; then
8334	lt_prog_compiler_pic=-Kconform_pic
8335      fi
8336      ;;
8337
8338    *)
8339      lt_prog_compiler_pic='-fPIC'
8340      ;;
8341    esac
8342
8343    case $cc_basename in
8344    nvcc*) # Cuda Compiler Driver 2.2
8345      lt_prog_compiler_wl='-Xlinker '
8346      if test -n "$lt_prog_compiler_pic"; then
8347        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8348      fi
8349      ;;
8350    esac
8351  else
8352    # PORTME Check for flag to pass linker flags through the system compiler.
8353    case $host_os in
8354    aix*)
8355      lt_prog_compiler_wl='-Wl,'
8356      if test "$host_cpu" = ia64; then
8357	# AIX 5 now supports IA64 processor
8358	lt_prog_compiler_static='-Bstatic'
8359      else
8360	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8361      fi
8362      ;;
8363
8364    mingw* | cygwin* | pw32* | os2* | cegcc*)
8365      # This hack is so that the source file can tell whether it is being
8366      # built for inclusion in a dll (and should export symbols for example).
8367      lt_prog_compiler_pic='-DDLL_EXPORT'
8368      ;;
8369
8370    hpux9* | hpux10* | hpux11*)
8371      lt_prog_compiler_wl='-Wl,'
8372      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8373      # not for PA HP-UX.
8374      case $host_cpu in
8375      hppa*64*|ia64*)
8376	# +Z the default
8377	;;
8378      *)
8379	lt_prog_compiler_pic='+Z'
8380	;;
8381      esac
8382      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8383      lt_prog_compiler_static='${wl}-a ${wl}archive'
8384      ;;
8385
8386    irix5* | irix6* | nonstopux*)
8387      lt_prog_compiler_wl='-Wl,'
8388      # PIC (with -KPIC) is the default.
8389      lt_prog_compiler_static='-non_shared'
8390      ;;
8391
8392    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8393      case $cc_basename in
8394      # old Intel for x86_64 which still supported -KPIC.
8395      ecc*)
8396	lt_prog_compiler_wl='-Wl,'
8397	lt_prog_compiler_pic='-KPIC'
8398	lt_prog_compiler_static='-static'
8399        ;;
8400      # icc used to be incompatible with GCC.
8401      # ICC 10 doesn't accept -KPIC any more.
8402      icc* | ifort*)
8403	lt_prog_compiler_wl='-Wl,'
8404	lt_prog_compiler_pic='-fPIC'
8405	lt_prog_compiler_static='-static'
8406        ;;
8407      # Lahey Fortran 8.1.
8408      lf95*)
8409	lt_prog_compiler_wl='-Wl,'
8410	lt_prog_compiler_pic='--shared'
8411	lt_prog_compiler_static='--static'
8412	;;
8413      nagfor*)
8414	# NAG Fortran compiler
8415	lt_prog_compiler_wl='-Wl,-Wl,,'
8416	lt_prog_compiler_pic='-PIC'
8417	lt_prog_compiler_static='-Bstatic'
8418	;;
8419      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8420        # Portland Group compilers (*not* the Pentium gcc compiler,
8421	# which looks to be a dead project)
8422	lt_prog_compiler_wl='-Wl,'
8423	lt_prog_compiler_pic='-fpic'
8424	lt_prog_compiler_static='-Bstatic'
8425        ;;
8426      ccc*)
8427        lt_prog_compiler_wl='-Wl,'
8428        # All Alpha code is PIC.
8429        lt_prog_compiler_static='-non_shared'
8430        ;;
8431      xl* | bgxl* | bgf* | mpixl*)
8432	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8433	lt_prog_compiler_wl='-Wl,'
8434	lt_prog_compiler_pic='-qpic'
8435	lt_prog_compiler_static='-qstaticlink'
8436	;;
8437      *)
8438	case `$CC -V 2>&1 | sed 5q` in
8439	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8440	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8441	  lt_prog_compiler_pic='-KPIC'
8442	  lt_prog_compiler_static='-Bstatic'
8443	  lt_prog_compiler_wl=''
8444	  ;;
8445	*Sun\ F* | *Sun*Fortran*)
8446	  lt_prog_compiler_pic='-KPIC'
8447	  lt_prog_compiler_static='-Bstatic'
8448	  lt_prog_compiler_wl='-Qoption ld '
8449	  ;;
8450	*Sun\ C*)
8451	  # Sun C 5.9
8452	  lt_prog_compiler_pic='-KPIC'
8453	  lt_prog_compiler_static='-Bstatic'
8454	  lt_prog_compiler_wl='-Wl,'
8455	  ;;
8456        *Intel*\ [CF]*Compiler*)
8457	  lt_prog_compiler_wl='-Wl,'
8458	  lt_prog_compiler_pic='-fPIC'
8459	  lt_prog_compiler_static='-static'
8460	  ;;
8461	*Portland\ Group*)
8462	  lt_prog_compiler_wl='-Wl,'
8463	  lt_prog_compiler_pic='-fpic'
8464	  lt_prog_compiler_static='-Bstatic'
8465	  ;;
8466	esac
8467	;;
8468      esac
8469      ;;
8470
8471    newsos6)
8472      lt_prog_compiler_pic='-KPIC'
8473      lt_prog_compiler_static='-Bstatic'
8474      ;;
8475
8476    *nto* | *qnx*)
8477      # QNX uses GNU C++, but need to define -shared option too, otherwise
8478      # it will coredump.
8479      lt_prog_compiler_pic='-fPIC -shared'
8480      ;;
8481
8482    osf3* | osf4* | osf5*)
8483      lt_prog_compiler_wl='-Wl,'
8484      # All OSF/1 code is PIC.
8485      lt_prog_compiler_static='-non_shared'
8486      ;;
8487
8488    rdos*)
8489      lt_prog_compiler_static='-non_shared'
8490      ;;
8491
8492    solaris*)
8493      lt_prog_compiler_pic='-KPIC'
8494      lt_prog_compiler_static='-Bstatic'
8495      case $cc_basename in
8496      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8497	lt_prog_compiler_wl='-Qoption ld ';;
8498      *)
8499	lt_prog_compiler_wl='-Wl,';;
8500      esac
8501      ;;
8502
8503    sunos4*)
8504      lt_prog_compiler_wl='-Qoption ld '
8505      lt_prog_compiler_pic='-PIC'
8506      lt_prog_compiler_static='-Bstatic'
8507      ;;
8508
8509    sysv4 | sysv4.2uw2* | sysv4.3*)
8510      lt_prog_compiler_wl='-Wl,'
8511      lt_prog_compiler_pic='-KPIC'
8512      lt_prog_compiler_static='-Bstatic'
8513      ;;
8514
8515    sysv4*MP*)
8516      if test -d /usr/nec ;then
8517	lt_prog_compiler_pic='-Kconform_pic'
8518	lt_prog_compiler_static='-Bstatic'
8519      fi
8520      ;;
8521
8522    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8523      lt_prog_compiler_wl='-Wl,'
8524      lt_prog_compiler_pic='-KPIC'
8525      lt_prog_compiler_static='-Bstatic'
8526      ;;
8527
8528    unicos*)
8529      lt_prog_compiler_wl='-Wl,'
8530      lt_prog_compiler_can_build_shared=no
8531      ;;
8532
8533    uts4*)
8534      lt_prog_compiler_pic='-pic'
8535      lt_prog_compiler_static='-Bstatic'
8536      ;;
8537
8538    *)
8539      lt_prog_compiler_can_build_shared=no
8540      ;;
8541    esac
8542  fi
8543
8544case $host_os in
8545  # For platforms which do not support PIC, -DPIC is meaningless:
8546  *djgpp*)
8547    lt_prog_compiler_pic=
8548    ;;
8549  *)
8550    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8551    ;;
8552esac
8553
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8555$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8556if ${lt_cv_prog_compiler_pic+:} false; then :
8557  $as_echo_n "(cached) " >&6
8558else
8559  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8560fi
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8562$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8563lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8564
8565#
8566# Check to make sure the PIC flag actually works.
8567#
8568if test -n "$lt_prog_compiler_pic"; then
8569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8570$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8571if ${lt_cv_prog_compiler_pic_works+:} false; then :
8572  $as_echo_n "(cached) " >&6
8573else
8574  lt_cv_prog_compiler_pic_works=no
8575   ac_outfile=conftest.$ac_objext
8576   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8577   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8578   # Insert the option either (1) after the last *FLAGS variable, or
8579   # (2) before a word containing "conftest.", or (3) at the end.
8580   # Note that $ac_compile itself does not contain backslashes and begins
8581   # with a dollar sign (not a hyphen), so the echo should work correctly.
8582   # The option is referenced via a variable to avoid confusing sed.
8583   lt_compile=`echo "$ac_compile" | $SED \
8584   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8585   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8586   -e 's:$: $lt_compiler_flag:'`
8587   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8588   (eval "$lt_compile" 2>conftest.err)
8589   ac_status=$?
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   if (exit $ac_status) && test -s "$ac_outfile"; then
8593     # The compiler can only warn and ignore the option if not recognized
8594     # So say no if there are warnings other than the usual output.
8595     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8596     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8597     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8598       lt_cv_prog_compiler_pic_works=yes
8599     fi
8600   fi
8601   $RM conftest*
8602
8603fi
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8605$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8606
8607if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8608    case $lt_prog_compiler_pic in
8609     "" | " "*) ;;
8610     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8611     esac
8612else
8613    lt_prog_compiler_pic=
8614     lt_prog_compiler_can_build_shared=no
8615fi
8616
8617fi
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629#
8630# Check to make sure the static flag actually works.
8631#
8632wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8634$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8635if ${lt_cv_prog_compiler_static_works+:} false; then :
8636  $as_echo_n "(cached) " >&6
8637else
8638  lt_cv_prog_compiler_static_works=no
8639   save_LDFLAGS="$LDFLAGS"
8640   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8641   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8642   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8643     # The linker can only warn and ignore the option if not recognized
8644     # So say no if there are warnings
8645     if test -s conftest.err; then
8646       # Append any errors to the config.log.
8647       cat conftest.err 1>&5
8648       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8649       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8650       if diff conftest.exp conftest.er2 >/dev/null; then
8651         lt_cv_prog_compiler_static_works=yes
8652       fi
8653     else
8654       lt_cv_prog_compiler_static_works=yes
8655     fi
8656   fi
8657   $RM -r conftest*
8658   LDFLAGS="$save_LDFLAGS"
8659
8660fi
8661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8662$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8663
8664if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8665    :
8666else
8667    lt_prog_compiler_static=
8668fi
8669
8670
8671
8672
8673
8674
8675
8676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8677$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8678if ${lt_cv_prog_compiler_c_o+:} false; then :
8679  $as_echo_n "(cached) " >&6
8680else
8681  lt_cv_prog_compiler_c_o=no
8682   $RM -r conftest 2>/dev/null
8683   mkdir conftest
8684   cd conftest
8685   mkdir out
8686   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8687
8688   lt_compiler_flag="-o out/conftest2.$ac_objext"
8689   # Insert the option either (1) after the last *FLAGS variable, or
8690   # (2) before a word containing "conftest.", or (3) at the end.
8691   # Note that $ac_compile itself does not contain backslashes and begins
8692   # with a dollar sign (not a hyphen), so the echo should work correctly.
8693   lt_compile=`echo "$ac_compile" | $SED \
8694   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8695   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8696   -e 's:$: $lt_compiler_flag:'`
8697   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8698   (eval "$lt_compile" 2>out/conftest.err)
8699   ac_status=$?
8700   cat out/conftest.err >&5
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8703   then
8704     # The compiler can only warn and ignore the option if not recognized
8705     # So say no if there are warnings
8706     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8707     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8708     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8709       lt_cv_prog_compiler_c_o=yes
8710     fi
8711   fi
8712   chmod u+w . 2>&5
8713   $RM conftest*
8714   # SGI C++ compiler will create directory out/ii_files/ for
8715   # template instantiation
8716   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8717   $RM out/* && rmdir out
8718   cd ..
8719   $RM -r conftest
8720   $RM conftest*
8721
8722fi
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8724$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8725
8726
8727
8728
8729
8730
8731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8732$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8733if ${lt_cv_prog_compiler_c_o+:} false; then :
8734  $as_echo_n "(cached) " >&6
8735else
8736  lt_cv_prog_compiler_c_o=no
8737   $RM -r conftest 2>/dev/null
8738   mkdir conftest
8739   cd conftest
8740   mkdir out
8741   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8742
8743   lt_compiler_flag="-o out/conftest2.$ac_objext"
8744   # Insert the option either (1) after the last *FLAGS variable, or
8745   # (2) before a word containing "conftest.", or (3) at the end.
8746   # Note that $ac_compile itself does not contain backslashes and begins
8747   # with a dollar sign (not a hyphen), so the echo should work correctly.
8748   lt_compile=`echo "$ac_compile" | $SED \
8749   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751   -e 's:$: $lt_compiler_flag:'`
8752   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8753   (eval "$lt_compile" 2>out/conftest.err)
8754   ac_status=$?
8755   cat out/conftest.err >&5
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8758   then
8759     # The compiler can only warn and ignore the option if not recognized
8760     # So say no if there are warnings
8761     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8762     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8763     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8764       lt_cv_prog_compiler_c_o=yes
8765     fi
8766   fi
8767   chmod u+w . 2>&5
8768   $RM conftest*
8769   # SGI C++ compiler will create directory out/ii_files/ for
8770   # template instantiation
8771   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8772   $RM out/* && rmdir out
8773   cd ..
8774   $RM -r conftest
8775   $RM conftest*
8776
8777fi
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8779$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8780
8781
8782
8783
8784hard_links="nottested"
8785if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8786  # do not overwrite the value of need_locks provided by the user
8787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8788$as_echo_n "checking if we can lock with hard links... " >&6; }
8789  hard_links=yes
8790  $RM conftest*
8791  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8792  touch conftest.a
8793  ln conftest.a conftest.b 2>&5 || hard_links=no
8794  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8796$as_echo "$hard_links" >&6; }
8797  if test "$hard_links" = no; then
8798    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8799$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8800    need_locks=warn
8801  fi
8802else
8803  need_locks=no
8804fi
8805
8806
8807
8808
8809
8810
8811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8812$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8813
8814  runpath_var=
8815  allow_undefined_flag=
8816  always_export_symbols=no
8817  archive_cmds=
8818  archive_expsym_cmds=
8819  compiler_needs_object=no
8820  enable_shared_with_static_runtimes=no
8821  export_dynamic_flag_spec=
8822  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8823  hardcode_automatic=no
8824  hardcode_direct=no
8825  hardcode_direct_absolute=no
8826  hardcode_libdir_flag_spec=
8827  hardcode_libdir_separator=
8828  hardcode_minus_L=no
8829  hardcode_shlibpath_var=unsupported
8830  inherit_rpath=no
8831  link_all_deplibs=unknown
8832  module_cmds=
8833  module_expsym_cmds=
8834  old_archive_from_new_cmds=
8835  old_archive_from_expsyms_cmds=
8836  thread_safe_flag_spec=
8837  whole_archive_flag_spec=
8838  # include_expsyms should be a list of space-separated symbols to be *always*
8839  # included in the symbol list
8840  include_expsyms=
8841  # exclude_expsyms can be an extended regexp of symbols to exclude
8842  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8843  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8844  # as well as any symbol that contains `d'.
8845  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8846  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8847  # platforms (ab)use it in PIC code, but their linkers get confused if
8848  # the symbol is explicitly referenced.  Since portable code cannot
8849  # rely on this symbol name, it's probably fine to never include it in
8850  # preloaded symbol tables.
8851  # Exclude shared library initialization/finalization symbols.
8852  extract_expsyms_cmds=
8853
8854  case $host_os in
8855  cygwin* | mingw* | pw32* | cegcc*)
8856    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8857    # When not using gcc, we currently assume that we are using
8858    # Microsoft Visual C++.
8859    if test "$GCC" != yes; then
8860      with_gnu_ld=no
8861    fi
8862    ;;
8863  interix*)
8864    # we just hope/assume this is gcc and not c89 (= MSVC++)
8865    with_gnu_ld=yes
8866    ;;
8867  openbsd*)
8868    with_gnu_ld=no
8869    ;;
8870  linux* | k*bsd*-gnu | gnu*)
8871    link_all_deplibs=no
8872    ;;
8873  esac
8874
8875  ld_shlibs=yes
8876
8877  # On some targets, GNU ld is compatible enough with the native linker
8878  # that we're better off using the native interface for both.
8879  lt_use_gnu_ld_interface=no
8880  if test "$with_gnu_ld" = yes; then
8881    case $host_os in
8882      aix*)
8883	# The AIX port of GNU ld has always aspired to compatibility
8884	# with the native linker.  However, as the warning in the GNU ld
8885	# block says, versions before 2.19.5* couldn't really create working
8886	# shared libraries, regardless of the interface used.
8887	case `$LD -v 2>&1` in
8888	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8889	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8890	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8891	  *)
8892	    lt_use_gnu_ld_interface=yes
8893	    ;;
8894	esac
8895	;;
8896      *)
8897	lt_use_gnu_ld_interface=yes
8898	;;
8899    esac
8900  fi
8901
8902  if test "$lt_use_gnu_ld_interface" = yes; then
8903    # If archive_cmds runs LD, not CC, wlarc should be empty
8904    wlarc='${wl}'
8905
8906    # Set some defaults for GNU ld with shared library support. These
8907    # are reset later if shared libraries are not supported. Putting them
8908    # here allows them to be overridden if necessary.
8909    runpath_var=LD_RUN_PATH
8910    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8911    export_dynamic_flag_spec='${wl}--export-dynamic'
8912    # ancient GNU ld didn't support --whole-archive et. al.
8913    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8914      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8915    else
8916      whole_archive_flag_spec=
8917    fi
8918    supports_anon_versioning=no
8919    case `$LD -v 2>&1` in
8920      *GNU\ gold*) supports_anon_versioning=yes ;;
8921      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8922      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8923      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8924      *\ 2.11.*) ;; # other 2.11 versions
8925      *) supports_anon_versioning=yes ;;
8926    esac
8927
8928    # See if GNU ld supports shared libraries.
8929    case $host_os in
8930    aix[3-9]*)
8931      # On AIX/PPC, the GNU linker is very broken
8932      if test "$host_cpu" != ia64; then
8933	ld_shlibs=no
8934	cat <<_LT_EOF 1>&2
8935
8936*** Warning: the GNU linker, at least up to release 2.19, is reported
8937*** to be unable to reliably create shared libraries on AIX.
8938*** Therefore, libtool is disabling shared libraries support.  If you
8939*** really care for shared libraries, you may want to install binutils
8940*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8941*** You will then need to restart the configuration process.
8942
8943_LT_EOF
8944      fi
8945      ;;
8946
8947    amigaos*)
8948      case $host_cpu in
8949      powerpc)
8950            # see comment about AmigaOS4 .so support
8951            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952            archive_expsym_cmds=''
8953        ;;
8954      m68k)
8955            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)'
8956            hardcode_libdir_flag_spec='-L$libdir'
8957            hardcode_minus_L=yes
8958        ;;
8959      esac
8960      ;;
8961
8962    beos*)
8963      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8964	allow_undefined_flag=unsupported
8965	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8966	# support --undefined.  This deserves some investigation.  FIXME
8967	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8968      else
8969	ld_shlibs=no
8970      fi
8971      ;;
8972
8973    cygwin* | mingw* | pw32* | cegcc*)
8974      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8975      # as there is no search path for DLLs.
8976      hardcode_libdir_flag_spec='-L$libdir'
8977      export_dynamic_flag_spec='${wl}--export-all-symbols'
8978      allow_undefined_flag=unsupported
8979      always_export_symbols=no
8980      enable_shared_with_static_runtimes=yes
8981      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8982      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8983
8984      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8985        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8986	# If the export-symbols file already is a .def file (1st line
8987	# is EXPORTS), use it as is; otherwise, prepend...
8988	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8989	  cp $export_symbols $output_objdir/$soname.def;
8990	else
8991	  echo EXPORTS > $output_objdir/$soname.def;
8992	  cat $export_symbols >> $output_objdir/$soname.def;
8993	fi~
8994	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8995      else
8996	ld_shlibs=no
8997      fi
8998      ;;
8999
9000    haiku*)
9001      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9002      link_all_deplibs=yes
9003      ;;
9004
9005    interix[3-9]*)
9006      hardcode_direct=no
9007      hardcode_shlibpath_var=no
9008      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9009      export_dynamic_flag_spec='${wl}-E'
9010      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9011      # Instead, shared libraries are loaded at an image base (0x10000000 by
9012      # default) and relocated if they conflict, which is a slow very memory
9013      # consuming and fragmenting process.  To avoid this, we pick a random,
9014      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9015      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9016      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9017      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'
9018      ;;
9019
9020    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9021      tmp_diet=no
9022      if test "$host_os" = linux-dietlibc; then
9023	case $cc_basename in
9024	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9025	esac
9026      fi
9027      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9028	 && test "$tmp_diet" = no
9029      then
9030	tmp_addflag=' $pic_flag'
9031	tmp_sharedflag='-shared'
9032	case $cc_basename,$host_cpu in
9033        pgcc*)				# Portland Group C compiler
9034	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9035	  tmp_addflag=' $pic_flag'
9036	  ;;
9037	pgf77* | pgf90* | pgf95* | pgfortran*)
9038					# Portland Group f77 and f90 compilers
9039	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9040	  tmp_addflag=' $pic_flag -Mnomain' ;;
9041	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9042	  tmp_addflag=' -i_dynamic' ;;
9043	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9044	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9045	ifc* | ifort*)			# Intel Fortran compiler
9046	  tmp_addflag=' -nofor_main' ;;
9047	lf95*)				# Lahey Fortran 8.1
9048	  whole_archive_flag_spec=
9049	  tmp_sharedflag='--shared' ;;
9050	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9051	  tmp_sharedflag='-qmkshrobj'
9052	  tmp_addflag= ;;
9053	nvcc*)	# Cuda Compiler Driver 2.2
9054	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9055	  compiler_needs_object=yes
9056	  ;;
9057	esac
9058	case `$CC -V 2>&1 | sed 5q` in
9059	*Sun\ C*)			# Sun C 5.9
9060	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9061	  compiler_needs_object=yes
9062	  tmp_sharedflag='-G' ;;
9063	*Sun\ F*)			# Sun Fortran 8.3
9064	  tmp_sharedflag='-G' ;;
9065	esac
9066	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9067
9068        if test "x$supports_anon_versioning" = xyes; then
9069          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9070	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9071	    echo "local: *; };" >> $output_objdir/$libname.ver~
9072	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9073        fi
9074
9075	case $cc_basename in
9076	xlf* | bgf* | bgxlf* | mpixlf*)
9077	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9078	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9079	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9080	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9081	  if test "x$supports_anon_versioning" = xyes; then
9082	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9083	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9084	      echo "local: *; };" >> $output_objdir/$libname.ver~
9085	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9086	  fi
9087	  ;;
9088	esac
9089      else
9090        ld_shlibs=no
9091      fi
9092      ;;
9093
9094    netbsd* | netbsdelf*-gnu)
9095      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9096	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9097	wlarc=
9098      else
9099	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9100	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9101      fi
9102      ;;
9103
9104    solaris*)
9105      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9106	ld_shlibs=no
9107	cat <<_LT_EOF 1>&2
9108
9109*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9110*** create shared libraries on Solaris systems.  Therefore, libtool
9111*** is disabling shared libraries support.  We urge you to upgrade GNU
9112*** binutils to release 2.9.1 or newer.  Another option is to modify
9113*** your PATH or compiler configuration so that the native linker is
9114*** used, and then restart.
9115
9116_LT_EOF
9117      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9118	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9120      else
9121	ld_shlibs=no
9122      fi
9123      ;;
9124
9125    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9126      case `$LD -v 2>&1` in
9127        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9128	ld_shlibs=no
9129	cat <<_LT_EOF 1>&2
9130
9131*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9132*** reliably create shared libraries on SCO systems.  Therefore, libtool
9133*** is disabling shared libraries support.  We urge you to upgrade GNU
9134*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9135*** your PATH or compiler configuration so that the native linker is
9136*** used, and then restart.
9137
9138_LT_EOF
9139	;;
9140	*)
9141	  # For security reasons, it is highly recommended that you always
9142	  # use absolute paths for naming shared libraries, and exclude the
9143	  # DT_RUNPATH tag from executables and libraries.  But doing so
9144	  # requires that you compile everything twice, which is a pain.
9145	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9146	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9147	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9148	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9149	  else
9150	    ld_shlibs=no
9151	  fi
9152	;;
9153      esac
9154      ;;
9155
9156    sunos4*)
9157      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9158      wlarc=
9159      hardcode_direct=yes
9160      hardcode_shlibpath_var=no
9161      ;;
9162
9163    *)
9164      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9165	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9166	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9167      else
9168	ld_shlibs=no
9169      fi
9170      ;;
9171    esac
9172
9173    if test "$ld_shlibs" = no; then
9174      runpath_var=
9175      hardcode_libdir_flag_spec=
9176      export_dynamic_flag_spec=
9177      whole_archive_flag_spec=
9178    fi
9179  else
9180    # PORTME fill in a description of your system's linker (not GNU ld)
9181    case $host_os in
9182    aix3*)
9183      allow_undefined_flag=unsupported
9184      always_export_symbols=yes
9185      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'
9186      # Note: this linker hardcodes the directories in LIBPATH if there
9187      # are no directories specified by -L.
9188      hardcode_minus_L=yes
9189      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9190	# Neither direct hardcoding nor static linking is supported with a
9191	# broken collect2.
9192	hardcode_direct=unsupported
9193      fi
9194      ;;
9195
9196    aix[4-9]*)
9197      if test "$host_cpu" = ia64; then
9198	# On IA64, the linker does run time linking by default, so we don't
9199	# have to do anything special.
9200	aix_use_runtimelinking=no
9201	exp_sym_flag='-Bexport'
9202	no_entry_flag=""
9203      else
9204	# If we're using GNU nm, then we don't want the "-C" option.
9205	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9206	# Also, AIX nm treats weak defined symbols like other global
9207	# defined symbols, whereas GNU nm marks them as "W".
9208	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9209	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9210	else
9211	  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'
9212	fi
9213	aix_use_runtimelinking=no
9214
9215	# Test if we are trying to use run time linking or normal
9216	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9217	# need to do runtime linking.
9218	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9219	  for ld_flag in $LDFLAGS; do
9220	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9221	    aix_use_runtimelinking=yes
9222	    break
9223	  fi
9224	  done
9225	  ;;
9226	esac
9227
9228	exp_sym_flag='-bexport'
9229	no_entry_flag='-bnoentry'
9230      fi
9231
9232      # When large executables or shared objects are built, AIX ld can
9233      # have problems creating the table of contents.  If linking a library
9234      # or program results in "error TOC overflow" add -mminimal-toc to
9235      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9236      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9237
9238      archive_cmds=''
9239      hardcode_direct=yes
9240      hardcode_direct_absolute=yes
9241      hardcode_libdir_separator=':'
9242      link_all_deplibs=yes
9243      file_list_spec='${wl}-f,'
9244
9245      if test "$GCC" = yes; then
9246	case $host_os in aix4.[012]|aix4.[012].*)
9247	# We only want to do this on AIX 4.2 and lower, the check
9248	# below for broken collect2 doesn't work under 4.3+
9249	  collect2name=`${CC} -print-prog-name=collect2`
9250	  if test -f "$collect2name" &&
9251	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9252	  then
9253	  # We have reworked collect2
9254	  :
9255	  else
9256	  # We have old collect2
9257	  hardcode_direct=unsupported
9258	  # It fails to find uninstalled libraries when the uninstalled
9259	  # path is not listed in the libpath.  Setting hardcode_minus_L
9260	  # to unsupported forces relinking
9261	  hardcode_minus_L=yes
9262	  hardcode_libdir_flag_spec='-L$libdir'
9263	  hardcode_libdir_separator=
9264	  fi
9265	  ;;
9266	esac
9267	shared_flag='-shared'
9268	if test "$aix_use_runtimelinking" = yes; then
9269	  shared_flag="$shared_flag "'${wl}-G'
9270	fi
9271	link_all_deplibs=no
9272      else
9273	# not using gcc
9274	if test "$host_cpu" = ia64; then
9275	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9276	# chokes on -Wl,-G. The following line is correct:
9277	  shared_flag='-G'
9278	else
9279	  if test "$aix_use_runtimelinking" = yes; then
9280	    shared_flag='${wl}-G'
9281	  else
9282	    shared_flag='${wl}-bM:SRE'
9283	  fi
9284	fi
9285      fi
9286
9287      export_dynamic_flag_spec='${wl}-bexpall'
9288      # It seems that -bexpall does not export symbols beginning with
9289      # underscore (_), so it is better to generate a list of symbols to export.
9290      always_export_symbols=yes
9291      if test "$aix_use_runtimelinking" = yes; then
9292	# Warning - without using the other runtime loading flags (-brtl),
9293	# -berok will link without error, but may produce a broken library.
9294	allow_undefined_flag='-berok'
9295        # Determine the default libpath from the value encoded in an
9296        # empty executable.
9297        if test "${lt_cv_aix_libpath+set}" = set; then
9298  aix_libpath=$lt_cv_aix_libpath
9299else
9300  if ${lt_cv_aix_libpath_+:} false; then :
9301  $as_echo_n "(cached) " >&6
9302else
9303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304/* end confdefs.h.  */
9305
9306int
9307main ()
9308{
9309
9310  ;
9311  return 0;
9312}
9313_ACEOF
9314if ac_fn_c_try_link "$LINENO"; then :
9315
9316  lt_aix_libpath_sed='
9317      /Import File Strings/,/^$/ {
9318	  /^0/ {
9319	      s/^0  *\([^ ]*\) *$/\1/
9320	      p
9321	  }
9322      }'
9323  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9324  # Check for a 64-bit object if we didn't find anything.
9325  if test -z "$lt_cv_aix_libpath_"; then
9326    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9327  fi
9328fi
9329rm -f core conftest.err conftest.$ac_objext \
9330    conftest$ac_exeext conftest.$ac_ext
9331  if test -z "$lt_cv_aix_libpath_"; then
9332    lt_cv_aix_libpath_="/usr/lib:/lib"
9333  fi
9334
9335fi
9336
9337  aix_libpath=$lt_cv_aix_libpath_
9338fi
9339
9340        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9341        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9342      else
9343	if test "$host_cpu" = ia64; then
9344	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9345	  allow_undefined_flag="-z nodefs"
9346	  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"
9347	else
9348	 # Determine the default libpath from the value encoded in an
9349	 # empty executable.
9350	 if test "${lt_cv_aix_libpath+set}" = set; then
9351  aix_libpath=$lt_cv_aix_libpath
9352else
9353  if ${lt_cv_aix_libpath_+:} false; then :
9354  $as_echo_n "(cached) " >&6
9355else
9356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357/* end confdefs.h.  */
9358
9359int
9360main ()
9361{
9362
9363  ;
9364  return 0;
9365}
9366_ACEOF
9367if ac_fn_c_try_link "$LINENO"; then :
9368
9369  lt_aix_libpath_sed='
9370      /Import File Strings/,/^$/ {
9371	  /^0/ {
9372	      s/^0  *\([^ ]*\) *$/\1/
9373	      p
9374	  }
9375      }'
9376  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9377  # Check for a 64-bit object if we didn't find anything.
9378  if test -z "$lt_cv_aix_libpath_"; then
9379    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9380  fi
9381fi
9382rm -f core conftest.err conftest.$ac_objext \
9383    conftest$ac_exeext conftest.$ac_ext
9384  if test -z "$lt_cv_aix_libpath_"; then
9385    lt_cv_aix_libpath_="/usr/lib:/lib"
9386  fi
9387
9388fi
9389
9390  aix_libpath=$lt_cv_aix_libpath_
9391fi
9392
9393	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9394	  # Warning - without using the other run time loading flags,
9395	  # -berok will link without error, but may produce a broken library.
9396	  no_undefined_flag=' ${wl}-bernotok'
9397	  allow_undefined_flag=' ${wl}-berok'
9398	  if test "$with_gnu_ld" = yes; then
9399	    # We only use this code for GNU lds that support --whole-archive.
9400	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9401	  else
9402	    # Exported symbols can be pulled into shared objects from archives
9403	    whole_archive_flag_spec='$convenience'
9404	  fi
9405	  archive_cmds_need_lc=yes
9406	  # This is similar to how AIX traditionally builds its shared libraries.
9407	  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'
9408	fi
9409      fi
9410      ;;
9411
9412    amigaos*)
9413      case $host_cpu in
9414      powerpc)
9415            # see comment about AmigaOS4 .so support
9416            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9417            archive_expsym_cmds=''
9418        ;;
9419      m68k)
9420            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)'
9421            hardcode_libdir_flag_spec='-L$libdir'
9422            hardcode_minus_L=yes
9423        ;;
9424      esac
9425      ;;
9426
9427    bsdi[45]*)
9428      export_dynamic_flag_spec=-rdynamic
9429      ;;
9430
9431    cygwin* | mingw* | pw32* | cegcc*)
9432      # When not using gcc, we currently assume that we are using
9433      # Microsoft Visual C++.
9434      # hardcode_libdir_flag_spec is actually meaningless, as there is
9435      # no search path for DLLs.
9436      case $cc_basename in
9437      cl*)
9438	# Native MSVC
9439	hardcode_libdir_flag_spec=' '
9440	allow_undefined_flag=unsupported
9441	always_export_symbols=yes
9442	file_list_spec='@'
9443	# Tell ltmain to make .lib files, not .a files.
9444	libext=lib
9445	# Tell ltmain to make .dll files, not .so files.
9446	shrext_cmds=".dll"
9447	# FIXME: Setting linknames here is a bad hack.
9448	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9449	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9450	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9451	  else
9452	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9453	  fi~
9454	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9455	  linknames='
9456	# The linker will not automatically build a static lib if we build a DLL.
9457	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9458	enable_shared_with_static_runtimes=yes
9459	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9460	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9461	# Don't use ranlib
9462	old_postinstall_cmds='chmod 644 $oldlib'
9463	postlink_cmds='lt_outputfile="@OUTPUT@"~
9464	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9465	  case $lt_outputfile in
9466	    *.exe|*.EXE) ;;
9467	    *)
9468	      lt_outputfile="$lt_outputfile.exe"
9469	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9470	      ;;
9471	  esac~
9472	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9473	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9474	    $RM "$lt_outputfile.manifest";
9475	  fi'
9476	;;
9477      *)
9478	# Assume MSVC wrapper
9479	hardcode_libdir_flag_spec=' '
9480	allow_undefined_flag=unsupported
9481	# Tell ltmain to make .lib files, not .a files.
9482	libext=lib
9483	# Tell ltmain to make .dll files, not .so files.
9484	shrext_cmds=".dll"
9485	# FIXME: Setting linknames here is a bad hack.
9486	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9487	# The linker will automatically build a .lib file if we build a DLL.
9488	old_archive_from_new_cmds='true'
9489	# FIXME: Should let the user specify the lib program.
9490	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9491	enable_shared_with_static_runtimes=yes
9492	;;
9493      esac
9494      ;;
9495
9496    darwin* | rhapsody*)
9497
9498
9499  archive_cmds_need_lc=no
9500  hardcode_direct=no
9501  hardcode_automatic=yes
9502  hardcode_shlibpath_var=unsupported
9503  if test "$lt_cv_ld_force_load" = "yes"; then
9504    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9505
9506  else
9507    whole_archive_flag_spec=''
9508  fi
9509  link_all_deplibs=yes
9510  allow_undefined_flag="$_lt_dar_allow_undefined"
9511  case $cc_basename in
9512     ifort*) _lt_dar_can_shared=yes ;;
9513     *) _lt_dar_can_shared=$GCC ;;
9514  esac
9515  if test "$_lt_dar_can_shared" = "yes"; then
9516    output_verbose_link_cmd=func_echo_all
9517    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9518    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9519    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}"
9520    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}"
9521
9522  else
9523  ld_shlibs=no
9524  fi
9525
9526      ;;
9527
9528    dgux*)
9529      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530      hardcode_libdir_flag_spec='-L$libdir'
9531      hardcode_shlibpath_var=no
9532      ;;
9533
9534    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9535    # support.  Future versions do this automatically, but an explicit c++rt0.o
9536    # does not break anything, and helps significantly (at the cost of a little
9537    # extra space).
9538    freebsd2.2*)
9539      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9540      hardcode_libdir_flag_spec='-R$libdir'
9541      hardcode_direct=yes
9542      hardcode_shlibpath_var=no
9543      ;;
9544
9545    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9546    freebsd2.*)
9547      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9548      hardcode_direct=yes
9549      hardcode_minus_L=yes
9550      hardcode_shlibpath_var=no
9551      ;;
9552
9553    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9554    freebsd* | dragonfly*)
9555      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9556      hardcode_libdir_flag_spec='-R$libdir'
9557      hardcode_direct=yes
9558      hardcode_shlibpath_var=no
9559      ;;
9560
9561    hpux9*)
9562      if test "$GCC" = yes; then
9563	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9564      else
9565	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'
9566      fi
9567      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9568      hardcode_libdir_separator=:
9569      hardcode_direct=yes
9570
9571      # hardcode_minus_L: Not really in the search PATH,
9572      # but as the default location of the library.
9573      hardcode_minus_L=yes
9574      export_dynamic_flag_spec='${wl}-E'
9575      ;;
9576
9577    hpux10*)
9578      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9579	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9580      else
9581	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9582      fi
9583      if test "$with_gnu_ld" = no; then
9584	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9585	hardcode_libdir_separator=:
9586	hardcode_direct=yes
9587	hardcode_direct_absolute=yes
9588	export_dynamic_flag_spec='${wl}-E'
9589	# hardcode_minus_L: Not really in the search PATH,
9590	# but as the default location of the library.
9591	hardcode_minus_L=yes
9592      fi
9593      ;;
9594
9595    hpux11*)
9596      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9597	case $host_cpu in
9598	hppa*64*)
9599	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9600	  ;;
9601	ia64*)
9602	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9603	  ;;
9604	*)
9605	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9606	  ;;
9607	esac
9608      else
9609	case $host_cpu in
9610	hppa*64*)
9611	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9612	  ;;
9613	ia64*)
9614	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9615	  ;;
9616	*)
9617
9618	  # Older versions of the 11.00 compiler do not understand -b yet
9619	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9620	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9621$as_echo_n "checking if $CC understands -b... " >&6; }
9622if ${lt_cv_prog_compiler__b+:} false; then :
9623  $as_echo_n "(cached) " >&6
9624else
9625  lt_cv_prog_compiler__b=no
9626   save_LDFLAGS="$LDFLAGS"
9627   LDFLAGS="$LDFLAGS -b"
9628   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9629   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9630     # The linker can only warn and ignore the option if not recognized
9631     # So say no if there are warnings
9632     if test -s conftest.err; then
9633       # Append any errors to the config.log.
9634       cat conftest.err 1>&5
9635       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9636       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9637       if diff conftest.exp conftest.er2 >/dev/null; then
9638         lt_cv_prog_compiler__b=yes
9639       fi
9640     else
9641       lt_cv_prog_compiler__b=yes
9642     fi
9643   fi
9644   $RM -r conftest*
9645   LDFLAGS="$save_LDFLAGS"
9646
9647fi
9648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9649$as_echo "$lt_cv_prog_compiler__b" >&6; }
9650
9651if test x"$lt_cv_prog_compiler__b" = xyes; then
9652    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9653else
9654    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9655fi
9656
9657	  ;;
9658	esac
9659      fi
9660      if test "$with_gnu_ld" = no; then
9661	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9662	hardcode_libdir_separator=:
9663
9664	case $host_cpu in
9665	hppa*64*|ia64*)
9666	  hardcode_direct=no
9667	  hardcode_shlibpath_var=no
9668	  ;;
9669	*)
9670	  hardcode_direct=yes
9671	  hardcode_direct_absolute=yes
9672	  export_dynamic_flag_spec='${wl}-E'
9673
9674	  # hardcode_minus_L: Not really in the search PATH,
9675	  # but as the default location of the library.
9676	  hardcode_minus_L=yes
9677	  ;;
9678	esac
9679      fi
9680      ;;
9681
9682    irix5* | irix6* | nonstopux*)
9683      if test "$GCC" = yes; then
9684	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9685	# Try to use the -exported_symbol ld option, if it does not
9686	# work, assume that -exports_file does not work either and
9687	# implicitly export all symbols.
9688	# This should be the same for all languages, so no per-tag cache variable.
9689	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9690$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9691if ${lt_cv_irix_exported_symbol+:} false; then :
9692  $as_echo_n "(cached) " >&6
9693else
9694  save_LDFLAGS="$LDFLAGS"
9695	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9696	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697/* end confdefs.h.  */
9698int foo (void) { return 0; }
9699_ACEOF
9700if ac_fn_c_try_link "$LINENO"; then :
9701  lt_cv_irix_exported_symbol=yes
9702else
9703  lt_cv_irix_exported_symbol=no
9704fi
9705rm -f core conftest.err conftest.$ac_objext \
9706    conftest$ac_exeext conftest.$ac_ext
9707           LDFLAGS="$save_LDFLAGS"
9708fi
9709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9710$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9711	if test "$lt_cv_irix_exported_symbol" = yes; then
9712          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9713	fi
9714      else
9715	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9716	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9717      fi
9718      archive_cmds_need_lc='no'
9719      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9720      hardcode_libdir_separator=:
9721      inherit_rpath=yes
9722      link_all_deplibs=yes
9723      ;;
9724
9725    netbsd* | netbsdelf*-gnu)
9726      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9727	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9728      else
9729	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9730      fi
9731      hardcode_libdir_flag_spec='-R$libdir'
9732      hardcode_direct=yes
9733      hardcode_shlibpath_var=no
9734      ;;
9735
9736    newsos6)
9737      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738      hardcode_direct=yes
9739      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9740      hardcode_libdir_separator=:
9741      hardcode_shlibpath_var=no
9742      ;;
9743
9744    *nto* | *qnx*)
9745      ;;
9746
9747    openbsd*)
9748      if test -f /usr/libexec/ld.so; then
9749	hardcode_direct=yes
9750	hardcode_shlibpath_var=no
9751	hardcode_direct_absolute=yes
9752	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9753	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9754	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9755	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9756	  export_dynamic_flag_spec='${wl}-E'
9757	else
9758	  case $host_os in
9759	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9760	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9761	     hardcode_libdir_flag_spec='-R$libdir'
9762	     ;;
9763	   *)
9764	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9765	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9766	     ;;
9767	  esac
9768	fi
9769      else
9770	ld_shlibs=no
9771      fi
9772      ;;
9773
9774    os2*)
9775      hardcode_libdir_flag_spec='-L$libdir'
9776      hardcode_minus_L=yes
9777      allow_undefined_flag=unsupported
9778      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'
9779      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9780      ;;
9781
9782    osf3*)
9783      if test "$GCC" = yes; then
9784	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9785	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9786      else
9787	allow_undefined_flag=' -expect_unresolved \*'
9788	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9789      fi
9790      archive_cmds_need_lc='no'
9791      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9792      hardcode_libdir_separator=:
9793      ;;
9794
9795    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9796      if test "$GCC" = yes; then
9797	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9798	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9799	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9800      else
9801	allow_undefined_flag=' -expect_unresolved \*'
9802	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9803	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~
9804	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9805
9806	# Both c and cxx compiler support -rpath directly
9807	hardcode_libdir_flag_spec='-rpath $libdir'
9808      fi
9809      archive_cmds_need_lc='no'
9810      hardcode_libdir_separator=:
9811      ;;
9812
9813    solaris*)
9814      no_undefined_flag=' -z defs'
9815      if test "$GCC" = yes; then
9816	wlarc='${wl}'
9817	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9818	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9819	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9820      else
9821	case `$CC -V 2>&1` in
9822	*"Compilers 5.0"*)
9823	  wlarc=''
9824	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9826	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9827	  ;;
9828	*)
9829	  wlarc='${wl}'
9830	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9831	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9832	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9833	  ;;
9834	esac
9835      fi
9836      hardcode_libdir_flag_spec='-R$libdir'
9837      hardcode_shlibpath_var=no
9838      case $host_os in
9839      solaris2.[0-5] | solaris2.[0-5].*) ;;
9840      *)
9841	# The compiler driver will combine and reorder linker options,
9842	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9843	# but is careful enough not to reorder.
9844	# Supported since Solaris 2.6 (maybe 2.5.1?)
9845	if test "$GCC" = yes; then
9846	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9847	else
9848	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9849	fi
9850	;;
9851      esac
9852      link_all_deplibs=yes
9853      ;;
9854
9855    sunos4*)
9856      if test "x$host_vendor" = xsequent; then
9857	# Use $CC to link under sequent, because it throws in some extra .o
9858	# files that make .init and .fini sections work.
9859	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9860      else
9861	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9862      fi
9863      hardcode_libdir_flag_spec='-L$libdir'
9864      hardcode_direct=yes
9865      hardcode_minus_L=yes
9866      hardcode_shlibpath_var=no
9867      ;;
9868
9869    sysv4)
9870      case $host_vendor in
9871	sni)
9872	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9873	  hardcode_direct=yes # is this really true???
9874	;;
9875	siemens)
9876	  ## LD is ld it makes a PLAMLIB
9877	  ## CC just makes a GrossModule.
9878	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9879	  reload_cmds='$CC -r -o $output$reload_objs'
9880	  hardcode_direct=no
9881        ;;
9882	motorola)
9883	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9884	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9885	;;
9886      esac
9887      runpath_var='LD_RUN_PATH'
9888      hardcode_shlibpath_var=no
9889      ;;
9890
9891    sysv4.3*)
9892      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9893      hardcode_shlibpath_var=no
9894      export_dynamic_flag_spec='-Bexport'
9895      ;;
9896
9897    sysv4*MP*)
9898      if test -d /usr/nec; then
9899	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9900	hardcode_shlibpath_var=no
9901	runpath_var=LD_RUN_PATH
9902	hardcode_runpath_var=yes
9903	ld_shlibs=yes
9904      fi
9905      ;;
9906
9907    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9908      no_undefined_flag='${wl}-z,text'
9909      archive_cmds_need_lc=no
9910      hardcode_shlibpath_var=no
9911      runpath_var='LD_RUN_PATH'
9912
9913      if test "$GCC" = yes; then
9914	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9915	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9916      else
9917	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9918	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9919      fi
9920      ;;
9921
9922    sysv5* | sco3.2v5* | sco5v6*)
9923      # Note: We can NOT use -z defs as we might desire, because we do not
9924      # link with -lc, and that would cause any symbols used from libc to
9925      # always be unresolved, which means just about no library would
9926      # ever link correctly.  If we're not using GNU ld we use -z text
9927      # though, which does catch some bad symbols but isn't as heavy-handed
9928      # as -z defs.
9929      no_undefined_flag='${wl}-z,text'
9930      allow_undefined_flag='${wl}-z,nodefs'
9931      archive_cmds_need_lc=no
9932      hardcode_shlibpath_var=no
9933      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9934      hardcode_libdir_separator=':'
9935      link_all_deplibs=yes
9936      export_dynamic_flag_spec='${wl}-Bexport'
9937      runpath_var='LD_RUN_PATH'
9938
9939      if test "$GCC" = yes; then
9940	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9941	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9942      else
9943	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9944	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9945      fi
9946      ;;
9947
9948    uts4*)
9949      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9950      hardcode_libdir_flag_spec='-L$libdir'
9951      hardcode_shlibpath_var=no
9952      ;;
9953
9954    *)
9955      ld_shlibs=no
9956      ;;
9957    esac
9958
9959    if test x$host_vendor = xsni; then
9960      case $host in
9961      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9962	export_dynamic_flag_spec='${wl}-Blargedynsym'
9963	;;
9964      esac
9965    fi
9966  fi
9967
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9969$as_echo "$ld_shlibs" >&6; }
9970test "$ld_shlibs" = no && can_build_shared=no
9971
9972with_gnu_ld=$with_gnu_ld
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988#
9989# Do we need to explicitly link libc?
9990#
9991case "x$archive_cmds_need_lc" in
9992x|xyes)
9993  # Assume -lc should be added
9994  archive_cmds_need_lc=yes
9995
9996  if test "$enable_shared" = yes && test "$GCC" = yes; then
9997    case $archive_cmds in
9998    *'~'*)
9999      # FIXME: we may have to deal with multi-command sequences.
10000      ;;
10001    '$CC '*)
10002      # Test whether the compiler implicitly links with -lc since on some
10003      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10004      # to ld, don't add -lc before -lgcc.
10005      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10006$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10007if ${lt_cv_archive_cmds_need_lc+:} false; then :
10008  $as_echo_n "(cached) " >&6
10009else
10010  $RM conftest*
10011	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10012
10013	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10014  (eval $ac_compile) 2>&5
10015  ac_status=$?
10016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10017  test $ac_status = 0; } 2>conftest.err; then
10018	  soname=conftest
10019	  lib=conftest
10020	  libobjs=conftest.$ac_objext
10021	  deplibs=
10022	  wl=$lt_prog_compiler_wl
10023	  pic_flag=$lt_prog_compiler_pic
10024	  compiler_flags=-v
10025	  linker_flags=-v
10026	  verstring=
10027	  output_objdir=.
10028	  libname=conftest
10029	  lt_save_allow_undefined_flag=$allow_undefined_flag
10030	  allow_undefined_flag=
10031	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10032  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10033  ac_status=$?
10034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10035  test $ac_status = 0; }
10036	  then
10037	    lt_cv_archive_cmds_need_lc=no
10038	  else
10039	    lt_cv_archive_cmds_need_lc=yes
10040	  fi
10041	  allow_undefined_flag=$lt_save_allow_undefined_flag
10042	else
10043	  cat conftest.err 1>&5
10044	fi
10045	$RM conftest*
10046
10047fi
10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10049$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10050      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10051      ;;
10052    esac
10053  fi
10054  ;;
10055esac
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10209$as_echo_n "checking dynamic linker characteristics... " >&6; }
10210
10211if test "$GCC" = yes; then
10212  case $host_os in
10213    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10214    *) lt_awk_arg="/^libraries:/" ;;
10215  esac
10216  case $host_os in
10217    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10218    *) lt_sed_strip_eq="s,=/,/,g" ;;
10219  esac
10220  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10221  case $lt_search_path_spec in
10222  *\;*)
10223    # if the path contains ";" then we assume it to be the separator
10224    # otherwise default to the standard path separator (i.e. ":") - it is
10225    # assumed that no part of a normal pathname contains ";" but that should
10226    # okay in the real world where ";" in dirpaths is itself problematic.
10227    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10228    ;;
10229  *)
10230    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10231    ;;
10232  esac
10233  # Ok, now we have the path, separated by spaces, we can step through it
10234  # and add multilib dir if necessary.
10235  lt_tmp_lt_search_path_spec=
10236  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10237  for lt_sys_path in $lt_search_path_spec; do
10238    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10239      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10240    else
10241      test -d "$lt_sys_path" && \
10242	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10243    fi
10244  done
10245  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10246BEGIN {RS=" "; FS="/|\n";} {
10247  lt_foo="";
10248  lt_count=0;
10249  for (lt_i = NF; lt_i > 0; lt_i--) {
10250    if ($lt_i != "" && $lt_i != ".") {
10251      if ($lt_i == "..") {
10252        lt_count++;
10253      } else {
10254        if (lt_count == 0) {
10255          lt_foo="/" $lt_i lt_foo;
10256        } else {
10257          lt_count--;
10258        }
10259      }
10260    }
10261  }
10262  if (lt_foo != "") { lt_freq[lt_foo]++; }
10263  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10264}'`
10265  # AWK program above erroneously prepends '/' to C:/dos/paths
10266  # for these hosts.
10267  case $host_os in
10268    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10269      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10270  esac
10271  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10272else
10273  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10274fi
10275library_names_spec=
10276libname_spec='lib$name'
10277soname_spec=
10278shrext_cmds=".so"
10279postinstall_cmds=
10280postuninstall_cmds=
10281finish_cmds=
10282finish_eval=
10283shlibpath_var=
10284shlibpath_overrides_runpath=unknown
10285version_type=none
10286dynamic_linker="$host_os ld.so"
10287sys_lib_dlsearch_path_spec="/lib /usr/lib"
10288need_lib_prefix=unknown
10289hardcode_into_libs=no
10290
10291# when you set need_version to no, make sure it does not cause -set_version
10292# flags to be left without arguments
10293need_version=unknown
10294
10295case $host_os in
10296aix3*)
10297  version_type=linux # correct to gnu/linux during the next big refactor
10298  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10299  shlibpath_var=LIBPATH
10300
10301  # AIX 3 has no versioning support, so we append a major version to the name.
10302  soname_spec='${libname}${release}${shared_ext}$major'
10303  ;;
10304
10305aix[4-9]*)
10306  version_type=linux # correct to gnu/linux during the next big refactor
10307  need_lib_prefix=no
10308  need_version=no
10309  hardcode_into_libs=yes
10310  if test "$host_cpu" = ia64; then
10311    # AIX 5 supports IA64
10312    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10313    shlibpath_var=LD_LIBRARY_PATH
10314  else
10315    # With GCC up to 2.95.x, collect2 would create an import file
10316    # for dependence libraries.  The import file would start with
10317    # the line `#! .'.  This would cause the generated library to
10318    # depend on `.', always an invalid library.  This was fixed in
10319    # development snapshots of GCC prior to 3.0.
10320    case $host_os in
10321      aix4 | aix4.[01] | aix4.[01].*)
10322      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10323	   echo ' yes '
10324	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10325	:
10326      else
10327	can_build_shared=no
10328      fi
10329      ;;
10330    esac
10331    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10332    # soname into executable. Probably we can add versioning support to
10333    # collect2, so additional links can be useful in future.
10334    if test "$aix_use_runtimelinking" = yes; then
10335      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10336      # instead of lib<name>.a to let people know that these are not
10337      # typical AIX shared libraries.
10338      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339    else
10340      # We preserve .a as extension for shared libraries through AIX4.2
10341      # and later when we are not doing run time linking.
10342      library_names_spec='${libname}${release}.a $libname.a'
10343      soname_spec='${libname}${release}${shared_ext}$major'
10344    fi
10345    shlibpath_var=LIBPATH
10346  fi
10347  ;;
10348
10349amigaos*)
10350  case $host_cpu in
10351  powerpc)
10352    # Since July 2007 AmigaOS4 officially supports .so libraries.
10353    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355    ;;
10356  m68k)
10357    library_names_spec='$libname.ixlibrary $libname.a'
10358    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10359    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10360    ;;
10361  esac
10362  ;;
10363
10364beos*)
10365  library_names_spec='${libname}${shared_ext}'
10366  dynamic_linker="$host_os ld.so"
10367  shlibpath_var=LIBRARY_PATH
10368  ;;
10369
10370bsdi[45]*)
10371  version_type=linux # correct to gnu/linux during the next big refactor
10372  need_version=no
10373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374  soname_spec='${libname}${release}${shared_ext}$major'
10375  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10376  shlibpath_var=LD_LIBRARY_PATH
10377  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10378  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10379  # the default ld.so.conf also contains /usr/contrib/lib and
10380  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10381  # libtool to hard-code these into programs
10382  ;;
10383
10384cygwin* | mingw* | pw32* | cegcc*)
10385  version_type=windows
10386  shrext_cmds=".dll"
10387  need_version=no
10388  need_lib_prefix=no
10389
10390  case $GCC,$cc_basename in
10391  yes,*)
10392    # gcc
10393    library_names_spec='$libname.dll.a'
10394    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10395    postinstall_cmds='base_file=`basename \${file}`~
10396      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10397      dldir=$destdir/`dirname \$dlpath`~
10398      test -d \$dldir || mkdir -p \$dldir~
10399      $install_prog $dir/$dlname \$dldir/$dlname~
10400      chmod a+x \$dldir/$dlname~
10401      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10402        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10403      fi'
10404    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10405      dlpath=$dir/\$dldll~
10406       $RM \$dlpath'
10407    shlibpath_overrides_runpath=yes
10408
10409    case $host_os in
10410    cygwin*)
10411      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10412      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10413
10414      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10415      ;;
10416    mingw* | cegcc*)
10417      # MinGW DLLs use traditional 'lib' prefix
10418      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10419      ;;
10420    pw32*)
10421      # pw32 DLLs use 'pw' prefix rather than 'lib'
10422      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10423      ;;
10424    esac
10425    dynamic_linker='Win32 ld.exe'
10426    ;;
10427
10428  *,cl*)
10429    # Native MSVC
10430    libname_spec='$name'
10431    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10432    library_names_spec='${libname}.dll.lib'
10433
10434    case $build_os in
10435    mingw*)
10436      sys_lib_search_path_spec=
10437      lt_save_ifs=$IFS
10438      IFS=';'
10439      for lt_path in $LIB
10440      do
10441        IFS=$lt_save_ifs
10442        # Let DOS variable expansion print the short 8.3 style file name.
10443        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10444        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10445      done
10446      IFS=$lt_save_ifs
10447      # Convert to MSYS style.
10448      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10449      ;;
10450    cygwin*)
10451      # Convert to unix form, then to dos form, then back to unix form
10452      # but this time dos style (no spaces!) so that the unix form looks
10453      # like /cygdrive/c/PROGRA~1:/cygdr...
10454      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10455      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10456      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10457      ;;
10458    *)
10459      sys_lib_search_path_spec="$LIB"
10460      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10461        # It is most probably a Windows format PATH.
10462        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10463      else
10464        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10465      fi
10466      # FIXME: find the short name or the path components, as spaces are
10467      # common. (e.g. "Program Files" -> "PROGRA~1")
10468      ;;
10469    esac
10470
10471    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10472    postinstall_cmds='base_file=`basename \${file}`~
10473      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10474      dldir=$destdir/`dirname \$dlpath`~
10475      test -d \$dldir || mkdir -p \$dldir~
10476      $install_prog $dir/$dlname \$dldir/$dlname'
10477    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10478      dlpath=$dir/\$dldll~
10479       $RM \$dlpath'
10480    shlibpath_overrides_runpath=yes
10481    dynamic_linker='Win32 link.exe'
10482    ;;
10483
10484  *)
10485    # Assume MSVC wrapper
10486    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10487    dynamic_linker='Win32 ld.exe'
10488    ;;
10489  esac
10490  # FIXME: first we should search . and the directory the executable is in
10491  shlibpath_var=PATH
10492  ;;
10493
10494darwin* | rhapsody*)
10495  dynamic_linker="$host_os dyld"
10496  version_type=darwin
10497  need_lib_prefix=no
10498  need_version=no
10499  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10500  soname_spec='${libname}${release}${major}$shared_ext'
10501  shlibpath_overrides_runpath=yes
10502  shlibpath_var=DYLD_LIBRARY_PATH
10503  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10504
10505  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10506  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10507  ;;
10508
10509dgux*)
10510  version_type=linux # correct to gnu/linux during the next big refactor
10511  need_lib_prefix=no
10512  need_version=no
10513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10514  soname_spec='${libname}${release}${shared_ext}$major'
10515  shlibpath_var=LD_LIBRARY_PATH
10516  ;;
10517
10518freebsd* | dragonfly*)
10519  # DragonFly does not have aout.  When/if they implement a new
10520  # versioning mechanism, adjust this.
10521  if test -x /usr/bin/objformat; then
10522    objformat=`/usr/bin/objformat`
10523  else
10524    case $host_os in
10525    freebsd[23].*) objformat=aout ;;
10526    *) objformat=elf ;;
10527    esac
10528  fi
10529  version_type=freebsd-$objformat
10530  case $version_type in
10531    freebsd-elf*)
10532      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10533      need_version=no
10534      need_lib_prefix=no
10535      ;;
10536    freebsd-*)
10537      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10538      need_version=yes
10539      ;;
10540  esac
10541  shlibpath_var=LD_LIBRARY_PATH
10542  case $host_os in
10543  freebsd2.*)
10544    shlibpath_overrides_runpath=yes
10545    ;;
10546  freebsd3.[01]* | freebsdelf3.[01]*)
10547    shlibpath_overrides_runpath=yes
10548    hardcode_into_libs=yes
10549    ;;
10550  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10551  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10552    shlibpath_overrides_runpath=no
10553    hardcode_into_libs=yes
10554    ;;
10555  *) # from 4.6 on, and DragonFly
10556    shlibpath_overrides_runpath=yes
10557    hardcode_into_libs=yes
10558    ;;
10559  esac
10560  ;;
10561
10562gnu*)
10563  version_type=linux # correct to gnu/linux during the next big refactor
10564  need_lib_prefix=no
10565  need_version=no
10566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10567  soname_spec='${libname}${release}${shared_ext}$major'
10568  shlibpath_var=LD_LIBRARY_PATH
10569  shlibpath_overrides_runpath=no
10570  hardcode_into_libs=yes
10571  ;;
10572
10573haiku*)
10574  version_type=linux # correct to gnu/linux during the next big refactor
10575  need_lib_prefix=no
10576  need_version=no
10577  dynamic_linker="$host_os runtime_loader"
10578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10579  soname_spec='${libname}${release}${shared_ext}$major'
10580  shlibpath_var=LIBRARY_PATH
10581  shlibpath_overrides_runpath=yes
10582  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10583  hardcode_into_libs=yes
10584  ;;
10585
10586hpux9* | hpux10* | hpux11*)
10587  # Give a soname corresponding to the major version so that dld.sl refuses to
10588  # link against other versions.
10589  version_type=sunos
10590  need_lib_prefix=no
10591  need_version=no
10592  case $host_cpu in
10593  ia64*)
10594    shrext_cmds='.so'
10595    hardcode_into_libs=yes
10596    dynamic_linker="$host_os dld.so"
10597    shlibpath_var=LD_LIBRARY_PATH
10598    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10599    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600    soname_spec='${libname}${release}${shared_ext}$major'
10601    if test "X$HPUX_IA64_MODE" = X32; then
10602      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10603    else
10604      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10605    fi
10606    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10607    ;;
10608  hppa*64*)
10609    shrext_cmds='.sl'
10610    hardcode_into_libs=yes
10611    dynamic_linker="$host_os dld.sl"
10612    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10613    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10614    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615    soname_spec='${libname}${release}${shared_ext}$major'
10616    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10617    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10618    ;;
10619  *)
10620    shrext_cmds='.sl'
10621    dynamic_linker="$host_os dld.sl"
10622    shlibpath_var=SHLIB_PATH
10623    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10624    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625    soname_spec='${libname}${release}${shared_ext}$major'
10626    ;;
10627  esac
10628  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10629  postinstall_cmds='chmod 555 $lib'
10630  # or fails outright, so override atomically:
10631  install_override_mode=555
10632  ;;
10633
10634interix[3-9]*)
10635  version_type=linux # correct to gnu/linux during the next big refactor
10636  need_lib_prefix=no
10637  need_version=no
10638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10639  soname_spec='${libname}${release}${shared_ext}$major'
10640  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10641  shlibpath_var=LD_LIBRARY_PATH
10642  shlibpath_overrides_runpath=no
10643  hardcode_into_libs=yes
10644  ;;
10645
10646irix5* | irix6* | nonstopux*)
10647  case $host_os in
10648    nonstopux*) version_type=nonstopux ;;
10649    *)
10650	if test "$lt_cv_prog_gnu_ld" = yes; then
10651		version_type=linux # correct to gnu/linux during the next big refactor
10652	else
10653		version_type=irix
10654	fi ;;
10655  esac
10656  need_lib_prefix=no
10657  need_version=no
10658  soname_spec='${libname}${release}${shared_ext}$major'
10659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10660  case $host_os in
10661  irix5* | nonstopux*)
10662    libsuff= shlibsuff=
10663    ;;
10664  *)
10665    case $LD in # libtool.m4 will add one of these switches to LD
10666    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10667      libsuff= shlibsuff= libmagic=32-bit;;
10668    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10669      libsuff=32 shlibsuff=N32 libmagic=N32;;
10670    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10671      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10672    *) libsuff= shlibsuff= libmagic=never-match;;
10673    esac
10674    ;;
10675  esac
10676  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10677  shlibpath_overrides_runpath=no
10678  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10679  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10680  hardcode_into_libs=yes
10681  ;;
10682
10683# No shared lib support for Linux oldld, aout, or coff.
10684linux*oldld* | linux*aout* | linux*coff*)
10685  dynamic_linker=no
10686  ;;
10687
10688# This must be glibc/ELF.
10689linux* | k*bsd*-gnu | kopensolaris*-gnu)
10690  version_type=linux # correct to gnu/linux during the next big refactor
10691  need_lib_prefix=no
10692  need_version=no
10693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694  soname_spec='${libname}${release}${shared_ext}$major'
10695  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10696  shlibpath_var=LD_LIBRARY_PATH
10697  shlibpath_overrides_runpath=no
10698
10699  # Some binutils ld are patched to set DT_RUNPATH
10700  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10701  $as_echo_n "(cached) " >&6
10702else
10703  lt_cv_shlibpath_overrides_runpath=no
10704    save_LDFLAGS=$LDFLAGS
10705    save_libdir=$libdir
10706    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10707	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10708    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709/* end confdefs.h.  */
10710
10711int
10712main ()
10713{
10714
10715  ;
10716  return 0;
10717}
10718_ACEOF
10719if ac_fn_c_try_link "$LINENO"; then :
10720  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10721  lt_cv_shlibpath_overrides_runpath=yes
10722fi
10723fi
10724rm -f core conftest.err conftest.$ac_objext \
10725    conftest$ac_exeext conftest.$ac_ext
10726    LDFLAGS=$save_LDFLAGS
10727    libdir=$save_libdir
10728
10729fi
10730
10731  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10732
10733  # This implies no fast_install, which is unacceptable.
10734  # Some rework will be needed to allow for fast_install
10735  # before this can be enabled.
10736  hardcode_into_libs=yes
10737
10738  # Append ld.so.conf contents to the search path
10739  if test -f /etc/ld.so.conf; then
10740    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;s/"//g;/^$/d' | tr '\n' ' '`
10741    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10742  fi
10743
10744  # We used to test for /lib/ld.so.1 and disable shared libraries on
10745  # powerpc, because MkLinux only supported shared libraries with the
10746  # GNU dynamic linker.  Since this was broken with cross compilers,
10747  # most powerpc-linux boxes support dynamic linking these days and
10748  # people can always --disable-shared, the test was removed, and we
10749  # assume the GNU/Linux dynamic linker is in use.
10750  dynamic_linker='GNU/Linux ld.so'
10751  ;;
10752
10753netbsdelf*-gnu)
10754  version_type=linux
10755  need_lib_prefix=no
10756  need_version=no
10757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10758  soname_spec='${libname}${release}${shared_ext}$major'
10759  shlibpath_var=LD_LIBRARY_PATH
10760  shlibpath_overrides_runpath=no
10761  hardcode_into_libs=yes
10762  dynamic_linker='NetBSD ld.elf_so'
10763  ;;
10764
10765netbsd*)
10766  version_type=sunos
10767  need_lib_prefix=no
10768  need_version=no
10769  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10770    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10771    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10772    dynamic_linker='NetBSD (a.out) ld.so'
10773  else
10774    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10775    soname_spec='${libname}${release}${shared_ext}$major'
10776    dynamic_linker='NetBSD ld.elf_so'
10777  fi
10778  shlibpath_var=LD_LIBRARY_PATH
10779  shlibpath_overrides_runpath=yes
10780  hardcode_into_libs=yes
10781  ;;
10782
10783newsos6)
10784  version_type=linux # correct to gnu/linux during the next big refactor
10785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786  shlibpath_var=LD_LIBRARY_PATH
10787  shlibpath_overrides_runpath=yes
10788  ;;
10789
10790*nto* | *qnx*)
10791  version_type=qnx
10792  need_lib_prefix=no
10793  need_version=no
10794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795  soname_spec='${libname}${release}${shared_ext}$major'
10796  shlibpath_var=LD_LIBRARY_PATH
10797  shlibpath_overrides_runpath=no
10798  hardcode_into_libs=yes
10799  dynamic_linker='ldqnx.so'
10800  ;;
10801
10802openbsd*)
10803  version_type=sunos
10804  sys_lib_dlsearch_path_spec="/usr/lib"
10805  need_lib_prefix=no
10806  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10807  case $host_os in
10808    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10809    *)				need_version=no  ;;
10810  esac
10811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10812  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10813  shlibpath_var=LD_LIBRARY_PATH
10814  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10815    case $host_os in
10816      openbsd2.[89] | openbsd2.[89].*)
10817	shlibpath_overrides_runpath=no
10818	;;
10819      *)
10820	shlibpath_overrides_runpath=yes
10821	;;
10822      esac
10823  else
10824    shlibpath_overrides_runpath=yes
10825  fi
10826  ;;
10827
10828os2*)
10829  libname_spec='$name'
10830  shrext_cmds=".dll"
10831  need_lib_prefix=no
10832  library_names_spec='$libname${shared_ext} $libname.a'
10833  dynamic_linker='OS/2 ld.exe'
10834  shlibpath_var=LIBPATH
10835  ;;
10836
10837osf3* | osf4* | osf5*)
10838  version_type=osf
10839  need_lib_prefix=no
10840  need_version=no
10841  soname_spec='${libname}${release}${shared_ext}$major'
10842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843  shlibpath_var=LD_LIBRARY_PATH
10844  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10845  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10846  ;;
10847
10848rdos*)
10849  dynamic_linker=no
10850  ;;
10851
10852solaris*)
10853  version_type=linux # correct to gnu/linux during the next big refactor
10854  need_lib_prefix=no
10855  need_version=no
10856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10857  soname_spec='${libname}${release}${shared_ext}$major'
10858  shlibpath_var=LD_LIBRARY_PATH
10859  shlibpath_overrides_runpath=yes
10860  hardcode_into_libs=yes
10861  # ldd complains unless libraries are executable
10862  postinstall_cmds='chmod +x $lib'
10863  ;;
10864
10865sunos4*)
10866  version_type=sunos
10867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10868  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10869  shlibpath_var=LD_LIBRARY_PATH
10870  shlibpath_overrides_runpath=yes
10871  if test "$with_gnu_ld" = yes; then
10872    need_lib_prefix=no
10873  fi
10874  need_version=yes
10875  ;;
10876
10877sysv4 | sysv4.3*)
10878  version_type=linux # correct to gnu/linux during the next big refactor
10879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880  soname_spec='${libname}${release}${shared_ext}$major'
10881  shlibpath_var=LD_LIBRARY_PATH
10882  case $host_vendor in
10883    sni)
10884      shlibpath_overrides_runpath=no
10885      need_lib_prefix=no
10886      runpath_var=LD_RUN_PATH
10887      ;;
10888    siemens)
10889      need_lib_prefix=no
10890      ;;
10891    motorola)
10892      need_lib_prefix=no
10893      need_version=no
10894      shlibpath_overrides_runpath=no
10895      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10896      ;;
10897  esac
10898  ;;
10899
10900sysv4*MP*)
10901  if test -d /usr/nec ;then
10902    version_type=linux # correct to gnu/linux during the next big refactor
10903    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10904    soname_spec='$libname${shared_ext}.$major'
10905    shlibpath_var=LD_LIBRARY_PATH
10906  fi
10907  ;;
10908
10909sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10910  version_type=freebsd-elf
10911  need_lib_prefix=no
10912  need_version=no
10913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10914  soname_spec='${libname}${release}${shared_ext}$major'
10915  shlibpath_var=LD_LIBRARY_PATH
10916  shlibpath_overrides_runpath=yes
10917  hardcode_into_libs=yes
10918  if test "$with_gnu_ld" = yes; then
10919    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10920  else
10921    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10922    case $host_os in
10923      sco3.2v5*)
10924        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10925	;;
10926    esac
10927  fi
10928  sys_lib_dlsearch_path_spec='/usr/lib'
10929  ;;
10930
10931tpf*)
10932  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10933  version_type=linux # correct to gnu/linux during the next big refactor
10934  need_lib_prefix=no
10935  need_version=no
10936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937  shlibpath_var=LD_LIBRARY_PATH
10938  shlibpath_overrides_runpath=no
10939  hardcode_into_libs=yes
10940  ;;
10941
10942uts4*)
10943  version_type=linux # correct to gnu/linux during the next big refactor
10944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945  soname_spec='${libname}${release}${shared_ext}$major'
10946  shlibpath_var=LD_LIBRARY_PATH
10947  ;;
10948
10949*)
10950  dynamic_linker=no
10951  ;;
10952esac
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10954$as_echo "$dynamic_linker" >&6; }
10955test "$dynamic_linker" = no && can_build_shared=no
10956
10957variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10958if test "$GCC" = yes; then
10959  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10960fi
10961
10962if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10963  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10964fi
10965if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10966  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10967fi
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11061$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11062hardcode_action=
11063if test -n "$hardcode_libdir_flag_spec" ||
11064   test -n "$runpath_var" ||
11065   test "X$hardcode_automatic" = "Xyes" ; then
11066
11067  # We can hardcode non-existent directories.
11068  if test "$hardcode_direct" != no &&
11069     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11070     # have to relink, otherwise we might link with an installed library
11071     # when we should be linking with a yet-to-be-installed one
11072     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11073     test "$hardcode_minus_L" != no; then
11074    # Linking always hardcodes the temporary library directory.
11075    hardcode_action=relink
11076  else
11077    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11078    hardcode_action=immediate
11079  fi
11080else
11081  # We cannot hardcode anything, or else we can only hardcode existing
11082  # directories.
11083  hardcode_action=unsupported
11084fi
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11086$as_echo "$hardcode_action" >&6; }
11087
11088if test "$hardcode_action" = relink ||
11089   test "$inherit_rpath" = yes; then
11090  # Fast installation is not supported
11091  enable_fast_install=no
11092elif test "$shlibpath_overrides_runpath" = yes ||
11093     test "$enable_shared" = no; then
11094  # Fast installation is not necessary
11095  enable_fast_install=needless
11096fi
11097
11098
11099
11100
11101
11102
11103  if test "x$enable_dlopen" != xyes; then
11104  enable_dlopen=unknown
11105  enable_dlopen_self=unknown
11106  enable_dlopen_self_static=unknown
11107else
11108  lt_cv_dlopen=no
11109  lt_cv_dlopen_libs=
11110
11111  case $host_os in
11112  beos*)
11113    lt_cv_dlopen="load_add_on"
11114    lt_cv_dlopen_libs=
11115    lt_cv_dlopen_self=yes
11116    ;;
11117
11118  mingw* | pw32* | cegcc*)
11119    lt_cv_dlopen="LoadLibrary"
11120    lt_cv_dlopen_libs=
11121    ;;
11122
11123  cygwin*)
11124    lt_cv_dlopen="dlopen"
11125    lt_cv_dlopen_libs=
11126    ;;
11127
11128  darwin*)
11129  # if libdl is installed we need to link against it
11130    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11131$as_echo_n "checking for dlopen in -ldl... " >&6; }
11132if ${ac_cv_lib_dl_dlopen+:} false; then :
11133  $as_echo_n "(cached) " >&6
11134else
11135  ac_check_lib_save_LIBS=$LIBS
11136LIBS="-ldl  $LIBS"
11137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11138/* end confdefs.h.  */
11139
11140/* Override any GCC internal prototype to avoid an error.
11141   Use char because int might match the return type of a GCC
11142   builtin and then its argument prototype would still apply.  */
11143#ifdef __cplusplus
11144extern "C"
11145#endif
11146char dlopen ();
11147int
11148main ()
11149{
11150return dlopen ();
11151  ;
11152  return 0;
11153}
11154_ACEOF
11155if ac_fn_c_try_link "$LINENO"; then :
11156  ac_cv_lib_dl_dlopen=yes
11157else
11158  ac_cv_lib_dl_dlopen=no
11159fi
11160rm -f core conftest.err conftest.$ac_objext \
11161    conftest$ac_exeext conftest.$ac_ext
11162LIBS=$ac_check_lib_save_LIBS
11163fi
11164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11165$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11166if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11167  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11168else
11169
11170    lt_cv_dlopen="dyld"
11171    lt_cv_dlopen_libs=
11172    lt_cv_dlopen_self=yes
11173
11174fi
11175
11176    ;;
11177
11178  *)
11179    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11180if test "x$ac_cv_func_shl_load" = xyes; then :
11181  lt_cv_dlopen="shl_load"
11182else
11183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11184$as_echo_n "checking for shl_load in -ldld... " >&6; }
11185if ${ac_cv_lib_dld_shl_load+:} false; then :
11186  $as_echo_n "(cached) " >&6
11187else
11188  ac_check_lib_save_LIBS=$LIBS
11189LIBS="-ldld  $LIBS"
11190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191/* end confdefs.h.  */
11192
11193/* Override any GCC internal prototype to avoid an error.
11194   Use char because int might match the return type of a GCC
11195   builtin and then its argument prototype would still apply.  */
11196#ifdef __cplusplus
11197extern "C"
11198#endif
11199char shl_load ();
11200int
11201main ()
11202{
11203return shl_load ();
11204  ;
11205  return 0;
11206}
11207_ACEOF
11208if ac_fn_c_try_link "$LINENO"; then :
11209  ac_cv_lib_dld_shl_load=yes
11210else
11211  ac_cv_lib_dld_shl_load=no
11212fi
11213rm -f core conftest.err conftest.$ac_objext \
11214    conftest$ac_exeext conftest.$ac_ext
11215LIBS=$ac_check_lib_save_LIBS
11216fi
11217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11218$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11219if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11220  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11221else
11222  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11223if test "x$ac_cv_func_dlopen" = xyes; then :
11224  lt_cv_dlopen="dlopen"
11225else
11226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11227$as_echo_n "checking for dlopen in -ldl... " >&6; }
11228if ${ac_cv_lib_dl_dlopen+:} false; then :
11229  $as_echo_n "(cached) " >&6
11230else
11231  ac_check_lib_save_LIBS=$LIBS
11232LIBS="-ldl  $LIBS"
11233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234/* end confdefs.h.  */
11235
11236/* Override any GCC internal prototype to avoid an error.
11237   Use char because int might match the return type of a GCC
11238   builtin and then its argument prototype would still apply.  */
11239#ifdef __cplusplus
11240extern "C"
11241#endif
11242char dlopen ();
11243int
11244main ()
11245{
11246return dlopen ();
11247  ;
11248  return 0;
11249}
11250_ACEOF
11251if ac_fn_c_try_link "$LINENO"; then :
11252  ac_cv_lib_dl_dlopen=yes
11253else
11254  ac_cv_lib_dl_dlopen=no
11255fi
11256rm -f core conftest.err conftest.$ac_objext \
11257    conftest$ac_exeext conftest.$ac_ext
11258LIBS=$ac_check_lib_save_LIBS
11259fi
11260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11261$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11262if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11263  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11264else
11265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11266$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11267if ${ac_cv_lib_svld_dlopen+:} false; then :
11268  $as_echo_n "(cached) " >&6
11269else
11270  ac_check_lib_save_LIBS=$LIBS
11271LIBS="-lsvld  $LIBS"
11272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273/* end confdefs.h.  */
11274
11275/* Override any GCC internal prototype to avoid an error.
11276   Use char because int might match the return type of a GCC
11277   builtin and then its argument prototype would still apply.  */
11278#ifdef __cplusplus
11279extern "C"
11280#endif
11281char dlopen ();
11282int
11283main ()
11284{
11285return dlopen ();
11286  ;
11287  return 0;
11288}
11289_ACEOF
11290if ac_fn_c_try_link "$LINENO"; then :
11291  ac_cv_lib_svld_dlopen=yes
11292else
11293  ac_cv_lib_svld_dlopen=no
11294fi
11295rm -f core conftest.err conftest.$ac_objext \
11296    conftest$ac_exeext conftest.$ac_ext
11297LIBS=$ac_check_lib_save_LIBS
11298fi
11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11300$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11301if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11302  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11303else
11304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11305$as_echo_n "checking for dld_link in -ldld... " >&6; }
11306if ${ac_cv_lib_dld_dld_link+:} false; then :
11307  $as_echo_n "(cached) " >&6
11308else
11309  ac_check_lib_save_LIBS=$LIBS
11310LIBS="-ldld  $LIBS"
11311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312/* end confdefs.h.  */
11313
11314/* Override any GCC internal prototype to avoid an error.
11315   Use char because int might match the return type of a GCC
11316   builtin and then its argument prototype would still apply.  */
11317#ifdef __cplusplus
11318extern "C"
11319#endif
11320char dld_link ();
11321int
11322main ()
11323{
11324return dld_link ();
11325  ;
11326  return 0;
11327}
11328_ACEOF
11329if ac_fn_c_try_link "$LINENO"; then :
11330  ac_cv_lib_dld_dld_link=yes
11331else
11332  ac_cv_lib_dld_dld_link=no
11333fi
11334rm -f core conftest.err conftest.$ac_objext \
11335    conftest$ac_exeext conftest.$ac_ext
11336LIBS=$ac_check_lib_save_LIBS
11337fi
11338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11339$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11340if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11341  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11342fi
11343
11344
11345fi
11346
11347
11348fi
11349
11350
11351fi
11352
11353
11354fi
11355
11356
11357fi
11358
11359    ;;
11360  esac
11361
11362  if test "x$lt_cv_dlopen" != xno; then
11363    enable_dlopen=yes
11364  else
11365    enable_dlopen=no
11366  fi
11367
11368  case $lt_cv_dlopen in
11369  dlopen)
11370    save_CPPFLAGS="$CPPFLAGS"
11371    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11372
11373    save_LDFLAGS="$LDFLAGS"
11374    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11375
11376    save_LIBS="$LIBS"
11377    LIBS="$lt_cv_dlopen_libs $LIBS"
11378
11379    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11380$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11381if ${lt_cv_dlopen_self+:} false; then :
11382  $as_echo_n "(cached) " >&6
11383else
11384  	  if test "$cross_compiling" = yes; then :
11385  lt_cv_dlopen_self=cross
11386else
11387  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11388  lt_status=$lt_dlunknown
11389  cat > conftest.$ac_ext <<_LT_EOF
11390#line $LINENO "configure"
11391#include "confdefs.h"
11392
11393#if HAVE_DLFCN_H
11394#include <dlfcn.h>
11395#endif
11396
11397#include <stdio.h>
11398
11399#ifdef RTLD_GLOBAL
11400#  define LT_DLGLOBAL		RTLD_GLOBAL
11401#else
11402#  ifdef DL_GLOBAL
11403#    define LT_DLGLOBAL		DL_GLOBAL
11404#  else
11405#    define LT_DLGLOBAL		0
11406#  endif
11407#endif
11408
11409/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11410   find out it does not work in some platform. */
11411#ifndef LT_DLLAZY_OR_NOW
11412#  ifdef RTLD_LAZY
11413#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11414#  else
11415#    ifdef DL_LAZY
11416#      define LT_DLLAZY_OR_NOW		DL_LAZY
11417#    else
11418#      ifdef RTLD_NOW
11419#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11420#      else
11421#        ifdef DL_NOW
11422#          define LT_DLLAZY_OR_NOW	DL_NOW
11423#        else
11424#          define LT_DLLAZY_OR_NOW	0
11425#        endif
11426#      endif
11427#    endif
11428#  endif
11429#endif
11430
11431/* When -fvisbility=hidden is used, assume the code has been annotated
11432   correspondingly for the symbols needed.  */
11433#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11434int fnord () __attribute__((visibility("default")));
11435#endif
11436
11437int fnord () { return 42; }
11438int main ()
11439{
11440  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11441  int status = $lt_dlunknown;
11442
11443  if (self)
11444    {
11445      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11446      else
11447        {
11448	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11449          else puts (dlerror ());
11450	}
11451      /* dlclose (self); */
11452    }
11453  else
11454    puts (dlerror ());
11455
11456  return status;
11457}
11458_LT_EOF
11459  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11460  (eval $ac_link) 2>&5
11461  ac_status=$?
11462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11463  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11464    (./conftest; exit; ) >&5 2>/dev/null
11465    lt_status=$?
11466    case x$lt_status in
11467      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11468      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11469      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11470    esac
11471  else :
11472    # compilation failed
11473    lt_cv_dlopen_self=no
11474  fi
11475fi
11476rm -fr conftest*
11477
11478
11479fi
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11481$as_echo "$lt_cv_dlopen_self" >&6; }
11482
11483    if test "x$lt_cv_dlopen_self" = xyes; then
11484      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11485      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11486$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11487if ${lt_cv_dlopen_self_static+:} false; then :
11488  $as_echo_n "(cached) " >&6
11489else
11490  	  if test "$cross_compiling" = yes; then :
11491  lt_cv_dlopen_self_static=cross
11492else
11493  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11494  lt_status=$lt_dlunknown
11495  cat > conftest.$ac_ext <<_LT_EOF
11496#line $LINENO "configure"
11497#include "confdefs.h"
11498
11499#if HAVE_DLFCN_H
11500#include <dlfcn.h>
11501#endif
11502
11503#include <stdio.h>
11504
11505#ifdef RTLD_GLOBAL
11506#  define LT_DLGLOBAL		RTLD_GLOBAL
11507#else
11508#  ifdef DL_GLOBAL
11509#    define LT_DLGLOBAL		DL_GLOBAL
11510#  else
11511#    define LT_DLGLOBAL		0
11512#  endif
11513#endif
11514
11515/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11516   find out it does not work in some platform. */
11517#ifndef LT_DLLAZY_OR_NOW
11518#  ifdef RTLD_LAZY
11519#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11520#  else
11521#    ifdef DL_LAZY
11522#      define LT_DLLAZY_OR_NOW		DL_LAZY
11523#    else
11524#      ifdef RTLD_NOW
11525#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11526#      else
11527#        ifdef DL_NOW
11528#          define LT_DLLAZY_OR_NOW	DL_NOW
11529#        else
11530#          define LT_DLLAZY_OR_NOW	0
11531#        endif
11532#      endif
11533#    endif
11534#  endif
11535#endif
11536
11537/* When -fvisbility=hidden is used, assume the code has been annotated
11538   correspondingly for the symbols needed.  */
11539#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11540int fnord () __attribute__((visibility("default")));
11541#endif
11542
11543int fnord () { return 42; }
11544int main ()
11545{
11546  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11547  int status = $lt_dlunknown;
11548
11549  if (self)
11550    {
11551      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11552      else
11553        {
11554	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11555          else puts (dlerror ());
11556	}
11557      /* dlclose (self); */
11558    }
11559  else
11560    puts (dlerror ());
11561
11562  return status;
11563}
11564_LT_EOF
11565  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11566  (eval $ac_link) 2>&5
11567  ac_status=$?
11568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11569  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11570    (./conftest; exit; ) >&5 2>/dev/null
11571    lt_status=$?
11572    case x$lt_status in
11573      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11574      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11575      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11576    esac
11577  else :
11578    # compilation failed
11579    lt_cv_dlopen_self_static=no
11580  fi
11581fi
11582rm -fr conftest*
11583
11584
11585fi
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11587$as_echo "$lt_cv_dlopen_self_static" >&6; }
11588    fi
11589
11590    CPPFLAGS="$save_CPPFLAGS"
11591    LDFLAGS="$save_LDFLAGS"
11592    LIBS="$save_LIBS"
11593    ;;
11594  esac
11595
11596  case $lt_cv_dlopen_self in
11597  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11598  *) enable_dlopen_self=unknown ;;
11599  esac
11600
11601  case $lt_cv_dlopen_self_static in
11602  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11603  *) enable_dlopen_self_static=unknown ;;
11604  esac
11605fi
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623striplib=
11624old_striplib=
11625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11626$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11627if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11628  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11629  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11631$as_echo "yes" >&6; }
11632else
11633# FIXME - insert some real tests, host_os isn't really good enough
11634  case $host_os in
11635  darwin*)
11636    if test -n "$STRIP" ; then
11637      striplib="$STRIP -x"
11638      old_striplib="$STRIP -S"
11639      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11640$as_echo "yes" >&6; }
11641    else
11642      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643$as_echo "no" >&6; }
11644    fi
11645    ;;
11646  *)
11647    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648$as_echo "no" >&6; }
11649    ;;
11650  esac
11651fi
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664  # Report which library types will actually be built
11665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11666$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11668$as_echo "$can_build_shared" >&6; }
11669
11670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11671$as_echo_n "checking whether to build shared libraries... " >&6; }
11672  test "$can_build_shared" = "no" && enable_shared=no
11673
11674  # On AIX, shared libraries and static libraries use the same namespace, and
11675  # are all built from PIC.
11676  case $host_os in
11677  aix3*)
11678    test "$enable_shared" = yes && enable_static=no
11679    if test -n "$RANLIB"; then
11680      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11681      postinstall_cmds='$RANLIB $lib'
11682    fi
11683    ;;
11684
11685  aix[4-9]*)
11686    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11687      test "$enable_shared" = yes && enable_static=no
11688    fi
11689    ;;
11690  esac
11691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11692$as_echo "$enable_shared" >&6; }
11693
11694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11695$as_echo_n "checking whether to build static libraries... " >&6; }
11696  # Make sure either enable_shared or enable_static is yes.
11697  test "$enable_shared" = yes || enable_static=yes
11698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11699$as_echo "$enable_static" >&6; }
11700
11701
11702
11703
11704fi
11705ac_ext=c
11706ac_cpp='$CPP $CPPFLAGS'
11707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11709ac_compiler_gnu=$ac_cv_c_compiler_gnu
11710
11711CC="$lt_save_CC"
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727        ac_config_commands="$ac_config_commands libtool"
11728
11729
11730
11731
11732# Only expand once:
11733
11734
11735
11736for ac_prog in flex lex
11737do
11738  # Extract the first word of "$ac_prog", so it can be a program name with args.
11739set dummy $ac_prog; ac_word=$2
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741$as_echo_n "checking for $ac_word... " >&6; }
11742if ${ac_cv_prog_LEX+:} false; then :
11743  $as_echo_n "(cached) " >&6
11744else
11745  if test -n "$LEX"; then
11746  ac_cv_prog_LEX="$LEX" # Let the user override the test.
11747else
11748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749for as_dir in $PATH
11750do
11751  IFS=$as_save_IFS
11752  test -z "$as_dir" && as_dir=.
11753    for ac_exec_ext in '' $ac_executable_extensions; do
11754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11755    ac_cv_prog_LEX="$ac_prog"
11756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11757    break 2
11758  fi
11759done
11760  done
11761IFS=$as_save_IFS
11762
11763fi
11764fi
11765LEX=$ac_cv_prog_LEX
11766if test -n "$LEX"; then
11767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11768$as_echo "$LEX" >&6; }
11769else
11770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771$as_echo "no" >&6; }
11772fi
11773
11774
11775  test -n "$LEX" && break
11776done
11777test -n "$LEX" || LEX=":"
11778
11779if test "x$LEX" != "x:"; then
11780  cat >conftest.l <<_ACEOF
11781%%
11782a { ECHO; }
11783b { REJECT; }
11784c { yymore (); }
11785d { yyless (1); }
11786e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
11787    yyless ((input () != 0)); }
11788f { unput (yytext[0]); }
11789. { BEGIN INITIAL; }
11790%%
11791#ifdef YYTEXT_POINTER
11792extern char *yytext;
11793#endif
11794int
11795main (void)
11796{
11797  return ! yylex () + ! yywrap ();
11798}
11799_ACEOF
11800{ { ac_try="$LEX conftest.l"
11801case "(($ac_try" in
11802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803  *) ac_try_echo=$ac_try;;
11804esac
11805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11806$as_echo "$ac_try_echo"; } >&5
11807  (eval "$LEX conftest.l") 2>&5
11808  ac_status=$?
11809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11810  test $ac_status = 0; }
11811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
11812$as_echo_n "checking lex output file root... " >&6; }
11813if ${ac_cv_prog_lex_root+:} false; then :
11814  $as_echo_n "(cached) " >&6
11815else
11816
11817if test -f lex.yy.c; then
11818  ac_cv_prog_lex_root=lex.yy
11819elif test -f lexyy.c; then
11820  ac_cv_prog_lex_root=lexyy
11821else
11822  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
11823fi
11824fi
11825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11826$as_echo "$ac_cv_prog_lex_root" >&6; }
11827LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11828
11829if test -z "${LEXLIB+set}"; then
11830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11831$as_echo_n "checking lex library... " >&6; }
11832if ${ac_cv_lib_lex+:} false; then :
11833  $as_echo_n "(cached) " >&6
11834else
11835
11836    ac_save_LIBS=$LIBS
11837    ac_cv_lib_lex='none needed'
11838    for ac_lib in '' -lfl -ll; do
11839      LIBS="$ac_lib $ac_save_LIBS"
11840      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841/* end confdefs.h.  */
11842`cat $LEX_OUTPUT_ROOT.c`
11843_ACEOF
11844if ac_fn_c_try_link "$LINENO"; then :
11845  ac_cv_lib_lex=$ac_lib
11846fi
11847rm -f core conftest.err conftest.$ac_objext \
11848    conftest$ac_exeext conftest.$ac_ext
11849      test "$ac_cv_lib_lex" != 'none needed' && break
11850    done
11851    LIBS=$ac_save_LIBS
11852
11853fi
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11855$as_echo "$ac_cv_lib_lex" >&6; }
11856  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
11857fi
11858
11859
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11861$as_echo_n "checking whether yytext is a pointer... " >&6; }
11862if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
11863  $as_echo_n "(cached) " >&6
11864else
11865  # POSIX says lex can declare yytext either as a pointer or an array; the
11866# default is implementation-dependent.  Figure out which it is, since
11867# not all implementations provide the %pointer and %array declarations.
11868ac_cv_prog_lex_yytext_pointer=no
11869ac_save_LIBS=$LIBS
11870LIBS="$LEXLIB $ac_save_LIBS"
11871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872/* end confdefs.h.  */
11873
11874  #define YYTEXT_POINTER 1
11875`cat $LEX_OUTPUT_ROOT.c`
11876_ACEOF
11877if ac_fn_c_try_link "$LINENO"; then :
11878  ac_cv_prog_lex_yytext_pointer=yes
11879fi
11880rm -f core conftest.err conftest.$ac_objext \
11881    conftest$ac_exeext conftest.$ac_ext
11882LIBS=$ac_save_LIBS
11883
11884fi
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11886$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
11887if test $ac_cv_prog_lex_yytext_pointer = yes; then
11888
11889$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
11890
11891fi
11892rm -f conftest.l $LEX_OUTPUT_ROOT.c
11893
11894fi
11895if test "$LEX" = :; then
11896  LEX=${am_missing_run}flex
11897fi
11898for ac_prog in 'bison -y' byacc
11899do
11900  # Extract the first word of "$ac_prog", so it can be a program name with args.
11901set dummy $ac_prog; ac_word=$2
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903$as_echo_n "checking for $ac_word... " >&6; }
11904if ${ac_cv_prog_YACC+:} false; then :
11905  $as_echo_n "(cached) " >&6
11906else
11907  if test -n "$YACC"; then
11908  ac_cv_prog_YACC="$YACC" # Let the user override the test.
11909else
11910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911for as_dir in $PATH
11912do
11913  IFS=$as_save_IFS
11914  test -z "$as_dir" && as_dir=.
11915    for ac_exec_ext in '' $ac_executable_extensions; do
11916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11917    ac_cv_prog_YACC="$ac_prog"
11918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919    break 2
11920  fi
11921done
11922  done
11923IFS=$as_save_IFS
11924
11925fi
11926fi
11927YACC=$ac_cv_prog_YACC
11928if test -n "$YACC"; then
11929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11930$as_echo "$YACC" >&6; }
11931else
11932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933$as_echo "no" >&6; }
11934fi
11935
11936
11937  test -n "$YACC" && break
11938done
11939test -n "$YACC" || YACC="yacc"
11940
11941if test "x$CC" != xcc; then
11942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11943$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11944else
11945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11946$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11947fi
11948set dummy $CC; ac_cc=`$as_echo "$2" |
11949		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11950if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11951  $as_echo_n "(cached) " >&6
11952else
11953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954/* end confdefs.h.  */
11955
11956int
11957main ()
11958{
11959
11960  ;
11961  return 0;
11962}
11963_ACEOF
11964# Make sure it works both with $CC and with simple cc.
11965# We do the test twice because some compilers refuse to overwrite an
11966# existing .o file with -o, though they will create one.
11967ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11968rm -f conftest2.*
11969if { { case "(($ac_try" in
11970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971  *) ac_try_echo=$ac_try;;
11972esac
11973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11974$as_echo "$ac_try_echo"; } >&5
11975  (eval "$ac_try") 2>&5
11976  ac_status=$?
11977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11978  test $ac_status = 0; } &&
11979   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981  *) ac_try_echo=$ac_try;;
11982esac
11983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11984$as_echo "$ac_try_echo"; } >&5
11985  (eval "$ac_try") 2>&5
11986  ac_status=$?
11987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11988  test $ac_status = 0; };
11989then
11990  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11991  if test "x$CC" != xcc; then
11992    # Test first that cc exists at all.
11993    if { ac_try='cc -c conftest.$ac_ext >&5'
11994  { { case "(($ac_try" in
11995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996  *) ac_try_echo=$ac_try;;
11997esac
11998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11999$as_echo "$ac_try_echo"; } >&5
12000  (eval "$ac_try") 2>&5
12001  ac_status=$?
12002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003  test $ac_status = 0; }; }; then
12004      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12005      rm -f conftest2.*
12006      if { { case "(($ac_try" in
12007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008  *) ac_try_echo=$ac_try;;
12009esac
12010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12011$as_echo "$ac_try_echo"; } >&5
12012  (eval "$ac_try") 2>&5
12013  ac_status=$?
12014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12015  test $ac_status = 0; } &&
12016	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018  *) ac_try_echo=$ac_try;;
12019esac
12020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12021$as_echo "$ac_try_echo"; } >&5
12022  (eval "$ac_try") 2>&5
12023  ac_status=$?
12024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12025  test $ac_status = 0; };
12026      then
12027	# cc works too.
12028	:
12029      else
12030	# cc exists but doesn't like -o.
12031	eval ac_cv_prog_cc_${ac_cc}_c_o=no
12032      fi
12033    fi
12034  fi
12035else
12036  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12037fi
12038rm -f core conftest*
12039
12040fi
12041if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12043$as_echo "yes" >&6; }
12044else
12045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046$as_echo "no" >&6; }
12047
12048$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12049
12050fi
12051
12052# FIXME: we rely on the cache variable name because
12053# there is no other way.
12054set dummy $CC
12055am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12056eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12057if test "$am_t" != yes; then
12058   # Losing compiler, so override with the script.
12059   # FIXME: It is wrong to rewrite CC.
12060   # But if we don't then we get into trouble of one sort or another.
12061   # A longer-term fix would be to have automake use am__CC in this case,
12062   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12063   CC="$am_aux_dir/compile $CC"
12064fi
12065
12066
12067
12068
12069# Check for docbook
12070for ac_prog in onsgmls nsgmls
12071do
12072  # Extract the first word of "$ac_prog", so it can be a program name with args.
12073set dummy $ac_prog; ac_word=$2
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075$as_echo_n "checking for $ac_word... " >&6; }
12076if ${ac_cv_prog_NSGMLS+:} false; then :
12077  $as_echo_n "(cached) " >&6
12078else
12079  if test -n "$NSGMLS"; then
12080  ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
12081else
12082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083for as_dir in $PATH
12084do
12085  IFS=$as_save_IFS
12086  test -z "$as_dir" && as_dir=.
12087    for ac_exec_ext in '' $ac_executable_extensions; do
12088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12089    ac_cv_prog_NSGMLS="$ac_prog"
12090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12091    break 2
12092  fi
12093done
12094  done
12095IFS=$as_save_IFS
12096
12097fi
12098fi
12099NSGMLS=$ac_cv_prog_NSGMLS
12100if test -n "$NSGMLS"; then
12101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
12102$as_echo "$NSGMLS" >&6; }
12103else
12104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105$as_echo "no" >&6; }
12106fi
12107
12108
12109  test -n "$NSGMLS" && break
12110done
12111
12112for ac_prog in openjade jade
12113do
12114  # Extract the first word of "$ac_prog", so it can be a program name with args.
12115set dummy $ac_prog; ac_word=$2
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117$as_echo_n "checking for $ac_word... " >&6; }
12118if ${ac_cv_prog_JADE+:} false; then :
12119  $as_echo_n "(cached) " >&6
12120else
12121  if test -n "$JADE"; then
12122  ac_cv_prog_JADE="$JADE" # Let the user override the test.
12123else
12124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $PATH
12126do
12127  IFS=$as_save_IFS
12128  test -z "$as_dir" && as_dir=.
12129    for ac_exec_ext in '' $ac_executable_extensions; do
12130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12131    ac_cv_prog_JADE="$ac_prog"
12132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133    break 2
12134  fi
12135done
12136  done
12137IFS=$as_save_IFS
12138
12139fi
12140fi
12141JADE=$ac_cv_prog_JADE
12142if test -n "$JADE"; then
12143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
12144$as_echo "$JADE" >&6; }
12145else
12146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
12148fi
12149
12150
12151  test -n "$JADE" && break
12152done
12153
12154
12155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook V4.2" >&5
12156$as_echo_n "checking for DocBook V4.2... " >&6; }
12157if ${pgac_cv_check_docbook+:} false; then :
12158  $as_echo_n "(cached) " >&6
12159else
12160  cat >conftest.sgml <<EOF
12161<!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
12162<book>
12163 <title>test</title>
12164 <chapter>
12165  <title>random</title>
12166   <sect1>
12167    <title>testsect</title>
12168    <para>text</para>
12169  </sect1>
12170 </chapter>
12171</book>
12172EOF
12173
12174pgac_cv_check_docbook=no
12175
12176if test -n "$NSGMLS"; then
12177  $NSGMLS -s conftest.sgml 1>&5 2>&1
12178  if test $? -eq 0; then
12179    pgac_cv_check_docbook=yes
12180  fi
12181fi
12182rm -f conftest.sgml
12183fi
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
12185$as_echo "$pgac_cv_check_docbook" >&6; }
12186
12187have_docbook=$pgac_cv_check_docbook
12188 if test "$pgac_cv_check_docbook" = "yes"; then
12189  can_build_docs_TRUE=
12190  can_build_docs_FALSE='#'
12191else
12192  can_build_docs_TRUE='#'
12193  can_build_docs_FALSE=
12194fi
12195
12196
12197
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook stylesheets" >&5
12199$as_echo_n "checking for DocBook stylesheets... " >&6; }
12200if ${pgac_cv_path_stylesheets+:} false; then :
12201  $as_echo_n "(cached) " >&6
12202else
12203  if test -n "$DOCBOOKSTYLE"; then
12204  pgac_cv_path_stylesheets=$DOCBOOKSTYLE
12205else
12206  for pgac_prefix in /usr /usr/local /opt /sw; do
12207    for pgac_infix in share lib; do
12208      for pgac_postfix in \
12209        sgml/stylesheets/nwalsh-modular \
12210        sgml/stylesheets/docbook \
12211        sgml/stylesheets/dsssl/docbook \
12212        sgml/docbook-dsssl \
12213        sgml/docbook/dsssl/modular \
12214        sgml/docbook/stylesheet/dsssl/modular \
12215        sgml/docbook/dsssl-stylesheets \
12216        sgml/dsssl/docbook-dsssl-nwalsh
12217      do
12218        pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
12219        if test -r "$pgac_candidate/html/docbook.dsl" \
12220           && test -r "$pgac_candidate/print/docbook.dsl"
12221        then
12222          pgac_cv_path_stylesheets=$pgac_candidate
12223          break 3
12224        fi
12225      done
12226    done
12227  done
12228fi
12229fi
12230
12231DOCBOOKSTYLE=$pgac_cv_path_stylesheets
12232
12233if test -n "$DOCBOOKSTYLE"; then
12234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOKSTYLE" >&5
12235$as_echo "$DOCBOOKSTYLE" >&6; }
12236  CATALOG="-c ${DOCBOOKSTYLE}/catalog"
12237else
12238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239$as_echo "no" >&6; }
12240  CATALOG=
12241fi
12242
12243
12244if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
12245  COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
12246
12247else
12248  # Extract the first word of "collateindex.pl", so it can be a program name with args.
12249set dummy collateindex.pl; ac_word=$2
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12251$as_echo_n "checking for $ac_word... " >&6; }
12252if ${ac_cv_path_COLLATEINDEX+:} false; then :
12253  $as_echo_n "(cached) " >&6
12254else
12255  case $COLLATEINDEX in
12256  [\\/]* | ?:[\\/]*)
12257  ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
12258  ;;
12259  *)
12260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261for as_dir in $PATH
12262do
12263  IFS=$as_save_IFS
12264  test -z "$as_dir" && as_dir=.
12265    for ac_exec_ext in '' $ac_executable_extensions; do
12266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12267    ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
12268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12269    break 2
12270  fi
12271done
12272  done
12273IFS=$as_save_IFS
12274
12275  ;;
12276esac
12277fi
12278COLLATEINDEX=$ac_cv_path_COLLATEINDEX
12279if test -n "$COLLATEINDEX"; then
12280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COLLATEINDEX" >&5
12281$as_echo "$COLLATEINDEX" >&6; }
12282else
12283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284$as_echo "no" >&6; }
12285fi
12286
12287
12288fi
12289for ac_prog in xsltproc
12290do
12291  # Extract the first word of "$ac_prog", so it can be a program name with args.
12292set dummy $ac_prog; ac_word=$2
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294$as_echo_n "checking for $ac_word... " >&6; }
12295if ${ac_cv_prog_XSLTPROC+:} false; then :
12296  $as_echo_n "(cached) " >&6
12297else
12298  if test -n "$XSLTPROC"; then
12299  ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
12300else
12301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302for as_dir in $PATH
12303do
12304  IFS=$as_save_IFS
12305  test -z "$as_dir" && as_dir=.
12306    for ac_exec_ext in '' $ac_executable_extensions; do
12307  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12308    ac_cv_prog_XSLTPROC="$ac_prog"
12309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12310    break 2
12311  fi
12312done
12313  done
12314IFS=$as_save_IFS
12315
12316fi
12317fi
12318XSLTPROC=$ac_cv_prog_XSLTPROC
12319if test -n "$XSLTPROC"; then
12320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12321$as_echo "$XSLTPROC" >&6; }
12322else
12323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324$as_echo "no" >&6; }
12325fi
12326
12327
12328  test -n "$XSLTPROC" && break
12329done
12330
12331for ac_prog in xmllint
12332do
12333  # Extract the first word of "$ac_prog", so it can be a program name with args.
12334set dummy $ac_prog; ac_word=$2
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12336$as_echo_n "checking for $ac_word... " >&6; }
12337if ${ac_cv_prog_XMLLINT+:} false; then :
12338  $as_echo_n "(cached) " >&6
12339else
12340  if test -n "$XMLLINT"; then
12341  ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
12342else
12343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344for as_dir in $PATH
12345do
12346  IFS=$as_save_IFS
12347  test -z "$as_dir" && as_dir=.
12348    for ac_exec_ext in '' $ac_executable_extensions; do
12349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12350    ac_cv_prog_XMLLINT="$ac_prog"
12351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12352    break 2
12353  fi
12354done
12355  done
12356IFS=$as_save_IFS
12357
12358fi
12359fi
12360XMLLINT=$ac_cv_prog_XMLLINT
12361if test -n "$XMLLINT"; then
12362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
12363$as_echo "$XMLLINT" >&6; }
12364else
12365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366$as_echo "no" >&6; }
12367fi
12368
12369
12370  test -n "$XMLLINT" && break
12371done
12372
12373for ac_prog in osx sgml2xml sx
12374do
12375  # Extract the first word of "$ac_prog", so it can be a program name with args.
12376set dummy $ac_prog; ac_word=$2
12377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12378$as_echo_n "checking for $ac_word... " >&6; }
12379if ${ac_cv_prog_OSX+:} false; then :
12380  $as_echo_n "(cached) " >&6
12381else
12382  if test -n "$OSX"; then
12383  ac_cv_prog_OSX="$OSX" # Let the user override the test.
12384else
12385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386for as_dir in $PATH
12387do
12388  IFS=$as_save_IFS
12389  test -z "$as_dir" && as_dir=.
12390    for ac_exec_ext in '' $ac_executable_extensions; do
12391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392    ac_cv_prog_OSX="$ac_prog"
12393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394    break 2
12395  fi
12396done
12397  done
12398IFS=$as_save_IFS
12399
12400fi
12401fi
12402OSX=$ac_cv_prog_OSX
12403if test -n "$OSX"; then
12404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5
12405$as_echo "$OSX" >&6; }
12406else
12407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408$as_echo "no" >&6; }
12409fi
12410
12411
12412  test -n "$OSX" && break
12413done
12414
12415for ac_prog in perl
12416do
12417  # Extract the first word of "$ac_prog", so it can be a program name with args.
12418set dummy $ac_prog; ac_word=$2
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420$as_echo_n "checking for $ac_word... " >&6; }
12421if ${ac_cv_prog_PERL+:} false; then :
12422  $as_echo_n "(cached) " >&6
12423else
12424  if test -n "$PERL"; then
12425  ac_cv_prog_PERL="$PERL" # Let the user override the test.
12426else
12427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12428for as_dir in $PATH
12429do
12430  IFS=$as_save_IFS
12431  test -z "$as_dir" && as_dir=.
12432    for ac_exec_ext in '' $ac_executable_extensions; do
12433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12434    ac_cv_prog_PERL="$ac_prog"
12435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12436    break 2
12437  fi
12438done
12439  done
12440IFS=$as_save_IFS
12441
12442fi
12443fi
12444PERL=$ac_cv_prog_PERL
12445if test -n "$PERL"; then
12446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12447$as_echo "$PERL" >&6; }
12448else
12449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450$as_echo "no" >&6; }
12451fi
12452
12453
12454  test -n "$PERL" && break
12455done
12456
12457for ac_prog in lynx
12458do
12459  # Extract the first word of "$ac_prog", so it can be a program name with args.
12460set dummy $ac_prog; ac_word=$2
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12462$as_echo_n "checking for $ac_word... " >&6; }
12463if ${ac_cv_prog_LYNX+:} false; then :
12464  $as_echo_n "(cached) " >&6
12465else
12466  if test -n "$LYNX"; then
12467  ac_cv_prog_LYNX="$LYNX" # Let the user override the test.
12468else
12469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12470for as_dir in $PATH
12471do
12472  IFS=$as_save_IFS
12473  test -z "$as_dir" && as_dir=.
12474    for ac_exec_ext in '' $ac_executable_extensions; do
12475  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12476    ac_cv_prog_LYNX="$ac_prog"
12477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12478    break 2
12479  fi
12480done
12481  done
12482IFS=$as_save_IFS
12483
12484fi
12485fi
12486LYNX=$ac_cv_prog_LYNX
12487if test -n "$LYNX"; then
12488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LYNX" >&5
12489$as_echo "$LYNX" >&6; }
12490else
12491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492$as_echo "no" >&6; }
12493fi
12494
12495
12496  test -n "$LYNX" && break
12497done
12498
12499for ac_prog in sunifdef
12500do
12501  # Extract the first word of "$ac_prog", so it can be a program name with args.
12502set dummy $ac_prog; ac_word=$2
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12504$as_echo_n "checking for $ac_word... " >&6; }
12505if ${ac_cv_prog_SUNIFDEF+:} false; then :
12506  $as_echo_n "(cached) " >&6
12507else
12508  if test -n "$SUNIFDEF"; then
12509  ac_cv_prog_SUNIFDEF="$SUNIFDEF" # Let the user override the test.
12510else
12511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512for as_dir in $PATH
12513do
12514  IFS=$as_save_IFS
12515  test -z "$as_dir" && as_dir=.
12516    for ac_exec_ext in '' $ac_executable_extensions; do
12517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12518    ac_cv_prog_SUNIFDEF="$ac_prog"
12519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12520    break 2
12521  fi
12522done
12523  done
12524IFS=$as_save_IFS
12525
12526fi
12527fi
12528SUNIFDEF=$ac_cv_prog_SUNIFDEF
12529if test -n "$SUNIFDEF"; then
12530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUNIFDEF" >&5
12531$as_echo "$SUNIFDEF" >&6; }
12532else
12533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534$as_echo "no" >&6; }
12535fi
12536
12537
12538  test -n "$SUNIFDEF" && break
12539done
12540
12541
12542
12543
12544 if test ! -z "$STYLE"; then
12545  STYLE_ENV_SET_TRUE=
12546  STYLE_ENV_SET_FALSE='#'
12547else
12548  STYLE_ENV_SET_TRUE='#'
12549  STYLE_ENV_SET_FALSE=
12550fi
12551
12552
12553OLD_CFLAGS=$CFLAGS
12554CFLAGS="$CFLAGS -Wall"
12555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wall option" >&5
12556$as_echo_n "checking for -Wall option... " >&6; }
12557if ${ac_cv_wall+:} false; then :
12558  $as_echo_n "(cached) " >&6
12559else
12560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561/* end confdefs.h.  */
12562
12563int
12564main ()
12565{
12566char a;
12567  ;
12568  return 0;
12569}
12570_ACEOF
12571if ac_fn_c_try_compile "$LINENO"; then :
12572  ac_cv_wall=yes
12573else
12574  ac_cv_wall=no
12575fi
12576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577fi
12578
12579echo $ac_cv_wall
12580if test $ac_cv_wall = no; then
12581   CFLAGS=$OLD_CFLAGS
12582fi
12583
12584OLD_CFLAGS=$CFLAGS
12585CFLAGS="$CFLAGS -Wmissing-prototypes"
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-prototypes option" >&5
12587$as_echo_n "checking for -Wmissing-prototypes option... " >&6; }
12588if ${ac_cv_wmissing_prototypes+:} false; then :
12589  $as_echo_n "(cached) " >&6
12590else
12591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592/* end confdefs.h.  */
12593
12594int
12595main ()
12596{
12597char a;
12598  ;
12599  return 0;
12600}
12601_ACEOF
12602if ac_fn_c_try_compile "$LINENO"; then :
12603  ac_cv_wmissing_prototypes=yes
12604else
12605  ac_cv_wmissing_prototypes=no
12606fi
12607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608fi
12609
12610echo $ac_cv_wmissing_prototypes
12611if test $ac_cv_wmissing_prototypes = no; then
12612   CFLAGS=$OLD_CFLAGS
12613fi
12614
12615
12616OLD_CFLAGS=$CFLAGS
12617CFLAGS="$CFLAGS -Wmissing-declarations"
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-declarations option" >&5
12619$as_echo_n "checking for -Wmissing-declarations option... " >&6; }
12620if ${ac_cv_wmissing_declarations+:} false; then :
12621  $as_echo_n "(cached) " >&6
12622else
12623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624/* end confdefs.h.  */
12625
12626int
12627main ()
12628{
12629char a;
12630  ;
12631  return 0;
12632}
12633_ACEOF
12634if ac_fn_c_try_compile "$LINENO"; then :
12635  ac_cv_wmissing_declarations=yes
12636else
12637  ac_cv_wmissing_declarations=no
12638fi
12639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640fi
12641
12642echo $ac_cv_wmissing_declarations
12643if test $ac_cv_wmissing_declarations = no; then
12644   CFLAGS=$OLD_CFLAGS
12645fi
12646
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
12648$as_echo_n "checking for main in -lm... " >&6; }
12649if ${ac_cv_lib_m_main+:} false; then :
12650  $as_echo_n "(cached) " >&6
12651else
12652  ac_check_lib_save_LIBS=$LIBS
12653LIBS="-lm  $LIBS"
12654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655/* end confdefs.h.  */
12656
12657
12658int
12659main ()
12660{
12661return main ();
12662  ;
12663  return 0;
12664}
12665_ACEOF
12666if ac_fn_c_try_link "$LINENO"; then :
12667  ac_cv_lib_m_main=yes
12668else
12669  ac_cv_lib_m_main=no
12670fi
12671rm -f core conftest.err conftest.$ac_objext \
12672    conftest$ac_exeext conftest.$ac_ext
12673LIBS=$ac_check_lib_save_LIBS
12674fi
12675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
12676$as_echo "$ac_cv_lib_m_main" >&6; }
12677if test "x$ac_cv_lib_m_main" = xyes; then :
12678  cat >>confdefs.h <<_ACEOF
12679#define HAVE_LIBM 1
12680_ACEOF
12681
12682  LIBS="-lm $LIBS"
12683
12684fi
12685
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
12687$as_echo_n "checking for main in -lnsl... " >&6; }
12688if ${ac_cv_lib_nsl_main+:} false; then :
12689  $as_echo_n "(cached) " >&6
12690else
12691  ac_check_lib_save_LIBS=$LIBS
12692LIBS="-lnsl  $LIBS"
12693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694/* end confdefs.h.  */
12695
12696
12697int
12698main ()
12699{
12700return main ();
12701  ;
12702  return 0;
12703}
12704_ACEOF
12705if ac_fn_c_try_link "$LINENO"; then :
12706  ac_cv_lib_nsl_main=yes
12707else
12708  ac_cv_lib_nsl_main=no
12709fi
12710rm -f core conftest.err conftest.$ac_objext \
12711    conftest$ac_exeext conftest.$ac_ext
12712LIBS=$ac_check_lib_save_LIBS
12713fi
12714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
12715$as_echo "$ac_cv_lib_nsl_main" >&6; }
12716if test "x$ac_cv_lib_nsl_main" = xyes; then :
12717  cat >>confdefs.h <<_ACEOF
12718#define HAVE_LIBNSL 1
12719_ACEOF
12720
12721  LIBS="-lnsl $LIBS"
12722
12723fi
12724
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
12726$as_echo_n "checking for main in -lsocket... " >&6; }
12727if ${ac_cv_lib_socket_main+:} false; then :
12728  $as_echo_n "(cached) " >&6
12729else
12730  ac_check_lib_save_LIBS=$LIBS
12731LIBS="-lsocket  $LIBS"
12732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733/* end confdefs.h.  */
12734
12735
12736int
12737main ()
12738{
12739return main ();
12740  ;
12741  return 0;
12742}
12743_ACEOF
12744if ac_fn_c_try_link "$LINENO"; then :
12745  ac_cv_lib_socket_main=yes
12746else
12747  ac_cv_lib_socket_main=no
12748fi
12749rm -f core conftest.err conftest.$ac_objext \
12750    conftest$ac_exeext conftest.$ac_ext
12751LIBS=$ac_check_lib_save_LIBS
12752fi
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
12754$as_echo "$ac_cv_lib_socket_main" >&6; }
12755if test "x$ac_cv_lib_socket_main" = xyes; then :
12756  cat >>confdefs.h <<_ACEOF
12757#define HAVE_LIBSOCKET 1
12758_ACEOF
12759
12760  LIBS="-lsocket $LIBS"
12761
12762fi
12763
12764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lipc" >&5
12765$as_echo_n "checking for main in -lipc... " >&6; }
12766if ${ac_cv_lib_ipc_main+:} false; then :
12767  $as_echo_n "(cached) " >&6
12768else
12769  ac_check_lib_save_LIBS=$LIBS
12770LIBS="-lipc  $LIBS"
12771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772/* end confdefs.h.  */
12773
12774
12775int
12776main ()
12777{
12778return main ();
12779  ;
12780  return 0;
12781}
12782_ACEOF
12783if ac_fn_c_try_link "$LINENO"; then :
12784  ac_cv_lib_ipc_main=yes
12785else
12786  ac_cv_lib_ipc_main=no
12787fi
12788rm -f core conftest.err conftest.$ac_objext \
12789    conftest$ac_exeext conftest.$ac_ext
12790LIBS=$ac_check_lib_save_LIBS
12791fi
12792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_main" >&5
12793$as_echo "$ac_cv_lib_ipc_main" >&6; }
12794if test "x$ac_cv_lib_ipc_main" = xyes; then :
12795  cat >>confdefs.h <<_ACEOF
12796#define HAVE_LIBIPC 1
12797_ACEOF
12798
12799  LIBS="-lipc $LIBS"
12800
12801fi
12802
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lIPC" >&5
12804$as_echo_n "checking for main in -lIPC... " >&6; }
12805if ${ac_cv_lib_IPC_main+:} false; then :
12806  $as_echo_n "(cached) " >&6
12807else
12808  ac_check_lib_save_LIBS=$LIBS
12809LIBS="-lIPC  $LIBS"
12810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811/* end confdefs.h.  */
12812
12813
12814int
12815main ()
12816{
12817return main ();
12818  ;
12819  return 0;
12820}
12821_ACEOF
12822if ac_fn_c_try_link "$LINENO"; then :
12823  ac_cv_lib_IPC_main=yes
12824else
12825  ac_cv_lib_IPC_main=no
12826fi
12827rm -f core conftest.err conftest.$ac_objext \
12828    conftest$ac_exeext conftest.$ac_ext
12829LIBS=$ac_check_lib_save_LIBS
12830fi
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_IPC_main" >&5
12832$as_echo "$ac_cv_lib_IPC_main" >&6; }
12833if test "x$ac_cv_lib_IPC_main" = xyes; then :
12834  cat >>confdefs.h <<_ACEOF
12835#define HAVE_LIBIPC 1
12836_ACEOF
12837
12838  LIBS="-lIPC $LIBS"
12839
12840fi
12841
12842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llc" >&5
12843$as_echo_n "checking for main in -llc... " >&6; }
12844if ${ac_cv_lib_lc_main+:} false; then :
12845  $as_echo_n "(cached) " >&6
12846else
12847  ac_check_lib_save_LIBS=$LIBS
12848LIBS="-llc  $LIBS"
12849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850/* end confdefs.h.  */
12851
12852
12853int
12854main ()
12855{
12856return main ();
12857  ;
12858  return 0;
12859}
12860_ACEOF
12861if ac_fn_c_try_link "$LINENO"; then :
12862  ac_cv_lib_lc_main=yes
12863else
12864  ac_cv_lib_lc_main=no
12865fi
12866rm -f core conftest.err conftest.$ac_objext \
12867    conftest$ac_exeext conftest.$ac_ext
12868LIBS=$ac_check_lib_save_LIBS
12869fi
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lc_main" >&5
12871$as_echo "$ac_cv_lib_lc_main" >&6; }
12872if test "x$ac_cv_lib_lc_main" = xyes; then :
12873  cat >>confdefs.h <<_ACEOF
12874#define HAVE_LIBLC 1
12875_ACEOF
12876
12877  LIBS="-llc $LIBS"
12878
12879fi
12880
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lBSD" >&5
12882$as_echo_n "checking for main in -lBSD... " >&6; }
12883if ${ac_cv_lib_BSD_main+:} false; then :
12884  $as_echo_n "(cached) " >&6
12885else
12886  ac_check_lib_save_LIBS=$LIBS
12887LIBS="-lBSD  $LIBS"
12888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889/* end confdefs.h.  */
12890
12891
12892int
12893main ()
12894{
12895return main ();
12896  ;
12897  return 0;
12898}
12899_ACEOF
12900if ac_fn_c_try_link "$LINENO"; then :
12901  ac_cv_lib_BSD_main=yes
12902else
12903  ac_cv_lib_BSD_main=no
12904fi
12905rm -f core conftest.err conftest.$ac_objext \
12906    conftest$ac_exeext conftest.$ac_ext
12907LIBS=$ac_check_lib_save_LIBS
12908fi
12909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_BSD_main" >&5
12910$as_echo "$ac_cv_lib_BSD_main" >&6; }
12911if test "x$ac_cv_lib_BSD_main" = xyes; then :
12912  cat >>confdefs.h <<_ACEOF
12913#define HAVE_LIBBSD 1
12914_ACEOF
12915
12916  LIBS="-lBSD $LIBS"
12917
12918fi
12919
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
12921$as_echo_n "checking for main in -lgen... " >&6; }
12922if ${ac_cv_lib_gen_main+:} false; then :
12923  $as_echo_n "(cached) " >&6
12924else
12925  ac_check_lib_save_LIBS=$LIBS
12926LIBS="-lgen  $LIBS"
12927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928/* end confdefs.h.  */
12929
12930
12931int
12932main ()
12933{
12934return main ();
12935  ;
12936  return 0;
12937}
12938_ACEOF
12939if ac_fn_c_try_link "$LINENO"; then :
12940  ac_cv_lib_gen_main=yes
12941else
12942  ac_cv_lib_gen_main=no
12943fi
12944rm -f core conftest.err conftest.$ac_objext \
12945    conftest$ac_exeext conftest.$ac_ext
12946LIBS=$ac_check_lib_save_LIBS
12947fi
12948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
12949$as_echo "$ac_cv_lib_gen_main" >&6; }
12950if test "x$ac_cv_lib_gen_main" = xyes; then :
12951  cat >>confdefs.h <<_ACEOF
12952#define HAVE_LIBGEN 1
12953_ACEOF
12954
12955  LIBS="-lgen $LIBS"
12956
12957fi
12958
12959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lPW" >&5
12960$as_echo_n "checking for main in -lPW... " >&6; }
12961if ${ac_cv_lib_PW_main+:} false; then :
12962  $as_echo_n "(cached) " >&6
12963else
12964  ac_check_lib_save_LIBS=$LIBS
12965LIBS="-lPW  $LIBS"
12966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12967/* end confdefs.h.  */
12968
12969
12970int
12971main ()
12972{
12973return main ();
12974  ;
12975  return 0;
12976}
12977_ACEOF
12978if ac_fn_c_try_link "$LINENO"; then :
12979  ac_cv_lib_PW_main=yes
12980else
12981  ac_cv_lib_PW_main=no
12982fi
12983rm -f core conftest.err conftest.$ac_objext \
12984    conftest$ac_exeext conftest.$ac_ext
12985LIBS=$ac_check_lib_save_LIBS
12986fi
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_PW_main" >&5
12988$as_echo "$ac_cv_lib_PW_main" >&6; }
12989if test "x$ac_cv_lib_PW_main" = xyes; then :
12990  cat >>confdefs.h <<_ACEOF
12991#define HAVE_LIBPW 1
12992_ACEOF
12993
12994  LIBS="-lPW $LIBS"
12995
12996fi
12997
12998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
12999$as_echo_n "checking for main in -lresolv... " >&6; }
13000if ${ac_cv_lib_resolv_main+:} false; then :
13001  $as_echo_n "(cached) " >&6
13002else
13003  ac_check_lib_save_LIBS=$LIBS
13004LIBS="-lresolv  $LIBS"
13005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006/* end confdefs.h.  */
13007
13008
13009int
13010main ()
13011{
13012return main ();
13013  ;
13014  return 0;
13015}
13016_ACEOF
13017if ac_fn_c_try_link "$LINENO"; then :
13018  ac_cv_lib_resolv_main=yes
13019else
13020  ac_cv_lib_resolv_main=no
13021fi
13022rm -f core conftest.err conftest.$ac_objext \
13023    conftest$ac_exeext conftest.$ac_ext
13024LIBS=$ac_check_lib_save_LIBS
13025fi
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
13027$as_echo "$ac_cv_lib_resolv_main" >&6; }
13028if test "x$ac_cv_lib_resolv_main" = xyes; then :
13029  cat >>confdefs.h <<_ACEOF
13030#define HAVE_LIBRESOLV 1
13031_ACEOF
13032
13033  LIBS="-lresolv $LIBS"
13034
13035fi
13036
13037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
13038$as_echo_n "checking for main in -lcrypt... " >&6; }
13039if ${ac_cv_lib_crypt_main+:} false; then :
13040  $as_echo_n "(cached) " >&6
13041else
13042  ac_check_lib_save_LIBS=$LIBS
13043LIBS="-lcrypt  $LIBS"
13044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045/* end confdefs.h.  */
13046
13047
13048int
13049main ()
13050{
13051return main ();
13052  ;
13053  return 0;
13054}
13055_ACEOF
13056if ac_fn_c_try_link "$LINENO"; then :
13057  ac_cv_lib_crypt_main=yes
13058else
13059  ac_cv_lib_crypt_main=no
13060fi
13061rm -f core conftest.err conftest.$ac_objext \
13062    conftest$ac_exeext conftest.$ac_ext
13063LIBS=$ac_check_lib_save_LIBS
13064fi
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
13066$as_echo "$ac_cv_lib_crypt_main" >&6; }
13067if test "x$ac_cv_lib_crypt_main" = xyes; then :
13068  cat >>confdefs.h <<_ACEOF
13069#define HAVE_LIBCRYPT 1
13070_ACEOF
13071
13072  LIBS="-lcrypt $LIBS"
13073
13074fi
13075
13076
13077for ac_func in strlcat, strlcpy
13078do :
13079  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13080ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13081if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13082  cat >>confdefs.h <<_ACEOF
13083#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13084_ACEOF
13085
13086fi
13087done
13088
13089
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13091$as_echo_n "checking for ANSI C header files... " >&6; }
13092if ${ac_cv_header_stdc+:} false; then :
13093  $as_echo_n "(cached) " >&6
13094else
13095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096/* end confdefs.h.  */
13097#include <stdlib.h>
13098#include <stdarg.h>
13099#include <string.h>
13100#include <float.h>
13101
13102int
13103main ()
13104{
13105
13106  ;
13107  return 0;
13108}
13109_ACEOF
13110if ac_fn_c_try_compile "$LINENO"; then :
13111  ac_cv_header_stdc=yes
13112else
13113  ac_cv_header_stdc=no
13114fi
13115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13116
13117if test $ac_cv_header_stdc = yes; then
13118  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120/* end confdefs.h.  */
13121#include <string.h>
13122
13123_ACEOF
13124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13125  $EGREP "memchr" >/dev/null 2>&1; then :
13126
13127else
13128  ac_cv_header_stdc=no
13129fi
13130rm -f conftest*
13131
13132fi
13133
13134if test $ac_cv_header_stdc = yes; then
13135  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137/* end confdefs.h.  */
13138#include <stdlib.h>
13139
13140_ACEOF
13141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13142  $EGREP "free" >/dev/null 2>&1; then :
13143
13144else
13145  ac_cv_header_stdc=no
13146fi
13147rm -f conftest*
13148
13149fi
13150
13151if test $ac_cv_header_stdc = yes; then
13152  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13153  if test "$cross_compiling" = yes; then :
13154  :
13155else
13156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157/* end confdefs.h.  */
13158#include <ctype.h>
13159#include <stdlib.h>
13160#if ((' ' & 0x0FF) == 0x020)
13161# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13162# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13163#else
13164# define ISLOWER(c) \
13165		   (('a' <= (c) && (c) <= 'i') \
13166		     || ('j' <= (c) && (c) <= 'r') \
13167		     || ('s' <= (c) && (c) <= 'z'))
13168# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13169#endif
13170
13171#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13172int
13173main ()
13174{
13175  int i;
13176  for (i = 0; i < 256; i++)
13177    if (XOR (islower (i), ISLOWER (i))
13178	|| toupper (i) != TOUPPER (i))
13179      return 2;
13180  return 0;
13181}
13182_ACEOF
13183if ac_fn_c_try_run "$LINENO"; then :
13184
13185else
13186  ac_cv_header_stdc=no
13187fi
13188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13189  conftest.$ac_objext conftest.beam conftest.$ac_ext
13190fi
13191
13192fi
13193fi
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13195$as_echo "$ac_cv_header_stdc" >&6; }
13196if test $ac_cv_header_stdc = yes; then
13197
13198$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13199
13200fi
13201
13202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13203$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13204if ${ac_cv_header_sys_wait_h+:} false; then :
13205  $as_echo_n "(cached) " >&6
13206else
13207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208/* end confdefs.h.  */
13209#include <sys/types.h>
13210#include <sys/wait.h>
13211#ifndef WEXITSTATUS
13212# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13213#endif
13214#ifndef WIFEXITED
13215# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13216#endif
13217
13218int
13219main ()
13220{
13221  int s;
13222  wait (&s);
13223  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13224  ;
13225  return 0;
13226}
13227_ACEOF
13228if ac_fn_c_try_compile "$LINENO"; then :
13229  ac_cv_header_sys_wait_h=yes
13230else
13231  ac_cv_header_sys_wait_h=no
13232fi
13233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13234fi
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13236$as_echo "$ac_cv_header_sys_wait_h" >&6; }
13237if test $ac_cv_header_sys_wait_h = yes; then
13238
13239$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13240
13241fi
13242
13243for ac_header in fcntl.h unistd.h getopt.h netinet/tcp.h netinet/in.h netdb.h sys/param.h sys/types.h sys/socket.h sys/un.h sys/time.h sys/sem.h sys/shm.h sys/select.h crypt.h sys/pstat.h
13244do :
13245  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13246ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13247if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13248  cat >>confdefs.h <<_ACEOF
13249#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13250_ACEOF
13251
13252fi
13253
13254done
13255
13256ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
13257if test "x$ac_cv_header_termios_h" = xyes; then :
13258
13259$as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
13260
13261fi
13262
13263
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13265$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13266if ${ac_cv_c_const+:} false; then :
13267  $as_echo_n "(cached) " >&6
13268else
13269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270/* end confdefs.h.  */
13271
13272int
13273main ()
13274{
13275
13276#ifndef __cplusplus
13277  /* Ultrix mips cc rejects this sort of thing.  */
13278  typedef int charset[2];
13279  const charset cs = { 0, 0 };
13280  /* SunOS 4.1.1 cc rejects this.  */
13281  char const *const *pcpcc;
13282  char **ppc;
13283  /* NEC SVR4.0.2 mips cc rejects this.  */
13284  struct point {int x, y;};
13285  static struct point const zero = {0,0};
13286  /* AIX XL C 1.02.0.0 rejects this.
13287     It does not let you subtract one const X* pointer from another in
13288     an arm of an if-expression whose if-part is not a constant
13289     expression */
13290  const char *g = "string";
13291  pcpcc = &g + (g ? g-g : 0);
13292  /* HPUX 7.0 cc rejects these. */
13293  ++pcpcc;
13294  ppc = (char**) pcpcc;
13295  pcpcc = (char const *const *) ppc;
13296  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13297    char tx;
13298    char *t = &tx;
13299    char const *s = 0 ? (char *) 0 : (char const *) 0;
13300
13301    *t++ = 0;
13302    if (s) return 0;
13303  }
13304  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13305    int x[] = {25, 17};
13306    const int *foo = &x[0];
13307    ++foo;
13308  }
13309  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13310    typedef const int *iptr;
13311    iptr p = 0;
13312    ++p;
13313  }
13314  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13315       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13316    struct s { int j; const int *ap[3]; } bx;
13317    struct s *b = &bx; b->j = 5;
13318  }
13319  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13320    const int foo = 10;
13321    if (!foo) return 0;
13322  }
13323  return !cs[0] && !zero.x;
13324#endif
13325
13326  ;
13327  return 0;
13328}
13329_ACEOF
13330if ac_fn_c_try_compile "$LINENO"; then :
13331  ac_cv_c_const=yes
13332else
13333  ac_cv_c_const=no
13334fi
13335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13336fi
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13338$as_echo "$ac_cv_c_const" >&6; }
13339if test $ac_cv_c_const = no; then
13340
13341$as_echo "#define const /**/" >>confdefs.h
13342
13343fi
13344
13345ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13346if test "x$ac_cv_type_pid_t" = xyes; then :
13347
13348else
13349
13350cat >>confdefs.h <<_ACEOF
13351#define pid_t int
13352_ACEOF
13353
13354fi
13355
13356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13357$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13358if ${ac_cv_header_time+:} false; then :
13359  $as_echo_n "(cached) " >&6
13360else
13361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362/* end confdefs.h.  */
13363#include <sys/types.h>
13364#include <sys/time.h>
13365#include <time.h>
13366
13367int
13368main ()
13369{
13370if ((struct tm *) 0)
13371return 0;
13372  ;
13373  return 0;
13374}
13375_ACEOF
13376if ac_fn_c_try_compile "$LINENO"; then :
13377  ac_cv_header_time=yes
13378else
13379  ac_cv_header_time=no
13380fi
13381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382fi
13383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13384$as_echo "$ac_cv_header_time" >&6; }
13385if test $ac_cv_header_time = yes; then
13386
13387$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13388
13389fi
13390
13391
13392
13393# Macros to detect C compiler features
13394# config/c-compiler.m4
13395
13396
13397# PGAC_C_SIGNED
13398# -------------
13399# Check if the C compiler understands signed types.
13400# PGAC_C_SIGNED
13401
13402
13403
13404# PGAC_C_PRINTF_ARCHETYPE
13405# -----------------------
13406# Select the format archetype to be used by gcc to check printf-type functions.
13407# We prefer "gnu_printf", as that most closely matches the features supported
13408# by src/port/snprintf.c (particularly the %m conversion spec).  However,
13409# on some NetBSD versions, that doesn't work while "__syslog__" does.
13410# If all else fails, use "printf".
13411# PGAC_PRINTF_ARCHETYPE
13412
13413# Subroutine: test $pgac_cv_printf_archetype, set $ac_archetype_ok to yes or no
13414# PGAC_TEST_PRINTF_ARCHETYPE
13415
13416
13417# PGAC_TYPE_64BIT_INT(TYPE)
13418# -------------------------
13419# Check if TYPE is a working 64 bit integer type. Set HAVE_TYPE_64 to
13420# yes or no respectively, and define HAVE_TYPE_64 if yes.
13421# PGAC_TYPE_64BIT_INT
13422
13423
13424# PGAC_TYPE_128BIT_INT
13425# ---------------------
13426# Check if __int128 is a working 128 bit integer type, and if so
13427# define PG_INT128_TYPE to that typename, and define ALIGNOF_PG_INT128_TYPE
13428# as its alignment requirement.
13429#
13430# This currently only detects a GCC/clang extension, but support for other
13431# environments may be added in the future.
13432#
13433# For the moment we only test for support for 128bit math; support for
13434# 128bit literals and snprintf is not required.
13435# PGAC_TYPE_128BIT_INT
13436
13437
13438# PGAC_C_FUNCNAME_SUPPORT
13439# -----------------------
13440# Check if the C compiler understands __func__ (C99) or __FUNCTION__ (gcc).
13441# Define HAVE_FUNCNAME__FUNC or HAVE_FUNCNAME__FUNCTION accordingly.
13442# PGAC_C_FUNCNAME_SUPPORT
13443
13444
13445
13446# PGAC_C_STATIC_ASSERT
13447# --------------------
13448# Check if the C compiler understands _Static_assert(),
13449# and define HAVE__STATIC_ASSERT if so.
13450#
13451# We actually check the syntax ({ _Static_assert(...) }), because we need
13452# gcc-style compound expressions to be able to wrap the thing into macros.
13453# PGAC_C_STATIC_ASSERT
13454
13455
13456
13457# PGAC_C_TYPEOF
13458# -------------
13459# Check if the C compiler understands typeof or a variant.  Define
13460# HAVE_TYPEOF if so, and define 'typeof' to the actual key word.
13461#
13462# PGAC_C_TYPEOF
13463
13464
13465
13466# PGAC_C_TYPES_COMPATIBLE
13467# -----------------------
13468# Check if the C compiler understands __builtin_types_compatible_p,
13469# and define HAVE__BUILTIN_TYPES_COMPATIBLE_P if so.
13470#
13471# We check usage with __typeof__, though it's unlikely any compiler would
13472# have the former and not the latter.
13473# PGAC_C_TYPES_COMPATIBLE
13474
13475
13476# PGAC_C_BUILTIN_CONSTANT_P
13477# -------------------------
13478# Check if the C compiler understands __builtin_constant_p(),
13479# and define HAVE__BUILTIN_CONSTANT_P if so.
13480# We need __builtin_constant_p("string literal") to be true, but some older
13481# compilers don't think that, so test for that case explicitly.
13482# PGAC_C_BUILTIN_CONSTANT_P
13483
13484
13485
13486# PGAC_C_BUILTIN_OP_OVERFLOW
13487# -------------------------
13488# Check if the C compiler understands __builtin_$op_overflow(),
13489# and define HAVE__BUILTIN_OP_OVERFLOW if so.
13490#
13491# Check for the most complicated case, 64 bit multiplication, as a
13492# proxy for all of the operations.  To detect the case where the compiler
13493# knows the function but library support is missing, we must link not just
13494# compile, and store the results in global variables so the compiler doesn't
13495# optimize away the call.
13496# PGAC_C_BUILTIN_OP_OVERFLOW
13497
13498
13499
13500# PGAC_C_BUILTIN_UNREACHABLE
13501# --------------------------
13502# Check if the C compiler understands __builtin_unreachable(),
13503# and define HAVE__BUILTIN_UNREACHABLE if so.
13504#
13505# NB: Don't get the idea of putting a for(;;); or such before the
13506# __builtin_unreachable() call.  Some compilers would remove it before linking
13507# and only a warning instead of an error would be produced.
13508# PGAC_C_BUILTIN_UNREACHABLE
13509
13510
13511
13512# PGAC_C_COMPUTED_GOTO
13513# -----------------------
13514# Check if the C compiler knows computed gotos (gcc extension, also
13515# available in at least clang).  If so, define HAVE_COMPUTED_GOTO.
13516#
13517# Checking whether computed gotos are supported syntax-wise ought to
13518# be enough, as the syntax is otherwise illegal.
13519# PGAC_C_COMPUTED_GOTO
13520
13521
13522
13523# PGAC_CHECK_BUILTIN_FUNC
13524# -----------------------
13525# This is similar to AC_CHECK_FUNCS(), except that it will work for compiler
13526# builtin functions, as that usually fails to.
13527# The first argument is the function name, eg [__builtin_clzl], and the
13528# second is its argument list, eg [unsigned long x].  The current coding
13529# works only for a single argument named x; we might generalize that later.
13530# It's assumed that the function's result type is coercible to int.
13531# On success, we define "HAVEfuncname" (there's usually more than enough
13532# underscores already, so we don't add another one).
13533# PGAC_CHECK_BUILTIN_FUNC
13534
13535
13536
13537# PGAC_PROG_VARCC_VARFLAGS_OPT
13538# -----------------------
13539# Given a compiler, variable name and a string, check if the compiler
13540# supports the string as a command-line option. If it does, add the
13541# string to the given variable.
13542# PGAC_PROG_VARCC_VARFLAGS_OPT
13543
13544
13545
13546# PGAC_PROG_CC_CFLAGS_OPT
13547# -----------------------
13548# Given a string, check if the compiler supports the string as a
13549# command-line option. If it does, add the string to CFLAGS.
13550# PGAC_PROG_CC_CFLAGS_OPT
13551
13552
13553
13554# PGAC_PROG_CC_VAR_OPT
13555# -----------------------
13556# Given a variable name and a string, check if the compiler supports
13557# the string as a command-line option. If it does, add the string to
13558# the given variable.
13559# PGAC_PROG_CC_VAR_OPT
13560
13561
13562
13563# PGAC_PROG_VARCXX_VARFLAGS_OPT
13564# -----------------------
13565# Given a compiler, variable name and a string, check if the compiler
13566# supports the string as a command-line option. If it does, add the
13567# string to the given variable.
13568# PGAC_PROG_VARCXX_VARFLAGS_OPT
13569
13570
13571
13572# PGAC_PROG_CXX_CFLAGS_OPT
13573# -----------------------
13574# Given a string, check if the compiler supports the string as a
13575# command-line option. If it does, add the string to CXXFLAGS.
13576# PGAC_PROG_CXX_VAR_OPT
13577
13578
13579
13580# PGAC_PROG_CC_LDFLAGS_OPT
13581# ------------------------
13582# Given a string, check if the compiler supports the string as a
13583# command-line option. If it does, add the string to LDFLAGS.
13584# For reasons you'd really rather not know about, this checks whether
13585# you can link to a particular function, not just whether you can link.
13586# In fact, we must actually check that the resulting program runs :-(
13587# PGAC_PROG_CC_LDFLAGS_OPT
13588
13589# PGAC_HAVE_GCC__SYNC_CHAR_TAS
13590# -------------------------
13591# Check if the C compiler understands __sync_lock_test_and_set(char),
13592# and define HAVE_GCC__SYNC_CHAR_TAS
13593#
13594# NB: There are platforms where test_and_set is available but compare_and_swap
13595# is not, so test this separately.
13596# NB: Some platforms only do 32bit tas, others only do 8bit tas. Test both.
13597# PGAC_HAVE_GCC__SYNC_CHAR_TAS
13598
13599# PGAC_HAVE_GCC__SYNC_INT32_TAS
13600# -------------------------
13601# Check if the C compiler understands __sync_lock_test_and_set(),
13602# and define HAVE_GCC__SYNC_INT32_TAS
13603# PGAC_HAVE_GCC__SYNC_INT32_TAS
13604
13605# PGAC_HAVE_GCC__SYNC_INT32_CAS
13606# -------------------------
13607# Check if the C compiler understands __sync_compare_and_swap() for 32bit
13608# types, and define HAVE_GCC__SYNC_INT32_CAS if so.
13609# PGAC_HAVE_GCC__SYNC_INT32_CAS
13610
13611# PGAC_HAVE_GCC__SYNC_INT64_CAS
13612# -------------------------
13613# Check if the C compiler understands __sync_compare_and_swap() for 64bit
13614# types, and define HAVE_GCC__SYNC_INT64_CAS if so.
13615# PGAC_HAVE_GCC__SYNC_INT64_CAS
13616
13617# PGAC_HAVE_GCC__ATOMIC_INT32_CAS
13618# -------------------------
13619# Check if the C compiler understands __atomic_compare_exchange_n() for 32bit
13620# types, and define HAVE_GCC__ATOMIC_INT32_CAS if so.
13621# PGAC_HAVE_GCC__ATOMIC_INT32_CAS
13622
13623# PGAC_HAVE_GCC__ATOMIC_INT64_CAS
13624# -------------------------
13625# Check if the C compiler understands __atomic_compare_exchange_n() for 64bit
13626# types, and define HAVE_GCC__ATOMIC_INT64_CAS if so.
13627# PGAC_HAVE_GCC__ATOMIC_INT64_CAS
13628
13629# PGAC_SSE42_CRC32_INTRINSICS
13630# -----------------------
13631# Check if the compiler supports the x86 CRC instructions added in SSE 4.2,
13632# using the _mm_crc32_u8 and _mm_crc32_u32 intrinsic functions. (We don't
13633# test the 8-byte variant, _mm_crc32_u64, but it is assumed to be present if
13634# the other ones are, on x86-64 platforms)
13635#
13636# An optional compiler flag can be passed as argument (e.g. -msse4.2). If the
13637# intrinsics are supported, sets pgac_sse42_crc32_intrinsics, and CFLAGS_SSE42.
13638# PGAC_SSE42_CRC32_INTRINSICS
13639
13640
13641# PGAC_ARMV8_CRC32C_INTRINSICS
13642# -----------------------
13643# Check if the compiler supports the CRC32C instructions using the __crc32cb,
13644# __crc32ch, __crc32cw, and __crc32cd intrinsic functions. These instructions
13645# were first introduced in ARMv8 in the optional CRC Extension, and became
13646# mandatory in ARMv8.1.
13647#
13648# An optional compiler flag can be passed as argument (e.g.
13649# -march=armv8-a+crc). If the intrinsics are supported, sets
13650# pgac_armv8_crc32c_intrinsics, and CFLAGS_ARMV8_CRC32C.
13651# PGAC_ARMV8_CRC32C_INTRINSICS
13652
13653# Macros that test various C library quirks
13654# $PostgreSQL: pgsql/config/c-library.m4,v 1.33 2008/08/21 13:53:28 petere Exp $
13655
13656
13657# PGAC_VAR_INT_TIMEZONE
13658# ---------------------
13659# Check if the global variable `timezone' exists. If so, define
13660# HAVE_INT_TIMEZONE.
13661# PGAC_VAR_INT_TIMEZONE
13662
13663
13664# PGAC_STRUCT_TIMEZONE
13665# ------------------
13666# Figure out how to get the current timezone.  If `struct tm' has a
13667# `tm_zone' member, define `HAVE_TM_ZONE'.  Also, if the
13668# external array `tzname' is found, define `HAVE_TZNAME'.
13669# This is the same as the standard macro AC_STRUCT_TIMEZONE, except that
13670# tzname[] is checked for regardless of whether we find tm_zone.
13671# PGAC_STRUCT_TIMEZONE
13672
13673
13674# PGAC_FUNC_GETTIMEOFDAY_1ARG
13675# ---------------------------
13676# Check if gettimeofday() has only one arguments. (Normal is two.)
13677# If so, define GETTIMEOFDAY_1ARG.
13678# PGAC_FUNC_GETTIMEOFDAY_1ARG
13679
13680
13681# PGAC_FUNC_GETPWUID_R_5ARG
13682# ---------------------------
13683# Check if getpwuid_r() takes a fifth argument (later POSIX standard, not draft version)
13684# If so, define GETPWUID_R_5ARG
13685# PGAC_FUNC_GETPWUID_R_5ARG
13686
13687
13688# PGAC_FUNC_STRERROR_R_INT
13689# ---------------------------
13690# Check if strerror_r() returns an int (SUSv3) rather than a char * (GNU libc)
13691# If so, define STRERROR_R_INT
13692# PGAC_FUNC_STRERROR_R_INT
13693
13694
13695# PGAC_UNION_SEMUN
13696# ----------------
13697# Check if `union semun' exists. Define HAVE_UNION_SEMUN if so.
13698# If it doesn't then one could define it as
13699# union semun { int val; struct semid_ds *buf; unsigned short *array; }
13700# PGAC_UNION_SEMUN
13701
13702
13703# PGAC_STRUCT_SOCKADDR_UN
13704# -----------------------
13705# If `struct sockaddr_un' exists, define HAVE_UNIX_SOCKETS.
13706# (Requires test for <sys/un.h>!)
13707# PGAC_STRUCT_SOCKADDR_UN
13708
13709
13710# PGAC_STRUCT_SOCKADDR_STORAGE
13711# ----------------------------
13712# If `struct sockaddr_storage' exists, define HAVE_STRUCT_SOCKADDR_STORAGE.
13713# If it is missing then one could define it.
13714# PGAC_STRUCT_SOCKADDR_STORAGE
13715
13716# PGAC_STRUCT_SOCKADDR_STORAGE_MEMBERS
13717# --------------------------------------
13718# Check the members of `struct sockaddr_storage'.  We need to know about
13719# ss_family and ss_len.  (Some platforms follow RFC 2553 and call them
13720# __ss_family and __ss_len.)  We also check struct sockaddr's sa_len;
13721# if we have to define our own `struct sockaddr_storage', this tells us
13722# whether we need to provide an ss_len field.
13723# PGAC_STRUCT_SOCKADDR_STORAGE_MEMBERS
13724
13725
13726# PGAC_STRUCT_ADDRINFO
13727# -----------------------
13728# If `struct addrinfo' exists, define HAVE_STRUCT_ADDRINFO.
13729# PGAC_STRUCT_ADDRINFO
13730
13731
13732# PGAC_FUNC_POSIX_SIGNALS
13733# -----------------------
13734# Check to see if the machine has the POSIX signal interface. Define
13735# HAVE_POSIX_SIGNALS if so. Also set the output variable HAVE_POSIX_SIGNALS
13736# to yes or no.
13737#
13738# Note that this test only compiles a test program, it doesn't check
13739# whether the routines actually work. If that becomes a problem, make
13740# a fancier check.
13741# PGAC_FUNC_POSIX_SIGNALS
13742
13743
13744# PGAC_FUNC_SNPRINTF_LONG_LONG_INT_FORMAT
13745# ---------------------------------------
13746# Determine which format snprintf uses for long long int.  We handle
13747# %lld, %qd, %I64d.  The result is in shell variable
13748# LONG_LONG_INT_FORMAT.
13749#
13750# MinGW uses '%I64d', though gcc throws an warning with -Wall,
13751# while '%lld' doesn't generate a warning, but doesn't work.
13752#
13753# PGAC_FUNC_SNPRINTF_LONG_LONG_INT_FORMAT
13754
13755
13756# PGAC_FUNC_PRINTF_ARG_CONTROL
13757# ---------------------------------------
13758# Determine if printf supports %1$ argument selection, e.g. %5$ selects
13759# the fifth argument after the printf print string.
13760# This is not in the C99 standard, but in the Single Unix Specification (SUS).
13761# It is used in our language translation strings.
13762#
13763# PGAC_FUNC_PRINTF_ARG_CONTROL
13764
13765
13766# backport from Autoconf 2.61a
13767# http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=f0c325537a22105536ac8c4e88656e50f9946486
13768
13769# AC_FUNC_FSEEKO
13770# --------------
13771
13772
13773# AC_FUNC_FSEEKO
13774
13775# $PostgreSQL: pgsql/config/general.m4,v 1.10 2008/10/29 09:27:24 petere Exp $
13776
13777# This file defines new macros to process configure command line
13778# arguments, to replace the brain-dead AC_ARG_WITH and AC_ARG_ENABLE.
13779# The flaw in these is particularly that they only differentiate
13780# between "given" and "not given" and do not provide enough help to
13781# process arguments that only accept "yes/no", that require an
13782# argument (other than "yes/no"), etc.
13783#
13784# The point of this implementation is to reduce code size and
13785# redundancy in configure.in and to improve robustness and consistency
13786# in the option evaluation code.
13787
13788
13789# Convert type and name to shell variable name (e.g., "enable_long_strings")
13790
13791
13792
13793# PGAC_ARG(TYPE, NAME, HELP-STRING-LHS-EXTRA, HELP-STRING-RHS,
13794#          [ACTION-IF-YES], [ACTION-IF-NO], [ACTION-IF-ARG],
13795#          [ACTION-IF-OMITTED])
13796# ------------------------------------------------------------
13797# This is the base layer. TYPE is either "with" or "enable", depending
13798# on what you like.  NAME is the rest of the option name.
13799# HELP-STRING-LHS-EXTRA is a string to append to the option name on
13800# the left-hand side of the help output, e.g., an argument name.  If
13801# set to "-", append nothing, but let the option appear in the
13802# negative form (disable/without).  HELP-STRING-RHS is the option
13803# description, for the right-hand side of the help output.
13804# ACTION-IF-YES is executed if the option is given without an argument
13805# (or "yes", which is the same); similar for ACTION-IF-NO.
13806
13807# PGAC_ARG
13808
13809# PGAC_ARG_CHECK()
13810# ----------------
13811# Checks if the user passed any --with/without/enable/disable
13812# arguments that were not defined. Just prints out a warning message,
13813# so this should be called near the end, so the user will see it.
13814
13815# PGAC_ARG_CHECK
13816
13817# PGAC_ARG_BOOL(TYPE, NAME, DEFAULT, HELP-STRING-RHS,
13818#               [ACTION-IF-YES], [ACTION-IF-NO])
13819# ---------------------------------------------------
13820# Accept a boolean option, that is, one that only takes yes or no.
13821# ("no" is equivalent to "disable" or "without"). DEFAULT is what
13822# should be done if the option is omitted; it should be "yes" or "no".
13823# (Consequently, one of ACTION-IF-YES and ACTION-IF-NO will always
13824# execute.)
13825
13826# PGAC_ARG_BOOL
13827
13828
13829# PGAC_ARG_REQ(TYPE, NAME, HELP-ARGNAME, HELP-STRING-RHS,
13830#              [ACTION-IF-GIVEN], [ACTION-IF-NOT-GIVEN])
13831# -------------------------------------------------------
13832# This option will require an argument; "yes" or "no" will not be
13833# accepted.  HELP-ARGNAME is a name for the argument for the help output.
13834
13835# PGAC_ARG_REQ
13836
13837
13838# PGAC_ARG_OPTARG(TYPE, NAME, HELP-ARGNAME, HELP-STRING-RHS,
13839#                 [DEFAULT-ACTION], [ARG-ACTION],
13840#                 [ACTION-ENABLED], [ACTION-DISABLED])
13841# ----------------------------------------------------------
13842# This will create an option that behaves as follows: If omitted, or
13843# called with "no", then set the enable_variable to "no" and do
13844# nothing else. If called with "yes", then execute DEFAULT-ACTION. If
13845# called with argument, set enable_variable to "yes" and execute
13846# ARG-ACTION. Additionally, execute ACTION-ENABLED if we ended up with
13847# "yes" either way, else ACTION-DISABLED.
13848#
13849# The intent is to allow enabling a feature, and optionally pass an
13850# additional piece of information.
13851
13852# PGAC_ARG_OPTARG
13853
13854
13855pgac_need_repl_snprintf=no
13856for ac_func in snprintf
13857do :
13858  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13859if test "x$ac_cv_func_snprintf" = xyes; then :
13860  cat >>confdefs.h <<_ACEOF
13861#define HAVE_SNPRINTF 1
13862_ACEOF
13863
13864else
13865  pgac_need_repl_snprintf=yes
13866fi
13867done
13868
13869for ac_func in vsnprintf
13870do :
13871  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
13872if test "x$ac_cv_func_vsnprintf" = xyes; then :
13873  cat >>confdefs.h <<_ACEOF
13874#define HAVE_VSNPRINTF 1
13875_ACEOF
13876
13877else
13878  pgac_need_repl_snprintf=yes
13879fi
13880done
13881
13882
13883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
13884$as_echo_n "checking whether long int is 64 bits... " >&6; }
13885if ${pgac_cv_type_long_int_64+:} false; then :
13886  $as_echo_n "(cached) " >&6
13887else
13888  if test "$cross_compiling" = yes; then :
13889  # If cross-compiling, check the size reported by the compiler and
13890# trust that the arithmetic works.
13891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892/* end confdefs.h.  */
13893
13894int
13895main ()
13896{
13897static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13898test_array [0] = 0;
13899return test_array [0];
13900
13901  ;
13902  return 0;
13903}
13904_ACEOF
13905if ac_fn_c_try_compile "$LINENO"; then :
13906  pgac_cv_type_long_int_64=yes
13907else
13908  pgac_cv_type_long_int_64=no
13909fi
13910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911else
13912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913/* end confdefs.h.  */
13914typedef long int ac_int64;
13915
13916/*
13917 * These are globals to discourage the compiler from folding all the
13918 * arithmetic tests down to compile-time constants.
13919 */
13920ac_int64 a = 20000001;
13921ac_int64 b = 40000005;
13922
13923int does_int64_work()
13924{
13925  ac_int64 c,d;
13926
13927  if (sizeof(ac_int64) != 8)
13928    return 0;			/* definitely not the right size */
13929
13930  /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13931  c = a * b;
13932  d = (c + b) / b;
13933  if (d != a+1)
13934    return 0;
13935  return 1;
13936}
13937
13938int
13939main() {
13940  return (! does_int64_work());
13941}
13942_ACEOF
13943if ac_fn_c_try_run "$LINENO"; then :
13944  pgac_cv_type_long_int_64=yes
13945else
13946  pgac_cv_type_long_int_64=no
13947fi
13948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13949  conftest.$ac_objext conftest.beam conftest.$ac_ext
13950fi
13951
13952fi
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
13954$as_echo "$pgac_cv_type_long_int_64" >&6; }
13955
13956HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13957if test x"$pgac_cv_type_long_int_64" = xyes ; then
13958
13959$as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
13960
13961fi
13962
13963
13964if test x"$HAVE_LONG_INT_64" = x"no" ; then
13965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
13966$as_echo_n "checking whether long long int is 64 bits... " >&6; }
13967if ${pgac_cv_type_long_long_int_64+:} false; then :
13968  $as_echo_n "(cached) " >&6
13969else
13970  if test "$cross_compiling" = yes; then :
13971  # If cross-compiling, check the size reported by the compiler and
13972# trust that the arithmetic works.
13973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974/* end confdefs.h.  */
13975
13976int
13977main ()
13978{
13979static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13980test_array [0] = 0;
13981return test_array [0];
13982
13983  ;
13984  return 0;
13985}
13986_ACEOF
13987if ac_fn_c_try_compile "$LINENO"; then :
13988  pgac_cv_type_long_long_int_64=yes
13989else
13990  pgac_cv_type_long_long_int_64=no
13991fi
13992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993else
13994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995/* end confdefs.h.  */
13996typedef long long int ac_int64;
13997
13998/*
13999 * These are globals to discourage the compiler from folding all the
14000 * arithmetic tests down to compile-time constants.
14001 */
14002ac_int64 a = 20000001;
14003ac_int64 b = 40000005;
14004
14005int does_int64_work()
14006{
14007  ac_int64 c,d;
14008
14009  if (sizeof(ac_int64) != 8)
14010    return 0;			/* definitely not the right size */
14011
14012  /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14013  c = a * b;
14014  d = (c + b) / b;
14015  if (d != a+1)
14016    return 0;
14017  return 1;
14018}
14019
14020int
14021main() {
14022  return (! does_int64_work());
14023}
14024_ACEOF
14025if ac_fn_c_try_run "$LINENO"; then :
14026  pgac_cv_type_long_long_int_64=yes
14027else
14028  pgac_cv_type_long_long_int_64=no
14029fi
14030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14031  conftest.$ac_objext conftest.beam conftest.$ac_ext
14032fi
14033
14034fi
14035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
14036$as_echo "$pgac_cv_type_long_long_int_64" >&6; }
14037
14038HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14039if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14040
14041$as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
14042
14043fi
14044
14045fi
14046
14047
14048if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
14049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050/* end confdefs.h.  */
14051
14052#define INT64CONST(x)  x##LL
14053long long int foo = INT64CONST(0x1234567890123456);
14054
14055int
14056main ()
14057{
14058
14059  ;
14060  return 0;
14061}
14062_ACEOF
14063if ac_fn_c_try_compile "$LINENO"; then :
14064
14065$as_echo "#define HAVE_LL_CONSTANTS 1" >>confdefs.h
14066
14067fi
14068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069fi
14070
14071# If we found "long int" is 64 bits, assume snprintf handles it.  If
14072# we found we need to use "long long int", better check.  We cope with
14073# snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
14074# work, fall back to our own snprintf emulation (which we know uses %lld).
14075
14076if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14077  if test $pgac_need_repl_snprintf = no; then
14078    { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf format for long long int" >&5
14079$as_echo_n "checking snprintf format for long long int... " >&6; }
14080if ${pgac_cv_snprintf_long_long_int_format+:} false; then :
14081  $as_echo_n "(cached) " >&6
14082else
14083  for pgac_format in '%lld' '%qd' '%I64d'; do
14084if test "$cross_compiling" = yes; then :
14085  pgac_cv_snprintf_long_long_int_format=cross; break
14086else
14087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088/* end confdefs.h.  */
14089#include <stdio.h>
14090typedef long long int ac_int64;
14091#define INT64_FORMAT "$pgac_format"
14092
14093ac_int64 a = 20000001;
14094ac_int64 b = 40000005;
14095
14096int does_int64_snprintf_work()
14097{
14098  ac_int64 c;
14099  char buf[100];
14100
14101  if (sizeof(ac_int64) != 8)
14102    return 0;			/* doesn't look like the right size */
14103
14104  c = a * b;
14105  snprintf(buf, 100, INT64_FORMAT, c);
14106  if (strcmp(buf, "800000140000005") != 0)
14107    return 0;			/* either multiply or snprintf is busted */
14108  return 1;
14109}
14110main() {
14111  exit(! does_int64_snprintf_work());
14112}
14113_ACEOF
14114if ac_fn_c_try_run "$LINENO"; then :
14115  pgac_cv_snprintf_long_long_int_format=$pgac_format; break
14116fi
14117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14118  conftest.$ac_objext conftest.beam conftest.$ac_ext
14119fi
14120
14121done
14122fi
14123
14124LONG_LONG_INT_FORMAT=''
14125
14126case $pgac_cv_snprintf_long_long_int_format in
14127  cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5
14128$as_echo "cannot test (not on host machine)" >&6; };;
14129  ?*)    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_format" >&5
14130$as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
14131         LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
14132  *)     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14133$as_echo "none" >&6; };;
14134esac
14135    if test "$LONG_LONG_INT_FORMAT" = ""; then
14136      # Force usage of our own snprintf, since system snprintf is broken
14137      pgac_need_repl_snprintf=yes
14138      LONG_LONG_INT_FORMAT='%lld'
14139    fi
14140  else
14141    # Here if we previously decided we needed to use our own snprintf
14142    LONG_LONG_INT_FORMAT='%lld'
14143  fi
14144  LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
14145  INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
14146  UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
14147else
14148  # Here if we are not using 'long long int' at all
14149  INT64_FORMAT='"%ld"'
14150  UINT64_FORMAT='"%lu"'
14151fi
14152
14153# disable useless truncation warnings from gcc 8+
14154NOT_THE_CFLAGS=""
14155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
14156$as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
14157if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false; then :
14158  $as_echo_n "(cached) " >&6
14159else
14160  pgac_save_CFLAGS=$CFLAGS
14161pgac_save_CC=$CC
14162CC=${CC}
14163CFLAGS="${NOT_THE_CFLAGS} -Wformat-truncation"
14164ac_save_c_werror_flag=$ac_c_werror_flag
14165ac_c_werror_flag=yes
14166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167/* end confdefs.h.  */
14168
14169int
14170main ()
14171{
14172
14173  ;
14174  return 0;
14175}
14176_ACEOF
14177if ac_fn_c_try_compile "$LINENO"; then :
14178  pgac_cv_prog_CC_cflags__Wformat_truncation=yes
14179else
14180  pgac_cv_prog_CC_cflags__Wformat_truncation=no
14181fi
14182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183ac_c_werror_flag=$ac_save_c_werror_flag
14184CFLAGS="$pgac_save_CFLAGS"
14185CC="$pgac_save_CC"
14186fi
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5
14188$as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; }
14189if test x"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x"yes"; then
14190  NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wformat-truncation"
14191fi
14192
14193
14194if test -n "$NOT_THE_CFLAGS"; then
14195  CFLAGS="$CFLAGS -Wno-format-truncation"
14196fi
14197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
14198$as_echo_n "checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
14199if ${pgac_cv_prog_CC_cflags__Wstringop_truncation+:} false; then :
14200  $as_echo_n "(cached) " >&6
14201else
14202  pgac_save_CFLAGS=$CFLAGS
14203pgac_save_CC=$CC
14204CC=${CC}
14205CFLAGS="${NOT_THE_CFLAGS} -Wstringop-truncation"
14206ac_save_c_werror_flag=$ac_c_werror_flag
14207ac_c_werror_flag=yes
14208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209/* end confdefs.h.  */
14210
14211int
14212main ()
14213{
14214
14215  ;
14216  return 0;
14217}
14218_ACEOF
14219if ac_fn_c_try_compile "$LINENO"; then :
14220  pgac_cv_prog_CC_cflags__Wstringop_truncation=yes
14221else
14222  pgac_cv_prog_CC_cflags__Wstringop_truncation=no
14223fi
14224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225ac_c_werror_flag=$ac_save_c_werror_flag
14226CFLAGS="$pgac_save_CFLAGS"
14227CC="$pgac_save_CC"
14228fi
14229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wstringop_truncation" >&5
14230$as_echo "$pgac_cv_prog_CC_cflags__Wstringop_truncation" >&6; }
14231if test x"$pgac_cv_prog_CC_cflags__Wstringop_truncation" = x"yes"; then
14232  NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wstringop-truncation"
14233fi
14234
14235
14236if test -n "$NOT_THE_CFLAGS"; then
14237  CFLAGS="$CFLAGS -Wno-stringop-truncation"
14238fi
14239
14240cat >>confdefs.h <<_ACEOF
14241#define PACKAGE "$PACKAGE"
14242_ACEOF
14243
14244
14245
14246cat >>confdefs.h <<_ACEOF
14247#define VERSION "$VERSION"
14248_ACEOF
14249
14250
14251
14252cat >>confdefs.h <<_ACEOF
14253#define INT64_FORMAT $INT64_FORMAT
14254_ACEOF
14255
14256
14257
14258cat >>confdefs.h <<_ACEOF
14259#define UINT64_FORMAT $UINT64_FORMAT
14260_ACEOF
14261
14262
14263# Now we have checked all the reasons to replace snprintf
14264if test $pgac_need_repl_snprintf = yes; then
14265
14266$as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h
14267
14268  case " $LIBOBJS " in
14269  *" snprintf.$ac_objext "* ) ;;
14270  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14271 ;;
14272esac
14273
14274fi
14275 if test $pgac_need_repl_snprintf = yes; then
14276  use_repl_snprintf_TRUE=
14277  use_repl_snprintf_FALSE='#'
14278else
14279  use_repl_snprintf_TRUE='#'
14280  use_repl_snprintf_FALSE=
14281fi
14282
14283# Need a #define for the size of Datum (unsigned long)
14284# The cast to long int works around a bug in the HP C Compiler
14285# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14286# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14287# This bug is HP SR number 8606223364.
14288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14289$as_echo_n "checking size of unsigned long... " >&6; }
14290if ${ac_cv_sizeof_unsigned_long+:} false; then :
14291  $as_echo_n "(cached) " >&6
14292else
14293  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
14294
14295else
14296  if test "$ac_cv_type_unsigned_long" = yes; then
14297     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14299as_fn_error 77 "cannot compute sizeof (unsigned long)
14300See \`config.log' for more details" "$LINENO" 5; }
14301   else
14302     ac_cv_sizeof_unsigned_long=0
14303   fi
14304fi
14305
14306fi
14307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14308$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14309
14310
14311
14312cat >>confdefs.h <<_ACEOF
14313#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14314_ACEOF
14315
14316
14317
14318# And check size of void *, size_t (enables tweaks for > 32bit address space)
14319# The cast to long int works around a bug in the HP C Compiler
14320# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14321# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14322# This bug is HP SR number 8606223364.
14323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14324$as_echo_n "checking size of void *... " >&6; }
14325if ${ac_cv_sizeof_void_p+:} false; then :
14326  $as_echo_n "(cached) " >&6
14327else
14328  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14329
14330else
14331  if test "$ac_cv_type_void_p" = yes; then
14332     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14334as_fn_error 77 "cannot compute sizeof (void *)
14335See \`config.log' for more details" "$LINENO" 5; }
14336   else
14337     ac_cv_sizeof_void_p=0
14338   fi
14339fi
14340
14341fi
14342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14343$as_echo "$ac_cv_sizeof_void_p" >&6; }
14344
14345
14346
14347cat >>confdefs.h <<_ACEOF
14348#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14349_ACEOF
14350
14351
14352# The cast to long int works around a bug in the HP C Compiler
14353# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14354# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14355# This bug is HP SR number 8606223364.
14356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14357$as_echo_n "checking size of size_t... " >&6; }
14358if ${ac_cv_sizeof_size_t+:} false; then :
14359  $as_echo_n "(cached) " >&6
14360else
14361  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14362
14363else
14364  if test "$ac_cv_type_size_t" = yes; then
14365     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14367as_fn_error 77 "cannot compute sizeof (size_t)
14368See \`config.log' for more details" "$LINENO" 5; }
14369   else
14370     ac_cv_sizeof_size_t=0
14371   fi
14372fi
14373
14374fi
14375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14376$as_echo "$ac_cv_sizeof_size_t" >&6; }
14377
14378
14379
14380cat >>confdefs.h <<_ACEOF
14381#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14382_ACEOF
14383
14384
14385
14386# Decide whether float4 is passed by value: user-selectable, enabled by default
14387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
14388$as_echo_n "checking whether to build with float4 passed by value... " >&6; }
14389
14390pgac_args="$pgac_args enable_float4_byval"
14391
14392# Check whether --enable-float4-byval was given.
14393if test "${enable_float4_byval+set}" = set; then :
14394  enableval=$enable_float4_byval;
14395  case $enableval in
14396    yes)
14397
14398$as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
14399
14400               float4passbyval=true
14401      ;;
14402    no)
14403      float4passbyval=false
14404      ;;
14405    *)
14406      as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
14407      ;;
14408  esac
14409
14410else
14411  enable_float4_byval=yes
14412
14413$as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
14414
14415               float4passbyval=true
14416fi
14417
14418
14419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
14420$as_echo "$enable_float4_byval" >&6; }
14421
14422cat >>confdefs.h <<_ACEOF
14423#define FLOAT4PASSBYVAL $float4passbyval
14424_ACEOF
14425
14426
14427# Decide whether float8 is passed by value.
14428# Note: this setting also controls int8 and related types such as timestamp.
14429# If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
14430# If not, trying to select it is an error.
14431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
14432$as_echo_n "checking whether to build with float8 passed by value... " >&6; }
14433if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
14434
14435pgac_args="$pgac_args enable_float8_byval"
14436
14437# Check whether --enable-float8-byval was given.
14438if test "${enable_float8_byval+set}" = set; then :
14439  enableval=$enable_float8_byval;
14440  case $enableval in
14441    yes)
14442      :
14443      ;;
14444    no)
14445      :
14446      ;;
14447    *)
14448      as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
14449      ;;
14450  esac
14451
14452else
14453  enable_float8_byval=yes
14454
14455fi
14456
14457
14458else
14459
14460pgac_args="$pgac_args enable_float8_byval"
14461
14462# Check whether --enable-float8-byval was given.
14463if test "${enable_float8_byval+set}" = set; then :
14464  enableval=$enable_float8_byval;
14465  case $enableval in
14466    yes)
14467      :
14468      ;;
14469    no)
14470      :
14471      ;;
14472    *)
14473      as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
14474      ;;
14475  esac
14476
14477else
14478  enable_float8_byval=no
14479
14480fi
14481
14482
14483  if test "$enable_float8_byval" = yes ; then
14484    as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
14485  fi
14486fi
14487if test "$enable_float8_byval" = yes ; then
14488
14489$as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
14490
14491  float8passbyval=true
14492else
14493  float8passbyval=false
14494fi
14495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
14496$as_echo "$enable_float8_byval" >&6; }
14497
14498cat >>confdefs.h <<_ACEOF
14499#define FLOAT8PASSBYVAL $float8passbyval
14500_ACEOF
14501
14502
14503
14504
14505
14506# $PostgreSQL: pgsql/config/ac_func_accept_argtypes.m4,v 1.6 2003/11/29 19:51:17 pgsql Exp $
14507# This comes from the official Autoconf macro archive at
14508# <http://research.cys.de/autoconf-archive/>
14509# (I removed the $ before the Id CVS keyword below.)
14510
14511
14512
14513# PostgreSQL local changes: In the original version ACCEPT_TYPE_ARG3
14514# is a pointer type. That's kind of useless because then you can't
14515# use the macro to define a corresponding variable. We also make the
14516# reasonable(?) assumption that you can use arg3 for getsocktype etc.
14517# as well (i.e., anywhere POSIX.2 has socklen_t).
14518#
14519# arg2 can also be `const' (e.g., RH 4.2). Change the order of tests
14520# for arg3 so that `int' is first, in case there is no prototype at all.
14521#
14522# Solaris 7 and 8 have arg3 as 'void *' (disguised as 'Psocklen_t'
14523# which is *not* 'socklen_t *').  If we detect that, then we assume
14524# 'int' as the result, because that ought to work best.
14525#
14526# On Win32, accept() returns 'unsigned int PASCAL'
14527
14528
14529
14530ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
14531#ifdef HAVE_SYS_SOCKET_H
14532#include <sys/socket.h>
14533#endif
14534
14535"
14536if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14537
14538cat >>confdefs.h <<_ACEOF
14539#define HAVE_STRUCT_SOCKADDR_STORAGE 1
14540_ACEOF
14541
14542
14543fi
14544
14545ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14546#ifdef HAVE_SYS_SOCKET_H
14547#include <sys/socket.h>
14548#endif
14549
14550"
14551if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14552
14553cat >>confdefs.h <<_ACEOF
14554#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14555_ACEOF
14556
14557
14558fi
14559ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14560#ifdef HAVE_SYS_SOCKET_H
14561#include <sys/socket.h>
14562#endif
14563
14564"
14565if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14566
14567cat >>confdefs.h <<_ACEOF
14568#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14569_ACEOF
14570
14571
14572fi
14573ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
14574#ifdef HAVE_SYS_SOCKET_H
14575#include <sys/socket.h>
14576#endif
14577
14578"
14579if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
14580
14581cat >>confdefs.h <<_ACEOF
14582#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14583_ACEOF
14584
14585
14586fi
14587ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
14588#ifdef HAVE_SYS_SOCKET_H
14589#include <sys/socket.h>
14590#endif
14591
14592"
14593if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
14594
14595cat >>confdefs.h <<_ACEOF
14596#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14597_ACEOF
14598
14599
14600fi
14601ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14602#ifdef HAVE_SYS_SOCKET_H
14603#include <sys/socket.h>
14604#endif
14605
14606"
14607if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14608
14609cat >>confdefs.h <<_ACEOF
14610#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14611_ACEOF
14612
14613
14614fi
14615
14616
14617ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
14618#include <sys/ipc.h>
14619#include <sys/sem.h>
14620"
14621if test "x$ac_cv_type_union_semun" = xyes; then :
14622
14623cat >>confdefs.h <<_ACEOF
14624#define HAVE_UNION_SEMUN 1
14625_ACEOF
14626
14627
14628fi
14629
14630
14631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14632$as_echo_n "checking return type of signal handlers... " >&6; }
14633if ${ac_cv_type_signal+:} false; then :
14634  $as_echo_n "(cached) " >&6
14635else
14636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637/* end confdefs.h.  */
14638#include <sys/types.h>
14639#include <signal.h>
14640
14641int
14642main ()
14643{
14644return *(signal (0, 0)) (0) == 1;
14645  ;
14646  return 0;
14647}
14648_ACEOF
14649if ac_fn_c_try_compile "$LINENO"; then :
14650  ac_cv_type_signal=int
14651else
14652  ac_cv_type_signal=void
14653fi
14654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655fi
14656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14657$as_echo "$ac_cv_type_signal" >&6; }
14658
14659cat >>confdefs.h <<_ACEOF
14660#define RETSIGTYPE $ac_cv_type_signal
14661_ACEOF
14662
14663
14664for ac_func in vprintf
14665do :
14666  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14667if test "x$ac_cv_func_vprintf" = xyes; then :
14668  cat >>confdefs.h <<_ACEOF
14669#define HAVE_VPRINTF 1
14670_ACEOF
14671
14672ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14673if test "x$ac_cv_func__doprnt" = xyes; then :
14674
14675$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14676
14677fi
14678
14679fi
14680done
14681
14682
14683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
14684$as_echo_n "checking for wait3 that fills in rusage... " >&6; }
14685if ${ac_cv_func_wait3_rusage+:} false; then :
14686  $as_echo_n "(cached) " >&6
14687else
14688  if test "$cross_compiling" = yes; then :
14689  ac_cv_func_wait3_rusage=no
14690else
14691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14692/* end confdefs.h.  */
14693$ac_includes_default
14694#include <sys/time.h>
14695#include <sys/resource.h>
14696#include <sys/wait.h>
14697/* HP-UX has wait3 but does not fill in rusage at all.  */
14698int
14699main ()
14700{
14701  struct rusage r;
14702  int i;
14703  /* Use a field that we can force nonzero --
14704     voluntary context switches.
14705     For systems like NeXT and OSF/1 that don't set it,
14706     also use the system CPU time.  And page faults (I/O) for Linux.  */
14707  r.ru_nvcsw = 0;
14708  r.ru_stime.tv_sec = 0;
14709  r.ru_stime.tv_usec = 0;
14710  r.ru_majflt = r.ru_minflt = 0;
14711  switch (fork ())
14712    {
14713    case 0: /* Child.  */
14714      sleep(1); /* Give up the CPU.  */
14715      _exit(0);
14716      break;
14717    case -1: /* What can we do?  */
14718      _exit(0);
14719      break;
14720    default: /* Parent.  */
14721      wait3(&i, 0, &r);
14722      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
14723      sleep(2);
14724      return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
14725	      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
14726    }
14727}
14728_ACEOF
14729if ac_fn_c_try_run "$LINENO"; then :
14730  ac_cv_func_wait3_rusage=yes
14731else
14732  ac_cv_func_wait3_rusage=no
14733fi
14734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14735  conftest.$ac_objext conftest.beam conftest.$ac_ext
14736fi
14737
14738fi
14739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
14740$as_echo "$ac_cv_func_wait3_rusage" >&6; }
14741if test $ac_cv_func_wait3_rusage = yes; then
14742
14743$as_echo "#define HAVE_WAIT3 1" >>confdefs.h
14744
14745fi
14746
14747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
14748$as_echo_n "checking types of arguments for accept()... " >&6; }
14749 if ${ac_cv_func_accept_return+:} false; then :
14750  $as_echo_n "(cached) " >&6
14751else
14752   if ${ac_cv_func_accept_arg1+:} false; then :
14753  $as_echo_n "(cached) " >&6
14754else
14755    if ${ac_cv_func_accept_arg2+:} false; then :
14756  $as_echo_n "(cached) " >&6
14757else
14758     if ${ac_cv_func_accept_arg3+:} false; then :
14759  $as_echo_n "(cached) " >&6
14760else
14761      for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
14762      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
14763       for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
14764        for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
14765         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766/* end confdefs.h.  */
14767#ifdef HAVE_SYS_TYPES_H
14768#include <sys/types.h>
14769#endif
14770#ifdef HAVE_SYS_SOCKET_H
14771#include <sys/socket.h>
14772#endif
14773extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
14774int
14775main ()
14776{
14777
14778  ;
14779  return 0;
14780}
14781_ACEOF
14782if ac_fn_c_try_compile "$LINENO"; then :
14783  ac_not_found=no; break 4
14784else
14785  ac_not_found=yes
14786fi
14787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788       done
14789      done
14790     done
14791    done
14792    if test "$ac_not_found" = yes; then
14793      as_fn_error $? "could not determine argument types" "$LINENO" 5
14794    fi
14795    if test "$ac_cv_func_accept_arg3" = "void"; then
14796      ac_cv_func_accept_arg3=int
14797    fi
14798
14799fi
14800
14801fi
14802
14803fi
14804
14805fi
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
14807$as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
14808
14809cat >>confdefs.h <<_ACEOF
14810#define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
14811_ACEOF
14812
14813
14814cat >>confdefs.h <<_ACEOF
14815#define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
14816_ACEOF
14817
14818
14819cat >>confdefs.h <<_ACEOF
14820#define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
14821_ACEOF
14822
14823
14824cat >>confdefs.h <<_ACEOF
14825#define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
14826_ACEOF
14827
14828
14829for ac_func in setsid select socket sigprocmask strdup strerror strftime strtok asprintf vasprintf gai_strerror hstrerror pstat setproctitle syslog
14830do :
14831  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14832ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14833if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14834  cat >>confdefs.h <<_ACEOF
14835#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14836_ACEOF
14837
14838fi
14839done
14840
14841
14842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
14843$as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
14844if ${pgac_cv__types_compatible+:} false; then :
14845  $as_echo_n "(cached) " >&6
14846else
14847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848/* end confdefs.h.  */
14849
14850int
14851main ()
14852{
14853 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
14854  ;
14855  return 0;
14856}
14857_ACEOF
14858if ac_fn_c_try_compile "$LINENO"; then :
14859  pgac_cv__types_compatible=yes
14860else
14861  pgac_cv__types_compatible=no
14862fi
14863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14864fi
14865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
14866$as_echo "$pgac_cv__types_compatible" >&6; }
14867if test x"$pgac_cv__types_compatible" = xyes ; then
14868
14869$as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
14870
14871fi
14872
14873for ac_prog in pg_config
14874do
14875  # Extract the first word of "$ac_prog", so it can be a program name with args.
14876set dummy $ac_prog; ac_word=$2
14877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14878$as_echo_n "checking for $ac_word... " >&6; }
14879if ${ac_cv_prog_PGCONFIG+:} false; then :
14880  $as_echo_n "(cached) " >&6
14881else
14882  if test -n "$PGCONFIG"; then
14883  ac_cv_prog_PGCONFIG="$PGCONFIG" # Let the user override the test.
14884else
14885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14886for as_dir in $PATH
14887do
14888  IFS=$as_save_IFS
14889  test -z "$as_dir" && as_dir=.
14890    for ac_exec_ext in '' $ac_executable_extensions; do
14891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14892    ac_cv_prog_PGCONFIG="$ac_prog"
14893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14894    break 2
14895  fi
14896done
14897  done
14898IFS=$as_save_IFS
14899
14900fi
14901fi
14902PGCONFIG=$ac_cv_prog_PGCONFIG
14903if test -n "$PGCONFIG"; then
14904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGCONFIG" >&5
14905$as_echo "$PGCONFIG" >&6; }
14906else
14907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14908$as_echo "no" >&6; }
14909fi
14910
14911
14912  test -n "$PGCONFIG" && break
14913done
14914
14915
14916if test -z $PGCONFIG
14917then
14918  PGSQL_INCLUDE_DIR=/usr/local/pgsql/include
14919  PGSQL_LIB_DIR=/usr/local/pgsql/lib
14920  PGSQL_BIN_DIR=/usr/local/pgsql/bin
14921else
14922  PGSQL_INCLUDE_DIR=`pg_config --includedir`
14923  PGSQL_LIB_DIR=`pg_config --libdir`
14924  PGSQL_BIN_DIR=`pg_config --bindir`
14925fi
14926
14927
14928# Check whether --with-pgsql was given.
14929if test "${with_pgsql+set}" = set; then :
14930  withval=$with_pgsql;
14931	case "$withval" in
14932	"" | y | ye | yes | n | no)
14933	    as_fn_error $? "*** You must supply an argument to the --with-pgsql option." "$LINENO" 5
14934	  ;;
14935	esac
14936	PGSQL_INCLUDE_DIR="$withval"/include
14937	PGSQL_LIB_DIR="$withval"/lib
14938	PGSQL_BIN_DIR="$withval"/bin
14939
14940fi
14941
14942
14943
14944# Check whether --with-pgsql-includedir was given.
14945if test "${with_pgsql_includedir+set}" = set; then :
14946  withval=$with_pgsql_includedir;
14947	case "$withval" in
14948	"" | y | ye | yes | n | no)
14949	    as_fn_error $? "*** You must supply an argument to the --with-pgsql-includedir option." "$LINENO" 5
14950	  ;;
14951	esac
14952	PGSQL_INCLUDE_DIR="$withval"
14953
14954fi
14955
14956
14957
14958# Check whether --with-pgsql-libdir was given.
14959if test "${with_pgsql_libdir+set}" = set; then :
14960  withval=$with_pgsql_libdir;
14961	case "$withval" in
14962	"" | y | ye | yes | n | no)
14963	    as_fn_error $? "*** You must supply an argument to the --with-pgsql-libdir option." "$LINENO" 5
14964	  ;;
14965	esac
14966	PGSQL_LIB_DIR="$withval"
14967
14968fi
14969
14970
14971
14972# Check whether --with-pgsql-bindir was given.
14973if test "${with_pgsql_bindir+set}" = set; then :
14974  withval=$with_pgsql_bindir;
14975	case "$withval" in
14976	"" | y | ye | yes | n | no)
14977	    as_fn_error $? "*** You must supply an argument to the --with-pgsql-bindir option." "$LINENO" 5
14978	  ;;
14979	esac
14980	PGSQL_BIN_DIR="$withval"
14981
14982fi
14983
14984
14985
14986# Check whether --with-sunifdef was given.
14987if test "${with_sunifdef+set}" = set; then :
14988  withval=$with_sunifdef;
14989	case "$withval" in
14990	"" | y | ye | yes | n | no)
14991	    as_fn_error $? "*** You must supply an argument to the --with-sunifdef option." "$LINENO" 5
14992	  ;;
14993	esac
14994	SUNIFDEF="$withval"/sunifdef
14995
14996fi
14997
14998
14999
15000# Check whether --with-openssl was given.
15001if test "${with_openssl+set}" = set; then :
15002  withval=$with_openssl;
15003else
15004  openssl=no
15005fi
15006
15007
15008if test "$with_openssl" = yes || test "$with_openssl" = auto; then
15009    for ac_header in openssl/ssl.h
15010do :
15011  ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
15012if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
15013  cat >>confdefs.h <<_ACEOF
15014#define HAVE_OPENSSL_SSL_H 1
15015_ACEOF
15016
15017$as_echo "#define USE_SSL 1" >>confdefs.h
15018
15019else
15020
15021            if test "$with_openssl" = yes; then
15022                as_fn_error $? "header file <openssl/ssl.h> is required for SSL" "$LINENO" 5
15023            else
15024                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: header file <openssl/ssl.h> is required for SSL" >&5
15025$as_echo "$as_me: WARNING: header file <openssl/ssl.h> is required for SSL" >&2;}
15026            fi
15027
15028fi
15029
15030done
15031
15032
15033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
15034$as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
15035if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
15036  $as_echo_n "(cached) " >&6
15037else
15038  ac_check_lib_save_LIBS=$LIBS
15039LIBS="-lcrypto  $LIBS"
15040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15041/* end confdefs.h.  */
15042
15043/* Override any GCC internal prototype to avoid an error.
15044   Use char because int might match the return type of a GCC
15045   builtin and then its argument prototype would still apply.  */
15046#ifdef __cplusplus
15047extern "C"
15048#endif
15049char CRYPTO_new_ex_data ();
15050int
15051main ()
15052{
15053return CRYPTO_new_ex_data ();
15054  ;
15055  return 0;
15056}
15057_ACEOF
15058if ac_fn_c_try_link "$LINENO"; then :
15059  ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
15060else
15061  ac_cv_lib_crypto_CRYPTO_new_ex_data=no
15062fi
15063rm -f core conftest.err conftest.$ac_objext \
15064    conftest$ac_exeext conftest.$ac_ext
15065LIBS=$ac_check_lib_save_LIBS
15066fi
15067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
15068$as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
15069if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
15070  cat >>confdefs.h <<_ACEOF
15071#define HAVE_LIBCRYPTO 1
15072_ACEOF
15073
15074  LIBS="-lcrypto $LIBS"
15075
15076else
15077  as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
15078fi
15079
15080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
15081$as_echo_n "checking for SSL_new in -lssl... " >&6; }
15082if ${ac_cv_lib_ssl_SSL_new+:} false; then :
15083  $as_echo_n "(cached) " >&6
15084else
15085  ac_check_lib_save_LIBS=$LIBS
15086LIBS="-lssl  $LIBS"
15087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088/* end confdefs.h.  */
15089
15090/* Override any GCC internal prototype to avoid an error.
15091   Use char because int might match the return type of a GCC
15092   builtin and then its argument prototype would still apply.  */
15093#ifdef __cplusplus
15094extern "C"
15095#endif
15096char SSL_new ();
15097int
15098main ()
15099{
15100return SSL_new ();
15101  ;
15102  return 0;
15103}
15104_ACEOF
15105if ac_fn_c_try_link "$LINENO"; then :
15106  ac_cv_lib_ssl_SSL_new=yes
15107else
15108  ac_cv_lib_ssl_SSL_new=no
15109fi
15110rm -f core conftest.err conftest.$ac_objext \
15111    conftest$ac_exeext conftest.$ac_ext
15112LIBS=$ac_check_lib_save_LIBS
15113fi
15114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
15115$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
15116if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
15117  cat >>confdefs.h <<_ACEOF
15118#define HAVE_LIBSSL 1
15119_ACEOF
15120
15121  LIBS="-lssl $LIBS"
15122
15123else
15124  as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
15125fi
15126
15127fi
15128
15129
15130# Check whether --with-ldap was given.
15131if test "${with_ldap+set}" = set; then :
15132  withval=$with_ldap;
15133$as_echo "#define USE_LDAP 1" >>confdefs.h
15134
15135fi
15136
15137if test "$with_ldap" = yes ; then
15138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
15139$as_echo_n "checking for ldap_bind in -lldap... " >&6; }
15140if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
15141  $as_echo_n "(cached) " >&6
15142else
15143  ac_check_lib_save_LIBS=$LIBS
15144LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
15145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146/* end confdefs.h.  */
15147
15148/* Override any GCC internal prototype to avoid an error.
15149   Use char because int might match the return type of a GCC
15150   builtin and then its argument prototype would still apply.  */
15151#ifdef __cplusplus
15152extern "C"
15153#endif
15154char ldap_bind ();
15155int
15156main ()
15157{
15158return ldap_bind ();
15159  ;
15160  return 0;
15161}
15162_ACEOF
15163if ac_fn_c_try_link "$LINENO"; then :
15164  ac_cv_lib_ldap_ldap_bind=yes
15165else
15166  ac_cv_lib_ldap_ldap_bind=no
15167fi
15168rm -f core conftest.err conftest.$ac_objext \
15169    conftest$ac_exeext conftest.$ac_ext
15170LIBS=$ac_check_lib_save_LIBS
15171fi
15172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
15173$as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
15174if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
15175  cat >>confdefs.h <<_ACEOF
15176#define HAVE_LIBLDAP 1
15177_ACEOF
15178
15179  LIBS="-lldap $LIBS"
15180
15181else
15182  as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
15183fi
15184
15185  for ac_header in ldap.h
15186do :
15187  ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
15188if test "x$ac_cv_header_ldap_h" = xyes; then :
15189  cat >>confdefs.h <<_ACEOF
15190#define HAVE_LDAP_H 1
15191_ACEOF
15192
15193else
15194  as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
15195fi
15196
15197done
15198
15199  for ac_func in ldap_initialize
15200do :
15201  ac_fn_c_check_func "$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
15202if test "x$ac_cv_func_ldap_initialize" = xyes; then :
15203  cat >>confdefs.h <<_ACEOF
15204#define HAVE_LDAP_INITIALIZE 1
15205_ACEOF
15206
15207fi
15208done
15209
15210fi
15211
15212
15213# Check whether --with-pam was given.
15214if test "${with_pam+set}" = set; then :
15215  withval=$with_pam;
15216$as_echo "#define USE_PAM 1" >>confdefs.h
15217
15218fi
15219
15220if test "$with_pam" = yes ; then
15221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
15222$as_echo_n "checking for pam_start in -lpam... " >&6; }
15223if ${ac_cv_lib_pam_pam_start+:} false; then :
15224  $as_echo_n "(cached) " >&6
15225else
15226  ac_check_lib_save_LIBS=$LIBS
15227LIBS="-lpam  $LIBS"
15228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229/* end confdefs.h.  */
15230
15231/* Override any GCC internal prototype to avoid an error.
15232   Use char because int might match the return type of a GCC
15233   builtin and then its argument prototype would still apply.  */
15234#ifdef __cplusplus
15235extern "C"
15236#endif
15237char pam_start ();
15238int
15239main ()
15240{
15241return pam_start ();
15242  ;
15243  return 0;
15244}
15245_ACEOF
15246if ac_fn_c_try_link "$LINENO"; then :
15247  ac_cv_lib_pam_pam_start=yes
15248else
15249  ac_cv_lib_pam_pam_start=no
15250fi
15251rm -f core conftest.err conftest.$ac_objext \
15252    conftest$ac_exeext conftest.$ac_ext
15253LIBS=$ac_check_lib_save_LIBS
15254fi
15255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
15256$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
15257if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
15258  cat >>confdefs.h <<_ACEOF
15259#define HAVE_LIBPAM 1
15260_ACEOF
15261
15262  LIBS="-lpam $LIBS"
15263
15264else
15265  as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
15266fi
15267
15268   for ac_header in security/pam_appl.h
15269do :
15270  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
15271if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
15272  cat >>confdefs.h <<_ACEOF
15273#define HAVE_SECURITY_PAM_APPL_H 1
15274_ACEOF
15275
15276else
15277  for ac_header in pam/pam_appl.h
15278do :
15279  ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
15280if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
15281  cat >>confdefs.h <<_ACEOF
15282#define HAVE_PAM_PAM_APPL_H 1
15283_ACEOF
15284
15285else
15286  as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
15287fi
15288
15289done
15290
15291fi
15292
15293done
15294
15295fi
15296
15297
15298
15299# Check whether --with-memcached was given.
15300if test "${with_memcached+set}" = set; then :
15301  withval=$with_memcached;
15302  case "$withval" in
15303  "" | y | ye | yes | n | no)
15304      as_fn_error $? "*** You must supply an argument to the --with-memcached option." "$LINENO" 5
15305    ;;
15306    *)
15307
15308  MEMCACHED_INCLUDE_DIR="$withval"/include
15309  MEMCACHED_LIB_DIR="$withval"/lib
15310  OLD_CFLAGS="$CFLAGS"
15311  CFLAGS="$CFLAGS -I$MEMCACHED_INCLUDE_DIR"
15312    for ac_header in libmemcached/memcached.h
15313do :
15314  ac_fn_c_check_header_mongrel "$LINENO" "libmemcached/memcached.h" "ac_cv_header_libmemcached_memcached_h" "$ac_includes_default"
15315if test "x$ac_cv_header_libmemcached_memcached_h" = xyes; then :
15316  cat >>confdefs.h <<_ACEOF
15317#define HAVE_LIBMEMCACHED_MEMCACHED_H 1
15318_ACEOF
15319
15320$as_echo "#define USE_MEMCACHED 1" >>confdefs.h
15321
15322else
15323  as_fn_error $? "header file <libmemcached/memcached.h> is required for memcached support" "$LINENO" 5
15324fi
15325
15326done
15327
15328  CFLAGS=$OLD_CFLAGS
15329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcached_create in -lmemcached" >&5
15330$as_echo_n "checking for memcached_create in -lmemcached... " >&6; }
15331if ${ac_cv_lib_memcached_memcached_create+:} false; then :
15332  $as_echo_n "(cached) " >&6
15333else
15334  ac_check_lib_save_LIBS=$LIBS
15335LIBS="-lmemcached  $LIBS"
15336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337/* end confdefs.h.  */
15338
15339/* Override any GCC internal prototype to avoid an error.
15340   Use char because int might match the return type of a GCC
15341   builtin and then its argument prototype would still apply.  */
15342#ifdef __cplusplus
15343extern "C"
15344#endif
15345char memcached_create ();
15346int
15347main ()
15348{
15349return memcached_create ();
15350  ;
15351  return 0;
15352}
15353_ACEOF
15354if ac_fn_c_try_link "$LINENO"; then :
15355  ac_cv_lib_memcached_memcached_create=yes
15356else
15357  ac_cv_lib_memcached_memcached_create=no
15358fi
15359rm -f core conftest.err conftest.$ac_objext \
15360    conftest$ac_exeext conftest.$ac_ext
15361LIBS=$ac_check_lib_save_LIBS
15362fi
15363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcached_memcached_create" >&5
15364$as_echo "$ac_cv_lib_memcached_memcached_create" >&6; }
15365if test "x$ac_cv_lib_memcached_memcached_create" = xyes; then :
15366  cat >>confdefs.h <<_ACEOF
15367#define HAVE_LIBMEMCACHED 1
15368_ACEOF
15369
15370  LIBS="-lmemcached $LIBS"
15371
15372else
15373  as_fn_error $? "libmemcached is not installed" "$LINENO" 5
15374fi
15375
15376  MEMCACHED_INCLUDE_OPT="-I $MEMCACHED_INCLUDE_DIR"
15377  MEMCACHED_LINK_OPT="-L$MEMCACHED_LIB_DIR"
15378  MEMCACHED_RPATH_OPT="-rpath $MEMCACHED_LIB_DIR"
15379  ;;
15380  esac
15381
15382fi
15383
15384
15385CFLAGS="$CFLAGS -fno-strict-aliasing"
15386
15387
15388
15389
15390
15391OLD_LDFLAGS="$LDFLAGS"
15392LDFLAGS="-L$PGSQL_LIB_DIR $LDFLAGS"
15393OLD_LIBS="$LIBS"
15394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecPrepared in -lpq" >&5
15395$as_echo_n "checking for PQexecPrepared in -lpq... " >&6; }
15396if ${ac_cv_lib_pq_PQexecPrepared+:} false; then :
15397  $as_echo_n "(cached) " >&6
15398else
15399  ac_check_lib_save_LIBS=$LIBS
15400LIBS="-lpq  $LIBS"
15401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15402/* end confdefs.h.  */
15403
15404/* Override any GCC internal prototype to avoid an error.
15405   Use char because int might match the return type of a GCC
15406   builtin and then its argument prototype would still apply.  */
15407#ifdef __cplusplus
15408extern "C"
15409#endif
15410char PQexecPrepared ();
15411int
15412main ()
15413{
15414return PQexecPrepared ();
15415  ;
15416  return 0;
15417}
15418_ACEOF
15419if ac_fn_c_try_link "$LINENO"; then :
15420  ac_cv_lib_pq_PQexecPrepared=yes
15421else
15422  ac_cv_lib_pq_PQexecPrepared=no
15423fi
15424rm -f core conftest.err conftest.$ac_objext \
15425    conftest$ac_exeext conftest.$ac_ext
15426LIBS=$ac_check_lib_save_LIBS
15427fi
15428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecPrepared" >&5
15429$as_echo "$ac_cv_lib_pq_PQexecPrepared" >&6; }
15430if test "x$ac_cv_lib_pq_PQexecPrepared" = xyes; then :
15431  cat >>confdefs.h <<_ACEOF
15432#define HAVE_LIBPQ 1
15433_ACEOF
15434
15435  LIBS="-lpq $LIBS"
15436
15437else
15438  as_fn_error $? "libpq is not installed or libpq is old" "$LINENO" 5
15439fi
15440
15441for ac_func in PQprepare
15442do :
15443  ac_fn_c_check_func "$LINENO" "PQprepare" "ac_cv_func_PQprepare"
15444if test "x$ac_cv_func_PQprepare" = xyes; then :
15445  cat >>confdefs.h <<_ACEOF
15446#define HAVE_PQPREPARE 1
15447_ACEOF
15448
15449fi
15450done
15451
15452for ac_func in PQpingParams
15453do :
15454  ac_fn_c_check_func "$LINENO" "PQpingParams" "ac_cv_func_PQpingParams"
15455if test "x$ac_cv_func_PQpingParams" = xyes; then :
15456  cat >>confdefs.h <<_ACEOF
15457#define HAVE_PQPINGPARAMS 1
15458_ACEOF
15459
15460fi
15461done
15462
15463LDFLAGS="$OLD_LDFLAGS"
15464LIBS="$OLD_LIBS"
15465
15466
15467
15468
15469
15470
15471# --enable(disable)-rpath option
15472# Check whether --enable-rpath was given.
15473if test "${enable_rpath+set}" = set; then :
15474  enableval=$enable_rpath; case "${enableval}" in
15475      yes) rpath=yes ;;
15476      no)  rpath=no ;;
15477      esac
15478else
15479  rpath=yes
15480
15481fi
15482
15483 if test x$rpath = xyes; then
15484  enable_rpath_TRUE=
15485  enable_rpath_FALSE='#'
15486else
15487  enable_rpath_TRUE='#'
15488  enable_rpath_FALSE=
15489fi
15490
15491
15492# Decide whether to use row lock against the sequence table for insert_lock.
15493# This lock method is compatible with pgpool-II 3.0 series(until 3.0.4).
15494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use row lock against the sequence table for insert_lock" >&5
15495$as_echo_n "checking whether to use row lock against the sequence table for insert_lock... " >&6; }
15496
15497pgac_args="$pgac_args enable_sequence_lock"
15498
15499# Check whether --enable-sequence-lock was given.
15500if test "${enable_sequence_lock+set}" = set; then :
15501  enableval=$enable_sequence_lock;
15502  case $enableval in
15503    yes)
15504      :
15505      ;;
15506    no)
15507      :
15508      ;;
15509    *)
15510      as_fn_error $? "no argument expected for --enable-sequence-lock option" "$LINENO" 5
15511      ;;
15512  esac
15513
15514else
15515  enable_sequence_lock=no
15516
15517fi
15518
15519
15520if test "$enable_sequence_lock" = yes && test "$enable_table_lock" = yes ; then
15521    as_fn_error $? "--enable-table-lock cannot be enabled at the same time." "$LINENO" 5
15522fi
15523if test "$enable_sequence_lock" = yes ; then
15524
15525$as_echo "#define USE_SEQUENCE_LOCK 1" >>confdefs.h
15526
15527fi
15528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sequence_lock" >&5
15529$as_echo "$enable_sequence_lock" >&6; }
15530
15531# Decide whether to use table lock against the target table for insert_lock.
15532# This lock method is compatible with pgpool-II 2.2 and 2.3 series.
15533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use table lock against the target table for insert_lock" >&5
15534$as_echo_n "checking whether to use table lock against the target table for insert_lock... " >&6; }
15535
15536pgac_args="$pgac_args enable_table_lock"
15537
15538# Check whether --enable-table-lock was given.
15539if test "${enable_table_lock+set}" = set; then :
15540  enableval=$enable_table_lock;
15541  case $enableval in
15542    yes)
15543      :
15544      ;;
15545    no)
15546      :
15547      ;;
15548    *)
15549      as_fn_error $? "no argument expected for --enable-table-lock option" "$LINENO" 5
15550      ;;
15551  esac
15552
15553else
15554  enable_table_lock=no
15555
15556fi
15557
15558
15559if test "$enable_table_lock" = yes && test "$enable_sequence_lock" = yes ; then
15560    as_fn_error $? "--enable-sequence-lock cannot be enabled at the same time." "$LINENO" 5
15561fi
15562if test "$enable_table_lock" = yes ; then
15563
15564$as_echo "#define USE_TABLE_LOCK 1" >>confdefs.h
15565
15566fi
15567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_table_lock" >&5
15568$as_echo "$enable_table_lock" >&6; }
15569
15570
15571pgac_args="$pgac_args enable_cassert"
15572
15573# Check whether --enable-cassert was given.
15574if test "${enable_cassert+set}" = set; then :
15575  enableval=$enable_cassert;
15576  case $enableval in
15577    yes)
15578      :
15579      ;;
15580    no)
15581      :
15582      ;;
15583    *)
15584      as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
15585      ;;
15586  esac
15587
15588else
15589  enable_cassert=no
15590
15591fi
15592
15593
15594if test "$enable_cassert" = yes ; then
15595
15596$as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
15597
15598fi
15599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enable cassert = $enable_cassert" >&5
15600$as_echo "enable cassert = $enable_cassert" >&6; }
15601
15602ac_config_headers="$ac_config_headers src/include/config.h"
15603
15604
15605ac_config_files="$ac_config_files Makefile doc/Makefile doc/src/Makefile doc/src/sgml/Makefile doc.ja/Makefile doc.ja/src/Makefile doc.ja/src/sgml/Makefile doc.zh-cn/Makefile doc.zh-cn/src/Makefile doc.zh-cn/src/sgml/Makefile src/Makefile src/include/Makefile src/parser/Makefile src/libs/Makefile src/libs/pcp/Makefile src/tools/Makefile src/tools/pgmd5/Makefile src/tools/pgenc/Makefile src/tools/pcp/Makefile src/tools/pgproto/Makefile src/tools/watchdog/Makefile src/watchdog/Makefile"
15606
15607cat >confcache <<\_ACEOF
15608# This file is a shell script that caches the results of configure
15609# tests run on this system so they can be shared between configure
15610# scripts and configure runs, see configure's option --config-cache.
15611# It is not useful on other systems.  If it contains results you don't
15612# want to keep, you may remove or edit it.
15613#
15614# config.status only pays attention to the cache file if you give it
15615# the --recheck option to rerun configure.
15616#
15617# `ac_cv_env_foo' variables (set or unset) will be overridden when
15618# loading this file, other *unset* `ac_cv_foo' will be assigned the
15619# following values.
15620
15621_ACEOF
15622
15623# The following way of writing the cache mishandles newlines in values,
15624# but we know of no workaround that is simple, portable, and efficient.
15625# So, we kill variables containing newlines.
15626# Ultrix sh set writes to stderr and can't be redirected directly,
15627# and sets the high bit in the cache file unless we assign to the vars.
15628(
15629  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15630    eval ac_val=\$$ac_var
15631    case $ac_val in #(
15632    *${as_nl}*)
15633      case $ac_var in #(
15634      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15635$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15636      esac
15637      case $ac_var in #(
15638      _ | IFS | as_nl) ;; #(
15639      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15640      *) { eval $ac_var=; unset $ac_var;} ;;
15641      esac ;;
15642    esac
15643  done
15644
15645  (set) 2>&1 |
15646    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15647    *${as_nl}ac_space=\ *)
15648      # `set' does not quote correctly, so add quotes: double-quote
15649      # substitution turns \\\\ into \\, and sed turns \\ into \.
15650      sed -n \
15651	"s/'/'\\\\''/g;
15652	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15653      ;; #(
15654    *)
15655      # `set' quotes correctly as required by POSIX, so do not add quotes.
15656      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15657      ;;
15658    esac |
15659    sort
15660) |
15661  sed '
15662     /^ac_cv_env_/b end
15663     t clear
15664     :clear
15665     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15666     t end
15667     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15668     :end' >>confcache
15669if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15670  if test -w "$cache_file"; then
15671    if test "x$cache_file" != "x/dev/null"; then
15672      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15673$as_echo "$as_me: updating cache $cache_file" >&6;}
15674      if test ! -f "$cache_file" || test -h "$cache_file"; then
15675	cat confcache >"$cache_file"
15676      else
15677        case $cache_file in #(
15678        */* | ?:*)
15679	  mv -f confcache "$cache_file"$$ &&
15680	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15681        *)
15682	  mv -f confcache "$cache_file" ;;
15683	esac
15684      fi
15685    fi
15686  else
15687    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15688$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15689  fi
15690fi
15691rm -f confcache
15692
15693test "x$prefix" = xNONE && prefix=$ac_default_prefix
15694# Let make expand exec_prefix.
15695test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15696
15697DEFS=-DHAVE_CONFIG_H
15698
15699ac_libobjs=
15700ac_ltlibobjs=
15701for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15702  # 1. Remove the extension, and $U if already installed.
15703  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15704  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15705  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15706  #    will be set to the directory where LIBOBJS objects are built.
15707  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15708  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15709done
15710LIBOBJS=$ac_libobjs
15711
15712LTLIBOBJS=$ac_ltlibobjs
15713
15714
15715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15716$as_echo_n "checking that generated files are newer than configure... " >&6; }
15717   if test -n "$am_sleep_pid"; then
15718     # Hide warnings about reused PIDs.
15719     wait $am_sleep_pid 2>/dev/null
15720   fi
15721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15722$as_echo "done" >&6; }
15723 if test -n "$EXEEXT"; then
15724  am__EXEEXT_TRUE=
15725  am__EXEEXT_FALSE='#'
15726else
15727  am__EXEEXT_TRUE='#'
15728  am__EXEEXT_FALSE=
15729fi
15730
15731if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15732  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15733Usually this means the macro was only invoked conditionally." "$LINENO" 5
15734fi
15735if test -z "${can_build_docs_TRUE}" && test -z "${can_build_docs_FALSE}"; then
15736  as_fn_error $? "conditional \"can_build_docs\" was never defined.
15737Usually this means the macro was only invoked conditionally." "$LINENO" 5
15738fi
15739if test -z "${STYLE_ENV_SET_TRUE}" && test -z "${STYLE_ENV_SET_FALSE}"; then
15740  as_fn_error $? "conditional \"STYLE_ENV_SET\" was never defined.
15741Usually this means the macro was only invoked conditionally." "$LINENO" 5
15742fi
15743if test -z "${use_repl_snprintf_TRUE}" && test -z "${use_repl_snprintf_FALSE}"; then
15744  as_fn_error $? "conditional \"use_repl_snprintf\" was never defined.
15745Usually this means the macro was only invoked conditionally." "$LINENO" 5
15746fi
15747if test -z "${enable_rpath_TRUE}" && test -z "${enable_rpath_FALSE}"; then
15748  as_fn_error $? "conditional \"enable_rpath\" was never defined.
15749Usually this means the macro was only invoked conditionally." "$LINENO" 5
15750fi
15751
15752: "${CONFIG_STATUS=./config.status}"
15753ac_write_fail=0
15754ac_clean_files_save=$ac_clean_files
15755ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15756{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15757$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15758as_write_fail=0
15759cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15760#! $SHELL
15761# Generated by $as_me.
15762# Run this file to recreate the current configuration.
15763# Compiler output produced by configure, useful for debugging
15764# configure, is in config.log if it exists.
15765
15766debug=false
15767ac_cs_recheck=false
15768ac_cs_silent=false
15769
15770SHELL=\${CONFIG_SHELL-$SHELL}
15771export SHELL
15772_ASEOF
15773cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15774## -------------------- ##
15775## M4sh Initialization. ##
15776## -------------------- ##
15777
15778# Be more Bourne compatible
15779DUALCASE=1; export DUALCASE # for MKS sh
15780if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15781  emulate sh
15782  NULLCMD=:
15783  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15784  # is contrary to our usage.  Disable this feature.
15785  alias -g '${1+"$@"}'='"$@"'
15786  setopt NO_GLOB_SUBST
15787else
15788  case `(set -o) 2>/dev/null` in #(
15789  *posix*) :
15790    set -o posix ;; #(
15791  *) :
15792     ;;
15793esac
15794fi
15795
15796
15797as_nl='
15798'
15799export as_nl
15800# Printing a long string crashes Solaris 7 /usr/bin/printf.
15801as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15802as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15803as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15804# Prefer a ksh shell builtin over an external printf program on Solaris,
15805# but without wasting forks for bash or zsh.
15806if test -z "$BASH_VERSION$ZSH_VERSION" \
15807    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15808  as_echo='print -r --'
15809  as_echo_n='print -rn --'
15810elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15811  as_echo='printf %s\n'
15812  as_echo_n='printf %s'
15813else
15814  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15815    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15816    as_echo_n='/usr/ucb/echo -n'
15817  else
15818    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15819    as_echo_n_body='eval
15820      arg=$1;
15821      case $arg in #(
15822      *"$as_nl"*)
15823	expr "X$arg" : "X\\(.*\\)$as_nl";
15824	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15825      esac;
15826      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15827    '
15828    export as_echo_n_body
15829    as_echo_n='sh -c $as_echo_n_body as_echo'
15830  fi
15831  export as_echo_body
15832  as_echo='sh -c $as_echo_body as_echo'
15833fi
15834
15835# The user is always right.
15836if test "${PATH_SEPARATOR+set}" != set; then
15837  PATH_SEPARATOR=:
15838  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15839    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15840      PATH_SEPARATOR=';'
15841  }
15842fi
15843
15844
15845# IFS
15846# We need space, tab and new line, in precisely that order.  Quoting is
15847# there to prevent editors from complaining about space-tab.
15848# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15849# splitting by setting IFS to empty value.)
15850IFS=" ""	$as_nl"
15851
15852# Find who we are.  Look in the path if we contain no directory separator.
15853as_myself=
15854case $0 in #((
15855  *[\\/]* ) as_myself=$0 ;;
15856  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15857for as_dir in $PATH
15858do
15859  IFS=$as_save_IFS
15860  test -z "$as_dir" && as_dir=.
15861    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15862  done
15863IFS=$as_save_IFS
15864
15865     ;;
15866esac
15867# We did not find ourselves, most probably we were run as `sh COMMAND'
15868# in which case we are not to be found in the path.
15869if test "x$as_myself" = x; then
15870  as_myself=$0
15871fi
15872if test ! -f "$as_myself"; then
15873  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15874  exit 1
15875fi
15876
15877# Unset variables that we do not need and which cause bugs (e.g. in
15878# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15879# suppresses any "Segmentation fault" message there.  '((' could
15880# trigger a bug in pdksh 5.2.14.
15881for as_var in BASH_ENV ENV MAIL MAILPATH
15882do eval test x\${$as_var+set} = xset \
15883  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15884done
15885PS1='$ '
15886PS2='> '
15887PS4='+ '
15888
15889# NLS nuisances.
15890LC_ALL=C
15891export LC_ALL
15892LANGUAGE=C
15893export LANGUAGE
15894
15895# CDPATH.
15896(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15897
15898
15899# as_fn_error STATUS ERROR [LINENO LOG_FD]
15900# ----------------------------------------
15901# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15902# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15903# script with STATUS, using 1 if that was 0.
15904as_fn_error ()
15905{
15906  as_status=$1; test $as_status -eq 0 && as_status=1
15907  if test "$4"; then
15908    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15909    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15910  fi
15911  $as_echo "$as_me: error: $2" >&2
15912  as_fn_exit $as_status
15913} # as_fn_error
15914
15915
15916# as_fn_set_status STATUS
15917# -----------------------
15918# Set $? to STATUS, without forking.
15919as_fn_set_status ()
15920{
15921  return $1
15922} # as_fn_set_status
15923
15924# as_fn_exit STATUS
15925# -----------------
15926# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15927as_fn_exit ()
15928{
15929  set +e
15930  as_fn_set_status $1
15931  exit $1
15932} # as_fn_exit
15933
15934# as_fn_unset VAR
15935# ---------------
15936# Portably unset VAR.
15937as_fn_unset ()
15938{
15939  { eval $1=; unset $1;}
15940}
15941as_unset=as_fn_unset
15942# as_fn_append VAR VALUE
15943# ----------------------
15944# Append the text in VALUE to the end of the definition contained in VAR. Take
15945# advantage of any shell optimizations that allow amortized linear growth over
15946# repeated appends, instead of the typical quadratic growth present in naive
15947# implementations.
15948if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15949  eval 'as_fn_append ()
15950  {
15951    eval $1+=\$2
15952  }'
15953else
15954  as_fn_append ()
15955  {
15956    eval $1=\$$1\$2
15957  }
15958fi # as_fn_append
15959
15960# as_fn_arith ARG...
15961# ------------------
15962# Perform arithmetic evaluation on the ARGs, and store the result in the
15963# global $as_val. Take advantage of shells that can avoid forks. The arguments
15964# must be portable across $(()) and expr.
15965if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15966  eval 'as_fn_arith ()
15967  {
15968    as_val=$(( $* ))
15969  }'
15970else
15971  as_fn_arith ()
15972  {
15973    as_val=`expr "$@" || test $? -eq 1`
15974  }
15975fi # as_fn_arith
15976
15977
15978if expr a : '\(a\)' >/dev/null 2>&1 &&
15979   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15980  as_expr=expr
15981else
15982  as_expr=false
15983fi
15984
15985if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15986  as_basename=basename
15987else
15988  as_basename=false
15989fi
15990
15991if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15992  as_dirname=dirname
15993else
15994  as_dirname=false
15995fi
15996
15997as_me=`$as_basename -- "$0" ||
15998$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15999	 X"$0" : 'X\(//\)$' \| \
16000	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16001$as_echo X/"$0" |
16002    sed '/^.*\/\([^/][^/]*\)\/*$/{
16003	    s//\1/
16004	    q
16005	  }
16006	  /^X\/\(\/\/\)$/{
16007	    s//\1/
16008	    q
16009	  }
16010	  /^X\/\(\/\).*/{
16011	    s//\1/
16012	    q
16013	  }
16014	  s/.*/./; q'`
16015
16016# Avoid depending upon Character Ranges.
16017as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16018as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16019as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16020as_cr_digits='0123456789'
16021as_cr_alnum=$as_cr_Letters$as_cr_digits
16022
16023ECHO_C= ECHO_N= ECHO_T=
16024case `echo -n x` in #(((((
16025-n*)
16026  case `echo 'xy\c'` in
16027  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16028  xy)  ECHO_C='\c';;
16029  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16030       ECHO_T='	';;
16031  esac;;
16032*)
16033  ECHO_N='-n';;
16034esac
16035
16036rm -f conf$$ conf$$.exe conf$$.file
16037if test -d conf$$.dir; then
16038  rm -f conf$$.dir/conf$$.file
16039else
16040  rm -f conf$$.dir
16041  mkdir conf$$.dir 2>/dev/null
16042fi
16043if (echo >conf$$.file) 2>/dev/null; then
16044  if ln -s conf$$.file conf$$ 2>/dev/null; then
16045    as_ln_s='ln -s'
16046    # ... but there are two gotchas:
16047    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16048    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16049    # In both cases, we have to default to `cp -pR'.
16050    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16051      as_ln_s='cp -pR'
16052  elif ln conf$$.file conf$$ 2>/dev/null; then
16053    as_ln_s=ln
16054  else
16055    as_ln_s='cp -pR'
16056  fi
16057else
16058  as_ln_s='cp -pR'
16059fi
16060rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16061rmdir conf$$.dir 2>/dev/null
16062
16063
16064# as_fn_mkdir_p
16065# -------------
16066# Create "$as_dir" as a directory, including parents if necessary.
16067as_fn_mkdir_p ()
16068{
16069
16070  case $as_dir in #(
16071  -*) as_dir=./$as_dir;;
16072  esac
16073  test -d "$as_dir" || eval $as_mkdir_p || {
16074    as_dirs=
16075    while :; do
16076      case $as_dir in #(
16077      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16078      *) as_qdir=$as_dir;;
16079      esac
16080      as_dirs="'$as_qdir' $as_dirs"
16081      as_dir=`$as_dirname -- "$as_dir" ||
16082$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16083	 X"$as_dir" : 'X\(//\)[^/]' \| \
16084	 X"$as_dir" : 'X\(//\)$' \| \
16085	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16086$as_echo X"$as_dir" |
16087    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16088	    s//\1/
16089	    q
16090	  }
16091	  /^X\(\/\/\)[^/].*/{
16092	    s//\1/
16093	    q
16094	  }
16095	  /^X\(\/\/\)$/{
16096	    s//\1/
16097	    q
16098	  }
16099	  /^X\(\/\).*/{
16100	    s//\1/
16101	    q
16102	  }
16103	  s/.*/./; q'`
16104      test -d "$as_dir" && break
16105    done
16106    test -z "$as_dirs" || eval "mkdir $as_dirs"
16107  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16108
16109
16110} # as_fn_mkdir_p
16111if mkdir -p . 2>/dev/null; then
16112  as_mkdir_p='mkdir -p "$as_dir"'
16113else
16114  test -d ./-p && rmdir ./-p
16115  as_mkdir_p=false
16116fi
16117
16118
16119# as_fn_executable_p FILE
16120# -----------------------
16121# Test if FILE is an executable regular file.
16122as_fn_executable_p ()
16123{
16124  test -f "$1" && test -x "$1"
16125} # as_fn_executable_p
16126as_test_x='test -x'
16127as_executable_p=as_fn_executable_p
16128
16129# Sed expression to map a string onto a valid CPP name.
16130as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16131
16132# Sed expression to map a string onto a valid variable name.
16133as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16134
16135
16136exec 6>&1
16137## ----------------------------------- ##
16138## Main body of $CONFIG_STATUS script. ##
16139## ----------------------------------- ##
16140_ASEOF
16141test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16142
16143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16144# Save the log message, to keep $0 and so on meaningful, and to
16145# report actual input values of CONFIG_FILES etc. instead of their
16146# values after options handling.
16147ac_log="
16148This file was extended by pgpool-II $as_me 4.3.0, which was
16149generated by GNU Autoconf 2.69.  Invocation command line was
16150
16151  CONFIG_FILES    = $CONFIG_FILES
16152  CONFIG_HEADERS  = $CONFIG_HEADERS
16153  CONFIG_LINKS    = $CONFIG_LINKS
16154  CONFIG_COMMANDS = $CONFIG_COMMANDS
16155  $ $0 $@
16156
16157on `(hostname || uname -n) 2>/dev/null | sed 1q`
16158"
16159
16160_ACEOF
16161
16162case $ac_config_files in *"
16163"*) set x $ac_config_files; shift; ac_config_files=$*;;
16164esac
16165
16166case $ac_config_headers in *"
16167"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16168esac
16169
16170
16171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16172# Files that config.status was made for.
16173config_files="$ac_config_files"
16174config_headers="$ac_config_headers"
16175config_commands="$ac_config_commands"
16176
16177_ACEOF
16178
16179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16180ac_cs_usage="\
16181\`$as_me' instantiates files and other configuration actions
16182from templates according to the current configuration.  Unless the files
16183and actions are specified as TAGs, all are instantiated by default.
16184
16185Usage: $0 [OPTION]... [TAG]...
16186
16187  -h, --help       print this help, then exit
16188  -V, --version    print version number and configuration settings, then exit
16189      --config     print configuration, then exit
16190  -q, --quiet, --silent
16191                   do not print progress messages
16192  -d, --debug      don't remove temporary files
16193      --recheck    update $as_me by reconfiguring in the same conditions
16194      --file=FILE[:TEMPLATE]
16195                   instantiate the configuration file FILE
16196      --header=FILE[:TEMPLATE]
16197                   instantiate the configuration header FILE
16198
16199Configuration files:
16200$config_files
16201
16202Configuration headers:
16203$config_headers
16204
16205Configuration commands:
16206$config_commands
16207
16208Report bugs to <pgpool-hackers@pgpool.net>."
16209
16210_ACEOF
16211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16212ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16213ac_cs_version="\\
16214pgpool-II config.status 4.3.0
16215configured by $0, generated by GNU Autoconf 2.69,
16216  with options \\"\$ac_cs_config\\"
16217
16218Copyright (C) 2012 Free Software Foundation, Inc.
16219This config.status script is free software; the Free Software Foundation
16220gives unlimited permission to copy, distribute and modify it."
16221
16222ac_pwd='$ac_pwd'
16223srcdir='$srcdir'
16224INSTALL='$INSTALL'
16225MKDIR_P='$MKDIR_P'
16226AWK='$AWK'
16227test -n "\$AWK" || AWK=awk
16228_ACEOF
16229
16230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16231# The default lists apply if the user does not specify any file.
16232ac_need_defaults=:
16233while test $# != 0
16234do
16235  case $1 in
16236  --*=?*)
16237    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16238    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16239    ac_shift=:
16240    ;;
16241  --*=)
16242    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16243    ac_optarg=
16244    ac_shift=:
16245    ;;
16246  *)
16247    ac_option=$1
16248    ac_optarg=$2
16249    ac_shift=shift
16250    ;;
16251  esac
16252
16253  case $ac_option in
16254  # Handling of the options.
16255  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16256    ac_cs_recheck=: ;;
16257  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16258    $as_echo "$ac_cs_version"; exit ;;
16259  --config | --confi | --conf | --con | --co | --c )
16260    $as_echo "$ac_cs_config"; exit ;;
16261  --debug | --debu | --deb | --de | --d | -d )
16262    debug=: ;;
16263  --file | --fil | --fi | --f )
16264    $ac_shift
16265    case $ac_optarg in
16266    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16267    '') as_fn_error $? "missing file argument" ;;
16268    esac
16269    as_fn_append CONFIG_FILES " '$ac_optarg'"
16270    ac_need_defaults=false;;
16271  --header | --heade | --head | --hea )
16272    $ac_shift
16273    case $ac_optarg in
16274    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16275    esac
16276    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16277    ac_need_defaults=false;;
16278  --he | --h)
16279    # Conflict between --help and --header
16280    as_fn_error $? "ambiguous option: \`$1'
16281Try \`$0 --help' for more information.";;
16282  --help | --hel | -h )
16283    $as_echo "$ac_cs_usage"; exit ;;
16284  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16285  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16286    ac_cs_silent=: ;;
16287
16288  # This is an error.
16289  -*) as_fn_error $? "unrecognized option: \`$1'
16290Try \`$0 --help' for more information." ;;
16291
16292  *) as_fn_append ac_config_targets " $1"
16293     ac_need_defaults=false ;;
16294
16295  esac
16296  shift
16297done
16298
16299ac_configure_extra_args=
16300
16301if $ac_cs_silent; then
16302  exec 6>/dev/null
16303  ac_configure_extra_args="$ac_configure_extra_args --silent"
16304fi
16305
16306_ACEOF
16307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16308if \$ac_cs_recheck; then
16309  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16310  shift
16311  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16312  CONFIG_SHELL='$SHELL'
16313  export CONFIG_SHELL
16314  exec "\$@"
16315fi
16316
16317_ACEOF
16318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16319exec 5>>config.log
16320{
16321  echo
16322  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16323## Running $as_me. ##
16324_ASBOX
16325  $as_echo "$ac_log"
16326} >&5
16327
16328_ACEOF
16329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16330#
16331# INIT-COMMANDS
16332#
16333
16334
16335# The HP-UX ksh and POSIX shell print the target directory to stdout
16336# if CDPATH is set.
16337(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16338
16339sed_quote_subst='$sed_quote_subst'
16340double_quote_subst='$double_quote_subst'
16341delay_variable_subst='$delay_variable_subst'
16342macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16343macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16344enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16345enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16346pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16347enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16348SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16349ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16350PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16351host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16352host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16353host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16354build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16355build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16356build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16357SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16358Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16359GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16360EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16361FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16362LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16363NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16364LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16365max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16366ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16367exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16368lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16369lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16370lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16371lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16372lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16373reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16374reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16375OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16376deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16377file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16378file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16379want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16380DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16381sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16382AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16383AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16384archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16385STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16386RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16387old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16388old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16389old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16390lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16391CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16392CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16393compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16394GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16395lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16396lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16397lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16398lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16399nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16400lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16401objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16402MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16403lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16404lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16405lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16406lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16407lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16408need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16409MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16410DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16411NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16412LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16413OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16414OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16415libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16416shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16417extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16418archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16419enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16420export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16421whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16422compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16423old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16424old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16425archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16426archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16427module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16428module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16429with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16430allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16431no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16432hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16433hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16434hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16435hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16436hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16437hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16438hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16439inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16440link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16441always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16442export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16443exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16444include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16445prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16446postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16447file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16448variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16449need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16450need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16451version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16452runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16453shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16454shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16455libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16456library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16457soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16458install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16459postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16460postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16461finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16462finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16463hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16464sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16465sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16466hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16467enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16468enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16469enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16470old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16471striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16472
16473LTCC='$LTCC'
16474LTCFLAGS='$LTCFLAGS'
16475compiler='$compiler_DEFAULT'
16476
16477# A function that is used when there is no print builtin or printf.
16478func_fallback_echo ()
16479{
16480  eval 'cat <<_LTECHO_EOF
16481\$1
16482_LTECHO_EOF'
16483}
16484
16485# Quote evaled strings.
16486for var in SHELL \
16487ECHO \
16488PATH_SEPARATOR \
16489SED \
16490GREP \
16491EGREP \
16492FGREP \
16493LD \
16494NM \
16495LN_S \
16496lt_SP2NL \
16497lt_NL2SP \
16498reload_flag \
16499OBJDUMP \
16500deplibs_check_method \
16501file_magic_cmd \
16502file_magic_glob \
16503want_nocaseglob \
16504DLLTOOL \
16505sharedlib_from_linklib_cmd \
16506AR \
16507AR_FLAGS \
16508archiver_list_spec \
16509STRIP \
16510RANLIB \
16511CC \
16512CFLAGS \
16513compiler \
16514lt_cv_sys_global_symbol_pipe \
16515lt_cv_sys_global_symbol_to_cdecl \
16516lt_cv_sys_global_symbol_to_c_name_address \
16517lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16518nm_file_list_spec \
16519lt_prog_compiler_no_builtin_flag \
16520lt_prog_compiler_pic \
16521lt_prog_compiler_wl \
16522lt_prog_compiler_static \
16523lt_cv_prog_compiler_c_o \
16524need_locks \
16525MANIFEST_TOOL \
16526DSYMUTIL \
16527NMEDIT \
16528LIPO \
16529OTOOL \
16530OTOOL64 \
16531shrext_cmds \
16532export_dynamic_flag_spec \
16533whole_archive_flag_spec \
16534compiler_needs_object \
16535with_gnu_ld \
16536allow_undefined_flag \
16537no_undefined_flag \
16538hardcode_libdir_flag_spec \
16539hardcode_libdir_separator \
16540exclude_expsyms \
16541include_expsyms \
16542file_list_spec \
16543variables_saved_for_relink \
16544libname_spec \
16545library_names_spec \
16546soname_spec \
16547install_override_mode \
16548finish_eval \
16549old_striplib \
16550striplib; do
16551    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16552    *[\\\\\\\`\\"\\\$]*)
16553      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16554      ;;
16555    *)
16556      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16557      ;;
16558    esac
16559done
16560
16561# Double-quote double-evaled strings.
16562for var in reload_cmds \
16563old_postinstall_cmds \
16564old_postuninstall_cmds \
16565old_archive_cmds \
16566extract_expsyms_cmds \
16567old_archive_from_new_cmds \
16568old_archive_from_expsyms_cmds \
16569archive_cmds \
16570archive_expsym_cmds \
16571module_cmds \
16572module_expsym_cmds \
16573export_symbols_cmds \
16574prelink_cmds \
16575postlink_cmds \
16576postinstall_cmds \
16577postuninstall_cmds \
16578finish_cmds \
16579sys_lib_search_path_spec \
16580sys_lib_dlsearch_path_spec; do
16581    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16582    *[\\\\\\\`\\"\\\$]*)
16583      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16584      ;;
16585    *)
16586      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16587      ;;
16588    esac
16589done
16590
16591ac_aux_dir='$ac_aux_dir'
16592xsi_shell='$xsi_shell'
16593lt_shell_append='$lt_shell_append'
16594
16595# See if we are running on zsh, and set the options which allow our
16596# commands through without removal of \ escapes INIT.
16597if test -n "\${ZSH_VERSION+set}" ; then
16598   setopt NO_GLOB_SUBST
16599fi
16600
16601
16602    PACKAGE='$PACKAGE'
16603    VERSION='$VERSION'
16604    TIMESTAMP='$TIMESTAMP'
16605    RM='$RM'
16606    ofile='$ofile'
16607
16608
16609
16610
16611_ACEOF
16612
16613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16614
16615# Handling of arguments.
16616for ac_config_target in $ac_config_targets
16617do
16618  case $ac_config_target in
16619    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16620    "src/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h" ;;
16621    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16622    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16623    "doc/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;;
16624    "doc/src/sgml/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/sgml/Makefile" ;;
16625    "doc.ja/Makefile") CONFIG_FILES="$CONFIG_FILES doc.ja/Makefile" ;;
16626    "doc.ja/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc.ja/src/Makefile" ;;
16627    "doc.ja/src/sgml/Makefile") CONFIG_FILES="$CONFIG_FILES doc.ja/src/sgml/Makefile" ;;
16628    "doc.zh-cn/Makefile") CONFIG_FILES="$CONFIG_FILES doc.zh-cn/Makefile" ;;
16629    "doc.zh-cn/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc.zh-cn/src/Makefile" ;;
16630    "doc.zh-cn/src/sgml/Makefile") CONFIG_FILES="$CONFIG_FILES doc.zh-cn/src/sgml/Makefile" ;;
16631    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16632    "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
16633    "src/parser/Makefile") CONFIG_FILES="$CONFIG_FILES src/parser/Makefile" ;;
16634    "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
16635    "src/libs/pcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/pcp/Makefile" ;;
16636    "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
16637    "src/tools/pgmd5/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pgmd5/Makefile" ;;
16638    "src/tools/pgenc/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pgenc/Makefile" ;;
16639    "src/tools/pcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pcp/Makefile" ;;
16640    "src/tools/pgproto/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pgproto/Makefile" ;;
16641    "src/tools/watchdog/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/watchdog/Makefile" ;;
16642    "src/watchdog/Makefile") CONFIG_FILES="$CONFIG_FILES src/watchdog/Makefile" ;;
16643
16644  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16645  esac
16646done
16647
16648
16649# If the user did not use the arguments to specify the items to instantiate,
16650# then the envvar interface is used.  Set only those that are not.
16651# We use the long form for the default assignment because of an extremely
16652# bizarre bug on SunOS 4.1.3.
16653if $ac_need_defaults; then
16654  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16655  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16656  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16657fi
16658
16659# Have a temporary directory for convenience.  Make it in the build tree
16660# simply because there is no reason against having it here, and in addition,
16661# creating and moving files from /tmp can sometimes cause problems.
16662# Hook for its removal unless debugging.
16663# Note that there is a small window in which the directory will not be cleaned:
16664# after its creation but before its name has been assigned to `$tmp'.
16665$debug ||
16666{
16667  tmp= ac_tmp=
16668  trap 'exit_status=$?
16669  : "${ac_tmp:=$tmp}"
16670  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16671' 0
16672  trap 'as_fn_exit 1' 1 2 13 15
16673}
16674# Create a (secure) tmp directory for tmp files.
16675
16676{
16677  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16678  test -d "$tmp"
16679}  ||
16680{
16681  tmp=./conf$$-$RANDOM
16682  (umask 077 && mkdir "$tmp")
16683} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16684ac_tmp=$tmp
16685
16686# Set up the scripts for CONFIG_FILES section.
16687# No need to generate them if there are no CONFIG_FILES.
16688# This happens for instance with `./config.status config.h'.
16689if test -n "$CONFIG_FILES"; then
16690
16691
16692ac_cr=`echo X | tr X '\015'`
16693# On cygwin, bash can eat \r inside `` if the user requested igncr.
16694# But we know of no other shell where ac_cr would be empty at this
16695# point, so we can use a bashism as a fallback.
16696if test "x$ac_cr" = x; then
16697  eval ac_cr=\$\'\\r\'
16698fi
16699ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16700if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16701  ac_cs_awk_cr='\\r'
16702else
16703  ac_cs_awk_cr=$ac_cr
16704fi
16705
16706echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16707_ACEOF
16708
16709
16710{
16711  echo "cat >conf$$subs.awk <<_ACEOF" &&
16712  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16713  echo "_ACEOF"
16714} >conf$$subs.sh ||
16715  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16716ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16717ac_delim='%!_!# '
16718for ac_last_try in false false false false false :; do
16719  . ./conf$$subs.sh ||
16720    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16721
16722  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16723  if test $ac_delim_n = $ac_delim_num; then
16724    break
16725  elif $ac_last_try; then
16726    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16727  else
16728    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16729  fi
16730done
16731rm -f conf$$subs.sh
16732
16733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16734cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16735_ACEOF
16736sed -n '
16737h
16738s/^/S["/; s/!.*/"]=/
16739p
16740g
16741s/^[^!]*!//
16742:repl
16743t repl
16744s/'"$ac_delim"'$//
16745t delim
16746:nl
16747h
16748s/\(.\{148\}\)..*/\1/
16749t more1
16750s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16751p
16752n
16753b repl
16754:more1
16755s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16756p
16757g
16758s/.\{148\}//
16759t nl
16760:delim
16761h
16762s/\(.\{148\}\)..*/\1/
16763t more2
16764s/["\\]/\\&/g; s/^/"/; s/$/"/
16765p
16766b
16767:more2
16768s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16769p
16770g
16771s/.\{148\}//
16772t delim
16773' <conf$$subs.awk | sed '
16774/^[^""]/{
16775  N
16776  s/\n//
16777}
16778' >>$CONFIG_STATUS || ac_write_fail=1
16779rm -f conf$$subs.awk
16780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16781_ACAWK
16782cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16783  for (key in S) S_is_set[key] = 1
16784  FS = ""
16785
16786}
16787{
16788  line = $ 0
16789  nfields = split(line, field, "@")
16790  substed = 0
16791  len = length(field[1])
16792  for (i = 2; i < nfields; i++) {
16793    key = field[i]
16794    keylen = length(key)
16795    if (S_is_set[key]) {
16796      value = S[key]
16797      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16798      len += length(value) + length(field[++i])
16799      substed = 1
16800    } else
16801      len += 1 + keylen
16802  }
16803
16804  print line
16805}
16806
16807_ACAWK
16808_ACEOF
16809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16810if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16811  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16812else
16813  cat
16814fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16815  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16816_ACEOF
16817
16818# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16819# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16820# trailing colons and then remove the whole line if VPATH becomes empty
16821# (actually we leave an empty line to preserve line numbers).
16822if test "x$srcdir" = x.; then
16823  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16824h
16825s///
16826s/^/:/
16827s/[	 ]*$/:/
16828s/:\$(srcdir):/:/g
16829s/:\${srcdir}:/:/g
16830s/:@srcdir@:/:/g
16831s/^:*//
16832s/:*$//
16833x
16834s/\(=[	 ]*\).*/\1/
16835G
16836s/\n//
16837s/^[^=]*=[	 ]*$//
16838}'
16839fi
16840
16841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16842fi # test -n "$CONFIG_FILES"
16843
16844# Set up the scripts for CONFIG_HEADERS section.
16845# No need to generate them if there are no CONFIG_HEADERS.
16846# This happens for instance with `./config.status Makefile'.
16847if test -n "$CONFIG_HEADERS"; then
16848cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16849BEGIN {
16850_ACEOF
16851
16852# Transform confdefs.h into an awk script `defines.awk', embedded as
16853# here-document in config.status, that substitutes the proper values into
16854# config.h.in to produce config.h.
16855
16856# Create a delimiter string that does not exist in confdefs.h, to ease
16857# handling of long lines.
16858ac_delim='%!_!# '
16859for ac_last_try in false false :; do
16860  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16861  if test -z "$ac_tt"; then
16862    break
16863  elif $ac_last_try; then
16864    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16865  else
16866    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16867  fi
16868done
16869
16870# For the awk script, D is an array of macro values keyed by name,
16871# likewise P contains macro parameters if any.  Preserve backslash
16872# newline sequences.
16873
16874ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16875sed -n '
16876s/.\{148\}/&'"$ac_delim"'/g
16877t rset
16878:rset
16879s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16880t def
16881d
16882:def
16883s/\\$//
16884t bsnl
16885s/["\\]/\\&/g
16886s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16887D["\1"]=" \3"/p
16888s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16889d
16890:bsnl
16891s/["\\]/\\&/g
16892s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16893D["\1"]=" \3\\\\\\n"\\/p
16894t cont
16895s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16896t cont
16897d
16898:cont
16899n
16900s/.\{148\}/&'"$ac_delim"'/g
16901t clear
16902:clear
16903s/\\$//
16904t bsnlc
16905s/["\\]/\\&/g; s/^/"/; s/$/"/p
16906d
16907:bsnlc
16908s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16909b cont
16910' <confdefs.h | sed '
16911s/'"$ac_delim"'/"\\\
16912"/g' >>$CONFIG_STATUS || ac_write_fail=1
16913
16914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16915  for (key in D) D_is_set[key] = 1
16916  FS = ""
16917}
16918/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16919  line = \$ 0
16920  split(line, arg, " ")
16921  if (arg[1] == "#") {
16922    defundef = arg[2]
16923    mac1 = arg[3]
16924  } else {
16925    defundef = substr(arg[1], 2)
16926    mac1 = arg[2]
16927  }
16928  split(mac1, mac2, "(") #)
16929  macro = mac2[1]
16930  prefix = substr(line, 1, index(line, defundef) - 1)
16931  if (D_is_set[macro]) {
16932    # Preserve the white space surrounding the "#".
16933    print prefix "define", macro P[macro] D[macro]
16934    next
16935  } else {
16936    # Replace #undef with comments.  This is necessary, for example,
16937    # in the case of _POSIX_SOURCE, which is predefined and required
16938    # on some systems where configure will not decide to define it.
16939    if (defundef == "undef") {
16940      print "/*", prefix defundef, macro, "*/"
16941      next
16942    }
16943  }
16944}
16945{ print }
16946_ACAWK
16947_ACEOF
16948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16949  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16950fi # test -n "$CONFIG_HEADERS"
16951
16952
16953eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16954shift
16955for ac_tag
16956do
16957  case $ac_tag in
16958  :[FHLC]) ac_mode=$ac_tag; continue;;
16959  esac
16960  case $ac_mode$ac_tag in
16961  :[FHL]*:*);;
16962  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16963  :[FH]-) ac_tag=-:-;;
16964  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16965  esac
16966  ac_save_IFS=$IFS
16967  IFS=:
16968  set x $ac_tag
16969  IFS=$ac_save_IFS
16970  shift
16971  ac_file=$1
16972  shift
16973
16974  case $ac_mode in
16975  :L) ac_source=$1;;
16976  :[FH])
16977    ac_file_inputs=
16978    for ac_f
16979    do
16980      case $ac_f in
16981      -) ac_f="$ac_tmp/stdin";;
16982      *) # Look for the file first in the build tree, then in the source tree
16983	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16984	 # because $ac_f cannot contain `:'.
16985	 test -f "$ac_f" ||
16986	   case $ac_f in
16987	   [\\/$]*) false;;
16988	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16989	   esac ||
16990	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16991      esac
16992      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16993      as_fn_append ac_file_inputs " '$ac_f'"
16994    done
16995
16996    # Let's still pretend it is `configure' which instantiates (i.e., don't
16997    # use $as_me), people would be surprised to read:
16998    #    /* config.h.  Generated by config.status.  */
16999    configure_input='Generated from '`
17000	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17001	`' by configure.'
17002    if test x"$ac_file" != x-; then
17003      configure_input="$ac_file.  $configure_input"
17004      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17005$as_echo "$as_me: creating $ac_file" >&6;}
17006    fi
17007    # Neutralize special characters interpreted by sed in replacement strings.
17008    case $configure_input in #(
17009    *\&* | *\|* | *\\* )
17010       ac_sed_conf_input=`$as_echo "$configure_input" |
17011       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17012    *) ac_sed_conf_input=$configure_input;;
17013    esac
17014
17015    case $ac_tag in
17016    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17017      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17018    esac
17019    ;;
17020  esac
17021
17022  ac_dir=`$as_dirname -- "$ac_file" ||
17023$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17024	 X"$ac_file" : 'X\(//\)[^/]' \| \
17025	 X"$ac_file" : 'X\(//\)$' \| \
17026	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17027$as_echo X"$ac_file" |
17028    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17029	    s//\1/
17030	    q
17031	  }
17032	  /^X\(\/\/\)[^/].*/{
17033	    s//\1/
17034	    q
17035	  }
17036	  /^X\(\/\/\)$/{
17037	    s//\1/
17038	    q
17039	  }
17040	  /^X\(\/\).*/{
17041	    s//\1/
17042	    q
17043	  }
17044	  s/.*/./; q'`
17045  as_dir="$ac_dir"; as_fn_mkdir_p
17046  ac_builddir=.
17047
17048case "$ac_dir" in
17049.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17050*)
17051  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17052  # A ".." for each directory in $ac_dir_suffix.
17053  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17054  case $ac_top_builddir_sub in
17055  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17056  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17057  esac ;;
17058esac
17059ac_abs_top_builddir=$ac_pwd
17060ac_abs_builddir=$ac_pwd$ac_dir_suffix
17061# for backward compatibility:
17062ac_top_builddir=$ac_top_build_prefix
17063
17064case $srcdir in
17065  .)  # We are building in place.
17066    ac_srcdir=.
17067    ac_top_srcdir=$ac_top_builddir_sub
17068    ac_abs_top_srcdir=$ac_pwd ;;
17069  [\\/]* | ?:[\\/]* )  # Absolute name.
17070    ac_srcdir=$srcdir$ac_dir_suffix;
17071    ac_top_srcdir=$srcdir
17072    ac_abs_top_srcdir=$srcdir ;;
17073  *) # Relative name.
17074    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17075    ac_top_srcdir=$ac_top_build_prefix$srcdir
17076    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17077esac
17078ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17079
17080
17081  case $ac_mode in
17082  :F)
17083  #
17084  # CONFIG_FILE
17085  #
17086
17087  case $INSTALL in
17088  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17089  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17090  esac
17091  ac_MKDIR_P=$MKDIR_P
17092  case $MKDIR_P in
17093  [\\/$]* | ?:[\\/]* ) ;;
17094  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17095  esac
17096_ACEOF
17097
17098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17099# If the template does not know about datarootdir, expand it.
17100# FIXME: This hack should be removed a few years after 2.60.
17101ac_datarootdir_hack=; ac_datarootdir_seen=
17102ac_sed_dataroot='
17103/datarootdir/ {
17104  p
17105  q
17106}
17107/@datadir@/p
17108/@docdir@/p
17109/@infodir@/p
17110/@localedir@/p
17111/@mandir@/p'
17112case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17113*datarootdir*) ac_datarootdir_seen=yes;;
17114*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17115  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17116$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17117_ACEOF
17118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17119  ac_datarootdir_hack='
17120  s&@datadir@&$datadir&g
17121  s&@docdir@&$docdir&g
17122  s&@infodir@&$infodir&g
17123  s&@localedir@&$localedir&g
17124  s&@mandir@&$mandir&g
17125  s&\\\${datarootdir}&$datarootdir&g' ;;
17126esac
17127_ACEOF
17128
17129# Neutralize VPATH when `$srcdir' = `.'.
17130# Shell code in configure.ac might set extrasub.
17131# FIXME: do we really want to maintain this feature?
17132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17133ac_sed_extra="$ac_vpsub
17134$extrasub
17135_ACEOF
17136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17137:t
17138/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17139s|@configure_input@|$ac_sed_conf_input|;t t
17140s&@top_builddir@&$ac_top_builddir_sub&;t t
17141s&@top_build_prefix@&$ac_top_build_prefix&;t t
17142s&@srcdir@&$ac_srcdir&;t t
17143s&@abs_srcdir@&$ac_abs_srcdir&;t t
17144s&@top_srcdir@&$ac_top_srcdir&;t t
17145s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17146s&@builddir@&$ac_builddir&;t t
17147s&@abs_builddir@&$ac_abs_builddir&;t t
17148s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17149s&@INSTALL@&$ac_INSTALL&;t t
17150s&@MKDIR_P@&$ac_MKDIR_P&;t t
17151$ac_datarootdir_hack
17152"
17153eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17154  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17155
17156test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17157  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17158  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17159      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17160  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17161which seems to be undefined.  Please make sure it is defined" >&5
17162$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17163which seems to be undefined.  Please make sure it is defined" >&2;}
17164
17165  rm -f "$ac_tmp/stdin"
17166  case $ac_file in
17167  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17168  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17169  esac \
17170  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17171 ;;
17172  :H)
17173  #
17174  # CONFIG_HEADER
17175  #
17176  if test x"$ac_file" != x-; then
17177    {
17178      $as_echo "/* $configure_input  */" \
17179      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17180    } >"$ac_tmp/config.h" \
17181      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17182    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17183      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17184$as_echo "$as_me: $ac_file is unchanged" >&6;}
17185    else
17186      rm -f "$ac_file"
17187      mv "$ac_tmp/config.h" "$ac_file" \
17188	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17189    fi
17190  else
17191    $as_echo "/* $configure_input  */" \
17192      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17193      || as_fn_error $? "could not create -" "$LINENO" 5
17194  fi
17195# Compute "$ac_file"'s index in $config_headers.
17196_am_arg="$ac_file"
17197_am_stamp_count=1
17198for _am_header in $config_headers :; do
17199  case $_am_header in
17200    $_am_arg | $_am_arg:* )
17201      break ;;
17202    * )
17203      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17204  esac
17205done
17206echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17207$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17208	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17209	 X"$_am_arg" : 'X\(//\)$' \| \
17210	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17211$as_echo X"$_am_arg" |
17212    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17213	    s//\1/
17214	    q
17215	  }
17216	  /^X\(\/\/\)[^/].*/{
17217	    s//\1/
17218	    q
17219	  }
17220	  /^X\(\/\/\)$/{
17221	    s//\1/
17222	    q
17223	  }
17224	  /^X\(\/\).*/{
17225	    s//\1/
17226	    q
17227	  }
17228	  s/.*/./; q'`/stamp-h$_am_stamp_count
17229 ;;
17230
17231  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17232$as_echo "$as_me: executing $ac_file commands" >&6;}
17233 ;;
17234  esac
17235
17236
17237  case $ac_file$ac_mode in
17238    "libtool":C)
17239
17240    # See if we are running on zsh, and set the options which allow our
17241    # commands through without removal of \ escapes.
17242    if test -n "${ZSH_VERSION+set}" ; then
17243      setopt NO_GLOB_SUBST
17244    fi
17245
17246    cfgfile="${ofile}T"
17247    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17248    $RM "$cfgfile"
17249
17250    cat <<_LT_EOF >> "$cfgfile"
17251#! $SHELL
17252
17253# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17254# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17255# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17256# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17257#
17258#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17259#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17260#                 Foundation, Inc.
17261#   Written by Gordon Matzigkeit, 1996
17262#
17263#   This file is part of GNU Libtool.
17264#
17265# GNU Libtool is free software; you can redistribute it and/or
17266# modify it under the terms of the GNU General Public License as
17267# published by the Free Software Foundation; either version 2 of
17268# the License, or (at your option) any later version.
17269#
17270# As a special exception to the GNU General Public License,
17271# if you distribute this file as part of a program or library that
17272# is built using GNU Libtool, you may include this file under the
17273# same distribution terms that you use for the rest of that program.
17274#
17275# GNU Libtool is distributed in the hope that it will be useful,
17276# but WITHOUT ANY WARRANTY; without even the implied warranty of
17277# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17278# GNU General Public License for more details.
17279#
17280# You should have received a copy of the GNU General Public License
17281# along with GNU Libtool; see the file COPYING.  If not, a copy
17282# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17283# obtained by writing to the Free Software Foundation, Inc.,
17284# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17285
17286
17287# The names of the tagged configurations supported by this script.
17288available_tags=""
17289
17290# ### BEGIN LIBTOOL CONFIG
17291
17292# Which release of libtool.m4 was used?
17293macro_version=$macro_version
17294macro_revision=$macro_revision
17295
17296# Whether or not to build shared libraries.
17297build_libtool_libs=$enable_shared
17298
17299# Whether or not to build static libraries.
17300build_old_libs=$enable_static
17301
17302# What type of objects to build.
17303pic_mode=$pic_mode
17304
17305# Whether or not to optimize for fast installation.
17306fast_install=$enable_fast_install
17307
17308# Shell to use when invoking shell scripts.
17309SHELL=$lt_SHELL
17310
17311# An echo program that protects backslashes.
17312ECHO=$lt_ECHO
17313
17314# The PATH separator for the build system.
17315PATH_SEPARATOR=$lt_PATH_SEPARATOR
17316
17317# The host system.
17318host_alias=$host_alias
17319host=$host
17320host_os=$host_os
17321
17322# The build system.
17323build_alias=$build_alias
17324build=$build
17325build_os=$build_os
17326
17327# A sed program that does not truncate output.
17328SED=$lt_SED
17329
17330# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17331Xsed="\$SED -e 1s/^X//"
17332
17333# A grep program that handles long lines.
17334GREP=$lt_GREP
17335
17336# An ERE matcher.
17337EGREP=$lt_EGREP
17338
17339# A literal string matcher.
17340FGREP=$lt_FGREP
17341
17342# A BSD- or MS-compatible name lister.
17343NM=$lt_NM
17344
17345# Whether we need soft or hard links.
17346LN_S=$lt_LN_S
17347
17348# What is the maximum length of a command?
17349max_cmd_len=$max_cmd_len
17350
17351# Object file suffix (normally "o").
17352objext=$ac_objext
17353
17354# Executable file suffix (normally "").
17355exeext=$exeext
17356
17357# whether the shell understands "unset".
17358lt_unset=$lt_unset
17359
17360# turn spaces into newlines.
17361SP2NL=$lt_lt_SP2NL
17362
17363# turn newlines into spaces.
17364NL2SP=$lt_lt_NL2SP
17365
17366# convert \$build file names to \$host format.
17367to_host_file_cmd=$lt_cv_to_host_file_cmd
17368
17369# convert \$build files to toolchain format.
17370to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17371
17372# An object symbol dumper.
17373OBJDUMP=$lt_OBJDUMP
17374
17375# Method to check whether dependent libraries are shared objects.
17376deplibs_check_method=$lt_deplibs_check_method
17377
17378# Command to use when deplibs_check_method = "file_magic".
17379file_magic_cmd=$lt_file_magic_cmd
17380
17381# How to find potential files when deplibs_check_method = "file_magic".
17382file_magic_glob=$lt_file_magic_glob
17383
17384# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17385want_nocaseglob=$lt_want_nocaseglob
17386
17387# DLL creation program.
17388DLLTOOL=$lt_DLLTOOL
17389
17390# Command to associate shared and link libraries.
17391sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17392
17393# The archiver.
17394AR=$lt_AR
17395
17396# Flags to create an archive.
17397AR_FLAGS=$lt_AR_FLAGS
17398
17399# How to feed a file listing to the archiver.
17400archiver_list_spec=$lt_archiver_list_spec
17401
17402# A symbol stripping program.
17403STRIP=$lt_STRIP
17404
17405# Commands used to install an old-style archive.
17406RANLIB=$lt_RANLIB
17407old_postinstall_cmds=$lt_old_postinstall_cmds
17408old_postuninstall_cmds=$lt_old_postuninstall_cmds
17409
17410# Whether to use a lock for old archive extraction.
17411lock_old_archive_extraction=$lock_old_archive_extraction
17412
17413# A C compiler.
17414LTCC=$lt_CC
17415
17416# LTCC compiler flags.
17417LTCFLAGS=$lt_CFLAGS
17418
17419# Take the output of nm and produce a listing of raw symbols and C names.
17420global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17421
17422# Transform the output of nm in a proper C declaration.
17423global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17424
17425# Transform the output of nm in a C name address pair.
17426global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17427
17428# Transform the output of nm in a C name address pair when lib prefix is needed.
17429global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17430
17431# Specify filename containing input files for \$NM.
17432nm_file_list_spec=$lt_nm_file_list_spec
17433
17434# The root where to search for dependent libraries,and in which our libraries should be installed.
17435lt_sysroot=$lt_sysroot
17436
17437# The name of the directory that contains temporary libtool files.
17438objdir=$objdir
17439
17440# Used to examine libraries when file_magic_cmd begins with "file".
17441MAGIC_CMD=$MAGIC_CMD
17442
17443# Must we lock files when doing compilation?
17444need_locks=$lt_need_locks
17445
17446# Manifest tool.
17447MANIFEST_TOOL=$lt_MANIFEST_TOOL
17448
17449# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17450DSYMUTIL=$lt_DSYMUTIL
17451
17452# Tool to change global to local symbols on Mac OS X.
17453NMEDIT=$lt_NMEDIT
17454
17455# Tool to manipulate fat objects and archives on Mac OS X.
17456LIPO=$lt_LIPO
17457
17458# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17459OTOOL=$lt_OTOOL
17460
17461# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17462OTOOL64=$lt_OTOOL64
17463
17464# Old archive suffix (normally "a").
17465libext=$libext
17466
17467# Shared library suffix (normally ".so").
17468shrext_cmds=$lt_shrext_cmds
17469
17470# The commands to extract the exported symbol list from a shared archive.
17471extract_expsyms_cmds=$lt_extract_expsyms_cmds
17472
17473# Variables whose values should be saved in libtool wrapper scripts and
17474# restored at link time.
17475variables_saved_for_relink=$lt_variables_saved_for_relink
17476
17477# Do we need the "lib" prefix for modules?
17478need_lib_prefix=$need_lib_prefix
17479
17480# Do we need a version for libraries?
17481need_version=$need_version
17482
17483# Library versioning type.
17484version_type=$version_type
17485
17486# Shared library runtime path variable.
17487runpath_var=$runpath_var
17488
17489# Shared library path variable.
17490shlibpath_var=$shlibpath_var
17491
17492# Is shlibpath searched before the hard-coded library search path?
17493shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17494
17495# Format of library name prefix.
17496libname_spec=$lt_libname_spec
17497
17498# List of archive names.  First name is the real one, the rest are links.
17499# The last name is the one that the linker finds with -lNAME
17500library_names_spec=$lt_library_names_spec
17501
17502# The coded name of the library, if different from the real name.
17503soname_spec=$lt_soname_spec
17504
17505# Permission mode override for installation of shared libraries.
17506install_override_mode=$lt_install_override_mode
17507
17508# Command to use after installation of a shared archive.
17509postinstall_cmds=$lt_postinstall_cmds
17510
17511# Command to use after uninstallation of a shared archive.
17512postuninstall_cmds=$lt_postuninstall_cmds
17513
17514# Commands used to finish a libtool library installation in a directory.
17515finish_cmds=$lt_finish_cmds
17516
17517# As "finish_cmds", except a single script fragment to be evaled but
17518# not shown.
17519finish_eval=$lt_finish_eval
17520
17521# Whether we should hardcode library paths into libraries.
17522hardcode_into_libs=$hardcode_into_libs
17523
17524# Compile-time system search path for libraries.
17525sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17526
17527# Run-time system search path for libraries.
17528sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17529
17530# Whether dlopen is supported.
17531dlopen_support=$enable_dlopen
17532
17533# Whether dlopen of programs is supported.
17534dlopen_self=$enable_dlopen_self
17535
17536# Whether dlopen of statically linked programs is supported.
17537dlopen_self_static=$enable_dlopen_self_static
17538
17539# Commands to strip libraries.
17540old_striplib=$lt_old_striplib
17541striplib=$lt_striplib
17542
17543
17544# The linker used to build libraries.
17545LD=$lt_LD
17546
17547# How to create reloadable object files.
17548reload_flag=$lt_reload_flag
17549reload_cmds=$lt_reload_cmds
17550
17551# Commands used to build an old-style archive.
17552old_archive_cmds=$lt_old_archive_cmds
17553
17554# A language specific compiler.
17555CC=$lt_compiler
17556
17557# Is the compiler the GNU compiler?
17558with_gcc=$GCC
17559
17560# Compiler flag to turn off builtin functions.
17561no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17562
17563# Additional compiler flags for building library objects.
17564pic_flag=$lt_lt_prog_compiler_pic
17565
17566# How to pass a linker flag through the compiler.
17567wl=$lt_lt_prog_compiler_wl
17568
17569# Compiler flag to prevent dynamic linking.
17570link_static_flag=$lt_lt_prog_compiler_static
17571
17572# Does compiler simultaneously support -c and -o options?
17573compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17574
17575# Whether or not to add -lc for building shared libraries.
17576build_libtool_need_lc=$archive_cmds_need_lc
17577
17578# Whether or not to disallow shared libs when runtime libs are static.
17579allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17580
17581# Compiler flag to allow reflexive dlopens.
17582export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17583
17584# Compiler flag to generate shared objects directly from archives.
17585whole_archive_flag_spec=$lt_whole_archive_flag_spec
17586
17587# Whether the compiler copes with passing no objects directly.
17588compiler_needs_object=$lt_compiler_needs_object
17589
17590# Create an old-style archive from a shared archive.
17591old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17592
17593# Create a temporary old-style archive to link instead of a shared archive.
17594old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17595
17596# Commands used to build a shared archive.
17597archive_cmds=$lt_archive_cmds
17598archive_expsym_cmds=$lt_archive_expsym_cmds
17599
17600# Commands used to build a loadable module if different from building
17601# a shared archive.
17602module_cmds=$lt_module_cmds
17603module_expsym_cmds=$lt_module_expsym_cmds
17604
17605# Whether we are building with GNU ld or not.
17606with_gnu_ld=$lt_with_gnu_ld
17607
17608# Flag that allows shared libraries with undefined symbols to be built.
17609allow_undefined_flag=$lt_allow_undefined_flag
17610
17611# Flag that enforces no undefined symbols.
17612no_undefined_flag=$lt_no_undefined_flag
17613
17614# Flag to hardcode \$libdir into a binary during linking.
17615# This must work even if \$libdir does not exist
17616hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17617
17618# Whether we need a single "-rpath" flag with a separated argument.
17619hardcode_libdir_separator=$lt_hardcode_libdir_separator
17620
17621# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17622# DIR into the resulting binary.
17623hardcode_direct=$hardcode_direct
17624
17625# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17626# DIR into the resulting binary and the resulting library dependency is
17627# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17628# library is relocated.
17629hardcode_direct_absolute=$hardcode_direct_absolute
17630
17631# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17632# into the resulting binary.
17633hardcode_minus_L=$hardcode_minus_L
17634
17635# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17636# into the resulting binary.
17637hardcode_shlibpath_var=$hardcode_shlibpath_var
17638
17639# Set to "yes" if building a shared library automatically hardcodes DIR
17640# into the library and all subsequent libraries and executables linked
17641# against it.
17642hardcode_automatic=$hardcode_automatic
17643
17644# Set to yes if linker adds runtime paths of dependent libraries
17645# to runtime path list.
17646inherit_rpath=$inherit_rpath
17647
17648# Whether libtool must link a program against all its dependency libraries.
17649link_all_deplibs=$link_all_deplibs
17650
17651# Set to "yes" if exported symbols are required.
17652always_export_symbols=$always_export_symbols
17653
17654# The commands to list exported symbols.
17655export_symbols_cmds=$lt_export_symbols_cmds
17656
17657# Symbols that should not be listed in the preloaded symbols.
17658exclude_expsyms=$lt_exclude_expsyms
17659
17660# Symbols that must always be exported.
17661include_expsyms=$lt_include_expsyms
17662
17663# Commands necessary for linking programs (against libraries) with templates.
17664prelink_cmds=$lt_prelink_cmds
17665
17666# Commands necessary for finishing linking programs.
17667postlink_cmds=$lt_postlink_cmds
17668
17669# Specify filename containing input files.
17670file_list_spec=$lt_file_list_spec
17671
17672# How to hardcode a shared library path into an executable.
17673hardcode_action=$hardcode_action
17674
17675# ### END LIBTOOL CONFIG
17676
17677_LT_EOF
17678
17679  case $host_os in
17680  aix3*)
17681    cat <<\_LT_EOF >> "$cfgfile"
17682# AIX sometimes has problems with the GCC collect2 program.  For some
17683# reason, if we set the COLLECT_NAMES environment variable, the problems
17684# vanish in a puff of smoke.
17685if test "X${COLLECT_NAMES+set}" != Xset; then
17686  COLLECT_NAMES=
17687  export COLLECT_NAMES
17688fi
17689_LT_EOF
17690    ;;
17691  esac
17692
17693
17694ltmain="$ac_aux_dir/ltmain.sh"
17695
17696
17697  # We use sed instead of cat because bash on DJGPP gets confused if
17698  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17699  # text mode, it properly converts lines to CR/LF.  This bash problem
17700  # is reportedly fixed, but why not run on old versions too?
17701  sed '$q' "$ltmain" >> "$cfgfile" \
17702     || (rm -f "$cfgfile"; exit 1)
17703
17704  if test x"$xsi_shell" = xyes; then
17705  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17706func_dirname ()\
17707{\
17708\    case ${1} in\
17709\      */*) func_dirname_result="${1%/*}${2}" ;;\
17710\      *  ) func_dirname_result="${3}" ;;\
17711\    esac\
17712} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17713  && mv -f "$cfgfile.tmp" "$cfgfile" \
17714    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17715test 0 -eq $? || _lt_function_replace_fail=:
17716
17717
17718  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17719func_basename ()\
17720{\
17721\    func_basename_result="${1##*/}"\
17722} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17723  && mv -f "$cfgfile.tmp" "$cfgfile" \
17724    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17725test 0 -eq $? || _lt_function_replace_fail=:
17726
17727
17728  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17729func_dirname_and_basename ()\
17730{\
17731\    case ${1} in\
17732\      */*) func_dirname_result="${1%/*}${2}" ;;\
17733\      *  ) func_dirname_result="${3}" ;;\
17734\    esac\
17735\    func_basename_result="${1##*/}"\
17736} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17737  && mv -f "$cfgfile.tmp" "$cfgfile" \
17738    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17739test 0 -eq $? || _lt_function_replace_fail=:
17740
17741
17742  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17743func_stripname ()\
17744{\
17745\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17746\    # positional parameters, so assign one to ordinary parameter first.\
17747\    func_stripname_result=${3}\
17748\    func_stripname_result=${func_stripname_result#"${1}"}\
17749\    func_stripname_result=${func_stripname_result%"${2}"}\
17750} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17751  && mv -f "$cfgfile.tmp" "$cfgfile" \
17752    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17753test 0 -eq $? || _lt_function_replace_fail=:
17754
17755
17756  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17757func_split_long_opt ()\
17758{\
17759\    func_split_long_opt_name=${1%%=*}\
17760\    func_split_long_opt_arg=${1#*=}\
17761} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17762  && mv -f "$cfgfile.tmp" "$cfgfile" \
17763    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17764test 0 -eq $? || _lt_function_replace_fail=:
17765
17766
17767  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17768func_split_short_opt ()\
17769{\
17770\    func_split_short_opt_arg=${1#??}\
17771\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17772} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17773  && mv -f "$cfgfile.tmp" "$cfgfile" \
17774    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17775test 0 -eq $? || _lt_function_replace_fail=:
17776
17777
17778  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17779func_lo2o ()\
17780{\
17781\    case ${1} in\
17782\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17783\      *)    func_lo2o_result=${1} ;;\
17784\    esac\
17785} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17786  && mv -f "$cfgfile.tmp" "$cfgfile" \
17787    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17788test 0 -eq $? || _lt_function_replace_fail=:
17789
17790
17791  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17792func_xform ()\
17793{\
17794    func_xform_result=${1%.*}.lo\
17795} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17796  && mv -f "$cfgfile.tmp" "$cfgfile" \
17797    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17798test 0 -eq $? || _lt_function_replace_fail=:
17799
17800
17801  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17802func_arith ()\
17803{\
17804    func_arith_result=$(( $* ))\
17805} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17806  && mv -f "$cfgfile.tmp" "$cfgfile" \
17807    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17808test 0 -eq $? || _lt_function_replace_fail=:
17809
17810
17811  sed -e '/^func_len ()$/,/^} # func_len /c\
17812func_len ()\
17813{\
17814    func_len_result=${#1}\
17815} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17816  && mv -f "$cfgfile.tmp" "$cfgfile" \
17817    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17818test 0 -eq $? || _lt_function_replace_fail=:
17819
17820fi
17821
17822if test x"$lt_shell_append" = xyes; then
17823  sed -e '/^func_append ()$/,/^} # func_append /c\
17824func_append ()\
17825{\
17826    eval "${1}+=\\${2}"\
17827} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17828  && mv -f "$cfgfile.tmp" "$cfgfile" \
17829    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17830test 0 -eq $? || _lt_function_replace_fail=:
17831
17832
17833  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17834func_append_quoted ()\
17835{\
17836\    func_quote_for_eval "${2}"\
17837\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17838} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17839  && mv -f "$cfgfile.tmp" "$cfgfile" \
17840    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17841test 0 -eq $? || _lt_function_replace_fail=:
17842
17843
17844  # Save a `func_append' function call where possible by direct use of '+='
17845  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17846    && mv -f "$cfgfile.tmp" "$cfgfile" \
17847      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17848  test 0 -eq $? || _lt_function_replace_fail=:
17849else
17850  # Save a `func_append' function call even when '+=' is not available
17851  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17852    && mv -f "$cfgfile.tmp" "$cfgfile" \
17853      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17854  test 0 -eq $? || _lt_function_replace_fail=:
17855fi
17856
17857if test x"$_lt_function_replace_fail" = x":"; then
17858  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17859$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17860fi
17861
17862
17863   mv -f "$cfgfile" "$ofile" ||
17864    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17865  chmod +x "$ofile"
17866
17867 ;;
17868
17869  esac
17870done # for ac_tag
17871
17872
17873as_fn_exit 0
17874_ACEOF
17875ac_clean_files=$ac_clean_files_save
17876
17877test $ac_write_fail = 0 ||
17878  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17879
17880
17881# configure is writing to config.log, and then calls config.status.
17882# config.status does its own redirection, appending to config.log.
17883# Unfortunately, on DOS this fails, as config.log is still kept open
17884# by configure, so config.status won't be able to write to it; its
17885# output is simply discarded.  So we exec the FD to /dev/null,
17886# effectively closing config.log, so it can be properly (re)opened and
17887# appended to by config.status.  When coming back to configure, we
17888# need to make the FD available again.
17889if test "$no_create" != yes; then
17890  ac_cs_success=:
17891  ac_config_status_args=
17892  test "$silent" = yes &&
17893    ac_config_status_args="$ac_config_status_args --quiet"
17894  exec 5>/dev/null
17895  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17896  exec 5>>config.log
17897  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17898  # would make configure fail if this is the last instruction.
17899  $ac_cs_success || as_fn_exit 1
17900fi
17901if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17902  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17903$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17904fi
17905
17906