1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for pgpool-II 4.0.17.
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.0.17'
594PACKAGE_STRING='pgpool-II 4.0.17'
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
654LYNX
655PERL
656OSX
657XMLLINT
658XSLTPROC
659COLLATEINDEX
660CATALOG
661DOCBOOKSTYLE
662have_docbook
663can_build_docs_FALSE
664can_build_docs_TRUE
665JADE
666NSGMLS
667YFLAGS
668YACC
669LEXLIB
670LEX_OUTPUT_ROOT
671LEX
672CPP
673OTOOL64
674OTOOL
675LIPO
676NMEDIT
677DSYMUTIL
678MANIFEST_TOOL
679RANLIB
680ac_ct_AR
681AR
682DLLTOOL
683OBJDUMP
684LN_S
685NM
686ac_ct_DUMPBIN
687DUMPBIN
688LD
689FGREP
690EGREP
691GREP
692SED
693host_os
694host_vendor
695host_cpu
696host
697build_os
698build_vendor
699build_cpu
700build
701LIBTOOL
702AR_FLAGS
703MAINT
704MAINTAINER_MODE_FALSE
705MAINTAINER_MODE_TRUE
706AM_BACKSLASH
707AM_DEFAULT_VERBOSITY
708AM_DEFAULT_V
709AM_V
710am__untar
711am__tar
712AMTAR
713am__leading_dot
714SET_MAKE
715AWK
716mkdir_p
717MKDIR_P
718INSTALL_STRIP_PROGRAM
719STRIP
720install_sh
721MAKEINFO
722AUTOHEADER
723AUTOMAKE
724AUTOCONF
725ACLOCAL
726VERSION
727PACKAGE
728CYGPATH_W
729am__isrc
730INSTALL_DATA
731INSTALL_SCRIPT
732INSTALL_PROGRAM
733OBJEXT
734EXEEXT
735ac_ct_CC
736CPPFLAGS
737LDFLAGS
738CFLAGS
739CC
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL'
778ac_subst_files=''
779ac_user_opts='
780enable_option_checking
781enable_silent_rules
782enable_maintainer_mode
783enable_shared
784enable_static
785with_pic
786enable_fast_install
787with_gnu_ld
788with_sysroot
789enable_libtool_lock
790enable_float4_byval
791enable_float8_byval
792with_pgsql
793with_pgsql_includedir
794with_pgsql_libdir
795with_pgsql_bindir
796with_openssl
797with_pam
798with_memcached
799enable_rpath
800enable_sequence_lock
801enable_table_lock
802enable_cassert
803'
804      ac_precious_vars='build_alias
805host_alias
806target_alias
807CC
808CFLAGS
809LDFLAGS
810LIBS
811CPPFLAGS
812CPP
813YACC
814YFLAGS
815DOCBOOKSTYLE'
816
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821ac_unrecognized_opts=
822ac_unrecognized_sep=
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
845# (The list follows the same order as the GNU Coding Standards.)
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870  # If the previous option needs an argument, assign it.
871  if test -n "$ac_prev"; then
872    eval $ac_prev=\$ac_option
873    ac_prev=
874    continue
875  fi
876
877  case $ac_option in
878  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879  *=)   ac_optarg= ;;
880  *)    ac_optarg=yes ;;
881  esac
882
883  # Accept the important Cygnus configure options, so we can diagnose typos.
884
885  case $ac_dashdash$ac_option in
886  --)
887    ac_dashdash=yes ;;
888
889  -bindir | --bindir | --bindi | --bind | --bin | --bi)
890    ac_prev=bindir ;;
891  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892    bindir=$ac_optarg ;;
893
894  -build | --build | --buil | --bui | --bu)
895    ac_prev=build_alias ;;
896  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897    build_alias=$ac_optarg ;;
898
899  -cache-file | --cache-file | --cache-fil | --cache-fi \
900  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901    ac_prev=cache_file ;;
902  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904    cache_file=$ac_optarg ;;
905
906  --config-cache | -C)
907    cache_file=config.cache ;;
908
909  -datadir | --datadir | --datadi | --datad)
910    ac_prev=datadir ;;
911  -datadir=* | --datadir=* | --datadi=* | --datad=*)
912    datadir=$ac_optarg ;;
913
914  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915  | --dataroo | --dataro | --datar)
916    ac_prev=datarootdir ;;
917  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919    datarootdir=$ac_optarg ;;
920
921  -disable-* | --disable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=no ;;
936
937  -docdir | --docdir | --docdi | --doc | --do)
938    ac_prev=docdir ;;
939  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940    docdir=$ac_optarg ;;
941
942  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943    ac_prev=dvidir ;;
944  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945    dvidir=$ac_optarg ;;
946
947  -enable-* | --enable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: $ac_useropt"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=\$ac_optarg ;;
962
963  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965  | --exec | --exe | --ex)
966    ac_prev=exec_prefix ;;
967  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969  | --exec=* | --exe=* | --ex=*)
970    exec_prefix=$ac_optarg ;;
971
972  -gas | --gas | --ga | --g)
973    # Obsolete; use --with-gas.
974    with_gas=yes ;;
975
976  -help | --help | --hel | --he | -h)
977    ac_init_help=long ;;
978  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979    ac_init_help=recursive ;;
980  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981    ac_init_help=short ;;
982
983  -host | --host | --hos | --ho)
984    ac_prev=host_alias ;;
985  -host=* | --host=* | --hos=* | --ho=*)
986    host_alias=$ac_optarg ;;
987
988  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989    ac_prev=htmldir ;;
990  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991  | --ht=*)
992    htmldir=$ac_optarg ;;
993
994  -includedir | --includedir | --includedi | --included | --include \
995  | --includ | --inclu | --incl | --inc)
996    ac_prev=includedir ;;
997  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998  | --includ=* | --inclu=* | --incl=* | --inc=*)
999    includedir=$ac_optarg ;;
1000
1001  -infodir | --infodir | --infodi | --infod | --info | --inf)
1002    ac_prev=infodir ;;
1003  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004    infodir=$ac_optarg ;;
1005
1006  -libdir | --libdir | --libdi | --libd)
1007    ac_prev=libdir ;;
1008  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009    libdir=$ac_optarg ;;
1010
1011  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012  | --libexe | --libex | --libe)
1013    ac_prev=libexecdir ;;
1014  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015  | --libexe=* | --libex=* | --libe=*)
1016    libexecdir=$ac_optarg ;;
1017
1018  -localedir | --localedir | --localedi | --localed | --locale)
1019    ac_prev=localedir ;;
1020  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021    localedir=$ac_optarg ;;
1022
1023  -localstatedir | --localstatedir | --localstatedi | --localstated \
1024  | --localstate | --localstat | --localsta | --localst | --locals)
1025    ac_prev=localstatedir ;;
1026  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028    localstatedir=$ac_optarg ;;
1029
1030  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031    ac_prev=mandir ;;
1032  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033    mandir=$ac_optarg ;;
1034
1035  -nfp | --nfp | --nf)
1036    # Obsolete; use --without-fp.
1037    with_fp=no ;;
1038
1039  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040  | --no-cr | --no-c | -n)
1041    no_create=yes ;;
1042
1043  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045    no_recursion=yes ;;
1046
1047  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049  | --oldin | --oldi | --old | --ol | --o)
1050    ac_prev=oldincludedir ;;
1051  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054    oldincludedir=$ac_optarg ;;
1055
1056  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057    ac_prev=prefix ;;
1058  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059    prefix=$ac_optarg ;;
1060
1061  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062  | --program-pre | --program-pr | --program-p)
1063    ac_prev=program_prefix ;;
1064  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066    program_prefix=$ac_optarg ;;
1067
1068  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069  | --program-suf | --program-su | --program-s)
1070    ac_prev=program_suffix ;;
1071  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073    program_suffix=$ac_optarg ;;
1074
1075  -program-transform-name | --program-transform-name \
1076  | --program-transform-nam | --program-transform-na \
1077  | --program-transform-n | --program-transform- \
1078  | --program-transform | --program-transfor \
1079  | --program-transfo | --program-transf \
1080  | --program-trans | --program-tran \
1081  | --progr-tra | --program-tr | --program-t)
1082    ac_prev=program_transform_name ;;
1083  -program-transform-name=* | --program-transform-name=* \
1084  | --program-transform-nam=* | --program-transform-na=* \
1085  | --program-transform-n=* | --program-transform-=* \
1086  | --program-transform=* | --program-transfor=* \
1087  | --program-transfo=* | --program-transf=* \
1088  | --program-trans=* | --program-tran=* \
1089  | --progr-tra=* | --program-tr=* | --program-t=*)
1090    program_transform_name=$ac_optarg ;;
1091
1092  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093    ac_prev=pdfdir ;;
1094  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095    pdfdir=$ac_optarg ;;
1096
1097  -psdir | --psdir | --psdi | --psd | --ps)
1098    ac_prev=psdir ;;
1099  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100    psdir=$ac_optarg ;;
1101
1102  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103  | -silent | --silent | --silen | --sile | --sil)
1104    silent=yes ;;
1105
1106  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107    ac_prev=sbindir ;;
1108  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109  | --sbi=* | --sb=*)
1110    sbindir=$ac_optarg ;;
1111
1112  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114  | --sharedst | --shareds | --shared | --share | --shar \
1115  | --sha | --sh)
1116    ac_prev=sharedstatedir ;;
1117  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120  | --sha=* | --sh=*)
1121    sharedstatedir=$ac_optarg ;;
1122
1123  -site | --site | --sit)
1124    ac_prev=site ;;
1125  -site=* | --site=* | --sit=*)
1126    site=$ac_optarg ;;
1127
1128  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129    ac_prev=srcdir ;;
1130  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131    srcdir=$ac_optarg ;;
1132
1133  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134  | --syscon | --sysco | --sysc | --sys | --sy)
1135    ac_prev=sysconfdir ;;
1136  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138    sysconfdir=$ac_optarg ;;
1139
1140  -target | --target | --targe | --targ | --tar | --ta | --t)
1141    ac_prev=target_alias ;;
1142  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143    target_alias=$ac_optarg ;;
1144
1145  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146    verbose=yes ;;
1147
1148  -version | --version | --versio | --versi | --vers | -V)
1149    ac_init_version=: ;;
1150
1151  -with-* | --with-*)
1152    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153    # Reject names that are not valid shell variable names.
1154    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155      as_fn_error $? "invalid package name: $ac_useropt"
1156    ac_useropt_orig=$ac_useropt
1157    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158    case $ac_user_opts in
1159      *"
1160"with_$ac_useropt"
1161"*) ;;
1162      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163	 ac_unrecognized_sep=', ';;
1164    esac
1165    eval with_$ac_useropt=\$ac_optarg ;;
1166
1167  -without-* | --without-*)
1168    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169    # Reject names that are not valid shell variable names.
1170    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171      as_fn_error $? "invalid package name: $ac_useropt"
1172    ac_useropt_orig=$ac_useropt
1173    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174    case $ac_user_opts in
1175      *"
1176"with_$ac_useropt"
1177"*) ;;
1178      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179	 ac_unrecognized_sep=', ';;
1180    esac
1181    eval with_$ac_useropt=no ;;
1182
1183  --x)
1184    # Obsolete; use --with-x.
1185    with_x=yes ;;
1186
1187  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188  | --x-incl | --x-inc | --x-in | --x-i)
1189    ac_prev=x_includes ;;
1190  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192    x_includes=$ac_optarg ;;
1193
1194  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196    ac_prev=x_libraries ;;
1197  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199    x_libraries=$ac_optarg ;;
1200
1201  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information"
1203    ;;
1204
1205  *=*)
1206    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207    # Reject names that are not valid shell variable names.
1208    case $ac_envvar in #(
1209      '' | [0-9]* | *[!_$as_cr_alnum]* )
1210      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211    esac
1212    eval $ac_envvar=\$ac_optarg
1213    export $ac_envvar ;;
1214
1215  *)
1216    # FIXME: should be removed in autoconf 3.0.
1217    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221    ;;
1222
1223  esac
1224done
1225
1226if test -n "$ac_prev"; then
1227  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228  as_fn_error $? "missing argument to $ac_option"
1229fi
1230
1231if test -n "$ac_unrecognized_opts"; then
1232  case $enable_option_checking in
1233    no) ;;
1234    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236  esac
1237fi
1238
1239# Check all directory arguments for consistency.
1240for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241		datadir sysconfdir sharedstatedir localstatedir includedir \
1242		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243		libdir localedir mandir
1244do
1245  eval ac_val=\$$ac_var
1246  # Remove trailing slashes.
1247  case $ac_val in
1248    */ )
1249      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250      eval $ac_var=\$ac_val;;
1251  esac
1252  # Be sure to have absolute directory names.
1253  case $ac_val in
1254    [\\/$]* | ?:[\\/]* )  continue;;
1255    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256  esac
1257  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258done
1259
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
1266
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269  if test "x$build_alias" = x; then
1270    cross_compiling=maybe
1271  elif test "x$build_alias" != "x$host_alias"; then
1272    cross_compiling=yes
1273  fi
1274fi
1275
1276ac_tool_prefix=
1277test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279test "$silent" = yes && exec 6>/dev/null
1280
1281
1282ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283ac_ls_di=`ls -di .` &&
1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285  as_fn_error $? "working directory cannot be determined"
1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287  as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290# Find the source files, if location was not specified.
1291if test -z "$srcdir"; then
1292  ac_srcdir_defaulted=yes
1293  # Try the directory containing this script, then the parent directory.
1294  ac_confdir=`$as_dirname -- "$as_myself" ||
1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296	 X"$as_myself" : 'X\(//\)[^/]' \| \
1297	 X"$as_myself" : 'X\(//\)$' \| \
1298	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299$as_echo X"$as_myself" |
1300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)[^/].*/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)$/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\).*/{
1313	    s//\1/
1314	    q
1315	  }
1316	  s/.*/./; q'`
1317  srcdir=$ac_confdir
1318  if test ! -r "$srcdir/$ac_unique_file"; then
1319    srcdir=..
1320  fi
1321else
1322  ac_srcdir_defaulted=no
1323fi
1324if test ! -r "$srcdir/$ac_unique_file"; then
1325  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327fi
1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329ac_abs_confdir=`(
1330	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331	pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334  srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344  eval ac_env_${ac_var}_value=\$${ac_var}
1345  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
1348
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353  # Omit some internal or obsolete options to make the list less imposing.
1354  # This message is too long to be a string in the A/UX 3.1 sh.
1355  cat <<_ACEOF
1356\`configure' configures pgpool-II 4.0.17 to adapt to many kinds of systems.
1357
1358Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE.  See below for descriptions of some of the useful variables.
1362
1363Defaults for the options are specified in brackets.
1364
1365Configuration:
1366  -h, --help              display this help and exit
1367      --help=short        display options specific to this package
1368      --help=recursive    display the short help of all the included packages
1369  -V, --version           display version information and exit
1370  -q, --quiet, --silent   do not print \`checking ...' messages
1371      --cache-file=FILE   cache test results in FILE [disabled]
1372  -C, --config-cache      alias for \`--cache-file=config.cache'
1373  -n, --no-create         do not create output files
1374      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1375
1376Installation directories:
1377  --prefix=PREFIX         install architecture-independent files in PREFIX
1378                          [$ac_default_prefix]
1379  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1380                          [PREFIX]
1381
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
1386
1387For better control, use the options below.
1388
1389Fine tuning of the installation directories:
1390  --bindir=DIR            user executables [EPREFIX/bin]
1391  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1392  --libexecdir=DIR        program executables [EPREFIX/libexec]
1393  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1394  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1395  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1396  --libdir=DIR            object code libraries [EPREFIX/lib]
1397  --includedir=DIR        C header files [PREFIX/include]
1398  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401  --infodir=DIR           info documentation [DATAROOTDIR/info]
1402  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403  --mandir=DIR            man documentation [DATAROOTDIR/man]
1404  --docdir=DIR            documentation root [DATAROOTDIR/doc/pgpool-II]
1405  --htmldir=DIR           html documentation [DOCDIR]
1406  --dvidir=DIR            dvi documentation [DOCDIR]
1407  --pdfdir=DIR            pdf documentation [DOCDIR]
1408  --psdir=DIR             ps documentation [DOCDIR]
1409_ACEOF
1410
1411  cat <<\_ACEOF
1412
1413Program names:
1414  --program-prefix=PREFIX            prepend PREFIX to installed program names
1415  --program-suffix=SUFFIX            append SUFFIX to installed program names
1416  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1417
1418System types:
1419  --build=BUILD     configure for building on BUILD [guessed]
1420  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421_ACEOF
1422fi
1423
1424if test -n "$ac_init_help"; then
1425  case $ac_init_help in
1426     short | recursive ) echo "Configuration of pgpool-II 4.0.17:";;
1427   esac
1428  cat <<\_ACEOF
1429
1430Optional Features:
1431  --disable-option-checking  ignore unrecognized --enable/--with options
1432  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1433  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1434  --enable-silent-rules   less verbose build output (undo: "make V=1")
1435  --disable-silent-rules  verbose build output (undo: "make V=0")
1436  --enable-maintainer-mode
1437                          enable make rules and dependencies not useful (and
1438                          sometimes confusing) to the casual installer
1439  --enable-shared[=PKGS]  build shared libraries [default=yes]
1440  --enable-static[=PKGS]  build static libraries [default=yes]
1441  --enable-fast-install[=PKGS]
1442                          optimize for fast installation [default=yes]
1443  --disable-libtool-lock  avoid locking (might break parallel builds)
1444  --disable-float4-byval  disable float4 passed by value
1445  --disable-float8-byval  disable float8 passed by value
1446  --disable-rpath     do not embed shared library search path in executables
1447  --enable-sequence-lock  insert_lock compatible with pgpool-II 3.0 series
1448                          (until 3.0.4)
1449  --enable-table-lock     insert_lock compatible with pgpool-II 2.2 and 2.3
1450                          series
1451  --enable-cassert        build with assertion checks
1452
1453Optional Packages:
1454  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1455  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1456  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1457                          both]
1458  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1459  --with-sysroot=DIR Search for dependent libraries within DIR
1460                        (or the compiler's sysroot if not specified).
1461  --with-pgsql=DIR     site header files for PostgreSQL in DIR
1462  --with-pgsql-includedir=DIR     site header files for PostgreSQL in DIR
1463  --with-pgsql-libdir=DIR     site library files for PostgreSQL in DIR
1464  --with-pgsql-bindir=DIR     site executable files for PostgreSQL in DIR
1465  --with-openssl     build with OpenSSL support
1466  --with-pam     build with PAM support
1467  --with-memcached=DIR     site header files for libmemcached in DIR
1468
1469Some influential environment variables:
1470  CC          C compiler command
1471  CFLAGS      C compiler flags
1472  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1473              nonstandard directory <lib dir>
1474  LIBS        libraries to pass to the linker, e.g. -l<library>
1475  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1476              you have headers in a nonstandard directory <include dir>
1477  CPP         C preprocessor
1478  YACC        The `Yet Another Compiler Compiler' implementation to use.
1479              Defaults to the first program found out of: `bison -y', `byacc',
1480              `yacc'.
1481  YFLAGS      The list of arguments that will be passed by default to $YACC.
1482              This script will default YFLAGS to the empty string to avoid a
1483              default value of `-d' given by some make applications.
1484  DOCBOOKSTYLE
1485              location of DocBook stylesheets
1486
1487Use these variables to override the choices made by `configure' or to help
1488it to find libraries and programs with nonstandard names/locations.
1489
1490Report bugs to <pgpool-hackers@pgpool.net>.
1491_ACEOF
1492ac_status=$?
1493fi
1494
1495if test "$ac_init_help" = "recursive"; then
1496  # If there are subdirs, report their specific --help.
1497  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498    test -d "$ac_dir" ||
1499      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500      continue
1501    ac_builddir=.
1502
1503case "$ac_dir" in
1504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505*)
1506  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507  # A ".." for each directory in $ac_dir_suffix.
1508  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509  case $ac_top_builddir_sub in
1510  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512  esac ;;
1513esac
1514ac_abs_top_builddir=$ac_pwd
1515ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516# for backward compatibility:
1517ac_top_builddir=$ac_top_build_prefix
1518
1519case $srcdir in
1520  .)  # We are building in place.
1521    ac_srcdir=.
1522    ac_top_srcdir=$ac_top_builddir_sub
1523    ac_abs_top_srcdir=$ac_pwd ;;
1524  [\\/]* | ?:[\\/]* )  # Absolute name.
1525    ac_srcdir=$srcdir$ac_dir_suffix;
1526    ac_top_srcdir=$srcdir
1527    ac_abs_top_srcdir=$srcdir ;;
1528  *) # Relative name.
1529    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530    ac_top_srcdir=$ac_top_build_prefix$srcdir
1531    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532esac
1533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535    cd "$ac_dir" || { ac_status=$?; continue; }
1536    # Check for guested configure.
1537    if test -f "$ac_srcdir/configure.gnu"; then
1538      echo &&
1539      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540    elif test -f "$ac_srcdir/configure"; then
1541      echo &&
1542      $SHELL "$ac_srcdir/configure" --help=recursive
1543    else
1544      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545    fi || ac_status=$?
1546    cd "$ac_pwd" || { ac_status=$?; break; }
1547  done
1548fi
1549
1550test -n "$ac_init_help" && exit $ac_status
1551if $ac_init_version; then
1552  cat <<\_ACEOF
1553pgpool-II configure 4.0.17
1554generated by GNU Autoconf 2.69
1555
1556Copyright (C) 2012 Free Software Foundation, Inc.
1557This configure script is free software; the Free Software Foundation
1558gives unlimited permission to copy, distribute and modify it.
1559_ACEOF
1560  exit
1561fi
1562
1563## ------------------------ ##
1564## Autoconf initialization. ##
1565## ------------------------ ##
1566
1567# ac_fn_c_try_compile LINENO
1568# --------------------------
1569# Try to compile conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_compile ()
1571{
1572  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573  rm -f conftest.$ac_objext
1574  if { { ac_try="$ac_compile"
1575case "(($ac_try" in
1576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577  *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581  (eval "$ac_compile") 2>conftest.err
1582  ac_status=$?
1583  if test -s conftest.err; then
1584    grep -v '^ *+' conftest.err >conftest.er1
1585    cat conftest.er1 >&5
1586    mv -f conftest.er1 conftest.err
1587  fi
1588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589  test $ac_status = 0; } && {
1590	 test -z "$ac_c_werror_flag" ||
1591	 test ! -s conftest.err
1592       } && test -s conftest.$ac_objext; then :
1593  ac_retval=0
1594else
1595  $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598	ac_retval=1
1599fi
1600  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601  as_fn_set_status $ac_retval
1602
1603} # ac_fn_c_try_compile
1604
1605# ac_fn_c_try_link LINENO
1606# -----------------------
1607# Try to link conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_link ()
1609{
1610  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611  rm -f conftest.$ac_objext conftest$ac_exeext
1612  if { { ac_try="$ac_link"
1613case "(($ac_try" in
1614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615  *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619  (eval "$ac_link") 2>conftest.err
1620  ac_status=$?
1621  if test -s conftest.err; then
1622    grep -v '^ *+' conftest.err >conftest.er1
1623    cat conftest.er1 >&5
1624    mv -f conftest.er1 conftest.err
1625  fi
1626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627  test $ac_status = 0; } && {
1628	 test -z "$ac_c_werror_flag" ||
1629	 test ! -s conftest.err
1630       } && test -s conftest$ac_exeext && {
1631	 test "$cross_compiling" = yes ||
1632	 test -x conftest$ac_exeext
1633       }; then :
1634  ac_retval=0
1635else
1636  $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
1638
1639	ac_retval=1
1640fi
1641  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1642  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1643  # interfere with the next link command; also delete a directory that is
1644  # left behind by Apple's compiler.  We do this before executing the actions.
1645  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647  as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_link
1650
1651# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1652# -------------------------------------------------------
1653# Tests whether HEADER exists and can be compiled using the include files in
1654# INCLUDES, setting the cache variable VAR accordingly.
1655ac_fn_c_check_header_compile ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659$as_echo_n "checking for $2... " >&6; }
1660if eval \${$3+:} false; then :
1661  $as_echo_n "(cached) " >&6
1662else
1663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664/* end confdefs.h.  */
1665$4
1666#include <$2>
1667_ACEOF
1668if ac_fn_c_try_compile "$LINENO"; then :
1669  eval "$3=yes"
1670else
1671  eval "$3=no"
1672fi
1673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674fi
1675eval ac_res=\$$3
1676	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677$as_echo "$ac_res" >&6; }
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680} # ac_fn_c_check_header_compile
1681
1682# ac_fn_c_try_cpp LINENO
1683# ----------------------
1684# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_cpp ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  if { { ac_try="$ac_cpp conftest.$ac_ext"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696  ac_status=$?
1697  if test -s conftest.err; then
1698    grep -v '^ *+' conftest.err >conftest.er1
1699    cat conftest.er1 >&5
1700    mv -f conftest.er1 conftest.err
1701  fi
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } > conftest.i && {
1704	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705	 test ! -s conftest.err
1706       }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712    ac_retval=1
1713fi
1714  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715  as_fn_set_status $ac_retval
1716
1717} # ac_fn_c_try_cpp
1718
1719# ac_fn_c_try_run LINENO
1720# ----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722# that executables *can* be run.
1723ac_fn_c_try_run ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729  *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733  (eval "$ac_link") 2>&5
1734  ac_status=$?
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737  { { case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_try") 2>&5
1744  ac_status=$?
1745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746  test $ac_status = 0; }; }; then :
1747  ac_retval=0
1748else
1749  $as_echo "$as_me: program exited with status $ac_status" >&5
1750       $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753       ac_retval=$ac_status
1754fi
1755  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757  as_fn_set_status $ac_retval
1758
1759} # ac_fn_c_try_run
1760
1761# ac_fn_c_check_func LINENO FUNC VAR
1762# ----------------------------------
1763# Tests whether FUNC exists, setting the cache variable VAR accordingly
1764ac_fn_c_check_func ()
1765{
1766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
1769if eval \${$3+:} false; then :
1770  $as_echo_n "(cached) " >&6
1771else
1772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h.  */
1774/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1775   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1776#define $2 innocuous_$2
1777
1778/* System header to define __stub macros and hopefully few prototypes,
1779    which can conflict with char $2 (); below.
1780    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1781    <limits.h> exists even on freestanding compilers.  */
1782
1783#ifdef __STDC__
1784# include <limits.h>
1785#else
1786# include <assert.h>
1787#endif
1788
1789#undef $2
1790
1791/* Override any GCC internal prototype to avoid an error.
1792   Use char because int might match the return type of a GCC
1793   builtin and then its argument prototype would still apply.  */
1794#ifdef __cplusplus
1795extern "C"
1796#endif
1797char $2 ();
1798/* The GNU C library defines this for functions which it implements
1799    to always fail with ENOSYS.  Some functions are actually named
1800    something starting with __ and the normal name is an alias.  */
1801#if defined __stub_$2 || defined __stub___$2
1802choke me
1803#endif
1804
1805int
1806main ()
1807{
1808return $2 ();
1809  ;
1810  return 0;
1811}
1812_ACEOF
1813if ac_fn_c_try_link "$LINENO"; then :
1814  eval "$3=yes"
1815else
1816  eval "$3=no"
1817fi
1818rm -f core conftest.err conftest.$ac_objext \
1819    conftest$ac_exeext conftest.$ac_ext
1820fi
1821eval ac_res=\$$3
1822	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823$as_echo "$ac_res" >&6; }
1824  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826} # ac_fn_c_check_func
1827
1828# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1829# -------------------------------------------------------
1830# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1831# the include files in INCLUDES and setting the cache variable VAR
1832# accordingly.
1833ac_fn_c_check_header_mongrel ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  if eval \${$3+:} false; then :
1837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838$as_echo_n "checking for $2... " >&6; }
1839if eval \${$3+:} false; then :
1840  $as_echo_n "(cached) " >&6
1841fi
1842eval ac_res=\$$3
1843	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844$as_echo "$ac_res" >&6; }
1845else
1846  # Is the header compilable?
1847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1848$as_echo_n "checking $2 usability... " >&6; }
1849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851$4
1852#include <$2>
1853_ACEOF
1854if ac_fn_c_try_compile "$LINENO"; then :
1855  ac_header_compiler=yes
1856else
1857  ac_header_compiler=no
1858fi
1859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1861$as_echo "$ac_header_compiler" >&6; }
1862
1863# Is the header present?
1864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1865$as_echo_n "checking $2 presence... " >&6; }
1866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h.  */
1868#include <$2>
1869_ACEOF
1870if ac_fn_c_try_cpp "$LINENO"; then :
1871  ac_header_preproc=yes
1872else
1873  ac_header_preproc=no
1874fi
1875rm -f conftest.err conftest.i conftest.$ac_ext
1876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1877$as_echo "$ac_header_preproc" >&6; }
1878
1879# So?  What about this header?
1880case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1881  yes:no: )
1882    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1883$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1884    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886    ;;
1887  no:yes:* )
1888    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1889$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1890    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1891$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1892    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1893$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1894    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1895$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1896    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898( $as_echo "## ---------------------------------------- ##
1899## Report this to pgpool-hackers@pgpool.net ##
1900## ---------------------------------------- ##"
1901     ) | sed "s/^/$as_me: WARNING:     /" >&2
1902    ;;
1903esac
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if eval \${$3+:} false; then :
1907  $as_echo_n "(cached) " >&6
1908else
1909  eval "$3=\$ac_header_compiler"
1910fi
1911eval ac_res=\$$3
1912	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913$as_echo "$ac_res" >&6; }
1914fi
1915  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917} # ac_fn_c_check_header_mongrel
1918
1919# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1920# -------------------------------------------
1921# Tests whether TYPE exists after having included INCLUDES, setting cache
1922# variable VAR accordingly.
1923ac_fn_c_check_type ()
1924{
1925  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; }
1928if eval \${$3+:} false; then :
1929  $as_echo_n "(cached) " >&6
1930else
1931  eval "$3=no"
1932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934$4
1935int
1936main ()
1937{
1938if (sizeof ($2))
1939	 return 0;
1940  ;
1941  return 0;
1942}
1943_ACEOF
1944if ac_fn_c_try_compile "$LINENO"; then :
1945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h.  */
1947$4
1948int
1949main ()
1950{
1951if (sizeof (($2)))
1952	    return 0;
1953  ;
1954  return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958
1959else
1960  eval "$3=yes"
1961fi
1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965fi
1966eval ac_res=\$$3
1967	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968$as_echo "$ac_res" >&6; }
1969  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971} # ac_fn_c_check_type
1972
1973# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1974# --------------------------------------------
1975# Tries to find the compile-time value of EXPR in a program that includes
1976# INCLUDES, setting VAR accordingly. Returns whether the value could be
1977# computed
1978ac_fn_c_compute_int ()
1979{
1980  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981  if test "$cross_compiling" = yes; then
1982    # Depending upon the size, compute the lo and hi bounds.
1983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984/* end confdefs.h.  */
1985$4
1986int
1987main ()
1988{
1989static int test_array [1 - 2 * !(($2) >= 0)];
1990test_array [0] = 0;
1991return test_array [0];
1992
1993  ;
1994  return 0;
1995}
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998  ac_lo=0 ac_mid=0
1999  while :; do
2000    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h.  */
2002$4
2003int
2004main ()
2005{
2006static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2007test_array [0] = 0;
2008return test_array [0];
2009
2010  ;
2011  return 0;
2012}
2013_ACEOF
2014if ac_fn_c_try_compile "$LINENO"; then :
2015  ac_hi=$ac_mid; break
2016else
2017  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2018			if test $ac_lo -le $ac_mid; then
2019			  ac_lo= ac_hi=
2020			  break
2021			fi
2022			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025  done
2026else
2027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h.  */
2029$4
2030int
2031main ()
2032{
2033static int test_array [1 - 2 * !(($2) < 0)];
2034test_array [0] = 0;
2035return test_array [0];
2036
2037  ;
2038  return 0;
2039}
2040_ACEOF
2041if ac_fn_c_try_compile "$LINENO"; then :
2042  ac_hi=-1 ac_mid=-1
2043  while :; do
2044    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h.  */
2046$4
2047int
2048main ()
2049{
2050static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2051test_array [0] = 0;
2052return test_array [0];
2053
2054  ;
2055  return 0;
2056}
2057_ACEOF
2058if ac_fn_c_try_compile "$LINENO"; then :
2059  ac_lo=$ac_mid; break
2060else
2061  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2062			if test $ac_mid -le $ac_hi; then
2063			  ac_lo= ac_hi=
2064			  break
2065			fi
2066			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069  done
2070else
2071  ac_lo= ac_hi=
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076# Binary search between lo and hi bounds.
2077while test "x$ac_lo" != "x$ac_hi"; do
2078  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h.  */
2081$4
2082int
2083main ()
2084{
2085static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086test_array [0] = 0;
2087return test_array [0];
2088
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094  ac_hi=$ac_mid
2095else
2096  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099done
2100case $ac_lo in #((
2101?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2102'') ac_retval=1 ;;
2103esac
2104  else
2105    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106/* end confdefs.h.  */
2107$4
2108static long int longval () { return $2; }
2109static unsigned long int ulongval () { return $2; }
2110#include <stdio.h>
2111#include <stdlib.h>
2112int
2113main ()
2114{
2115
2116  FILE *f = fopen ("conftest.val", "w");
2117  if (! f)
2118    return 1;
2119  if (($2) < 0)
2120    {
2121      long int i = longval ();
2122      if (i != ($2))
2123	return 1;
2124      fprintf (f, "%ld", i);
2125    }
2126  else
2127    {
2128      unsigned long int i = ulongval ();
2129      if (i != ($2))
2130	return 1;
2131      fprintf (f, "%lu", i);
2132    }
2133  /* Do not output a trailing newline, as this causes \r\n confusion
2134     on some platforms.  */
2135  return ferror (f) || fclose (f) != 0;
2136
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_run "$LINENO"; then :
2142  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2143else
2144  ac_retval=1
2145fi
2146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2147  conftest.$ac_objext conftest.beam conftest.$ac_ext
2148rm -f conftest.val
2149
2150  fi
2151  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152  as_fn_set_status $ac_retval
2153
2154} # ac_fn_c_compute_int
2155
2156# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2157# ----------------------------------------------------
2158# Tries to find if the field MEMBER exists in type AGGR, after including
2159# INCLUDES, setting cache variable VAR accordingly.
2160ac_fn_c_check_member ()
2161{
2162  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2164$as_echo_n "checking for $2.$3... " >&6; }
2165if eval \${$4+:} false; then :
2166  $as_echo_n "(cached) " >&6
2167else
2168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h.  */
2170$5
2171int
2172main ()
2173{
2174static $2 ac_aggr;
2175if (ac_aggr.$3)
2176return 0;
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182  eval "$4=yes"
2183else
2184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185/* end confdefs.h.  */
2186$5
2187int
2188main ()
2189{
2190static $2 ac_aggr;
2191if (sizeof ac_aggr.$3)
2192return 0;
2193  ;
2194  return 0;
2195}
2196_ACEOF
2197if ac_fn_c_try_compile "$LINENO"; then :
2198  eval "$4=yes"
2199else
2200  eval "$4=no"
2201fi
2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205fi
2206eval ac_res=\$$4
2207	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208$as_echo "$ac_res" >&6; }
2209  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210
2211} # ac_fn_c_check_member
2212cat >config.log <<_ACEOF
2213This file contains any messages produced by compilers while
2214running configure, to aid debugging if configure makes a mistake.
2215
2216It was created by pgpool-II $as_me 4.0.17, which was
2217generated by GNU Autoconf 2.69.  Invocation command line was
2218
2219  $ $0 $@
2220
2221_ACEOF
2222exec 5>>config.log
2223{
2224cat <<_ASUNAME
2225## --------- ##
2226## Platform. ##
2227## --------- ##
2228
2229hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2230uname -m = `(uname -m) 2>/dev/null || echo unknown`
2231uname -r = `(uname -r) 2>/dev/null || echo unknown`
2232uname -s = `(uname -s) 2>/dev/null || echo unknown`
2233uname -v = `(uname -v) 2>/dev/null || echo unknown`
2234
2235/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2236/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2237
2238/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2239/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2240/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2241/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2242/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2243/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2244/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2245
2246_ASUNAME
2247
2248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249for as_dir in $PATH
2250do
2251  IFS=$as_save_IFS
2252  test -z "$as_dir" && as_dir=.
2253    $as_echo "PATH: $as_dir"
2254  done
2255IFS=$as_save_IFS
2256
2257} >&5
2258
2259cat >&5 <<_ACEOF
2260
2261
2262## ----------- ##
2263## Core tests. ##
2264## ----------- ##
2265
2266_ACEOF
2267
2268
2269# Keep a trace of the command line.
2270# Strip out --no-create and --no-recursion so they do not pile up.
2271# Strip out --silent because we don't want to record it for future runs.
2272# Also quote any args containing shell meta-characters.
2273# Make two passes to allow for proper duplicate-argument suppression.
2274ac_configure_args=
2275ac_configure_args0=
2276ac_configure_args1=
2277ac_must_keep_next=false
2278for ac_pass in 1 2
2279do
2280  for ac_arg
2281  do
2282    case $ac_arg in
2283    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2284    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2285    | -silent | --silent | --silen | --sile | --sil)
2286      continue ;;
2287    *\'*)
2288      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2289    esac
2290    case $ac_pass in
2291    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2292    2)
2293      as_fn_append ac_configure_args1 " '$ac_arg'"
2294      if test $ac_must_keep_next = true; then
2295	ac_must_keep_next=false # Got value, back to normal.
2296      else
2297	case $ac_arg in
2298	  *=* | --config-cache | -C | -disable-* | --disable-* \
2299	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2300	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2301	  | -with-* | --with-* | -without-* | --without-* | --x)
2302	    case "$ac_configure_args0 " in
2303	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2304	    esac
2305	    ;;
2306	  -* ) ac_must_keep_next=true ;;
2307	esac
2308      fi
2309      as_fn_append ac_configure_args " '$ac_arg'"
2310      ;;
2311    esac
2312  done
2313done
2314{ ac_configure_args0=; unset ac_configure_args0;}
2315{ ac_configure_args1=; unset ac_configure_args1;}
2316
2317# When interrupted or exit'd, cleanup temporary files, and complete
2318# config.log.  We remove comments because anyway the quotes in there
2319# would cause problems or look ugly.
2320# WARNING: Use '\'' to represent an apostrophe within the trap.
2321# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2322trap 'exit_status=$?
2323  # Save into config.log some information that might help in debugging.
2324  {
2325    echo
2326
2327    $as_echo "## ---------------- ##
2328## Cache variables. ##
2329## ---------------- ##"
2330    echo
2331    # The following way of writing the cache mishandles newlines in values,
2332(
2333  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2334    eval ac_val=\$$ac_var
2335    case $ac_val in #(
2336    *${as_nl}*)
2337      case $ac_var in #(
2338      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2339$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2340      esac
2341      case $ac_var in #(
2342      _ | IFS | as_nl) ;; #(
2343      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2344      *) { eval $ac_var=; unset $ac_var;} ;;
2345      esac ;;
2346    esac
2347  done
2348  (set) 2>&1 |
2349    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2350    *${as_nl}ac_space=\ *)
2351      sed -n \
2352	"s/'\''/'\''\\\\'\'''\''/g;
2353	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2354      ;; #(
2355    *)
2356      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2357      ;;
2358    esac |
2359    sort
2360)
2361    echo
2362
2363    $as_echo "## ----------------- ##
2364## Output variables. ##
2365## ----------------- ##"
2366    echo
2367    for ac_var in $ac_subst_vars
2368    do
2369      eval ac_val=\$$ac_var
2370      case $ac_val in
2371      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2372      esac
2373      $as_echo "$ac_var='\''$ac_val'\''"
2374    done | sort
2375    echo
2376
2377    if test -n "$ac_subst_files"; then
2378      $as_echo "## ------------------- ##
2379## File substitutions. ##
2380## ------------------- ##"
2381      echo
2382      for ac_var in $ac_subst_files
2383      do
2384	eval ac_val=\$$ac_var
2385	case $ac_val in
2386	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2387	esac
2388	$as_echo "$ac_var='\''$ac_val'\''"
2389      done | sort
2390      echo
2391    fi
2392
2393    if test -s confdefs.h; then
2394      $as_echo "## ----------- ##
2395## confdefs.h. ##
2396## ----------- ##"
2397      echo
2398      cat confdefs.h
2399      echo
2400    fi
2401    test "$ac_signal" != 0 &&
2402      $as_echo "$as_me: caught signal $ac_signal"
2403    $as_echo "$as_me: exit $exit_status"
2404  } >&5
2405  rm -f core *.core core.conftest.* &&
2406    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2407    exit $exit_status
2408' 0
2409for ac_signal in 1 2 13 15; do
2410  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2411done
2412ac_signal=0
2413
2414# confdefs.h avoids OS command line length limits that DEFS can exceed.
2415rm -f -r conftest* confdefs.h
2416
2417$as_echo "/* confdefs.h */" > confdefs.h
2418
2419# Predefined preprocessor variables.
2420
2421cat >>confdefs.h <<_ACEOF
2422#define PACKAGE_NAME "$PACKAGE_NAME"
2423_ACEOF
2424
2425cat >>confdefs.h <<_ACEOF
2426#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2427_ACEOF
2428
2429cat >>confdefs.h <<_ACEOF
2430#define PACKAGE_VERSION "$PACKAGE_VERSION"
2431_ACEOF
2432
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE_STRING "$PACKAGE_STRING"
2435_ACEOF
2436
2437cat >>confdefs.h <<_ACEOF
2438#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2439_ACEOF
2440
2441cat >>confdefs.h <<_ACEOF
2442#define PACKAGE_URL "$PACKAGE_URL"
2443_ACEOF
2444
2445
2446# Let the site file select an alternate cache file if it wants to.
2447# Prefer an explicitly selected file to automatically selected ones.
2448ac_site_file1=NONE
2449ac_site_file2=NONE
2450if test -n "$CONFIG_SITE"; then
2451  # We do not want a PATH search for config.site.
2452  case $CONFIG_SITE in #((
2453    -*)  ac_site_file1=./$CONFIG_SITE;;
2454    */*) ac_site_file1=$CONFIG_SITE;;
2455    *)   ac_site_file1=./$CONFIG_SITE;;
2456  esac
2457elif test "x$prefix" != xNONE; then
2458  ac_site_file1=$prefix/share/config.site
2459  ac_site_file2=$prefix/etc/config.site
2460else
2461  ac_site_file1=$ac_default_prefix/share/config.site
2462  ac_site_file2=$ac_default_prefix/etc/config.site
2463fi
2464for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2465do
2466  test "x$ac_site_file" = xNONE && continue
2467  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2468    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2469$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2470    sed 's/^/| /' "$ac_site_file" >&5
2471    . "$ac_site_file" \
2472      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2474as_fn_error $? "failed to load site script $ac_site_file
2475See \`config.log' for more details" "$LINENO" 5; }
2476  fi
2477done
2478
2479if test -r "$cache_file"; then
2480  # Some versions of bash will fail to source /dev/null (special files
2481  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2482  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2483    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2484$as_echo "$as_me: loading cache $cache_file" >&6;}
2485    case $cache_file in
2486      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2487      *)                      . "./$cache_file";;
2488    esac
2489  fi
2490else
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2492$as_echo "$as_me: creating cache $cache_file" >&6;}
2493  >$cache_file
2494fi
2495
2496# Check that the precious variables saved in the cache have kept the same
2497# value.
2498ac_cache_corrupted=false
2499for ac_var in $ac_precious_vars; do
2500  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2501  eval ac_new_set=\$ac_env_${ac_var}_set
2502  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2503  eval ac_new_val=\$ac_env_${ac_var}_value
2504  case $ac_old_set,$ac_new_set in
2505    set,)
2506      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2507$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2508      ac_cache_corrupted=: ;;
2509    ,set)
2510      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2511$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2512      ac_cache_corrupted=: ;;
2513    ,);;
2514    *)
2515      if test "x$ac_old_val" != "x$ac_new_val"; then
2516	# differences in whitespace do not lead to failure.
2517	ac_old_val_w=`echo x $ac_old_val`
2518	ac_new_val_w=`echo x $ac_new_val`
2519	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2520	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2521$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2522	  ac_cache_corrupted=:
2523	else
2524	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2525$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2526	  eval $ac_var=\$ac_old_val
2527	fi
2528	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2529$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2530	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2531$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2532      fi;;
2533  esac
2534  # Pass precious variables to config.status.
2535  if test "$ac_new_set" = set; then
2536    case $ac_new_val in
2537    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2538    *) ac_arg=$ac_var=$ac_new_val ;;
2539    esac
2540    case " $ac_configure_args " in
2541      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2542      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2543    esac
2544  fi
2545done
2546if $ac_cache_corrupted; then
2547  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2550$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2551  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2552fi
2553## -------------------- ##
2554## Main body of script. ##
2555## -------------------- ##
2556
2557ac_ext=c
2558ac_cpp='$CPP $CPPFLAGS'
2559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561ac_compiler_gnu=$ac_cv_c_compiler_gnu
2562
2563
2564
2565ac_ext=c
2566ac_cpp='$CPP $CPPFLAGS'
2567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570if test -n "$ac_tool_prefix"; then
2571  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2572set dummy ${ac_tool_prefix}gcc; ac_word=$2
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574$as_echo_n "checking for $ac_word... " >&6; }
2575if ${ac_cv_prog_CC+:} false; then :
2576  $as_echo_n "(cached) " >&6
2577else
2578  if test -n "$CC"; then
2579  ac_cv_prog_CC="$CC" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584  IFS=$as_save_IFS
2585  test -z "$as_dir" && as_dir=.
2586    for ac_exec_ext in '' $ac_executable_extensions; do
2587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590    break 2
2591  fi
2592done
2593  done
2594IFS=$as_save_IFS
2595
2596fi
2597fi
2598CC=$ac_cv_prog_CC
2599if test -n "$CC"; then
2600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2601$as_echo "$CC" >&6; }
2602else
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604$as_echo "no" >&6; }
2605fi
2606
2607
2608fi
2609if test -z "$ac_cv_prog_CC"; then
2610  ac_ct_CC=$CC
2611  # Extract the first word of "gcc", so it can be a program name with args.
2612set dummy gcc; ac_word=$2
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614$as_echo_n "checking for $ac_word... " >&6; }
2615if ${ac_cv_prog_ac_ct_CC+:} false; then :
2616  $as_echo_n "(cached) " >&6
2617else
2618  if test -n "$ac_ct_CC"; then
2619  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2620else
2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624  IFS=$as_save_IFS
2625  test -z "$as_dir" && as_dir=.
2626    for ac_exec_ext in '' $ac_executable_extensions; do
2627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628    ac_cv_prog_ac_ct_CC="gcc"
2629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630    break 2
2631  fi
2632done
2633  done
2634IFS=$as_save_IFS
2635
2636fi
2637fi
2638ac_ct_CC=$ac_cv_prog_ac_ct_CC
2639if test -n "$ac_ct_CC"; then
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2641$as_echo "$ac_ct_CC" >&6; }
2642else
2643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644$as_echo "no" >&6; }
2645fi
2646
2647  if test "x$ac_ct_CC" = x; then
2648    CC=""
2649  else
2650    case $cross_compiling:$ac_tool_warned in
2651yes:)
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2654ac_tool_warned=yes ;;
2655esac
2656    CC=$ac_ct_CC
2657  fi
2658else
2659  CC="$ac_cv_prog_CC"
2660fi
2661
2662if test -z "$CC"; then
2663          if test -n "$ac_tool_prefix"; then
2664    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2665set dummy ${ac_tool_prefix}cc; ac_word=$2
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667$as_echo_n "checking for $ac_word... " >&6; }
2668if ${ac_cv_prog_CC+:} false; then :
2669  $as_echo_n "(cached) " >&6
2670else
2671  if test -n "$CC"; then
2672  ac_cv_prog_CC="$CC" # Let the user override the test.
2673else
2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677  IFS=$as_save_IFS
2678  test -z "$as_dir" && as_dir=.
2679    for ac_exec_ext in '' $ac_executable_extensions; do
2680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2681    ac_cv_prog_CC="${ac_tool_prefix}cc"
2682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683    break 2
2684  fi
2685done
2686  done
2687IFS=$as_save_IFS
2688
2689fi
2690fi
2691CC=$ac_cv_prog_CC
2692if test -n "$CC"; then
2693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2694$as_echo "$CC" >&6; }
2695else
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697$as_echo "no" >&6; }
2698fi
2699
2700
2701  fi
2702fi
2703if test -z "$CC"; then
2704  # Extract the first word of "cc", so it can be a program name with args.
2705set dummy cc; ac_word=$2
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707$as_echo_n "checking for $ac_word... " >&6; }
2708if ${ac_cv_prog_CC+:} false; then :
2709  $as_echo_n "(cached) " >&6
2710else
2711  if test -n "$CC"; then
2712  ac_cv_prog_CC="$CC" # Let the user override the test.
2713else
2714  ac_prog_rejected=no
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718  IFS=$as_save_IFS
2719  test -z "$as_dir" && as_dir=.
2720    for ac_exec_ext in '' $ac_executable_extensions; do
2721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2723       ac_prog_rejected=yes
2724       continue
2725     fi
2726    ac_cv_prog_CC="cc"
2727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728    break 2
2729  fi
2730done
2731  done
2732IFS=$as_save_IFS
2733
2734if test $ac_prog_rejected = yes; then
2735  # We found a bogon in the path, so make sure we never use it.
2736  set dummy $ac_cv_prog_CC
2737  shift
2738  if test $# != 0; then
2739    # We chose a different compiler from the bogus one.
2740    # However, it has the same basename, so the bogon will be chosen
2741    # first if we set CC to just the basename; use the full file name.
2742    shift
2743    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2744  fi
2745fi
2746fi
2747fi
2748CC=$ac_cv_prog_CC
2749if test -n "$CC"; then
2750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2751$as_echo "$CC" >&6; }
2752else
2753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754$as_echo "no" >&6; }
2755fi
2756
2757
2758fi
2759if test -z "$CC"; then
2760  if test -n "$ac_tool_prefix"; then
2761  for ac_prog in cl.exe
2762  do
2763    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2764set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766$as_echo_n "checking for $ac_word... " >&6; }
2767if ${ac_cv_prog_CC+:} false; then :
2768  $as_echo_n "(cached) " >&6
2769else
2770  if test -n "$CC"; then
2771  ac_cv_prog_CC="$CC" # Let the user override the test.
2772else
2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH
2775do
2776  IFS=$as_save_IFS
2777  test -z "$as_dir" && as_dir=.
2778    for ac_exec_ext in '' $ac_executable_extensions; do
2779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782    break 2
2783  fi
2784done
2785  done
2786IFS=$as_save_IFS
2787
2788fi
2789fi
2790CC=$ac_cv_prog_CC
2791if test -n "$CC"; then
2792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2793$as_echo "$CC" >&6; }
2794else
2795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796$as_echo "no" >&6; }
2797fi
2798
2799
2800    test -n "$CC" && break
2801  done
2802fi
2803if test -z "$CC"; then
2804  ac_ct_CC=$CC
2805  for ac_prog in cl.exe
2806do
2807  # Extract the first word of "$ac_prog", so it can be a program name with args.
2808set dummy $ac_prog; ac_word=$2
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810$as_echo_n "checking for $ac_word... " >&6; }
2811if ${ac_cv_prog_ac_ct_CC+:} false; then :
2812  $as_echo_n "(cached) " >&6
2813else
2814  if test -n "$ac_ct_CC"; then
2815  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2816else
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820  IFS=$as_save_IFS
2821  test -z "$as_dir" && as_dir=.
2822    for ac_exec_ext in '' $ac_executable_extensions; do
2823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824    ac_cv_prog_ac_ct_CC="$ac_prog"
2825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826    break 2
2827  fi
2828done
2829  done
2830IFS=$as_save_IFS
2831
2832fi
2833fi
2834ac_ct_CC=$ac_cv_prog_ac_ct_CC
2835if test -n "$ac_ct_CC"; then
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2837$as_echo "$ac_ct_CC" >&6; }
2838else
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840$as_echo "no" >&6; }
2841fi
2842
2843
2844  test -n "$ac_ct_CC" && break
2845done
2846
2847  if test "x$ac_ct_CC" = x; then
2848    CC=""
2849  else
2850    case $cross_compiling:$ac_tool_warned in
2851yes:)
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2854ac_tool_warned=yes ;;
2855esac
2856    CC=$ac_ct_CC
2857  fi
2858fi
2859
2860fi
2861
2862
2863test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865as_fn_error $? "no acceptable C compiler found in \$PATH
2866See \`config.log' for more details" "$LINENO" 5; }
2867
2868# Provide some information about the compiler.
2869$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2870set X $ac_compile
2871ac_compiler=$2
2872for ac_option in --version -v -V -qversion; do
2873  { { ac_try="$ac_compiler $ac_option >&5"
2874case "(($ac_try" in
2875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876  *) ac_try_echo=$ac_try;;
2877esac
2878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879$as_echo "$ac_try_echo"; } >&5
2880  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2881  ac_status=$?
2882  if test -s conftest.err; then
2883    sed '10a\
2884... rest of stderr output deleted ...
2885         10q' conftest.err >conftest.er1
2886    cat conftest.er1 >&5
2887  fi
2888  rm -f conftest.er1 conftest.err
2889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2890  test $ac_status = 0; }
2891done
2892
2893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894/* end confdefs.h.  */
2895
2896int
2897main ()
2898{
2899
2900  ;
2901  return 0;
2902}
2903_ACEOF
2904ac_clean_files_save=$ac_clean_files
2905ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2906# Try to create an executable without -o first, disregard a.out.
2907# It will help us diagnose broken compilers, and finding out an intuition
2908# of exeext.
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2910$as_echo_n "checking whether the C compiler works... " >&6; }
2911ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2912
2913# The possible output files:
2914ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2915
2916ac_rmfiles=
2917for ac_file in $ac_files
2918do
2919  case $ac_file in
2920    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2921    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2922  esac
2923done
2924rm -f $ac_rmfiles
2925
2926if { { ac_try="$ac_link_default"
2927case "(($ac_try" in
2928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929  *) ac_try_echo=$ac_try;;
2930esac
2931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2932$as_echo "$ac_try_echo"; } >&5
2933  (eval "$ac_link_default") 2>&5
2934  ac_status=$?
2935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2936  test $ac_status = 0; }; then :
2937  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2938# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2939# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2940# so that the user can short-circuit this test for compilers unknown to
2941# Autoconf.
2942for ac_file in $ac_files ''
2943do
2944  test -f "$ac_file" || continue
2945  case $ac_file in
2946    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2947	;;
2948    [ab].out )
2949	# We found the default executable, but exeext='' is most
2950	# certainly right.
2951	break;;
2952    *.* )
2953	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2954	then :; else
2955	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2956	fi
2957	# We set ac_cv_exeext here because the later test for it is not
2958	# safe: cross compilers may not add the suffix if given an `-o'
2959	# argument, so we may need to know it at that point already.
2960	# Even if this section looks crufty: it has the advantage of
2961	# actually working.
2962	break;;
2963    * )
2964	break;;
2965  esac
2966done
2967test "$ac_cv_exeext" = no && ac_cv_exeext=
2968
2969else
2970  ac_file=''
2971fi
2972if test -z "$ac_file"; then :
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975$as_echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980as_fn_error 77 "C compiler cannot create executables
2981See \`config.log' for more details" "$LINENO" 5; }
2982else
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2984$as_echo "yes" >&6; }
2985fi
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2987$as_echo_n "checking for C compiler default output file name... " >&6; }
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2989$as_echo "$ac_file" >&6; }
2990ac_exeext=$ac_cv_exeext
2991
2992rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2993ac_clean_files=$ac_clean_files_save
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2995$as_echo_n "checking for suffix of executables... " >&6; }
2996if { { ac_try="$ac_link"
2997case "(($ac_try" in
2998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999  *) ac_try_echo=$ac_try;;
3000esac
3001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3002$as_echo "$ac_try_echo"; } >&5
3003  (eval "$ac_link") 2>&5
3004  ac_status=$?
3005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006  test $ac_status = 0; }; then :
3007  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3008# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3009# work properly (i.e., refer to `conftest.exe'), while it won't with
3010# `rm'.
3011for ac_file in conftest.exe conftest conftest.*; do
3012  test -f "$ac_file" || continue
3013  case $ac_file in
3014    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3015    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3016	  break;;
3017    * ) break;;
3018  esac
3019done
3020else
3021  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3024See \`config.log' for more details" "$LINENO" 5; }
3025fi
3026rm -f conftest conftest$ac_cv_exeext
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3028$as_echo "$ac_cv_exeext" >&6; }
3029
3030rm -f conftest.$ac_ext
3031EXEEXT=$ac_cv_exeext
3032ac_exeext=$EXEEXT
3033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034/* end confdefs.h.  */
3035#include <stdio.h>
3036int
3037main ()
3038{
3039FILE *f = fopen ("conftest.out", "w");
3040 return ferror (f) || fclose (f) != 0;
3041
3042  ;
3043  return 0;
3044}
3045_ACEOF
3046ac_clean_files="$ac_clean_files conftest.out"
3047# Check that the compiler produces executables we can run.  If not, either
3048# the compiler is broken, or we cross compile.
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3050$as_echo_n "checking whether we are cross compiling... " >&6; }
3051if test "$cross_compiling" != yes; then
3052  { { ac_try="$ac_link"
3053case "(($ac_try" in
3054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055  *) ac_try_echo=$ac_try;;
3056esac
3057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058$as_echo "$ac_try_echo"; } >&5
3059  (eval "$ac_link") 2>&5
3060  ac_status=$?
3061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062  test $ac_status = 0; }
3063  if { ac_try='./conftest$ac_cv_exeext'
3064  { { case "(($ac_try" in
3065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066  *) ac_try_echo=$ac_try;;
3067esac
3068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069$as_echo "$ac_try_echo"; } >&5
3070  (eval "$ac_try") 2>&5
3071  ac_status=$?
3072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073  test $ac_status = 0; }; }; then
3074    cross_compiling=no
3075  else
3076    if test "$cross_compiling" = maybe; then
3077	cross_compiling=yes
3078    else
3079	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081as_fn_error $? "cannot run C compiled programs.
3082If you meant to cross compile, use \`--host'.
3083See \`config.log' for more details" "$LINENO" 5; }
3084    fi
3085  fi
3086fi
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3088$as_echo "$cross_compiling" >&6; }
3089
3090rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3091ac_clean_files=$ac_clean_files_save
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3093$as_echo_n "checking for suffix of object files... " >&6; }
3094if ${ac_cv_objext+:} false; then :
3095  $as_echo_n "(cached) " >&6
3096else
3097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098/* end confdefs.h.  */
3099
3100int
3101main ()
3102{
3103
3104  ;
3105  return 0;
3106}
3107_ACEOF
3108rm -f conftest.o conftest.obj
3109if { { ac_try="$ac_compile"
3110case "(($ac_try" in
3111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112  *) ac_try_echo=$ac_try;;
3113esac
3114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115$as_echo "$ac_try_echo"; } >&5
3116  (eval "$ac_compile") 2>&5
3117  ac_status=$?
3118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119  test $ac_status = 0; }; then :
3120  for ac_file in conftest.o conftest.obj conftest.*; do
3121  test -f "$ac_file" || continue;
3122  case $ac_file in
3123    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3124    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3125       break;;
3126  esac
3127done
3128else
3129  $as_echo "$as_me: failed program was:" >&5
3130sed 's/^/| /' conftest.$ac_ext >&5
3131
3132{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134as_fn_error $? "cannot compute suffix of object files: cannot compile
3135See \`config.log' for more details" "$LINENO" 5; }
3136fi
3137rm -f conftest.$ac_cv_objext conftest.$ac_ext
3138fi
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3140$as_echo "$ac_cv_objext" >&6; }
3141OBJEXT=$ac_cv_objext
3142ac_objext=$OBJEXT
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3144$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3145if ${ac_cv_c_compiler_gnu+:} false; then :
3146  $as_echo_n "(cached) " >&6
3147else
3148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149/* end confdefs.h.  */
3150
3151int
3152main ()
3153{
3154#ifndef __GNUC__
3155       choke me
3156#endif
3157
3158  ;
3159  return 0;
3160}
3161_ACEOF
3162if ac_fn_c_try_compile "$LINENO"; then :
3163  ac_compiler_gnu=yes
3164else
3165  ac_compiler_gnu=no
3166fi
3167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168ac_cv_c_compiler_gnu=$ac_compiler_gnu
3169
3170fi
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3172$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3173if test $ac_compiler_gnu = yes; then
3174  GCC=yes
3175else
3176  GCC=
3177fi
3178ac_test_CFLAGS=${CFLAGS+set}
3179ac_save_CFLAGS=$CFLAGS
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3181$as_echo_n "checking whether $CC accepts -g... " >&6; }
3182if ${ac_cv_prog_cc_g+:} false; then :
3183  $as_echo_n "(cached) " >&6
3184else
3185  ac_save_c_werror_flag=$ac_c_werror_flag
3186   ac_c_werror_flag=yes
3187   ac_cv_prog_cc_g=no
3188   CFLAGS="-g"
3189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190/* end confdefs.h.  */
3191
3192int
3193main ()
3194{
3195
3196  ;
3197  return 0;
3198}
3199_ACEOF
3200if ac_fn_c_try_compile "$LINENO"; then :
3201  ac_cv_prog_cc_g=yes
3202else
3203  CFLAGS=""
3204      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205/* end confdefs.h.  */
3206
3207int
3208main ()
3209{
3210
3211  ;
3212  return 0;
3213}
3214_ACEOF
3215if ac_fn_c_try_compile "$LINENO"; then :
3216
3217else
3218  ac_c_werror_flag=$ac_save_c_werror_flag
3219	 CFLAGS="-g"
3220	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221/* end confdefs.h.  */
3222
3223int
3224main ()
3225{
3226
3227  ;
3228  return 0;
3229}
3230_ACEOF
3231if ac_fn_c_try_compile "$LINENO"; then :
3232  ac_cv_prog_cc_g=yes
3233fi
3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235fi
3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237fi
3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239   ac_c_werror_flag=$ac_save_c_werror_flag
3240fi
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3242$as_echo "$ac_cv_prog_cc_g" >&6; }
3243if test "$ac_test_CFLAGS" = set; then
3244  CFLAGS=$ac_save_CFLAGS
3245elif test $ac_cv_prog_cc_g = yes; then
3246  if test "$GCC" = yes; then
3247    CFLAGS="-g -O2"
3248  else
3249    CFLAGS="-g"
3250  fi
3251else
3252  if test "$GCC" = yes; then
3253    CFLAGS="-O2"
3254  else
3255    CFLAGS=
3256  fi
3257fi
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3259$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3260if ${ac_cv_prog_cc_c89+:} false; then :
3261  $as_echo_n "(cached) " >&6
3262else
3263  ac_cv_prog_cc_c89=no
3264ac_save_CC=$CC
3265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266/* end confdefs.h.  */
3267#include <stdarg.h>
3268#include <stdio.h>
3269struct stat;
3270/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3271struct buf { int x; };
3272FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273static char *e (p, i)
3274     char **p;
3275     int i;
3276{
3277  return p[i];
3278}
3279static char *f (char * (*g) (char **, int), char **p, ...)
3280{
3281  char *s;
3282  va_list v;
3283  va_start (v,p);
3284  s = g (p, va_arg (v,int));
3285  va_end (v);
3286  return s;
3287}
3288
3289/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3290   function prototypes and stuff, but not '\xHH' hex character constants.
3291   These don't provoke an error unfortunately, instead are silently treated
3292   as 'x'.  The following induces an error, until -std is added to get
3293   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3294   array size at least.  It's necessary to write '\x00'==0 to get something
3295   that's true only with -std.  */
3296int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297
3298/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299   inside strings and character constants.  */
3300#define FOO(x) 'x'
3301int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302
3303int test (int i, double x);
3304struct s1 {int (*f) (int a);};
3305struct s2 {int (*f) (double a);};
3306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307int argc;
3308char **argv;
3309int
3310main ()
3311{
3312return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3313  ;
3314  return 0;
3315}
3316_ACEOF
3317for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3319do
3320  CC="$ac_save_CC $ac_arg"
3321  if ac_fn_c_try_compile "$LINENO"; then :
3322  ac_cv_prog_cc_c89=$ac_arg
3323fi
3324rm -f core conftest.err conftest.$ac_objext
3325  test "x$ac_cv_prog_cc_c89" != "xno" && break
3326done
3327rm -f conftest.$ac_ext
3328CC=$ac_save_CC
3329
3330fi
3331# AC_CACHE_VAL
3332case "x$ac_cv_prog_cc_c89" in
3333  x)
3334    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3335$as_echo "none needed" >&6; } ;;
3336  xno)
3337    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3338$as_echo "unsupported" >&6; } ;;
3339  *)
3340    CC="$CC $ac_cv_prog_cc_c89"
3341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3342$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3343esac
3344if test "x$ac_cv_prog_cc_c89" != xno; then :
3345
3346fi
3347
3348ac_ext=c
3349ac_cpp='$CPP $CPPFLAGS'
3350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353
3354
3355am__api_version='1.13'
3356
3357ac_aux_dir=
3358for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3359  if test -f "$ac_dir/install-sh"; then
3360    ac_aux_dir=$ac_dir
3361    ac_install_sh="$ac_aux_dir/install-sh -c"
3362    break
3363  elif test -f "$ac_dir/install.sh"; then
3364    ac_aux_dir=$ac_dir
3365    ac_install_sh="$ac_aux_dir/install.sh -c"
3366    break
3367  elif test -f "$ac_dir/shtool"; then
3368    ac_aux_dir=$ac_dir
3369    ac_install_sh="$ac_aux_dir/shtool install -c"
3370    break
3371  fi
3372done
3373if test -z "$ac_aux_dir"; then
3374  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3375fi
3376
3377# These three variables are undocumented and unsupported,
3378# and are intended to be withdrawn in a future Autoconf release.
3379# They can cause serious problems if a builder's source tree is in a directory
3380# whose full name contains unusual characters.
3381ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3382ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3383ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3384
3385
3386# Find a good install program.  We prefer a C program (faster),
3387# so one script is as good as another.  But avoid the broken or
3388# incompatible versions:
3389# SysV /etc/install, /usr/sbin/install
3390# SunOS /usr/etc/install
3391# IRIX /sbin/install
3392# AIX /bin/install
3393# AmigaOS /C/install, which installs bootblocks on floppy discs
3394# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3395# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3396# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3397# OS/2's system install, which has a completely different semantic
3398# ./install, which can be erroneously created by make from ./install.sh.
3399# Reject install programs that cannot install multiple files.
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3401$as_echo_n "checking for a BSD-compatible install... " >&6; }
3402if test -z "$INSTALL"; then
3403if ${ac_cv_path_install+:} false; then :
3404  $as_echo_n "(cached) " >&6
3405else
3406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409  IFS=$as_save_IFS
3410  test -z "$as_dir" && as_dir=.
3411    # Account for people who put trailing slashes in PATH elements.
3412case $as_dir/ in #((
3413  ./ | .// | /[cC]/* | \
3414  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3415  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3416  /usr/ucb/* ) ;;
3417  *)
3418    # OSF1 and SCO ODT 3.0 have their own names for install.
3419    # Don't use installbsd from OSF since it installs stuff as root
3420    # by default.
3421    for ac_prog in ginstall scoinst install; do
3422      for ac_exec_ext in '' $ac_executable_extensions; do
3423	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3424	  if test $ac_prog = install &&
3425	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3426	    # AIX install.  It has an incompatible calling convention.
3427	    :
3428	  elif test $ac_prog = install &&
3429	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3430	    # program-specific install script used by HP pwplus--don't use.
3431	    :
3432	  else
3433	    rm -rf conftest.one conftest.two conftest.dir
3434	    echo one > conftest.one
3435	    echo two > conftest.two
3436	    mkdir conftest.dir
3437	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3438	      test -s conftest.one && test -s conftest.two &&
3439	      test -s conftest.dir/conftest.one &&
3440	      test -s conftest.dir/conftest.two
3441	    then
3442	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3443	      break 3
3444	    fi
3445	  fi
3446	fi
3447      done
3448    done
3449    ;;
3450esac
3451
3452  done
3453IFS=$as_save_IFS
3454
3455rm -rf conftest.one conftest.two conftest.dir
3456
3457fi
3458  if test "${ac_cv_path_install+set}" = set; then
3459    INSTALL=$ac_cv_path_install
3460  else
3461    # As a last resort, use the slow shell script.  Don't cache a
3462    # value for INSTALL within a source directory, because that will
3463    # break other packages using the cache if that directory is
3464    # removed, or if the value is a relative name.
3465    INSTALL=$ac_install_sh
3466  fi
3467fi
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3469$as_echo "$INSTALL" >&6; }
3470
3471# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3472# It thinks the first close brace ends the variable substitution.
3473test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3474
3475test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3476
3477test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3478
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3480$as_echo_n "checking whether build environment is sane... " >&6; }
3481# Reject unsafe characters in $srcdir or the absolute working directory
3482# name.  Accept space and tab only in the latter.
3483am_lf='
3484'
3485case `pwd` in
3486  *[\\\"\#\$\&\'\`$am_lf]*)
3487    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3488esac
3489case $srcdir in
3490  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3491    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3492esac
3493
3494# Do 'set' in a subshell so we don't clobber the current shell's
3495# arguments.  Must try -L first in case configure is actually a
3496# symlink; some systems play weird games with the mod time of symlinks
3497# (eg FreeBSD returns the mod time of the symlink's containing
3498# directory).
3499if (
3500   am_has_slept=no
3501   for am_try in 1 2; do
3502     echo "timestamp, slept: $am_has_slept" > conftest.file
3503     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3504     if test "$*" = "X"; then
3505	# -L didn't work.
3506	set X `ls -t "$srcdir/configure" conftest.file`
3507     fi
3508     if test "$*" != "X $srcdir/configure conftest.file" \
3509	&& test "$*" != "X conftest.file $srcdir/configure"; then
3510
3511	# If neither matched, then we have a broken ls.  This can happen
3512	# if, for instance, CONFIG_SHELL is bash and it inherits a
3513	# broken ls alias from the environment.  This has actually
3514	# happened.  Such a system could not be considered "sane".
3515	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3516  alias in your environment" "$LINENO" 5
3517     fi
3518     if test "$2" = conftest.file || test $am_try -eq 2; then
3519       break
3520     fi
3521     # Just in case.
3522     sleep 1
3523     am_has_slept=yes
3524   done
3525   test "$2" = conftest.file
3526   )
3527then
3528   # Ok.
3529   :
3530else
3531   as_fn_error $? "newly created file is older than distributed files!
3532Check your system clock" "$LINENO" 5
3533fi
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3535$as_echo "yes" >&6; }
3536# If we didn't sleep, we still need to ensure time stamps of config.status and
3537# generated files are strictly newer.
3538am_sleep_pid=
3539if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3540  ( sleep 1 ) &
3541  am_sleep_pid=$!
3542fi
3543
3544rm -f conftest.file
3545
3546test "$program_prefix" != NONE &&
3547  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3548# Use a double $ so make ignores it.
3549test "$program_suffix" != NONE &&
3550  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3551# Double any \ or $.
3552# By default was `s,x,x', remove it if useless.
3553ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3554program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3555
3556# expand $ac_aux_dir to an absolute path
3557am_aux_dir=`cd $ac_aux_dir && pwd`
3558
3559if test x"${MISSING+set}" != xset; then
3560  case $am_aux_dir in
3561  *\ * | *\	*)
3562    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3563  *)
3564    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3565  esac
3566fi
3567# Use eval to expand $SHELL
3568if eval "$MISSING --is-lightweight"; then
3569  am_missing_run="$MISSING "
3570else
3571  am_missing_run=
3572  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3573$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3574fi
3575
3576if test x"${install_sh}" != xset; then
3577  case $am_aux_dir in
3578  *\ * | *\	*)
3579    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3580  *)
3581    install_sh="\${SHELL} $am_aux_dir/install-sh"
3582  esac
3583fi
3584
3585# Installed binaries are usually stripped using 'strip' when the user
3586# run "make install-strip".  However 'strip' might not be the right
3587# tool to use in cross-compilation environments, therefore Automake
3588# will honor the 'STRIP' environment variable to overrule this program.
3589if test "$cross_compiling" != no; then
3590  if test -n "$ac_tool_prefix"; then
3591  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3592set dummy ${ac_tool_prefix}strip; ac_word=$2
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594$as_echo_n "checking for $ac_word... " >&6; }
3595if ${ac_cv_prog_STRIP+:} false; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598  if test -n "$STRIP"; then
3599  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3600else
3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604  IFS=$as_save_IFS
3605  test -z "$as_dir" && as_dir=.
3606    for ac_exec_ext in '' $ac_executable_extensions; do
3607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610    break 2
3611  fi
3612done
3613  done
3614IFS=$as_save_IFS
3615
3616fi
3617fi
3618STRIP=$ac_cv_prog_STRIP
3619if test -n "$STRIP"; then
3620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3621$as_echo "$STRIP" >&6; }
3622else
3623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624$as_echo "no" >&6; }
3625fi
3626
3627
3628fi
3629if test -z "$ac_cv_prog_STRIP"; then
3630  ac_ct_STRIP=$STRIP
3631  # Extract the first word of "strip", so it can be a program name with args.
3632set dummy strip; ac_word=$2
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634$as_echo_n "checking for $ac_word... " >&6; }
3635if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3636  $as_echo_n "(cached) " >&6
3637else
3638  if test -n "$ac_ct_STRIP"; then
3639  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3640else
3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH
3643do
3644  IFS=$as_save_IFS
3645  test -z "$as_dir" && as_dir=.
3646    for ac_exec_ext in '' $ac_executable_extensions; do
3647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648    ac_cv_prog_ac_ct_STRIP="strip"
3649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650    break 2
3651  fi
3652done
3653  done
3654IFS=$as_save_IFS
3655
3656fi
3657fi
3658ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3659if test -n "$ac_ct_STRIP"; then
3660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3661$as_echo "$ac_ct_STRIP" >&6; }
3662else
3663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664$as_echo "no" >&6; }
3665fi
3666
3667  if test "x$ac_ct_STRIP" = x; then
3668    STRIP=":"
3669  else
3670    case $cross_compiling:$ac_tool_warned in
3671yes:)
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3674ac_tool_warned=yes ;;
3675esac
3676    STRIP=$ac_ct_STRIP
3677  fi
3678else
3679  STRIP="$ac_cv_prog_STRIP"
3680fi
3681
3682fi
3683INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3684
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3686$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3687if test -z "$MKDIR_P"; then
3688  if ${ac_cv_path_mkdir+:} false; then :
3689  $as_echo_n "(cached) " >&6
3690else
3691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3693do
3694  IFS=$as_save_IFS
3695  test -z "$as_dir" && as_dir=.
3696    for ac_prog in mkdir gmkdir; do
3697	 for ac_exec_ext in '' $ac_executable_extensions; do
3698	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3699	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3700	     'mkdir (GNU coreutils) '* | \
3701	     'mkdir (coreutils) '* | \
3702	     'mkdir (fileutils) '4.1*)
3703	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3704	       break 3;;
3705	   esac
3706	 done
3707       done
3708  done
3709IFS=$as_save_IFS
3710
3711fi
3712
3713  test -d ./--version && rmdir ./--version
3714  if test "${ac_cv_path_mkdir+set}" = set; then
3715    MKDIR_P="$ac_cv_path_mkdir -p"
3716  else
3717    # As a last resort, use the slow shell script.  Don't cache a
3718    # value for MKDIR_P within a source directory, because that will
3719    # break other packages using the cache if that directory is
3720    # removed, or if the value is a relative name.
3721    MKDIR_P="$ac_install_sh -d"
3722  fi
3723fi
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3725$as_echo "$MKDIR_P" >&6; }
3726
3727for ac_prog in gawk mawk nawk awk
3728do
3729  # Extract the first word of "$ac_prog", so it can be a program name with args.
3730set dummy $ac_prog; ac_word=$2
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732$as_echo_n "checking for $ac_word... " >&6; }
3733if ${ac_cv_prog_AWK+:} false; then :
3734  $as_echo_n "(cached) " >&6
3735else
3736  if test -n "$AWK"; then
3737  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3738else
3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740for as_dir in $PATH
3741do
3742  IFS=$as_save_IFS
3743  test -z "$as_dir" && as_dir=.
3744    for ac_exec_ext in '' $ac_executable_extensions; do
3745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3746    ac_cv_prog_AWK="$ac_prog"
3747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748    break 2
3749  fi
3750done
3751  done
3752IFS=$as_save_IFS
3753
3754fi
3755fi
3756AWK=$ac_cv_prog_AWK
3757if test -n "$AWK"; then
3758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3759$as_echo "$AWK" >&6; }
3760else
3761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762$as_echo "no" >&6; }
3763fi
3764
3765
3766  test -n "$AWK" && break
3767done
3768
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3770$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3771set x ${MAKE-make}
3772ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3773if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3774  $as_echo_n "(cached) " >&6
3775else
3776  cat >conftest.make <<\_ACEOF
3777SHELL = /bin/sh
3778all:
3779	@echo '@@@%%%=$(MAKE)=@@@%%%'
3780_ACEOF
3781# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3782case `${MAKE-make} -f conftest.make 2>/dev/null` in
3783  *@@@%%%=?*=@@@%%%*)
3784    eval ac_cv_prog_make_${ac_make}_set=yes;;
3785  *)
3786    eval ac_cv_prog_make_${ac_make}_set=no;;
3787esac
3788rm -f conftest.make
3789fi
3790if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3792$as_echo "yes" >&6; }
3793  SET_MAKE=
3794else
3795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796$as_echo "no" >&6; }
3797  SET_MAKE="MAKE=${MAKE-make}"
3798fi
3799
3800rm -rf .tst 2>/dev/null
3801mkdir .tst 2>/dev/null
3802if test -d .tst; then
3803  am__leading_dot=.
3804else
3805  am__leading_dot=_
3806fi
3807rmdir .tst 2>/dev/null
3808
3809# Check whether --enable-silent-rules was given.
3810if test "${enable_silent_rules+set}" = set; then :
3811  enableval=$enable_silent_rules;
3812fi
3813
3814case $enable_silent_rules in # (((
3815  yes) AM_DEFAULT_VERBOSITY=0;;
3816   no) AM_DEFAULT_VERBOSITY=1;;
3817    *) AM_DEFAULT_VERBOSITY=1;;
3818esac
3819am_make=${MAKE-make}
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3821$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3822if ${am_cv_make_support_nested_variables+:} false; then :
3823  $as_echo_n "(cached) " >&6
3824else
3825  if $as_echo 'TRUE=$(BAR$(V))
3826BAR0=false
3827BAR1=true
3828V=1
3829am__doit:
3830	@$(TRUE)
3831.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3832  am_cv_make_support_nested_variables=yes
3833else
3834  am_cv_make_support_nested_variables=no
3835fi
3836fi
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3838$as_echo "$am_cv_make_support_nested_variables" >&6; }
3839if test $am_cv_make_support_nested_variables = yes; then
3840    AM_V='$(V)'
3841  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3842else
3843  AM_V=$AM_DEFAULT_VERBOSITY
3844  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3845fi
3846AM_BACKSLASH='\'
3847
3848if test "`cd $srcdir && pwd`" != "`pwd`"; then
3849  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3850  # is not polluted with repeated "-I."
3851  am__isrc=' -I$(srcdir)'
3852  # test to see if srcdir already configured
3853  if test -f $srcdir/config.status; then
3854    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3855  fi
3856fi
3857
3858# test whether we have cygpath
3859if test -z "$CYGPATH_W"; then
3860  if (cygpath --version) >/dev/null 2>/dev/null; then
3861    CYGPATH_W='cygpath -w'
3862  else
3863    CYGPATH_W=echo
3864  fi
3865fi
3866
3867
3868# Define the identity of the package.
3869 PACKAGE='pgpool-II'
3870 VERSION='4.0.17'
3871
3872
3873cat >>confdefs.h <<_ACEOF
3874#define PACKAGE "$PACKAGE"
3875_ACEOF
3876
3877
3878cat >>confdefs.h <<_ACEOF
3879#define VERSION "$VERSION"
3880_ACEOF
3881
3882# Some tools Automake needs.
3883
3884ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3885
3886
3887AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3888
3889
3890AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3891
3892
3893AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3894
3895
3896MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3897
3898# For better backward compatibility.  To be removed once Automake 1.9.x
3899# dies out for good.  For more background, see:
3900# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3901# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3902mkdir_p='$(MKDIR_P)'
3903
3904# We need awk for the "check" target.  The system "awk" is bad on
3905# some platforms.
3906# Always define AMTAR for backward compatibility.  Yes, it's still used
3907# in the wild :-(  We should find a proper way to deprecate it ...
3908AMTAR='$${TAR-tar}'
3909
3910
3911# We'll loop over all known methods to create a tar archive until one works.
3912_am_tools='gnutar  pax cpio none'
3913
3914am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3915
3916
3917
3918
3919
3920
3921
3922
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3924$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3925    # Check whether --enable-maintainer-mode was given.
3926if test "${enable_maintainer_mode+set}" = set; then :
3927  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3928else
3929  USE_MAINTAINER_MODE=no
3930fi
3931
3932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3933$as_echo "$USE_MAINTAINER_MODE" >&6; }
3934   if test $USE_MAINTAINER_MODE = yes; then
3935  MAINTAINER_MODE_TRUE=
3936  MAINTAINER_MODE_FALSE='#'
3937else
3938  MAINTAINER_MODE_TRUE='#'
3939  MAINTAINER_MODE_FALSE=
3940fi
3941
3942  MAINT=$MAINTAINER_MODE_TRUE
3943
3944
3945
3946# AC_PROG_RANLIB
3947AR_FLAGS="cr"
3948
3949case `pwd` in
3950  *\ * | *\	*)
3951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3952$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3953esac
3954
3955
3956
3957macro_version='2.4.2'
3958macro_revision='1.3337'
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972ltmain="$ac_aux_dir/ltmain.sh"
3973
3974# Make sure we can run config.sub.
3975$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3976  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3977
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3979$as_echo_n "checking build system type... " >&6; }
3980if ${ac_cv_build+:} false; then :
3981  $as_echo_n "(cached) " >&6
3982else
3983  ac_build_alias=$build_alias
3984test "x$ac_build_alias" = x &&
3985  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3986test "x$ac_build_alias" = x &&
3987  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3988ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3989  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3990
3991fi
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3993$as_echo "$ac_cv_build" >&6; }
3994case $ac_cv_build in
3995*-*-*) ;;
3996*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3997esac
3998build=$ac_cv_build
3999ac_save_IFS=$IFS; IFS='-'
4000set x $ac_cv_build
4001shift
4002build_cpu=$1
4003build_vendor=$2
4004shift; shift
4005# Remember, the first character of IFS is used to create $*,
4006# except with old shells:
4007build_os=$*
4008IFS=$ac_save_IFS
4009case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4010
4011
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4013$as_echo_n "checking host system type... " >&6; }
4014if ${ac_cv_host+:} false; then :
4015  $as_echo_n "(cached) " >&6
4016else
4017  if test "x$host_alias" = x; then
4018  ac_cv_host=$ac_cv_build
4019else
4020  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4021    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4022fi
4023
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4026$as_echo "$ac_cv_host" >&6; }
4027case $ac_cv_host in
4028*-*-*) ;;
4029*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4030esac
4031host=$ac_cv_host
4032ac_save_IFS=$IFS; IFS='-'
4033set x $ac_cv_host
4034shift
4035host_cpu=$1
4036host_vendor=$2
4037shift; shift
4038# Remember, the first character of IFS is used to create $*,
4039# except with old shells:
4040host_os=$*
4041IFS=$ac_save_IFS
4042case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4043
4044
4045# Backslashify metacharacters that are still active within
4046# double-quoted strings.
4047sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4048
4049# Same as above, but do not quote variable references.
4050double_quote_subst='s/\(["`\\]\)/\\\1/g'
4051
4052# Sed substitution to delay expansion of an escaped shell variable in a
4053# double_quote_subst'ed string.
4054delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4055
4056# Sed substitution to delay expansion of an escaped single quote.
4057delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4058
4059# Sed substitution to avoid accidental globbing in evaled expressions
4060no_glob_subst='s/\*/\\\*/g'
4061
4062ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4063ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4064ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4065
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4067$as_echo_n "checking how to print strings... " >&6; }
4068# Test print first, because it will be a builtin if present.
4069if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4070   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4071  ECHO='print -r --'
4072elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4073  ECHO='printf %s\n'
4074else
4075  # Use this function as a fallback that always works.
4076  func_fallback_echo ()
4077  {
4078    eval 'cat <<_LTECHO_EOF
4079$1
4080_LTECHO_EOF'
4081  }
4082  ECHO='func_fallback_echo'
4083fi
4084
4085# func_echo_all arg...
4086# Invoke $ECHO with all args, space-separated.
4087func_echo_all ()
4088{
4089    $ECHO ""
4090}
4091
4092case "$ECHO" in
4093  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4094$as_echo "printf" >&6; } ;;
4095  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4096$as_echo "print -r" >&6; } ;;
4097  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4098$as_echo "cat" >&6; } ;;
4099esac
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4115$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4116if ${ac_cv_path_SED+:} false; then :
4117  $as_echo_n "(cached) " >&6
4118else
4119            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4120     for ac_i in 1 2 3 4 5 6 7; do
4121       ac_script="$ac_script$as_nl$ac_script"
4122     done
4123     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4124     { ac_script=; unset ac_script;}
4125     if test -z "$SED"; then
4126  ac_path_SED_found=false
4127  # Loop through the user's path and test for each of PROGNAME-LIST
4128  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131  IFS=$as_save_IFS
4132  test -z "$as_dir" && as_dir=.
4133    for ac_prog in sed gsed; do
4134    for ac_exec_ext in '' $ac_executable_extensions; do
4135      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4136      as_fn_executable_p "$ac_path_SED" || continue
4137# Check for GNU ac_path_SED and select it if it is found.
4138  # Check for GNU $ac_path_SED
4139case `"$ac_path_SED" --version 2>&1` in
4140*GNU*)
4141  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4142*)
4143  ac_count=0
4144  $as_echo_n 0123456789 >"conftest.in"
4145  while :
4146  do
4147    cat "conftest.in" "conftest.in" >"conftest.tmp"
4148    mv "conftest.tmp" "conftest.in"
4149    cp "conftest.in" "conftest.nl"
4150    $as_echo '' >> "conftest.nl"
4151    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4152    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4153    as_fn_arith $ac_count + 1 && ac_count=$as_val
4154    if test $ac_count -gt ${ac_path_SED_max-0}; then
4155      # Best one so far, save it but keep looking for a better one
4156      ac_cv_path_SED="$ac_path_SED"
4157      ac_path_SED_max=$ac_count
4158    fi
4159    # 10*(2^10) chars as input seems more than enough
4160    test $ac_count -gt 10 && break
4161  done
4162  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4163esac
4164
4165      $ac_path_SED_found && break 3
4166    done
4167  done
4168  done
4169IFS=$as_save_IFS
4170  if test -z "$ac_cv_path_SED"; then
4171    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4172  fi
4173else
4174  ac_cv_path_SED=$SED
4175fi
4176
4177fi
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4179$as_echo "$ac_cv_path_SED" >&6; }
4180 SED="$ac_cv_path_SED"
4181  rm -f conftest.sed
4182
4183test -z "$SED" && SED=sed
4184Xsed="$SED -e 1s/^X//"
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4197$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4198if ${ac_cv_path_GREP+:} false; then :
4199  $as_echo_n "(cached) " >&6
4200else
4201  if test -z "$GREP"; then
4202  ac_path_GREP_found=false
4203  # Loop through the user's path and test for each of PROGNAME-LIST
4204  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4206do
4207  IFS=$as_save_IFS
4208  test -z "$as_dir" && as_dir=.
4209    for ac_prog in grep ggrep; do
4210    for ac_exec_ext in '' $ac_executable_extensions; do
4211      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4212      as_fn_executable_p "$ac_path_GREP" || continue
4213# Check for GNU ac_path_GREP and select it if it is found.
4214  # Check for GNU $ac_path_GREP
4215case `"$ac_path_GREP" --version 2>&1` in
4216*GNU*)
4217  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4218*)
4219  ac_count=0
4220  $as_echo_n 0123456789 >"conftest.in"
4221  while :
4222  do
4223    cat "conftest.in" "conftest.in" >"conftest.tmp"
4224    mv "conftest.tmp" "conftest.in"
4225    cp "conftest.in" "conftest.nl"
4226    $as_echo 'GREP' >> "conftest.nl"
4227    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4228    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4229    as_fn_arith $ac_count + 1 && ac_count=$as_val
4230    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4231      # Best one so far, save it but keep looking for a better one
4232      ac_cv_path_GREP="$ac_path_GREP"
4233      ac_path_GREP_max=$ac_count
4234    fi
4235    # 10*(2^10) chars as input seems more than enough
4236    test $ac_count -gt 10 && break
4237  done
4238  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4239esac
4240
4241      $ac_path_GREP_found && break 3
4242    done
4243  done
4244  done
4245IFS=$as_save_IFS
4246  if test -z "$ac_cv_path_GREP"; then
4247    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4248  fi
4249else
4250  ac_cv_path_GREP=$GREP
4251fi
4252
4253fi
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4255$as_echo "$ac_cv_path_GREP" >&6; }
4256 GREP="$ac_cv_path_GREP"
4257
4258
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4260$as_echo_n "checking for egrep... " >&6; }
4261if ${ac_cv_path_EGREP+:} false; then :
4262  $as_echo_n "(cached) " >&6
4263else
4264  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4265   then ac_cv_path_EGREP="$GREP -E"
4266   else
4267     if test -z "$EGREP"; then
4268  ac_path_EGREP_found=false
4269  # Loop through the user's path and test for each of PROGNAME-LIST
4270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4272do
4273  IFS=$as_save_IFS
4274  test -z "$as_dir" && as_dir=.
4275    for ac_prog in egrep; do
4276    for ac_exec_ext in '' $ac_executable_extensions; do
4277      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4278      as_fn_executable_p "$ac_path_EGREP" || continue
4279# Check for GNU ac_path_EGREP and select it if it is found.
4280  # Check for GNU $ac_path_EGREP
4281case `"$ac_path_EGREP" --version 2>&1` in
4282*GNU*)
4283  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4284*)
4285  ac_count=0
4286  $as_echo_n 0123456789 >"conftest.in"
4287  while :
4288  do
4289    cat "conftest.in" "conftest.in" >"conftest.tmp"
4290    mv "conftest.tmp" "conftest.in"
4291    cp "conftest.in" "conftest.nl"
4292    $as_echo 'EGREP' >> "conftest.nl"
4293    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4294    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4295    as_fn_arith $ac_count + 1 && ac_count=$as_val
4296    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4297      # Best one so far, save it but keep looking for a better one
4298      ac_cv_path_EGREP="$ac_path_EGREP"
4299      ac_path_EGREP_max=$ac_count
4300    fi
4301    # 10*(2^10) chars as input seems more than enough
4302    test $ac_count -gt 10 && break
4303  done
4304  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4305esac
4306
4307      $ac_path_EGREP_found && break 3
4308    done
4309  done
4310  done
4311IFS=$as_save_IFS
4312  if test -z "$ac_cv_path_EGREP"; then
4313    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4314  fi
4315else
4316  ac_cv_path_EGREP=$EGREP
4317fi
4318
4319   fi
4320fi
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4322$as_echo "$ac_cv_path_EGREP" >&6; }
4323 EGREP="$ac_cv_path_EGREP"
4324
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4327$as_echo_n "checking for fgrep... " >&6; }
4328if ${ac_cv_path_FGREP+:} false; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4332   then ac_cv_path_FGREP="$GREP -F"
4333   else
4334     if test -z "$FGREP"; then
4335  ac_path_FGREP_found=false
4336  # Loop through the user's path and test for each of PROGNAME-LIST
4337  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4339do
4340  IFS=$as_save_IFS
4341  test -z "$as_dir" && as_dir=.
4342    for ac_prog in fgrep; do
4343    for ac_exec_ext in '' $ac_executable_extensions; do
4344      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4345      as_fn_executable_p "$ac_path_FGREP" || continue
4346# Check for GNU ac_path_FGREP and select it if it is found.
4347  # Check for GNU $ac_path_FGREP
4348case `"$ac_path_FGREP" --version 2>&1` in
4349*GNU*)
4350  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4351*)
4352  ac_count=0
4353  $as_echo_n 0123456789 >"conftest.in"
4354  while :
4355  do
4356    cat "conftest.in" "conftest.in" >"conftest.tmp"
4357    mv "conftest.tmp" "conftest.in"
4358    cp "conftest.in" "conftest.nl"
4359    $as_echo 'FGREP' >> "conftest.nl"
4360    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4361    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4362    as_fn_arith $ac_count + 1 && ac_count=$as_val
4363    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4364      # Best one so far, save it but keep looking for a better one
4365      ac_cv_path_FGREP="$ac_path_FGREP"
4366      ac_path_FGREP_max=$ac_count
4367    fi
4368    # 10*(2^10) chars as input seems more than enough
4369    test $ac_count -gt 10 && break
4370  done
4371  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4372esac
4373
4374      $ac_path_FGREP_found && break 3
4375    done
4376  done
4377  done
4378IFS=$as_save_IFS
4379  if test -z "$ac_cv_path_FGREP"; then
4380    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4381  fi
4382else
4383  ac_cv_path_FGREP=$FGREP
4384fi
4385
4386   fi
4387fi
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4389$as_echo "$ac_cv_path_FGREP" >&6; }
4390 FGREP="$ac_cv_path_FGREP"
4391
4392
4393test -z "$GREP" && GREP=grep
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413# Check whether --with-gnu-ld was given.
4414if test "${with_gnu_ld+set}" = set; then :
4415  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4416else
4417  with_gnu_ld=no
4418fi
4419
4420ac_prog=ld
4421if test "$GCC" = yes; then
4422  # Check if gcc -print-prog-name=ld gives a path.
4423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4424$as_echo_n "checking for ld used by $CC... " >&6; }
4425  case $host in
4426  *-*-mingw*)
4427    # gcc leaves a trailing carriage return which upsets mingw
4428    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4429  *)
4430    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4431  esac
4432  case $ac_prog in
4433    # Accept absolute paths.
4434    [\\/]* | ?:[\\/]*)
4435      re_direlt='/[^/][^/]*/\.\./'
4436      # Canonicalize the pathname of ld
4437      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4438      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4439	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4440      done
4441      test -z "$LD" && LD="$ac_prog"
4442      ;;
4443  "")
4444    # If it fails, then pretend we aren't using GCC.
4445    ac_prog=ld
4446    ;;
4447  *)
4448    # If it is relative, then search for the first ld in PATH.
4449    with_gnu_ld=unknown
4450    ;;
4451  esac
4452elif test "$with_gnu_ld" = yes; then
4453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4454$as_echo_n "checking for GNU ld... " >&6; }
4455else
4456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4457$as_echo_n "checking for non-GNU ld... " >&6; }
4458fi
4459if ${lt_cv_path_LD+:} false; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462  if test -z "$LD"; then
4463  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4464  for ac_dir in $PATH; do
4465    IFS="$lt_save_ifs"
4466    test -z "$ac_dir" && ac_dir=.
4467    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4468      lt_cv_path_LD="$ac_dir/$ac_prog"
4469      # Check to see if the program is GNU ld.  I'd rather use --version,
4470      # but apparently some variants of GNU ld only accept -v.
4471      # Break only if it was the GNU/non-GNU ld that we prefer.
4472      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4473      *GNU* | *'with BFD'*)
4474	test "$with_gnu_ld" != no && break
4475	;;
4476      *)
4477	test "$with_gnu_ld" != yes && break
4478	;;
4479      esac
4480    fi
4481  done
4482  IFS="$lt_save_ifs"
4483else
4484  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4485fi
4486fi
4487
4488LD="$lt_cv_path_LD"
4489if test -n "$LD"; then
4490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4491$as_echo "$LD" >&6; }
4492else
4493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494$as_echo "no" >&6; }
4495fi
4496test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4498$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4499if ${lt_cv_prog_gnu_ld+:} false; then :
4500  $as_echo_n "(cached) " >&6
4501else
4502  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4503case `$LD -v 2>&1 </dev/null` in
4504*GNU* | *'with BFD'*)
4505  lt_cv_prog_gnu_ld=yes
4506  ;;
4507*)
4508  lt_cv_prog_gnu_ld=no
4509  ;;
4510esac
4511fi
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4513$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4514with_gnu_ld=$lt_cv_prog_gnu_ld
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4525$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4526if ${lt_cv_path_NM+:} false; then :
4527  $as_echo_n "(cached) " >&6
4528else
4529  if test -n "$NM"; then
4530  # Let the user override the test.
4531  lt_cv_path_NM="$NM"
4532else
4533  lt_nm_to_check="${ac_tool_prefix}nm"
4534  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4535    lt_nm_to_check="$lt_nm_to_check nm"
4536  fi
4537  for lt_tmp_nm in $lt_nm_to_check; do
4538    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4539    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4540      IFS="$lt_save_ifs"
4541      test -z "$ac_dir" && ac_dir=.
4542      tmp_nm="$ac_dir/$lt_tmp_nm"
4543      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4544	# Check to see if the nm accepts a BSD-compat flag.
4545	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4546	#   nm: unknown option "B" ignored
4547	# Tru64's nm complains that /dev/null is an invalid object file
4548	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4549	*/dev/null* | *'Invalid file or object type'*)
4550	  lt_cv_path_NM="$tmp_nm -B"
4551	  break
4552	  ;;
4553	*)
4554	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4555	  */dev/null*)
4556	    lt_cv_path_NM="$tmp_nm -p"
4557	    break
4558	    ;;
4559	  *)
4560	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4561	    continue # so that we can try to find one that supports BSD flags
4562	    ;;
4563	  esac
4564	  ;;
4565	esac
4566      fi
4567    done
4568    IFS="$lt_save_ifs"
4569  done
4570  : ${lt_cv_path_NM=no}
4571fi
4572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4574$as_echo "$lt_cv_path_NM" >&6; }
4575if test "$lt_cv_path_NM" != "no"; then
4576  NM="$lt_cv_path_NM"
4577else
4578  # Didn't find any BSD compatible name lister, look for dumpbin.
4579  if test -n "$DUMPBIN"; then :
4580    # Let the user override the test.
4581  else
4582    if test -n "$ac_tool_prefix"; then
4583  for ac_prog in dumpbin "link -dump"
4584  do
4585    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4586set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588$as_echo_n "checking for $ac_word... " >&6; }
4589if ${ac_cv_prog_DUMPBIN+:} false; then :
4590  $as_echo_n "(cached) " >&6
4591else
4592  if test -n "$DUMPBIN"; then
4593  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4594else
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598  IFS=$as_save_IFS
4599  test -z "$as_dir" && as_dir=.
4600    for ac_exec_ext in '' $ac_executable_extensions; do
4601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604    break 2
4605  fi
4606done
4607  done
4608IFS=$as_save_IFS
4609
4610fi
4611fi
4612DUMPBIN=$ac_cv_prog_DUMPBIN
4613if test -n "$DUMPBIN"; then
4614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4615$as_echo "$DUMPBIN" >&6; }
4616else
4617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618$as_echo "no" >&6; }
4619fi
4620
4621
4622    test -n "$DUMPBIN" && break
4623  done
4624fi
4625if test -z "$DUMPBIN"; then
4626  ac_ct_DUMPBIN=$DUMPBIN
4627  for ac_prog in dumpbin "link -dump"
4628do
4629  # Extract the first word of "$ac_prog", so it can be a program name with args.
4630set dummy $ac_prog; ac_word=$2
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632$as_echo_n "checking for $ac_word... " >&6; }
4633if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4634  $as_echo_n "(cached) " >&6
4635else
4636  if test -n "$ac_ct_DUMPBIN"; then
4637  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4638else
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642  IFS=$as_save_IFS
4643  test -z "$as_dir" && as_dir=.
4644    for ac_exec_ext in '' $ac_executable_extensions; do
4645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648    break 2
4649  fi
4650done
4651  done
4652IFS=$as_save_IFS
4653
4654fi
4655fi
4656ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4657if test -n "$ac_ct_DUMPBIN"; then
4658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4659$as_echo "$ac_ct_DUMPBIN" >&6; }
4660else
4661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662$as_echo "no" >&6; }
4663fi
4664
4665
4666  test -n "$ac_ct_DUMPBIN" && break
4667done
4668
4669  if test "x$ac_ct_DUMPBIN" = x; then
4670    DUMPBIN=":"
4671  else
4672    case $cross_compiling:$ac_tool_warned in
4673yes:)
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4676ac_tool_warned=yes ;;
4677esac
4678    DUMPBIN=$ac_ct_DUMPBIN
4679  fi
4680fi
4681
4682    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4683    *COFF*)
4684      DUMPBIN="$DUMPBIN -symbols"
4685      ;;
4686    *)
4687      DUMPBIN=:
4688      ;;
4689    esac
4690  fi
4691
4692  if test "$DUMPBIN" != ":"; then
4693    NM="$DUMPBIN"
4694  fi
4695fi
4696test -z "$NM" && NM=nm
4697
4698
4699
4700
4701
4702
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4704$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4705if ${lt_cv_nm_interface+:} false; then :
4706  $as_echo_n "(cached) " >&6
4707else
4708  lt_cv_nm_interface="BSD nm"
4709  echo "int some_variable = 0;" > conftest.$ac_ext
4710  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4711  (eval "$ac_compile" 2>conftest.err)
4712  cat conftest.err >&5
4713  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4714  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4715  cat conftest.err >&5
4716  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4717  cat conftest.out >&5
4718  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4719    lt_cv_nm_interface="MS dumpbin"
4720  fi
4721  rm -f conftest*
4722fi
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4724$as_echo "$lt_cv_nm_interface" >&6; }
4725
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4727$as_echo_n "checking whether ln -s works... " >&6; }
4728LN_S=$as_ln_s
4729if test "$LN_S" = "ln -s"; then
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4731$as_echo "yes" >&6; }
4732else
4733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4734$as_echo "no, using $LN_S" >&6; }
4735fi
4736
4737# find the maximum length of command line arguments
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4739$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4740if ${lt_cv_sys_max_cmd_len+:} false; then :
4741  $as_echo_n "(cached) " >&6
4742else
4743    i=0
4744  teststring="ABCD"
4745
4746  case $build_os in
4747  msdosdjgpp*)
4748    # On DJGPP, this test can blow up pretty badly due to problems in libc
4749    # (any single argument exceeding 2000 bytes causes a buffer overrun
4750    # during glob expansion).  Even if it were fixed, the result of this
4751    # check would be larger than it should be.
4752    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4753    ;;
4754
4755  gnu*)
4756    # Under GNU Hurd, this test is not required because there is
4757    # no limit to the length of command line arguments.
4758    # Libtool will interpret -1 as no limit whatsoever
4759    lt_cv_sys_max_cmd_len=-1;
4760    ;;
4761
4762  cygwin* | mingw* | cegcc*)
4763    # On Win9x/ME, this test blows up -- it succeeds, but takes
4764    # about 5 minutes as the teststring grows exponentially.
4765    # Worse, since 9x/ME are not pre-emptively multitasking,
4766    # you end up with a "frozen" computer, even though with patience
4767    # the test eventually succeeds (with a max line length of 256k).
4768    # Instead, let's just punt: use the minimum linelength reported by
4769    # all of the supported platforms: 8192 (on NT/2K/XP).
4770    lt_cv_sys_max_cmd_len=8192;
4771    ;;
4772
4773  mint*)
4774    # On MiNT this can take a long time and run out of memory.
4775    lt_cv_sys_max_cmd_len=8192;
4776    ;;
4777
4778  amigaos*)
4779    # On AmigaOS with pdksh, this test takes hours, literally.
4780    # So we just punt and use a minimum line length of 8192.
4781    lt_cv_sys_max_cmd_len=8192;
4782    ;;
4783
4784  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4785    # This has been around since 386BSD, at least.  Likely further.
4786    if test -x /sbin/sysctl; then
4787      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4788    elif test -x /usr/sbin/sysctl; then
4789      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4790    else
4791      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4792    fi
4793    # And add a safety zone
4794    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4795    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4796    ;;
4797
4798  interix*)
4799    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4800    lt_cv_sys_max_cmd_len=196608
4801    ;;
4802
4803  os2*)
4804    # The test takes a long time on OS/2.
4805    lt_cv_sys_max_cmd_len=8192
4806    ;;
4807
4808  osf*)
4809    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4810    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4811    # nice to cause kernel panics so lets avoid the loop below.
4812    # First set a reasonable default.
4813    lt_cv_sys_max_cmd_len=16384
4814    #
4815    if test -x /sbin/sysconfig; then
4816      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4817        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4818      esac
4819    fi
4820    ;;
4821  sco3.2v5*)
4822    lt_cv_sys_max_cmd_len=102400
4823    ;;
4824  sysv5* | sco5v6* | sysv4.2uw2*)
4825    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4826    if test -n "$kargmax"; then
4827      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4828    else
4829      lt_cv_sys_max_cmd_len=32768
4830    fi
4831    ;;
4832  *)
4833    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4834    if test -n "$lt_cv_sys_max_cmd_len"; then
4835      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4836      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4837    else
4838      # Make teststring a little bigger before we do anything with it.
4839      # a 1K string should be a reasonable start.
4840      for i in 1 2 3 4 5 6 7 8 ; do
4841        teststring=$teststring$teststring
4842      done
4843      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4844      # If test is not a shell built-in, we'll probably end up computing a
4845      # maximum length that is only half of the actual maximum length, but
4846      # we can't tell.
4847      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4848	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4849	      test $i != 17 # 1/2 MB should be enough
4850      do
4851        i=`expr $i + 1`
4852        teststring=$teststring$teststring
4853      done
4854      # Only check the string length outside the loop.
4855      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4856      teststring=
4857      # Add a significant safety factor because C++ compilers can tack on
4858      # massive amounts of additional arguments before passing them to the
4859      # linker.  It appears as though 1/2 is a usable value.
4860      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4861    fi
4862    ;;
4863  esac
4864
4865fi
4866
4867if test -n $lt_cv_sys_max_cmd_len ; then
4868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4869$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4870else
4871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4872$as_echo "none" >&6; }
4873fi
4874max_cmd_len=$lt_cv_sys_max_cmd_len
4875
4876
4877
4878
4879
4880
4881: ${CP="cp -f"}
4882: ${MV="mv -f"}
4883: ${RM="rm -f"}
4884
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4886$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4887# Try some XSI features
4888xsi_shell=no
4889( _lt_dummy="a/b/c"
4890  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4891      = c,a/b,b/c, \
4892    && eval 'test $(( 1 + 1 )) -eq 2 \
4893    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4894  && xsi_shell=yes
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4896$as_echo "$xsi_shell" >&6; }
4897
4898
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4900$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4901lt_shell_append=no
4902( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4903    >/dev/null 2>&1 \
4904  && lt_shell_append=yes
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4906$as_echo "$lt_shell_append" >&6; }
4907
4908
4909if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4910  lt_unset=unset
4911else
4912  lt_unset=false
4913fi
4914
4915
4916
4917
4918
4919# test EBCDIC or ASCII
4920case `echo X|tr X '\101'` in
4921 A) # ASCII based system
4922    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4923  lt_SP2NL='tr \040 \012'
4924  lt_NL2SP='tr \015\012 \040\040'
4925  ;;
4926 *) # EBCDIC based system
4927  lt_SP2NL='tr \100 \n'
4928  lt_NL2SP='tr \r\n \100\100'
4929  ;;
4930esac
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4941$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4942if ${lt_cv_to_host_file_cmd+:} false; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  case $host in
4946  *-*-mingw* )
4947    case $build in
4948      *-*-mingw* ) # actually msys
4949        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4950        ;;
4951      *-*-cygwin* )
4952        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4953        ;;
4954      * ) # otherwise, assume *nix
4955        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4956        ;;
4957    esac
4958    ;;
4959  *-*-cygwin* )
4960    case $build in
4961      *-*-mingw* ) # actually msys
4962        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4963        ;;
4964      *-*-cygwin* )
4965        lt_cv_to_host_file_cmd=func_convert_file_noop
4966        ;;
4967      * ) # otherwise, assume *nix
4968        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4969        ;;
4970    esac
4971    ;;
4972  * ) # unhandled hosts (and "normal" native builds)
4973    lt_cv_to_host_file_cmd=func_convert_file_noop
4974    ;;
4975esac
4976
4977fi
4978
4979to_host_file_cmd=$lt_cv_to_host_file_cmd
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4981$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4982
4983
4984
4985
4986
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4988$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4989if ${lt_cv_to_tool_file_cmd+:} false; then :
4990  $as_echo_n "(cached) " >&6
4991else
4992  #assume ordinary cross tools, or native build.
4993lt_cv_to_tool_file_cmd=func_convert_file_noop
4994case $host in
4995  *-*-mingw* )
4996    case $build in
4997      *-*-mingw* ) # actually msys
4998        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4999        ;;
5000    esac
5001    ;;
5002esac
5003
5004fi
5005
5006to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5008$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5009
5010
5011
5012
5013
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5015$as_echo_n "checking for $LD option to reload object files... " >&6; }
5016if ${lt_cv_ld_reload_flag+:} false; then :
5017  $as_echo_n "(cached) " >&6
5018else
5019  lt_cv_ld_reload_flag='-r'
5020fi
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5022$as_echo "$lt_cv_ld_reload_flag" >&6; }
5023reload_flag=$lt_cv_ld_reload_flag
5024case $reload_flag in
5025"" | " "*) ;;
5026*) reload_flag=" $reload_flag" ;;
5027esac
5028reload_cmds='$LD$reload_flag -o $output$reload_objs'
5029case $host_os in
5030  cygwin* | mingw* | pw32* | cegcc*)
5031    if test "$GCC" != yes; then
5032      reload_cmds=false
5033    fi
5034    ;;
5035  darwin*)
5036    if test "$GCC" = yes; then
5037      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5038    else
5039      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5040    fi
5041    ;;
5042esac
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052if test -n "$ac_tool_prefix"; then
5053  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5054set dummy ${ac_tool_prefix}objdump; ac_word=$2
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056$as_echo_n "checking for $ac_word... " >&6; }
5057if ${ac_cv_prog_OBJDUMP+:} false; then :
5058  $as_echo_n "(cached) " >&6
5059else
5060  if test -n "$OBJDUMP"; then
5061  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5062else
5063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064for as_dir in $PATH
5065do
5066  IFS=$as_save_IFS
5067  test -z "$as_dir" && as_dir=.
5068    for ac_exec_ext in '' $ac_executable_extensions; do
5069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072    break 2
5073  fi
5074done
5075  done
5076IFS=$as_save_IFS
5077
5078fi
5079fi
5080OBJDUMP=$ac_cv_prog_OBJDUMP
5081if test -n "$OBJDUMP"; then
5082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5083$as_echo "$OBJDUMP" >&6; }
5084else
5085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086$as_echo "no" >&6; }
5087fi
5088
5089
5090fi
5091if test -z "$ac_cv_prog_OBJDUMP"; then
5092  ac_ct_OBJDUMP=$OBJDUMP
5093  # Extract the first word of "objdump", so it can be a program name with args.
5094set dummy objdump; ac_word=$2
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096$as_echo_n "checking for $ac_word... " >&6; }
5097if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5098  $as_echo_n "(cached) " >&6
5099else
5100  if test -n "$ac_ct_OBJDUMP"; then
5101  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5102else
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106  IFS=$as_save_IFS
5107  test -z "$as_dir" && as_dir=.
5108    for ac_exec_ext in '' $ac_executable_extensions; do
5109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112    break 2
5113  fi
5114done
5115  done
5116IFS=$as_save_IFS
5117
5118fi
5119fi
5120ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5121if test -n "$ac_ct_OBJDUMP"; then
5122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5123$as_echo "$ac_ct_OBJDUMP" >&6; }
5124else
5125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126$as_echo "no" >&6; }
5127fi
5128
5129  if test "x$ac_ct_OBJDUMP" = x; then
5130    OBJDUMP="false"
5131  else
5132    case $cross_compiling:$ac_tool_warned in
5133yes:)
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5136ac_tool_warned=yes ;;
5137esac
5138    OBJDUMP=$ac_ct_OBJDUMP
5139  fi
5140else
5141  OBJDUMP="$ac_cv_prog_OBJDUMP"
5142fi
5143
5144test -z "$OBJDUMP" && OBJDUMP=objdump
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5155$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5156if ${lt_cv_deplibs_check_method+:} false; then :
5157  $as_echo_n "(cached) " >&6
5158else
5159  lt_cv_file_magic_cmd='$MAGIC_CMD'
5160lt_cv_file_magic_test_file=
5161lt_cv_deplibs_check_method='unknown'
5162# Need to set the preceding variable on all platforms that support
5163# interlibrary dependencies.
5164# 'none' -- dependencies not supported.
5165# `unknown' -- same as none, but documents that we really don't know.
5166# 'pass_all' -- all dependencies passed with no checks.
5167# 'test_compile' -- check by making test program.
5168# 'file_magic [[regex]]' -- check by looking for files in library path
5169# which responds to the $file_magic_cmd with a given extended regex.
5170# If you have `file' or equivalent on your system and you're not sure
5171# whether `pass_all' will *always* work, you probably want this one.
5172
5173case $host_os in
5174aix[4-9]*)
5175  lt_cv_deplibs_check_method=pass_all
5176  ;;
5177
5178beos*)
5179  lt_cv_deplibs_check_method=pass_all
5180  ;;
5181
5182bsdi[45]*)
5183  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5184  lt_cv_file_magic_cmd='/usr/bin/file -L'
5185  lt_cv_file_magic_test_file=/shlib/libc.so
5186  ;;
5187
5188cygwin*)
5189  # func_win32_libid is a shell function defined in ltmain.sh
5190  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5191  lt_cv_file_magic_cmd='func_win32_libid'
5192  ;;
5193
5194mingw* | pw32*)
5195  # Base MSYS/MinGW do not provide the 'file' command needed by
5196  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5197  # unless we find 'file', for example because we are cross-compiling.
5198  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5199  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5200    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5201    lt_cv_file_magic_cmd='func_win32_libid'
5202  else
5203    # Keep this pattern in sync with the one in func_win32_libid.
5204    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5205    lt_cv_file_magic_cmd='$OBJDUMP -f'
5206  fi
5207  ;;
5208
5209cegcc*)
5210  # use the weaker test based on 'objdump'. See mingw*.
5211  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5212  lt_cv_file_magic_cmd='$OBJDUMP -f'
5213  ;;
5214
5215darwin* | rhapsody*)
5216  lt_cv_deplibs_check_method=pass_all
5217  ;;
5218
5219freebsd* | dragonfly*)
5220  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5221    case $host_cpu in
5222    i*86 )
5223      # Not sure whether the presence of OpenBSD here was a mistake.
5224      # Let's accept both of them until this is cleared up.
5225      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5226      lt_cv_file_magic_cmd=/usr/bin/file
5227      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5228      ;;
5229    esac
5230  else
5231    lt_cv_deplibs_check_method=pass_all
5232  fi
5233  ;;
5234
5235gnu*)
5236  lt_cv_deplibs_check_method=pass_all
5237  ;;
5238
5239haiku*)
5240  lt_cv_deplibs_check_method=pass_all
5241  ;;
5242
5243hpux10.20* | hpux11*)
5244  lt_cv_file_magic_cmd=/usr/bin/file
5245  case $host_cpu in
5246  ia64*)
5247    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5248    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5249    ;;
5250  hppa*64*)
5251    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]'
5252    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5253    ;;
5254  *)
5255    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5256    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5257    ;;
5258  esac
5259  ;;
5260
5261interix[3-9]*)
5262  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5263  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5264  ;;
5265
5266irix5* | irix6* | nonstopux*)
5267  case $LD in
5268  *-32|*"-32 ") libmagic=32-bit;;
5269  *-n32|*"-n32 ") libmagic=N32;;
5270  *-64|*"-64 ") libmagic=64-bit;;
5271  *) libmagic=never-match;;
5272  esac
5273  lt_cv_deplibs_check_method=pass_all
5274  ;;
5275
5276# This must be glibc/ELF.
5277linux* | k*bsd*-gnu | kopensolaris*-gnu)
5278  lt_cv_deplibs_check_method=pass_all
5279  ;;
5280
5281netbsd* | netbsdelf*-gnu)
5282  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5283    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5284  else
5285    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5286  fi
5287  ;;
5288
5289newos6*)
5290  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5291  lt_cv_file_magic_cmd=/usr/bin/file
5292  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5293  ;;
5294
5295*nto* | *qnx*)
5296  lt_cv_deplibs_check_method=pass_all
5297  ;;
5298
5299openbsd*)
5300  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5301    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5302  else
5303    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5304  fi
5305  ;;
5306
5307osf3* | osf4* | osf5*)
5308  lt_cv_deplibs_check_method=pass_all
5309  ;;
5310
5311rdos*)
5312  lt_cv_deplibs_check_method=pass_all
5313  ;;
5314
5315solaris*)
5316  lt_cv_deplibs_check_method=pass_all
5317  ;;
5318
5319sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5320  lt_cv_deplibs_check_method=pass_all
5321  ;;
5322
5323sysv4 | sysv4.3*)
5324  case $host_vendor in
5325  motorola)
5326    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]'
5327    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5328    ;;
5329  ncr)
5330    lt_cv_deplibs_check_method=pass_all
5331    ;;
5332  sequent)
5333    lt_cv_file_magic_cmd='/bin/file'
5334    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5335    ;;
5336  sni)
5337    lt_cv_file_magic_cmd='/bin/file'
5338    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5339    lt_cv_file_magic_test_file=/lib/libc.so
5340    ;;
5341  siemens)
5342    lt_cv_deplibs_check_method=pass_all
5343    ;;
5344  pc)
5345    lt_cv_deplibs_check_method=pass_all
5346    ;;
5347  esac
5348  ;;
5349
5350tpf*)
5351  lt_cv_deplibs_check_method=pass_all
5352  ;;
5353esac
5354
5355fi
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5357$as_echo "$lt_cv_deplibs_check_method" >&6; }
5358
5359file_magic_glob=
5360want_nocaseglob=no
5361if test "$build" = "$host"; then
5362  case $host_os in
5363  mingw* | pw32*)
5364    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5365      want_nocaseglob=yes
5366    else
5367      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5368    fi
5369    ;;
5370  esac
5371fi
5372
5373file_magic_cmd=$lt_cv_file_magic_cmd
5374deplibs_check_method=$lt_cv_deplibs_check_method
5375test -z "$deplibs_check_method" && deplibs_check_method=unknown
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398if test -n "$ac_tool_prefix"; then
5399  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5400set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402$as_echo_n "checking for $ac_word... " >&6; }
5403if ${ac_cv_prog_DLLTOOL+:} false; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  if test -n "$DLLTOOL"; then
5407  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5408else
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412  IFS=$as_save_IFS
5413  test -z "$as_dir" && as_dir=.
5414    for ac_exec_ext in '' $ac_executable_extensions; do
5415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418    break 2
5419  fi
5420done
5421  done
5422IFS=$as_save_IFS
5423
5424fi
5425fi
5426DLLTOOL=$ac_cv_prog_DLLTOOL
5427if test -n "$DLLTOOL"; then
5428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5429$as_echo "$DLLTOOL" >&6; }
5430else
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432$as_echo "no" >&6; }
5433fi
5434
5435
5436fi
5437if test -z "$ac_cv_prog_DLLTOOL"; then
5438  ac_ct_DLLTOOL=$DLLTOOL
5439  # Extract the first word of "dlltool", so it can be a program name with args.
5440set dummy dlltool; ac_word=$2
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442$as_echo_n "checking for $ac_word... " >&6; }
5443if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5444  $as_echo_n "(cached) " >&6
5445else
5446  if test -n "$ac_ct_DLLTOOL"; then
5447  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452  IFS=$as_save_IFS
5453  test -z "$as_dir" && as_dir=.
5454    for ac_exec_ext in '' $ac_executable_extensions; do
5455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5456    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458    break 2
5459  fi
5460done
5461  done
5462IFS=$as_save_IFS
5463
5464fi
5465fi
5466ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5467if test -n "$ac_ct_DLLTOOL"; then
5468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5469$as_echo "$ac_ct_DLLTOOL" >&6; }
5470else
5471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472$as_echo "no" >&6; }
5473fi
5474
5475  if test "x$ac_ct_DLLTOOL" = x; then
5476    DLLTOOL="false"
5477  else
5478    case $cross_compiling:$ac_tool_warned in
5479yes:)
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5482ac_tool_warned=yes ;;
5483esac
5484    DLLTOOL=$ac_ct_DLLTOOL
5485  fi
5486else
5487  DLLTOOL="$ac_cv_prog_DLLTOOL"
5488fi
5489
5490test -z "$DLLTOOL" && DLLTOOL=dlltool
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5502$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5503if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5504  $as_echo_n "(cached) " >&6
5505else
5506  lt_cv_sharedlib_from_linklib_cmd='unknown'
5507
5508case $host_os in
5509cygwin* | mingw* | pw32* | cegcc*)
5510  # two different shell functions defined in ltmain.sh
5511  # decide which to use based on capabilities of $DLLTOOL
5512  case `$DLLTOOL --help 2>&1` in
5513  *--identify-strict*)
5514    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5515    ;;
5516  *)
5517    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5518    ;;
5519  esac
5520  ;;
5521*)
5522  # fallback: assume linklib IS sharedlib
5523  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5524  ;;
5525esac
5526
5527fi
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5529$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5530sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5531test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5532
5533
5534
5535
5536
5537
5538
5539
5540if test -n "$ac_tool_prefix"; then
5541  for ac_prog in ar
5542  do
5543    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5544set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546$as_echo_n "checking for $ac_word... " >&6; }
5547if ${ac_cv_prog_AR+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  if test -n "$AR"; then
5551  ac_cv_prog_AR="$AR" # Let the user override the test.
5552else
5553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH
5555do
5556  IFS=$as_save_IFS
5557  test -z "$as_dir" && as_dir=.
5558    for ac_exec_ext in '' $ac_executable_extensions; do
5559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5560    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562    break 2
5563  fi
5564done
5565  done
5566IFS=$as_save_IFS
5567
5568fi
5569fi
5570AR=$ac_cv_prog_AR
5571if test -n "$AR"; then
5572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5573$as_echo "$AR" >&6; }
5574else
5575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576$as_echo "no" >&6; }
5577fi
5578
5579
5580    test -n "$AR" && break
5581  done
5582fi
5583if test -z "$AR"; then
5584  ac_ct_AR=$AR
5585  for ac_prog in ar
5586do
5587  # Extract the first word of "$ac_prog", so it can be a program name with args.
5588set dummy $ac_prog; 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_ac_ct_AR+:} false; then :
5592  $as_echo_n "(cached) " >&6
5593else
5594  if test -n "$ac_ct_AR"; then
5595  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="$ac_prog"
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
5614ac_ct_AR=$ac_cv_prog_ac_ct_AR
5615if test -n "$ac_ct_AR"; then
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5617$as_echo "$ac_ct_AR" >&6; }
5618else
5619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620$as_echo "no" >&6; }
5621fi
5622
5623
5624  test -n "$ac_ct_AR" && break
5625done
5626
5627  if test "x$ac_ct_AR" = x; then
5628    AR="false"
5629  else
5630    case $cross_compiling:$ac_tool_warned in
5631yes:)
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5634ac_tool_warned=yes ;;
5635esac
5636    AR=$ac_ct_AR
5637  fi
5638fi
5639
5640: ${AR=ar}
5641: ${AR_FLAGS=cru}
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5654$as_echo_n "checking for archiver @FILE support... " >&6; }
5655if ${lt_cv_ar_at_file+:} false; then :
5656  $as_echo_n "(cached) " >&6
5657else
5658  lt_cv_ar_at_file=no
5659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h.  */
5661
5662int
5663main ()
5664{
5665
5666  ;
5667  return 0;
5668}
5669_ACEOF
5670if ac_fn_c_try_compile "$LINENO"; then :
5671  echo conftest.$ac_objext > conftest.lst
5672      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5673      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5674  (eval $lt_ar_try) 2>&5
5675  ac_status=$?
5676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677  test $ac_status = 0; }
5678      if test "$ac_status" -eq 0; then
5679	# Ensure the archiver fails upon bogus file names.
5680	rm -f conftest.$ac_objext libconftest.a
5681	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5682  (eval $lt_ar_try) 2>&5
5683  ac_status=$?
5684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685  test $ac_status = 0; }
5686	if test "$ac_status" -ne 0; then
5687          lt_cv_ar_at_file=@
5688        fi
5689      fi
5690      rm -f conftest.* libconftest.a
5691
5692fi
5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694
5695fi
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5697$as_echo "$lt_cv_ar_at_file" >&6; }
5698
5699if test "x$lt_cv_ar_at_file" = xno; then
5700  archiver_list_spec=
5701else
5702  archiver_list_spec=$lt_cv_ar_at_file
5703fi
5704
5705
5706
5707
5708
5709
5710
5711if test -n "$ac_tool_prefix"; then
5712  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5713set dummy ${ac_tool_prefix}strip; ac_word=$2
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715$as_echo_n "checking for $ac_word... " >&6; }
5716if ${ac_cv_prog_STRIP+:} false; then :
5717  $as_echo_n "(cached) " >&6
5718else
5719  if test -n "$STRIP"; then
5720  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5721else
5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725  IFS=$as_save_IFS
5726  test -z "$as_dir" && as_dir=.
5727    for ac_exec_ext in '' $ac_executable_extensions; do
5728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731    break 2
5732  fi
5733done
5734  done
5735IFS=$as_save_IFS
5736
5737fi
5738fi
5739STRIP=$ac_cv_prog_STRIP
5740if test -n "$STRIP"; then
5741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5742$as_echo "$STRIP" >&6; }
5743else
5744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745$as_echo "no" >&6; }
5746fi
5747
5748
5749fi
5750if test -z "$ac_cv_prog_STRIP"; then
5751  ac_ct_STRIP=$STRIP
5752  # Extract the first word of "strip", so it can be a program name with args.
5753set dummy strip; ac_word=$2
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755$as_echo_n "checking for $ac_word... " >&6; }
5756if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  if test -n "$ac_ct_STRIP"; then
5760  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765  IFS=$as_save_IFS
5766  test -z "$as_dir" && as_dir=.
5767    for ac_exec_ext in '' $ac_executable_extensions; do
5768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769    ac_cv_prog_ac_ct_STRIP="strip"
5770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771    break 2
5772  fi
5773done
5774  done
5775IFS=$as_save_IFS
5776
5777fi
5778fi
5779ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5780if test -n "$ac_ct_STRIP"; then
5781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5782$as_echo "$ac_ct_STRIP" >&6; }
5783else
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787
5788  if test "x$ac_ct_STRIP" = x; then
5789    STRIP=":"
5790  else
5791    case $cross_compiling:$ac_tool_warned in
5792yes:)
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795ac_tool_warned=yes ;;
5796esac
5797    STRIP=$ac_ct_STRIP
5798  fi
5799else
5800  STRIP="$ac_cv_prog_STRIP"
5801fi
5802
5803test -z "$STRIP" && STRIP=:
5804
5805
5806
5807
5808
5809
5810if test -n "$ac_tool_prefix"; then
5811  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814$as_echo_n "checking for $ac_word... " >&6; }
5815if ${ac_cv_prog_RANLIB+:} false; then :
5816  $as_echo_n "(cached) " >&6
5817else
5818  if test -n "$RANLIB"; then
5819  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824  IFS=$as_save_IFS
5825  test -z "$as_dir" && as_dir=.
5826    for ac_exec_ext in '' $ac_executable_extensions; do
5827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830    break 2
5831  fi
5832done
5833  done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838RANLIB=$ac_cv_prog_RANLIB
5839if test -n "$RANLIB"; then
5840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5841$as_echo "$RANLIB" >&6; }
5842else
5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844$as_echo "no" >&6; }
5845fi
5846
5847
5848fi
5849if test -z "$ac_cv_prog_RANLIB"; then
5850  ac_ct_RANLIB=$RANLIB
5851  # Extract the first word of "ranlib", so it can be a program name with args.
5852set dummy ranlib; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; }
5855if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5856  $as_echo_n "(cached) " >&6
5857else
5858  if test -n "$ac_ct_RANLIB"; then
5859  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864  IFS=$as_save_IFS
5865  test -z "$as_dir" && as_dir=.
5866    for ac_exec_ext in '' $ac_executable_extensions; do
5867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868    ac_cv_prog_ac_ct_RANLIB="ranlib"
5869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870    break 2
5871  fi
5872done
5873  done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5879if test -n "$ac_ct_RANLIB"; then
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5881$as_echo "$ac_ct_RANLIB" >&6; }
5882else
5883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887  if test "x$ac_ct_RANLIB" = x; then
5888    RANLIB=":"
5889  else
5890    case $cross_compiling:$ac_tool_warned in
5891yes:)
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894ac_tool_warned=yes ;;
5895esac
5896    RANLIB=$ac_ct_RANLIB
5897  fi
5898else
5899  RANLIB="$ac_cv_prog_RANLIB"
5900fi
5901
5902test -z "$RANLIB" && RANLIB=:
5903
5904
5905
5906
5907
5908
5909# Determine commands to create old-style static archives.
5910old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5911old_postinstall_cmds='chmod 644 $oldlib'
5912old_postuninstall_cmds=
5913
5914if test -n "$RANLIB"; then
5915  case $host_os in
5916  openbsd*)
5917    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5918    ;;
5919  *)
5920    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5921    ;;
5922  esac
5923  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5924fi
5925
5926case $host_os in
5927  darwin*)
5928    lock_old_archive_extraction=yes ;;
5929  *)
5930    lock_old_archive_extraction=no ;;
5931esac
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971# If no C compiler was specified, use CC.
5972LTCC=${LTCC-"$CC"}
5973
5974# If no C compiler flags were specified, use CFLAGS.
5975LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5976
5977# Allow CC to be a program name with arguments.
5978compiler=$CC
5979
5980
5981# Check for command to grab the raw symbol name followed by C symbol from nm.
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5983$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5984if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987
5988# These are sane defaults that work on at least a few old systems.
5989# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5990
5991# Character class describing NM global symbol codes.
5992symcode='[BCDEGRST]'
5993
5994# Regexp to match symbols that can be accessed directly from C.
5995sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5996
5997# Define system-specific variables.
5998case $host_os in
5999aix*)
6000  symcode='[BCDT]'
6001  ;;
6002cygwin* | mingw* | pw32* | cegcc*)
6003  symcode='[ABCDGISTW]'
6004  ;;
6005hpux*)
6006  if test "$host_cpu" = ia64; then
6007    symcode='[ABCDEGRST]'
6008  fi
6009  ;;
6010irix* | nonstopux*)
6011  symcode='[BCDEGRST]'
6012  ;;
6013osf*)
6014  symcode='[BCDEGQRST]'
6015  ;;
6016solaris*)
6017  symcode='[BDRT]'
6018  ;;
6019sco3.2v5*)
6020  symcode='[DT]'
6021  ;;
6022sysv4.2uw2*)
6023  symcode='[DT]'
6024  ;;
6025sysv5* | sco5v6* | unixware* | OpenUNIX*)
6026  symcode='[ABDT]'
6027  ;;
6028sysv4)
6029  symcode='[DFNSTU]'
6030  ;;
6031esac
6032
6033# If we're using GNU nm, then use its standard symbol codes.
6034case `$NM -V 2>&1` in
6035*GNU* | *'with BFD'*)
6036  symcode='[ABCDGIRSTW]' ;;
6037esac
6038
6039# Transform an extracted symbol line into a proper C declaration.
6040# Some systems (esp. on ia64) link data and code symbols differently,
6041# so use this general approach.
6042lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6043
6044# Transform an extracted symbol line into symbol name and symbol address
6045lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6046lt_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'"
6047
6048# Handle CRLF in mingw tool chain
6049opt_cr=
6050case $build_os in
6051mingw*)
6052  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6053  ;;
6054esac
6055
6056# Try without a prefix underscore, then with it.
6057for ac_symprfx in "" "_"; do
6058
6059  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6060  symxfrm="\\1 $ac_symprfx\\2 \\2"
6061
6062  # Write the raw and C identifiers.
6063  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6064    # Fake it for dumpbin and say T for any non-static function
6065    # and D for any global variable.
6066    # Also find C++ and __fastcall symbols from MSVC++,
6067    # which start with @ or ?.
6068    lt_cv_sys_global_symbol_pipe="$AWK '"\
6069"     {last_section=section; section=\$ 3};"\
6070"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6071"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6072"     \$ 0!~/External *\|/{next};"\
6073"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6074"     {if(hide[section]) next};"\
6075"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6076"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6077"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6078"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6079"     ' prfx=^$ac_symprfx"
6080  else
6081    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6082  fi
6083  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6084
6085  # Check to see that the pipe works correctly.
6086  pipe_works=no
6087
6088  rm -f conftest*
6089  cat > conftest.$ac_ext <<_LT_EOF
6090#ifdef __cplusplus
6091extern "C" {
6092#endif
6093char nm_test_var;
6094void nm_test_func(void);
6095void nm_test_func(void){}
6096#ifdef __cplusplus
6097}
6098#endif
6099int main(){nm_test_var='a';nm_test_func();return(0);}
6100_LT_EOF
6101
6102  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6103  (eval $ac_compile) 2>&5
6104  ac_status=$?
6105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6106  test $ac_status = 0; }; then
6107    # Now try to grab the symbols.
6108    nlist=conftest.nm
6109    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6110  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6111  ac_status=$?
6112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6113  test $ac_status = 0; } && test -s "$nlist"; then
6114      # Try sorting and uniquifying the output.
6115      if sort "$nlist" | uniq > "$nlist"T; then
6116	mv -f "$nlist"T "$nlist"
6117      else
6118	rm -f "$nlist"T
6119      fi
6120
6121      # Make sure that we snagged all the symbols we need.
6122      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6123	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6124	  cat <<_LT_EOF > conftest.$ac_ext
6125/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6126#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6127/* DATA imports from DLLs on WIN32 con't be const, because runtime
6128   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6129# define LT_DLSYM_CONST
6130#elif defined(__osf__)
6131/* This system does not cope well with relocations in const data.  */
6132# define LT_DLSYM_CONST
6133#else
6134# define LT_DLSYM_CONST const
6135#endif
6136
6137#ifdef __cplusplus
6138extern "C" {
6139#endif
6140
6141_LT_EOF
6142	  # Now generate the symbol file.
6143	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6144
6145	  cat <<_LT_EOF >> conftest.$ac_ext
6146
6147/* The mapping between symbol names and symbols.  */
6148LT_DLSYM_CONST struct {
6149  const char *name;
6150  void       *address;
6151}
6152lt__PROGRAM__LTX_preloaded_symbols[] =
6153{
6154  { "@PROGRAM@", (void *) 0 },
6155_LT_EOF
6156	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6157	  cat <<\_LT_EOF >> conftest.$ac_ext
6158  {0, (void *) 0}
6159};
6160
6161/* This works around a problem in FreeBSD linker */
6162#ifdef FREEBSD_WORKAROUND
6163static const void *lt_preloaded_setup() {
6164  return lt__PROGRAM__LTX_preloaded_symbols;
6165}
6166#endif
6167
6168#ifdef __cplusplus
6169}
6170#endif
6171_LT_EOF
6172	  # Now try linking the two files.
6173	  mv conftest.$ac_objext conftstm.$ac_objext
6174	  lt_globsym_save_LIBS=$LIBS
6175	  lt_globsym_save_CFLAGS=$CFLAGS
6176	  LIBS="conftstm.$ac_objext"
6177	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6178	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6179  (eval $ac_link) 2>&5
6180  ac_status=$?
6181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6183	    pipe_works=yes
6184	  fi
6185	  LIBS=$lt_globsym_save_LIBS
6186	  CFLAGS=$lt_globsym_save_CFLAGS
6187	else
6188	  echo "cannot find nm_test_func in $nlist" >&5
6189	fi
6190      else
6191	echo "cannot find nm_test_var in $nlist" >&5
6192      fi
6193    else
6194      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6195    fi
6196  else
6197    echo "$progname: failed program was:" >&5
6198    cat conftest.$ac_ext >&5
6199  fi
6200  rm -rf conftest* conftst*
6201
6202  # Do not use the global_symbol_pipe unless it works.
6203  if test "$pipe_works" = yes; then
6204    break
6205  else
6206    lt_cv_sys_global_symbol_pipe=
6207  fi
6208done
6209
6210fi
6211
6212if test -z "$lt_cv_sys_global_symbol_pipe"; then
6213  lt_cv_sys_global_symbol_to_cdecl=
6214fi
6215if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6217$as_echo "failed" >&6; }
6218else
6219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6220$as_echo "ok" >&6; }
6221fi
6222
6223# Response file support.
6224if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6225  nm_file_list_spec='@'
6226elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6227  nm_file_list_spec='@'
6228fi
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6257$as_echo_n "checking for sysroot... " >&6; }
6258
6259# Check whether --with-sysroot was given.
6260if test "${with_sysroot+set}" = set; then :
6261  withval=$with_sysroot;
6262else
6263  with_sysroot=no
6264fi
6265
6266
6267lt_sysroot=
6268case ${with_sysroot} in #(
6269 yes)
6270   if test "$GCC" = yes; then
6271     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6272   fi
6273   ;; #(
6274 /*)
6275   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6276   ;; #(
6277 no|'')
6278   ;; #(
6279 *)
6280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6281$as_echo "${with_sysroot}" >&6; }
6282   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6283   ;;
6284esac
6285
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6287$as_echo "${lt_sysroot:-no}" >&6; }
6288
6289
6290
6291
6292
6293# Check whether --enable-libtool-lock was given.
6294if test "${enable_libtool_lock+set}" = set; then :
6295  enableval=$enable_libtool_lock;
6296fi
6297
6298test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6299
6300# Some flags need to be propagated to the compiler or linker for good
6301# libtool support.
6302case $host in
6303ia64-*-hpux*)
6304  # Find out which ABI we are using.
6305  echo 'int i;' > conftest.$ac_ext
6306  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6307  (eval $ac_compile) 2>&5
6308  ac_status=$?
6309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310  test $ac_status = 0; }; then
6311    case `/usr/bin/file conftest.$ac_objext` in
6312      *ELF-32*)
6313	HPUX_IA64_MODE="32"
6314	;;
6315      *ELF-64*)
6316	HPUX_IA64_MODE="64"
6317	;;
6318    esac
6319  fi
6320  rm -rf conftest*
6321  ;;
6322*-*-irix6*)
6323  # Find out which ABI we are using.
6324  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6325  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6326  (eval $ac_compile) 2>&5
6327  ac_status=$?
6328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6329  test $ac_status = 0; }; then
6330    if test "$lt_cv_prog_gnu_ld" = yes; then
6331      case `/usr/bin/file conftest.$ac_objext` in
6332	*32-bit*)
6333	  LD="${LD-ld} -melf32bsmip"
6334	  ;;
6335	*N32*)
6336	  LD="${LD-ld} -melf32bmipn32"
6337	  ;;
6338	*64-bit*)
6339	  LD="${LD-ld} -melf64bmip"
6340	;;
6341      esac
6342    else
6343      case `/usr/bin/file conftest.$ac_objext` in
6344	*32-bit*)
6345	  LD="${LD-ld} -32"
6346	  ;;
6347	*N32*)
6348	  LD="${LD-ld} -n32"
6349	  ;;
6350	*64-bit*)
6351	  LD="${LD-ld} -64"
6352	  ;;
6353      esac
6354    fi
6355  fi
6356  rm -rf conftest*
6357  ;;
6358
6359x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6360s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6361  # Find out which ABI we are using.
6362  echo 'int i;' > conftest.$ac_ext
6363  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6364  (eval $ac_compile) 2>&5
6365  ac_status=$?
6366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6367  test $ac_status = 0; }; then
6368    case `/usr/bin/file conftest.o` in
6369      *32-bit*)
6370	case $host in
6371	  x86_64-*kfreebsd*-gnu)
6372	    LD="${LD-ld} -m elf_i386_fbsd"
6373	    ;;
6374	  x86_64-*linux*)
6375	    LD="${LD-ld} -m elf_i386"
6376	    ;;
6377	  ppc64-*linux*|powerpc64-*linux*)
6378	    LD="${LD-ld} -m elf32ppclinux"
6379	    ;;
6380	  s390x-*linux*)
6381	    LD="${LD-ld} -m elf_s390"
6382	    ;;
6383	  sparc64-*linux*)
6384	    LD="${LD-ld} -m elf32_sparc"
6385	    ;;
6386	esac
6387	;;
6388      *64-bit*)
6389	case $host in
6390	  x86_64-*kfreebsd*-gnu)
6391	    LD="${LD-ld} -m elf_x86_64_fbsd"
6392	    ;;
6393	  x86_64-*linux*)
6394	    LD="${LD-ld} -m elf_x86_64"
6395	    ;;
6396	  ppc*-*linux*|powerpc*-*linux*)
6397	    LD="${LD-ld} -m elf64ppc"
6398	    ;;
6399	  s390*-*linux*|s390*-*tpf*)
6400	    LD="${LD-ld} -m elf64_s390"
6401	    ;;
6402	  sparc*-*linux*)
6403	    LD="${LD-ld} -m elf64_sparc"
6404	    ;;
6405	esac
6406	;;
6407    esac
6408  fi
6409  rm -rf conftest*
6410  ;;
6411
6412*-*-sco3.2v5*)
6413  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6414  SAVE_CFLAGS="$CFLAGS"
6415  CFLAGS="$CFLAGS -belf"
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6417$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6418if ${lt_cv_cc_needs_belf+:} false; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  ac_ext=c
6422ac_cpp='$CPP $CPPFLAGS'
6423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6425ac_compiler_gnu=$ac_cv_c_compiler_gnu
6426
6427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428/* end confdefs.h.  */
6429
6430int
6431main ()
6432{
6433
6434  ;
6435  return 0;
6436}
6437_ACEOF
6438if ac_fn_c_try_link "$LINENO"; then :
6439  lt_cv_cc_needs_belf=yes
6440else
6441  lt_cv_cc_needs_belf=no
6442fi
6443rm -f core conftest.err conftest.$ac_objext \
6444    conftest$ac_exeext conftest.$ac_ext
6445     ac_ext=c
6446ac_cpp='$CPP $CPPFLAGS'
6447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450
6451fi
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6453$as_echo "$lt_cv_cc_needs_belf" >&6; }
6454  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6455    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6456    CFLAGS="$SAVE_CFLAGS"
6457  fi
6458  ;;
6459*-*solaris*)
6460  # Find out which ABI we are using.
6461  echo 'int i;' > conftest.$ac_ext
6462  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463  (eval $ac_compile) 2>&5
6464  ac_status=$?
6465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466  test $ac_status = 0; }; then
6467    case `/usr/bin/file conftest.o` in
6468    *64-bit*)
6469      case $lt_cv_prog_gnu_ld in
6470      yes*)
6471        case $host in
6472        i?86-*-solaris*)
6473          LD="${LD-ld} -m elf_x86_64"
6474          ;;
6475        sparc*-*-solaris*)
6476          LD="${LD-ld} -m elf64_sparc"
6477          ;;
6478        esac
6479        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6480        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6481          LD="${LD-ld}_sol2"
6482        fi
6483        ;;
6484      *)
6485	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6486	  LD="${LD-ld} -64"
6487	fi
6488	;;
6489      esac
6490      ;;
6491    esac
6492  fi
6493  rm -rf conftest*
6494  ;;
6495esac
6496
6497need_locks="$enable_libtool_lock"
6498
6499if test -n "$ac_tool_prefix"; then
6500  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6501set dummy ${ac_tool_prefix}mt; ac_word=$2
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503$as_echo_n "checking for $ac_word... " >&6; }
6504if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6505  $as_echo_n "(cached) " >&6
6506else
6507  if test -n "$MANIFEST_TOOL"; then
6508  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6509else
6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511for as_dir in $PATH
6512do
6513  IFS=$as_save_IFS
6514  test -z "$as_dir" && as_dir=.
6515    for ac_exec_ext in '' $ac_executable_extensions; do
6516  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519    break 2
6520  fi
6521done
6522  done
6523IFS=$as_save_IFS
6524
6525fi
6526fi
6527MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6528if test -n "$MANIFEST_TOOL"; then
6529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6530$as_echo "$MANIFEST_TOOL" >&6; }
6531else
6532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533$as_echo "no" >&6; }
6534fi
6535
6536
6537fi
6538if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6539  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6540  # Extract the first word of "mt", so it can be a program name with args.
6541set dummy mt; ac_word=$2
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543$as_echo_n "checking for $ac_word... " >&6; }
6544if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6545  $as_echo_n "(cached) " >&6
6546else
6547  if test -n "$ac_ct_MANIFEST_TOOL"; then
6548  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6549else
6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553  IFS=$as_save_IFS
6554  test -z "$as_dir" && as_dir=.
6555    for ac_exec_ext in '' $ac_executable_extensions; do
6556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559    break 2
6560  fi
6561done
6562  done
6563IFS=$as_save_IFS
6564
6565fi
6566fi
6567ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6568if test -n "$ac_ct_MANIFEST_TOOL"; then
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6570$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6571else
6572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573$as_echo "no" >&6; }
6574fi
6575
6576  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6577    MANIFEST_TOOL=":"
6578  else
6579    case $cross_compiling:$ac_tool_warned in
6580yes:)
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583ac_tool_warned=yes ;;
6584esac
6585    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6586  fi
6587else
6588  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6589fi
6590
6591test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6593$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6594if ${lt_cv_path_mainfest_tool+:} false; then :
6595  $as_echo_n "(cached) " >&6
6596else
6597  lt_cv_path_mainfest_tool=no
6598  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6599  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6600  cat conftest.err >&5
6601  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6602    lt_cv_path_mainfest_tool=yes
6603  fi
6604  rm -f conftest*
6605fi
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6607$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6608if test "x$lt_cv_path_mainfest_tool" != xyes; then
6609  MANIFEST_TOOL=:
6610fi
6611
6612
6613
6614
6615
6616
6617  case $host_os in
6618    rhapsody* | darwin*)
6619    if test -n "$ac_tool_prefix"; then
6620  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6621set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623$as_echo_n "checking for $ac_word... " >&6; }
6624if ${ac_cv_prog_DSYMUTIL+:} false; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  if test -n "$DSYMUTIL"; then
6628  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6629else
6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633  IFS=$as_save_IFS
6634  test -z "$as_dir" && as_dir=.
6635    for ac_exec_ext in '' $ac_executable_extensions; do
6636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639    break 2
6640  fi
6641done
6642  done
6643IFS=$as_save_IFS
6644
6645fi
6646fi
6647DSYMUTIL=$ac_cv_prog_DSYMUTIL
6648if test -n "$DSYMUTIL"; then
6649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6650$as_echo "$DSYMUTIL" >&6; }
6651else
6652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653$as_echo "no" >&6; }
6654fi
6655
6656
6657fi
6658if test -z "$ac_cv_prog_DSYMUTIL"; then
6659  ac_ct_DSYMUTIL=$DSYMUTIL
6660  # Extract the first word of "dsymutil", so it can be a program name with args.
6661set dummy dsymutil; ac_word=$2
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663$as_echo_n "checking for $ac_word... " >&6; }
6664if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6665  $as_echo_n "(cached) " >&6
6666else
6667  if test -n "$ac_ct_DSYMUTIL"; then
6668  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6669else
6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in $PATH
6672do
6673  IFS=$as_save_IFS
6674  test -z "$as_dir" && as_dir=.
6675    for ac_exec_ext in '' $ac_executable_extensions; do
6676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6677    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679    break 2
6680  fi
6681done
6682  done
6683IFS=$as_save_IFS
6684
6685fi
6686fi
6687ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6688if test -n "$ac_ct_DSYMUTIL"; then
6689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6690$as_echo "$ac_ct_DSYMUTIL" >&6; }
6691else
6692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693$as_echo "no" >&6; }
6694fi
6695
6696  if test "x$ac_ct_DSYMUTIL" = x; then
6697    DSYMUTIL=":"
6698  else
6699    case $cross_compiling:$ac_tool_warned in
6700yes:)
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6703ac_tool_warned=yes ;;
6704esac
6705    DSYMUTIL=$ac_ct_DSYMUTIL
6706  fi
6707else
6708  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6709fi
6710
6711    if test -n "$ac_tool_prefix"; then
6712  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6713set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715$as_echo_n "checking for $ac_word... " >&6; }
6716if ${ac_cv_prog_NMEDIT+:} false; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  if test -n "$NMEDIT"; then
6720  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6721else
6722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725  IFS=$as_save_IFS
6726  test -z "$as_dir" && as_dir=.
6727    for ac_exec_ext in '' $ac_executable_extensions; do
6728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731    break 2
6732  fi
6733done
6734  done
6735IFS=$as_save_IFS
6736
6737fi
6738fi
6739NMEDIT=$ac_cv_prog_NMEDIT
6740if test -n "$NMEDIT"; then
6741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6742$as_echo "$NMEDIT" >&6; }
6743else
6744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745$as_echo "no" >&6; }
6746fi
6747
6748
6749fi
6750if test -z "$ac_cv_prog_NMEDIT"; then
6751  ac_ct_NMEDIT=$NMEDIT
6752  # Extract the first word of "nmedit", so it can be a program name with args.
6753set dummy nmedit; ac_word=$2
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755$as_echo_n "checking for $ac_word... " >&6; }
6756if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6757  $as_echo_n "(cached) " >&6
6758else
6759  if test -n "$ac_ct_NMEDIT"; then
6760  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6761else
6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765  IFS=$as_save_IFS
6766  test -z "$as_dir" && as_dir=.
6767    for ac_exec_ext in '' $ac_executable_extensions; do
6768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771    break 2
6772  fi
6773done
6774  done
6775IFS=$as_save_IFS
6776
6777fi
6778fi
6779ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6780if test -n "$ac_ct_NMEDIT"; then
6781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6782$as_echo "$ac_ct_NMEDIT" >&6; }
6783else
6784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785$as_echo "no" >&6; }
6786fi
6787
6788  if test "x$ac_ct_NMEDIT" = x; then
6789    NMEDIT=":"
6790  else
6791    case $cross_compiling:$ac_tool_warned in
6792yes:)
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795ac_tool_warned=yes ;;
6796esac
6797    NMEDIT=$ac_ct_NMEDIT
6798  fi
6799else
6800  NMEDIT="$ac_cv_prog_NMEDIT"
6801fi
6802
6803    if test -n "$ac_tool_prefix"; then
6804  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6805set dummy ${ac_tool_prefix}lipo; ac_word=$2
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807$as_echo_n "checking for $ac_word... " >&6; }
6808if ${ac_cv_prog_LIPO+:} false; then :
6809  $as_echo_n "(cached) " >&6
6810else
6811  if test -n "$LIPO"; then
6812  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6813else
6814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817  IFS=$as_save_IFS
6818  test -z "$as_dir" && as_dir=.
6819    for ac_exec_ext in '' $ac_executable_extensions; do
6820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6821    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823    break 2
6824  fi
6825done
6826  done
6827IFS=$as_save_IFS
6828
6829fi
6830fi
6831LIPO=$ac_cv_prog_LIPO
6832if test -n "$LIPO"; then
6833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6834$as_echo "$LIPO" >&6; }
6835else
6836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837$as_echo "no" >&6; }
6838fi
6839
6840
6841fi
6842if test -z "$ac_cv_prog_LIPO"; then
6843  ac_ct_LIPO=$LIPO
6844  # Extract the first word of "lipo", so it can be a program name with args.
6845set dummy lipo; ac_word=$2
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847$as_echo_n "checking for $ac_word... " >&6; }
6848if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6849  $as_echo_n "(cached) " >&6
6850else
6851  if test -n "$ac_ct_LIPO"; then
6852  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6853else
6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857  IFS=$as_save_IFS
6858  test -z "$as_dir" && as_dir=.
6859    for ac_exec_ext in '' $ac_executable_extensions; do
6860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861    ac_cv_prog_ac_ct_LIPO="lipo"
6862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863    break 2
6864  fi
6865done
6866  done
6867IFS=$as_save_IFS
6868
6869fi
6870fi
6871ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6872if test -n "$ac_ct_LIPO"; then
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6874$as_echo "$ac_ct_LIPO" >&6; }
6875else
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877$as_echo "no" >&6; }
6878fi
6879
6880  if test "x$ac_ct_LIPO" = x; then
6881    LIPO=":"
6882  else
6883    case $cross_compiling:$ac_tool_warned in
6884yes:)
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6887ac_tool_warned=yes ;;
6888esac
6889    LIPO=$ac_ct_LIPO
6890  fi
6891else
6892  LIPO="$ac_cv_prog_LIPO"
6893fi
6894
6895    if test -n "$ac_tool_prefix"; then
6896  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6897set dummy ${ac_tool_prefix}otool; ac_word=$2
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899$as_echo_n "checking for $ac_word... " >&6; }
6900if ${ac_cv_prog_OTOOL+:} false; then :
6901  $as_echo_n "(cached) " >&6
6902else
6903  if test -n "$OTOOL"; then
6904  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6905else
6906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907for as_dir in $PATH
6908do
6909  IFS=$as_save_IFS
6910  test -z "$as_dir" && as_dir=.
6911    for ac_exec_ext in '' $ac_executable_extensions; do
6912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915    break 2
6916  fi
6917done
6918  done
6919IFS=$as_save_IFS
6920
6921fi
6922fi
6923OTOOL=$ac_cv_prog_OTOOL
6924if test -n "$OTOOL"; then
6925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6926$as_echo "$OTOOL" >&6; }
6927else
6928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929$as_echo "no" >&6; }
6930fi
6931
6932
6933fi
6934if test -z "$ac_cv_prog_OTOOL"; then
6935  ac_ct_OTOOL=$OTOOL
6936  # Extract the first word of "otool", so it can be a program name with args.
6937set dummy otool; ac_word=$2
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939$as_echo_n "checking for $ac_word... " >&6; }
6940if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6941  $as_echo_n "(cached) " >&6
6942else
6943  if test -n "$ac_ct_OTOOL"; then
6944  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949  IFS=$as_save_IFS
6950  test -z "$as_dir" && as_dir=.
6951    for ac_exec_ext in '' $ac_executable_extensions; do
6952  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953    ac_cv_prog_ac_ct_OTOOL="otool"
6954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955    break 2
6956  fi
6957done
6958  done
6959IFS=$as_save_IFS
6960
6961fi
6962fi
6963ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6964if test -n "$ac_ct_OTOOL"; then
6965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6966$as_echo "$ac_ct_OTOOL" >&6; }
6967else
6968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969$as_echo "no" >&6; }
6970fi
6971
6972  if test "x$ac_ct_OTOOL" = x; then
6973    OTOOL=":"
6974  else
6975    case $cross_compiling:$ac_tool_warned in
6976yes:)
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979ac_tool_warned=yes ;;
6980esac
6981    OTOOL=$ac_ct_OTOOL
6982  fi
6983else
6984  OTOOL="$ac_cv_prog_OTOOL"
6985fi
6986
6987    if test -n "$ac_tool_prefix"; then
6988  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6989set dummy ${ac_tool_prefix}otool64; ac_word=$2
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991$as_echo_n "checking for $ac_word... " >&6; }
6992if ${ac_cv_prog_OTOOL64+:} false; then :
6993  $as_echo_n "(cached) " >&6
6994else
6995  if test -n "$OTOOL64"; then
6996  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001  IFS=$as_save_IFS
7002  test -z "$as_dir" && as_dir=.
7003    for ac_exec_ext in '' $ac_executable_extensions; do
7004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007    break 2
7008  fi
7009done
7010  done
7011IFS=$as_save_IFS
7012
7013fi
7014fi
7015OTOOL64=$ac_cv_prog_OTOOL64
7016if test -n "$OTOOL64"; then
7017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7018$as_echo "$OTOOL64" >&6; }
7019else
7020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021$as_echo "no" >&6; }
7022fi
7023
7024
7025fi
7026if test -z "$ac_cv_prog_OTOOL64"; then
7027  ac_ct_OTOOL64=$OTOOL64
7028  # Extract the first word of "otool64", so it can be a program name with args.
7029set dummy otool64; ac_word=$2
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031$as_echo_n "checking for $ac_word... " >&6; }
7032if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7033  $as_echo_n "(cached) " >&6
7034else
7035  if test -n "$ac_ct_OTOOL64"; then
7036  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041  IFS=$as_save_IFS
7042  test -z "$as_dir" && as_dir=.
7043    for ac_exec_ext in '' $ac_executable_extensions; do
7044  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045    ac_cv_prog_ac_ct_OTOOL64="otool64"
7046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047    break 2
7048  fi
7049done
7050  done
7051IFS=$as_save_IFS
7052
7053fi
7054fi
7055ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7056if test -n "$ac_ct_OTOOL64"; then
7057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7058$as_echo "$ac_ct_OTOOL64" >&6; }
7059else
7060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061$as_echo "no" >&6; }
7062fi
7063
7064  if test "x$ac_ct_OTOOL64" = x; then
7065    OTOOL64=":"
7066  else
7067    case $cross_compiling:$ac_tool_warned in
7068yes:)
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071ac_tool_warned=yes ;;
7072esac
7073    OTOOL64=$ac_ct_OTOOL64
7074  fi
7075else
7076  OTOOL64="$ac_cv_prog_OTOOL64"
7077fi
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7106$as_echo_n "checking for -single_module linker flag... " >&6; }
7107if ${lt_cv_apple_cc_single_mod+:} false; then :
7108  $as_echo_n "(cached) " >&6
7109else
7110  lt_cv_apple_cc_single_mod=no
7111      if test -z "${LT_MULTI_MODULE}"; then
7112	# By default we will add the -single_module flag. You can override
7113	# by either setting the environment variable LT_MULTI_MODULE
7114	# non-empty at configure time, or by adding -multi_module to the
7115	# link flags.
7116	rm -rf libconftest.dylib*
7117	echo "int foo(void){return 1;}" > conftest.c
7118	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7119-dynamiclib -Wl,-single_module conftest.c" >&5
7120	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7121	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7122        _lt_result=$?
7123	# If there is a non-empty error log, and "single_module"
7124	# appears in it, assume the flag caused a linker warning
7125        if test -s conftest.err && $GREP single_module conftest.err; then
7126	  cat conftest.err >&5
7127	# Otherwise, if the output was created with a 0 exit code from
7128	# the compiler, it worked.
7129	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7130	  lt_cv_apple_cc_single_mod=yes
7131	else
7132	  cat conftest.err >&5
7133	fi
7134	rm -rf libconftest.dylib*
7135	rm -f conftest.*
7136      fi
7137fi
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7139$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7140
7141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7142$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7143if ${lt_cv_ld_exported_symbols_list+:} false; then :
7144  $as_echo_n "(cached) " >&6
7145else
7146  lt_cv_ld_exported_symbols_list=no
7147      save_LDFLAGS=$LDFLAGS
7148      echo "_main" > conftest.sym
7149      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7150      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151/* end confdefs.h.  */
7152
7153int
7154main ()
7155{
7156
7157  ;
7158  return 0;
7159}
7160_ACEOF
7161if ac_fn_c_try_link "$LINENO"; then :
7162  lt_cv_ld_exported_symbols_list=yes
7163else
7164  lt_cv_ld_exported_symbols_list=no
7165fi
7166rm -f core conftest.err conftest.$ac_objext \
7167    conftest$ac_exeext conftest.$ac_ext
7168	LDFLAGS="$save_LDFLAGS"
7169
7170fi
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7172$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7173
7174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7175$as_echo_n "checking for -force_load linker flag... " >&6; }
7176if ${lt_cv_ld_force_load+:} false; then :
7177  $as_echo_n "(cached) " >&6
7178else
7179  lt_cv_ld_force_load=no
7180      cat > conftest.c << _LT_EOF
7181int forced_loaded() { return 2;}
7182_LT_EOF
7183      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7184      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7185      echo "$AR cru libconftest.a conftest.o" >&5
7186      $AR cru libconftest.a conftest.o 2>&5
7187      echo "$RANLIB libconftest.a" >&5
7188      $RANLIB libconftest.a 2>&5
7189      cat > conftest.c << _LT_EOF
7190int main() { return 0;}
7191_LT_EOF
7192      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7193      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7194      _lt_result=$?
7195      if test -s conftest.err && $GREP force_load conftest.err; then
7196	cat conftest.err >&5
7197      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7198	lt_cv_ld_force_load=yes
7199      else
7200	cat conftest.err >&5
7201      fi
7202        rm -f conftest.err libconftest.a conftest conftest.c
7203        rm -rf conftest.dSYM
7204
7205fi
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7207$as_echo "$lt_cv_ld_force_load" >&6; }
7208    case $host_os in
7209    rhapsody* | darwin1.[012])
7210      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7211    darwin1.*)
7212      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7213    darwin*) # darwin 5.x on
7214      # if running on 10.5 or later, the deployment target defaults
7215      # to the OS version, if on x86, and 10.4, the deployment
7216      # target defaults to 10.4. Don't you love it?
7217      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7218	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7219	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7220	10.[012]*)
7221	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7222	10.*)
7223	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7224      esac
7225    ;;
7226  esac
7227    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7228      _lt_dar_single_mod='$single_module'
7229    fi
7230    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7231      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7232    else
7233      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7234    fi
7235    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7236      _lt_dsymutil='~$DSYMUTIL $lib || :'
7237    else
7238      _lt_dsymutil=
7239    fi
7240    ;;
7241  esac
7242
7243ac_ext=c
7244ac_cpp='$CPP $CPPFLAGS'
7245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7247ac_compiler_gnu=$ac_cv_c_compiler_gnu
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7249$as_echo_n "checking how to run the C preprocessor... " >&6; }
7250# On Suns, sometimes $CPP names a directory.
7251if test -n "$CPP" && test -d "$CPP"; then
7252  CPP=
7253fi
7254if test -z "$CPP"; then
7255  if ${ac_cv_prog_CPP+:} false; then :
7256  $as_echo_n "(cached) " >&6
7257else
7258      # Double quotes because CPP needs to be expanded
7259    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7260    do
7261      ac_preproc_ok=false
7262for ac_c_preproc_warn_flag in '' yes
7263do
7264  # Use a header file that comes with gcc, so configuring glibc
7265  # with a fresh cross-compiler works.
7266  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7267  # <limits.h> exists even on freestanding compilers.
7268  # On the NeXT, cc -E runs the code through the compiler's parser,
7269  # not just through cpp. "Syntax error" is here to catch this case.
7270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271/* end confdefs.h.  */
7272#ifdef __STDC__
7273# include <limits.h>
7274#else
7275# include <assert.h>
7276#endif
7277		     Syntax error
7278_ACEOF
7279if ac_fn_c_try_cpp "$LINENO"; then :
7280
7281else
7282  # Broken: fails on valid input.
7283continue
7284fi
7285rm -f conftest.err conftest.i conftest.$ac_ext
7286
7287  # OK, works on sane cases.  Now check whether nonexistent headers
7288  # can be detected and how.
7289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290/* end confdefs.h.  */
7291#include <ac_nonexistent.h>
7292_ACEOF
7293if ac_fn_c_try_cpp "$LINENO"; then :
7294  # Broken: success on invalid input.
7295continue
7296else
7297  # Passes both tests.
7298ac_preproc_ok=:
7299break
7300fi
7301rm -f conftest.err conftest.i conftest.$ac_ext
7302
7303done
7304# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7305rm -f conftest.i conftest.err conftest.$ac_ext
7306if $ac_preproc_ok; then :
7307  break
7308fi
7309
7310    done
7311    ac_cv_prog_CPP=$CPP
7312
7313fi
7314  CPP=$ac_cv_prog_CPP
7315else
7316  ac_cv_prog_CPP=$CPP
7317fi
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7319$as_echo "$CPP" >&6; }
7320ac_preproc_ok=false
7321for ac_c_preproc_warn_flag in '' yes
7322do
7323  # Use a header file that comes with gcc, so configuring glibc
7324  # with a fresh cross-compiler works.
7325  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7326  # <limits.h> exists even on freestanding compilers.
7327  # On the NeXT, cc -E runs the code through the compiler's parser,
7328  # not just through cpp. "Syntax error" is here to catch this case.
7329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330/* end confdefs.h.  */
7331#ifdef __STDC__
7332# include <limits.h>
7333#else
7334# include <assert.h>
7335#endif
7336		     Syntax error
7337_ACEOF
7338if ac_fn_c_try_cpp "$LINENO"; then :
7339
7340else
7341  # Broken: fails on valid input.
7342continue
7343fi
7344rm -f conftest.err conftest.i conftest.$ac_ext
7345
7346  # OK, works on sane cases.  Now check whether nonexistent headers
7347  # can be detected and how.
7348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349/* end confdefs.h.  */
7350#include <ac_nonexistent.h>
7351_ACEOF
7352if ac_fn_c_try_cpp "$LINENO"; then :
7353  # Broken: success on invalid input.
7354continue
7355else
7356  # Passes both tests.
7357ac_preproc_ok=:
7358break
7359fi
7360rm -f conftest.err conftest.i conftest.$ac_ext
7361
7362done
7363# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7364rm -f conftest.i conftest.err conftest.$ac_ext
7365if $ac_preproc_ok; then :
7366
7367else
7368  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7370as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7371See \`config.log' for more details" "$LINENO" 5; }
7372fi
7373
7374ac_ext=c
7375ac_cpp='$CPP $CPPFLAGS'
7376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7382$as_echo_n "checking for ANSI C header files... " >&6; }
7383if ${ac_cv_header_stdc+:} false; then :
7384  $as_echo_n "(cached) " >&6
7385else
7386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387/* end confdefs.h.  */
7388#include <stdlib.h>
7389#include <stdarg.h>
7390#include <string.h>
7391#include <float.h>
7392
7393int
7394main ()
7395{
7396
7397  ;
7398  return 0;
7399}
7400_ACEOF
7401if ac_fn_c_try_compile "$LINENO"; then :
7402  ac_cv_header_stdc=yes
7403else
7404  ac_cv_header_stdc=no
7405fi
7406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407
7408if test $ac_cv_header_stdc = yes; then
7409  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411/* end confdefs.h.  */
7412#include <string.h>
7413
7414_ACEOF
7415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7416  $EGREP "memchr" >/dev/null 2>&1; then :
7417
7418else
7419  ac_cv_header_stdc=no
7420fi
7421rm -f conftest*
7422
7423fi
7424
7425if test $ac_cv_header_stdc = yes; then
7426  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428/* end confdefs.h.  */
7429#include <stdlib.h>
7430
7431_ACEOF
7432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7433  $EGREP "free" >/dev/null 2>&1; then :
7434
7435else
7436  ac_cv_header_stdc=no
7437fi
7438rm -f conftest*
7439
7440fi
7441
7442if test $ac_cv_header_stdc = yes; then
7443  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7444  if test "$cross_compiling" = yes; then :
7445  :
7446else
7447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h.  */
7449#include <ctype.h>
7450#include <stdlib.h>
7451#if ((' ' & 0x0FF) == 0x020)
7452# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7453# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7454#else
7455# define ISLOWER(c) \
7456		   (('a' <= (c) && (c) <= 'i') \
7457		     || ('j' <= (c) && (c) <= 'r') \
7458		     || ('s' <= (c) && (c) <= 'z'))
7459# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7460#endif
7461
7462#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7463int
7464main ()
7465{
7466  int i;
7467  for (i = 0; i < 256; i++)
7468    if (XOR (islower (i), ISLOWER (i))
7469	|| toupper (i) != TOUPPER (i))
7470      return 2;
7471  return 0;
7472}
7473_ACEOF
7474if ac_fn_c_try_run "$LINENO"; then :
7475
7476else
7477  ac_cv_header_stdc=no
7478fi
7479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7480  conftest.$ac_objext conftest.beam conftest.$ac_ext
7481fi
7482
7483fi
7484fi
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7486$as_echo "$ac_cv_header_stdc" >&6; }
7487if test $ac_cv_header_stdc = yes; then
7488
7489$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7490
7491fi
7492
7493# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7494for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7495		  inttypes.h stdint.h unistd.h
7496do :
7497  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7498ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7499"
7500if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7501  cat >>confdefs.h <<_ACEOF
7502#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7503_ACEOF
7504
7505fi
7506
7507done
7508
7509
7510for ac_header in dlfcn.h
7511do :
7512  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7513"
7514if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7515  cat >>confdefs.h <<_ACEOF
7516#define HAVE_DLFCN_H 1
7517_ACEOF
7518
7519fi
7520
7521done
7522
7523
7524
7525
7526
7527# Set options
7528
7529
7530
7531        enable_dlopen=no
7532
7533
7534  enable_win32_dll=no
7535
7536
7537            # Check whether --enable-shared was given.
7538if test "${enable_shared+set}" = set; then :
7539  enableval=$enable_shared; p=${PACKAGE-default}
7540    case $enableval in
7541    yes) enable_shared=yes ;;
7542    no) enable_shared=no ;;
7543    *)
7544      enable_shared=no
7545      # Look at the argument we got.  We use all the common list separators.
7546      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7547      for pkg in $enableval; do
7548	IFS="$lt_save_ifs"
7549	if test "X$pkg" = "X$p"; then
7550	  enable_shared=yes
7551	fi
7552      done
7553      IFS="$lt_save_ifs"
7554      ;;
7555    esac
7556else
7557  enable_shared=yes
7558fi
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568  # Check whether --enable-static was given.
7569if test "${enable_static+set}" = set; then :
7570  enableval=$enable_static; p=${PACKAGE-default}
7571    case $enableval in
7572    yes) enable_static=yes ;;
7573    no) enable_static=no ;;
7574    *)
7575     enable_static=no
7576      # Look at the argument we got.  We use all the common list separators.
7577      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7578      for pkg in $enableval; do
7579	IFS="$lt_save_ifs"
7580	if test "X$pkg" = "X$p"; then
7581	  enable_static=yes
7582	fi
7583      done
7584      IFS="$lt_save_ifs"
7585      ;;
7586    esac
7587else
7588  enable_static=yes
7589fi
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600# Check whether --with-pic was given.
7601if test "${with_pic+set}" = set; then :
7602  withval=$with_pic; lt_p=${PACKAGE-default}
7603    case $withval in
7604    yes|no) pic_mode=$withval ;;
7605    *)
7606      pic_mode=default
7607      # Look at the argument we got.  We use all the common list separators.
7608      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7609      for lt_pkg in $withval; do
7610	IFS="$lt_save_ifs"
7611	if test "X$lt_pkg" = "X$lt_p"; then
7612	  pic_mode=yes
7613	fi
7614      done
7615      IFS="$lt_save_ifs"
7616      ;;
7617    esac
7618else
7619  pic_mode=default
7620fi
7621
7622
7623test -z "$pic_mode" && pic_mode=default
7624
7625
7626
7627
7628
7629
7630
7631  # Check whether --enable-fast-install was given.
7632if test "${enable_fast_install+set}" = set; then :
7633  enableval=$enable_fast_install; p=${PACKAGE-default}
7634    case $enableval in
7635    yes) enable_fast_install=yes ;;
7636    no) enable_fast_install=no ;;
7637    *)
7638      enable_fast_install=no
7639      # Look at the argument we got.  We use all the common list separators.
7640      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7641      for pkg in $enableval; do
7642	IFS="$lt_save_ifs"
7643	if test "X$pkg" = "X$p"; then
7644	  enable_fast_install=yes
7645	fi
7646      done
7647      IFS="$lt_save_ifs"
7648      ;;
7649    esac
7650else
7651  enable_fast_install=yes
7652fi
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664# This can be used to rebuild libtool when needed
7665LIBTOOL_DEPS="$ltmain"
7666
7667# Always use our own libtool.
7668LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699test -z "$LN_S" && LN_S="ln -s"
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714if test -n "${ZSH_VERSION+set}" ; then
7715   setopt NO_GLOB_SUBST
7716fi
7717
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7719$as_echo_n "checking for objdir... " >&6; }
7720if ${lt_cv_objdir+:} false; then :
7721  $as_echo_n "(cached) " >&6
7722else
7723  rm -f .libs 2>/dev/null
7724mkdir .libs 2>/dev/null
7725if test -d .libs; then
7726  lt_cv_objdir=.libs
7727else
7728  # MS-DOS does not allow filenames that begin with a dot.
7729  lt_cv_objdir=_libs
7730fi
7731rmdir .libs 2>/dev/null
7732fi
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7734$as_echo "$lt_cv_objdir" >&6; }
7735objdir=$lt_cv_objdir
7736
7737
7738
7739
7740
7741cat >>confdefs.h <<_ACEOF
7742#define LT_OBJDIR "$lt_cv_objdir/"
7743_ACEOF
7744
7745
7746
7747
7748case $host_os in
7749aix3*)
7750  # AIX sometimes has problems with the GCC collect2 program.  For some
7751  # reason, if we set the COLLECT_NAMES environment variable, the problems
7752  # vanish in a puff of smoke.
7753  if test "X${COLLECT_NAMES+set}" != Xset; then
7754    COLLECT_NAMES=
7755    export COLLECT_NAMES
7756  fi
7757  ;;
7758esac
7759
7760# Global variables:
7761ofile=libtool
7762can_build_shared=yes
7763
7764# All known linkers require a `.a' archive for static linking (except MSVC,
7765# which needs '.lib').
7766libext=a
7767
7768with_gnu_ld="$lt_cv_prog_gnu_ld"
7769
7770old_CC="$CC"
7771old_CFLAGS="$CFLAGS"
7772
7773# Set sane defaults for various variables
7774test -z "$CC" && CC=cc
7775test -z "$LTCC" && LTCC=$CC
7776test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7777test -z "$LD" && LD=ld
7778test -z "$ac_objext" && ac_objext=o
7779
7780for cc_temp in $compiler""; do
7781  case $cc_temp in
7782    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7783    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7784    \-*) ;;
7785    *) break;;
7786  esac
7787done
7788cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7789
7790
7791# Only perform the check for file, if the check method requires it
7792test -z "$MAGIC_CMD" && MAGIC_CMD=file
7793case $deplibs_check_method in
7794file_magic*)
7795  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7796    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7797$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7798if ${lt_cv_path_MAGIC_CMD+:} false; then :
7799  $as_echo_n "(cached) " >&6
7800else
7801  case $MAGIC_CMD in
7802[\\/*] |  ?:[\\/]*)
7803  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7804  ;;
7805*)
7806  lt_save_MAGIC_CMD="$MAGIC_CMD"
7807  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7808  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7809  for ac_dir in $ac_dummy; do
7810    IFS="$lt_save_ifs"
7811    test -z "$ac_dir" && ac_dir=.
7812    if test -f $ac_dir/${ac_tool_prefix}file; then
7813      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7814      if test -n "$file_magic_test_file"; then
7815	case $deplibs_check_method in
7816	"file_magic "*)
7817	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7818	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7819	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7820	    $EGREP "$file_magic_regex" > /dev/null; then
7821	    :
7822	  else
7823	    cat <<_LT_EOF 1>&2
7824
7825*** Warning: the command libtool uses to detect shared libraries,
7826*** $file_magic_cmd, produces output that libtool cannot recognize.
7827*** The result is that libtool may fail to recognize shared libraries
7828*** as such.  This will affect the creation of libtool libraries that
7829*** depend on shared libraries, but programs linked with such libtool
7830*** libraries will work regardless of this problem.  Nevertheless, you
7831*** may want to report the problem to your system manager and/or to
7832*** bug-libtool@gnu.org
7833
7834_LT_EOF
7835	  fi ;;
7836	esac
7837      fi
7838      break
7839    fi
7840  done
7841  IFS="$lt_save_ifs"
7842  MAGIC_CMD="$lt_save_MAGIC_CMD"
7843  ;;
7844esac
7845fi
7846
7847MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7848if test -n "$MAGIC_CMD"; then
7849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7850$as_echo "$MAGIC_CMD" >&6; }
7851else
7852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853$as_echo "no" >&6; }
7854fi
7855
7856
7857
7858
7859
7860if test -z "$lt_cv_path_MAGIC_CMD"; then
7861  if test -n "$ac_tool_prefix"; then
7862    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7863$as_echo_n "checking for file... " >&6; }
7864if ${lt_cv_path_MAGIC_CMD+:} false; then :
7865  $as_echo_n "(cached) " >&6
7866else
7867  case $MAGIC_CMD in
7868[\\/*] |  ?:[\\/]*)
7869  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7870  ;;
7871*)
7872  lt_save_MAGIC_CMD="$MAGIC_CMD"
7873  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7874  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7875  for ac_dir in $ac_dummy; do
7876    IFS="$lt_save_ifs"
7877    test -z "$ac_dir" && ac_dir=.
7878    if test -f $ac_dir/file; then
7879      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7880      if test -n "$file_magic_test_file"; then
7881	case $deplibs_check_method in
7882	"file_magic "*)
7883	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7884	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7885	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7886	    $EGREP "$file_magic_regex" > /dev/null; then
7887	    :
7888	  else
7889	    cat <<_LT_EOF 1>&2
7890
7891*** Warning: the command libtool uses to detect shared libraries,
7892*** $file_magic_cmd, produces output that libtool cannot recognize.
7893*** The result is that libtool may fail to recognize shared libraries
7894*** as such.  This will affect the creation of libtool libraries that
7895*** depend on shared libraries, but programs linked with such libtool
7896*** libraries will work regardless of this problem.  Nevertheless, you
7897*** may want to report the problem to your system manager and/or to
7898*** bug-libtool@gnu.org
7899
7900_LT_EOF
7901	  fi ;;
7902	esac
7903      fi
7904      break
7905    fi
7906  done
7907  IFS="$lt_save_ifs"
7908  MAGIC_CMD="$lt_save_MAGIC_CMD"
7909  ;;
7910esac
7911fi
7912
7913MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7914if test -n "$MAGIC_CMD"; then
7915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7916$as_echo "$MAGIC_CMD" >&6; }
7917else
7918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919$as_echo "no" >&6; }
7920fi
7921
7922
7923  else
7924    MAGIC_CMD=:
7925  fi
7926fi
7927
7928  fi
7929  ;;
7930esac
7931
7932# Use C for the default configuration in the libtool script
7933
7934lt_save_CC="$CC"
7935ac_ext=c
7936ac_cpp='$CPP $CPPFLAGS'
7937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7939ac_compiler_gnu=$ac_cv_c_compiler_gnu
7940
7941
7942# Source file extension for C test sources.
7943ac_ext=c
7944
7945# Object file extension for compiled C test sources.
7946objext=o
7947objext=$objext
7948
7949# Code to be used in simple compile tests
7950lt_simple_compile_test_code="int some_variable = 0;"
7951
7952# Code to be used in simple link tests
7953lt_simple_link_test_code='int main(){return(0);}'
7954
7955
7956
7957
7958
7959
7960
7961# If no C compiler was specified, use CC.
7962LTCC=${LTCC-"$CC"}
7963
7964# If no C compiler flags were specified, use CFLAGS.
7965LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7966
7967# Allow CC to be a program name with arguments.
7968compiler=$CC
7969
7970# Save the default compiler, since it gets overwritten when the other
7971# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7972compiler_DEFAULT=$CC
7973
7974# save warnings/boilerplate of simple test code
7975ac_outfile=conftest.$ac_objext
7976echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7977eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7978_lt_compiler_boilerplate=`cat conftest.err`
7979$RM conftest*
7980
7981ac_outfile=conftest.$ac_objext
7982echo "$lt_simple_link_test_code" >conftest.$ac_ext
7983eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7984_lt_linker_boilerplate=`cat conftest.err`
7985$RM -r conftest*
7986
7987
7988## CAVEAT EMPTOR:
7989## There is no encapsulation within the following macros, do not change
7990## the running order or otherwise move them around unless you know exactly
7991## what you are doing...
7992if test -n "$compiler"; then
7993
7994lt_prog_compiler_no_builtin_flag=
7995
7996if test "$GCC" = yes; then
7997  case $cc_basename in
7998  nvcc*)
7999    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8000  *)
8001    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8002  esac
8003
8004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8005$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8006if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009  lt_cv_prog_compiler_rtti_exceptions=no
8010   ac_outfile=conftest.$ac_objext
8011   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8012   lt_compiler_flag="-fno-rtti -fno-exceptions"
8013   # Insert the option either (1) after the last *FLAGS variable, or
8014   # (2) before a word containing "conftest.", or (3) at the end.
8015   # Note that $ac_compile itself does not contain backslashes and begins
8016   # with a dollar sign (not a hyphen), so the echo should work correctly.
8017   # The option is referenced via a variable to avoid confusing sed.
8018   lt_compile=`echo "$ac_compile" | $SED \
8019   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8020   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8021   -e 's:$: $lt_compiler_flag:'`
8022   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8023   (eval "$lt_compile" 2>conftest.err)
8024   ac_status=$?
8025   cat conftest.err >&5
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   if (exit $ac_status) && test -s "$ac_outfile"; then
8028     # The compiler can only warn and ignore the option if not recognized
8029     # So say no if there are warnings other than the usual output.
8030     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8031     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8032     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8033       lt_cv_prog_compiler_rtti_exceptions=yes
8034     fi
8035   fi
8036   $RM conftest*
8037
8038fi
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8040$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8041
8042if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8043    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8044else
8045    :
8046fi
8047
8048fi
8049
8050
8051
8052
8053
8054
8055  lt_prog_compiler_wl=
8056lt_prog_compiler_pic=
8057lt_prog_compiler_static=
8058
8059
8060  if test "$GCC" = yes; then
8061    lt_prog_compiler_wl='-Wl,'
8062    lt_prog_compiler_static='-static'
8063
8064    case $host_os in
8065      aix*)
8066      # All AIX code is PIC.
8067      if test "$host_cpu" = ia64; then
8068	# AIX 5 now supports IA64 processor
8069	lt_prog_compiler_static='-Bstatic'
8070      fi
8071      ;;
8072
8073    amigaos*)
8074      case $host_cpu in
8075      powerpc)
8076            # see comment about AmigaOS4 .so support
8077            lt_prog_compiler_pic='-fPIC'
8078        ;;
8079      m68k)
8080            # FIXME: we need at least 68020 code to build shared libraries, but
8081            # adding the `-m68020' flag to GCC prevents building anything better,
8082            # like `-m68040'.
8083            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8084        ;;
8085      esac
8086      ;;
8087
8088    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8089      # PIC is the default for these OSes.
8090      ;;
8091
8092    mingw* | cygwin* | pw32* | os2* | cegcc*)
8093      # This hack is so that the source file can tell whether it is being
8094      # built for inclusion in a dll (and should export symbols for example).
8095      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8096      # (--disable-auto-import) libraries
8097      lt_prog_compiler_pic='-DDLL_EXPORT'
8098      ;;
8099
8100    darwin* | rhapsody*)
8101      # PIC is the default on this platform
8102      # Common symbols not allowed in MH_DYLIB files
8103      lt_prog_compiler_pic='-fno-common'
8104      ;;
8105
8106    haiku*)
8107      # PIC is the default for Haiku.
8108      # The "-static" flag exists, but is broken.
8109      lt_prog_compiler_static=
8110      ;;
8111
8112    hpux*)
8113      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8114      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8115      # sets the default TLS model and affects inlining.
8116      case $host_cpu in
8117      hppa*64*)
8118	# +Z the default
8119	;;
8120      *)
8121	lt_prog_compiler_pic='-fPIC'
8122	;;
8123      esac
8124      ;;
8125
8126    interix[3-9]*)
8127      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8128      # Instead, we relocate shared libraries at runtime.
8129      ;;
8130
8131    msdosdjgpp*)
8132      # Just because we use GCC doesn't mean we suddenly get shared libraries
8133      # on systems that don't support them.
8134      lt_prog_compiler_can_build_shared=no
8135      enable_shared=no
8136      ;;
8137
8138    *nto* | *qnx*)
8139      # QNX uses GNU C++, but need to define -shared option too, otherwise
8140      # it will coredump.
8141      lt_prog_compiler_pic='-fPIC -shared'
8142      ;;
8143
8144    sysv4*MP*)
8145      if test -d /usr/nec; then
8146	lt_prog_compiler_pic=-Kconform_pic
8147      fi
8148      ;;
8149
8150    *)
8151      lt_prog_compiler_pic='-fPIC'
8152      ;;
8153    esac
8154
8155    case $cc_basename in
8156    nvcc*) # Cuda Compiler Driver 2.2
8157      lt_prog_compiler_wl='-Xlinker '
8158      if test -n "$lt_prog_compiler_pic"; then
8159        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8160      fi
8161      ;;
8162    esac
8163  else
8164    # PORTME Check for flag to pass linker flags through the system compiler.
8165    case $host_os in
8166    aix*)
8167      lt_prog_compiler_wl='-Wl,'
8168      if test "$host_cpu" = ia64; then
8169	# AIX 5 now supports IA64 processor
8170	lt_prog_compiler_static='-Bstatic'
8171      else
8172	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8173      fi
8174      ;;
8175
8176    mingw* | cygwin* | pw32* | os2* | cegcc*)
8177      # This hack is so that the source file can tell whether it is being
8178      # built for inclusion in a dll (and should export symbols for example).
8179      lt_prog_compiler_pic='-DDLL_EXPORT'
8180      ;;
8181
8182    hpux9* | hpux10* | hpux11*)
8183      lt_prog_compiler_wl='-Wl,'
8184      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8185      # not for PA HP-UX.
8186      case $host_cpu in
8187      hppa*64*|ia64*)
8188	# +Z the default
8189	;;
8190      *)
8191	lt_prog_compiler_pic='+Z'
8192	;;
8193      esac
8194      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8195      lt_prog_compiler_static='${wl}-a ${wl}archive'
8196      ;;
8197
8198    irix5* | irix6* | nonstopux*)
8199      lt_prog_compiler_wl='-Wl,'
8200      # PIC (with -KPIC) is the default.
8201      lt_prog_compiler_static='-non_shared'
8202      ;;
8203
8204    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8205      case $cc_basename in
8206      # old Intel for x86_64 which still supported -KPIC.
8207      ecc*)
8208	lt_prog_compiler_wl='-Wl,'
8209	lt_prog_compiler_pic='-KPIC'
8210	lt_prog_compiler_static='-static'
8211        ;;
8212      # icc used to be incompatible with GCC.
8213      # ICC 10 doesn't accept -KPIC any more.
8214      icc* | ifort*)
8215	lt_prog_compiler_wl='-Wl,'
8216	lt_prog_compiler_pic='-fPIC'
8217	lt_prog_compiler_static='-static'
8218        ;;
8219      # Lahey Fortran 8.1.
8220      lf95*)
8221	lt_prog_compiler_wl='-Wl,'
8222	lt_prog_compiler_pic='--shared'
8223	lt_prog_compiler_static='--static'
8224	;;
8225      nagfor*)
8226	# NAG Fortran compiler
8227	lt_prog_compiler_wl='-Wl,-Wl,,'
8228	lt_prog_compiler_pic='-PIC'
8229	lt_prog_compiler_static='-Bstatic'
8230	;;
8231      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8232        # Portland Group compilers (*not* the Pentium gcc compiler,
8233	# which looks to be a dead project)
8234	lt_prog_compiler_wl='-Wl,'
8235	lt_prog_compiler_pic='-fpic'
8236	lt_prog_compiler_static='-Bstatic'
8237        ;;
8238      ccc*)
8239        lt_prog_compiler_wl='-Wl,'
8240        # All Alpha code is PIC.
8241        lt_prog_compiler_static='-non_shared'
8242        ;;
8243      xl* | bgxl* | bgf* | mpixl*)
8244	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8245	lt_prog_compiler_wl='-Wl,'
8246	lt_prog_compiler_pic='-qpic'
8247	lt_prog_compiler_static='-qstaticlink'
8248	;;
8249      *)
8250	case `$CC -V 2>&1 | sed 5q` in
8251	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8252	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8253	  lt_prog_compiler_pic='-KPIC'
8254	  lt_prog_compiler_static='-Bstatic'
8255	  lt_prog_compiler_wl=''
8256	  ;;
8257	*Sun\ F* | *Sun*Fortran*)
8258	  lt_prog_compiler_pic='-KPIC'
8259	  lt_prog_compiler_static='-Bstatic'
8260	  lt_prog_compiler_wl='-Qoption ld '
8261	  ;;
8262	*Sun\ C*)
8263	  # Sun C 5.9
8264	  lt_prog_compiler_pic='-KPIC'
8265	  lt_prog_compiler_static='-Bstatic'
8266	  lt_prog_compiler_wl='-Wl,'
8267	  ;;
8268        *Intel*\ [CF]*Compiler*)
8269	  lt_prog_compiler_wl='-Wl,'
8270	  lt_prog_compiler_pic='-fPIC'
8271	  lt_prog_compiler_static='-static'
8272	  ;;
8273	*Portland\ Group*)
8274	  lt_prog_compiler_wl='-Wl,'
8275	  lt_prog_compiler_pic='-fpic'
8276	  lt_prog_compiler_static='-Bstatic'
8277	  ;;
8278	esac
8279	;;
8280      esac
8281      ;;
8282
8283    newsos6)
8284      lt_prog_compiler_pic='-KPIC'
8285      lt_prog_compiler_static='-Bstatic'
8286      ;;
8287
8288    *nto* | *qnx*)
8289      # QNX uses GNU C++, but need to define -shared option too, otherwise
8290      # it will coredump.
8291      lt_prog_compiler_pic='-fPIC -shared'
8292      ;;
8293
8294    osf3* | osf4* | osf5*)
8295      lt_prog_compiler_wl='-Wl,'
8296      # All OSF/1 code is PIC.
8297      lt_prog_compiler_static='-non_shared'
8298      ;;
8299
8300    rdos*)
8301      lt_prog_compiler_static='-non_shared'
8302      ;;
8303
8304    solaris*)
8305      lt_prog_compiler_pic='-KPIC'
8306      lt_prog_compiler_static='-Bstatic'
8307      case $cc_basename in
8308      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8309	lt_prog_compiler_wl='-Qoption ld ';;
8310      *)
8311	lt_prog_compiler_wl='-Wl,';;
8312      esac
8313      ;;
8314
8315    sunos4*)
8316      lt_prog_compiler_wl='-Qoption ld '
8317      lt_prog_compiler_pic='-PIC'
8318      lt_prog_compiler_static='-Bstatic'
8319      ;;
8320
8321    sysv4 | sysv4.2uw2* | sysv4.3*)
8322      lt_prog_compiler_wl='-Wl,'
8323      lt_prog_compiler_pic='-KPIC'
8324      lt_prog_compiler_static='-Bstatic'
8325      ;;
8326
8327    sysv4*MP*)
8328      if test -d /usr/nec ;then
8329	lt_prog_compiler_pic='-Kconform_pic'
8330	lt_prog_compiler_static='-Bstatic'
8331      fi
8332      ;;
8333
8334    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8335      lt_prog_compiler_wl='-Wl,'
8336      lt_prog_compiler_pic='-KPIC'
8337      lt_prog_compiler_static='-Bstatic'
8338      ;;
8339
8340    unicos*)
8341      lt_prog_compiler_wl='-Wl,'
8342      lt_prog_compiler_can_build_shared=no
8343      ;;
8344
8345    uts4*)
8346      lt_prog_compiler_pic='-pic'
8347      lt_prog_compiler_static='-Bstatic'
8348      ;;
8349
8350    *)
8351      lt_prog_compiler_can_build_shared=no
8352      ;;
8353    esac
8354  fi
8355
8356case $host_os in
8357  # For platforms which do not support PIC, -DPIC is meaningless:
8358  *djgpp*)
8359    lt_prog_compiler_pic=
8360    ;;
8361  *)
8362    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8363    ;;
8364esac
8365
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8367$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8368if ${lt_cv_prog_compiler_pic+:} false; then :
8369  $as_echo_n "(cached) " >&6
8370else
8371  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8372fi
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8374$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8375lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8376
8377#
8378# Check to make sure the PIC flag actually works.
8379#
8380if test -n "$lt_prog_compiler_pic"; then
8381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8382$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8383if ${lt_cv_prog_compiler_pic_works+:} false; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  lt_cv_prog_compiler_pic_works=no
8387   ac_outfile=conftest.$ac_objext
8388   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8389   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8390   # Insert the option either (1) after the last *FLAGS variable, or
8391   # (2) before a word containing "conftest.", or (3) at the end.
8392   # Note that $ac_compile itself does not contain backslashes and begins
8393   # with a dollar sign (not a hyphen), so the echo should work correctly.
8394   # The option is referenced via a variable to avoid confusing sed.
8395   lt_compile=`echo "$ac_compile" | $SED \
8396   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8397   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8398   -e 's:$: $lt_compiler_flag:'`
8399   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8400   (eval "$lt_compile" 2>conftest.err)
8401   ac_status=$?
8402   cat conftest.err >&5
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   if (exit $ac_status) && test -s "$ac_outfile"; then
8405     # The compiler can only warn and ignore the option if not recognized
8406     # So say no if there are warnings other than the usual output.
8407     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8408     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8409     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8410       lt_cv_prog_compiler_pic_works=yes
8411     fi
8412   fi
8413   $RM conftest*
8414
8415fi
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8417$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8418
8419if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8420    case $lt_prog_compiler_pic in
8421     "" | " "*) ;;
8422     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8423     esac
8424else
8425    lt_prog_compiler_pic=
8426     lt_prog_compiler_can_build_shared=no
8427fi
8428
8429fi
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441#
8442# Check to make sure the static flag actually works.
8443#
8444wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8446$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8447if ${lt_cv_prog_compiler_static_works+:} false; then :
8448  $as_echo_n "(cached) " >&6
8449else
8450  lt_cv_prog_compiler_static_works=no
8451   save_LDFLAGS="$LDFLAGS"
8452   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8453   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8454   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8455     # The linker can only warn and ignore the option if not recognized
8456     # So say no if there are warnings
8457     if test -s conftest.err; then
8458       # Append any errors to the config.log.
8459       cat conftest.err 1>&5
8460       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8461       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8462       if diff conftest.exp conftest.er2 >/dev/null; then
8463         lt_cv_prog_compiler_static_works=yes
8464       fi
8465     else
8466       lt_cv_prog_compiler_static_works=yes
8467     fi
8468   fi
8469   $RM -r conftest*
8470   LDFLAGS="$save_LDFLAGS"
8471
8472fi
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8474$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8475
8476if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8477    :
8478else
8479    lt_prog_compiler_static=
8480fi
8481
8482
8483
8484
8485
8486
8487
8488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8489$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8490if ${lt_cv_prog_compiler_c_o+:} false; then :
8491  $as_echo_n "(cached) " >&6
8492else
8493  lt_cv_prog_compiler_c_o=no
8494   $RM -r conftest 2>/dev/null
8495   mkdir conftest
8496   cd conftest
8497   mkdir out
8498   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8499
8500   lt_compiler_flag="-o out/conftest2.$ac_objext"
8501   # Insert the option either (1) after the last *FLAGS variable, or
8502   # (2) before a word containing "conftest.", or (3) at the end.
8503   # Note that $ac_compile itself does not contain backslashes and begins
8504   # with a dollar sign (not a hyphen), so the echo should work correctly.
8505   lt_compile=`echo "$ac_compile" | $SED \
8506   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8507   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8508   -e 's:$: $lt_compiler_flag:'`
8509   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8510   (eval "$lt_compile" 2>out/conftest.err)
8511   ac_status=$?
8512   cat out/conftest.err >&5
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8515   then
8516     # The compiler can only warn and ignore the option if not recognized
8517     # So say no if there are warnings
8518     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8519     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8520     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8521       lt_cv_prog_compiler_c_o=yes
8522     fi
8523   fi
8524   chmod u+w . 2>&5
8525   $RM conftest*
8526   # SGI C++ compiler will create directory out/ii_files/ for
8527   # template instantiation
8528   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8529   $RM out/* && rmdir out
8530   cd ..
8531   $RM -r conftest
8532   $RM conftest*
8533
8534fi
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8536$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8537
8538
8539
8540
8541
8542
8543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8544$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8545if ${lt_cv_prog_compiler_c_o+:} false; then :
8546  $as_echo_n "(cached) " >&6
8547else
8548  lt_cv_prog_compiler_c_o=no
8549   $RM -r conftest 2>/dev/null
8550   mkdir conftest
8551   cd conftest
8552   mkdir out
8553   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8554
8555   lt_compiler_flag="-o out/conftest2.$ac_objext"
8556   # Insert the option either (1) after the last *FLAGS variable, or
8557   # (2) before a word containing "conftest.", or (3) at the end.
8558   # Note that $ac_compile itself does not contain backslashes and begins
8559   # with a dollar sign (not a hyphen), so the echo should work correctly.
8560   lt_compile=`echo "$ac_compile" | $SED \
8561   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563   -e 's:$: $lt_compiler_flag:'`
8564   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8565   (eval "$lt_compile" 2>out/conftest.err)
8566   ac_status=$?
8567   cat out/conftest.err >&5
8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8570   then
8571     # The compiler can only warn and ignore the option if not recognized
8572     # So say no if there are warnings
8573     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8574     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8575     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8576       lt_cv_prog_compiler_c_o=yes
8577     fi
8578   fi
8579   chmod u+w . 2>&5
8580   $RM conftest*
8581   # SGI C++ compiler will create directory out/ii_files/ for
8582   # template instantiation
8583   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8584   $RM out/* && rmdir out
8585   cd ..
8586   $RM -r conftest
8587   $RM conftest*
8588
8589fi
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8591$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8592
8593
8594
8595
8596hard_links="nottested"
8597if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8598  # do not overwrite the value of need_locks provided by the user
8599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8600$as_echo_n "checking if we can lock with hard links... " >&6; }
8601  hard_links=yes
8602  $RM conftest*
8603  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8604  touch conftest.a
8605  ln conftest.a conftest.b 2>&5 || hard_links=no
8606  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8608$as_echo "$hard_links" >&6; }
8609  if test "$hard_links" = no; then
8610    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8611$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8612    need_locks=warn
8613  fi
8614else
8615  need_locks=no
8616fi
8617
8618
8619
8620
8621
8622
8623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8624$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8625
8626  runpath_var=
8627  allow_undefined_flag=
8628  always_export_symbols=no
8629  archive_cmds=
8630  archive_expsym_cmds=
8631  compiler_needs_object=no
8632  enable_shared_with_static_runtimes=no
8633  export_dynamic_flag_spec=
8634  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8635  hardcode_automatic=no
8636  hardcode_direct=no
8637  hardcode_direct_absolute=no
8638  hardcode_libdir_flag_spec=
8639  hardcode_libdir_separator=
8640  hardcode_minus_L=no
8641  hardcode_shlibpath_var=unsupported
8642  inherit_rpath=no
8643  link_all_deplibs=unknown
8644  module_cmds=
8645  module_expsym_cmds=
8646  old_archive_from_new_cmds=
8647  old_archive_from_expsyms_cmds=
8648  thread_safe_flag_spec=
8649  whole_archive_flag_spec=
8650  # include_expsyms should be a list of space-separated symbols to be *always*
8651  # included in the symbol list
8652  include_expsyms=
8653  # exclude_expsyms can be an extended regexp of symbols to exclude
8654  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8655  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8656  # as well as any symbol that contains `d'.
8657  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8658  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8659  # platforms (ab)use it in PIC code, but their linkers get confused if
8660  # the symbol is explicitly referenced.  Since portable code cannot
8661  # rely on this symbol name, it's probably fine to never include it in
8662  # preloaded symbol tables.
8663  # Exclude shared library initialization/finalization symbols.
8664  extract_expsyms_cmds=
8665
8666  case $host_os in
8667  cygwin* | mingw* | pw32* | cegcc*)
8668    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8669    # When not using gcc, we currently assume that we are using
8670    # Microsoft Visual C++.
8671    if test "$GCC" != yes; then
8672      with_gnu_ld=no
8673    fi
8674    ;;
8675  interix*)
8676    # we just hope/assume this is gcc and not c89 (= MSVC++)
8677    with_gnu_ld=yes
8678    ;;
8679  openbsd*)
8680    with_gnu_ld=no
8681    ;;
8682  linux* | k*bsd*-gnu | gnu*)
8683    link_all_deplibs=no
8684    ;;
8685  esac
8686
8687  ld_shlibs=yes
8688
8689  # On some targets, GNU ld is compatible enough with the native linker
8690  # that we're better off using the native interface for both.
8691  lt_use_gnu_ld_interface=no
8692  if test "$with_gnu_ld" = yes; then
8693    case $host_os in
8694      aix*)
8695	# The AIX port of GNU ld has always aspired to compatibility
8696	# with the native linker.  However, as the warning in the GNU ld
8697	# block says, versions before 2.19.5* couldn't really create working
8698	# shared libraries, regardless of the interface used.
8699	case `$LD -v 2>&1` in
8700	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8701	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8702	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8703	  *)
8704	    lt_use_gnu_ld_interface=yes
8705	    ;;
8706	esac
8707	;;
8708      *)
8709	lt_use_gnu_ld_interface=yes
8710	;;
8711    esac
8712  fi
8713
8714  if test "$lt_use_gnu_ld_interface" = yes; then
8715    # If archive_cmds runs LD, not CC, wlarc should be empty
8716    wlarc='${wl}'
8717
8718    # Set some defaults for GNU ld with shared library support. These
8719    # are reset later if shared libraries are not supported. Putting them
8720    # here allows them to be overridden if necessary.
8721    runpath_var=LD_RUN_PATH
8722    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8723    export_dynamic_flag_spec='${wl}--export-dynamic'
8724    # ancient GNU ld didn't support --whole-archive et. al.
8725    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8726      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8727    else
8728      whole_archive_flag_spec=
8729    fi
8730    supports_anon_versioning=no
8731    case `$LD -v 2>&1` in
8732      *GNU\ gold*) supports_anon_versioning=yes ;;
8733      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8734      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8735      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8736      *\ 2.11.*) ;; # other 2.11 versions
8737      *) supports_anon_versioning=yes ;;
8738    esac
8739
8740    # See if GNU ld supports shared libraries.
8741    case $host_os in
8742    aix[3-9]*)
8743      # On AIX/PPC, the GNU linker is very broken
8744      if test "$host_cpu" != ia64; then
8745	ld_shlibs=no
8746	cat <<_LT_EOF 1>&2
8747
8748*** Warning: the GNU linker, at least up to release 2.19, is reported
8749*** to be unable to reliably create shared libraries on AIX.
8750*** Therefore, libtool is disabling shared libraries support.  If you
8751*** really care for shared libraries, you may want to install binutils
8752*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8753*** You will then need to restart the configuration process.
8754
8755_LT_EOF
8756      fi
8757      ;;
8758
8759    amigaos*)
8760      case $host_cpu in
8761      powerpc)
8762            # see comment about AmigaOS4 .so support
8763            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764            archive_expsym_cmds=''
8765        ;;
8766      m68k)
8767            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)'
8768            hardcode_libdir_flag_spec='-L$libdir'
8769            hardcode_minus_L=yes
8770        ;;
8771      esac
8772      ;;
8773
8774    beos*)
8775      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8776	allow_undefined_flag=unsupported
8777	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8778	# support --undefined.  This deserves some investigation.  FIXME
8779	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8780      else
8781	ld_shlibs=no
8782      fi
8783      ;;
8784
8785    cygwin* | mingw* | pw32* | cegcc*)
8786      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8787      # as there is no search path for DLLs.
8788      hardcode_libdir_flag_spec='-L$libdir'
8789      export_dynamic_flag_spec='${wl}--export-all-symbols'
8790      allow_undefined_flag=unsupported
8791      always_export_symbols=no
8792      enable_shared_with_static_runtimes=yes
8793      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'
8794      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8795
8796      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8797        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8798	# If the export-symbols file already is a .def file (1st line
8799	# is EXPORTS), use it as is; otherwise, prepend...
8800	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8801	  cp $export_symbols $output_objdir/$soname.def;
8802	else
8803	  echo EXPORTS > $output_objdir/$soname.def;
8804	  cat $export_symbols >> $output_objdir/$soname.def;
8805	fi~
8806	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8807      else
8808	ld_shlibs=no
8809      fi
8810      ;;
8811
8812    haiku*)
8813      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814      link_all_deplibs=yes
8815      ;;
8816
8817    interix[3-9]*)
8818      hardcode_direct=no
8819      hardcode_shlibpath_var=no
8820      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8821      export_dynamic_flag_spec='${wl}-E'
8822      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8823      # Instead, shared libraries are loaded at an image base (0x10000000 by
8824      # default) and relocated if they conflict, which is a slow very memory
8825      # consuming and fragmenting process.  To avoid this, we pick a random,
8826      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8827      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8828      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8829      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'
8830      ;;
8831
8832    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8833      tmp_diet=no
8834      if test "$host_os" = linux-dietlibc; then
8835	case $cc_basename in
8836	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8837	esac
8838      fi
8839      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8840	 && test "$tmp_diet" = no
8841      then
8842	tmp_addflag=' $pic_flag'
8843	tmp_sharedflag='-shared'
8844	case $cc_basename,$host_cpu in
8845        pgcc*)				# Portland Group C compiler
8846	  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'
8847	  tmp_addflag=' $pic_flag'
8848	  ;;
8849	pgf77* | pgf90* | pgf95* | pgfortran*)
8850					# Portland Group f77 and f90 compilers
8851	  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'
8852	  tmp_addflag=' $pic_flag -Mnomain' ;;
8853	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8854	  tmp_addflag=' -i_dynamic' ;;
8855	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8856	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8857	ifc* | ifort*)			# Intel Fortran compiler
8858	  tmp_addflag=' -nofor_main' ;;
8859	lf95*)				# Lahey Fortran 8.1
8860	  whole_archive_flag_spec=
8861	  tmp_sharedflag='--shared' ;;
8862	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8863	  tmp_sharedflag='-qmkshrobj'
8864	  tmp_addflag= ;;
8865	nvcc*)	# Cuda Compiler Driver 2.2
8866	  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'
8867	  compiler_needs_object=yes
8868	  ;;
8869	esac
8870	case `$CC -V 2>&1 | sed 5q` in
8871	*Sun\ C*)			# Sun C 5.9
8872	  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'
8873	  compiler_needs_object=yes
8874	  tmp_sharedflag='-G' ;;
8875	*Sun\ F*)			# Sun Fortran 8.3
8876	  tmp_sharedflag='-G' ;;
8877	esac
8878	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8879
8880        if test "x$supports_anon_versioning" = xyes; then
8881          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8882	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8883	    echo "local: *; };" >> $output_objdir/$libname.ver~
8884	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8885        fi
8886
8887	case $cc_basename in
8888	xlf* | bgf* | bgxlf* | mpixlf*)
8889	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8890	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8891	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8892	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8893	  if test "x$supports_anon_versioning" = xyes; then
8894	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8895	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8896	      echo "local: *; };" >> $output_objdir/$libname.ver~
8897	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8898	  fi
8899	  ;;
8900	esac
8901      else
8902        ld_shlibs=no
8903      fi
8904      ;;
8905
8906    netbsd* | netbsdelf*-gnu)
8907      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8908	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8909	wlarc=
8910      else
8911	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8912	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8913      fi
8914      ;;
8915
8916    solaris*)
8917      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8918	ld_shlibs=no
8919	cat <<_LT_EOF 1>&2
8920
8921*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8922*** create shared libraries on Solaris systems.  Therefore, libtool
8923*** is disabling shared libraries support.  We urge you to upgrade GNU
8924*** binutils to release 2.9.1 or newer.  Another option is to modify
8925*** your PATH or compiler configuration so that the native linker is
8926*** used, and then restart.
8927
8928_LT_EOF
8929      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8930	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8932      else
8933	ld_shlibs=no
8934      fi
8935      ;;
8936
8937    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8938      case `$LD -v 2>&1` in
8939        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8940	ld_shlibs=no
8941	cat <<_LT_EOF 1>&2
8942
8943*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8944*** reliably create shared libraries on SCO systems.  Therefore, libtool
8945*** is disabling shared libraries support.  We urge you to upgrade GNU
8946*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8947*** your PATH or compiler configuration so that the native linker is
8948*** used, and then restart.
8949
8950_LT_EOF
8951	;;
8952	*)
8953	  # For security reasons, it is highly recommended that you always
8954	  # use absolute paths for naming shared libraries, and exclude the
8955	  # DT_RUNPATH tag from executables and libraries.  But doing so
8956	  # requires that you compile everything twice, which is a pain.
8957	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8958	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8959	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8960	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8961	  else
8962	    ld_shlibs=no
8963	  fi
8964	;;
8965      esac
8966      ;;
8967
8968    sunos4*)
8969      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8970      wlarc=
8971      hardcode_direct=yes
8972      hardcode_shlibpath_var=no
8973      ;;
8974
8975    *)
8976      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8977	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8979      else
8980	ld_shlibs=no
8981      fi
8982      ;;
8983    esac
8984
8985    if test "$ld_shlibs" = no; then
8986      runpath_var=
8987      hardcode_libdir_flag_spec=
8988      export_dynamic_flag_spec=
8989      whole_archive_flag_spec=
8990    fi
8991  else
8992    # PORTME fill in a description of your system's linker (not GNU ld)
8993    case $host_os in
8994    aix3*)
8995      allow_undefined_flag=unsupported
8996      always_export_symbols=yes
8997      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'
8998      # Note: this linker hardcodes the directories in LIBPATH if there
8999      # are no directories specified by -L.
9000      hardcode_minus_L=yes
9001      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9002	# Neither direct hardcoding nor static linking is supported with a
9003	# broken collect2.
9004	hardcode_direct=unsupported
9005      fi
9006      ;;
9007
9008    aix[4-9]*)
9009      if test "$host_cpu" = ia64; then
9010	# On IA64, the linker does run time linking by default, so we don't
9011	# have to do anything special.
9012	aix_use_runtimelinking=no
9013	exp_sym_flag='-Bexport'
9014	no_entry_flag=""
9015      else
9016	# If we're using GNU nm, then we don't want the "-C" option.
9017	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9018	# Also, AIX nm treats weak defined symbols like other global
9019	# defined symbols, whereas GNU nm marks them as "W".
9020	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9021	  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'
9022	else
9023	  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'
9024	fi
9025	aix_use_runtimelinking=no
9026
9027	# Test if we are trying to use run time linking or normal
9028	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9029	# need to do runtime linking.
9030	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9031	  for ld_flag in $LDFLAGS; do
9032	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9033	    aix_use_runtimelinking=yes
9034	    break
9035	  fi
9036	  done
9037	  ;;
9038	esac
9039
9040	exp_sym_flag='-bexport'
9041	no_entry_flag='-bnoentry'
9042      fi
9043
9044      # When large executables or shared objects are built, AIX ld can
9045      # have problems creating the table of contents.  If linking a library
9046      # or program results in "error TOC overflow" add -mminimal-toc to
9047      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9048      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9049
9050      archive_cmds=''
9051      hardcode_direct=yes
9052      hardcode_direct_absolute=yes
9053      hardcode_libdir_separator=':'
9054      link_all_deplibs=yes
9055      file_list_spec='${wl}-f,'
9056
9057      if test "$GCC" = yes; then
9058	case $host_os in aix4.[012]|aix4.[012].*)
9059	# We only want to do this on AIX 4.2 and lower, the check
9060	# below for broken collect2 doesn't work under 4.3+
9061	  collect2name=`${CC} -print-prog-name=collect2`
9062	  if test -f "$collect2name" &&
9063	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9064	  then
9065	  # We have reworked collect2
9066	  :
9067	  else
9068	  # We have old collect2
9069	  hardcode_direct=unsupported
9070	  # It fails to find uninstalled libraries when the uninstalled
9071	  # path is not listed in the libpath.  Setting hardcode_minus_L
9072	  # to unsupported forces relinking
9073	  hardcode_minus_L=yes
9074	  hardcode_libdir_flag_spec='-L$libdir'
9075	  hardcode_libdir_separator=
9076	  fi
9077	  ;;
9078	esac
9079	shared_flag='-shared'
9080	if test "$aix_use_runtimelinking" = yes; then
9081	  shared_flag="$shared_flag "'${wl}-G'
9082	fi
9083	link_all_deplibs=no
9084      else
9085	# not using gcc
9086	if test "$host_cpu" = ia64; then
9087	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9088	# chokes on -Wl,-G. The following line is correct:
9089	  shared_flag='-G'
9090	else
9091	  if test "$aix_use_runtimelinking" = yes; then
9092	    shared_flag='${wl}-G'
9093	  else
9094	    shared_flag='${wl}-bM:SRE'
9095	  fi
9096	fi
9097      fi
9098
9099      export_dynamic_flag_spec='${wl}-bexpall'
9100      # It seems that -bexpall does not export symbols beginning with
9101      # underscore (_), so it is better to generate a list of symbols to export.
9102      always_export_symbols=yes
9103      if test "$aix_use_runtimelinking" = yes; then
9104	# Warning - without using the other runtime loading flags (-brtl),
9105	# -berok will link without error, but may produce a broken library.
9106	allow_undefined_flag='-berok'
9107        # Determine the default libpath from the value encoded in an
9108        # empty executable.
9109        if test "${lt_cv_aix_libpath+set}" = set; then
9110  aix_libpath=$lt_cv_aix_libpath
9111else
9112  if ${lt_cv_aix_libpath_+:} false; then :
9113  $as_echo_n "(cached) " >&6
9114else
9115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116/* end confdefs.h.  */
9117
9118int
9119main ()
9120{
9121
9122  ;
9123  return 0;
9124}
9125_ACEOF
9126if ac_fn_c_try_link "$LINENO"; then :
9127
9128  lt_aix_libpath_sed='
9129      /Import File Strings/,/^$/ {
9130	  /^0/ {
9131	      s/^0  *\([^ ]*\) *$/\1/
9132	      p
9133	  }
9134      }'
9135  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9136  # Check for a 64-bit object if we didn't find anything.
9137  if test -z "$lt_cv_aix_libpath_"; then
9138    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9139  fi
9140fi
9141rm -f core conftest.err conftest.$ac_objext \
9142    conftest$ac_exeext conftest.$ac_ext
9143  if test -z "$lt_cv_aix_libpath_"; then
9144    lt_cv_aix_libpath_="/usr/lib:/lib"
9145  fi
9146
9147fi
9148
9149  aix_libpath=$lt_cv_aix_libpath_
9150fi
9151
9152        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9153        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"
9154      else
9155	if test "$host_cpu" = ia64; then
9156	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9157	  allow_undefined_flag="-z nodefs"
9158	  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"
9159	else
9160	 # Determine the default libpath from the value encoded in an
9161	 # empty executable.
9162	 if test "${lt_cv_aix_libpath+set}" = set; then
9163  aix_libpath=$lt_cv_aix_libpath
9164else
9165  if ${lt_cv_aix_libpath_+:} false; then :
9166  $as_echo_n "(cached) " >&6
9167else
9168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169/* end confdefs.h.  */
9170
9171int
9172main ()
9173{
9174
9175  ;
9176  return 0;
9177}
9178_ACEOF
9179if ac_fn_c_try_link "$LINENO"; then :
9180
9181  lt_aix_libpath_sed='
9182      /Import File Strings/,/^$/ {
9183	  /^0/ {
9184	      s/^0  *\([^ ]*\) *$/\1/
9185	      p
9186	  }
9187      }'
9188  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9189  # Check for a 64-bit object if we didn't find anything.
9190  if test -z "$lt_cv_aix_libpath_"; then
9191    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9192  fi
9193fi
9194rm -f core conftest.err conftest.$ac_objext \
9195    conftest$ac_exeext conftest.$ac_ext
9196  if test -z "$lt_cv_aix_libpath_"; then
9197    lt_cv_aix_libpath_="/usr/lib:/lib"
9198  fi
9199
9200fi
9201
9202  aix_libpath=$lt_cv_aix_libpath_
9203fi
9204
9205	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9206	  # Warning - without using the other run time loading flags,
9207	  # -berok will link without error, but may produce a broken library.
9208	  no_undefined_flag=' ${wl}-bernotok'
9209	  allow_undefined_flag=' ${wl}-berok'
9210	  if test "$with_gnu_ld" = yes; then
9211	    # We only use this code for GNU lds that support --whole-archive.
9212	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9213	  else
9214	    # Exported symbols can be pulled into shared objects from archives
9215	    whole_archive_flag_spec='$convenience'
9216	  fi
9217	  archive_cmds_need_lc=yes
9218	  # This is similar to how AIX traditionally builds its shared libraries.
9219	  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'
9220	fi
9221      fi
9222      ;;
9223
9224    amigaos*)
9225      case $host_cpu in
9226      powerpc)
9227            # see comment about AmigaOS4 .so support
9228            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9229            archive_expsym_cmds=''
9230        ;;
9231      m68k)
9232            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)'
9233            hardcode_libdir_flag_spec='-L$libdir'
9234            hardcode_minus_L=yes
9235        ;;
9236      esac
9237      ;;
9238
9239    bsdi[45]*)
9240      export_dynamic_flag_spec=-rdynamic
9241      ;;
9242
9243    cygwin* | mingw* | pw32* | cegcc*)
9244      # When not using gcc, we currently assume that we are using
9245      # Microsoft Visual C++.
9246      # hardcode_libdir_flag_spec is actually meaningless, as there is
9247      # no search path for DLLs.
9248      case $cc_basename in
9249      cl*)
9250	# Native MSVC
9251	hardcode_libdir_flag_spec=' '
9252	allow_undefined_flag=unsupported
9253	always_export_symbols=yes
9254	file_list_spec='@'
9255	# Tell ltmain to make .lib files, not .a files.
9256	libext=lib
9257	# Tell ltmain to make .dll files, not .so files.
9258	shrext_cmds=".dll"
9259	# FIXME: Setting linknames here is a bad hack.
9260	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9261	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9262	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9263	  else
9264	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9265	  fi~
9266	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9267	  linknames='
9268	# The linker will not automatically build a static lib if we build a DLL.
9269	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9270	enable_shared_with_static_runtimes=yes
9271	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9272	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9273	# Don't use ranlib
9274	old_postinstall_cmds='chmod 644 $oldlib'
9275	postlink_cmds='lt_outputfile="@OUTPUT@"~
9276	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9277	  case $lt_outputfile in
9278	    *.exe|*.EXE) ;;
9279	    *)
9280	      lt_outputfile="$lt_outputfile.exe"
9281	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9282	      ;;
9283	  esac~
9284	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9285	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9286	    $RM "$lt_outputfile.manifest";
9287	  fi'
9288	;;
9289      *)
9290	# Assume MSVC wrapper
9291	hardcode_libdir_flag_spec=' '
9292	allow_undefined_flag=unsupported
9293	# Tell ltmain to make .lib files, not .a files.
9294	libext=lib
9295	# Tell ltmain to make .dll files, not .so files.
9296	shrext_cmds=".dll"
9297	# FIXME: Setting linknames here is a bad hack.
9298	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9299	# The linker will automatically build a .lib file if we build a DLL.
9300	old_archive_from_new_cmds='true'
9301	# FIXME: Should let the user specify the lib program.
9302	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9303	enable_shared_with_static_runtimes=yes
9304	;;
9305      esac
9306      ;;
9307
9308    darwin* | rhapsody*)
9309
9310
9311  archive_cmds_need_lc=no
9312  hardcode_direct=no
9313  hardcode_automatic=yes
9314  hardcode_shlibpath_var=unsupported
9315  if test "$lt_cv_ld_force_load" = "yes"; then
9316    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\"`'
9317
9318  else
9319    whole_archive_flag_spec=''
9320  fi
9321  link_all_deplibs=yes
9322  allow_undefined_flag="$_lt_dar_allow_undefined"
9323  case $cc_basename in
9324     ifort*) _lt_dar_can_shared=yes ;;
9325     *) _lt_dar_can_shared=$GCC ;;
9326  esac
9327  if test "$_lt_dar_can_shared" = "yes"; then
9328    output_verbose_link_cmd=func_echo_all
9329    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9330    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9331    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}"
9332    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}"
9333
9334  else
9335  ld_shlibs=no
9336  fi
9337
9338      ;;
9339
9340    dgux*)
9341      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342      hardcode_libdir_flag_spec='-L$libdir'
9343      hardcode_shlibpath_var=no
9344      ;;
9345
9346    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9347    # support.  Future versions do this automatically, but an explicit c++rt0.o
9348    # does not break anything, and helps significantly (at the cost of a little
9349    # extra space).
9350    freebsd2.2*)
9351      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9352      hardcode_libdir_flag_spec='-R$libdir'
9353      hardcode_direct=yes
9354      hardcode_shlibpath_var=no
9355      ;;
9356
9357    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9358    freebsd2.*)
9359      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9360      hardcode_direct=yes
9361      hardcode_minus_L=yes
9362      hardcode_shlibpath_var=no
9363      ;;
9364
9365    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9366    freebsd* | dragonfly*)
9367      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9368      hardcode_libdir_flag_spec='-R$libdir'
9369      hardcode_direct=yes
9370      hardcode_shlibpath_var=no
9371      ;;
9372
9373    hpux9*)
9374      if test "$GCC" = yes; then
9375	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'
9376      else
9377	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'
9378      fi
9379      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9380      hardcode_libdir_separator=:
9381      hardcode_direct=yes
9382
9383      # hardcode_minus_L: Not really in the search PATH,
9384      # but as the default location of the library.
9385      hardcode_minus_L=yes
9386      export_dynamic_flag_spec='${wl}-E'
9387      ;;
9388
9389    hpux10*)
9390      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9391	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9392      else
9393	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9394      fi
9395      if test "$with_gnu_ld" = no; then
9396	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9397	hardcode_libdir_separator=:
9398	hardcode_direct=yes
9399	hardcode_direct_absolute=yes
9400	export_dynamic_flag_spec='${wl}-E'
9401	# hardcode_minus_L: Not really in the search PATH,
9402	# but as the default location of the library.
9403	hardcode_minus_L=yes
9404      fi
9405      ;;
9406
9407    hpux11*)
9408      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9409	case $host_cpu in
9410	hppa*64*)
9411	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9412	  ;;
9413	ia64*)
9414	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9415	  ;;
9416	*)
9417	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9418	  ;;
9419	esac
9420      else
9421	case $host_cpu in
9422	hppa*64*)
9423	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9424	  ;;
9425	ia64*)
9426	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9427	  ;;
9428	*)
9429
9430	  # Older versions of the 11.00 compiler do not understand -b yet
9431	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9432	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9433$as_echo_n "checking if $CC understands -b... " >&6; }
9434if ${lt_cv_prog_compiler__b+:} false; then :
9435  $as_echo_n "(cached) " >&6
9436else
9437  lt_cv_prog_compiler__b=no
9438   save_LDFLAGS="$LDFLAGS"
9439   LDFLAGS="$LDFLAGS -b"
9440   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9441   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9442     # The linker can only warn and ignore the option if not recognized
9443     # So say no if there are warnings
9444     if test -s conftest.err; then
9445       # Append any errors to the config.log.
9446       cat conftest.err 1>&5
9447       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9448       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9449       if diff conftest.exp conftest.er2 >/dev/null; then
9450         lt_cv_prog_compiler__b=yes
9451       fi
9452     else
9453       lt_cv_prog_compiler__b=yes
9454     fi
9455   fi
9456   $RM -r conftest*
9457   LDFLAGS="$save_LDFLAGS"
9458
9459fi
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9461$as_echo "$lt_cv_prog_compiler__b" >&6; }
9462
9463if test x"$lt_cv_prog_compiler__b" = xyes; then
9464    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9465else
9466    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9467fi
9468
9469	  ;;
9470	esac
9471      fi
9472      if test "$with_gnu_ld" = no; then
9473	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9474	hardcode_libdir_separator=:
9475
9476	case $host_cpu in
9477	hppa*64*|ia64*)
9478	  hardcode_direct=no
9479	  hardcode_shlibpath_var=no
9480	  ;;
9481	*)
9482	  hardcode_direct=yes
9483	  hardcode_direct_absolute=yes
9484	  export_dynamic_flag_spec='${wl}-E'
9485
9486	  # hardcode_minus_L: Not really in the search PATH,
9487	  # but as the default location of the library.
9488	  hardcode_minus_L=yes
9489	  ;;
9490	esac
9491      fi
9492      ;;
9493
9494    irix5* | irix6* | nonstopux*)
9495      if test "$GCC" = yes; then
9496	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'
9497	# Try to use the -exported_symbol ld option, if it does not
9498	# work, assume that -exports_file does not work either and
9499	# implicitly export all symbols.
9500	# This should be the same for all languages, so no per-tag cache variable.
9501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9502$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9503if ${lt_cv_irix_exported_symbol+:} false; then :
9504  $as_echo_n "(cached) " >&6
9505else
9506  save_LDFLAGS="$LDFLAGS"
9507	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9508	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509/* end confdefs.h.  */
9510int foo (void) { return 0; }
9511_ACEOF
9512if ac_fn_c_try_link "$LINENO"; then :
9513  lt_cv_irix_exported_symbol=yes
9514else
9515  lt_cv_irix_exported_symbol=no
9516fi
9517rm -f core conftest.err conftest.$ac_objext \
9518    conftest$ac_exeext conftest.$ac_ext
9519           LDFLAGS="$save_LDFLAGS"
9520fi
9521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9522$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9523	if test "$lt_cv_irix_exported_symbol" = yes; then
9524          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'
9525	fi
9526      else
9527	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'
9528	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'
9529      fi
9530      archive_cmds_need_lc='no'
9531      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9532      hardcode_libdir_separator=:
9533      inherit_rpath=yes
9534      link_all_deplibs=yes
9535      ;;
9536
9537    netbsd* | netbsdelf*-gnu)
9538      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9539	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9540      else
9541	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9542      fi
9543      hardcode_libdir_flag_spec='-R$libdir'
9544      hardcode_direct=yes
9545      hardcode_shlibpath_var=no
9546      ;;
9547
9548    newsos6)
9549      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550      hardcode_direct=yes
9551      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552      hardcode_libdir_separator=:
9553      hardcode_shlibpath_var=no
9554      ;;
9555
9556    *nto* | *qnx*)
9557      ;;
9558
9559    openbsd*)
9560      if test -f /usr/libexec/ld.so; then
9561	hardcode_direct=yes
9562	hardcode_shlibpath_var=no
9563	hardcode_direct_absolute=yes
9564	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9565	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9566	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9567	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9568	  export_dynamic_flag_spec='${wl}-E'
9569	else
9570	  case $host_os in
9571	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9572	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9573	     hardcode_libdir_flag_spec='-R$libdir'
9574	     ;;
9575	   *)
9576	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9577	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9578	     ;;
9579	  esac
9580	fi
9581      else
9582	ld_shlibs=no
9583      fi
9584      ;;
9585
9586    os2*)
9587      hardcode_libdir_flag_spec='-L$libdir'
9588      hardcode_minus_L=yes
9589      allow_undefined_flag=unsupported
9590      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'
9591      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9592      ;;
9593
9594    osf3*)
9595      if test "$GCC" = yes; then
9596	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9597	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'
9598      else
9599	allow_undefined_flag=' -expect_unresolved \*'
9600	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'
9601      fi
9602      archive_cmds_need_lc='no'
9603      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604      hardcode_libdir_separator=:
9605      ;;
9606
9607    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9608      if test "$GCC" = yes; then
9609	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9610	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'
9611	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612      else
9613	allow_undefined_flag=' -expect_unresolved \*'
9614	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'
9615	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~
9616	$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'
9617
9618	# Both c and cxx compiler support -rpath directly
9619	hardcode_libdir_flag_spec='-rpath $libdir'
9620      fi
9621      archive_cmds_need_lc='no'
9622      hardcode_libdir_separator=:
9623      ;;
9624
9625    solaris*)
9626      no_undefined_flag=' -z defs'
9627      if test "$GCC" = yes; then
9628	wlarc='${wl}'
9629	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9630	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9631	  $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'
9632      else
9633	case `$CC -V 2>&1` in
9634	*"Compilers 5.0"*)
9635	  wlarc=''
9636	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9638	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9639	  ;;
9640	*)
9641	  wlarc='${wl}'
9642	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9643	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9644	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9645	  ;;
9646	esac
9647      fi
9648      hardcode_libdir_flag_spec='-R$libdir'
9649      hardcode_shlibpath_var=no
9650      case $host_os in
9651      solaris2.[0-5] | solaris2.[0-5].*) ;;
9652      *)
9653	# The compiler driver will combine and reorder linker options,
9654	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9655	# but is careful enough not to reorder.
9656	# Supported since Solaris 2.6 (maybe 2.5.1?)
9657	if test "$GCC" = yes; then
9658	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9659	else
9660	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9661	fi
9662	;;
9663      esac
9664      link_all_deplibs=yes
9665      ;;
9666
9667    sunos4*)
9668      if test "x$host_vendor" = xsequent; then
9669	# Use $CC to link under sequent, because it throws in some extra .o
9670	# files that make .init and .fini sections work.
9671	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9672      else
9673	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9674      fi
9675      hardcode_libdir_flag_spec='-L$libdir'
9676      hardcode_direct=yes
9677      hardcode_minus_L=yes
9678      hardcode_shlibpath_var=no
9679      ;;
9680
9681    sysv4)
9682      case $host_vendor in
9683	sni)
9684	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685	  hardcode_direct=yes # is this really true???
9686	;;
9687	siemens)
9688	  ## LD is ld it makes a PLAMLIB
9689	  ## CC just makes a GrossModule.
9690	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9691	  reload_cmds='$CC -r -o $output$reload_objs'
9692	  hardcode_direct=no
9693        ;;
9694	motorola)
9695	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9697	;;
9698      esac
9699      runpath_var='LD_RUN_PATH'
9700      hardcode_shlibpath_var=no
9701      ;;
9702
9703    sysv4.3*)
9704      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705      hardcode_shlibpath_var=no
9706      export_dynamic_flag_spec='-Bexport'
9707      ;;
9708
9709    sysv4*MP*)
9710      if test -d /usr/nec; then
9711	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712	hardcode_shlibpath_var=no
9713	runpath_var=LD_RUN_PATH
9714	hardcode_runpath_var=yes
9715	ld_shlibs=yes
9716      fi
9717      ;;
9718
9719    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9720      no_undefined_flag='${wl}-z,text'
9721      archive_cmds_need_lc=no
9722      hardcode_shlibpath_var=no
9723      runpath_var='LD_RUN_PATH'
9724
9725      if test "$GCC" = yes; then
9726	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728      else
9729	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731      fi
9732      ;;
9733
9734    sysv5* | sco3.2v5* | sco5v6*)
9735      # Note: We can NOT use -z defs as we might desire, because we do not
9736      # link with -lc, and that would cause any symbols used from libc to
9737      # always be unresolved, which means just about no library would
9738      # ever link correctly.  If we're not using GNU ld we use -z text
9739      # though, which does catch some bad symbols but isn't as heavy-handed
9740      # as -z defs.
9741      no_undefined_flag='${wl}-z,text'
9742      allow_undefined_flag='${wl}-z,nodefs'
9743      archive_cmds_need_lc=no
9744      hardcode_shlibpath_var=no
9745      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9746      hardcode_libdir_separator=':'
9747      link_all_deplibs=yes
9748      export_dynamic_flag_spec='${wl}-Bexport'
9749      runpath_var='LD_RUN_PATH'
9750
9751      if test "$GCC" = yes; then
9752	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754      else
9755	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757      fi
9758      ;;
9759
9760    uts4*)
9761      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762      hardcode_libdir_flag_spec='-L$libdir'
9763      hardcode_shlibpath_var=no
9764      ;;
9765
9766    *)
9767      ld_shlibs=no
9768      ;;
9769    esac
9770
9771    if test x$host_vendor = xsni; then
9772      case $host in
9773      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9774	export_dynamic_flag_spec='${wl}-Blargedynsym'
9775	;;
9776      esac
9777    fi
9778  fi
9779
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9781$as_echo "$ld_shlibs" >&6; }
9782test "$ld_shlibs" = no && can_build_shared=no
9783
9784with_gnu_ld=$with_gnu_ld
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800#
9801# Do we need to explicitly link libc?
9802#
9803case "x$archive_cmds_need_lc" in
9804x|xyes)
9805  # Assume -lc should be added
9806  archive_cmds_need_lc=yes
9807
9808  if test "$enable_shared" = yes && test "$GCC" = yes; then
9809    case $archive_cmds in
9810    *'~'*)
9811      # FIXME: we may have to deal with multi-command sequences.
9812      ;;
9813    '$CC '*)
9814      # Test whether the compiler implicitly links with -lc since on some
9815      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9816      # to ld, don't add -lc before -lgcc.
9817      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9818$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9819if ${lt_cv_archive_cmds_need_lc+:} false; then :
9820  $as_echo_n "(cached) " >&6
9821else
9822  $RM conftest*
9823	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9824
9825	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9826  (eval $ac_compile) 2>&5
9827  ac_status=$?
9828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9829  test $ac_status = 0; } 2>conftest.err; then
9830	  soname=conftest
9831	  lib=conftest
9832	  libobjs=conftest.$ac_objext
9833	  deplibs=
9834	  wl=$lt_prog_compiler_wl
9835	  pic_flag=$lt_prog_compiler_pic
9836	  compiler_flags=-v
9837	  linker_flags=-v
9838	  verstring=
9839	  output_objdir=.
9840	  libname=conftest
9841	  lt_save_allow_undefined_flag=$allow_undefined_flag
9842	  allow_undefined_flag=
9843	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9844  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9845  ac_status=$?
9846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9847  test $ac_status = 0; }
9848	  then
9849	    lt_cv_archive_cmds_need_lc=no
9850	  else
9851	    lt_cv_archive_cmds_need_lc=yes
9852	  fi
9853	  allow_undefined_flag=$lt_save_allow_undefined_flag
9854	else
9855	  cat conftest.err 1>&5
9856	fi
9857	$RM conftest*
9858
9859fi
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9861$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9862      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9863      ;;
9864    esac
9865  fi
9866  ;;
9867esac
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10021$as_echo_n "checking dynamic linker characteristics... " >&6; }
10022
10023if test "$GCC" = yes; then
10024  case $host_os in
10025    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10026    *) lt_awk_arg="/^libraries:/" ;;
10027  esac
10028  case $host_os in
10029    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10030    *) lt_sed_strip_eq="s,=/,/,g" ;;
10031  esac
10032  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10033  case $lt_search_path_spec in
10034  *\;*)
10035    # if the path contains ";" then we assume it to be the separator
10036    # otherwise default to the standard path separator (i.e. ":") - it is
10037    # assumed that no part of a normal pathname contains ";" but that should
10038    # okay in the real world where ";" in dirpaths is itself problematic.
10039    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10040    ;;
10041  *)
10042    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10043    ;;
10044  esac
10045  # Ok, now we have the path, separated by spaces, we can step through it
10046  # and add multilib dir if necessary.
10047  lt_tmp_lt_search_path_spec=
10048  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10049  for lt_sys_path in $lt_search_path_spec; do
10050    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10051      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10052    else
10053      test -d "$lt_sys_path" && \
10054	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10055    fi
10056  done
10057  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10058BEGIN {RS=" "; FS="/|\n";} {
10059  lt_foo="";
10060  lt_count=0;
10061  for (lt_i = NF; lt_i > 0; lt_i--) {
10062    if ($lt_i != "" && $lt_i != ".") {
10063      if ($lt_i == "..") {
10064        lt_count++;
10065      } else {
10066        if (lt_count == 0) {
10067          lt_foo="/" $lt_i lt_foo;
10068        } else {
10069          lt_count--;
10070        }
10071      }
10072    }
10073  }
10074  if (lt_foo != "") { lt_freq[lt_foo]++; }
10075  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10076}'`
10077  # AWK program above erroneously prepends '/' to C:/dos/paths
10078  # for these hosts.
10079  case $host_os in
10080    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10081      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10082  esac
10083  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10084else
10085  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10086fi
10087library_names_spec=
10088libname_spec='lib$name'
10089soname_spec=
10090shrext_cmds=".so"
10091postinstall_cmds=
10092postuninstall_cmds=
10093finish_cmds=
10094finish_eval=
10095shlibpath_var=
10096shlibpath_overrides_runpath=unknown
10097version_type=none
10098dynamic_linker="$host_os ld.so"
10099sys_lib_dlsearch_path_spec="/lib /usr/lib"
10100need_lib_prefix=unknown
10101hardcode_into_libs=no
10102
10103# when you set need_version to no, make sure it does not cause -set_version
10104# flags to be left without arguments
10105need_version=unknown
10106
10107case $host_os in
10108aix3*)
10109  version_type=linux # correct to gnu/linux during the next big refactor
10110  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10111  shlibpath_var=LIBPATH
10112
10113  # AIX 3 has no versioning support, so we append a major version to the name.
10114  soname_spec='${libname}${release}${shared_ext}$major'
10115  ;;
10116
10117aix[4-9]*)
10118  version_type=linux # correct to gnu/linux during the next big refactor
10119  need_lib_prefix=no
10120  need_version=no
10121  hardcode_into_libs=yes
10122  if test "$host_cpu" = ia64; then
10123    # AIX 5 supports IA64
10124    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10125    shlibpath_var=LD_LIBRARY_PATH
10126  else
10127    # With GCC up to 2.95.x, collect2 would create an import file
10128    # for dependence libraries.  The import file would start with
10129    # the line `#! .'.  This would cause the generated library to
10130    # depend on `.', always an invalid library.  This was fixed in
10131    # development snapshots of GCC prior to 3.0.
10132    case $host_os in
10133      aix4 | aix4.[01] | aix4.[01].*)
10134      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10135	   echo ' yes '
10136	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10137	:
10138      else
10139	can_build_shared=no
10140      fi
10141      ;;
10142    esac
10143    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10144    # soname into executable. Probably we can add versioning support to
10145    # collect2, so additional links can be useful in future.
10146    if test "$aix_use_runtimelinking" = yes; then
10147      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10148      # instead of lib<name>.a to let people know that these are not
10149      # typical AIX shared libraries.
10150      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151    else
10152      # We preserve .a as extension for shared libraries through AIX4.2
10153      # and later when we are not doing run time linking.
10154      library_names_spec='${libname}${release}.a $libname.a'
10155      soname_spec='${libname}${release}${shared_ext}$major'
10156    fi
10157    shlibpath_var=LIBPATH
10158  fi
10159  ;;
10160
10161amigaos*)
10162  case $host_cpu in
10163  powerpc)
10164    # Since July 2007 AmigaOS4 officially supports .so libraries.
10165    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10166    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167    ;;
10168  m68k)
10169    library_names_spec='$libname.ixlibrary $libname.a'
10170    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10171    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'
10172    ;;
10173  esac
10174  ;;
10175
10176beos*)
10177  library_names_spec='${libname}${shared_ext}'
10178  dynamic_linker="$host_os ld.so"
10179  shlibpath_var=LIBRARY_PATH
10180  ;;
10181
10182bsdi[45]*)
10183  version_type=linux # correct to gnu/linux during the next big refactor
10184  need_version=no
10185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186  soname_spec='${libname}${release}${shared_ext}$major'
10187  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10188  shlibpath_var=LD_LIBRARY_PATH
10189  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10190  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10191  # the default ld.so.conf also contains /usr/contrib/lib and
10192  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10193  # libtool to hard-code these into programs
10194  ;;
10195
10196cygwin* | mingw* | pw32* | cegcc*)
10197  version_type=windows
10198  shrext_cmds=".dll"
10199  need_version=no
10200  need_lib_prefix=no
10201
10202  case $GCC,$cc_basename in
10203  yes,*)
10204    # gcc
10205    library_names_spec='$libname.dll.a'
10206    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10207    postinstall_cmds='base_file=`basename \${file}`~
10208      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10209      dldir=$destdir/`dirname \$dlpath`~
10210      test -d \$dldir || mkdir -p \$dldir~
10211      $install_prog $dir/$dlname \$dldir/$dlname~
10212      chmod a+x \$dldir/$dlname~
10213      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10214        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10215      fi'
10216    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10217      dlpath=$dir/\$dldll~
10218       $RM \$dlpath'
10219    shlibpath_overrides_runpath=yes
10220
10221    case $host_os in
10222    cygwin*)
10223      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10224      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10225
10226      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10227      ;;
10228    mingw* | cegcc*)
10229      # MinGW DLLs use traditional 'lib' prefix
10230      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10231      ;;
10232    pw32*)
10233      # pw32 DLLs use 'pw' prefix rather than 'lib'
10234      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10235      ;;
10236    esac
10237    dynamic_linker='Win32 ld.exe'
10238    ;;
10239
10240  *,cl*)
10241    # Native MSVC
10242    libname_spec='$name'
10243    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10244    library_names_spec='${libname}.dll.lib'
10245
10246    case $build_os in
10247    mingw*)
10248      sys_lib_search_path_spec=
10249      lt_save_ifs=$IFS
10250      IFS=';'
10251      for lt_path in $LIB
10252      do
10253        IFS=$lt_save_ifs
10254        # Let DOS variable expansion print the short 8.3 style file name.
10255        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10256        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10257      done
10258      IFS=$lt_save_ifs
10259      # Convert to MSYS style.
10260      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10261      ;;
10262    cygwin*)
10263      # Convert to unix form, then to dos form, then back to unix form
10264      # but this time dos style (no spaces!) so that the unix form looks
10265      # like /cygdrive/c/PROGRA~1:/cygdr...
10266      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10267      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10268      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10269      ;;
10270    *)
10271      sys_lib_search_path_spec="$LIB"
10272      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10273        # It is most probably a Windows format PATH.
10274        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10275      else
10276        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10277      fi
10278      # FIXME: find the short name or the path components, as spaces are
10279      # common. (e.g. "Program Files" -> "PROGRA~1")
10280      ;;
10281    esac
10282
10283    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10284    postinstall_cmds='base_file=`basename \${file}`~
10285      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10286      dldir=$destdir/`dirname \$dlpath`~
10287      test -d \$dldir || mkdir -p \$dldir~
10288      $install_prog $dir/$dlname \$dldir/$dlname'
10289    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10290      dlpath=$dir/\$dldll~
10291       $RM \$dlpath'
10292    shlibpath_overrides_runpath=yes
10293    dynamic_linker='Win32 link.exe'
10294    ;;
10295
10296  *)
10297    # Assume MSVC wrapper
10298    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10299    dynamic_linker='Win32 ld.exe'
10300    ;;
10301  esac
10302  # FIXME: first we should search . and the directory the executable is in
10303  shlibpath_var=PATH
10304  ;;
10305
10306darwin* | rhapsody*)
10307  dynamic_linker="$host_os dyld"
10308  version_type=darwin
10309  need_lib_prefix=no
10310  need_version=no
10311  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10312  soname_spec='${libname}${release}${major}$shared_ext'
10313  shlibpath_overrides_runpath=yes
10314  shlibpath_var=DYLD_LIBRARY_PATH
10315  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10316
10317  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10318  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10319  ;;
10320
10321dgux*)
10322  version_type=linux # correct to gnu/linux during the next big refactor
10323  need_lib_prefix=no
10324  need_version=no
10325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10326  soname_spec='${libname}${release}${shared_ext}$major'
10327  shlibpath_var=LD_LIBRARY_PATH
10328  ;;
10329
10330freebsd* | dragonfly*)
10331  # DragonFly does not have aout.  When/if they implement a new
10332  # versioning mechanism, adjust this.
10333  if test -x /usr/bin/objformat; then
10334    objformat=`/usr/bin/objformat`
10335  else
10336    case $host_os in
10337    freebsd[23].*) objformat=aout ;;
10338    *) objformat=elf ;;
10339    esac
10340  fi
10341  version_type=freebsd-$objformat
10342  case $version_type in
10343    freebsd-elf*)
10344      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10345      need_version=no
10346      need_lib_prefix=no
10347      ;;
10348    freebsd-*)
10349      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10350      need_version=yes
10351      ;;
10352  esac
10353  shlibpath_var=LD_LIBRARY_PATH
10354  case $host_os in
10355  freebsd2.*)
10356    shlibpath_overrides_runpath=yes
10357    ;;
10358  freebsd3.[01]* | freebsdelf3.[01]*)
10359    shlibpath_overrides_runpath=yes
10360    hardcode_into_libs=yes
10361    ;;
10362  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10363  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10364    shlibpath_overrides_runpath=no
10365    hardcode_into_libs=yes
10366    ;;
10367  *) # from 4.6 on, and DragonFly
10368    shlibpath_overrides_runpath=yes
10369    hardcode_into_libs=yes
10370    ;;
10371  esac
10372  ;;
10373
10374gnu*)
10375  version_type=linux # correct to gnu/linux during the next big refactor
10376  need_lib_prefix=no
10377  need_version=no
10378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10379  soname_spec='${libname}${release}${shared_ext}$major'
10380  shlibpath_var=LD_LIBRARY_PATH
10381  shlibpath_overrides_runpath=no
10382  hardcode_into_libs=yes
10383  ;;
10384
10385haiku*)
10386  version_type=linux # correct to gnu/linux during the next big refactor
10387  need_lib_prefix=no
10388  need_version=no
10389  dynamic_linker="$host_os runtime_loader"
10390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10391  soname_spec='${libname}${release}${shared_ext}$major'
10392  shlibpath_var=LIBRARY_PATH
10393  shlibpath_overrides_runpath=yes
10394  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10395  hardcode_into_libs=yes
10396  ;;
10397
10398hpux9* | hpux10* | hpux11*)
10399  # Give a soname corresponding to the major version so that dld.sl refuses to
10400  # link against other versions.
10401  version_type=sunos
10402  need_lib_prefix=no
10403  need_version=no
10404  case $host_cpu in
10405  ia64*)
10406    shrext_cmds='.so'
10407    hardcode_into_libs=yes
10408    dynamic_linker="$host_os dld.so"
10409    shlibpath_var=LD_LIBRARY_PATH
10410    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10411    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10412    soname_spec='${libname}${release}${shared_ext}$major'
10413    if test "X$HPUX_IA64_MODE" = X32; then
10414      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10415    else
10416      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10417    fi
10418    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10419    ;;
10420  hppa*64*)
10421    shrext_cmds='.sl'
10422    hardcode_into_libs=yes
10423    dynamic_linker="$host_os dld.sl"
10424    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10425    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10426    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427    soname_spec='${libname}${release}${shared_ext}$major'
10428    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10429    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10430    ;;
10431  *)
10432    shrext_cmds='.sl'
10433    dynamic_linker="$host_os dld.sl"
10434    shlibpath_var=SHLIB_PATH
10435    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10436    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437    soname_spec='${libname}${release}${shared_ext}$major'
10438    ;;
10439  esac
10440  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10441  postinstall_cmds='chmod 555 $lib'
10442  # or fails outright, so override atomically:
10443  install_override_mode=555
10444  ;;
10445
10446interix[3-9]*)
10447  version_type=linux # correct to gnu/linux during the next big refactor
10448  need_lib_prefix=no
10449  need_version=no
10450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10451  soname_spec='${libname}${release}${shared_ext}$major'
10452  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10453  shlibpath_var=LD_LIBRARY_PATH
10454  shlibpath_overrides_runpath=no
10455  hardcode_into_libs=yes
10456  ;;
10457
10458irix5* | irix6* | nonstopux*)
10459  case $host_os in
10460    nonstopux*) version_type=nonstopux ;;
10461    *)
10462	if test "$lt_cv_prog_gnu_ld" = yes; then
10463		version_type=linux # correct to gnu/linux during the next big refactor
10464	else
10465		version_type=irix
10466	fi ;;
10467  esac
10468  need_lib_prefix=no
10469  need_version=no
10470  soname_spec='${libname}${release}${shared_ext}$major'
10471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10472  case $host_os in
10473  irix5* | nonstopux*)
10474    libsuff= shlibsuff=
10475    ;;
10476  *)
10477    case $LD in # libtool.m4 will add one of these switches to LD
10478    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10479      libsuff= shlibsuff= libmagic=32-bit;;
10480    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10481      libsuff=32 shlibsuff=N32 libmagic=N32;;
10482    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10483      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10484    *) libsuff= shlibsuff= libmagic=never-match;;
10485    esac
10486    ;;
10487  esac
10488  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10489  shlibpath_overrides_runpath=no
10490  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10491  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10492  hardcode_into_libs=yes
10493  ;;
10494
10495# No shared lib support for Linux oldld, aout, or coff.
10496linux*oldld* | linux*aout* | linux*coff*)
10497  dynamic_linker=no
10498  ;;
10499
10500# This must be glibc/ELF.
10501linux* | k*bsd*-gnu | kopensolaris*-gnu)
10502  version_type=linux # correct to gnu/linux during the next big refactor
10503  need_lib_prefix=no
10504  need_version=no
10505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506  soname_spec='${libname}${release}${shared_ext}$major'
10507  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10508  shlibpath_var=LD_LIBRARY_PATH
10509  shlibpath_overrides_runpath=no
10510
10511  # Some binutils ld are patched to set DT_RUNPATH
10512  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10513  $as_echo_n "(cached) " >&6
10514else
10515  lt_cv_shlibpath_overrides_runpath=no
10516    save_LDFLAGS=$LDFLAGS
10517    save_libdir=$libdir
10518    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10519	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10520    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521/* end confdefs.h.  */
10522
10523int
10524main ()
10525{
10526
10527  ;
10528  return 0;
10529}
10530_ACEOF
10531if ac_fn_c_try_link "$LINENO"; then :
10532  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10533  lt_cv_shlibpath_overrides_runpath=yes
10534fi
10535fi
10536rm -f core conftest.err conftest.$ac_objext \
10537    conftest$ac_exeext conftest.$ac_ext
10538    LDFLAGS=$save_LDFLAGS
10539    libdir=$save_libdir
10540
10541fi
10542
10543  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10544
10545  # This implies no fast_install, which is unacceptable.
10546  # Some rework will be needed to allow for fast_install
10547  # before this can be enabled.
10548  hardcode_into_libs=yes
10549
10550  # Append ld.so.conf contents to the search path
10551  if test -f /etc/ld.so.conf; then
10552    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' ' '`
10553    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10554  fi
10555
10556  # We used to test for /lib/ld.so.1 and disable shared libraries on
10557  # powerpc, because MkLinux only supported shared libraries with the
10558  # GNU dynamic linker.  Since this was broken with cross compilers,
10559  # most powerpc-linux boxes support dynamic linking these days and
10560  # people can always --disable-shared, the test was removed, and we
10561  # assume the GNU/Linux dynamic linker is in use.
10562  dynamic_linker='GNU/Linux ld.so'
10563  ;;
10564
10565netbsdelf*-gnu)
10566  version_type=linux
10567  need_lib_prefix=no
10568  need_version=no
10569  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10570  soname_spec='${libname}${release}${shared_ext}$major'
10571  shlibpath_var=LD_LIBRARY_PATH
10572  shlibpath_overrides_runpath=no
10573  hardcode_into_libs=yes
10574  dynamic_linker='NetBSD ld.elf_so'
10575  ;;
10576
10577netbsd*)
10578  version_type=sunos
10579  need_lib_prefix=no
10580  need_version=no
10581  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10582    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10583    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10584    dynamic_linker='NetBSD (a.out) ld.so'
10585  else
10586    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10587    soname_spec='${libname}${release}${shared_ext}$major'
10588    dynamic_linker='NetBSD ld.elf_so'
10589  fi
10590  shlibpath_var=LD_LIBRARY_PATH
10591  shlibpath_overrides_runpath=yes
10592  hardcode_into_libs=yes
10593  ;;
10594
10595newsos6)
10596  version_type=linux # correct to gnu/linux during the next big refactor
10597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598  shlibpath_var=LD_LIBRARY_PATH
10599  shlibpath_overrides_runpath=yes
10600  ;;
10601
10602*nto* | *qnx*)
10603  version_type=qnx
10604  need_lib_prefix=no
10605  need_version=no
10606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607  soname_spec='${libname}${release}${shared_ext}$major'
10608  shlibpath_var=LD_LIBRARY_PATH
10609  shlibpath_overrides_runpath=no
10610  hardcode_into_libs=yes
10611  dynamic_linker='ldqnx.so'
10612  ;;
10613
10614openbsd*)
10615  version_type=sunos
10616  sys_lib_dlsearch_path_spec="/usr/lib"
10617  need_lib_prefix=no
10618  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10619  case $host_os in
10620    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10621    *)				need_version=no  ;;
10622  esac
10623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10624  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10625  shlibpath_var=LD_LIBRARY_PATH
10626  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10627    case $host_os in
10628      openbsd2.[89] | openbsd2.[89].*)
10629	shlibpath_overrides_runpath=no
10630	;;
10631      *)
10632	shlibpath_overrides_runpath=yes
10633	;;
10634      esac
10635  else
10636    shlibpath_overrides_runpath=yes
10637  fi
10638  ;;
10639
10640os2*)
10641  libname_spec='$name'
10642  shrext_cmds=".dll"
10643  need_lib_prefix=no
10644  library_names_spec='$libname${shared_ext} $libname.a'
10645  dynamic_linker='OS/2 ld.exe'
10646  shlibpath_var=LIBPATH
10647  ;;
10648
10649osf3* | osf4* | osf5*)
10650  version_type=osf
10651  need_lib_prefix=no
10652  need_version=no
10653  soname_spec='${libname}${release}${shared_ext}$major'
10654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655  shlibpath_var=LD_LIBRARY_PATH
10656  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10657  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10658  ;;
10659
10660rdos*)
10661  dynamic_linker=no
10662  ;;
10663
10664solaris*)
10665  version_type=linux # correct to gnu/linux during the next big refactor
10666  need_lib_prefix=no
10667  need_version=no
10668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669  soname_spec='${libname}${release}${shared_ext}$major'
10670  shlibpath_var=LD_LIBRARY_PATH
10671  shlibpath_overrides_runpath=yes
10672  hardcode_into_libs=yes
10673  # ldd complains unless libraries are executable
10674  postinstall_cmds='chmod +x $lib'
10675  ;;
10676
10677sunos4*)
10678  version_type=sunos
10679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10680  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10681  shlibpath_var=LD_LIBRARY_PATH
10682  shlibpath_overrides_runpath=yes
10683  if test "$with_gnu_ld" = yes; then
10684    need_lib_prefix=no
10685  fi
10686  need_version=yes
10687  ;;
10688
10689sysv4 | sysv4.3*)
10690  version_type=linux # correct to gnu/linux during the next big refactor
10691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692  soname_spec='${libname}${release}${shared_ext}$major'
10693  shlibpath_var=LD_LIBRARY_PATH
10694  case $host_vendor in
10695    sni)
10696      shlibpath_overrides_runpath=no
10697      need_lib_prefix=no
10698      runpath_var=LD_RUN_PATH
10699      ;;
10700    siemens)
10701      need_lib_prefix=no
10702      ;;
10703    motorola)
10704      need_lib_prefix=no
10705      need_version=no
10706      shlibpath_overrides_runpath=no
10707      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10708      ;;
10709  esac
10710  ;;
10711
10712sysv4*MP*)
10713  if test -d /usr/nec ;then
10714    version_type=linux # correct to gnu/linux during the next big refactor
10715    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10716    soname_spec='$libname${shared_ext}.$major'
10717    shlibpath_var=LD_LIBRARY_PATH
10718  fi
10719  ;;
10720
10721sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10722  version_type=freebsd-elf
10723  need_lib_prefix=no
10724  need_version=no
10725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10726  soname_spec='${libname}${release}${shared_ext}$major'
10727  shlibpath_var=LD_LIBRARY_PATH
10728  shlibpath_overrides_runpath=yes
10729  hardcode_into_libs=yes
10730  if test "$with_gnu_ld" = yes; then
10731    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10732  else
10733    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10734    case $host_os in
10735      sco3.2v5*)
10736        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10737	;;
10738    esac
10739  fi
10740  sys_lib_dlsearch_path_spec='/usr/lib'
10741  ;;
10742
10743tpf*)
10744  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10745  version_type=linux # correct to gnu/linux during the next big refactor
10746  need_lib_prefix=no
10747  need_version=no
10748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749  shlibpath_var=LD_LIBRARY_PATH
10750  shlibpath_overrides_runpath=no
10751  hardcode_into_libs=yes
10752  ;;
10753
10754uts4*)
10755  version_type=linux # correct to gnu/linux during the next big refactor
10756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757  soname_spec='${libname}${release}${shared_ext}$major'
10758  shlibpath_var=LD_LIBRARY_PATH
10759  ;;
10760
10761*)
10762  dynamic_linker=no
10763  ;;
10764esac
10765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10766$as_echo "$dynamic_linker" >&6; }
10767test "$dynamic_linker" = no && can_build_shared=no
10768
10769variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10770if test "$GCC" = yes; then
10771  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10772fi
10773
10774if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10775  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10776fi
10777if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10778  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10779fi
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10873$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10874hardcode_action=
10875if test -n "$hardcode_libdir_flag_spec" ||
10876   test -n "$runpath_var" ||
10877   test "X$hardcode_automatic" = "Xyes" ; then
10878
10879  # We can hardcode non-existent directories.
10880  if test "$hardcode_direct" != no &&
10881     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10882     # have to relink, otherwise we might link with an installed library
10883     # when we should be linking with a yet-to-be-installed one
10884     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10885     test "$hardcode_minus_L" != no; then
10886    # Linking always hardcodes the temporary library directory.
10887    hardcode_action=relink
10888  else
10889    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10890    hardcode_action=immediate
10891  fi
10892else
10893  # We cannot hardcode anything, or else we can only hardcode existing
10894  # directories.
10895  hardcode_action=unsupported
10896fi
10897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10898$as_echo "$hardcode_action" >&6; }
10899
10900if test "$hardcode_action" = relink ||
10901   test "$inherit_rpath" = yes; then
10902  # Fast installation is not supported
10903  enable_fast_install=no
10904elif test "$shlibpath_overrides_runpath" = yes ||
10905     test "$enable_shared" = no; then
10906  # Fast installation is not necessary
10907  enable_fast_install=needless
10908fi
10909
10910
10911
10912
10913
10914
10915  if test "x$enable_dlopen" != xyes; then
10916  enable_dlopen=unknown
10917  enable_dlopen_self=unknown
10918  enable_dlopen_self_static=unknown
10919else
10920  lt_cv_dlopen=no
10921  lt_cv_dlopen_libs=
10922
10923  case $host_os in
10924  beos*)
10925    lt_cv_dlopen="load_add_on"
10926    lt_cv_dlopen_libs=
10927    lt_cv_dlopen_self=yes
10928    ;;
10929
10930  mingw* | pw32* | cegcc*)
10931    lt_cv_dlopen="LoadLibrary"
10932    lt_cv_dlopen_libs=
10933    ;;
10934
10935  cygwin*)
10936    lt_cv_dlopen="dlopen"
10937    lt_cv_dlopen_libs=
10938    ;;
10939
10940  darwin*)
10941  # if libdl is installed we need to link against it
10942    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10943$as_echo_n "checking for dlopen in -ldl... " >&6; }
10944if ${ac_cv_lib_dl_dlopen+:} false; then :
10945  $as_echo_n "(cached) " >&6
10946else
10947  ac_check_lib_save_LIBS=$LIBS
10948LIBS="-ldl  $LIBS"
10949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950/* end confdefs.h.  */
10951
10952/* Override any GCC internal prototype to avoid an error.
10953   Use char because int might match the return type of a GCC
10954   builtin and then its argument prototype would still apply.  */
10955#ifdef __cplusplus
10956extern "C"
10957#endif
10958char dlopen ();
10959int
10960main ()
10961{
10962return dlopen ();
10963  ;
10964  return 0;
10965}
10966_ACEOF
10967if ac_fn_c_try_link "$LINENO"; then :
10968  ac_cv_lib_dl_dlopen=yes
10969else
10970  ac_cv_lib_dl_dlopen=no
10971fi
10972rm -f core conftest.err conftest.$ac_objext \
10973    conftest$ac_exeext conftest.$ac_ext
10974LIBS=$ac_check_lib_save_LIBS
10975fi
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10977$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10978if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10979  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10980else
10981
10982    lt_cv_dlopen="dyld"
10983    lt_cv_dlopen_libs=
10984    lt_cv_dlopen_self=yes
10985
10986fi
10987
10988    ;;
10989
10990  *)
10991    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10992if test "x$ac_cv_func_shl_load" = xyes; then :
10993  lt_cv_dlopen="shl_load"
10994else
10995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10996$as_echo_n "checking for shl_load in -ldld... " >&6; }
10997if ${ac_cv_lib_dld_shl_load+:} false; then :
10998  $as_echo_n "(cached) " >&6
10999else
11000  ac_check_lib_save_LIBS=$LIBS
11001LIBS="-ldld  $LIBS"
11002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003/* end confdefs.h.  */
11004
11005/* Override any GCC internal prototype to avoid an error.
11006   Use char because int might match the return type of a GCC
11007   builtin and then its argument prototype would still apply.  */
11008#ifdef __cplusplus
11009extern "C"
11010#endif
11011char shl_load ();
11012int
11013main ()
11014{
11015return shl_load ();
11016  ;
11017  return 0;
11018}
11019_ACEOF
11020if ac_fn_c_try_link "$LINENO"; then :
11021  ac_cv_lib_dld_shl_load=yes
11022else
11023  ac_cv_lib_dld_shl_load=no
11024fi
11025rm -f core conftest.err conftest.$ac_objext \
11026    conftest$ac_exeext conftest.$ac_ext
11027LIBS=$ac_check_lib_save_LIBS
11028fi
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11030$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11031if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11032  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11033else
11034  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11035if test "x$ac_cv_func_dlopen" = xyes; then :
11036  lt_cv_dlopen="dlopen"
11037else
11038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11039$as_echo_n "checking for dlopen in -ldl... " >&6; }
11040if ${ac_cv_lib_dl_dlopen+:} false; then :
11041  $as_echo_n "(cached) " >&6
11042else
11043  ac_check_lib_save_LIBS=$LIBS
11044LIBS="-ldl  $LIBS"
11045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046/* end confdefs.h.  */
11047
11048/* Override any GCC internal prototype to avoid an error.
11049   Use char because int might match the return type of a GCC
11050   builtin and then its argument prototype would still apply.  */
11051#ifdef __cplusplus
11052extern "C"
11053#endif
11054char dlopen ();
11055int
11056main ()
11057{
11058return dlopen ();
11059  ;
11060  return 0;
11061}
11062_ACEOF
11063if ac_fn_c_try_link "$LINENO"; then :
11064  ac_cv_lib_dl_dlopen=yes
11065else
11066  ac_cv_lib_dl_dlopen=no
11067fi
11068rm -f core conftest.err conftest.$ac_objext \
11069    conftest$ac_exeext conftest.$ac_ext
11070LIBS=$ac_check_lib_save_LIBS
11071fi
11072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11073$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11074if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11075  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11076else
11077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11078$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11079if ${ac_cv_lib_svld_dlopen+:} false; then :
11080  $as_echo_n "(cached) " >&6
11081else
11082  ac_check_lib_save_LIBS=$LIBS
11083LIBS="-lsvld  $LIBS"
11084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085/* end confdefs.h.  */
11086
11087/* Override any GCC internal prototype to avoid an error.
11088   Use char because int might match the return type of a GCC
11089   builtin and then its argument prototype would still apply.  */
11090#ifdef __cplusplus
11091extern "C"
11092#endif
11093char dlopen ();
11094int
11095main ()
11096{
11097return dlopen ();
11098  ;
11099  return 0;
11100}
11101_ACEOF
11102if ac_fn_c_try_link "$LINENO"; then :
11103  ac_cv_lib_svld_dlopen=yes
11104else
11105  ac_cv_lib_svld_dlopen=no
11106fi
11107rm -f core conftest.err conftest.$ac_objext \
11108    conftest$ac_exeext conftest.$ac_ext
11109LIBS=$ac_check_lib_save_LIBS
11110fi
11111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11112$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11113if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11114  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11115else
11116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11117$as_echo_n "checking for dld_link in -ldld... " >&6; }
11118if ${ac_cv_lib_dld_dld_link+:} false; then :
11119  $as_echo_n "(cached) " >&6
11120else
11121  ac_check_lib_save_LIBS=$LIBS
11122LIBS="-ldld  $LIBS"
11123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124/* end confdefs.h.  */
11125
11126/* Override any GCC internal prototype to avoid an error.
11127   Use char because int might match the return type of a GCC
11128   builtin and then its argument prototype would still apply.  */
11129#ifdef __cplusplus
11130extern "C"
11131#endif
11132char dld_link ();
11133int
11134main ()
11135{
11136return dld_link ();
11137  ;
11138  return 0;
11139}
11140_ACEOF
11141if ac_fn_c_try_link "$LINENO"; then :
11142  ac_cv_lib_dld_dld_link=yes
11143else
11144  ac_cv_lib_dld_dld_link=no
11145fi
11146rm -f core conftest.err conftest.$ac_objext \
11147    conftest$ac_exeext conftest.$ac_ext
11148LIBS=$ac_check_lib_save_LIBS
11149fi
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11151$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11152if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11153  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11154fi
11155
11156
11157fi
11158
11159
11160fi
11161
11162
11163fi
11164
11165
11166fi
11167
11168
11169fi
11170
11171    ;;
11172  esac
11173
11174  if test "x$lt_cv_dlopen" != xno; then
11175    enable_dlopen=yes
11176  else
11177    enable_dlopen=no
11178  fi
11179
11180  case $lt_cv_dlopen in
11181  dlopen)
11182    save_CPPFLAGS="$CPPFLAGS"
11183    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11184
11185    save_LDFLAGS="$LDFLAGS"
11186    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11187
11188    save_LIBS="$LIBS"
11189    LIBS="$lt_cv_dlopen_libs $LIBS"
11190
11191    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11192$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11193if ${lt_cv_dlopen_self+:} false; then :
11194  $as_echo_n "(cached) " >&6
11195else
11196  	  if test "$cross_compiling" = yes; then :
11197  lt_cv_dlopen_self=cross
11198else
11199  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11200  lt_status=$lt_dlunknown
11201  cat > conftest.$ac_ext <<_LT_EOF
11202#line $LINENO "configure"
11203#include "confdefs.h"
11204
11205#if HAVE_DLFCN_H
11206#include <dlfcn.h>
11207#endif
11208
11209#include <stdio.h>
11210
11211#ifdef RTLD_GLOBAL
11212#  define LT_DLGLOBAL		RTLD_GLOBAL
11213#else
11214#  ifdef DL_GLOBAL
11215#    define LT_DLGLOBAL		DL_GLOBAL
11216#  else
11217#    define LT_DLGLOBAL		0
11218#  endif
11219#endif
11220
11221/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11222   find out it does not work in some platform. */
11223#ifndef LT_DLLAZY_OR_NOW
11224#  ifdef RTLD_LAZY
11225#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11226#  else
11227#    ifdef DL_LAZY
11228#      define LT_DLLAZY_OR_NOW		DL_LAZY
11229#    else
11230#      ifdef RTLD_NOW
11231#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11232#      else
11233#        ifdef DL_NOW
11234#          define LT_DLLAZY_OR_NOW	DL_NOW
11235#        else
11236#          define LT_DLLAZY_OR_NOW	0
11237#        endif
11238#      endif
11239#    endif
11240#  endif
11241#endif
11242
11243/* When -fvisbility=hidden is used, assume the code has been annotated
11244   correspondingly for the symbols needed.  */
11245#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11246int fnord () __attribute__((visibility("default")));
11247#endif
11248
11249int fnord () { return 42; }
11250int main ()
11251{
11252  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11253  int status = $lt_dlunknown;
11254
11255  if (self)
11256    {
11257      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11258      else
11259        {
11260	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11261          else puts (dlerror ());
11262	}
11263      /* dlclose (self); */
11264    }
11265  else
11266    puts (dlerror ());
11267
11268  return status;
11269}
11270_LT_EOF
11271  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11272  (eval $ac_link) 2>&5
11273  ac_status=$?
11274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11275  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11276    (./conftest; exit; ) >&5 2>/dev/null
11277    lt_status=$?
11278    case x$lt_status in
11279      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11280      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11281      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11282    esac
11283  else :
11284    # compilation failed
11285    lt_cv_dlopen_self=no
11286  fi
11287fi
11288rm -fr conftest*
11289
11290
11291fi
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11293$as_echo "$lt_cv_dlopen_self" >&6; }
11294
11295    if test "x$lt_cv_dlopen_self" = xyes; then
11296      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11297      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11298$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11299if ${lt_cv_dlopen_self_static+:} false; then :
11300  $as_echo_n "(cached) " >&6
11301else
11302  	  if test "$cross_compiling" = yes; then :
11303  lt_cv_dlopen_self_static=cross
11304else
11305  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11306  lt_status=$lt_dlunknown
11307  cat > conftest.$ac_ext <<_LT_EOF
11308#line $LINENO "configure"
11309#include "confdefs.h"
11310
11311#if HAVE_DLFCN_H
11312#include <dlfcn.h>
11313#endif
11314
11315#include <stdio.h>
11316
11317#ifdef RTLD_GLOBAL
11318#  define LT_DLGLOBAL		RTLD_GLOBAL
11319#else
11320#  ifdef DL_GLOBAL
11321#    define LT_DLGLOBAL		DL_GLOBAL
11322#  else
11323#    define LT_DLGLOBAL		0
11324#  endif
11325#endif
11326
11327/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11328   find out it does not work in some platform. */
11329#ifndef LT_DLLAZY_OR_NOW
11330#  ifdef RTLD_LAZY
11331#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11332#  else
11333#    ifdef DL_LAZY
11334#      define LT_DLLAZY_OR_NOW		DL_LAZY
11335#    else
11336#      ifdef RTLD_NOW
11337#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11338#      else
11339#        ifdef DL_NOW
11340#          define LT_DLLAZY_OR_NOW	DL_NOW
11341#        else
11342#          define LT_DLLAZY_OR_NOW	0
11343#        endif
11344#      endif
11345#    endif
11346#  endif
11347#endif
11348
11349/* When -fvisbility=hidden is used, assume the code has been annotated
11350   correspondingly for the symbols needed.  */
11351#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11352int fnord () __attribute__((visibility("default")));
11353#endif
11354
11355int fnord () { return 42; }
11356int main ()
11357{
11358  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11359  int status = $lt_dlunknown;
11360
11361  if (self)
11362    {
11363      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11364      else
11365        {
11366	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11367          else puts (dlerror ());
11368	}
11369      /* dlclose (self); */
11370    }
11371  else
11372    puts (dlerror ());
11373
11374  return status;
11375}
11376_LT_EOF
11377  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11378  (eval $ac_link) 2>&5
11379  ac_status=$?
11380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11381  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11382    (./conftest; exit; ) >&5 2>/dev/null
11383    lt_status=$?
11384    case x$lt_status in
11385      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11386      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11387      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11388    esac
11389  else :
11390    # compilation failed
11391    lt_cv_dlopen_self_static=no
11392  fi
11393fi
11394rm -fr conftest*
11395
11396
11397fi
11398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11399$as_echo "$lt_cv_dlopen_self_static" >&6; }
11400    fi
11401
11402    CPPFLAGS="$save_CPPFLAGS"
11403    LDFLAGS="$save_LDFLAGS"
11404    LIBS="$save_LIBS"
11405    ;;
11406  esac
11407
11408  case $lt_cv_dlopen_self in
11409  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11410  *) enable_dlopen_self=unknown ;;
11411  esac
11412
11413  case $lt_cv_dlopen_self_static in
11414  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11415  *) enable_dlopen_self_static=unknown ;;
11416  esac
11417fi
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435striplib=
11436old_striplib=
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11438$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11439if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11440  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11441  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11443$as_echo "yes" >&6; }
11444else
11445# FIXME - insert some real tests, host_os isn't really good enough
11446  case $host_os in
11447  darwin*)
11448    if test -n "$STRIP" ; then
11449      striplib="$STRIP -x"
11450      old_striplib="$STRIP -S"
11451      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11452$as_echo "yes" >&6; }
11453    else
11454      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455$as_echo "no" >&6; }
11456    fi
11457    ;;
11458  *)
11459    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
11461    ;;
11462  esac
11463fi
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476  # Report which library types will actually be built
11477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11478$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11480$as_echo "$can_build_shared" >&6; }
11481
11482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11483$as_echo_n "checking whether to build shared libraries... " >&6; }
11484  test "$can_build_shared" = "no" && enable_shared=no
11485
11486  # On AIX, shared libraries and static libraries use the same namespace, and
11487  # are all built from PIC.
11488  case $host_os in
11489  aix3*)
11490    test "$enable_shared" = yes && enable_static=no
11491    if test -n "$RANLIB"; then
11492      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11493      postinstall_cmds='$RANLIB $lib'
11494    fi
11495    ;;
11496
11497  aix[4-9]*)
11498    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11499      test "$enable_shared" = yes && enable_static=no
11500    fi
11501    ;;
11502  esac
11503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11504$as_echo "$enable_shared" >&6; }
11505
11506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11507$as_echo_n "checking whether to build static libraries... " >&6; }
11508  # Make sure either enable_shared or enable_static is yes.
11509  test "$enable_shared" = yes || enable_static=yes
11510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11511$as_echo "$enable_static" >&6; }
11512
11513
11514
11515
11516fi
11517ac_ext=c
11518ac_cpp='$CPP $CPPFLAGS'
11519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11521ac_compiler_gnu=$ac_cv_c_compiler_gnu
11522
11523CC="$lt_save_CC"
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539        ac_config_commands="$ac_config_commands libtool"
11540
11541
11542
11543
11544# Only expand once:
11545
11546
11547
11548for ac_prog in flex lex
11549do
11550  # Extract the first word of "$ac_prog", so it can be a program name with args.
11551set dummy $ac_prog; ac_word=$2
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553$as_echo_n "checking for $ac_word... " >&6; }
11554if ${ac_cv_prog_LEX+:} false; then :
11555  $as_echo_n "(cached) " >&6
11556else
11557  if test -n "$LEX"; then
11558  ac_cv_prog_LEX="$LEX" # Let the user override the test.
11559else
11560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561for as_dir in $PATH
11562do
11563  IFS=$as_save_IFS
11564  test -z "$as_dir" && as_dir=.
11565    for ac_exec_ext in '' $ac_executable_extensions; do
11566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11567    ac_cv_prog_LEX="$ac_prog"
11568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569    break 2
11570  fi
11571done
11572  done
11573IFS=$as_save_IFS
11574
11575fi
11576fi
11577LEX=$ac_cv_prog_LEX
11578if test -n "$LEX"; then
11579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11580$as_echo "$LEX" >&6; }
11581else
11582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583$as_echo "no" >&6; }
11584fi
11585
11586
11587  test -n "$LEX" && break
11588done
11589test -n "$LEX" || LEX=":"
11590
11591if test "x$LEX" != "x:"; then
11592  cat >conftest.l <<_ACEOF
11593%%
11594a { ECHO; }
11595b { REJECT; }
11596c { yymore (); }
11597d { yyless (1); }
11598e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
11599    yyless ((input () != 0)); }
11600f { unput (yytext[0]); }
11601. { BEGIN INITIAL; }
11602%%
11603#ifdef YYTEXT_POINTER
11604extern char *yytext;
11605#endif
11606int
11607main (void)
11608{
11609  return ! yylex () + ! yywrap ();
11610}
11611_ACEOF
11612{ { ac_try="$LEX conftest.l"
11613case "(($ac_try" in
11614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615  *) ac_try_echo=$ac_try;;
11616esac
11617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11618$as_echo "$ac_try_echo"; } >&5
11619  (eval "$LEX conftest.l") 2>&5
11620  ac_status=$?
11621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11622  test $ac_status = 0; }
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
11624$as_echo_n "checking lex output file root... " >&6; }
11625if ${ac_cv_prog_lex_root+:} false; then :
11626  $as_echo_n "(cached) " >&6
11627else
11628
11629if test -f lex.yy.c; then
11630  ac_cv_prog_lex_root=lex.yy
11631elif test -f lexyy.c; then
11632  ac_cv_prog_lex_root=lexyy
11633else
11634  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
11635fi
11636fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11638$as_echo "$ac_cv_prog_lex_root" >&6; }
11639LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11640
11641if test -z "${LEXLIB+set}"; then
11642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11643$as_echo_n "checking lex library... " >&6; }
11644if ${ac_cv_lib_lex+:} false; then :
11645  $as_echo_n "(cached) " >&6
11646else
11647
11648    ac_save_LIBS=$LIBS
11649    ac_cv_lib_lex='none needed'
11650    for ac_lib in '' -lfl -ll; do
11651      LIBS="$ac_lib $ac_save_LIBS"
11652      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653/* end confdefs.h.  */
11654`cat $LEX_OUTPUT_ROOT.c`
11655_ACEOF
11656if ac_fn_c_try_link "$LINENO"; then :
11657  ac_cv_lib_lex=$ac_lib
11658fi
11659rm -f core conftest.err conftest.$ac_objext \
11660    conftest$ac_exeext conftest.$ac_ext
11661      test "$ac_cv_lib_lex" != 'none needed' && break
11662    done
11663    LIBS=$ac_save_LIBS
11664
11665fi
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11667$as_echo "$ac_cv_lib_lex" >&6; }
11668  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
11669fi
11670
11671
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11673$as_echo_n "checking whether yytext is a pointer... " >&6; }
11674if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
11675  $as_echo_n "(cached) " >&6
11676else
11677  # POSIX says lex can declare yytext either as a pointer or an array; the
11678# default is implementation-dependent.  Figure out which it is, since
11679# not all implementations provide the %pointer and %array declarations.
11680ac_cv_prog_lex_yytext_pointer=no
11681ac_save_LIBS=$LIBS
11682LIBS="$LEXLIB $ac_save_LIBS"
11683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684/* end confdefs.h.  */
11685
11686  #define YYTEXT_POINTER 1
11687`cat $LEX_OUTPUT_ROOT.c`
11688_ACEOF
11689if ac_fn_c_try_link "$LINENO"; then :
11690  ac_cv_prog_lex_yytext_pointer=yes
11691fi
11692rm -f core conftest.err conftest.$ac_objext \
11693    conftest$ac_exeext conftest.$ac_ext
11694LIBS=$ac_save_LIBS
11695
11696fi
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11698$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
11699if test $ac_cv_prog_lex_yytext_pointer = yes; then
11700
11701$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
11702
11703fi
11704rm -f conftest.l $LEX_OUTPUT_ROOT.c
11705
11706fi
11707if test "$LEX" = :; then
11708  LEX=${am_missing_run}flex
11709fi
11710for ac_prog in 'bison -y' byacc
11711do
11712  # Extract the first word of "$ac_prog", so it can be a program name with args.
11713set dummy $ac_prog; ac_word=$2
11714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11715$as_echo_n "checking for $ac_word... " >&6; }
11716if ${ac_cv_prog_YACC+:} false; then :
11717  $as_echo_n "(cached) " >&6
11718else
11719  if test -n "$YACC"; then
11720  ac_cv_prog_YACC="$YACC" # Let the user override the test.
11721else
11722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723for as_dir in $PATH
11724do
11725  IFS=$as_save_IFS
11726  test -z "$as_dir" && as_dir=.
11727    for ac_exec_ext in '' $ac_executable_extensions; do
11728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11729    ac_cv_prog_YACC="$ac_prog"
11730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11731    break 2
11732  fi
11733done
11734  done
11735IFS=$as_save_IFS
11736
11737fi
11738fi
11739YACC=$ac_cv_prog_YACC
11740if test -n "$YACC"; then
11741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11742$as_echo "$YACC" >&6; }
11743else
11744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745$as_echo "no" >&6; }
11746fi
11747
11748
11749  test -n "$YACC" && break
11750done
11751test -n "$YACC" || YACC="yacc"
11752
11753if test "x$CC" != xcc; then
11754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11755$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11756else
11757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11758$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11759fi
11760set dummy $CC; ac_cc=`$as_echo "$2" |
11761		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11762if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11763  $as_echo_n "(cached) " >&6
11764else
11765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766/* end confdefs.h.  */
11767
11768int
11769main ()
11770{
11771
11772  ;
11773  return 0;
11774}
11775_ACEOF
11776# Make sure it works both with $CC and with simple cc.
11777# We do the test twice because some compilers refuse to overwrite an
11778# existing .o file with -o, though they will create one.
11779ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11780rm -f conftest2.*
11781if { { case "(($ac_try" in
11782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783  *) ac_try_echo=$ac_try;;
11784esac
11785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11786$as_echo "$ac_try_echo"; } >&5
11787  (eval "$ac_try") 2>&5
11788  ac_status=$?
11789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11790  test $ac_status = 0; } &&
11791   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793  *) ac_try_echo=$ac_try;;
11794esac
11795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11796$as_echo "$ac_try_echo"; } >&5
11797  (eval "$ac_try") 2>&5
11798  ac_status=$?
11799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11800  test $ac_status = 0; };
11801then
11802  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11803  if test "x$CC" != xcc; then
11804    # Test first that cc exists at all.
11805    if { ac_try='cc -c conftest.$ac_ext >&5'
11806  { { case "(($ac_try" in
11807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808  *) ac_try_echo=$ac_try;;
11809esac
11810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11811$as_echo "$ac_try_echo"; } >&5
11812  (eval "$ac_try") 2>&5
11813  ac_status=$?
11814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11815  test $ac_status = 0; }; }; then
11816      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11817      rm -f conftest2.*
11818      if { { case "(($ac_try" in
11819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820  *) ac_try_echo=$ac_try;;
11821esac
11822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11823$as_echo "$ac_try_echo"; } >&5
11824  (eval "$ac_try") 2>&5
11825  ac_status=$?
11826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11827  test $ac_status = 0; } &&
11828	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830  *) ac_try_echo=$ac_try;;
11831esac
11832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11833$as_echo "$ac_try_echo"; } >&5
11834  (eval "$ac_try") 2>&5
11835  ac_status=$?
11836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11837  test $ac_status = 0; };
11838      then
11839	# cc works too.
11840	:
11841      else
11842	# cc exists but doesn't like -o.
11843	eval ac_cv_prog_cc_${ac_cc}_c_o=no
11844      fi
11845    fi
11846  fi
11847else
11848  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11849fi
11850rm -f core conftest*
11851
11852fi
11853if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11855$as_echo "yes" >&6; }
11856else
11857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858$as_echo "no" >&6; }
11859
11860$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11861
11862fi
11863
11864# FIXME: we rely on the cache variable name because
11865# there is no other way.
11866set dummy $CC
11867am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11868eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11869if test "$am_t" != yes; then
11870   # Losing compiler, so override with the script.
11871   # FIXME: It is wrong to rewrite CC.
11872   # But if we don't then we get into trouble of one sort or another.
11873   # A longer-term fix would be to have automake use am__CC in this case,
11874   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11875   CC="$am_aux_dir/compile $CC"
11876fi
11877
11878
11879
11880
11881# Check for docbook
11882for ac_prog in onsgmls nsgmls
11883do
11884  # Extract the first word of "$ac_prog", so it can be a program name with args.
11885set dummy $ac_prog; ac_word=$2
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887$as_echo_n "checking for $ac_word... " >&6; }
11888if ${ac_cv_prog_NSGMLS+:} false; then :
11889  $as_echo_n "(cached) " >&6
11890else
11891  if test -n "$NSGMLS"; then
11892  ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
11893else
11894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895for as_dir in $PATH
11896do
11897  IFS=$as_save_IFS
11898  test -z "$as_dir" && as_dir=.
11899    for ac_exec_ext in '' $ac_executable_extensions; do
11900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11901    ac_cv_prog_NSGMLS="$ac_prog"
11902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903    break 2
11904  fi
11905done
11906  done
11907IFS=$as_save_IFS
11908
11909fi
11910fi
11911NSGMLS=$ac_cv_prog_NSGMLS
11912if test -n "$NSGMLS"; then
11913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
11914$as_echo "$NSGMLS" >&6; }
11915else
11916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917$as_echo "no" >&6; }
11918fi
11919
11920
11921  test -n "$NSGMLS" && break
11922done
11923
11924for ac_prog in openjade jade
11925do
11926  # Extract the first word of "$ac_prog", so it can be a program name with args.
11927set dummy $ac_prog; ac_word=$2
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929$as_echo_n "checking for $ac_word... " >&6; }
11930if ${ac_cv_prog_JADE+:} false; then :
11931  $as_echo_n "(cached) " >&6
11932else
11933  if test -n "$JADE"; then
11934  ac_cv_prog_JADE="$JADE" # Let the user override the test.
11935else
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939  IFS=$as_save_IFS
11940  test -z "$as_dir" && as_dir=.
11941    for ac_exec_ext in '' $ac_executable_extensions; do
11942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943    ac_cv_prog_JADE="$ac_prog"
11944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945    break 2
11946  fi
11947done
11948  done
11949IFS=$as_save_IFS
11950
11951fi
11952fi
11953JADE=$ac_cv_prog_JADE
11954if test -n "$JADE"; then
11955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
11956$as_echo "$JADE" >&6; }
11957else
11958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
11960fi
11961
11962
11963  test -n "$JADE" && break
11964done
11965
11966
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook V4.2" >&5
11968$as_echo_n "checking for DocBook V4.2... " >&6; }
11969if ${pgac_cv_check_docbook+:} false; then :
11970  $as_echo_n "(cached) " >&6
11971else
11972  cat >conftest.sgml <<EOF
11973<!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
11974<book>
11975 <title>test</title>
11976 <chapter>
11977  <title>random</title>
11978   <sect1>
11979    <title>testsect</title>
11980    <para>text</para>
11981  </sect1>
11982 </chapter>
11983</book>
11984EOF
11985
11986pgac_cv_check_docbook=no
11987
11988if test -n "$NSGMLS"; then
11989  $NSGMLS -s conftest.sgml 1>&5 2>&1
11990  if test $? -eq 0; then
11991    pgac_cv_check_docbook=yes
11992  fi
11993fi
11994rm -f conftest.sgml
11995fi
11996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
11997$as_echo "$pgac_cv_check_docbook" >&6; }
11998
11999have_docbook=$pgac_cv_check_docbook
12000 if test "$pgac_cv_check_docbook" = "yes"; then
12001  can_build_docs_TRUE=
12002  can_build_docs_FALSE='#'
12003else
12004  can_build_docs_TRUE='#'
12005  can_build_docs_FALSE=
12006fi
12007
12008
12009
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook stylesheets" >&5
12011$as_echo_n "checking for DocBook stylesheets... " >&6; }
12012if ${pgac_cv_path_stylesheets+:} false; then :
12013  $as_echo_n "(cached) " >&6
12014else
12015  if test -n "$DOCBOOKSTYLE"; then
12016  pgac_cv_path_stylesheets=$DOCBOOKSTYLE
12017else
12018  for pgac_prefix in /usr /usr/local /opt /sw; do
12019    for pgac_infix in share lib; do
12020      for pgac_postfix in \
12021        sgml/stylesheets/nwalsh-modular \
12022        sgml/stylesheets/docbook \
12023        sgml/stylesheets/dsssl/docbook \
12024        sgml/docbook-dsssl \
12025        sgml/docbook/dsssl/modular \
12026        sgml/docbook/stylesheet/dsssl/modular \
12027        sgml/docbook/dsssl-stylesheets \
12028        sgml/dsssl/docbook-dsssl-nwalsh
12029      do
12030        pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
12031        if test -r "$pgac_candidate/html/docbook.dsl" \
12032           && test -r "$pgac_candidate/print/docbook.dsl"
12033        then
12034          pgac_cv_path_stylesheets=$pgac_candidate
12035          break 3
12036        fi
12037      done
12038    done
12039  done
12040fi
12041fi
12042
12043DOCBOOKSTYLE=$pgac_cv_path_stylesheets
12044
12045if test -n "$DOCBOOKSTYLE"; then
12046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOKSTYLE" >&5
12047$as_echo "$DOCBOOKSTYLE" >&6; }
12048  CATALOG="-c ${DOCBOOKSTYLE}/catalog"
12049else
12050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051$as_echo "no" >&6; }
12052  CATALOG=
12053fi
12054
12055
12056if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
12057  COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
12058
12059else
12060  # Extract the first word of "collateindex.pl", so it can be a program name with args.
12061set dummy collateindex.pl; ac_word=$2
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12063$as_echo_n "checking for $ac_word... " >&6; }
12064if ${ac_cv_path_COLLATEINDEX+:} false; then :
12065  $as_echo_n "(cached) " >&6
12066else
12067  case $COLLATEINDEX in
12068  [\\/]* | ?:[\\/]*)
12069  ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
12070  ;;
12071  *)
12072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073for as_dir in $PATH
12074do
12075  IFS=$as_save_IFS
12076  test -z "$as_dir" && as_dir=.
12077    for ac_exec_ext in '' $ac_executable_extensions; do
12078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12079    ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
12080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12081    break 2
12082  fi
12083done
12084  done
12085IFS=$as_save_IFS
12086
12087  ;;
12088esac
12089fi
12090COLLATEINDEX=$ac_cv_path_COLLATEINDEX
12091if test -n "$COLLATEINDEX"; then
12092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COLLATEINDEX" >&5
12093$as_echo "$COLLATEINDEX" >&6; }
12094else
12095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096$as_echo "no" >&6; }
12097fi
12098
12099
12100fi
12101for ac_prog in xsltproc
12102do
12103  # Extract the first word of "$ac_prog", so it can be a program name with args.
12104set dummy $ac_prog; ac_word=$2
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12106$as_echo_n "checking for $ac_word... " >&6; }
12107if ${ac_cv_prog_XSLTPROC+:} false; then :
12108  $as_echo_n "(cached) " >&6
12109else
12110  if test -n "$XSLTPROC"; then
12111  ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
12112else
12113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114for as_dir in $PATH
12115do
12116  IFS=$as_save_IFS
12117  test -z "$as_dir" && as_dir=.
12118    for ac_exec_ext in '' $ac_executable_extensions; do
12119  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12120    ac_cv_prog_XSLTPROC="$ac_prog"
12121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12122    break 2
12123  fi
12124done
12125  done
12126IFS=$as_save_IFS
12127
12128fi
12129fi
12130XSLTPROC=$ac_cv_prog_XSLTPROC
12131if test -n "$XSLTPROC"; then
12132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12133$as_echo "$XSLTPROC" >&6; }
12134else
12135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136$as_echo "no" >&6; }
12137fi
12138
12139
12140  test -n "$XSLTPROC" && break
12141done
12142
12143for ac_prog in xmllint
12144do
12145  # Extract the first word of "$ac_prog", so it can be a program name with args.
12146set dummy $ac_prog; ac_word=$2
12147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148$as_echo_n "checking for $ac_word... " >&6; }
12149if ${ac_cv_prog_XMLLINT+:} false; then :
12150  $as_echo_n "(cached) " >&6
12151else
12152  if test -n "$XMLLINT"; then
12153  ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
12154else
12155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156for as_dir in $PATH
12157do
12158  IFS=$as_save_IFS
12159  test -z "$as_dir" && as_dir=.
12160    for ac_exec_ext in '' $ac_executable_extensions; do
12161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12162    ac_cv_prog_XMLLINT="$ac_prog"
12163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164    break 2
12165  fi
12166done
12167  done
12168IFS=$as_save_IFS
12169
12170fi
12171fi
12172XMLLINT=$ac_cv_prog_XMLLINT
12173if test -n "$XMLLINT"; then
12174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
12175$as_echo "$XMLLINT" >&6; }
12176else
12177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178$as_echo "no" >&6; }
12179fi
12180
12181
12182  test -n "$XMLLINT" && break
12183done
12184
12185for ac_prog in osx sgml2xml sx
12186do
12187  # Extract the first word of "$ac_prog", so it can be a program name with args.
12188set dummy $ac_prog; ac_word=$2
12189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190$as_echo_n "checking for $ac_word... " >&6; }
12191if ${ac_cv_prog_OSX+:} false; then :
12192  $as_echo_n "(cached) " >&6
12193else
12194  if test -n "$OSX"; then
12195  ac_cv_prog_OSX="$OSX" # Let the user override the test.
12196else
12197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198for as_dir in $PATH
12199do
12200  IFS=$as_save_IFS
12201  test -z "$as_dir" && as_dir=.
12202    for ac_exec_ext in '' $ac_executable_extensions; do
12203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12204    ac_cv_prog_OSX="$ac_prog"
12205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12206    break 2
12207  fi
12208done
12209  done
12210IFS=$as_save_IFS
12211
12212fi
12213fi
12214OSX=$ac_cv_prog_OSX
12215if test -n "$OSX"; then
12216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5
12217$as_echo "$OSX" >&6; }
12218else
12219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220$as_echo "no" >&6; }
12221fi
12222
12223
12224  test -n "$OSX" && break
12225done
12226
12227for ac_prog in perl
12228do
12229  # Extract the first word of "$ac_prog", so it can be a program name with args.
12230set dummy $ac_prog; ac_word=$2
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232$as_echo_n "checking for $ac_word... " >&6; }
12233if ${ac_cv_prog_PERL+:} false; then :
12234  $as_echo_n "(cached) " >&6
12235else
12236  if test -n "$PERL"; then
12237  ac_cv_prog_PERL="$PERL" # Let the user override the test.
12238else
12239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240for as_dir in $PATH
12241do
12242  IFS=$as_save_IFS
12243  test -z "$as_dir" && as_dir=.
12244    for ac_exec_ext in '' $ac_executable_extensions; do
12245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12246    ac_cv_prog_PERL="$ac_prog"
12247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248    break 2
12249  fi
12250done
12251  done
12252IFS=$as_save_IFS
12253
12254fi
12255fi
12256PERL=$ac_cv_prog_PERL
12257if test -n "$PERL"; then
12258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12259$as_echo "$PERL" >&6; }
12260else
12261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262$as_echo "no" >&6; }
12263fi
12264
12265
12266  test -n "$PERL" && break
12267done
12268
12269for ac_prog in lynx
12270do
12271  # Extract the first word of "$ac_prog", so it can be a program name with args.
12272set dummy $ac_prog; ac_word=$2
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274$as_echo_n "checking for $ac_word... " >&6; }
12275if ${ac_cv_prog_LYNX+:} false; then :
12276  $as_echo_n "(cached) " >&6
12277else
12278  if test -n "$LYNX"; then
12279  ac_cv_prog_LYNX="$LYNX" # Let the user override the test.
12280else
12281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282for as_dir in $PATH
12283do
12284  IFS=$as_save_IFS
12285  test -z "$as_dir" && as_dir=.
12286    for ac_exec_ext in '' $ac_executable_extensions; do
12287  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12288    ac_cv_prog_LYNX="$ac_prog"
12289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290    break 2
12291  fi
12292done
12293  done
12294IFS=$as_save_IFS
12295
12296fi
12297fi
12298LYNX=$ac_cv_prog_LYNX
12299if test -n "$LYNX"; then
12300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LYNX" >&5
12301$as_echo "$LYNX" >&6; }
12302else
12303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304$as_echo "no" >&6; }
12305fi
12306
12307
12308  test -n "$LYNX" && break
12309done
12310
12311
12312
12313
12314 if test ! -z "$STYLE"; then
12315  STYLE_ENV_SET_TRUE=
12316  STYLE_ENV_SET_FALSE='#'
12317else
12318  STYLE_ENV_SET_TRUE='#'
12319  STYLE_ENV_SET_FALSE=
12320fi
12321
12322
12323OLD_CFLAGS=$CFLAGS
12324CFLAGS="$CFLAGS -Wall"
12325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wall option" >&5
12326$as_echo_n "checking for -Wall option... " >&6; }
12327if ${ac_cv_wall+:} false; then :
12328  $as_echo_n "(cached) " >&6
12329else
12330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331/* end confdefs.h.  */
12332
12333int
12334main ()
12335{
12336char a;
12337  ;
12338  return 0;
12339}
12340_ACEOF
12341if ac_fn_c_try_compile "$LINENO"; then :
12342  ac_cv_wall=yes
12343else
12344  ac_cv_wall=no
12345fi
12346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12347fi
12348
12349echo $ac_cv_wall
12350if test $ac_cv_wall = no; then
12351   CFLAGS=$OLD_CFLAGS
12352fi
12353
12354OLD_CFLAGS=$CFLAGS
12355CFLAGS="$CFLAGS -Wmissing-prototypes"
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-prototypes option" >&5
12357$as_echo_n "checking for -Wmissing-prototypes option... " >&6; }
12358if ${ac_cv_wmissing_prototypes+:} false; then :
12359  $as_echo_n "(cached) " >&6
12360else
12361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362/* end confdefs.h.  */
12363
12364int
12365main ()
12366{
12367char a;
12368  ;
12369  return 0;
12370}
12371_ACEOF
12372if ac_fn_c_try_compile "$LINENO"; then :
12373  ac_cv_wmissing_prototypes=yes
12374else
12375  ac_cv_wmissing_prototypes=no
12376fi
12377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378fi
12379
12380echo $ac_cv_wmissing_prototypes
12381if test $ac_cv_wmissing_prototypes = no; then
12382   CFLAGS=$OLD_CFLAGS
12383fi
12384
12385
12386OLD_CFLAGS=$CFLAGS
12387CFLAGS="$CFLAGS -Wmissing-declarations"
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-declarations option" >&5
12389$as_echo_n "checking for -Wmissing-declarations option... " >&6; }
12390if ${ac_cv_wmissing_declarations+:} false; then :
12391  $as_echo_n "(cached) " >&6
12392else
12393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394/* end confdefs.h.  */
12395
12396int
12397main ()
12398{
12399char a;
12400  ;
12401  return 0;
12402}
12403_ACEOF
12404if ac_fn_c_try_compile "$LINENO"; then :
12405  ac_cv_wmissing_declarations=yes
12406else
12407  ac_cv_wmissing_declarations=no
12408fi
12409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410fi
12411
12412echo $ac_cv_wmissing_declarations
12413if test $ac_cv_wmissing_declarations = no; then
12414   CFLAGS=$OLD_CFLAGS
12415fi
12416
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
12418$as_echo_n "checking for main in -lm... " >&6; }
12419if ${ac_cv_lib_m_main+:} false; then :
12420  $as_echo_n "(cached) " >&6
12421else
12422  ac_check_lib_save_LIBS=$LIBS
12423LIBS="-lm  $LIBS"
12424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425/* end confdefs.h.  */
12426
12427
12428int
12429main ()
12430{
12431return main ();
12432  ;
12433  return 0;
12434}
12435_ACEOF
12436if ac_fn_c_try_link "$LINENO"; then :
12437  ac_cv_lib_m_main=yes
12438else
12439  ac_cv_lib_m_main=no
12440fi
12441rm -f core conftest.err conftest.$ac_objext \
12442    conftest$ac_exeext conftest.$ac_ext
12443LIBS=$ac_check_lib_save_LIBS
12444fi
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
12446$as_echo "$ac_cv_lib_m_main" >&6; }
12447if test "x$ac_cv_lib_m_main" = xyes; then :
12448  cat >>confdefs.h <<_ACEOF
12449#define HAVE_LIBM 1
12450_ACEOF
12451
12452  LIBS="-lm $LIBS"
12453
12454fi
12455
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
12457$as_echo_n "checking for main in -lnsl... " >&6; }
12458if ${ac_cv_lib_nsl_main+:} false; then :
12459  $as_echo_n "(cached) " >&6
12460else
12461  ac_check_lib_save_LIBS=$LIBS
12462LIBS="-lnsl  $LIBS"
12463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464/* end confdefs.h.  */
12465
12466
12467int
12468main ()
12469{
12470return main ();
12471  ;
12472  return 0;
12473}
12474_ACEOF
12475if ac_fn_c_try_link "$LINENO"; then :
12476  ac_cv_lib_nsl_main=yes
12477else
12478  ac_cv_lib_nsl_main=no
12479fi
12480rm -f core conftest.err conftest.$ac_objext \
12481    conftest$ac_exeext conftest.$ac_ext
12482LIBS=$ac_check_lib_save_LIBS
12483fi
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
12485$as_echo "$ac_cv_lib_nsl_main" >&6; }
12486if test "x$ac_cv_lib_nsl_main" = xyes; then :
12487  cat >>confdefs.h <<_ACEOF
12488#define HAVE_LIBNSL 1
12489_ACEOF
12490
12491  LIBS="-lnsl $LIBS"
12492
12493fi
12494
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
12496$as_echo_n "checking for main in -lsocket... " >&6; }
12497if ${ac_cv_lib_socket_main+:} false; then :
12498  $as_echo_n "(cached) " >&6
12499else
12500  ac_check_lib_save_LIBS=$LIBS
12501LIBS="-lsocket  $LIBS"
12502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503/* end confdefs.h.  */
12504
12505
12506int
12507main ()
12508{
12509return main ();
12510  ;
12511  return 0;
12512}
12513_ACEOF
12514if ac_fn_c_try_link "$LINENO"; then :
12515  ac_cv_lib_socket_main=yes
12516else
12517  ac_cv_lib_socket_main=no
12518fi
12519rm -f core conftest.err conftest.$ac_objext \
12520    conftest$ac_exeext conftest.$ac_ext
12521LIBS=$ac_check_lib_save_LIBS
12522fi
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
12524$as_echo "$ac_cv_lib_socket_main" >&6; }
12525if test "x$ac_cv_lib_socket_main" = xyes; then :
12526  cat >>confdefs.h <<_ACEOF
12527#define HAVE_LIBSOCKET 1
12528_ACEOF
12529
12530  LIBS="-lsocket $LIBS"
12531
12532fi
12533
12534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lipc" >&5
12535$as_echo_n "checking for main in -lipc... " >&6; }
12536if ${ac_cv_lib_ipc_main+:} false; then :
12537  $as_echo_n "(cached) " >&6
12538else
12539  ac_check_lib_save_LIBS=$LIBS
12540LIBS="-lipc  $LIBS"
12541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542/* end confdefs.h.  */
12543
12544
12545int
12546main ()
12547{
12548return main ();
12549  ;
12550  return 0;
12551}
12552_ACEOF
12553if ac_fn_c_try_link "$LINENO"; then :
12554  ac_cv_lib_ipc_main=yes
12555else
12556  ac_cv_lib_ipc_main=no
12557fi
12558rm -f core conftest.err conftest.$ac_objext \
12559    conftest$ac_exeext conftest.$ac_ext
12560LIBS=$ac_check_lib_save_LIBS
12561fi
12562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_main" >&5
12563$as_echo "$ac_cv_lib_ipc_main" >&6; }
12564if test "x$ac_cv_lib_ipc_main" = xyes; then :
12565  cat >>confdefs.h <<_ACEOF
12566#define HAVE_LIBIPC 1
12567_ACEOF
12568
12569  LIBS="-lipc $LIBS"
12570
12571fi
12572
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lIPC" >&5
12574$as_echo_n "checking for main in -lIPC... " >&6; }
12575if ${ac_cv_lib_IPC_main+:} false; then :
12576  $as_echo_n "(cached) " >&6
12577else
12578  ac_check_lib_save_LIBS=$LIBS
12579LIBS="-lIPC  $LIBS"
12580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581/* end confdefs.h.  */
12582
12583
12584int
12585main ()
12586{
12587return main ();
12588  ;
12589  return 0;
12590}
12591_ACEOF
12592if ac_fn_c_try_link "$LINENO"; then :
12593  ac_cv_lib_IPC_main=yes
12594else
12595  ac_cv_lib_IPC_main=no
12596fi
12597rm -f core conftest.err conftest.$ac_objext \
12598    conftest$ac_exeext conftest.$ac_ext
12599LIBS=$ac_check_lib_save_LIBS
12600fi
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_IPC_main" >&5
12602$as_echo "$ac_cv_lib_IPC_main" >&6; }
12603if test "x$ac_cv_lib_IPC_main" = xyes; then :
12604  cat >>confdefs.h <<_ACEOF
12605#define HAVE_LIBIPC 1
12606_ACEOF
12607
12608  LIBS="-lIPC $LIBS"
12609
12610fi
12611
12612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llc" >&5
12613$as_echo_n "checking for main in -llc... " >&6; }
12614if ${ac_cv_lib_lc_main+:} false; then :
12615  $as_echo_n "(cached) " >&6
12616else
12617  ac_check_lib_save_LIBS=$LIBS
12618LIBS="-llc  $LIBS"
12619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620/* end confdefs.h.  */
12621
12622
12623int
12624main ()
12625{
12626return main ();
12627  ;
12628  return 0;
12629}
12630_ACEOF
12631if ac_fn_c_try_link "$LINENO"; then :
12632  ac_cv_lib_lc_main=yes
12633else
12634  ac_cv_lib_lc_main=no
12635fi
12636rm -f core conftest.err conftest.$ac_objext \
12637    conftest$ac_exeext conftest.$ac_ext
12638LIBS=$ac_check_lib_save_LIBS
12639fi
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lc_main" >&5
12641$as_echo "$ac_cv_lib_lc_main" >&6; }
12642if test "x$ac_cv_lib_lc_main" = xyes; then :
12643  cat >>confdefs.h <<_ACEOF
12644#define HAVE_LIBLC 1
12645_ACEOF
12646
12647  LIBS="-llc $LIBS"
12648
12649fi
12650
12651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lBSD" >&5
12652$as_echo_n "checking for main in -lBSD... " >&6; }
12653if ${ac_cv_lib_BSD_main+:} false; then :
12654  $as_echo_n "(cached) " >&6
12655else
12656  ac_check_lib_save_LIBS=$LIBS
12657LIBS="-lBSD  $LIBS"
12658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659/* end confdefs.h.  */
12660
12661
12662int
12663main ()
12664{
12665return main ();
12666  ;
12667  return 0;
12668}
12669_ACEOF
12670if ac_fn_c_try_link "$LINENO"; then :
12671  ac_cv_lib_BSD_main=yes
12672else
12673  ac_cv_lib_BSD_main=no
12674fi
12675rm -f core conftest.err conftest.$ac_objext \
12676    conftest$ac_exeext conftest.$ac_ext
12677LIBS=$ac_check_lib_save_LIBS
12678fi
12679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_BSD_main" >&5
12680$as_echo "$ac_cv_lib_BSD_main" >&6; }
12681if test "x$ac_cv_lib_BSD_main" = xyes; then :
12682  cat >>confdefs.h <<_ACEOF
12683#define HAVE_LIBBSD 1
12684_ACEOF
12685
12686  LIBS="-lBSD $LIBS"
12687
12688fi
12689
12690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
12691$as_echo_n "checking for main in -lgen... " >&6; }
12692if ${ac_cv_lib_gen_main+:} false; then :
12693  $as_echo_n "(cached) " >&6
12694else
12695  ac_check_lib_save_LIBS=$LIBS
12696LIBS="-lgen  $LIBS"
12697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698/* end confdefs.h.  */
12699
12700
12701int
12702main ()
12703{
12704return main ();
12705  ;
12706  return 0;
12707}
12708_ACEOF
12709if ac_fn_c_try_link "$LINENO"; then :
12710  ac_cv_lib_gen_main=yes
12711else
12712  ac_cv_lib_gen_main=no
12713fi
12714rm -f core conftest.err conftest.$ac_objext \
12715    conftest$ac_exeext conftest.$ac_ext
12716LIBS=$ac_check_lib_save_LIBS
12717fi
12718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
12719$as_echo "$ac_cv_lib_gen_main" >&6; }
12720if test "x$ac_cv_lib_gen_main" = xyes; then :
12721  cat >>confdefs.h <<_ACEOF
12722#define HAVE_LIBGEN 1
12723_ACEOF
12724
12725  LIBS="-lgen $LIBS"
12726
12727fi
12728
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lPW" >&5
12730$as_echo_n "checking for main in -lPW... " >&6; }
12731if ${ac_cv_lib_PW_main+:} false; then :
12732  $as_echo_n "(cached) " >&6
12733else
12734  ac_check_lib_save_LIBS=$LIBS
12735LIBS="-lPW  $LIBS"
12736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737/* end confdefs.h.  */
12738
12739
12740int
12741main ()
12742{
12743return main ();
12744  ;
12745  return 0;
12746}
12747_ACEOF
12748if ac_fn_c_try_link "$LINENO"; then :
12749  ac_cv_lib_PW_main=yes
12750else
12751  ac_cv_lib_PW_main=no
12752fi
12753rm -f core conftest.err conftest.$ac_objext \
12754    conftest$ac_exeext conftest.$ac_ext
12755LIBS=$ac_check_lib_save_LIBS
12756fi
12757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_PW_main" >&5
12758$as_echo "$ac_cv_lib_PW_main" >&6; }
12759if test "x$ac_cv_lib_PW_main" = xyes; then :
12760  cat >>confdefs.h <<_ACEOF
12761#define HAVE_LIBPW 1
12762_ACEOF
12763
12764  LIBS="-lPW $LIBS"
12765
12766fi
12767
12768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
12769$as_echo_n "checking for main in -lresolv... " >&6; }
12770if ${ac_cv_lib_resolv_main+:} false; then :
12771  $as_echo_n "(cached) " >&6
12772else
12773  ac_check_lib_save_LIBS=$LIBS
12774LIBS="-lresolv  $LIBS"
12775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776/* end confdefs.h.  */
12777
12778
12779int
12780main ()
12781{
12782return main ();
12783  ;
12784  return 0;
12785}
12786_ACEOF
12787if ac_fn_c_try_link "$LINENO"; then :
12788  ac_cv_lib_resolv_main=yes
12789else
12790  ac_cv_lib_resolv_main=no
12791fi
12792rm -f core conftest.err conftest.$ac_objext \
12793    conftest$ac_exeext conftest.$ac_ext
12794LIBS=$ac_check_lib_save_LIBS
12795fi
12796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
12797$as_echo "$ac_cv_lib_resolv_main" >&6; }
12798if test "x$ac_cv_lib_resolv_main" = xyes; then :
12799  cat >>confdefs.h <<_ACEOF
12800#define HAVE_LIBRESOLV 1
12801_ACEOF
12802
12803  LIBS="-lresolv $LIBS"
12804
12805fi
12806
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
12808$as_echo_n "checking for main in -lcrypt... " >&6; }
12809if ${ac_cv_lib_crypt_main+:} false; then :
12810  $as_echo_n "(cached) " >&6
12811else
12812  ac_check_lib_save_LIBS=$LIBS
12813LIBS="-lcrypt  $LIBS"
12814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815/* end confdefs.h.  */
12816
12817
12818int
12819main ()
12820{
12821return main ();
12822  ;
12823  return 0;
12824}
12825_ACEOF
12826if ac_fn_c_try_link "$LINENO"; then :
12827  ac_cv_lib_crypt_main=yes
12828else
12829  ac_cv_lib_crypt_main=no
12830fi
12831rm -f core conftest.err conftest.$ac_objext \
12832    conftest$ac_exeext conftest.$ac_ext
12833LIBS=$ac_check_lib_save_LIBS
12834fi
12835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
12836$as_echo "$ac_cv_lib_crypt_main" >&6; }
12837if test "x$ac_cv_lib_crypt_main" = xyes; then :
12838  cat >>confdefs.h <<_ACEOF
12839#define HAVE_LIBCRYPT 1
12840_ACEOF
12841
12842  LIBS="-lcrypt $LIBS"
12843
12844fi
12845
12846
12847for ac_func in strlcat, strlcpy
12848do :
12849  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12850ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12851if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12852  cat >>confdefs.h <<_ACEOF
12853#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12854_ACEOF
12855
12856fi
12857done
12858
12859
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12861$as_echo_n "checking for ANSI C header files... " >&6; }
12862if ${ac_cv_header_stdc+:} false; then :
12863  $as_echo_n "(cached) " >&6
12864else
12865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866/* end confdefs.h.  */
12867#include <stdlib.h>
12868#include <stdarg.h>
12869#include <string.h>
12870#include <float.h>
12871
12872int
12873main ()
12874{
12875
12876  ;
12877  return 0;
12878}
12879_ACEOF
12880if ac_fn_c_try_compile "$LINENO"; then :
12881  ac_cv_header_stdc=yes
12882else
12883  ac_cv_header_stdc=no
12884fi
12885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886
12887if test $ac_cv_header_stdc = yes; then
12888  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890/* end confdefs.h.  */
12891#include <string.h>
12892
12893_ACEOF
12894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12895  $EGREP "memchr" >/dev/null 2>&1; then :
12896
12897else
12898  ac_cv_header_stdc=no
12899fi
12900rm -f conftest*
12901
12902fi
12903
12904if test $ac_cv_header_stdc = yes; then
12905  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907/* end confdefs.h.  */
12908#include <stdlib.h>
12909
12910_ACEOF
12911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12912  $EGREP "free" >/dev/null 2>&1; then :
12913
12914else
12915  ac_cv_header_stdc=no
12916fi
12917rm -f conftest*
12918
12919fi
12920
12921if test $ac_cv_header_stdc = yes; then
12922  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12923  if test "$cross_compiling" = yes; then :
12924  :
12925else
12926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927/* end confdefs.h.  */
12928#include <ctype.h>
12929#include <stdlib.h>
12930#if ((' ' & 0x0FF) == 0x020)
12931# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12932# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12933#else
12934# define ISLOWER(c) \
12935		   (('a' <= (c) && (c) <= 'i') \
12936		     || ('j' <= (c) && (c) <= 'r') \
12937		     || ('s' <= (c) && (c) <= 'z'))
12938# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12939#endif
12940
12941#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12942int
12943main ()
12944{
12945  int i;
12946  for (i = 0; i < 256; i++)
12947    if (XOR (islower (i), ISLOWER (i))
12948	|| toupper (i) != TOUPPER (i))
12949      return 2;
12950  return 0;
12951}
12952_ACEOF
12953if ac_fn_c_try_run "$LINENO"; then :
12954
12955else
12956  ac_cv_header_stdc=no
12957fi
12958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12959  conftest.$ac_objext conftest.beam conftest.$ac_ext
12960fi
12961
12962fi
12963fi
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12965$as_echo "$ac_cv_header_stdc" >&6; }
12966if test $ac_cv_header_stdc = yes; then
12967
12968$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12969
12970fi
12971
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12973$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12974if ${ac_cv_header_sys_wait_h+:} false; then :
12975  $as_echo_n "(cached) " >&6
12976else
12977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978/* end confdefs.h.  */
12979#include <sys/types.h>
12980#include <sys/wait.h>
12981#ifndef WEXITSTATUS
12982# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12983#endif
12984#ifndef WIFEXITED
12985# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12986#endif
12987
12988int
12989main ()
12990{
12991  int s;
12992  wait (&s);
12993  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12994  ;
12995  return 0;
12996}
12997_ACEOF
12998if ac_fn_c_try_compile "$LINENO"; then :
12999  ac_cv_header_sys_wait_h=yes
13000else
13001  ac_cv_header_sys_wait_h=no
13002fi
13003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13004fi
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13006$as_echo "$ac_cv_header_sys_wait_h" >&6; }
13007if test $ac_cv_header_sys_wait_h = yes; then
13008
13009$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13010
13011fi
13012
13013for 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
13014do :
13015  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13016ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13017if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13018  cat >>confdefs.h <<_ACEOF
13019#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13020_ACEOF
13021
13022fi
13023
13024done
13025
13026ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
13027if test "x$ac_cv_header_termios_h" = xyes; then :
13028
13029$as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
13030
13031fi
13032
13033
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13035$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13036if ${ac_cv_c_const+:} false; then :
13037  $as_echo_n "(cached) " >&6
13038else
13039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040/* end confdefs.h.  */
13041
13042int
13043main ()
13044{
13045
13046#ifndef __cplusplus
13047  /* Ultrix mips cc rejects this sort of thing.  */
13048  typedef int charset[2];
13049  const charset cs = { 0, 0 };
13050  /* SunOS 4.1.1 cc rejects this.  */
13051  char const *const *pcpcc;
13052  char **ppc;
13053  /* NEC SVR4.0.2 mips cc rejects this.  */
13054  struct point {int x, y;};
13055  static struct point const zero = {0,0};
13056  /* AIX XL C 1.02.0.0 rejects this.
13057     It does not let you subtract one const X* pointer from another in
13058     an arm of an if-expression whose if-part is not a constant
13059     expression */
13060  const char *g = "string";
13061  pcpcc = &g + (g ? g-g : 0);
13062  /* HPUX 7.0 cc rejects these. */
13063  ++pcpcc;
13064  ppc = (char**) pcpcc;
13065  pcpcc = (char const *const *) ppc;
13066  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13067    char tx;
13068    char *t = &tx;
13069    char const *s = 0 ? (char *) 0 : (char const *) 0;
13070
13071    *t++ = 0;
13072    if (s) return 0;
13073  }
13074  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13075    int x[] = {25, 17};
13076    const int *foo = &x[0];
13077    ++foo;
13078  }
13079  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13080    typedef const int *iptr;
13081    iptr p = 0;
13082    ++p;
13083  }
13084  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13085       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13086    struct s { int j; const int *ap[3]; } bx;
13087    struct s *b = &bx; b->j = 5;
13088  }
13089  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13090    const int foo = 10;
13091    if (!foo) return 0;
13092  }
13093  return !cs[0] && !zero.x;
13094#endif
13095
13096  ;
13097  return 0;
13098}
13099_ACEOF
13100if ac_fn_c_try_compile "$LINENO"; then :
13101  ac_cv_c_const=yes
13102else
13103  ac_cv_c_const=no
13104fi
13105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13106fi
13107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13108$as_echo "$ac_cv_c_const" >&6; }
13109if test $ac_cv_c_const = no; then
13110
13111$as_echo "#define const /**/" >>confdefs.h
13112
13113fi
13114
13115ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13116if test "x$ac_cv_type_pid_t" = xyes; then :
13117
13118else
13119
13120cat >>confdefs.h <<_ACEOF
13121#define pid_t int
13122_ACEOF
13123
13124fi
13125
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13127$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13128if ${ac_cv_header_time+:} false; then :
13129  $as_echo_n "(cached) " >&6
13130else
13131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132/* end confdefs.h.  */
13133#include <sys/types.h>
13134#include <sys/time.h>
13135#include <time.h>
13136
13137int
13138main ()
13139{
13140if ((struct tm *) 0)
13141return 0;
13142  ;
13143  return 0;
13144}
13145_ACEOF
13146if ac_fn_c_try_compile "$LINENO"; then :
13147  ac_cv_header_time=yes
13148else
13149  ac_cv_header_time=no
13150fi
13151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152fi
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13154$as_echo "$ac_cv_header_time" >&6; }
13155if test $ac_cv_header_time = yes; then
13156
13157$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13158
13159fi
13160
13161
13162
13163# Macros to detect C compiler features
13164# config/c-compiler.m4
13165
13166
13167# PGAC_C_SIGNED
13168# -------------
13169# Check if the C compiler understands signed types.
13170# PGAC_C_SIGNED
13171
13172
13173
13174# PGAC_C_PRINTF_ARCHETYPE
13175# -----------------------
13176# Select the format archetype to be used by gcc to check printf-type functions.
13177# We prefer "gnu_printf", as that most closely matches the features supported
13178# by src/port/snprintf.c (particularly the %m conversion spec).  However,
13179# on some NetBSD versions, that doesn't work while "__syslog__" does.
13180# If all else fails, use "printf".
13181# PGAC_PRINTF_ARCHETYPE
13182
13183# Subroutine: test $pgac_cv_printf_archetype, set $ac_archetype_ok to yes or no
13184# PGAC_TEST_PRINTF_ARCHETYPE
13185
13186
13187# PGAC_TYPE_64BIT_INT(TYPE)
13188# -------------------------
13189# Check if TYPE is a working 64 bit integer type. Set HAVE_TYPE_64 to
13190# yes or no respectively, and define HAVE_TYPE_64 if yes.
13191# PGAC_TYPE_64BIT_INT
13192
13193
13194# PGAC_TYPE_128BIT_INT
13195# ---------------------
13196# Check if __int128 is a working 128 bit integer type, and if so
13197# define PG_INT128_TYPE to that typename, and define ALIGNOF_PG_INT128_TYPE
13198# as its alignment requirement.
13199#
13200# This currently only detects a GCC/clang extension, but support for other
13201# environments may be added in the future.
13202#
13203# For the moment we only test for support for 128bit math; support for
13204# 128bit literals and snprintf is not required.
13205# PGAC_TYPE_128BIT_INT
13206
13207
13208# PGAC_C_FUNCNAME_SUPPORT
13209# -----------------------
13210# Check if the C compiler understands __func__ (C99) or __FUNCTION__ (gcc).
13211# Define HAVE_FUNCNAME__FUNC or HAVE_FUNCNAME__FUNCTION accordingly.
13212# PGAC_C_FUNCNAME_SUPPORT
13213
13214
13215
13216# PGAC_C_STATIC_ASSERT
13217# --------------------
13218# Check if the C compiler understands _Static_assert(),
13219# and define HAVE__STATIC_ASSERT if so.
13220#
13221# We actually check the syntax ({ _Static_assert(...) }), because we need
13222# gcc-style compound expressions to be able to wrap the thing into macros.
13223# PGAC_C_STATIC_ASSERT
13224
13225
13226
13227# PGAC_C_TYPEOF
13228# -------------
13229# Check if the C compiler understands typeof or a variant.  Define
13230# HAVE_TYPEOF if so, and define 'typeof' to the actual key word.
13231#
13232# PGAC_C_TYPEOF
13233
13234
13235
13236# PGAC_C_TYPES_COMPATIBLE
13237# -----------------------
13238# Check if the C compiler understands __builtin_types_compatible_p,
13239# and define HAVE__BUILTIN_TYPES_COMPATIBLE_P if so.
13240#
13241# We check usage with __typeof__, though it's unlikely any compiler would
13242# have the former and not the latter.
13243# PGAC_C_TYPES_COMPATIBLE
13244
13245
13246# PGAC_C_BUILTIN_CONSTANT_P
13247# -------------------------
13248# Check if the C compiler understands __builtin_constant_p(),
13249# and define HAVE__BUILTIN_CONSTANT_P if so.
13250# We need __builtin_constant_p("string literal") to be true, but some older
13251# compilers don't think that, so test for that case explicitly.
13252# PGAC_C_BUILTIN_CONSTANT_P
13253
13254
13255
13256# PGAC_C_BUILTIN_OP_OVERFLOW
13257# -------------------------
13258# Check if the C compiler understands __builtin_$op_overflow(),
13259# and define HAVE__BUILTIN_OP_OVERFLOW if so.
13260#
13261# Check for the most complicated case, 64 bit multiplication, as a
13262# proxy for all of the operations.  To detect the case where the compiler
13263# knows the function but library support is missing, we must link not just
13264# compile, and store the results in global variables so the compiler doesn't
13265# optimize away the call.
13266# PGAC_C_BUILTIN_OP_OVERFLOW
13267
13268
13269
13270# PGAC_C_BUILTIN_UNREACHABLE
13271# --------------------------
13272# Check if the C compiler understands __builtin_unreachable(),
13273# and define HAVE__BUILTIN_UNREACHABLE if so.
13274#
13275# NB: Don't get the idea of putting a for(;;); or such before the
13276# __builtin_unreachable() call.  Some compilers would remove it before linking
13277# and only a warning instead of an error would be produced.
13278# PGAC_C_BUILTIN_UNREACHABLE
13279
13280
13281
13282# PGAC_C_COMPUTED_GOTO
13283# -----------------------
13284# Check if the C compiler knows computed gotos (gcc extension, also
13285# available in at least clang).  If so, define HAVE_COMPUTED_GOTO.
13286#
13287# Checking whether computed gotos are supported syntax-wise ought to
13288# be enough, as the syntax is otherwise illegal.
13289# PGAC_C_COMPUTED_GOTO
13290
13291
13292
13293# PGAC_CHECK_BUILTIN_FUNC
13294# -----------------------
13295# This is similar to AC_CHECK_FUNCS(), except that it will work for compiler
13296# builtin functions, as that usually fails to.
13297# The first argument is the function name, eg [__builtin_clzl], and the
13298# second is its argument list, eg [unsigned long x].  The current coding
13299# works only for a single argument named x; we might generalize that later.
13300# It's assumed that the function's result type is coercible to int.
13301# On success, we define "HAVEfuncname" (there's usually more than enough
13302# underscores already, so we don't add another one).
13303# PGAC_CHECK_BUILTIN_FUNC
13304
13305
13306
13307# PGAC_PROG_VARCC_VARFLAGS_OPT
13308# -----------------------
13309# Given a compiler, variable name and a string, check if the compiler
13310# supports the string as a command-line option. If it does, add the
13311# string to the given variable.
13312# PGAC_PROG_VARCC_VARFLAGS_OPT
13313
13314
13315
13316# PGAC_PROG_CC_CFLAGS_OPT
13317# -----------------------
13318# Given a string, check if the compiler supports the string as a
13319# command-line option. If it does, add the string to CFLAGS.
13320# PGAC_PROG_CC_CFLAGS_OPT
13321
13322
13323
13324# PGAC_PROG_CC_VAR_OPT
13325# -----------------------
13326# Given a variable name and a string, check if the compiler supports
13327# the string as a command-line option. If it does, add the string to
13328# the given variable.
13329# PGAC_PROG_CC_VAR_OPT
13330
13331
13332
13333# PGAC_PROG_VARCXX_VARFLAGS_OPT
13334# -----------------------
13335# Given a compiler, variable name and a string, check if the compiler
13336# supports the string as a command-line option. If it does, add the
13337# string to the given variable.
13338# PGAC_PROG_VARCXX_VARFLAGS_OPT
13339
13340
13341
13342# PGAC_PROG_CXX_CFLAGS_OPT
13343# -----------------------
13344# Given a string, check if the compiler supports the string as a
13345# command-line option. If it does, add the string to CXXFLAGS.
13346# PGAC_PROG_CXX_VAR_OPT
13347
13348
13349
13350# PGAC_PROG_CC_LDFLAGS_OPT
13351# ------------------------
13352# Given a string, check if the compiler supports the string as a
13353# command-line option. If it does, add the string to LDFLAGS.
13354# For reasons you'd really rather not know about, this checks whether
13355# you can link to a particular function, not just whether you can link.
13356# In fact, we must actually check that the resulting program runs :-(
13357# PGAC_PROG_CC_LDFLAGS_OPT
13358
13359# PGAC_HAVE_GCC__SYNC_CHAR_TAS
13360# -------------------------
13361# Check if the C compiler understands __sync_lock_test_and_set(char),
13362# and define HAVE_GCC__SYNC_CHAR_TAS
13363#
13364# NB: There are platforms where test_and_set is available but compare_and_swap
13365# is not, so test this separately.
13366# NB: Some platforms only do 32bit tas, others only do 8bit tas. Test both.
13367# PGAC_HAVE_GCC__SYNC_CHAR_TAS
13368
13369# PGAC_HAVE_GCC__SYNC_INT32_TAS
13370# -------------------------
13371# Check if the C compiler understands __sync_lock_test_and_set(),
13372# and define HAVE_GCC__SYNC_INT32_TAS
13373# PGAC_HAVE_GCC__SYNC_INT32_TAS
13374
13375# PGAC_HAVE_GCC__SYNC_INT32_CAS
13376# -------------------------
13377# Check if the C compiler understands __sync_compare_and_swap() for 32bit
13378# types, and define HAVE_GCC__SYNC_INT32_CAS if so.
13379# PGAC_HAVE_GCC__SYNC_INT32_CAS
13380
13381# PGAC_HAVE_GCC__SYNC_INT64_CAS
13382# -------------------------
13383# Check if the C compiler understands __sync_compare_and_swap() for 64bit
13384# types, and define HAVE_GCC__SYNC_INT64_CAS if so.
13385# PGAC_HAVE_GCC__SYNC_INT64_CAS
13386
13387# PGAC_HAVE_GCC__ATOMIC_INT32_CAS
13388# -------------------------
13389# Check if the C compiler understands __atomic_compare_exchange_n() for 32bit
13390# types, and define HAVE_GCC__ATOMIC_INT32_CAS if so.
13391# PGAC_HAVE_GCC__ATOMIC_INT32_CAS
13392
13393# PGAC_HAVE_GCC__ATOMIC_INT64_CAS
13394# -------------------------
13395# Check if the C compiler understands __atomic_compare_exchange_n() for 64bit
13396# types, and define HAVE_GCC__ATOMIC_INT64_CAS if so.
13397# PGAC_HAVE_GCC__ATOMIC_INT64_CAS
13398
13399# PGAC_SSE42_CRC32_INTRINSICS
13400# -----------------------
13401# Check if the compiler supports the x86 CRC instructions added in SSE 4.2,
13402# using the _mm_crc32_u8 and _mm_crc32_u32 intrinsic functions. (We don't
13403# test the 8-byte variant, _mm_crc32_u64, but it is assumed to be present if
13404# the other ones are, on x86-64 platforms)
13405#
13406# An optional compiler flag can be passed as argument (e.g. -msse4.2). If the
13407# intrinsics are supported, sets pgac_sse42_crc32_intrinsics, and CFLAGS_SSE42.
13408# PGAC_SSE42_CRC32_INTRINSICS
13409
13410
13411# PGAC_ARMV8_CRC32C_INTRINSICS
13412# -----------------------
13413# Check if the compiler supports the CRC32C instructions using the __crc32cb,
13414# __crc32ch, __crc32cw, and __crc32cd intrinsic functions. These instructions
13415# were first introduced in ARMv8 in the optional CRC Extension, and became
13416# mandatory in ARMv8.1.
13417#
13418# An optional compiler flag can be passed as argument (e.g.
13419# -march=armv8-a+crc). If the intrinsics are supported, sets
13420# pgac_armv8_crc32c_intrinsics, and CFLAGS_ARMV8_CRC32C.
13421# PGAC_ARMV8_CRC32C_INTRINSICS
13422
13423# Macros that test various C library quirks
13424# $PostgreSQL: pgsql/config/c-library.m4,v 1.33 2008/08/21 13:53:28 petere Exp $
13425
13426
13427# PGAC_VAR_INT_TIMEZONE
13428# ---------------------
13429# Check if the global variable `timezone' exists. If so, define
13430# HAVE_INT_TIMEZONE.
13431# PGAC_VAR_INT_TIMEZONE
13432
13433
13434# PGAC_STRUCT_TIMEZONE
13435# ------------------
13436# Figure out how to get the current timezone.  If `struct tm' has a
13437# `tm_zone' member, define `HAVE_TM_ZONE'.  Also, if the
13438# external array `tzname' is found, define `HAVE_TZNAME'.
13439# This is the same as the standard macro AC_STRUCT_TIMEZONE, except that
13440# tzname[] is checked for regardless of whether we find tm_zone.
13441# PGAC_STRUCT_TIMEZONE
13442
13443
13444# PGAC_FUNC_GETTIMEOFDAY_1ARG
13445# ---------------------------
13446# Check if gettimeofday() has only one arguments. (Normal is two.)
13447# If so, define GETTIMEOFDAY_1ARG.
13448# PGAC_FUNC_GETTIMEOFDAY_1ARG
13449
13450
13451# PGAC_FUNC_GETPWUID_R_5ARG
13452# ---------------------------
13453# Check if getpwuid_r() takes a fifth argument (later POSIX standard, not draft version)
13454# If so, define GETPWUID_R_5ARG
13455# PGAC_FUNC_GETPWUID_R_5ARG
13456
13457
13458# PGAC_FUNC_STRERROR_R_INT
13459# ---------------------------
13460# Check if strerror_r() returns an int (SUSv3) rather than a char * (GNU libc)
13461# If so, define STRERROR_R_INT
13462# PGAC_FUNC_STRERROR_R_INT
13463
13464
13465# PGAC_UNION_SEMUN
13466# ----------------
13467# Check if `union semun' exists. Define HAVE_UNION_SEMUN if so.
13468# If it doesn't then one could define it as
13469# union semun { int val; struct semid_ds *buf; unsigned short *array; }
13470# PGAC_UNION_SEMUN
13471
13472
13473# PGAC_STRUCT_SOCKADDR_UN
13474# -----------------------
13475# If `struct sockaddr_un' exists, define HAVE_UNIX_SOCKETS.
13476# (Requires test for <sys/un.h>!)
13477# PGAC_STRUCT_SOCKADDR_UN
13478
13479
13480# PGAC_STRUCT_SOCKADDR_STORAGE
13481# ----------------------------
13482# If `struct sockaddr_storage' exists, define HAVE_STRUCT_SOCKADDR_STORAGE.
13483# If it is missing then one could define it.
13484# PGAC_STRUCT_SOCKADDR_STORAGE
13485
13486# PGAC_STRUCT_SOCKADDR_STORAGE_MEMBERS
13487# --------------------------------------
13488# Check the members of `struct sockaddr_storage'.  We need to know about
13489# ss_family and ss_len.  (Some platforms follow RFC 2553 and call them
13490# __ss_family and __ss_len.)  We also check struct sockaddr's sa_len;
13491# if we have to define our own `struct sockaddr_storage', this tells us
13492# whether we need to provide an ss_len field.
13493# PGAC_STRUCT_SOCKADDR_STORAGE_MEMBERS
13494
13495
13496# PGAC_STRUCT_ADDRINFO
13497# -----------------------
13498# If `struct addrinfo' exists, define HAVE_STRUCT_ADDRINFO.
13499# PGAC_STRUCT_ADDRINFO
13500
13501
13502# PGAC_FUNC_POSIX_SIGNALS
13503# -----------------------
13504# Check to see if the machine has the POSIX signal interface. Define
13505# HAVE_POSIX_SIGNALS if so. Also set the output variable HAVE_POSIX_SIGNALS
13506# to yes or no.
13507#
13508# Note that this test only compiles a test program, it doesn't check
13509# whether the routines actually work. If that becomes a problem, make
13510# a fancier check.
13511# PGAC_FUNC_POSIX_SIGNALS
13512
13513
13514# PGAC_FUNC_SNPRINTF_LONG_LONG_INT_FORMAT
13515# ---------------------------------------
13516# Determine which format snprintf uses for long long int.  We handle
13517# %lld, %qd, %I64d.  The result is in shell variable
13518# LONG_LONG_INT_FORMAT.
13519#
13520# MinGW uses '%I64d', though gcc throws an warning with -Wall,
13521# while '%lld' doesn't generate a warning, but doesn't work.
13522#
13523# PGAC_FUNC_SNPRINTF_LONG_LONG_INT_FORMAT
13524
13525
13526# PGAC_FUNC_PRINTF_ARG_CONTROL
13527# ---------------------------------------
13528# Determine if printf supports %1$ argument selection, e.g. %5$ selects
13529# the fifth argument after the printf print string.
13530# This is not in the C99 standard, but in the Single Unix Specification (SUS).
13531# It is used in our language translation strings.
13532#
13533# PGAC_FUNC_PRINTF_ARG_CONTROL
13534
13535
13536# backport from Autoconf 2.61a
13537# http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=f0c325537a22105536ac8c4e88656e50f9946486
13538
13539# AC_FUNC_FSEEKO
13540# --------------
13541
13542
13543# AC_FUNC_FSEEKO
13544
13545# $PostgreSQL: pgsql/config/general.m4,v 1.10 2008/10/29 09:27:24 petere Exp $
13546
13547# This file defines new macros to process configure command line
13548# arguments, to replace the brain-dead AC_ARG_WITH and AC_ARG_ENABLE.
13549# The flaw in these is particularly that they only differentiate
13550# between "given" and "not given" and do not provide enough help to
13551# process arguments that only accept "yes/no", that require an
13552# argument (other than "yes/no"), etc.
13553#
13554# The point of this implementation is to reduce code size and
13555# redundancy in configure.in and to improve robustness and consistency
13556# in the option evaluation code.
13557
13558
13559# Convert type and name to shell variable name (e.g., "enable_long_strings")
13560
13561
13562
13563# PGAC_ARG(TYPE, NAME, HELP-STRING-LHS-EXTRA, HELP-STRING-RHS,
13564#          [ACTION-IF-YES], [ACTION-IF-NO], [ACTION-IF-ARG],
13565#          [ACTION-IF-OMITTED])
13566# ------------------------------------------------------------
13567# This is the base layer. TYPE is either "with" or "enable", depending
13568# on what you like.  NAME is the rest of the option name.
13569# HELP-STRING-LHS-EXTRA is a string to append to the option name on
13570# the left-hand side of the help output, e.g., an argument name.  If
13571# set to "-", append nothing, but let the option appear in the
13572# negative form (disable/without).  HELP-STRING-RHS is the option
13573# description, for the right-hand side of the help output.
13574# ACTION-IF-YES is executed if the option is given without an argument
13575# (or "yes", which is the same); similar for ACTION-IF-NO.
13576
13577# PGAC_ARG
13578
13579# PGAC_ARG_CHECK()
13580# ----------------
13581# Checks if the user passed any --with/without/enable/disable
13582# arguments that were not defined. Just prints out a warning message,
13583# so this should be called near the end, so the user will see it.
13584
13585# PGAC_ARG_CHECK
13586
13587# PGAC_ARG_BOOL(TYPE, NAME, DEFAULT, HELP-STRING-RHS,
13588#               [ACTION-IF-YES], [ACTION-IF-NO])
13589# ---------------------------------------------------
13590# Accept a boolean option, that is, one that only takes yes or no.
13591# ("no" is equivalent to "disable" or "without"). DEFAULT is what
13592# should be done if the option is omitted; it should be "yes" or "no".
13593# (Consequently, one of ACTION-IF-YES and ACTION-IF-NO will always
13594# execute.)
13595
13596# PGAC_ARG_BOOL
13597
13598
13599# PGAC_ARG_REQ(TYPE, NAME, HELP-ARGNAME, HELP-STRING-RHS,
13600#              [ACTION-IF-GIVEN], [ACTION-IF-NOT-GIVEN])
13601# -------------------------------------------------------
13602# This option will require an argument; "yes" or "no" will not be
13603# accepted.  HELP-ARGNAME is a name for the argument for the help output.
13604
13605# PGAC_ARG_REQ
13606
13607
13608# PGAC_ARG_OPTARG(TYPE, NAME, HELP-ARGNAME, HELP-STRING-RHS,
13609#                 [DEFAULT-ACTION], [ARG-ACTION],
13610#                 [ACTION-ENABLED], [ACTION-DISABLED])
13611# ----------------------------------------------------------
13612# This will create an option that behaves as follows: If omitted, or
13613# called with "no", then set the enable_variable to "no" and do
13614# nothing else. If called with "yes", then execute DEFAULT-ACTION. If
13615# called with argument, set enable_variable to "yes" and execute
13616# ARG-ACTION. Additionally, execute ACTION-ENABLED if we ended up with
13617# "yes" either way, else ACTION-DISABLED.
13618#
13619# The intent is to allow enabling a feature, and optionally pass an
13620# additional piece of information.
13621
13622# PGAC_ARG_OPTARG
13623
13624
13625pgac_need_repl_snprintf=no
13626for ac_func in snprintf
13627do :
13628  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13629if test "x$ac_cv_func_snprintf" = xyes; then :
13630  cat >>confdefs.h <<_ACEOF
13631#define HAVE_SNPRINTF 1
13632_ACEOF
13633
13634else
13635  pgac_need_repl_snprintf=yes
13636fi
13637done
13638
13639for ac_func in vsnprintf
13640do :
13641  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
13642if test "x$ac_cv_func_vsnprintf" = xyes; then :
13643  cat >>confdefs.h <<_ACEOF
13644#define HAVE_VSNPRINTF 1
13645_ACEOF
13646
13647else
13648  pgac_need_repl_snprintf=yes
13649fi
13650done
13651
13652
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
13654$as_echo_n "checking whether long int is 64 bits... " >&6; }
13655if ${pgac_cv_type_long_int_64+:} false; then :
13656  $as_echo_n "(cached) " >&6
13657else
13658  if test "$cross_compiling" = yes; then :
13659  # If cross-compiling, check the size reported by the compiler and
13660# trust that the arithmetic works.
13661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662/* end confdefs.h.  */
13663
13664int
13665main ()
13666{
13667static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13668test_array [0] = 0;
13669return test_array [0];
13670
13671  ;
13672  return 0;
13673}
13674_ACEOF
13675if ac_fn_c_try_compile "$LINENO"; then :
13676  pgac_cv_type_long_int_64=yes
13677else
13678  pgac_cv_type_long_int_64=no
13679fi
13680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681else
13682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683/* end confdefs.h.  */
13684typedef long int ac_int64;
13685
13686/*
13687 * These are globals to discourage the compiler from folding all the
13688 * arithmetic tests down to compile-time constants.
13689 */
13690ac_int64 a = 20000001;
13691ac_int64 b = 40000005;
13692
13693int does_int64_work()
13694{
13695  ac_int64 c,d;
13696
13697  if (sizeof(ac_int64) != 8)
13698    return 0;			/* definitely not the right size */
13699
13700  /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13701  c = a * b;
13702  d = (c + b) / b;
13703  if (d != a+1)
13704    return 0;
13705  return 1;
13706}
13707
13708int
13709main() {
13710  return (! does_int64_work());
13711}
13712_ACEOF
13713if ac_fn_c_try_run "$LINENO"; then :
13714  pgac_cv_type_long_int_64=yes
13715else
13716  pgac_cv_type_long_int_64=no
13717fi
13718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13719  conftest.$ac_objext conftest.beam conftest.$ac_ext
13720fi
13721
13722fi
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
13724$as_echo "$pgac_cv_type_long_int_64" >&6; }
13725
13726HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13727if test x"$pgac_cv_type_long_int_64" = xyes ; then
13728
13729$as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
13730
13731fi
13732
13733
13734if test x"$HAVE_LONG_INT_64" = x"no" ; then
13735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
13736$as_echo_n "checking whether long long int is 64 bits... " >&6; }
13737if ${pgac_cv_type_long_long_int_64+:} false; then :
13738  $as_echo_n "(cached) " >&6
13739else
13740  if test "$cross_compiling" = yes; then :
13741  # If cross-compiling, check the size reported by the compiler and
13742# trust that the arithmetic works.
13743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744/* end confdefs.h.  */
13745
13746int
13747main ()
13748{
13749static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13750test_array [0] = 0;
13751return test_array [0];
13752
13753  ;
13754  return 0;
13755}
13756_ACEOF
13757if ac_fn_c_try_compile "$LINENO"; then :
13758  pgac_cv_type_long_long_int_64=yes
13759else
13760  pgac_cv_type_long_long_int_64=no
13761fi
13762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763else
13764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765/* end confdefs.h.  */
13766typedef long long int ac_int64;
13767
13768/*
13769 * These are globals to discourage the compiler from folding all the
13770 * arithmetic tests down to compile-time constants.
13771 */
13772ac_int64 a = 20000001;
13773ac_int64 b = 40000005;
13774
13775int does_int64_work()
13776{
13777  ac_int64 c,d;
13778
13779  if (sizeof(ac_int64) != 8)
13780    return 0;			/* definitely not the right size */
13781
13782  /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13783  c = a * b;
13784  d = (c + b) / b;
13785  if (d != a+1)
13786    return 0;
13787  return 1;
13788}
13789
13790int
13791main() {
13792  return (! does_int64_work());
13793}
13794_ACEOF
13795if ac_fn_c_try_run "$LINENO"; then :
13796  pgac_cv_type_long_long_int_64=yes
13797else
13798  pgac_cv_type_long_long_int_64=no
13799fi
13800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13801  conftest.$ac_objext conftest.beam conftest.$ac_ext
13802fi
13803
13804fi
13805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
13806$as_echo "$pgac_cv_type_long_long_int_64" >&6; }
13807
13808HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13809if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13810
13811$as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
13812
13813fi
13814
13815fi
13816
13817
13818if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820/* end confdefs.h.  */
13821
13822#define INT64CONST(x)  x##LL
13823long long int foo = INT64CONST(0x1234567890123456);
13824
13825int
13826main ()
13827{
13828
13829  ;
13830  return 0;
13831}
13832_ACEOF
13833if ac_fn_c_try_compile "$LINENO"; then :
13834
13835$as_echo "#define HAVE_LL_CONSTANTS 1" >>confdefs.h
13836
13837fi
13838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13839fi
13840
13841# If we found "long int" is 64 bits, assume snprintf handles it.  If
13842# we found we need to use "long long int", better check.  We cope with
13843# snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
13844# work, fall back to our own snprintf emulation (which we know uses %lld).
13845
13846if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13847  if test $pgac_need_repl_snprintf = no; then
13848    { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf format for long long int" >&5
13849$as_echo_n "checking snprintf format for long long int... " >&6; }
13850if ${pgac_cv_snprintf_long_long_int_format+:} false; then :
13851  $as_echo_n "(cached) " >&6
13852else
13853  for pgac_format in '%lld' '%qd' '%I64d'; do
13854if test "$cross_compiling" = yes; then :
13855  pgac_cv_snprintf_long_long_int_format=cross; break
13856else
13857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858/* end confdefs.h.  */
13859#include <stdio.h>
13860typedef long long int ac_int64;
13861#define INT64_FORMAT "$pgac_format"
13862
13863ac_int64 a = 20000001;
13864ac_int64 b = 40000005;
13865
13866int does_int64_snprintf_work()
13867{
13868  ac_int64 c;
13869  char buf[100];
13870
13871  if (sizeof(ac_int64) != 8)
13872    return 0;			/* doesn't look like the right size */
13873
13874  c = a * b;
13875  snprintf(buf, 100, INT64_FORMAT, c);
13876  if (strcmp(buf, "800000140000005") != 0)
13877    return 0;			/* either multiply or snprintf is busted */
13878  return 1;
13879}
13880main() {
13881  exit(! does_int64_snprintf_work());
13882}
13883_ACEOF
13884if ac_fn_c_try_run "$LINENO"; then :
13885  pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13886fi
13887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13888  conftest.$ac_objext conftest.beam conftest.$ac_ext
13889fi
13890
13891done
13892fi
13893
13894LONG_LONG_INT_FORMAT=''
13895
13896case $pgac_cv_snprintf_long_long_int_format in
13897  cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5
13898$as_echo "cannot test (not on host machine)" >&6; };;
13899  ?*)    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_format" >&5
13900$as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
13901         LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13902  *)     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13903$as_echo "none" >&6; };;
13904esac
13905    if test "$LONG_LONG_INT_FORMAT" = ""; then
13906      # Force usage of our own snprintf, since system snprintf is broken
13907      pgac_need_repl_snprintf=yes
13908      LONG_LONG_INT_FORMAT='%lld'
13909    fi
13910  else
13911    # Here if we previously decided we needed to use our own snprintf
13912    LONG_LONG_INT_FORMAT='%lld'
13913  fi
13914  LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
13915  INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13916  UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
13917else
13918  # Here if we are not using 'long long int' at all
13919  INT64_FORMAT='"%ld"'
13920  UINT64_FORMAT='"%lu"'
13921fi
13922
13923# disable useless truncation warnings from gcc 8+
13924NOT_THE_CFLAGS=""
13925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
13926$as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
13927if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false; then :
13928  $as_echo_n "(cached) " >&6
13929else
13930  pgac_save_CFLAGS=$CFLAGS
13931pgac_save_CC=$CC
13932CC=${CC}
13933CFLAGS="${NOT_THE_CFLAGS} -Wformat-truncation"
13934ac_save_c_werror_flag=$ac_c_werror_flag
13935ac_c_werror_flag=yes
13936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937/* end confdefs.h.  */
13938
13939int
13940main ()
13941{
13942
13943  ;
13944  return 0;
13945}
13946_ACEOF
13947if ac_fn_c_try_compile "$LINENO"; then :
13948  pgac_cv_prog_CC_cflags__Wformat_truncation=yes
13949else
13950  pgac_cv_prog_CC_cflags__Wformat_truncation=no
13951fi
13952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953ac_c_werror_flag=$ac_save_c_werror_flag
13954CFLAGS="$pgac_save_CFLAGS"
13955CC="$pgac_save_CC"
13956fi
13957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5
13958$as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; }
13959if test x"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x"yes"; then
13960  NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wformat-truncation"
13961fi
13962
13963
13964if test -n "$NOT_THE_CFLAGS"; then
13965  CFLAGS="$CFLAGS -Wno-format-truncation"
13966fi
13967
13968
13969cat >>confdefs.h <<_ACEOF
13970#define PACKAGE "$PACKAGE"
13971_ACEOF
13972
13973
13974
13975cat >>confdefs.h <<_ACEOF
13976#define VERSION "$VERSION"
13977_ACEOF
13978
13979
13980
13981cat >>confdefs.h <<_ACEOF
13982#define INT64_FORMAT $INT64_FORMAT
13983_ACEOF
13984
13985
13986
13987cat >>confdefs.h <<_ACEOF
13988#define UINT64_FORMAT $UINT64_FORMAT
13989_ACEOF
13990
13991
13992# Now we have checked all the reasons to replace snprintf
13993if test $pgac_need_repl_snprintf = yes; then
13994
13995$as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h
13996
13997  case " $LIBOBJS " in
13998  *" snprintf.$ac_objext "* ) ;;
13999  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14000 ;;
14001esac
14002
14003fi
14004 if test $pgac_need_repl_snprintf = yes; then
14005  use_repl_snprintf_TRUE=
14006  use_repl_snprintf_FALSE='#'
14007else
14008  use_repl_snprintf_TRUE='#'
14009  use_repl_snprintf_FALSE=
14010fi
14011
14012# Need a #define for the size of Datum (unsigned long)
14013# The cast to long int works around a bug in the HP C Compiler
14014# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14015# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14016# This bug is HP SR number 8606223364.
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14018$as_echo_n "checking size of unsigned long... " >&6; }
14019if ${ac_cv_sizeof_unsigned_long+:} false; then :
14020  $as_echo_n "(cached) " >&6
14021else
14022  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
14023
14024else
14025  if test "$ac_cv_type_unsigned_long" = yes; then
14026     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14028as_fn_error 77 "cannot compute sizeof (unsigned long)
14029See \`config.log' for more details" "$LINENO" 5; }
14030   else
14031     ac_cv_sizeof_unsigned_long=0
14032   fi
14033fi
14034
14035fi
14036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14037$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14038
14039
14040
14041cat >>confdefs.h <<_ACEOF
14042#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14043_ACEOF
14044
14045
14046
14047# And check size of void *, size_t (enables tweaks for > 32bit address space)
14048# The cast to long int works around a bug in the HP C Compiler
14049# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14050# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14051# This bug is HP SR number 8606223364.
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14053$as_echo_n "checking size of void *... " >&6; }
14054if ${ac_cv_sizeof_void_p+:} false; then :
14055  $as_echo_n "(cached) " >&6
14056else
14057  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14058
14059else
14060  if test "$ac_cv_type_void_p" = yes; then
14061     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14063as_fn_error 77 "cannot compute sizeof (void *)
14064See \`config.log' for more details" "$LINENO" 5; }
14065   else
14066     ac_cv_sizeof_void_p=0
14067   fi
14068fi
14069
14070fi
14071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14072$as_echo "$ac_cv_sizeof_void_p" >&6; }
14073
14074
14075
14076cat >>confdefs.h <<_ACEOF
14077#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14078_ACEOF
14079
14080
14081# The cast to long int works around a bug in the HP C Compiler
14082# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14083# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14084# This bug is HP SR number 8606223364.
14085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14086$as_echo_n "checking size of size_t... " >&6; }
14087if ${ac_cv_sizeof_size_t+:} false; then :
14088  $as_echo_n "(cached) " >&6
14089else
14090  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14091
14092else
14093  if test "$ac_cv_type_size_t" = yes; then
14094     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14096as_fn_error 77 "cannot compute sizeof (size_t)
14097See \`config.log' for more details" "$LINENO" 5; }
14098   else
14099     ac_cv_sizeof_size_t=0
14100   fi
14101fi
14102
14103fi
14104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14105$as_echo "$ac_cv_sizeof_size_t" >&6; }
14106
14107
14108
14109cat >>confdefs.h <<_ACEOF
14110#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14111_ACEOF
14112
14113
14114
14115# Decide whether float4 is passed by value: user-selectable, enabled by default
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
14117$as_echo_n "checking whether to build with float4 passed by value... " >&6; }
14118
14119pgac_args="$pgac_args enable_float4_byval"
14120
14121# Check whether --enable-float4-byval was given.
14122if test "${enable_float4_byval+set}" = set; then :
14123  enableval=$enable_float4_byval;
14124  case $enableval in
14125    yes)
14126
14127$as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
14128
14129               float4passbyval=true
14130      ;;
14131    no)
14132      float4passbyval=false
14133      ;;
14134    *)
14135      as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
14136      ;;
14137  esac
14138
14139else
14140  enable_float4_byval=yes
14141
14142$as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
14143
14144               float4passbyval=true
14145fi
14146
14147
14148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
14149$as_echo "$enable_float4_byval" >&6; }
14150
14151cat >>confdefs.h <<_ACEOF
14152#define FLOAT4PASSBYVAL $float4passbyval
14153_ACEOF
14154
14155
14156# Decide whether float8 is passed by value.
14157# Note: this setting also controls int8 and related types such as timestamp.
14158# If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
14159# If not, trying to select it is an error.
14160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
14161$as_echo_n "checking whether to build with float8 passed by value... " >&6; }
14162if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
14163
14164pgac_args="$pgac_args enable_float8_byval"
14165
14166# Check whether --enable-float8-byval was given.
14167if test "${enable_float8_byval+set}" = set; then :
14168  enableval=$enable_float8_byval;
14169  case $enableval in
14170    yes)
14171      :
14172      ;;
14173    no)
14174      :
14175      ;;
14176    *)
14177      as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
14178      ;;
14179  esac
14180
14181else
14182  enable_float8_byval=yes
14183
14184fi
14185
14186
14187else
14188
14189pgac_args="$pgac_args enable_float8_byval"
14190
14191# Check whether --enable-float8-byval was given.
14192if test "${enable_float8_byval+set}" = set; then :
14193  enableval=$enable_float8_byval;
14194  case $enableval in
14195    yes)
14196      :
14197      ;;
14198    no)
14199      :
14200      ;;
14201    *)
14202      as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
14203      ;;
14204  esac
14205
14206else
14207  enable_float8_byval=no
14208
14209fi
14210
14211
14212  if test "$enable_float8_byval" = yes ; then
14213    as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
14214  fi
14215fi
14216if test "$enable_float8_byval" = yes ; then
14217
14218$as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
14219
14220  float8passbyval=true
14221else
14222  float8passbyval=false
14223fi
14224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
14225$as_echo "$enable_float8_byval" >&6; }
14226
14227cat >>confdefs.h <<_ACEOF
14228#define FLOAT8PASSBYVAL $float8passbyval
14229_ACEOF
14230
14231
14232
14233
14234
14235# $PostgreSQL: pgsql/config/ac_func_accept_argtypes.m4,v 1.6 2003/11/29 19:51:17 pgsql Exp $
14236# This comes from the official Autoconf macro archive at
14237# <http://research.cys.de/autoconf-archive/>
14238# (I removed the $ before the Id CVS keyword below.)
14239
14240
14241
14242# PostgreSQL local changes: In the original version ACCEPT_TYPE_ARG3
14243# is a pointer type. That's kind of useless because then you can't
14244# use the macro to define a corresponding variable. We also make the
14245# reasonable(?) assumption that you can use arg3 for getsocktype etc.
14246# as well (i.e., anywhere POSIX.2 has socklen_t).
14247#
14248# arg2 can also be `const' (e.g., RH 4.2). Change the order of tests
14249# for arg3 so that `int' is first, in case there is no prototype at all.
14250#
14251# Solaris 7 and 8 have arg3 as 'void *' (disguised as 'Psocklen_t'
14252# which is *not* 'socklen_t *').  If we detect that, then we assume
14253# 'int' as the result, because that ought to work best.
14254#
14255# On Win32, accept() returns 'unsigned int PASCAL'
14256
14257
14258
14259ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
14260#ifdef HAVE_SYS_SOCKET_H
14261#include <sys/socket.h>
14262#endif
14263
14264"
14265if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14266
14267cat >>confdefs.h <<_ACEOF
14268#define HAVE_STRUCT_SOCKADDR_STORAGE 1
14269_ACEOF
14270
14271
14272fi
14273
14274ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14275#ifdef HAVE_SYS_SOCKET_H
14276#include <sys/socket.h>
14277#endif
14278
14279"
14280if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14281
14282cat >>confdefs.h <<_ACEOF
14283#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14284_ACEOF
14285
14286
14287fi
14288ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14289#ifdef HAVE_SYS_SOCKET_H
14290#include <sys/socket.h>
14291#endif
14292
14293"
14294if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14295
14296cat >>confdefs.h <<_ACEOF
14297#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14298_ACEOF
14299
14300
14301fi
14302ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
14303#ifdef HAVE_SYS_SOCKET_H
14304#include <sys/socket.h>
14305#endif
14306
14307"
14308if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
14309
14310cat >>confdefs.h <<_ACEOF
14311#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14312_ACEOF
14313
14314
14315fi
14316ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
14317#ifdef HAVE_SYS_SOCKET_H
14318#include <sys/socket.h>
14319#endif
14320
14321"
14322if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
14323
14324cat >>confdefs.h <<_ACEOF
14325#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14326_ACEOF
14327
14328
14329fi
14330ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14331#ifdef HAVE_SYS_SOCKET_H
14332#include <sys/socket.h>
14333#endif
14334
14335"
14336if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14337
14338cat >>confdefs.h <<_ACEOF
14339#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14340_ACEOF
14341
14342
14343fi
14344
14345
14346ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
14347#include <sys/ipc.h>
14348#include <sys/sem.h>
14349"
14350if test "x$ac_cv_type_union_semun" = xyes; then :
14351
14352cat >>confdefs.h <<_ACEOF
14353#define HAVE_UNION_SEMUN 1
14354_ACEOF
14355
14356
14357fi
14358
14359
14360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14361$as_echo_n "checking return type of signal handlers... " >&6; }
14362if ${ac_cv_type_signal+:} false; then :
14363  $as_echo_n "(cached) " >&6
14364else
14365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366/* end confdefs.h.  */
14367#include <sys/types.h>
14368#include <signal.h>
14369
14370int
14371main ()
14372{
14373return *(signal (0, 0)) (0) == 1;
14374  ;
14375  return 0;
14376}
14377_ACEOF
14378if ac_fn_c_try_compile "$LINENO"; then :
14379  ac_cv_type_signal=int
14380else
14381  ac_cv_type_signal=void
14382fi
14383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14384fi
14385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14386$as_echo "$ac_cv_type_signal" >&6; }
14387
14388cat >>confdefs.h <<_ACEOF
14389#define RETSIGTYPE $ac_cv_type_signal
14390_ACEOF
14391
14392
14393for ac_func in vprintf
14394do :
14395  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14396if test "x$ac_cv_func_vprintf" = xyes; then :
14397  cat >>confdefs.h <<_ACEOF
14398#define HAVE_VPRINTF 1
14399_ACEOF
14400
14401ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14402if test "x$ac_cv_func__doprnt" = xyes; then :
14403
14404$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14405
14406fi
14407
14408fi
14409done
14410
14411
14412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
14413$as_echo_n "checking for wait3 that fills in rusage... " >&6; }
14414if ${ac_cv_func_wait3_rusage+:} false; then :
14415  $as_echo_n "(cached) " >&6
14416else
14417  if test "$cross_compiling" = yes; then :
14418  ac_cv_func_wait3_rusage=no
14419else
14420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421/* end confdefs.h.  */
14422$ac_includes_default
14423#include <sys/time.h>
14424#include <sys/resource.h>
14425#include <sys/wait.h>
14426/* HP-UX has wait3 but does not fill in rusage at all.  */
14427int
14428main ()
14429{
14430  struct rusage r;
14431  int i;
14432  /* Use a field that we can force nonzero --
14433     voluntary context switches.
14434     For systems like NeXT and OSF/1 that don't set it,
14435     also use the system CPU time.  And page faults (I/O) for Linux.  */
14436  r.ru_nvcsw = 0;
14437  r.ru_stime.tv_sec = 0;
14438  r.ru_stime.tv_usec = 0;
14439  r.ru_majflt = r.ru_minflt = 0;
14440  switch (fork ())
14441    {
14442    case 0: /* Child.  */
14443      sleep(1); /* Give up the CPU.  */
14444      _exit(0);
14445      break;
14446    case -1: /* What can we do?  */
14447      _exit(0);
14448      break;
14449    default: /* Parent.  */
14450      wait3(&i, 0, &r);
14451      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
14452      sleep(2);
14453      return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
14454	      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
14455    }
14456}
14457_ACEOF
14458if ac_fn_c_try_run "$LINENO"; then :
14459  ac_cv_func_wait3_rusage=yes
14460else
14461  ac_cv_func_wait3_rusage=no
14462fi
14463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14464  conftest.$ac_objext conftest.beam conftest.$ac_ext
14465fi
14466
14467fi
14468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
14469$as_echo "$ac_cv_func_wait3_rusage" >&6; }
14470if test $ac_cv_func_wait3_rusage = yes; then
14471
14472$as_echo "#define HAVE_WAIT3 1" >>confdefs.h
14473
14474fi
14475
14476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
14477$as_echo_n "checking types of arguments for accept()... " >&6; }
14478 if ${ac_cv_func_accept_return+:} false; then :
14479  $as_echo_n "(cached) " >&6
14480else
14481   if ${ac_cv_func_accept_arg1+:} false; then :
14482  $as_echo_n "(cached) " >&6
14483else
14484    if ${ac_cv_func_accept_arg2+:} false; then :
14485  $as_echo_n "(cached) " >&6
14486else
14487     if ${ac_cv_func_accept_arg3+:} false; then :
14488  $as_echo_n "(cached) " >&6
14489else
14490      for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
14491      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
14492       for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
14493        for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
14494         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495/* end confdefs.h.  */
14496#ifdef HAVE_SYS_TYPES_H
14497#include <sys/types.h>
14498#endif
14499#ifdef HAVE_SYS_SOCKET_H
14500#include <sys/socket.h>
14501#endif
14502extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
14503int
14504main ()
14505{
14506
14507  ;
14508  return 0;
14509}
14510_ACEOF
14511if ac_fn_c_try_compile "$LINENO"; then :
14512  ac_not_found=no; break 4
14513else
14514  ac_not_found=yes
14515fi
14516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517       done
14518      done
14519     done
14520    done
14521    if test "$ac_not_found" = yes; then
14522      as_fn_error $? "could not determine argument types" "$LINENO" 5
14523    fi
14524    if test "$ac_cv_func_accept_arg3" = "void"; then
14525      ac_cv_func_accept_arg3=int
14526    fi
14527
14528fi
14529
14530fi
14531
14532fi
14533
14534fi
14535 { $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
14536$as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
14537
14538cat >>confdefs.h <<_ACEOF
14539#define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
14540_ACEOF
14541
14542
14543cat >>confdefs.h <<_ACEOF
14544#define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
14545_ACEOF
14546
14547
14548cat >>confdefs.h <<_ACEOF
14549#define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
14550_ACEOF
14551
14552
14553cat >>confdefs.h <<_ACEOF
14554#define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
14555_ACEOF
14556
14557
14558for ac_func in setsid select socket sigprocmask strdup strerror strftime strtok asprintf vasprintf gai_strerror hstrerror pstat setproctitle syslog
14559do :
14560  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14561ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14562if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14563  cat >>confdefs.h <<_ACEOF
14564#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14565_ACEOF
14566
14567fi
14568done
14569
14570
14571for ac_prog in pg_config
14572do
14573  # Extract the first word of "$ac_prog", so it can be a program name with args.
14574set dummy $ac_prog; ac_word=$2
14575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14576$as_echo_n "checking for $ac_word... " >&6; }
14577if ${ac_cv_prog_PGCONFIG+:} false; then :
14578  $as_echo_n "(cached) " >&6
14579else
14580  if test -n "$PGCONFIG"; then
14581  ac_cv_prog_PGCONFIG="$PGCONFIG" # Let the user override the test.
14582else
14583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14584for as_dir in $PATH
14585do
14586  IFS=$as_save_IFS
14587  test -z "$as_dir" && as_dir=.
14588    for ac_exec_ext in '' $ac_executable_extensions; do
14589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14590    ac_cv_prog_PGCONFIG="$ac_prog"
14591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14592    break 2
14593  fi
14594done
14595  done
14596IFS=$as_save_IFS
14597
14598fi
14599fi
14600PGCONFIG=$ac_cv_prog_PGCONFIG
14601if test -n "$PGCONFIG"; then
14602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGCONFIG" >&5
14603$as_echo "$PGCONFIG" >&6; }
14604else
14605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14606$as_echo "no" >&6; }
14607fi
14608
14609
14610  test -n "$PGCONFIG" && break
14611done
14612
14613
14614if test -z $PGCONFIG
14615then
14616  PGSQL_INCLUDE_DIR=/usr/local/pgsql/include
14617  PGSQL_LIB_DIR=/usr/local/pgsql/lib
14618  PGSQL_BIN_DIR=/usr/local/pgsql/bin
14619else
14620  PGSQL_INCLUDE_DIR=`pg_config --includedir`
14621  PGSQL_LIB_DIR=`pg_config --libdir`
14622  PGSQL_BIN_DIR=`pg_config --bindir`
14623fi
14624
14625
14626# Check whether --with-pgsql was given.
14627if test "${with_pgsql+set}" = set; then :
14628  withval=$with_pgsql;
14629	case "$withval" in
14630	"" | y | ye | yes | n | no)
14631	    as_fn_error $? "*** You must supply an argument to the --with-pgsql option." "$LINENO" 5
14632	  ;;
14633	esac
14634	PGSQL_INCLUDE_DIR="$withval"/include
14635	PGSQL_LIB_DIR="$withval"/lib
14636	PGSQL_BIN_DIR="$withval"/bin
14637
14638fi
14639
14640
14641
14642# Check whether --with-pgsql-includedir was given.
14643if test "${with_pgsql_includedir+set}" = set; then :
14644  withval=$with_pgsql_includedir;
14645	case "$withval" in
14646	"" | y | ye | yes | n | no)
14647	    as_fn_error $? "*** You must supply an argument to the --with-pgsql-includedir option." "$LINENO" 5
14648	  ;;
14649	esac
14650	PGSQL_INCLUDE_DIR="$withval"
14651
14652fi
14653
14654
14655
14656# Check whether --with-pgsql-libdir was given.
14657if test "${with_pgsql_libdir+set}" = set; then :
14658  withval=$with_pgsql_libdir;
14659	case "$withval" in
14660	"" | y | ye | yes | n | no)
14661	    as_fn_error $? "*** You must supply an argument to the --with-pgsql-libdir option." "$LINENO" 5
14662	  ;;
14663	esac
14664	PGSQL_LIB_DIR="$withval"
14665
14666fi
14667
14668
14669
14670# Check whether --with-pgsql-bindir was given.
14671if test "${with_pgsql_bindir+set}" = set; then :
14672  withval=$with_pgsql_bindir;
14673	case "$withval" in
14674	"" | y | ye | yes | n | no)
14675	    as_fn_error $? "*** You must supply an argument to the --with-pgsql-bindir option." "$LINENO" 5
14676	  ;;
14677	esac
14678	PGSQL_BIN_DIR="$withval"
14679
14680fi
14681
14682
14683
14684# Check whether --with-openssl was given.
14685if test "${with_openssl+set}" = set; then :
14686  withval=$with_openssl;
14687else
14688  openssl=no
14689fi
14690
14691
14692if test "$with_openssl" = yes || test "$with_openssl" = auto; then
14693    for ac_header in openssl/ssl.h
14694do :
14695  ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
14696if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
14697  cat >>confdefs.h <<_ACEOF
14698#define HAVE_OPENSSL_SSL_H 1
14699_ACEOF
14700
14701$as_echo "#define USE_SSL 1" >>confdefs.h
14702
14703else
14704
14705            if test "$with_openssl" = yes; then
14706                as_fn_error $? "header file <openssl/ssl.h> is required for SSL" "$LINENO" 5
14707            else
14708                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: header file <openssl/ssl.h> is required for SSL" >&5
14709$as_echo "$as_me: WARNING: header file <openssl/ssl.h> is required for SSL" >&2;}
14710            fi
14711
14712fi
14713
14714done
14715
14716
14717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
14718$as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
14719if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
14720  $as_echo_n "(cached) " >&6
14721else
14722  ac_check_lib_save_LIBS=$LIBS
14723LIBS="-lcrypto  $LIBS"
14724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725/* end confdefs.h.  */
14726
14727/* Override any GCC internal prototype to avoid an error.
14728   Use char because int might match the return type of a GCC
14729   builtin and then its argument prototype would still apply.  */
14730#ifdef __cplusplus
14731extern "C"
14732#endif
14733char CRYPTO_new_ex_data ();
14734int
14735main ()
14736{
14737return CRYPTO_new_ex_data ();
14738  ;
14739  return 0;
14740}
14741_ACEOF
14742if ac_fn_c_try_link "$LINENO"; then :
14743  ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
14744else
14745  ac_cv_lib_crypto_CRYPTO_new_ex_data=no
14746fi
14747rm -f core conftest.err conftest.$ac_objext \
14748    conftest$ac_exeext conftest.$ac_ext
14749LIBS=$ac_check_lib_save_LIBS
14750fi
14751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
14752$as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
14753if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
14754  cat >>confdefs.h <<_ACEOF
14755#define HAVE_LIBCRYPTO 1
14756_ACEOF
14757
14758  LIBS="-lcrypto $LIBS"
14759
14760else
14761  as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
14762fi
14763
14764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
14765$as_echo_n "checking for SSL_new in -lssl... " >&6; }
14766if ${ac_cv_lib_ssl_SSL_new+:} false; then :
14767  $as_echo_n "(cached) " >&6
14768else
14769  ac_check_lib_save_LIBS=$LIBS
14770LIBS="-lssl  $LIBS"
14771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772/* end confdefs.h.  */
14773
14774/* Override any GCC internal prototype to avoid an error.
14775   Use char because int might match the return type of a GCC
14776   builtin and then its argument prototype would still apply.  */
14777#ifdef __cplusplus
14778extern "C"
14779#endif
14780char SSL_new ();
14781int
14782main ()
14783{
14784return SSL_new ();
14785  ;
14786  return 0;
14787}
14788_ACEOF
14789if ac_fn_c_try_link "$LINENO"; then :
14790  ac_cv_lib_ssl_SSL_new=yes
14791else
14792  ac_cv_lib_ssl_SSL_new=no
14793fi
14794rm -f core conftest.err conftest.$ac_objext \
14795    conftest$ac_exeext conftest.$ac_ext
14796LIBS=$ac_check_lib_save_LIBS
14797fi
14798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
14799$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
14800if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
14801  cat >>confdefs.h <<_ACEOF
14802#define HAVE_LIBSSL 1
14803_ACEOF
14804
14805  LIBS="-lssl $LIBS"
14806
14807else
14808  as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
14809fi
14810
14811fi
14812
14813
14814# Check whether --with-pam was given.
14815if test "${with_pam+set}" = set; then :
14816  withval=$with_pam;
14817$as_echo "#define USE_PAM 1" >>confdefs.h
14818
14819fi
14820
14821if test "$with_pam" = yes ; then
14822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
14823$as_echo_n "checking for pam_start in -lpam... " >&6; }
14824if ${ac_cv_lib_pam_pam_start+:} false; then :
14825  $as_echo_n "(cached) " >&6
14826else
14827  ac_check_lib_save_LIBS=$LIBS
14828LIBS="-lpam  $LIBS"
14829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830/* end confdefs.h.  */
14831
14832/* Override any GCC internal prototype to avoid an error.
14833   Use char because int might match the return type of a GCC
14834   builtin and then its argument prototype would still apply.  */
14835#ifdef __cplusplus
14836extern "C"
14837#endif
14838char pam_start ();
14839int
14840main ()
14841{
14842return pam_start ();
14843  ;
14844  return 0;
14845}
14846_ACEOF
14847if ac_fn_c_try_link "$LINENO"; then :
14848  ac_cv_lib_pam_pam_start=yes
14849else
14850  ac_cv_lib_pam_pam_start=no
14851fi
14852rm -f core conftest.err conftest.$ac_objext \
14853    conftest$ac_exeext conftest.$ac_ext
14854LIBS=$ac_check_lib_save_LIBS
14855fi
14856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
14857$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
14858if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
14859  cat >>confdefs.h <<_ACEOF
14860#define HAVE_LIBPAM 1
14861_ACEOF
14862
14863  LIBS="-lpam $LIBS"
14864
14865else
14866  as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
14867fi
14868
14869   for ac_header in security/pam_appl.h
14870do :
14871  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
14872if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
14873  cat >>confdefs.h <<_ACEOF
14874#define HAVE_SECURITY_PAM_APPL_H 1
14875_ACEOF
14876
14877else
14878  for ac_header in pam/pam_appl.h
14879do :
14880  ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
14881if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
14882  cat >>confdefs.h <<_ACEOF
14883#define HAVE_PAM_PAM_APPL_H 1
14884_ACEOF
14885
14886else
14887  as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
14888fi
14889
14890done
14891
14892fi
14893
14894done
14895
14896fi
14897
14898
14899# Check whether --with-memcached was given.
14900if test "${with_memcached+set}" = set; then :
14901  withval=$with_memcached;
14902  case "$withval" in
14903  "" | y | ye | yes | n | no)
14904      as_fn_error $? "*** You must supply an argument to the --with-memcached option." "$LINENO" 5
14905    ;;
14906    *)
14907
14908  MEMCACHED_INCLUDE_DIR="$withval"/include
14909  MEMCACHED_LIB_DIR="$withval"/lib
14910  OLD_CFLAGS="$CFLAGS"
14911  CFLAGS="$CFLAGS -I$MEMCACHED_INCLUDE_DIR"
14912    for ac_header in libmemcached/memcached.h
14913do :
14914  ac_fn_c_check_header_mongrel "$LINENO" "libmemcached/memcached.h" "ac_cv_header_libmemcached_memcached_h" "$ac_includes_default"
14915if test "x$ac_cv_header_libmemcached_memcached_h" = xyes; then :
14916  cat >>confdefs.h <<_ACEOF
14917#define HAVE_LIBMEMCACHED_MEMCACHED_H 1
14918_ACEOF
14919
14920$as_echo "#define USE_MEMCACHED 1" >>confdefs.h
14921
14922else
14923  as_fn_error $? "header file <libmemcached/memcached.h> is required for memcached support" "$LINENO" 5
14924fi
14925
14926done
14927
14928  CFLAGS=$OLD_CFLAGS
14929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcached_create in -lmemcached" >&5
14930$as_echo_n "checking for memcached_create in -lmemcached... " >&6; }
14931if ${ac_cv_lib_memcached_memcached_create+:} false; then :
14932  $as_echo_n "(cached) " >&6
14933else
14934  ac_check_lib_save_LIBS=$LIBS
14935LIBS="-lmemcached  $LIBS"
14936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937/* end confdefs.h.  */
14938
14939/* Override any GCC internal prototype to avoid an error.
14940   Use char because int might match the return type of a GCC
14941   builtin and then its argument prototype would still apply.  */
14942#ifdef __cplusplus
14943extern "C"
14944#endif
14945char memcached_create ();
14946int
14947main ()
14948{
14949return memcached_create ();
14950  ;
14951  return 0;
14952}
14953_ACEOF
14954if ac_fn_c_try_link "$LINENO"; then :
14955  ac_cv_lib_memcached_memcached_create=yes
14956else
14957  ac_cv_lib_memcached_memcached_create=no
14958fi
14959rm -f core conftest.err conftest.$ac_objext \
14960    conftest$ac_exeext conftest.$ac_ext
14961LIBS=$ac_check_lib_save_LIBS
14962fi
14963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcached_memcached_create" >&5
14964$as_echo "$ac_cv_lib_memcached_memcached_create" >&6; }
14965if test "x$ac_cv_lib_memcached_memcached_create" = xyes; then :
14966  cat >>confdefs.h <<_ACEOF
14967#define HAVE_LIBMEMCACHED 1
14968_ACEOF
14969
14970  LIBS="-lmemcached $LIBS"
14971
14972else
14973  as_fn_error $? "libmemcached is not installed" "$LINENO" 5
14974fi
14975
14976  MEMCACHED_INCLUDE_OPT="-I $MEMCACHED_INCLUDE_DIR"
14977  MEMCACHED_LINK_OPT="-L$MEMCACHED_LIB_DIR"
14978  MEMCACHED_RPATH_OPT="-rpath $MEMCACHED_LIB_DIR"
14979  ;;
14980  esac
14981
14982fi
14983
14984
14985CFLAGS="$CFLAGS -fno-strict-aliasing"
14986
14987
14988
14989
14990
14991OLD_LDFLAGS="$LDFLAGS"
14992LDFLAGS="-L$PGSQL_LIB_DIR $LDFLAGS"
14993OLD_LIBS="$LIBS"
14994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecPrepared in -lpq" >&5
14995$as_echo_n "checking for PQexecPrepared in -lpq... " >&6; }
14996if ${ac_cv_lib_pq_PQexecPrepared+:} false; then :
14997  $as_echo_n "(cached) " >&6
14998else
14999  ac_check_lib_save_LIBS=$LIBS
15000LIBS="-lpq  $LIBS"
15001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15002/* end confdefs.h.  */
15003
15004/* Override any GCC internal prototype to avoid an error.
15005   Use char because int might match the return type of a GCC
15006   builtin and then its argument prototype would still apply.  */
15007#ifdef __cplusplus
15008extern "C"
15009#endif
15010char PQexecPrepared ();
15011int
15012main ()
15013{
15014return PQexecPrepared ();
15015  ;
15016  return 0;
15017}
15018_ACEOF
15019if ac_fn_c_try_link "$LINENO"; then :
15020  ac_cv_lib_pq_PQexecPrepared=yes
15021else
15022  ac_cv_lib_pq_PQexecPrepared=no
15023fi
15024rm -f core conftest.err conftest.$ac_objext \
15025    conftest$ac_exeext conftest.$ac_ext
15026LIBS=$ac_check_lib_save_LIBS
15027fi
15028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecPrepared" >&5
15029$as_echo "$ac_cv_lib_pq_PQexecPrepared" >&6; }
15030if test "x$ac_cv_lib_pq_PQexecPrepared" = xyes; then :
15031  cat >>confdefs.h <<_ACEOF
15032#define HAVE_LIBPQ 1
15033_ACEOF
15034
15035  LIBS="-lpq $LIBS"
15036
15037else
15038  as_fn_error $? "libpq is not installed or libpq is old" "$LINENO" 5
15039fi
15040
15041for ac_func in PQprepare
15042do :
15043  ac_fn_c_check_func "$LINENO" "PQprepare" "ac_cv_func_PQprepare"
15044if test "x$ac_cv_func_PQprepare" = xyes; then :
15045  cat >>confdefs.h <<_ACEOF
15046#define HAVE_PQPREPARE 1
15047_ACEOF
15048
15049fi
15050done
15051
15052LDFLAGS="$OLD_LDFLAGS"
15053LIBS="$OLD_LIBS"
15054
15055
15056
15057
15058
15059
15060# --enable(disable)-rpath option
15061# Check whether --enable-rpath was given.
15062if test "${enable_rpath+set}" = set; then :
15063  enableval=$enable_rpath; case "${enableval}" in
15064      yes) rpath=yes ;;
15065      no)  rpath=no ;;
15066      esac
15067else
15068  rpath=yes
15069
15070fi
15071
15072 if test x$rpath = xyes; then
15073  enable_rpath_TRUE=
15074  enable_rpath_FALSE='#'
15075else
15076  enable_rpath_TRUE='#'
15077  enable_rpath_FALSE=
15078fi
15079
15080
15081# Decide whether to use row lock against the sequence table for insert_lock.
15082# This lock method is compatible with pgpool-II 3.0 series(until 3.0.4).
15083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use row lock against the sequence table for insert_lock" >&5
15084$as_echo_n "checking whether to use row lock against the sequence table for insert_lock... " >&6; }
15085
15086pgac_args="$pgac_args enable_sequence_lock"
15087
15088# Check whether --enable-sequence-lock was given.
15089if test "${enable_sequence_lock+set}" = set; then :
15090  enableval=$enable_sequence_lock;
15091  case $enableval in
15092    yes)
15093      :
15094      ;;
15095    no)
15096      :
15097      ;;
15098    *)
15099      as_fn_error $? "no argument expected for --enable-sequence-lock option" "$LINENO" 5
15100      ;;
15101  esac
15102
15103else
15104  enable_sequence_lock=no
15105
15106fi
15107
15108
15109if test "$enable_sequence_lock" = yes && test "$enable_table_lock" = yes ; then
15110    as_fn_error $? "--enable-table-lock cannot be enabled at the same time." "$LINENO" 5
15111fi
15112if test "$enable_sequence_lock" = yes ; then
15113
15114$as_echo "#define USE_SEQUENCE_LOCK 1" >>confdefs.h
15115
15116fi
15117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sequence_lock" >&5
15118$as_echo "$enable_sequence_lock" >&6; }
15119
15120# Decide whether to use table lock against the target table for insert_lock.
15121# This lock method is compatible with pgpool-II 2.2 and 2.3 series.
15122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use table lock against the target table for insert_lock" >&5
15123$as_echo_n "checking whether to use table lock against the target table for insert_lock... " >&6; }
15124
15125pgac_args="$pgac_args enable_table_lock"
15126
15127# Check whether --enable-table-lock was given.
15128if test "${enable_table_lock+set}" = set; then :
15129  enableval=$enable_table_lock;
15130  case $enableval in
15131    yes)
15132      :
15133      ;;
15134    no)
15135      :
15136      ;;
15137    *)
15138      as_fn_error $? "no argument expected for --enable-table-lock option" "$LINENO" 5
15139      ;;
15140  esac
15141
15142else
15143  enable_table_lock=no
15144
15145fi
15146
15147
15148if test "$enable_table_lock" = yes && test "$enable_sequence_lock" = yes ; then
15149    as_fn_error $? "--enable-sequence-lock cannot be enabled at the same time." "$LINENO" 5
15150fi
15151if test "$enable_table_lock" = yes ; then
15152
15153$as_echo "#define USE_TABLE_LOCK 1" >>confdefs.h
15154
15155fi
15156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_table_lock" >&5
15157$as_echo "$enable_table_lock" >&6; }
15158
15159
15160pgac_args="$pgac_args enable_cassert"
15161
15162# Check whether --enable-cassert was given.
15163if test "${enable_cassert+set}" = set; then :
15164  enableval=$enable_cassert;
15165  case $enableval in
15166    yes)
15167      :
15168      ;;
15169    no)
15170      :
15171      ;;
15172    *)
15173      as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
15174      ;;
15175  esac
15176
15177else
15178  enable_cassert=no
15179
15180fi
15181
15182
15183if test "$enable_cassert" = yes ; then
15184
15185$as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
15186
15187fi
15188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enable cassert = $enable_cassert" >&5
15189$as_echo "enable cassert = $enable_cassert" >&6; }
15190
15191ac_config_headers="$ac_config_headers src/include/config.h"
15192
15193
15194ac_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 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/watchdog/Makefile"
15195
15196cat >confcache <<\_ACEOF
15197# This file is a shell script that caches the results of configure
15198# tests run on this system so they can be shared between configure
15199# scripts and configure runs, see configure's option --config-cache.
15200# It is not useful on other systems.  If it contains results you don't
15201# want to keep, you may remove or edit it.
15202#
15203# config.status only pays attention to the cache file if you give it
15204# the --recheck option to rerun configure.
15205#
15206# `ac_cv_env_foo' variables (set or unset) will be overridden when
15207# loading this file, other *unset* `ac_cv_foo' will be assigned the
15208# following values.
15209
15210_ACEOF
15211
15212# The following way of writing the cache mishandles newlines in values,
15213# but we know of no workaround that is simple, portable, and efficient.
15214# So, we kill variables containing newlines.
15215# Ultrix sh set writes to stderr and can't be redirected directly,
15216# and sets the high bit in the cache file unless we assign to the vars.
15217(
15218  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15219    eval ac_val=\$$ac_var
15220    case $ac_val in #(
15221    *${as_nl}*)
15222      case $ac_var in #(
15223      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15224$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15225      esac
15226      case $ac_var in #(
15227      _ | IFS | as_nl) ;; #(
15228      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15229      *) { eval $ac_var=; unset $ac_var;} ;;
15230      esac ;;
15231    esac
15232  done
15233
15234  (set) 2>&1 |
15235    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15236    *${as_nl}ac_space=\ *)
15237      # `set' does not quote correctly, so add quotes: double-quote
15238      # substitution turns \\\\ into \\, and sed turns \\ into \.
15239      sed -n \
15240	"s/'/'\\\\''/g;
15241	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15242      ;; #(
15243    *)
15244      # `set' quotes correctly as required by POSIX, so do not add quotes.
15245      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15246      ;;
15247    esac |
15248    sort
15249) |
15250  sed '
15251     /^ac_cv_env_/b end
15252     t clear
15253     :clear
15254     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15255     t end
15256     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15257     :end' >>confcache
15258if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15259  if test -w "$cache_file"; then
15260    if test "x$cache_file" != "x/dev/null"; then
15261      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15262$as_echo "$as_me: updating cache $cache_file" >&6;}
15263      if test ! -f "$cache_file" || test -h "$cache_file"; then
15264	cat confcache >"$cache_file"
15265      else
15266        case $cache_file in #(
15267        */* | ?:*)
15268	  mv -f confcache "$cache_file"$$ &&
15269	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15270        *)
15271	  mv -f confcache "$cache_file" ;;
15272	esac
15273      fi
15274    fi
15275  else
15276    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15277$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15278  fi
15279fi
15280rm -f confcache
15281
15282test "x$prefix" = xNONE && prefix=$ac_default_prefix
15283# Let make expand exec_prefix.
15284test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15285
15286DEFS=-DHAVE_CONFIG_H
15287
15288ac_libobjs=
15289ac_ltlibobjs=
15290for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15291  # 1. Remove the extension, and $U if already installed.
15292  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15293  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15294  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15295  #    will be set to the directory where LIBOBJS objects are built.
15296  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15297  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15298done
15299LIBOBJS=$ac_libobjs
15300
15301LTLIBOBJS=$ac_ltlibobjs
15302
15303
15304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15305$as_echo_n "checking that generated files are newer than configure... " >&6; }
15306   if test -n "$am_sleep_pid"; then
15307     # Hide warnings about reused PIDs.
15308     wait $am_sleep_pid 2>/dev/null
15309   fi
15310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15311$as_echo "done" >&6; }
15312 if test -n "$EXEEXT"; then
15313  am__EXEEXT_TRUE=
15314  am__EXEEXT_FALSE='#'
15315else
15316  am__EXEEXT_TRUE='#'
15317  am__EXEEXT_FALSE=
15318fi
15319
15320if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15321  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15322Usually this means the macro was only invoked conditionally." "$LINENO" 5
15323fi
15324if test -z "${can_build_docs_TRUE}" && test -z "${can_build_docs_FALSE}"; then
15325  as_fn_error $? "conditional \"can_build_docs\" was never defined.
15326Usually this means the macro was only invoked conditionally." "$LINENO" 5
15327fi
15328if test -z "${STYLE_ENV_SET_TRUE}" && test -z "${STYLE_ENV_SET_FALSE}"; then
15329  as_fn_error $? "conditional \"STYLE_ENV_SET\" was never defined.
15330Usually this means the macro was only invoked conditionally." "$LINENO" 5
15331fi
15332if test -z "${use_repl_snprintf_TRUE}" && test -z "${use_repl_snprintf_FALSE}"; then
15333  as_fn_error $? "conditional \"use_repl_snprintf\" was never defined.
15334Usually this means the macro was only invoked conditionally." "$LINENO" 5
15335fi
15336if test -z "${enable_rpath_TRUE}" && test -z "${enable_rpath_FALSE}"; then
15337  as_fn_error $? "conditional \"enable_rpath\" was never defined.
15338Usually this means the macro was only invoked conditionally." "$LINENO" 5
15339fi
15340
15341: "${CONFIG_STATUS=./config.status}"
15342ac_write_fail=0
15343ac_clean_files_save=$ac_clean_files
15344ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15345{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15346$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15347as_write_fail=0
15348cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15349#! $SHELL
15350# Generated by $as_me.
15351# Run this file to recreate the current configuration.
15352# Compiler output produced by configure, useful for debugging
15353# configure, is in config.log if it exists.
15354
15355debug=false
15356ac_cs_recheck=false
15357ac_cs_silent=false
15358
15359SHELL=\${CONFIG_SHELL-$SHELL}
15360export SHELL
15361_ASEOF
15362cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15363## -------------------- ##
15364## M4sh Initialization. ##
15365## -------------------- ##
15366
15367# Be more Bourne compatible
15368DUALCASE=1; export DUALCASE # for MKS sh
15369if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15370  emulate sh
15371  NULLCMD=:
15372  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15373  # is contrary to our usage.  Disable this feature.
15374  alias -g '${1+"$@"}'='"$@"'
15375  setopt NO_GLOB_SUBST
15376else
15377  case `(set -o) 2>/dev/null` in #(
15378  *posix*) :
15379    set -o posix ;; #(
15380  *) :
15381     ;;
15382esac
15383fi
15384
15385
15386as_nl='
15387'
15388export as_nl
15389# Printing a long string crashes Solaris 7 /usr/bin/printf.
15390as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15391as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15392as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15393# Prefer a ksh shell builtin over an external printf program on Solaris,
15394# but without wasting forks for bash or zsh.
15395if test -z "$BASH_VERSION$ZSH_VERSION" \
15396    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15397  as_echo='print -r --'
15398  as_echo_n='print -rn --'
15399elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15400  as_echo='printf %s\n'
15401  as_echo_n='printf %s'
15402else
15403  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15404    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15405    as_echo_n='/usr/ucb/echo -n'
15406  else
15407    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15408    as_echo_n_body='eval
15409      arg=$1;
15410      case $arg in #(
15411      *"$as_nl"*)
15412	expr "X$arg" : "X\\(.*\\)$as_nl";
15413	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15414      esac;
15415      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15416    '
15417    export as_echo_n_body
15418    as_echo_n='sh -c $as_echo_n_body as_echo'
15419  fi
15420  export as_echo_body
15421  as_echo='sh -c $as_echo_body as_echo'
15422fi
15423
15424# The user is always right.
15425if test "${PATH_SEPARATOR+set}" != set; then
15426  PATH_SEPARATOR=:
15427  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15428    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15429      PATH_SEPARATOR=';'
15430  }
15431fi
15432
15433
15434# IFS
15435# We need space, tab and new line, in precisely that order.  Quoting is
15436# there to prevent editors from complaining about space-tab.
15437# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15438# splitting by setting IFS to empty value.)
15439IFS=" ""	$as_nl"
15440
15441# Find who we are.  Look in the path if we contain no directory separator.
15442as_myself=
15443case $0 in #((
15444  *[\\/]* ) as_myself=$0 ;;
15445  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15446for as_dir in $PATH
15447do
15448  IFS=$as_save_IFS
15449  test -z "$as_dir" && as_dir=.
15450    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15451  done
15452IFS=$as_save_IFS
15453
15454     ;;
15455esac
15456# We did not find ourselves, most probably we were run as `sh COMMAND'
15457# in which case we are not to be found in the path.
15458if test "x$as_myself" = x; then
15459  as_myself=$0
15460fi
15461if test ! -f "$as_myself"; then
15462  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15463  exit 1
15464fi
15465
15466# Unset variables that we do not need and which cause bugs (e.g. in
15467# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15468# suppresses any "Segmentation fault" message there.  '((' could
15469# trigger a bug in pdksh 5.2.14.
15470for as_var in BASH_ENV ENV MAIL MAILPATH
15471do eval test x\${$as_var+set} = xset \
15472  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15473done
15474PS1='$ '
15475PS2='> '
15476PS4='+ '
15477
15478# NLS nuisances.
15479LC_ALL=C
15480export LC_ALL
15481LANGUAGE=C
15482export LANGUAGE
15483
15484# CDPATH.
15485(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15486
15487
15488# as_fn_error STATUS ERROR [LINENO LOG_FD]
15489# ----------------------------------------
15490# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15491# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15492# script with STATUS, using 1 if that was 0.
15493as_fn_error ()
15494{
15495  as_status=$1; test $as_status -eq 0 && as_status=1
15496  if test "$4"; then
15497    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15498    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15499  fi
15500  $as_echo "$as_me: error: $2" >&2
15501  as_fn_exit $as_status
15502} # as_fn_error
15503
15504
15505# as_fn_set_status STATUS
15506# -----------------------
15507# Set $? to STATUS, without forking.
15508as_fn_set_status ()
15509{
15510  return $1
15511} # as_fn_set_status
15512
15513# as_fn_exit STATUS
15514# -----------------
15515# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15516as_fn_exit ()
15517{
15518  set +e
15519  as_fn_set_status $1
15520  exit $1
15521} # as_fn_exit
15522
15523# as_fn_unset VAR
15524# ---------------
15525# Portably unset VAR.
15526as_fn_unset ()
15527{
15528  { eval $1=; unset $1;}
15529}
15530as_unset=as_fn_unset
15531# as_fn_append VAR VALUE
15532# ----------------------
15533# Append the text in VALUE to the end of the definition contained in VAR. Take
15534# advantage of any shell optimizations that allow amortized linear growth over
15535# repeated appends, instead of the typical quadratic growth present in naive
15536# implementations.
15537if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15538  eval 'as_fn_append ()
15539  {
15540    eval $1+=\$2
15541  }'
15542else
15543  as_fn_append ()
15544  {
15545    eval $1=\$$1\$2
15546  }
15547fi # as_fn_append
15548
15549# as_fn_arith ARG...
15550# ------------------
15551# Perform arithmetic evaluation on the ARGs, and store the result in the
15552# global $as_val. Take advantage of shells that can avoid forks. The arguments
15553# must be portable across $(()) and expr.
15554if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15555  eval 'as_fn_arith ()
15556  {
15557    as_val=$(( $* ))
15558  }'
15559else
15560  as_fn_arith ()
15561  {
15562    as_val=`expr "$@" || test $? -eq 1`
15563  }
15564fi # as_fn_arith
15565
15566
15567if expr a : '\(a\)' >/dev/null 2>&1 &&
15568   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15569  as_expr=expr
15570else
15571  as_expr=false
15572fi
15573
15574if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15575  as_basename=basename
15576else
15577  as_basename=false
15578fi
15579
15580if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15581  as_dirname=dirname
15582else
15583  as_dirname=false
15584fi
15585
15586as_me=`$as_basename -- "$0" ||
15587$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15588	 X"$0" : 'X\(//\)$' \| \
15589	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15590$as_echo X/"$0" |
15591    sed '/^.*\/\([^/][^/]*\)\/*$/{
15592	    s//\1/
15593	    q
15594	  }
15595	  /^X\/\(\/\/\)$/{
15596	    s//\1/
15597	    q
15598	  }
15599	  /^X\/\(\/\).*/{
15600	    s//\1/
15601	    q
15602	  }
15603	  s/.*/./; q'`
15604
15605# Avoid depending upon Character Ranges.
15606as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15607as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15608as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15609as_cr_digits='0123456789'
15610as_cr_alnum=$as_cr_Letters$as_cr_digits
15611
15612ECHO_C= ECHO_N= ECHO_T=
15613case `echo -n x` in #(((((
15614-n*)
15615  case `echo 'xy\c'` in
15616  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15617  xy)  ECHO_C='\c';;
15618  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15619       ECHO_T='	';;
15620  esac;;
15621*)
15622  ECHO_N='-n';;
15623esac
15624
15625rm -f conf$$ conf$$.exe conf$$.file
15626if test -d conf$$.dir; then
15627  rm -f conf$$.dir/conf$$.file
15628else
15629  rm -f conf$$.dir
15630  mkdir conf$$.dir 2>/dev/null
15631fi
15632if (echo >conf$$.file) 2>/dev/null; then
15633  if ln -s conf$$.file conf$$ 2>/dev/null; then
15634    as_ln_s='ln -s'
15635    # ... but there are two gotchas:
15636    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15637    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15638    # In both cases, we have to default to `cp -pR'.
15639    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15640      as_ln_s='cp -pR'
15641  elif ln conf$$.file conf$$ 2>/dev/null; then
15642    as_ln_s=ln
15643  else
15644    as_ln_s='cp -pR'
15645  fi
15646else
15647  as_ln_s='cp -pR'
15648fi
15649rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15650rmdir conf$$.dir 2>/dev/null
15651
15652
15653# as_fn_mkdir_p
15654# -------------
15655# Create "$as_dir" as a directory, including parents if necessary.
15656as_fn_mkdir_p ()
15657{
15658
15659  case $as_dir in #(
15660  -*) as_dir=./$as_dir;;
15661  esac
15662  test -d "$as_dir" || eval $as_mkdir_p || {
15663    as_dirs=
15664    while :; do
15665      case $as_dir in #(
15666      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15667      *) as_qdir=$as_dir;;
15668      esac
15669      as_dirs="'$as_qdir' $as_dirs"
15670      as_dir=`$as_dirname -- "$as_dir" ||
15671$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15672	 X"$as_dir" : 'X\(//\)[^/]' \| \
15673	 X"$as_dir" : 'X\(//\)$' \| \
15674	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15675$as_echo X"$as_dir" |
15676    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15677	    s//\1/
15678	    q
15679	  }
15680	  /^X\(\/\/\)[^/].*/{
15681	    s//\1/
15682	    q
15683	  }
15684	  /^X\(\/\/\)$/{
15685	    s//\1/
15686	    q
15687	  }
15688	  /^X\(\/\).*/{
15689	    s//\1/
15690	    q
15691	  }
15692	  s/.*/./; q'`
15693      test -d "$as_dir" && break
15694    done
15695    test -z "$as_dirs" || eval "mkdir $as_dirs"
15696  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15697
15698
15699} # as_fn_mkdir_p
15700if mkdir -p . 2>/dev/null; then
15701  as_mkdir_p='mkdir -p "$as_dir"'
15702else
15703  test -d ./-p && rmdir ./-p
15704  as_mkdir_p=false
15705fi
15706
15707
15708# as_fn_executable_p FILE
15709# -----------------------
15710# Test if FILE is an executable regular file.
15711as_fn_executable_p ()
15712{
15713  test -f "$1" && test -x "$1"
15714} # as_fn_executable_p
15715as_test_x='test -x'
15716as_executable_p=as_fn_executable_p
15717
15718# Sed expression to map a string onto a valid CPP name.
15719as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15720
15721# Sed expression to map a string onto a valid variable name.
15722as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15723
15724
15725exec 6>&1
15726## ----------------------------------- ##
15727## Main body of $CONFIG_STATUS script. ##
15728## ----------------------------------- ##
15729_ASEOF
15730test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15731
15732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15733# Save the log message, to keep $0 and so on meaningful, and to
15734# report actual input values of CONFIG_FILES etc. instead of their
15735# values after options handling.
15736ac_log="
15737This file was extended by pgpool-II $as_me 4.0.17, which was
15738generated by GNU Autoconf 2.69.  Invocation command line was
15739
15740  CONFIG_FILES    = $CONFIG_FILES
15741  CONFIG_HEADERS  = $CONFIG_HEADERS
15742  CONFIG_LINKS    = $CONFIG_LINKS
15743  CONFIG_COMMANDS = $CONFIG_COMMANDS
15744  $ $0 $@
15745
15746on `(hostname || uname -n) 2>/dev/null | sed 1q`
15747"
15748
15749_ACEOF
15750
15751case $ac_config_files in *"
15752"*) set x $ac_config_files; shift; ac_config_files=$*;;
15753esac
15754
15755case $ac_config_headers in *"
15756"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15757esac
15758
15759
15760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15761# Files that config.status was made for.
15762config_files="$ac_config_files"
15763config_headers="$ac_config_headers"
15764config_commands="$ac_config_commands"
15765
15766_ACEOF
15767
15768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15769ac_cs_usage="\
15770\`$as_me' instantiates files and other configuration actions
15771from templates according to the current configuration.  Unless the files
15772and actions are specified as TAGs, all are instantiated by default.
15773
15774Usage: $0 [OPTION]... [TAG]...
15775
15776  -h, --help       print this help, then exit
15777  -V, --version    print version number and configuration settings, then exit
15778      --config     print configuration, then exit
15779  -q, --quiet, --silent
15780                   do not print progress messages
15781  -d, --debug      don't remove temporary files
15782      --recheck    update $as_me by reconfiguring in the same conditions
15783      --file=FILE[:TEMPLATE]
15784                   instantiate the configuration file FILE
15785      --header=FILE[:TEMPLATE]
15786                   instantiate the configuration header FILE
15787
15788Configuration files:
15789$config_files
15790
15791Configuration headers:
15792$config_headers
15793
15794Configuration commands:
15795$config_commands
15796
15797Report bugs to <pgpool-hackers@pgpool.net>."
15798
15799_ACEOF
15800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15801ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15802ac_cs_version="\\
15803pgpool-II config.status 4.0.17
15804configured by $0, generated by GNU Autoconf 2.69,
15805  with options \\"\$ac_cs_config\\"
15806
15807Copyright (C) 2012 Free Software Foundation, Inc.
15808This config.status script is free software; the Free Software Foundation
15809gives unlimited permission to copy, distribute and modify it."
15810
15811ac_pwd='$ac_pwd'
15812srcdir='$srcdir'
15813INSTALL='$INSTALL'
15814MKDIR_P='$MKDIR_P'
15815AWK='$AWK'
15816test -n "\$AWK" || AWK=awk
15817_ACEOF
15818
15819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15820# The default lists apply if the user does not specify any file.
15821ac_need_defaults=:
15822while test $# != 0
15823do
15824  case $1 in
15825  --*=?*)
15826    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15827    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15828    ac_shift=:
15829    ;;
15830  --*=)
15831    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15832    ac_optarg=
15833    ac_shift=:
15834    ;;
15835  *)
15836    ac_option=$1
15837    ac_optarg=$2
15838    ac_shift=shift
15839    ;;
15840  esac
15841
15842  case $ac_option in
15843  # Handling of the options.
15844  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15845    ac_cs_recheck=: ;;
15846  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15847    $as_echo "$ac_cs_version"; exit ;;
15848  --config | --confi | --conf | --con | --co | --c )
15849    $as_echo "$ac_cs_config"; exit ;;
15850  --debug | --debu | --deb | --de | --d | -d )
15851    debug=: ;;
15852  --file | --fil | --fi | --f )
15853    $ac_shift
15854    case $ac_optarg in
15855    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15856    '') as_fn_error $? "missing file argument" ;;
15857    esac
15858    as_fn_append CONFIG_FILES " '$ac_optarg'"
15859    ac_need_defaults=false;;
15860  --header | --heade | --head | --hea )
15861    $ac_shift
15862    case $ac_optarg in
15863    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15864    esac
15865    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15866    ac_need_defaults=false;;
15867  --he | --h)
15868    # Conflict between --help and --header
15869    as_fn_error $? "ambiguous option: \`$1'
15870Try \`$0 --help' for more information.";;
15871  --help | --hel | -h )
15872    $as_echo "$ac_cs_usage"; exit ;;
15873  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15874  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15875    ac_cs_silent=: ;;
15876
15877  # This is an error.
15878  -*) as_fn_error $? "unrecognized option: \`$1'
15879Try \`$0 --help' for more information." ;;
15880
15881  *) as_fn_append ac_config_targets " $1"
15882     ac_need_defaults=false ;;
15883
15884  esac
15885  shift
15886done
15887
15888ac_configure_extra_args=
15889
15890if $ac_cs_silent; then
15891  exec 6>/dev/null
15892  ac_configure_extra_args="$ac_configure_extra_args --silent"
15893fi
15894
15895_ACEOF
15896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15897if \$ac_cs_recheck; then
15898  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15899  shift
15900  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15901  CONFIG_SHELL='$SHELL'
15902  export CONFIG_SHELL
15903  exec "\$@"
15904fi
15905
15906_ACEOF
15907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15908exec 5>>config.log
15909{
15910  echo
15911  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15912## Running $as_me. ##
15913_ASBOX
15914  $as_echo "$ac_log"
15915} >&5
15916
15917_ACEOF
15918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15919#
15920# INIT-COMMANDS
15921#
15922
15923
15924# The HP-UX ksh and POSIX shell print the target directory to stdout
15925# if CDPATH is set.
15926(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15927
15928sed_quote_subst='$sed_quote_subst'
15929double_quote_subst='$double_quote_subst'
15930delay_variable_subst='$delay_variable_subst'
15931macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15932macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15933enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15934enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15935pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15936enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15937SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15938ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15939PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15940host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15941host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15942host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15943build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15944build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15945build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15946SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15947Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15948GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15949EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15950FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15951LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15952NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15953LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15954max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15955ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15956exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15957lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15958lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15959lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15960lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15961lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15962reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15963reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15964OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15965deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15966file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15967file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15968want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15969DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15970sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15971AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15972AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15973archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15974STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15975RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15976old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15977old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15978old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15979lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15980CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15981CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15982compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15983GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15984lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15985lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15986lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15987lt_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"`'
15988nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15989lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15990objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15991MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15992lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15993lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15994lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15995lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15996lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15997need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15998MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15999DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16000NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16001LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16002OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16003OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16004libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16005shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16006extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16007archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16008enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16009export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16010whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16011compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16012old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16013old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16014archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16015archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16016module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16017module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16018with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16019allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16020no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16021hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16022hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16023hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16024hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16025hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16026hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16027hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16028inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16029link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16030always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16031export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16032exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16033include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16034prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16035postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16036file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16037variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16038need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16039need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16040version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16041runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16042shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16043shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16044libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16045library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16046soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16047install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16048postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16049postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16050finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16051finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16052hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16053sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16054sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16055hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16056enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16057enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16058enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16059old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16060striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16061
16062LTCC='$LTCC'
16063LTCFLAGS='$LTCFLAGS'
16064compiler='$compiler_DEFAULT'
16065
16066# A function that is used when there is no print builtin or printf.
16067func_fallback_echo ()
16068{
16069  eval 'cat <<_LTECHO_EOF
16070\$1
16071_LTECHO_EOF'
16072}
16073
16074# Quote evaled strings.
16075for var in SHELL \
16076ECHO \
16077PATH_SEPARATOR \
16078SED \
16079GREP \
16080EGREP \
16081FGREP \
16082LD \
16083NM \
16084LN_S \
16085lt_SP2NL \
16086lt_NL2SP \
16087reload_flag \
16088OBJDUMP \
16089deplibs_check_method \
16090file_magic_cmd \
16091file_magic_glob \
16092want_nocaseglob \
16093DLLTOOL \
16094sharedlib_from_linklib_cmd \
16095AR \
16096AR_FLAGS \
16097archiver_list_spec \
16098STRIP \
16099RANLIB \
16100CC \
16101CFLAGS \
16102compiler \
16103lt_cv_sys_global_symbol_pipe \
16104lt_cv_sys_global_symbol_to_cdecl \
16105lt_cv_sys_global_symbol_to_c_name_address \
16106lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16107nm_file_list_spec \
16108lt_prog_compiler_no_builtin_flag \
16109lt_prog_compiler_pic \
16110lt_prog_compiler_wl \
16111lt_prog_compiler_static \
16112lt_cv_prog_compiler_c_o \
16113need_locks \
16114MANIFEST_TOOL \
16115DSYMUTIL \
16116NMEDIT \
16117LIPO \
16118OTOOL \
16119OTOOL64 \
16120shrext_cmds \
16121export_dynamic_flag_spec \
16122whole_archive_flag_spec \
16123compiler_needs_object \
16124with_gnu_ld \
16125allow_undefined_flag \
16126no_undefined_flag \
16127hardcode_libdir_flag_spec \
16128hardcode_libdir_separator \
16129exclude_expsyms \
16130include_expsyms \
16131file_list_spec \
16132variables_saved_for_relink \
16133libname_spec \
16134library_names_spec \
16135soname_spec \
16136install_override_mode \
16137finish_eval \
16138old_striplib \
16139striplib; do
16140    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16141    *[\\\\\\\`\\"\\\$]*)
16142      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16143      ;;
16144    *)
16145      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16146      ;;
16147    esac
16148done
16149
16150# Double-quote double-evaled strings.
16151for var in reload_cmds \
16152old_postinstall_cmds \
16153old_postuninstall_cmds \
16154old_archive_cmds \
16155extract_expsyms_cmds \
16156old_archive_from_new_cmds \
16157old_archive_from_expsyms_cmds \
16158archive_cmds \
16159archive_expsym_cmds \
16160module_cmds \
16161module_expsym_cmds \
16162export_symbols_cmds \
16163prelink_cmds \
16164postlink_cmds \
16165postinstall_cmds \
16166postuninstall_cmds \
16167finish_cmds \
16168sys_lib_search_path_spec \
16169sys_lib_dlsearch_path_spec; do
16170    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16171    *[\\\\\\\`\\"\\\$]*)
16172      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16173      ;;
16174    *)
16175      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16176      ;;
16177    esac
16178done
16179
16180ac_aux_dir='$ac_aux_dir'
16181xsi_shell='$xsi_shell'
16182lt_shell_append='$lt_shell_append'
16183
16184# See if we are running on zsh, and set the options which allow our
16185# commands through without removal of \ escapes INIT.
16186if test -n "\${ZSH_VERSION+set}" ; then
16187   setopt NO_GLOB_SUBST
16188fi
16189
16190
16191    PACKAGE='$PACKAGE'
16192    VERSION='$VERSION'
16193    TIMESTAMP='$TIMESTAMP'
16194    RM='$RM'
16195    ofile='$ofile'
16196
16197
16198
16199
16200_ACEOF
16201
16202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16203
16204# Handling of arguments.
16205for ac_config_target in $ac_config_targets
16206do
16207  case $ac_config_target in
16208    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16209    "src/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h" ;;
16210    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16211    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16212    "doc/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;;
16213    "doc/src/sgml/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/sgml/Makefile" ;;
16214    "doc.ja/Makefile") CONFIG_FILES="$CONFIG_FILES doc.ja/Makefile" ;;
16215    "doc.ja/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc.ja/src/Makefile" ;;
16216    "doc.ja/src/sgml/Makefile") CONFIG_FILES="$CONFIG_FILES doc.ja/src/sgml/Makefile" ;;
16217    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16218    "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
16219    "src/parser/Makefile") CONFIG_FILES="$CONFIG_FILES src/parser/Makefile" ;;
16220    "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
16221    "src/libs/pcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/pcp/Makefile" ;;
16222    "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
16223    "src/tools/pgmd5/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pgmd5/Makefile" ;;
16224    "src/tools/pgenc/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pgenc/Makefile" ;;
16225    "src/tools/pcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pcp/Makefile" ;;
16226    "src/tools/pgproto/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pgproto/Makefile" ;;
16227    "src/watchdog/Makefile") CONFIG_FILES="$CONFIG_FILES src/watchdog/Makefile" ;;
16228
16229  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16230  esac
16231done
16232
16233
16234# If the user did not use the arguments to specify the items to instantiate,
16235# then the envvar interface is used.  Set only those that are not.
16236# We use the long form for the default assignment because of an extremely
16237# bizarre bug on SunOS 4.1.3.
16238if $ac_need_defaults; then
16239  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16240  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16241  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16242fi
16243
16244# Have a temporary directory for convenience.  Make it in the build tree
16245# simply because there is no reason against having it here, and in addition,
16246# creating and moving files from /tmp can sometimes cause problems.
16247# Hook for its removal unless debugging.
16248# Note that there is a small window in which the directory will not be cleaned:
16249# after its creation but before its name has been assigned to `$tmp'.
16250$debug ||
16251{
16252  tmp= ac_tmp=
16253  trap 'exit_status=$?
16254  : "${ac_tmp:=$tmp}"
16255  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16256' 0
16257  trap 'as_fn_exit 1' 1 2 13 15
16258}
16259# Create a (secure) tmp directory for tmp files.
16260
16261{
16262  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16263  test -d "$tmp"
16264}  ||
16265{
16266  tmp=./conf$$-$RANDOM
16267  (umask 077 && mkdir "$tmp")
16268} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16269ac_tmp=$tmp
16270
16271# Set up the scripts for CONFIG_FILES section.
16272# No need to generate them if there are no CONFIG_FILES.
16273# This happens for instance with `./config.status config.h'.
16274if test -n "$CONFIG_FILES"; then
16275
16276
16277ac_cr=`echo X | tr X '\015'`
16278# On cygwin, bash can eat \r inside `` if the user requested igncr.
16279# But we know of no other shell where ac_cr would be empty at this
16280# point, so we can use a bashism as a fallback.
16281if test "x$ac_cr" = x; then
16282  eval ac_cr=\$\'\\r\'
16283fi
16284ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16285if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16286  ac_cs_awk_cr='\\r'
16287else
16288  ac_cs_awk_cr=$ac_cr
16289fi
16290
16291echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16292_ACEOF
16293
16294
16295{
16296  echo "cat >conf$$subs.awk <<_ACEOF" &&
16297  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16298  echo "_ACEOF"
16299} >conf$$subs.sh ||
16300  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16301ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16302ac_delim='%!_!# '
16303for ac_last_try in false false false false false :; do
16304  . ./conf$$subs.sh ||
16305    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16306
16307  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16308  if test $ac_delim_n = $ac_delim_num; then
16309    break
16310  elif $ac_last_try; then
16311    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16312  else
16313    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16314  fi
16315done
16316rm -f conf$$subs.sh
16317
16318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16319cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16320_ACEOF
16321sed -n '
16322h
16323s/^/S["/; s/!.*/"]=/
16324p
16325g
16326s/^[^!]*!//
16327:repl
16328t repl
16329s/'"$ac_delim"'$//
16330t delim
16331:nl
16332h
16333s/\(.\{148\}\)..*/\1/
16334t more1
16335s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16336p
16337n
16338b repl
16339:more1
16340s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16341p
16342g
16343s/.\{148\}//
16344t nl
16345:delim
16346h
16347s/\(.\{148\}\)..*/\1/
16348t more2
16349s/["\\]/\\&/g; s/^/"/; s/$/"/
16350p
16351b
16352:more2
16353s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16354p
16355g
16356s/.\{148\}//
16357t delim
16358' <conf$$subs.awk | sed '
16359/^[^""]/{
16360  N
16361  s/\n//
16362}
16363' >>$CONFIG_STATUS || ac_write_fail=1
16364rm -f conf$$subs.awk
16365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16366_ACAWK
16367cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16368  for (key in S) S_is_set[key] = 1
16369  FS = ""
16370
16371}
16372{
16373  line = $ 0
16374  nfields = split(line, field, "@")
16375  substed = 0
16376  len = length(field[1])
16377  for (i = 2; i < nfields; i++) {
16378    key = field[i]
16379    keylen = length(key)
16380    if (S_is_set[key]) {
16381      value = S[key]
16382      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16383      len += length(value) + length(field[++i])
16384      substed = 1
16385    } else
16386      len += 1 + keylen
16387  }
16388
16389  print line
16390}
16391
16392_ACAWK
16393_ACEOF
16394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16395if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16396  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16397else
16398  cat
16399fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16400  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16401_ACEOF
16402
16403# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16404# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16405# trailing colons and then remove the whole line if VPATH becomes empty
16406# (actually we leave an empty line to preserve line numbers).
16407if test "x$srcdir" = x.; then
16408  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16409h
16410s///
16411s/^/:/
16412s/[	 ]*$/:/
16413s/:\$(srcdir):/:/g
16414s/:\${srcdir}:/:/g
16415s/:@srcdir@:/:/g
16416s/^:*//
16417s/:*$//
16418x
16419s/\(=[	 ]*\).*/\1/
16420G
16421s/\n//
16422s/^[^=]*=[	 ]*$//
16423}'
16424fi
16425
16426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16427fi # test -n "$CONFIG_FILES"
16428
16429# Set up the scripts for CONFIG_HEADERS section.
16430# No need to generate them if there are no CONFIG_HEADERS.
16431# This happens for instance with `./config.status Makefile'.
16432if test -n "$CONFIG_HEADERS"; then
16433cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16434BEGIN {
16435_ACEOF
16436
16437# Transform confdefs.h into an awk script `defines.awk', embedded as
16438# here-document in config.status, that substitutes the proper values into
16439# config.h.in to produce config.h.
16440
16441# Create a delimiter string that does not exist in confdefs.h, to ease
16442# handling of long lines.
16443ac_delim='%!_!# '
16444for ac_last_try in false false :; do
16445  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16446  if test -z "$ac_tt"; then
16447    break
16448  elif $ac_last_try; then
16449    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16450  else
16451    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16452  fi
16453done
16454
16455# For the awk script, D is an array of macro values keyed by name,
16456# likewise P contains macro parameters if any.  Preserve backslash
16457# newline sequences.
16458
16459ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16460sed -n '
16461s/.\{148\}/&'"$ac_delim"'/g
16462t rset
16463:rset
16464s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16465t def
16466d
16467:def
16468s/\\$//
16469t bsnl
16470s/["\\]/\\&/g
16471s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16472D["\1"]=" \3"/p
16473s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16474d
16475:bsnl
16476s/["\\]/\\&/g
16477s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16478D["\1"]=" \3\\\\\\n"\\/p
16479t cont
16480s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16481t cont
16482d
16483:cont
16484n
16485s/.\{148\}/&'"$ac_delim"'/g
16486t clear
16487:clear
16488s/\\$//
16489t bsnlc
16490s/["\\]/\\&/g; s/^/"/; s/$/"/p
16491d
16492:bsnlc
16493s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16494b cont
16495' <confdefs.h | sed '
16496s/'"$ac_delim"'/"\\\
16497"/g' >>$CONFIG_STATUS || ac_write_fail=1
16498
16499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16500  for (key in D) D_is_set[key] = 1
16501  FS = ""
16502}
16503/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16504  line = \$ 0
16505  split(line, arg, " ")
16506  if (arg[1] == "#") {
16507    defundef = arg[2]
16508    mac1 = arg[3]
16509  } else {
16510    defundef = substr(arg[1], 2)
16511    mac1 = arg[2]
16512  }
16513  split(mac1, mac2, "(") #)
16514  macro = mac2[1]
16515  prefix = substr(line, 1, index(line, defundef) - 1)
16516  if (D_is_set[macro]) {
16517    # Preserve the white space surrounding the "#".
16518    print prefix "define", macro P[macro] D[macro]
16519    next
16520  } else {
16521    # Replace #undef with comments.  This is necessary, for example,
16522    # in the case of _POSIX_SOURCE, which is predefined and required
16523    # on some systems where configure will not decide to define it.
16524    if (defundef == "undef") {
16525      print "/*", prefix defundef, macro, "*/"
16526      next
16527    }
16528  }
16529}
16530{ print }
16531_ACAWK
16532_ACEOF
16533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16534  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16535fi # test -n "$CONFIG_HEADERS"
16536
16537
16538eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16539shift
16540for ac_tag
16541do
16542  case $ac_tag in
16543  :[FHLC]) ac_mode=$ac_tag; continue;;
16544  esac
16545  case $ac_mode$ac_tag in
16546  :[FHL]*:*);;
16547  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16548  :[FH]-) ac_tag=-:-;;
16549  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16550  esac
16551  ac_save_IFS=$IFS
16552  IFS=:
16553  set x $ac_tag
16554  IFS=$ac_save_IFS
16555  shift
16556  ac_file=$1
16557  shift
16558
16559  case $ac_mode in
16560  :L) ac_source=$1;;
16561  :[FH])
16562    ac_file_inputs=
16563    for ac_f
16564    do
16565      case $ac_f in
16566      -) ac_f="$ac_tmp/stdin";;
16567      *) # Look for the file first in the build tree, then in the source tree
16568	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16569	 # because $ac_f cannot contain `:'.
16570	 test -f "$ac_f" ||
16571	   case $ac_f in
16572	   [\\/$]*) false;;
16573	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16574	   esac ||
16575	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16576      esac
16577      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16578      as_fn_append ac_file_inputs " '$ac_f'"
16579    done
16580
16581    # Let's still pretend it is `configure' which instantiates (i.e., don't
16582    # use $as_me), people would be surprised to read:
16583    #    /* config.h.  Generated by config.status.  */
16584    configure_input='Generated from '`
16585	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16586	`' by configure.'
16587    if test x"$ac_file" != x-; then
16588      configure_input="$ac_file.  $configure_input"
16589      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16590$as_echo "$as_me: creating $ac_file" >&6;}
16591    fi
16592    # Neutralize special characters interpreted by sed in replacement strings.
16593    case $configure_input in #(
16594    *\&* | *\|* | *\\* )
16595       ac_sed_conf_input=`$as_echo "$configure_input" |
16596       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16597    *) ac_sed_conf_input=$configure_input;;
16598    esac
16599
16600    case $ac_tag in
16601    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16602      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16603    esac
16604    ;;
16605  esac
16606
16607  ac_dir=`$as_dirname -- "$ac_file" ||
16608$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16609	 X"$ac_file" : 'X\(//\)[^/]' \| \
16610	 X"$ac_file" : 'X\(//\)$' \| \
16611	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16612$as_echo X"$ac_file" |
16613    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16614	    s//\1/
16615	    q
16616	  }
16617	  /^X\(\/\/\)[^/].*/{
16618	    s//\1/
16619	    q
16620	  }
16621	  /^X\(\/\/\)$/{
16622	    s//\1/
16623	    q
16624	  }
16625	  /^X\(\/\).*/{
16626	    s//\1/
16627	    q
16628	  }
16629	  s/.*/./; q'`
16630  as_dir="$ac_dir"; as_fn_mkdir_p
16631  ac_builddir=.
16632
16633case "$ac_dir" in
16634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16635*)
16636  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16637  # A ".." for each directory in $ac_dir_suffix.
16638  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16639  case $ac_top_builddir_sub in
16640  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16641  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16642  esac ;;
16643esac
16644ac_abs_top_builddir=$ac_pwd
16645ac_abs_builddir=$ac_pwd$ac_dir_suffix
16646# for backward compatibility:
16647ac_top_builddir=$ac_top_build_prefix
16648
16649case $srcdir in
16650  .)  # We are building in place.
16651    ac_srcdir=.
16652    ac_top_srcdir=$ac_top_builddir_sub
16653    ac_abs_top_srcdir=$ac_pwd ;;
16654  [\\/]* | ?:[\\/]* )  # Absolute name.
16655    ac_srcdir=$srcdir$ac_dir_suffix;
16656    ac_top_srcdir=$srcdir
16657    ac_abs_top_srcdir=$srcdir ;;
16658  *) # Relative name.
16659    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16660    ac_top_srcdir=$ac_top_build_prefix$srcdir
16661    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16662esac
16663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16664
16665
16666  case $ac_mode in
16667  :F)
16668  #
16669  # CONFIG_FILE
16670  #
16671
16672  case $INSTALL in
16673  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16674  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16675  esac
16676  ac_MKDIR_P=$MKDIR_P
16677  case $MKDIR_P in
16678  [\\/$]* | ?:[\\/]* ) ;;
16679  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16680  esac
16681_ACEOF
16682
16683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16684# If the template does not know about datarootdir, expand it.
16685# FIXME: This hack should be removed a few years after 2.60.
16686ac_datarootdir_hack=; ac_datarootdir_seen=
16687ac_sed_dataroot='
16688/datarootdir/ {
16689  p
16690  q
16691}
16692/@datadir@/p
16693/@docdir@/p
16694/@infodir@/p
16695/@localedir@/p
16696/@mandir@/p'
16697case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16698*datarootdir*) ac_datarootdir_seen=yes;;
16699*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16700  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16701$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16702_ACEOF
16703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16704  ac_datarootdir_hack='
16705  s&@datadir@&$datadir&g
16706  s&@docdir@&$docdir&g
16707  s&@infodir@&$infodir&g
16708  s&@localedir@&$localedir&g
16709  s&@mandir@&$mandir&g
16710  s&\\\${datarootdir}&$datarootdir&g' ;;
16711esac
16712_ACEOF
16713
16714# Neutralize VPATH when `$srcdir' = `.'.
16715# Shell code in configure.ac might set extrasub.
16716# FIXME: do we really want to maintain this feature?
16717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16718ac_sed_extra="$ac_vpsub
16719$extrasub
16720_ACEOF
16721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16722:t
16723/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16724s|@configure_input@|$ac_sed_conf_input|;t t
16725s&@top_builddir@&$ac_top_builddir_sub&;t t
16726s&@top_build_prefix@&$ac_top_build_prefix&;t t
16727s&@srcdir@&$ac_srcdir&;t t
16728s&@abs_srcdir@&$ac_abs_srcdir&;t t
16729s&@top_srcdir@&$ac_top_srcdir&;t t
16730s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16731s&@builddir@&$ac_builddir&;t t
16732s&@abs_builddir@&$ac_abs_builddir&;t t
16733s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16734s&@INSTALL@&$ac_INSTALL&;t t
16735s&@MKDIR_P@&$ac_MKDIR_P&;t t
16736$ac_datarootdir_hack
16737"
16738eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16739  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16740
16741test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16742  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16743  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16744      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16745  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16746which seems to be undefined.  Please make sure it is defined" >&5
16747$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16748which seems to be undefined.  Please make sure it is defined" >&2;}
16749
16750  rm -f "$ac_tmp/stdin"
16751  case $ac_file in
16752  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16753  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16754  esac \
16755  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16756 ;;
16757  :H)
16758  #
16759  # CONFIG_HEADER
16760  #
16761  if test x"$ac_file" != x-; then
16762    {
16763      $as_echo "/* $configure_input  */" \
16764      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16765    } >"$ac_tmp/config.h" \
16766      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16767    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16768      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16769$as_echo "$as_me: $ac_file is unchanged" >&6;}
16770    else
16771      rm -f "$ac_file"
16772      mv "$ac_tmp/config.h" "$ac_file" \
16773	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16774    fi
16775  else
16776    $as_echo "/* $configure_input  */" \
16777      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16778      || as_fn_error $? "could not create -" "$LINENO" 5
16779  fi
16780# Compute "$ac_file"'s index in $config_headers.
16781_am_arg="$ac_file"
16782_am_stamp_count=1
16783for _am_header in $config_headers :; do
16784  case $_am_header in
16785    $_am_arg | $_am_arg:* )
16786      break ;;
16787    * )
16788      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16789  esac
16790done
16791echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16792$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16793	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16794	 X"$_am_arg" : 'X\(//\)$' \| \
16795	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16796$as_echo X"$_am_arg" |
16797    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16798	    s//\1/
16799	    q
16800	  }
16801	  /^X\(\/\/\)[^/].*/{
16802	    s//\1/
16803	    q
16804	  }
16805	  /^X\(\/\/\)$/{
16806	    s//\1/
16807	    q
16808	  }
16809	  /^X\(\/\).*/{
16810	    s//\1/
16811	    q
16812	  }
16813	  s/.*/./; q'`/stamp-h$_am_stamp_count
16814 ;;
16815
16816  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16817$as_echo "$as_me: executing $ac_file commands" >&6;}
16818 ;;
16819  esac
16820
16821
16822  case $ac_file$ac_mode in
16823    "libtool":C)
16824
16825    # See if we are running on zsh, and set the options which allow our
16826    # commands through without removal of \ escapes.
16827    if test -n "${ZSH_VERSION+set}" ; then
16828      setopt NO_GLOB_SUBST
16829    fi
16830
16831    cfgfile="${ofile}T"
16832    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16833    $RM "$cfgfile"
16834
16835    cat <<_LT_EOF >> "$cfgfile"
16836#! $SHELL
16837
16838# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16839# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16840# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16841# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16842#
16843#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16844#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16845#                 Foundation, Inc.
16846#   Written by Gordon Matzigkeit, 1996
16847#
16848#   This file is part of GNU Libtool.
16849#
16850# GNU Libtool is free software; you can redistribute it and/or
16851# modify it under the terms of the GNU General Public License as
16852# published by the Free Software Foundation; either version 2 of
16853# the License, or (at your option) any later version.
16854#
16855# As a special exception to the GNU General Public License,
16856# if you distribute this file as part of a program or library that
16857# is built using GNU Libtool, you may include this file under the
16858# same distribution terms that you use for the rest of that program.
16859#
16860# GNU Libtool is distributed in the hope that it will be useful,
16861# but WITHOUT ANY WARRANTY; without even the implied warranty of
16862# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16863# GNU General Public License for more details.
16864#
16865# You should have received a copy of the GNU General Public License
16866# along with GNU Libtool; see the file COPYING.  If not, a copy
16867# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16868# obtained by writing to the Free Software Foundation, Inc.,
16869# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16870
16871
16872# The names of the tagged configurations supported by this script.
16873available_tags=""
16874
16875# ### BEGIN LIBTOOL CONFIG
16876
16877# Which release of libtool.m4 was used?
16878macro_version=$macro_version
16879macro_revision=$macro_revision
16880
16881# Whether or not to build shared libraries.
16882build_libtool_libs=$enable_shared
16883
16884# Whether or not to build static libraries.
16885build_old_libs=$enable_static
16886
16887# What type of objects to build.
16888pic_mode=$pic_mode
16889
16890# Whether or not to optimize for fast installation.
16891fast_install=$enable_fast_install
16892
16893# Shell to use when invoking shell scripts.
16894SHELL=$lt_SHELL
16895
16896# An echo program that protects backslashes.
16897ECHO=$lt_ECHO
16898
16899# The PATH separator for the build system.
16900PATH_SEPARATOR=$lt_PATH_SEPARATOR
16901
16902# The host system.
16903host_alias=$host_alias
16904host=$host
16905host_os=$host_os
16906
16907# The build system.
16908build_alias=$build_alias
16909build=$build
16910build_os=$build_os
16911
16912# A sed program that does not truncate output.
16913SED=$lt_SED
16914
16915# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16916Xsed="\$SED -e 1s/^X//"
16917
16918# A grep program that handles long lines.
16919GREP=$lt_GREP
16920
16921# An ERE matcher.
16922EGREP=$lt_EGREP
16923
16924# A literal string matcher.
16925FGREP=$lt_FGREP
16926
16927# A BSD- or MS-compatible name lister.
16928NM=$lt_NM
16929
16930# Whether we need soft or hard links.
16931LN_S=$lt_LN_S
16932
16933# What is the maximum length of a command?
16934max_cmd_len=$max_cmd_len
16935
16936# Object file suffix (normally "o").
16937objext=$ac_objext
16938
16939# Executable file suffix (normally "").
16940exeext=$exeext
16941
16942# whether the shell understands "unset".
16943lt_unset=$lt_unset
16944
16945# turn spaces into newlines.
16946SP2NL=$lt_lt_SP2NL
16947
16948# turn newlines into spaces.
16949NL2SP=$lt_lt_NL2SP
16950
16951# convert \$build file names to \$host format.
16952to_host_file_cmd=$lt_cv_to_host_file_cmd
16953
16954# convert \$build files to toolchain format.
16955to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16956
16957# An object symbol dumper.
16958OBJDUMP=$lt_OBJDUMP
16959
16960# Method to check whether dependent libraries are shared objects.
16961deplibs_check_method=$lt_deplibs_check_method
16962
16963# Command to use when deplibs_check_method = "file_magic".
16964file_magic_cmd=$lt_file_magic_cmd
16965
16966# How to find potential files when deplibs_check_method = "file_magic".
16967file_magic_glob=$lt_file_magic_glob
16968
16969# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16970want_nocaseglob=$lt_want_nocaseglob
16971
16972# DLL creation program.
16973DLLTOOL=$lt_DLLTOOL
16974
16975# Command to associate shared and link libraries.
16976sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16977
16978# The archiver.
16979AR=$lt_AR
16980
16981# Flags to create an archive.
16982AR_FLAGS=$lt_AR_FLAGS
16983
16984# How to feed a file listing to the archiver.
16985archiver_list_spec=$lt_archiver_list_spec
16986
16987# A symbol stripping program.
16988STRIP=$lt_STRIP
16989
16990# Commands used to install an old-style archive.
16991RANLIB=$lt_RANLIB
16992old_postinstall_cmds=$lt_old_postinstall_cmds
16993old_postuninstall_cmds=$lt_old_postuninstall_cmds
16994
16995# Whether to use a lock for old archive extraction.
16996lock_old_archive_extraction=$lock_old_archive_extraction
16997
16998# A C compiler.
16999LTCC=$lt_CC
17000
17001# LTCC compiler flags.
17002LTCFLAGS=$lt_CFLAGS
17003
17004# Take the output of nm and produce a listing of raw symbols and C names.
17005global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17006
17007# Transform the output of nm in a proper C declaration.
17008global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17009
17010# Transform the output of nm in a C name address pair.
17011global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17012
17013# Transform the output of nm in a C name address pair when lib prefix is needed.
17014global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17015
17016# Specify filename containing input files for \$NM.
17017nm_file_list_spec=$lt_nm_file_list_spec
17018
17019# The root where to search for dependent libraries,and in which our libraries should be installed.
17020lt_sysroot=$lt_sysroot
17021
17022# The name of the directory that contains temporary libtool files.
17023objdir=$objdir
17024
17025# Used to examine libraries when file_magic_cmd begins with "file".
17026MAGIC_CMD=$MAGIC_CMD
17027
17028# Must we lock files when doing compilation?
17029need_locks=$lt_need_locks
17030
17031# Manifest tool.
17032MANIFEST_TOOL=$lt_MANIFEST_TOOL
17033
17034# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17035DSYMUTIL=$lt_DSYMUTIL
17036
17037# Tool to change global to local symbols on Mac OS X.
17038NMEDIT=$lt_NMEDIT
17039
17040# Tool to manipulate fat objects and archives on Mac OS X.
17041LIPO=$lt_LIPO
17042
17043# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17044OTOOL=$lt_OTOOL
17045
17046# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17047OTOOL64=$lt_OTOOL64
17048
17049# Old archive suffix (normally "a").
17050libext=$libext
17051
17052# Shared library suffix (normally ".so").
17053shrext_cmds=$lt_shrext_cmds
17054
17055# The commands to extract the exported symbol list from a shared archive.
17056extract_expsyms_cmds=$lt_extract_expsyms_cmds
17057
17058# Variables whose values should be saved in libtool wrapper scripts and
17059# restored at link time.
17060variables_saved_for_relink=$lt_variables_saved_for_relink
17061
17062# Do we need the "lib" prefix for modules?
17063need_lib_prefix=$need_lib_prefix
17064
17065# Do we need a version for libraries?
17066need_version=$need_version
17067
17068# Library versioning type.
17069version_type=$version_type
17070
17071# Shared library runtime path variable.
17072runpath_var=$runpath_var
17073
17074# Shared library path variable.
17075shlibpath_var=$shlibpath_var
17076
17077# Is shlibpath searched before the hard-coded library search path?
17078shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17079
17080# Format of library name prefix.
17081libname_spec=$lt_libname_spec
17082
17083# List of archive names.  First name is the real one, the rest are links.
17084# The last name is the one that the linker finds with -lNAME
17085library_names_spec=$lt_library_names_spec
17086
17087# The coded name of the library, if different from the real name.
17088soname_spec=$lt_soname_spec
17089
17090# Permission mode override for installation of shared libraries.
17091install_override_mode=$lt_install_override_mode
17092
17093# Command to use after installation of a shared archive.
17094postinstall_cmds=$lt_postinstall_cmds
17095
17096# Command to use after uninstallation of a shared archive.
17097postuninstall_cmds=$lt_postuninstall_cmds
17098
17099# Commands used to finish a libtool library installation in a directory.
17100finish_cmds=$lt_finish_cmds
17101
17102# As "finish_cmds", except a single script fragment to be evaled but
17103# not shown.
17104finish_eval=$lt_finish_eval
17105
17106# Whether we should hardcode library paths into libraries.
17107hardcode_into_libs=$hardcode_into_libs
17108
17109# Compile-time system search path for libraries.
17110sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17111
17112# Run-time system search path for libraries.
17113sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17114
17115# Whether dlopen is supported.
17116dlopen_support=$enable_dlopen
17117
17118# Whether dlopen of programs is supported.
17119dlopen_self=$enable_dlopen_self
17120
17121# Whether dlopen of statically linked programs is supported.
17122dlopen_self_static=$enable_dlopen_self_static
17123
17124# Commands to strip libraries.
17125old_striplib=$lt_old_striplib
17126striplib=$lt_striplib
17127
17128
17129# The linker used to build libraries.
17130LD=$lt_LD
17131
17132# How to create reloadable object files.
17133reload_flag=$lt_reload_flag
17134reload_cmds=$lt_reload_cmds
17135
17136# Commands used to build an old-style archive.
17137old_archive_cmds=$lt_old_archive_cmds
17138
17139# A language specific compiler.
17140CC=$lt_compiler
17141
17142# Is the compiler the GNU compiler?
17143with_gcc=$GCC
17144
17145# Compiler flag to turn off builtin functions.
17146no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17147
17148# Additional compiler flags for building library objects.
17149pic_flag=$lt_lt_prog_compiler_pic
17150
17151# How to pass a linker flag through the compiler.
17152wl=$lt_lt_prog_compiler_wl
17153
17154# Compiler flag to prevent dynamic linking.
17155link_static_flag=$lt_lt_prog_compiler_static
17156
17157# Does compiler simultaneously support -c and -o options?
17158compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17159
17160# Whether or not to add -lc for building shared libraries.
17161build_libtool_need_lc=$archive_cmds_need_lc
17162
17163# Whether or not to disallow shared libs when runtime libs are static.
17164allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17165
17166# Compiler flag to allow reflexive dlopens.
17167export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17168
17169# Compiler flag to generate shared objects directly from archives.
17170whole_archive_flag_spec=$lt_whole_archive_flag_spec
17171
17172# Whether the compiler copes with passing no objects directly.
17173compiler_needs_object=$lt_compiler_needs_object
17174
17175# Create an old-style archive from a shared archive.
17176old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17177
17178# Create a temporary old-style archive to link instead of a shared archive.
17179old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17180
17181# Commands used to build a shared archive.
17182archive_cmds=$lt_archive_cmds
17183archive_expsym_cmds=$lt_archive_expsym_cmds
17184
17185# Commands used to build a loadable module if different from building
17186# a shared archive.
17187module_cmds=$lt_module_cmds
17188module_expsym_cmds=$lt_module_expsym_cmds
17189
17190# Whether we are building with GNU ld or not.
17191with_gnu_ld=$lt_with_gnu_ld
17192
17193# Flag that allows shared libraries with undefined symbols to be built.
17194allow_undefined_flag=$lt_allow_undefined_flag
17195
17196# Flag that enforces no undefined symbols.
17197no_undefined_flag=$lt_no_undefined_flag
17198
17199# Flag to hardcode \$libdir into a binary during linking.
17200# This must work even if \$libdir does not exist
17201hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17202
17203# Whether we need a single "-rpath" flag with a separated argument.
17204hardcode_libdir_separator=$lt_hardcode_libdir_separator
17205
17206# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17207# DIR into the resulting binary.
17208hardcode_direct=$hardcode_direct
17209
17210# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17211# DIR into the resulting binary and the resulting library dependency is
17212# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17213# library is relocated.
17214hardcode_direct_absolute=$hardcode_direct_absolute
17215
17216# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17217# into the resulting binary.
17218hardcode_minus_L=$hardcode_minus_L
17219
17220# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17221# into the resulting binary.
17222hardcode_shlibpath_var=$hardcode_shlibpath_var
17223
17224# Set to "yes" if building a shared library automatically hardcodes DIR
17225# into the library and all subsequent libraries and executables linked
17226# against it.
17227hardcode_automatic=$hardcode_automatic
17228
17229# Set to yes if linker adds runtime paths of dependent libraries
17230# to runtime path list.
17231inherit_rpath=$inherit_rpath
17232
17233# Whether libtool must link a program against all its dependency libraries.
17234link_all_deplibs=$link_all_deplibs
17235
17236# Set to "yes" if exported symbols are required.
17237always_export_symbols=$always_export_symbols
17238
17239# The commands to list exported symbols.
17240export_symbols_cmds=$lt_export_symbols_cmds
17241
17242# Symbols that should not be listed in the preloaded symbols.
17243exclude_expsyms=$lt_exclude_expsyms
17244
17245# Symbols that must always be exported.
17246include_expsyms=$lt_include_expsyms
17247
17248# Commands necessary for linking programs (against libraries) with templates.
17249prelink_cmds=$lt_prelink_cmds
17250
17251# Commands necessary for finishing linking programs.
17252postlink_cmds=$lt_postlink_cmds
17253
17254# Specify filename containing input files.
17255file_list_spec=$lt_file_list_spec
17256
17257# How to hardcode a shared library path into an executable.
17258hardcode_action=$hardcode_action
17259
17260# ### END LIBTOOL CONFIG
17261
17262_LT_EOF
17263
17264  case $host_os in
17265  aix3*)
17266    cat <<\_LT_EOF >> "$cfgfile"
17267# AIX sometimes has problems with the GCC collect2 program.  For some
17268# reason, if we set the COLLECT_NAMES environment variable, the problems
17269# vanish in a puff of smoke.
17270if test "X${COLLECT_NAMES+set}" != Xset; then
17271  COLLECT_NAMES=
17272  export COLLECT_NAMES
17273fi
17274_LT_EOF
17275    ;;
17276  esac
17277
17278
17279ltmain="$ac_aux_dir/ltmain.sh"
17280
17281
17282  # We use sed instead of cat because bash on DJGPP gets confused if
17283  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17284  # text mode, it properly converts lines to CR/LF.  This bash problem
17285  # is reportedly fixed, but why not run on old versions too?
17286  sed '$q' "$ltmain" >> "$cfgfile" \
17287     || (rm -f "$cfgfile"; exit 1)
17288
17289  if test x"$xsi_shell" = xyes; then
17290  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17291func_dirname ()\
17292{\
17293\    case ${1} in\
17294\      */*) func_dirname_result="${1%/*}${2}" ;;\
17295\      *  ) func_dirname_result="${3}" ;;\
17296\    esac\
17297} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17298  && mv -f "$cfgfile.tmp" "$cfgfile" \
17299    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17300test 0 -eq $? || _lt_function_replace_fail=:
17301
17302
17303  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17304func_basename ()\
17305{\
17306\    func_basename_result="${1##*/}"\
17307} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17308  && mv -f "$cfgfile.tmp" "$cfgfile" \
17309    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17310test 0 -eq $? || _lt_function_replace_fail=:
17311
17312
17313  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17314func_dirname_and_basename ()\
17315{\
17316\    case ${1} in\
17317\      */*) func_dirname_result="${1%/*}${2}" ;;\
17318\      *  ) func_dirname_result="${3}" ;;\
17319\    esac\
17320\    func_basename_result="${1##*/}"\
17321} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17322  && mv -f "$cfgfile.tmp" "$cfgfile" \
17323    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17324test 0 -eq $? || _lt_function_replace_fail=:
17325
17326
17327  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17328func_stripname ()\
17329{\
17330\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17331\    # positional parameters, so assign one to ordinary parameter first.\
17332\    func_stripname_result=${3}\
17333\    func_stripname_result=${func_stripname_result#"${1}"}\
17334\    func_stripname_result=${func_stripname_result%"${2}"}\
17335} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17336  && mv -f "$cfgfile.tmp" "$cfgfile" \
17337    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17338test 0 -eq $? || _lt_function_replace_fail=:
17339
17340
17341  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17342func_split_long_opt ()\
17343{\
17344\    func_split_long_opt_name=${1%%=*}\
17345\    func_split_long_opt_arg=${1#*=}\
17346} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17347  && mv -f "$cfgfile.tmp" "$cfgfile" \
17348    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17349test 0 -eq $? || _lt_function_replace_fail=:
17350
17351
17352  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17353func_split_short_opt ()\
17354{\
17355\    func_split_short_opt_arg=${1#??}\
17356\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17357} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17358  && mv -f "$cfgfile.tmp" "$cfgfile" \
17359    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17360test 0 -eq $? || _lt_function_replace_fail=:
17361
17362
17363  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17364func_lo2o ()\
17365{\
17366\    case ${1} in\
17367\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17368\      *)    func_lo2o_result=${1} ;;\
17369\    esac\
17370} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17371  && mv -f "$cfgfile.tmp" "$cfgfile" \
17372    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17373test 0 -eq $? || _lt_function_replace_fail=:
17374
17375
17376  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17377func_xform ()\
17378{\
17379    func_xform_result=${1%.*}.lo\
17380} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17381  && mv -f "$cfgfile.tmp" "$cfgfile" \
17382    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17383test 0 -eq $? || _lt_function_replace_fail=:
17384
17385
17386  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17387func_arith ()\
17388{\
17389    func_arith_result=$(( $* ))\
17390} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17391  && mv -f "$cfgfile.tmp" "$cfgfile" \
17392    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17393test 0 -eq $? || _lt_function_replace_fail=:
17394
17395
17396  sed -e '/^func_len ()$/,/^} # func_len /c\
17397func_len ()\
17398{\
17399    func_len_result=${#1}\
17400} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17401  && mv -f "$cfgfile.tmp" "$cfgfile" \
17402    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17403test 0 -eq $? || _lt_function_replace_fail=:
17404
17405fi
17406
17407if test x"$lt_shell_append" = xyes; then
17408  sed -e '/^func_append ()$/,/^} # func_append /c\
17409func_append ()\
17410{\
17411    eval "${1}+=\\${2}"\
17412} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17413  && mv -f "$cfgfile.tmp" "$cfgfile" \
17414    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17415test 0 -eq $? || _lt_function_replace_fail=:
17416
17417
17418  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17419func_append_quoted ()\
17420{\
17421\    func_quote_for_eval "${2}"\
17422\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17423} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17424  && mv -f "$cfgfile.tmp" "$cfgfile" \
17425    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17426test 0 -eq $? || _lt_function_replace_fail=:
17427
17428
17429  # Save a `func_append' function call where possible by direct use of '+='
17430  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17431    && mv -f "$cfgfile.tmp" "$cfgfile" \
17432      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17433  test 0 -eq $? || _lt_function_replace_fail=:
17434else
17435  # Save a `func_append' function call even when '+=' is not available
17436  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17437    && mv -f "$cfgfile.tmp" "$cfgfile" \
17438      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17439  test 0 -eq $? || _lt_function_replace_fail=:
17440fi
17441
17442if test x"$_lt_function_replace_fail" = x":"; then
17443  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17444$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17445fi
17446
17447
17448   mv -f "$cfgfile" "$ofile" ||
17449    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17450  chmod +x "$ofile"
17451
17452 ;;
17453
17454  esac
17455done # for ac_tag
17456
17457
17458as_fn_exit 0
17459_ACEOF
17460ac_clean_files=$ac_clean_files_save
17461
17462test $ac_write_fail = 0 ||
17463  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17464
17465
17466# configure is writing to config.log, and then calls config.status.
17467# config.status does its own redirection, appending to config.log.
17468# Unfortunately, on DOS this fails, as config.log is still kept open
17469# by configure, so config.status won't be able to write to it; its
17470# output is simply discarded.  So we exec the FD to /dev/null,
17471# effectively closing config.log, so it can be properly (re)opened and
17472# appended to by config.status.  When coming back to configure, we
17473# need to make the FD available again.
17474if test "$no_create" != yes; then
17475  ac_cs_success=:
17476  ac_config_status_args=
17477  test "$silent" = yes &&
17478    ac_config_status_args="$ac_config_status_args --quiet"
17479  exec 5>/dev/null
17480  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17481  exec 5>>config.log
17482  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17483  # would make configure fail if this is the last instruction.
17484  $ac_cs_success || as_fn_exit 1
17485fi
17486if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17487  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17488$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17489fi
17490
17491