1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for cgi 0.10.
4#
5# Report bugs to <courier-users@lists.sourceforge.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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script 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='cgi'
592PACKAGE_TARNAME='cgi'
593PACKAGE_VERSION='0.10'
594PACKAGE_STRING='cgi 0.10'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="cgi.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639LT_SYS_LIBRARY_PATH
640OTOOL64
641OTOOL
642LIPO
643NMEDIT
644DSYMUTIL
645MANIFEST_TOOL
646RANLIB
647ac_ct_AR
648AR
649DLLTOOL
650OBJDUMP
651NM
652ac_ct_DUMPBIN
653DUMPBIN
654LD
655FGREP
656SED
657host_os
658host_vendor
659host_cpu
660host
661build_os
662build_vendor
663build_cpu
664build
665LIBTOOL
666LN_S
667EGREP
668GREP
669CPP
670am__fastdepCC_FALSE
671am__fastdepCC_TRUE
672CCDEPMODE
673am__nodep
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__include
678DEPDIR
679OBJEXT
680EXEEXT
681ac_ct_CC
682CPPFLAGS
683LDFLAGS
684CFLAGS
685CC
686AM_BACKSLASH
687AM_DEFAULT_VERBOSITY
688AM_DEFAULT_V
689AM_V
690am__untar
691am__tar
692AMTAR
693am__leading_dot
694SET_MAKE
695AWK
696mkdir_p
697MKDIR_P
698INSTALL_STRIP_PROGRAM
699STRIP
700install_sh
701MAKEINFO
702AUTOHEADER
703AUTOMAKE
704AUTOCONF
705ACLOCAL
706VERSION
707PACKAGE
708CYGPATH_W
709am__isrc
710INSTALL_DATA
711INSTALL_SCRIPT
712INSTALL_PROGRAM
713target_alias
714host_alias
715build_alias
716LIBS
717ECHO_T
718ECHO_N
719ECHO_C
720DEFS
721mandir
722localedir
723libdir
724psdir
725pdfdir
726dvidir
727htmldir
728infodir
729docdir
730oldincludedir
731includedir
732localstatedir
733sharedstatedir
734sysconfdir
735datadir
736datarootdir
737libexecdir
738sbindir
739bindir
740program_transform_name
741prefix
742exec_prefix
743PACKAGE_URL
744PACKAGE_BUGREPORT
745PACKAGE_STRING
746PACKAGE_VERSION
747PACKAGE_TARNAME
748PACKAGE_NAME
749PATH_SEPARATOR
750SHELL
751am__quote'
752ac_subst_files=''
753ac_user_opts='
754enable_option_checking
755enable_silent_rules
756enable_dependency_tracking
757enable_shared
758enable_static
759with_pic
760enable_fast_install
761with_aix_soname
762with_gnu_ld
763with_sysroot
764enable_libtool_lock
765with_formdata
766with_maxargsize
767with_maxformargsize
768enable_largefile
769'
770      ac_precious_vars='build_alias
771host_alias
772target_alias
773CC
774CFLAGS
775LDFLAGS
776LIBS
777CPPFLAGS
778CPP
779LT_SYS_LIBRARY_PATH'
780
781
782# Initialize some variables set by options.
783ac_init_help=
784ac_init_version=false
785ac_unrecognized_opts=
786ac_unrecognized_sep=
787# The variables have the same names as the options, with
788# dashes changed to underlines.
789cache_file=/dev/null
790exec_prefix=NONE
791no_create=
792no_recursion=
793prefix=NONE
794program_prefix=NONE
795program_suffix=NONE
796program_transform_name=s,x,x,
797silent=
798site=
799srcdir=
800verbose=
801x_includes=NONE
802x_libraries=NONE
803
804# Installation directory options.
805# These are left unexpanded so users can "make install exec_prefix=/foo"
806# and all the variables that are supposed to be based on exec_prefix
807# by default will actually change.
808# Use braces instead of parens because sh, perl, etc. also accept them.
809# (The list follows the same order as the GNU Coding Standards.)
810bindir='${exec_prefix}/bin'
811sbindir='${exec_prefix}/sbin'
812libexecdir='${exec_prefix}/libexec'
813datarootdir='${prefix}/share'
814datadir='${datarootdir}'
815sysconfdir='${prefix}/etc'
816sharedstatedir='${prefix}/com'
817localstatedir='${prefix}/var'
818includedir='${prefix}/include'
819oldincludedir='/usr/include'
820docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821infodir='${datarootdir}/info'
822htmldir='${docdir}'
823dvidir='${docdir}'
824pdfdir='${docdir}'
825psdir='${docdir}'
826libdir='${exec_prefix}/lib'
827localedir='${datarootdir}/locale'
828mandir='${datarootdir}/man'
829
830ac_prev=
831ac_dashdash=
832for ac_option
833do
834  # If the previous option needs an argument, assign it.
835  if test -n "$ac_prev"; then
836    eval $ac_prev=\$ac_option
837    ac_prev=
838    continue
839  fi
840
841  case $ac_option in
842  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843  *=)   ac_optarg= ;;
844  *)    ac_optarg=yes ;;
845  esac
846
847  # Accept the important Cygnus configure options, so we can diagnose typos.
848
849  case $ac_dashdash$ac_option in
850  --)
851    ac_dashdash=yes ;;
852
853  -bindir | --bindir | --bindi | --bind | --bin | --bi)
854    ac_prev=bindir ;;
855  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856    bindir=$ac_optarg ;;
857
858  -build | --build | --buil | --bui | --bu)
859    ac_prev=build_alias ;;
860  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861    build_alias=$ac_optarg ;;
862
863  -cache-file | --cache-file | --cache-fil | --cache-fi \
864  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865    ac_prev=cache_file ;;
866  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868    cache_file=$ac_optarg ;;
869
870  --config-cache | -C)
871    cache_file=config.cache ;;
872
873  -datadir | --datadir | --datadi | --datad)
874    ac_prev=datadir ;;
875  -datadir=* | --datadir=* | --datadi=* | --datad=*)
876    datadir=$ac_optarg ;;
877
878  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879  | --dataroo | --dataro | --datar)
880    ac_prev=datarootdir ;;
881  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883    datarootdir=$ac_optarg ;;
884
885  -disable-* | --disable-*)
886    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887    # Reject names that are not valid shell variable names.
888    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889      as_fn_error $? "invalid feature name: $ac_useropt"
890    ac_useropt_orig=$ac_useropt
891    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892    case $ac_user_opts in
893      *"
894"enable_$ac_useropt"
895"*) ;;
896      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897	 ac_unrecognized_sep=', ';;
898    esac
899    eval enable_$ac_useropt=no ;;
900
901  -docdir | --docdir | --docdi | --doc | --do)
902    ac_prev=docdir ;;
903  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904    docdir=$ac_optarg ;;
905
906  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907    ac_prev=dvidir ;;
908  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909    dvidir=$ac_optarg ;;
910
911  -enable-* | --enable-*)
912    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913    # Reject names that are not valid shell variable names.
914    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915      as_fn_error $? "invalid feature name: $ac_useropt"
916    ac_useropt_orig=$ac_useropt
917    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918    case $ac_user_opts in
919      *"
920"enable_$ac_useropt"
921"*) ;;
922      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923	 ac_unrecognized_sep=', ';;
924    esac
925    eval enable_$ac_useropt=\$ac_optarg ;;
926
927  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929  | --exec | --exe | --ex)
930    ac_prev=exec_prefix ;;
931  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933  | --exec=* | --exe=* | --ex=*)
934    exec_prefix=$ac_optarg ;;
935
936  -gas | --gas | --ga | --g)
937    # Obsolete; use --with-gas.
938    with_gas=yes ;;
939
940  -help | --help | --hel | --he | -h)
941    ac_init_help=long ;;
942  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943    ac_init_help=recursive ;;
944  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945    ac_init_help=short ;;
946
947  -host | --host | --hos | --ho)
948    ac_prev=host_alias ;;
949  -host=* | --host=* | --hos=* | --ho=*)
950    host_alias=$ac_optarg ;;
951
952  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953    ac_prev=htmldir ;;
954  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955  | --ht=*)
956    htmldir=$ac_optarg ;;
957
958  -includedir | --includedir | --includedi | --included | --include \
959  | --includ | --inclu | --incl | --inc)
960    ac_prev=includedir ;;
961  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962  | --includ=* | --inclu=* | --incl=* | --inc=*)
963    includedir=$ac_optarg ;;
964
965  -infodir | --infodir | --infodi | --infod | --info | --inf)
966    ac_prev=infodir ;;
967  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968    infodir=$ac_optarg ;;
969
970  -libdir | --libdir | --libdi | --libd)
971    ac_prev=libdir ;;
972  -libdir=* | --libdir=* | --libdi=* | --libd=*)
973    libdir=$ac_optarg ;;
974
975  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976  | --libexe | --libex | --libe)
977    ac_prev=libexecdir ;;
978  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979  | --libexe=* | --libex=* | --libe=*)
980    libexecdir=$ac_optarg ;;
981
982  -localedir | --localedir | --localedi | --localed | --locale)
983    ac_prev=localedir ;;
984  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985    localedir=$ac_optarg ;;
986
987  -localstatedir | --localstatedir | --localstatedi | --localstated \
988  | --localstate | --localstat | --localsta | --localst | --locals)
989    ac_prev=localstatedir ;;
990  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992    localstatedir=$ac_optarg ;;
993
994  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995    ac_prev=mandir ;;
996  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997    mandir=$ac_optarg ;;
998
999  -nfp | --nfp | --nf)
1000    # Obsolete; use --without-fp.
1001    with_fp=no ;;
1002
1003  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004  | --no-cr | --no-c | -n)
1005    no_create=yes ;;
1006
1007  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009    no_recursion=yes ;;
1010
1011  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013  | --oldin | --oldi | --old | --ol | --o)
1014    ac_prev=oldincludedir ;;
1015  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018    oldincludedir=$ac_optarg ;;
1019
1020  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021    ac_prev=prefix ;;
1022  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023    prefix=$ac_optarg ;;
1024
1025  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026  | --program-pre | --program-pr | --program-p)
1027    ac_prev=program_prefix ;;
1028  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030    program_prefix=$ac_optarg ;;
1031
1032  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033  | --program-suf | --program-su | --program-s)
1034    ac_prev=program_suffix ;;
1035  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037    program_suffix=$ac_optarg ;;
1038
1039  -program-transform-name | --program-transform-name \
1040  | --program-transform-nam | --program-transform-na \
1041  | --program-transform-n | --program-transform- \
1042  | --program-transform | --program-transfor \
1043  | --program-transfo | --program-transf \
1044  | --program-trans | --program-tran \
1045  | --progr-tra | --program-tr | --program-t)
1046    ac_prev=program_transform_name ;;
1047  -program-transform-name=* | --program-transform-name=* \
1048  | --program-transform-nam=* | --program-transform-na=* \
1049  | --program-transform-n=* | --program-transform-=* \
1050  | --program-transform=* | --program-transfor=* \
1051  | --program-transfo=* | --program-transf=* \
1052  | --program-trans=* | --program-tran=* \
1053  | --progr-tra=* | --program-tr=* | --program-t=*)
1054    program_transform_name=$ac_optarg ;;
1055
1056  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057    ac_prev=pdfdir ;;
1058  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059    pdfdir=$ac_optarg ;;
1060
1061  -psdir | --psdir | --psdi | --psd | --ps)
1062    ac_prev=psdir ;;
1063  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064    psdir=$ac_optarg ;;
1065
1066  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067  | -silent | --silent | --silen | --sile | --sil)
1068    silent=yes ;;
1069
1070  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071    ac_prev=sbindir ;;
1072  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073  | --sbi=* | --sb=*)
1074    sbindir=$ac_optarg ;;
1075
1076  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078  | --sharedst | --shareds | --shared | --share | --shar \
1079  | --sha | --sh)
1080    ac_prev=sharedstatedir ;;
1081  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084  | --sha=* | --sh=*)
1085    sharedstatedir=$ac_optarg ;;
1086
1087  -site | --site | --sit)
1088    ac_prev=site ;;
1089  -site=* | --site=* | --sit=*)
1090    site=$ac_optarg ;;
1091
1092  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093    ac_prev=srcdir ;;
1094  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095    srcdir=$ac_optarg ;;
1096
1097  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098  | --syscon | --sysco | --sysc | --sys | --sy)
1099    ac_prev=sysconfdir ;;
1100  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102    sysconfdir=$ac_optarg ;;
1103
1104  -target | --target | --targe | --targ | --tar | --ta | --t)
1105    ac_prev=target_alias ;;
1106  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107    target_alias=$ac_optarg ;;
1108
1109  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110    verbose=yes ;;
1111
1112  -version | --version | --versio | --versi | --vers | -V)
1113    ac_init_version=: ;;
1114
1115  -with-* | --with-*)
1116    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117    # Reject names that are not valid shell variable names.
1118    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119      as_fn_error $? "invalid package name: $ac_useropt"
1120    ac_useropt_orig=$ac_useropt
1121    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122    case $ac_user_opts in
1123      *"
1124"with_$ac_useropt"
1125"*) ;;
1126      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127	 ac_unrecognized_sep=', ';;
1128    esac
1129    eval with_$ac_useropt=\$ac_optarg ;;
1130
1131  -without-* | --without-*)
1132    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133    # Reject names that are not valid shell variable names.
1134    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135      as_fn_error $? "invalid package name: $ac_useropt"
1136    ac_useropt_orig=$ac_useropt
1137    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138    case $ac_user_opts in
1139      *"
1140"with_$ac_useropt"
1141"*) ;;
1142      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143	 ac_unrecognized_sep=', ';;
1144    esac
1145    eval with_$ac_useropt=no ;;
1146
1147  --x)
1148    # Obsolete; use --with-x.
1149    with_x=yes ;;
1150
1151  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152  | --x-incl | --x-inc | --x-in | --x-i)
1153    ac_prev=x_includes ;;
1154  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156    x_includes=$ac_optarg ;;
1157
1158  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160    ac_prev=x_libraries ;;
1161  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163    x_libraries=$ac_optarg ;;
1164
1165  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166Try \`$0 --help' for more information"
1167    ;;
1168
1169  *=*)
1170    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171    # Reject names that are not valid shell variable names.
1172    case $ac_envvar in #(
1173      '' | [0-9]* | *[!_$as_cr_alnum]* )
1174      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175    esac
1176    eval $ac_envvar=\$ac_optarg
1177    export $ac_envvar ;;
1178
1179  *)
1180    # FIXME: should be removed in autoconf 3.0.
1181    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185    ;;
1186
1187  esac
1188done
1189
1190if test -n "$ac_prev"; then
1191  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192  as_fn_error $? "missing argument to $ac_option"
1193fi
1194
1195if test -n "$ac_unrecognized_opts"; then
1196  case $enable_option_checking in
1197    no) ;;
1198    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200  esac
1201fi
1202
1203# Check all directory arguments for consistency.
1204for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205		datadir sysconfdir sharedstatedir localstatedir includedir \
1206		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207		libdir localedir mandir
1208do
1209  eval ac_val=\$$ac_var
1210  # Remove trailing slashes.
1211  case $ac_val in
1212    */ )
1213      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214      eval $ac_var=\$ac_val;;
1215  esac
1216  # Be sure to have absolute directory names.
1217  case $ac_val in
1218    [\\/$]* | ?:[\\/]* )  continue;;
1219    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220  esac
1221  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222done
1223
1224# There might be people who depend on the old broken behavior: `$host'
1225# used to hold the argument of --host etc.
1226# FIXME: To remove some day.
1227build=$build_alias
1228host=$host_alias
1229target=$target_alias
1230
1231# FIXME: To remove some day.
1232if test "x$host_alias" != x; then
1233  if test "x$build_alias" = x; then
1234    cross_compiling=maybe
1235  elif test "x$build_alias" != "x$host_alias"; then
1236    cross_compiling=yes
1237  fi
1238fi
1239
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
1244
1245
1246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249  as_fn_error $? "working directory cannot be determined"
1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251  as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256  ac_srcdir_defaulted=yes
1257  # Try the directory containing this script, then the parent directory.
1258  ac_confdir=`$as_dirname -- "$as_myself" ||
1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260	 X"$as_myself" : 'X\(//\)[^/]' \| \
1261	 X"$as_myself" : 'X\(//\)$' \| \
1262	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263$as_echo X"$as_myself" |
1264    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\/\)[^/].*/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\/\)$/{
1273	    s//\1/
1274	    q
1275	  }
1276	  /^X\(\/\).*/{
1277	    s//\1/
1278	    q
1279	  }
1280	  s/.*/./; q'`
1281  srcdir=$ac_confdir
1282  if test ! -r "$srcdir/$ac_unique_file"; then
1283    srcdir=..
1284  fi
1285else
1286  ac_srcdir_defaulted=no
1287fi
1288if test ! -r "$srcdir/$ac_unique_file"; then
1289  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291fi
1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
1294	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295	pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298  srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308  eval ac_env_${ac_var}_value=\$${ac_var}
1309  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
1312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317  # Omit some internal or obsolete options to make the list less imposing.
1318  # This message is too long to be a string in the A/UX 3.1 sh.
1319  cat <<_ACEOF
1320\`configure' configures cgi 0.10 to adapt to many kinds of systems.
1321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330  -h, --help              display this help and exit
1331      --help=short        display options specific to this package
1332      --help=recursive    display the short help of all the included packages
1333  -V, --version           display version information and exit
1334  -q, --quiet, --silent   do not print \`checking ...' messages
1335      --cache-file=FILE   cache test results in FILE [disabled]
1336  -C, --config-cache      alias for \`--cache-file=config.cache'
1337  -n, --no-create         do not create output files
1338      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340Installation directories:
1341  --prefix=PREFIX         install architecture-independent files in PREFIX
1342                          [$ac_default_prefix]
1343  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                          [PREFIX]
1345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
1354  --bindir=DIR            user executables [EPREFIX/bin]
1355  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1356  --libexecdir=DIR        program executables [EPREFIX/libexec]
1357  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1358  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1359  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1360  --libdir=DIR            object code libraries [EPREFIX/lib]
1361  --includedir=DIR        C header files [PREFIX/include]
1362  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1363  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1364  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1365  --infodir=DIR           info documentation [DATAROOTDIR/info]
1366  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1367  --mandir=DIR            man documentation [DATAROOTDIR/man]
1368  --docdir=DIR            documentation root [DATAROOTDIR/doc/cgi]
1369  --htmldir=DIR           html documentation [DOCDIR]
1370  --dvidir=DIR            dvi documentation [DOCDIR]
1371  --pdfdir=DIR            pdf documentation [DOCDIR]
1372  --psdir=DIR             ps documentation [DOCDIR]
1373_ACEOF
1374
1375  cat <<\_ACEOF
1376
1377Program names:
1378  --program-prefix=PREFIX            prepend PREFIX to installed program names
1379  --program-suffix=SUFFIX            append SUFFIX to installed program names
1380  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1381
1382System types:
1383  --build=BUILD     configure for building on BUILD [guessed]
1384  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389  case $ac_init_help in
1390     short | recursive ) echo "Configuration of cgi 0.10:";;
1391   esac
1392  cat <<\_ACEOF
1393
1394Optional Features:
1395  --disable-option-checking  ignore unrecognized --enable/--with options
1396  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398  --enable-silent-rules   less verbose build output (undo: "make V=1")
1399  --disable-silent-rules  verbose build output (undo: "make V=0")
1400  --enable-dependency-tracking
1401                          do not reject slow dependency extractors
1402  --disable-dependency-tracking
1403                          speeds up one-time build
1404  --enable-shared[=PKGS]  build shared libraries [default=yes]
1405  --enable-static[=PKGS]  build static libraries [default=yes]
1406  --enable-fast-install[=PKGS]
1407                          optimize for fast installation [default=yes]
1408  --disable-libtool-lock  avoid locking (might break parallel builds)
1409  --disable-largefile     omit support for large files
1410
1411Optional Packages:
1412  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1413  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1414  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1415                          both]
1416  --with-aix-soname=aix|svr4|both
1417                          shared library versioning (aka "SONAME") variant to
1418                          provide on AIX, [default=aix].
1419  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1420  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1421                          compiler's sysroot if not specified).
1422  --with-formdata                Compile support for multipart/formdata
1423  --with-maxargsize=nbytes       Limit maximum size of CGI args
1424  --with-maxformargsize=nbytes   Maximum size of multipart/formdata uploads
1425
1426Some influential environment variables:
1427  CC          C compiler command
1428  CFLAGS      C compiler flags
1429  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1430              nonstandard directory <lib dir>
1431  LIBS        libraries to pass to the linker, e.g. -l<library>
1432  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433              you have headers in a nonstandard directory <include dir>
1434  CPP         C preprocessor
1435  LT_SYS_LIBRARY_PATH
1436              User-defined run-time library search path.
1437
1438Use these variables to override the choices made by `configure' or to help
1439it to find libraries and programs with nonstandard names/locations.
1440
1441Report bugs to <courier-users@lists.sourceforge.net>.
1442_ACEOF
1443ac_status=$?
1444fi
1445
1446if test "$ac_init_help" = "recursive"; then
1447  # If there are subdirs, report their specific --help.
1448  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449    test -d "$ac_dir" ||
1450      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451      continue
1452    ac_builddir=.
1453
1454case "$ac_dir" in
1455.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456*)
1457  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458  # A ".." for each directory in $ac_dir_suffix.
1459  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460  case $ac_top_builddir_sub in
1461  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463  esac ;;
1464esac
1465ac_abs_top_builddir=$ac_pwd
1466ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467# for backward compatibility:
1468ac_top_builddir=$ac_top_build_prefix
1469
1470case $srcdir in
1471  .)  # We are building in place.
1472    ac_srcdir=.
1473    ac_top_srcdir=$ac_top_builddir_sub
1474    ac_abs_top_srcdir=$ac_pwd ;;
1475  [\\/]* | ?:[\\/]* )  # Absolute name.
1476    ac_srcdir=$srcdir$ac_dir_suffix;
1477    ac_top_srcdir=$srcdir
1478    ac_abs_top_srcdir=$srcdir ;;
1479  *) # Relative name.
1480    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481    ac_top_srcdir=$ac_top_build_prefix$srcdir
1482    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483esac
1484ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486    cd "$ac_dir" || { ac_status=$?; continue; }
1487    # Check for guested configure.
1488    if test -f "$ac_srcdir/configure.gnu"; then
1489      echo &&
1490      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491    elif test -f "$ac_srcdir/configure"; then
1492      echo &&
1493      $SHELL "$ac_srcdir/configure" --help=recursive
1494    else
1495      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496    fi || ac_status=$?
1497    cd "$ac_pwd" || { ac_status=$?; break; }
1498  done
1499fi
1500
1501test -n "$ac_init_help" && exit $ac_status
1502if $ac_init_version; then
1503  cat <<\_ACEOF
1504cgi configure 0.10
1505generated by GNU Autoconf 2.69
1506
1507Copyright (C) 2012 Free Software Foundation, Inc.
1508This configure script is free software; the Free Software Foundation
1509gives unlimited permission to copy, distribute and modify it.
1510_ACEOF
1511  exit
1512fi
1513
1514## ------------------------ ##
1515## Autoconf initialization. ##
1516## ------------------------ ##
1517
1518# ac_fn_c_try_compile LINENO
1519# --------------------------
1520# Try to compile conftest.$ac_ext, and return whether this succeeded.
1521ac_fn_c_try_compile ()
1522{
1523  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524  rm -f conftest.$ac_objext
1525  if { { ac_try="$ac_compile"
1526case "(($ac_try" in
1527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528  *) ac_try_echo=$ac_try;;
1529esac
1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531$as_echo "$ac_try_echo"; } >&5
1532  (eval "$ac_compile") 2>conftest.err
1533  ac_status=$?
1534  if test -s conftest.err; then
1535    grep -v '^ *+' conftest.err >conftest.er1
1536    cat conftest.er1 >&5
1537    mv -f conftest.er1 conftest.err
1538  fi
1539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540  test $ac_status = 0; } && {
1541	 test -z "$ac_c_werror_flag" ||
1542	 test ! -s conftest.err
1543       } && test -s conftest.$ac_objext; then :
1544  ac_retval=0
1545else
1546  $as_echo "$as_me: failed program was:" >&5
1547sed 's/^/| /' conftest.$ac_ext >&5
1548
1549	ac_retval=1
1550fi
1551  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552  as_fn_set_status $ac_retval
1553
1554} # ac_fn_c_try_compile
1555
1556# ac_fn_c_try_cpp LINENO
1557# ----------------------
1558# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_cpp ()
1560{
1561  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562  if { { ac_try="$ac_cpp conftest.$ac_ext"
1563case "(($ac_try" in
1564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565  *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568$as_echo "$ac_try_echo"; } >&5
1569  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1570  ac_status=$?
1571  if test -s conftest.err; then
1572    grep -v '^ *+' conftest.err >conftest.er1
1573    cat conftest.er1 >&5
1574    mv -f conftest.er1 conftest.err
1575  fi
1576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577  test $ac_status = 0; } > conftest.i && {
1578	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1579	 test ! -s conftest.err
1580       }; then :
1581  ac_retval=0
1582else
1583  $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
1585
1586    ac_retval=1
1587fi
1588  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589  as_fn_set_status $ac_retval
1590
1591} # ac_fn_c_try_cpp
1592
1593# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1594# -------------------------------------------------------
1595# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1596# the include files in INCLUDES and setting the cache variable VAR
1597# accordingly.
1598ac_fn_c_check_header_mongrel ()
1599{
1600  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601  if eval \${$3+:} false; then :
1602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603$as_echo_n "checking for $2... " >&6; }
1604if eval \${$3+:} false; then :
1605  $as_echo_n "(cached) " >&6
1606fi
1607eval ac_res=\$$3
1608	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609$as_echo "$ac_res" >&6; }
1610else
1611  # Is the header compilable?
1612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1613$as_echo_n "checking $2 usability... " >&6; }
1614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615/* end confdefs.h.  */
1616$4
1617#include <$2>
1618_ACEOF
1619if ac_fn_c_try_compile "$LINENO"; then :
1620  ac_header_compiler=yes
1621else
1622  ac_header_compiler=no
1623fi
1624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1626$as_echo "$ac_header_compiler" >&6; }
1627
1628# Is the header present?
1629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1630$as_echo_n "checking $2 presence... " >&6; }
1631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632/* end confdefs.h.  */
1633#include <$2>
1634_ACEOF
1635if ac_fn_c_try_cpp "$LINENO"; then :
1636  ac_header_preproc=yes
1637else
1638  ac_header_preproc=no
1639fi
1640rm -f conftest.err conftest.i conftest.$ac_ext
1641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1642$as_echo "$ac_header_preproc" >&6; }
1643
1644# So?  What about this header?
1645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1646  yes:no: )
1647    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1648$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1649    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1650$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1651    ;;
1652  no:yes:* )
1653    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1654$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1655    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1656$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1657    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1658$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1659    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1660$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1661    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1662$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1663( $as_echo "## -------------------------------------------------- ##
1664## Report this to courier-users@lists.sourceforge.net ##
1665## -------------------------------------------------- ##"
1666     ) | sed "s/^/$as_me: WARNING:     /" >&2
1667    ;;
1668esac
1669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670$as_echo_n "checking for $2... " >&6; }
1671if eval \${$3+:} false; then :
1672  $as_echo_n "(cached) " >&6
1673else
1674  eval "$3=\$ac_header_compiler"
1675fi
1676eval ac_res=\$$3
1677	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678$as_echo "$ac_res" >&6; }
1679fi
1680  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681
1682} # ac_fn_c_check_header_mongrel
1683
1684# ac_fn_c_try_run LINENO
1685# ----------------------
1686# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687# that executables *can* be run.
1688ac_fn_c_try_run ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  if { { ac_try="$ac_link"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_link") 2>&5
1699  ac_status=$?
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702  { { case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_try") 2>&5
1709  ac_status=$?
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; }; }; then :
1712  ac_retval=0
1713else
1714  $as_echo "$as_me: program exited with status $ac_status" >&5
1715       $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718       ac_retval=$ac_status
1719fi
1720  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722  as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_run
1725
1726# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727# -------------------------------------------------------
1728# Tests whether HEADER exists and can be compiled using the include files in
1729# INCLUDES, setting the cache variable VAR accordingly.
1730ac_fn_c_check_header_compile ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734$as_echo_n "checking for $2... " >&6; }
1735if eval \${$3+:} false; then :
1736  $as_echo_n "(cached) " >&6
1737else
1738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h.  */
1740$4
1741#include <$2>
1742_ACEOF
1743if ac_fn_c_try_compile "$LINENO"; then :
1744  eval "$3=yes"
1745else
1746  eval "$3=no"
1747fi
1748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749fi
1750eval ac_res=\$$3
1751	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752$as_echo "$ac_res" >&6; }
1753  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754
1755} # ac_fn_c_check_header_compile
1756
1757# ac_fn_c_try_link LINENO
1758# -----------------------
1759# Try to link conftest.$ac_ext, and return whether this succeeded.
1760ac_fn_c_try_link ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  rm -f conftest.$ac_objext conftest$ac_exeext
1764  if { { ac_try="$ac_link"
1765case "(($ac_try" in
1766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767  *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770$as_echo "$ac_try_echo"; } >&5
1771  (eval "$ac_link") 2>conftest.err
1772  ac_status=$?
1773  if test -s conftest.err; then
1774    grep -v '^ *+' conftest.err >conftest.er1
1775    cat conftest.er1 >&5
1776    mv -f conftest.er1 conftest.err
1777  fi
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; } && {
1780	 test -z "$ac_c_werror_flag" ||
1781	 test ! -s conftest.err
1782       } && test -s conftest$ac_exeext && {
1783	 test "$cross_compiling" = yes ||
1784	 test -x conftest$ac_exeext
1785       }; then :
1786  ac_retval=0
1787else
1788  $as_echo "$as_me: failed program was:" >&5
1789sed 's/^/| /' conftest.$ac_ext >&5
1790
1791	ac_retval=1
1792fi
1793  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1794  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1795  # interfere with the next link command; also delete a directory that is
1796  # left behind by Apple's compiler.  We do this before executing the actions.
1797  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799  as_fn_set_status $ac_retval
1800
1801} # ac_fn_c_try_link
1802
1803# ac_fn_c_check_func LINENO FUNC VAR
1804# ----------------------------------
1805# Tests whether FUNC exists, setting the cache variable VAR accordingly
1806ac_fn_c_check_func ()
1807{
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810$as_echo_n "checking for $2... " >&6; }
1811if eval \${$3+:} false; then :
1812  $as_echo_n "(cached) " >&6
1813else
1814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815/* end confdefs.h.  */
1816/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1817   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1818#define $2 innocuous_$2
1819
1820/* System header to define __stub macros and hopefully few prototypes,
1821    which can conflict with char $2 (); below.
1822    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1823    <limits.h> exists even on freestanding compilers.  */
1824
1825#ifdef __STDC__
1826# include <limits.h>
1827#else
1828# include <assert.h>
1829#endif
1830
1831#undef $2
1832
1833/* Override any GCC internal prototype to avoid an error.
1834   Use char because int might match the return type of a GCC
1835   builtin and then its argument prototype would still apply.  */
1836#ifdef __cplusplus
1837extern "C"
1838#endif
1839char $2 ();
1840/* The GNU C library defines this for functions which it implements
1841    to always fail with ENOSYS.  Some functions are actually named
1842    something starting with __ and the normal name is an alias.  */
1843#if defined __stub_$2 || defined __stub___$2
1844choke me
1845#endif
1846
1847int
1848main ()
1849{
1850return $2 ();
1851  ;
1852  return 0;
1853}
1854_ACEOF
1855if ac_fn_c_try_link "$LINENO"; then :
1856  eval "$3=yes"
1857else
1858  eval "$3=no"
1859fi
1860rm -f core conftest.err conftest.$ac_objext \
1861    conftest$ac_exeext conftest.$ac_ext
1862fi
1863eval ac_res=\$$3
1864	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865$as_echo "$ac_res" >&6; }
1866  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868} # ac_fn_c_check_func
1869
1870# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1871# -------------------------------------------
1872# Tests whether TYPE exists after having included INCLUDES, setting cache
1873# variable VAR accordingly.
1874ac_fn_c_check_type ()
1875{
1876  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if eval \${$3+:} false; then :
1880  $as_echo_n "(cached) " >&6
1881else
1882  eval "$3=no"
1883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h.  */
1885$4
1886int
1887main ()
1888{
1889if (sizeof ($2))
1890	 return 0;
1891  ;
1892  return 0;
1893}
1894_ACEOF
1895if ac_fn_c_try_compile "$LINENO"; then :
1896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h.  */
1898$4
1899int
1900main ()
1901{
1902if (sizeof (($2)))
1903	    return 0;
1904  ;
1905  return 0;
1906}
1907_ACEOF
1908if ac_fn_c_try_compile "$LINENO"; then :
1909
1910else
1911  eval "$3=yes"
1912fi
1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914fi
1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_type
1923cat >config.log <<_ACEOF
1924This file contains any messages produced by compilers while
1925running configure, to aid debugging if configure makes a mistake.
1926
1927It was created by cgi $as_me 0.10, which was
1928generated by GNU Autoconf 2.69.  Invocation command line was
1929
1930  $ $0 $@
1931
1932_ACEOF
1933exec 5>>config.log
1934{
1935cat <<_ASUNAME
1936## --------- ##
1937## Platform. ##
1938## --------- ##
1939
1940hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1941uname -m = `(uname -m) 2>/dev/null || echo unknown`
1942uname -r = `(uname -r) 2>/dev/null || echo unknown`
1943uname -s = `(uname -s) 2>/dev/null || echo unknown`
1944uname -v = `(uname -v) 2>/dev/null || echo unknown`
1945
1946/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1947/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1948
1949/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1950/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1951/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1952/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1953/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1954/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1955/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1956
1957_ASUNAME
1958
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962  IFS=$as_save_IFS
1963  test -z "$as_dir" && as_dir=.
1964    $as_echo "PATH: $as_dir"
1965  done
1966IFS=$as_save_IFS
1967
1968} >&5
1969
1970cat >&5 <<_ACEOF
1971
1972
1973## ----------- ##
1974## Core tests. ##
1975## ----------- ##
1976
1977_ACEOF
1978
1979
1980# Keep a trace of the command line.
1981# Strip out --no-create and --no-recursion so they do not pile up.
1982# Strip out --silent because we don't want to record it for future runs.
1983# Also quote any args containing shell meta-characters.
1984# Make two passes to allow for proper duplicate-argument suppression.
1985ac_configure_args=
1986ac_configure_args0=
1987ac_configure_args1=
1988ac_must_keep_next=false
1989for ac_pass in 1 2
1990do
1991  for ac_arg
1992  do
1993    case $ac_arg in
1994    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1995    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1996    | -silent | --silent | --silen | --sile | --sil)
1997      continue ;;
1998    *\'*)
1999      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2000    esac
2001    case $ac_pass in
2002    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2003    2)
2004      as_fn_append ac_configure_args1 " '$ac_arg'"
2005      if test $ac_must_keep_next = true; then
2006	ac_must_keep_next=false # Got value, back to normal.
2007      else
2008	case $ac_arg in
2009	  *=* | --config-cache | -C | -disable-* | --disable-* \
2010	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2011	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2012	  | -with-* | --with-* | -without-* | --without-* | --x)
2013	    case "$ac_configure_args0 " in
2014	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2015	    esac
2016	    ;;
2017	  -* ) ac_must_keep_next=true ;;
2018	esac
2019      fi
2020      as_fn_append ac_configure_args " '$ac_arg'"
2021      ;;
2022    esac
2023  done
2024done
2025{ ac_configure_args0=; unset ac_configure_args0;}
2026{ ac_configure_args1=; unset ac_configure_args1;}
2027
2028# When interrupted or exit'd, cleanup temporary files, and complete
2029# config.log.  We remove comments because anyway the quotes in there
2030# would cause problems or look ugly.
2031# WARNING: Use '\'' to represent an apostrophe within the trap.
2032# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2033trap 'exit_status=$?
2034  # Save into config.log some information that might help in debugging.
2035  {
2036    echo
2037
2038    $as_echo "## ---------------- ##
2039## Cache variables. ##
2040## ---------------- ##"
2041    echo
2042    # The following way of writing the cache mishandles newlines in values,
2043(
2044  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2045    eval ac_val=\$$ac_var
2046    case $ac_val in #(
2047    *${as_nl}*)
2048      case $ac_var in #(
2049      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2050$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2051      esac
2052      case $ac_var in #(
2053      _ | IFS | as_nl) ;; #(
2054      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2055      *) { eval $ac_var=; unset $ac_var;} ;;
2056      esac ;;
2057    esac
2058  done
2059  (set) 2>&1 |
2060    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2061    *${as_nl}ac_space=\ *)
2062      sed -n \
2063	"s/'\''/'\''\\\\'\'''\''/g;
2064	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2065      ;; #(
2066    *)
2067      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2068      ;;
2069    esac |
2070    sort
2071)
2072    echo
2073
2074    $as_echo "## ----------------- ##
2075## Output variables. ##
2076## ----------------- ##"
2077    echo
2078    for ac_var in $ac_subst_vars
2079    do
2080      eval ac_val=\$$ac_var
2081      case $ac_val in
2082      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083      esac
2084      $as_echo "$ac_var='\''$ac_val'\''"
2085    done | sort
2086    echo
2087
2088    if test -n "$ac_subst_files"; then
2089      $as_echo "## ------------------- ##
2090## File substitutions. ##
2091## ------------------- ##"
2092      echo
2093      for ac_var in $ac_subst_files
2094      do
2095	eval ac_val=\$$ac_var
2096	case $ac_val in
2097	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098	esac
2099	$as_echo "$ac_var='\''$ac_val'\''"
2100      done | sort
2101      echo
2102    fi
2103
2104    if test -s confdefs.h; then
2105      $as_echo "## ----------- ##
2106## confdefs.h. ##
2107## ----------- ##"
2108      echo
2109      cat confdefs.h
2110      echo
2111    fi
2112    test "$ac_signal" != 0 &&
2113      $as_echo "$as_me: caught signal $ac_signal"
2114    $as_echo "$as_me: exit $exit_status"
2115  } >&5
2116  rm -f core *.core core.conftest.* &&
2117    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2118    exit $exit_status
2119' 0
2120for ac_signal in 1 2 13 15; do
2121  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2122done
2123ac_signal=0
2124
2125# confdefs.h avoids OS command line length limits that DEFS can exceed.
2126rm -f -r conftest* confdefs.h
2127
2128$as_echo "/* confdefs.h */" > confdefs.h
2129
2130# Predefined preprocessor variables.
2131
2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_NAME "$PACKAGE_NAME"
2134_ACEOF
2135
2136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2138_ACEOF
2139
2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_VERSION "$PACKAGE_VERSION"
2142_ACEOF
2143
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_STRING "$PACKAGE_STRING"
2146_ACEOF
2147
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2150_ACEOF
2151
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_URL "$PACKAGE_URL"
2154_ACEOF
2155
2156
2157# Let the site file select an alternate cache file if it wants to.
2158# Prefer an explicitly selected file to automatically selected ones.
2159ac_site_file1=NONE
2160ac_site_file2=NONE
2161if test -n "$CONFIG_SITE"; then
2162  # We do not want a PATH search for config.site.
2163  case $CONFIG_SITE in #((
2164    -*)  ac_site_file1=./$CONFIG_SITE;;
2165    */*) ac_site_file1=$CONFIG_SITE;;
2166    *)   ac_site_file1=./$CONFIG_SITE;;
2167  esac
2168elif test "x$prefix" != xNONE; then
2169  ac_site_file1=$prefix/share/config.site
2170  ac_site_file2=$prefix/etc/config.site
2171else
2172  ac_site_file1=$ac_default_prefix/share/config.site
2173  ac_site_file2=$ac_default_prefix/etc/config.site
2174fi
2175for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2176do
2177  test "x$ac_site_file" = xNONE && continue
2178  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2179    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2180$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2181    sed 's/^/| /' "$ac_site_file" >&5
2182    . "$ac_site_file" \
2183      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2185as_fn_error $? "failed to load site script $ac_site_file
2186See \`config.log' for more details" "$LINENO" 5; }
2187  fi
2188done
2189
2190if test -r "$cache_file"; then
2191  # Some versions of bash will fail to source /dev/null (special files
2192  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2193  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2194    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2195$as_echo "$as_me: loading cache $cache_file" >&6;}
2196    case $cache_file in
2197      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2198      *)                      . "./$cache_file";;
2199    esac
2200  fi
2201else
2202  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2203$as_echo "$as_me: creating cache $cache_file" >&6;}
2204  >$cache_file
2205fi
2206
2207# Check that the precious variables saved in the cache have kept the same
2208# value.
2209ac_cache_corrupted=false
2210for ac_var in $ac_precious_vars; do
2211  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2212  eval ac_new_set=\$ac_env_${ac_var}_set
2213  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2214  eval ac_new_val=\$ac_env_${ac_var}_value
2215  case $ac_old_set,$ac_new_set in
2216    set,)
2217      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2218$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2219      ac_cache_corrupted=: ;;
2220    ,set)
2221      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2222$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2223      ac_cache_corrupted=: ;;
2224    ,);;
2225    *)
2226      if test "x$ac_old_val" != "x$ac_new_val"; then
2227	# differences in whitespace do not lead to failure.
2228	ac_old_val_w=`echo x $ac_old_val`
2229	ac_new_val_w=`echo x $ac_new_val`
2230	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2231	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2232$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2233	  ac_cache_corrupted=:
2234	else
2235	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2236$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2237	  eval $ac_var=\$ac_old_val
2238	fi
2239	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2240$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2241	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2242$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2243      fi;;
2244  esac
2245  # Pass precious variables to config.status.
2246  if test "$ac_new_set" = set; then
2247    case $ac_new_val in
2248    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2249    *) ac_arg=$ac_var=$ac_new_val ;;
2250    esac
2251    case " $ac_configure_args " in
2252      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2253      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2254    esac
2255  fi
2256done
2257if $ac_cache_corrupted; then
2258  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2260  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2261$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2262  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2263fi
2264## -------------------- ##
2265## Main body of script. ##
2266## -------------------- ##
2267
2268ac_ext=c
2269ac_cpp='$CPP $CPPFLAGS'
2270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2272ac_compiler_gnu=$ac_cv_c_compiler_gnu
2273
2274
2275
2276>confdefs.h  # Kill PACKAGE_ macros
2277
2278
2279ac_aux_dir=
2280for ac_dir in ../.. "$srcdir"/../..; do
2281  if test -f "$ac_dir/install-sh"; then
2282    ac_aux_dir=$ac_dir
2283    ac_install_sh="$ac_aux_dir/install-sh -c"
2284    break
2285  elif test -f "$ac_dir/install.sh"; then
2286    ac_aux_dir=$ac_dir
2287    ac_install_sh="$ac_aux_dir/install.sh -c"
2288    break
2289  elif test -f "$ac_dir/shtool"; then
2290    ac_aux_dir=$ac_dir
2291    ac_install_sh="$ac_aux_dir/shtool install -c"
2292    break
2293  fi
2294done
2295if test -z "$ac_aux_dir"; then
2296  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2297fi
2298
2299# These three variables are undocumented and unsupported,
2300# and are intended to be withdrawn in a future Autoconf release.
2301# They can cause serious problems if a builder's source tree is in a directory
2302# whose full name contains unusual characters.
2303ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2304ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2305ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2306
2307
2308am__api_version='1.16'
2309
2310# Find a good install program.  We prefer a C program (faster),
2311# so one script is as good as another.  But avoid the broken or
2312# incompatible versions:
2313# SysV /etc/install, /usr/sbin/install
2314# SunOS /usr/etc/install
2315# IRIX /sbin/install
2316# AIX /bin/install
2317# AmigaOS /C/install, which installs bootblocks on floppy discs
2318# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2319# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2320# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2321# OS/2's system install, which has a completely different semantic
2322# ./install, which can be erroneously created by make from ./install.sh.
2323# Reject install programs that cannot install multiple files.
2324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2325$as_echo_n "checking for a BSD-compatible install... " >&6; }
2326if test -z "$INSTALL"; then
2327if ${ac_cv_path_install+:} false; then :
2328  $as_echo_n "(cached) " >&6
2329else
2330  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333  IFS=$as_save_IFS
2334  test -z "$as_dir" && as_dir=.
2335    # Account for people who put trailing slashes in PATH elements.
2336case $as_dir/ in #((
2337  ./ | .// | /[cC]/* | \
2338  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2339  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2340  /usr/ucb/* ) ;;
2341  *)
2342    # OSF1 and SCO ODT 3.0 have their own names for install.
2343    # Don't use installbsd from OSF since it installs stuff as root
2344    # by default.
2345    for ac_prog in ginstall scoinst install; do
2346      for ac_exec_ext in '' $ac_executable_extensions; do
2347	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2348	  if test $ac_prog = install &&
2349	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350	    # AIX install.  It has an incompatible calling convention.
2351	    :
2352	  elif test $ac_prog = install &&
2353	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2354	    # program-specific install script used by HP pwplus--don't use.
2355	    :
2356	  else
2357	    rm -rf conftest.one conftest.two conftest.dir
2358	    echo one > conftest.one
2359	    echo two > conftest.two
2360	    mkdir conftest.dir
2361	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2362	      test -s conftest.one && test -s conftest.two &&
2363	      test -s conftest.dir/conftest.one &&
2364	      test -s conftest.dir/conftest.two
2365	    then
2366	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2367	      break 3
2368	    fi
2369	  fi
2370	fi
2371      done
2372    done
2373    ;;
2374esac
2375
2376  done
2377IFS=$as_save_IFS
2378
2379rm -rf conftest.one conftest.two conftest.dir
2380
2381fi
2382  if test "${ac_cv_path_install+set}" = set; then
2383    INSTALL=$ac_cv_path_install
2384  else
2385    # As a last resort, use the slow shell script.  Don't cache a
2386    # value for INSTALL within a source directory, because that will
2387    # break other packages using the cache if that directory is
2388    # removed, or if the value is a relative name.
2389    INSTALL=$ac_install_sh
2390  fi
2391fi
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2393$as_echo "$INSTALL" >&6; }
2394
2395# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2396# It thinks the first close brace ends the variable substitution.
2397test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2398
2399test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2400
2401test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2402
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2404$as_echo_n "checking whether build environment is sane... " >&6; }
2405# Reject unsafe characters in $srcdir or the absolute working directory
2406# name.  Accept space and tab only in the latter.
2407am_lf='
2408'
2409case `pwd` in
2410  *[\\\"\#\$\&\'\`$am_lf]*)
2411    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2412esac
2413case $srcdir in
2414  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2415    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2416esac
2417
2418# Do 'set' in a subshell so we don't clobber the current shell's
2419# arguments.  Must try -L first in case configure is actually a
2420# symlink; some systems play weird games with the mod time of symlinks
2421# (eg FreeBSD returns the mod time of the symlink's containing
2422# directory).
2423if (
2424   am_has_slept=no
2425   for am_try in 1 2; do
2426     echo "timestamp, slept: $am_has_slept" > conftest.file
2427     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2428     if test "$*" = "X"; then
2429	# -L didn't work.
2430	set X `ls -t "$srcdir/configure" conftest.file`
2431     fi
2432     if test "$*" != "X $srcdir/configure conftest.file" \
2433	&& test "$*" != "X conftest.file $srcdir/configure"; then
2434
2435	# If neither matched, then we have a broken ls.  This can happen
2436	# if, for instance, CONFIG_SHELL is bash and it inherits a
2437	# broken ls alias from the environment.  This has actually
2438	# happened.  Such a system could not be considered "sane".
2439	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2440  alias in your environment" "$LINENO" 5
2441     fi
2442     if test "$2" = conftest.file || test $am_try -eq 2; then
2443       break
2444     fi
2445     # Just in case.
2446     sleep 1
2447     am_has_slept=yes
2448   done
2449   test "$2" = conftest.file
2450   )
2451then
2452   # Ok.
2453   :
2454else
2455   as_fn_error $? "newly created file is older than distributed files!
2456Check your system clock" "$LINENO" 5
2457fi
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2459$as_echo "yes" >&6; }
2460# If we didn't sleep, we still need to ensure time stamps of config.status and
2461# generated files are strictly newer.
2462am_sleep_pid=
2463if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2464  ( sleep 1 ) &
2465  am_sleep_pid=$!
2466fi
2467
2468rm -f conftest.file
2469
2470test "$program_prefix" != NONE &&
2471  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2472# Use a double $ so make ignores it.
2473test "$program_suffix" != NONE &&
2474  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2475# Double any \ or $.
2476# By default was `s,x,x', remove it if useless.
2477ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2478program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2479
2480# Expand $ac_aux_dir to an absolute path.
2481am_aux_dir=`cd "$ac_aux_dir" && pwd`
2482
2483if test x"${MISSING+set}" != xset; then
2484  case $am_aux_dir in
2485  *\ * | *\	*)
2486    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2487  *)
2488    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2489  esac
2490fi
2491# Use eval to expand $SHELL
2492if eval "$MISSING --is-lightweight"; then
2493  am_missing_run="$MISSING "
2494else
2495  am_missing_run=
2496  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2497$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2498fi
2499
2500if test x"${install_sh+set}" != xset; then
2501  case $am_aux_dir in
2502  *\ * | *\	*)
2503    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2504  *)
2505    install_sh="\${SHELL} $am_aux_dir/install-sh"
2506  esac
2507fi
2508
2509# Installed binaries are usually stripped using 'strip' when the user
2510# run "make install-strip".  However 'strip' might not be the right
2511# tool to use in cross-compilation environments, therefore Automake
2512# will honor the 'STRIP' environment variable to overrule this program.
2513if test "$cross_compiling" != no; then
2514  if test -n "$ac_tool_prefix"; then
2515  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2516set dummy ${ac_tool_prefix}strip; ac_word=$2
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518$as_echo_n "checking for $ac_word... " >&6; }
2519if ${ac_cv_prog_STRIP+:} false; then :
2520  $as_echo_n "(cached) " >&6
2521else
2522  if test -n "$STRIP"; then
2523  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2524else
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528  IFS=$as_save_IFS
2529  test -z "$as_dir" && as_dir=.
2530    for ac_exec_ext in '' $ac_executable_extensions; do
2531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534    break 2
2535  fi
2536done
2537  done
2538IFS=$as_save_IFS
2539
2540fi
2541fi
2542STRIP=$ac_cv_prog_STRIP
2543if test -n "$STRIP"; then
2544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2545$as_echo "$STRIP" >&6; }
2546else
2547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548$as_echo "no" >&6; }
2549fi
2550
2551
2552fi
2553if test -z "$ac_cv_prog_STRIP"; then
2554  ac_ct_STRIP=$STRIP
2555  # Extract the first word of "strip", so it can be a program name with args.
2556set dummy strip; ac_word=$2
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558$as_echo_n "checking for $ac_word... " >&6; }
2559if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2560  $as_echo_n "(cached) " >&6
2561else
2562  if test -n "$ac_ct_STRIP"; then
2563  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2564else
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568  IFS=$as_save_IFS
2569  test -z "$as_dir" && as_dir=.
2570    for ac_exec_ext in '' $ac_executable_extensions; do
2571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572    ac_cv_prog_ac_ct_STRIP="strip"
2573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574    break 2
2575  fi
2576done
2577  done
2578IFS=$as_save_IFS
2579
2580fi
2581fi
2582ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2583if test -n "$ac_ct_STRIP"; then
2584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2585$as_echo "$ac_ct_STRIP" >&6; }
2586else
2587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588$as_echo "no" >&6; }
2589fi
2590
2591  if test "x$ac_ct_STRIP" = x; then
2592    STRIP=":"
2593  else
2594    case $cross_compiling:$ac_tool_warned in
2595yes:)
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2598ac_tool_warned=yes ;;
2599esac
2600    STRIP=$ac_ct_STRIP
2601  fi
2602else
2603  STRIP="$ac_cv_prog_STRIP"
2604fi
2605
2606fi
2607INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2608
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2610$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2611if test -z "$MKDIR_P"; then
2612  if ${ac_cv_path_mkdir+:} false; then :
2613  $as_echo_n "(cached) " >&6
2614else
2615  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2617do
2618  IFS=$as_save_IFS
2619  test -z "$as_dir" && as_dir=.
2620    for ac_prog in mkdir gmkdir; do
2621	 for ac_exec_ext in '' $ac_executable_extensions; do
2622	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2623	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2624	     'mkdir (GNU coreutils) '* | \
2625	     'mkdir (coreutils) '* | \
2626	     'mkdir (fileutils) '4.1*)
2627	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2628	       break 3;;
2629	   esac
2630	 done
2631       done
2632  done
2633IFS=$as_save_IFS
2634
2635fi
2636
2637  test -d ./--version && rmdir ./--version
2638  if test "${ac_cv_path_mkdir+set}" = set; then
2639    MKDIR_P="$ac_cv_path_mkdir -p"
2640  else
2641    # As a last resort, use the slow shell script.  Don't cache a
2642    # value for MKDIR_P within a source directory, because that will
2643    # break other packages using the cache if that directory is
2644    # removed, or if the value is a relative name.
2645    MKDIR_P="$ac_install_sh -d"
2646  fi
2647fi
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2649$as_echo "$MKDIR_P" >&6; }
2650
2651for ac_prog in gawk mawk nawk awk
2652do
2653  # Extract the first word of "$ac_prog", so it can be a program name with args.
2654set dummy $ac_prog; ac_word=$2
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656$as_echo_n "checking for $ac_word... " >&6; }
2657if ${ac_cv_prog_AWK+:} false; then :
2658  $as_echo_n "(cached) " >&6
2659else
2660  if test -n "$AWK"; then
2661  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2662else
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666  IFS=$as_save_IFS
2667  test -z "$as_dir" && as_dir=.
2668    for ac_exec_ext in '' $ac_executable_extensions; do
2669  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670    ac_cv_prog_AWK="$ac_prog"
2671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672    break 2
2673  fi
2674done
2675  done
2676IFS=$as_save_IFS
2677
2678fi
2679fi
2680AWK=$ac_cv_prog_AWK
2681if test -n "$AWK"; then
2682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2683$as_echo "$AWK" >&6; }
2684else
2685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686$as_echo "no" >&6; }
2687fi
2688
2689
2690  test -n "$AWK" && break
2691done
2692
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2694$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2695set x ${MAKE-make}
2696ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2697if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2698  $as_echo_n "(cached) " >&6
2699else
2700  cat >conftest.make <<\_ACEOF
2701SHELL = /bin/sh
2702all:
2703	@echo '@@@%%%=$(MAKE)=@@@%%%'
2704_ACEOF
2705# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2706case `${MAKE-make} -f conftest.make 2>/dev/null` in
2707  *@@@%%%=?*=@@@%%%*)
2708    eval ac_cv_prog_make_${ac_make}_set=yes;;
2709  *)
2710    eval ac_cv_prog_make_${ac_make}_set=no;;
2711esac
2712rm -f conftest.make
2713fi
2714if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2716$as_echo "yes" >&6; }
2717  SET_MAKE=
2718else
2719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720$as_echo "no" >&6; }
2721  SET_MAKE="MAKE=${MAKE-make}"
2722fi
2723
2724rm -rf .tst 2>/dev/null
2725mkdir .tst 2>/dev/null
2726if test -d .tst; then
2727  am__leading_dot=.
2728else
2729  am__leading_dot=_
2730fi
2731rmdir .tst 2>/dev/null
2732
2733# Check whether --enable-silent-rules was given.
2734if test "${enable_silent_rules+set}" = set; then :
2735  enableval=$enable_silent_rules;
2736fi
2737
2738case $enable_silent_rules in # (((
2739  yes) AM_DEFAULT_VERBOSITY=0;;
2740   no) AM_DEFAULT_VERBOSITY=1;;
2741    *) AM_DEFAULT_VERBOSITY=1;;
2742esac
2743am_make=${MAKE-make}
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2745$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2746if ${am_cv_make_support_nested_variables+:} false; then :
2747  $as_echo_n "(cached) " >&6
2748else
2749  if $as_echo 'TRUE=$(BAR$(V))
2750BAR0=false
2751BAR1=true
2752V=1
2753am__doit:
2754	@$(TRUE)
2755.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2756  am_cv_make_support_nested_variables=yes
2757else
2758  am_cv_make_support_nested_variables=no
2759fi
2760fi
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2762$as_echo "$am_cv_make_support_nested_variables" >&6; }
2763if test $am_cv_make_support_nested_variables = yes; then
2764    AM_V='$(V)'
2765  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2766else
2767  AM_V=$AM_DEFAULT_VERBOSITY
2768  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2769fi
2770AM_BACKSLASH='\'
2771
2772if test "`cd $srcdir && pwd`" != "`pwd`"; then
2773  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2774  # is not polluted with repeated "-I."
2775  am__isrc=' -I$(srcdir)'
2776  # test to see if srcdir already configured
2777  if test -f $srcdir/config.status; then
2778    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2779  fi
2780fi
2781
2782# test whether we have cygpath
2783if test -z "$CYGPATH_W"; then
2784  if (cygpath --version) >/dev/null 2>/dev/null; then
2785    CYGPATH_W='cygpath -w'
2786  else
2787    CYGPATH_W=echo
2788  fi
2789fi
2790
2791
2792# Define the identity of the package.
2793 PACKAGE='cgi'
2794 VERSION='0.10'
2795
2796
2797# Some tools Automake needs.
2798
2799ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2800
2801
2802AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2803
2804
2805AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2806
2807
2808AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2809
2810
2811MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2812
2813# For better backward compatibility.  To be removed once Automake 1.9.x
2814# dies out for good.  For more background, see:
2815# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2816# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2817mkdir_p='$(MKDIR_P)'
2818
2819# We need awk for the "check" target (and possibly the TAP driver).  The
2820# system "awk" is bad on some platforms.
2821# Always define AMTAR for backward compatibility.  Yes, it's still used
2822# in the wild :-(  We should find a proper way to deprecate it ...
2823AMTAR='$${TAR-tar}'
2824
2825
2826# We'll loop over all known methods to create a tar archive until one works.
2827_am_tools='gnutar  pax cpio none'
2828
2829am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2830
2831
2832
2833
2834
2835
2836# POSIX will say in a future version that running "rm -f" with no argument
2837# is OK; and we want to be able to make that assumption in our Makefile
2838# recipes.  So use an aggressive probe to check that the usage we want is
2839# actually supported "in the wild" to an acceptable degree.
2840# See automake bug#10828.
2841# To make any issue more visible, cause the running configure to be aborted
2842# by default if the 'rm' program in use doesn't match our expectations; the
2843# user can still override this though.
2844if rm -f && rm -fr && rm -rf; then : OK; else
2845  cat >&2 <<'END'
2846Oops!
2847
2848Your 'rm' program seems unable to run without file operands specified
2849on the command line, even when the '-f' option is present.  This is contrary
2850to the behaviour of most rm programs out there, and not conforming with
2851the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2852
2853Please tell bug-automake@gnu.org about your system, including the value
2854of your $PATH and any error possibly output before this message.  This
2855can help us improve future automake versions.
2856
2857END
2858  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2859    echo 'Configuration will proceed anyway, since you have set the' >&2
2860    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2861    echo >&2
2862  else
2863    cat >&2 <<'END'
2864Aborting the configuration process, to ensure you take notice of the issue.
2865
2866You can download and install GNU coreutils to get an 'rm' implementation
2867that behaves properly: <https://www.gnu.org/software/coreutils/>.
2868
2869If you want to complete the configuration process using your problematic
2870'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2871to "yes", and re-run configure.
2872
2873END
2874    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2875  fi
2876fi
2877
2878
2879ac_config_headers="$ac_config_headers cgi_config.h"
2880
2881
2882DEPDIR="${am__leading_dot}deps"
2883
2884ac_config_commands="$ac_config_commands depfiles"
2885
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2887$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2888cat > confinc.mk << 'END'
2889am__doit:
2890	@echo this is the am__doit target >confinc.out
2891.PHONY: am__doit
2892END
2893am__include="#"
2894am__quote=
2895# BSD make does it like this.
2896echo '.include "confinc.mk" # ignored' > confmf.BSD
2897# Other make implementations (GNU, Solaris 10, AIX) do it like this.
2898echo 'include confinc.mk # ignored' > confmf.GNU
2899_am_result=no
2900for s in GNU BSD; do
2901  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2902   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }
2906  case $?:`cat confinc.out 2>/dev/null` in #(
2907  '0:this is the am__doit target') :
2908    case $s in #(
2909  BSD) :
2910    am__include='.include' am__quote='"' ;; #(
2911  *) :
2912    am__include='include' am__quote='' ;;
2913esac ;; #(
2914  *) :
2915     ;;
2916esac
2917  if test "$am__include" != "#"; then
2918    _am_result="yes ($s style)"
2919    break
2920  fi
2921done
2922rm -f confinc.* confmf.*
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2924$as_echo "${_am_result}" >&6; }
2925
2926# Check whether --enable-dependency-tracking was given.
2927if test "${enable_dependency_tracking+set}" = set; then :
2928  enableval=$enable_dependency_tracking;
2929fi
2930
2931if test "x$enable_dependency_tracking" != xno; then
2932  am_depcomp="$ac_aux_dir/depcomp"
2933  AMDEPBACKSLASH='\'
2934  am__nodep='_no'
2935fi
2936 if test "x$enable_dependency_tracking" != xno; then
2937  AMDEP_TRUE=
2938  AMDEP_FALSE='#'
2939else
2940  AMDEP_TRUE='#'
2941  AMDEP_FALSE=
2942fi
2943
2944
2945ac_ext=c
2946ac_cpp='$CPP $CPPFLAGS'
2947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950if test -n "$ac_tool_prefix"; then
2951  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2952set dummy ${ac_tool_prefix}gcc; ac_word=$2
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954$as_echo_n "checking for $ac_word... " >&6; }
2955if ${ac_cv_prog_CC+:} false; then :
2956  $as_echo_n "(cached) " >&6
2957else
2958  if test -n "$CC"; then
2959  ac_cv_prog_CC="$CC" # Let the user override the test.
2960else
2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964  IFS=$as_save_IFS
2965  test -z "$as_dir" && as_dir=.
2966    for ac_exec_ext in '' $ac_executable_extensions; do
2967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970    break 2
2971  fi
2972done
2973  done
2974IFS=$as_save_IFS
2975
2976fi
2977fi
2978CC=$ac_cv_prog_CC
2979if test -n "$CC"; then
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981$as_echo "$CC" >&6; }
2982else
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984$as_echo "no" >&6; }
2985fi
2986
2987
2988fi
2989if test -z "$ac_cv_prog_CC"; then
2990  ac_ct_CC=$CC
2991  # Extract the first word of "gcc", so it can be a program name with args.
2992set dummy gcc; ac_word=$2
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994$as_echo_n "checking for $ac_word... " >&6; }
2995if ${ac_cv_prog_ac_ct_CC+:} false; then :
2996  $as_echo_n "(cached) " >&6
2997else
2998  if test -n "$ac_ct_CC"; then
2999  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004  IFS=$as_save_IFS
3005  test -z "$as_dir" && as_dir=.
3006    for ac_exec_ext in '' $ac_executable_extensions; do
3007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008    ac_cv_prog_ac_ct_CC="gcc"
3009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010    break 2
3011  fi
3012done
3013  done
3014IFS=$as_save_IFS
3015
3016fi
3017fi
3018ac_ct_CC=$ac_cv_prog_ac_ct_CC
3019if test -n "$ac_ct_CC"; then
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3021$as_echo "$ac_ct_CC" >&6; }
3022else
3023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024$as_echo "no" >&6; }
3025fi
3026
3027  if test "x$ac_ct_CC" = x; then
3028    CC=""
3029  else
3030    case $cross_compiling:$ac_tool_warned in
3031yes:)
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034ac_tool_warned=yes ;;
3035esac
3036    CC=$ac_ct_CC
3037  fi
3038else
3039  CC="$ac_cv_prog_CC"
3040fi
3041
3042if test -z "$CC"; then
3043          if test -n "$ac_tool_prefix"; then
3044    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3045set dummy ${ac_tool_prefix}cc; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
3048if ${ac_cv_prog_CC+:} false; then :
3049  $as_echo_n "(cached) " >&6
3050else
3051  if test -n "$CC"; then
3052  ac_cv_prog_CC="$CC" # Let the user override the test.
3053else
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057  IFS=$as_save_IFS
3058  test -z "$as_dir" && as_dir=.
3059    for ac_exec_ext in '' $ac_executable_extensions; do
3060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061    ac_cv_prog_CC="${ac_tool_prefix}cc"
3062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063    break 2
3064  fi
3065done
3066  done
3067IFS=$as_save_IFS
3068
3069fi
3070fi
3071CC=$ac_cv_prog_CC
3072if test -n "$CC"; then
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074$as_echo "$CC" >&6; }
3075else
3076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078fi
3079
3080
3081  fi
3082fi
3083if test -z "$CC"; then
3084  # Extract the first word of "cc", so it can be a program name with args.
3085set dummy cc; ac_word=$2
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if ${ac_cv_prog_CC+:} false; then :
3089  $as_echo_n "(cached) " >&6
3090else
3091  if test -n "$CC"; then
3092  ac_cv_prog_CC="$CC" # Let the user override the test.
3093else
3094  ac_prog_rejected=no
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098  IFS=$as_save_IFS
3099  test -z "$as_dir" && as_dir=.
3100    for ac_exec_ext in '' $ac_executable_extensions; do
3101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3103       ac_prog_rejected=yes
3104       continue
3105     fi
3106    ac_cv_prog_CC="cc"
3107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108    break 2
3109  fi
3110done
3111  done
3112IFS=$as_save_IFS
3113
3114if test $ac_prog_rejected = yes; then
3115  # We found a bogon in the path, so make sure we never use it.
3116  set dummy $ac_cv_prog_CC
3117  shift
3118  if test $# != 0; then
3119    # We chose a different compiler from the bogus one.
3120    # However, it has the same basename, so the bogon will be chosen
3121    # first if we set CC to just the basename; use the full file name.
3122    shift
3123    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3124  fi
3125fi
3126fi
3127fi
3128CC=$ac_cv_prog_CC
3129if test -n "$CC"; then
3130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131$as_echo "$CC" >&6; }
3132else
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135fi
3136
3137
3138fi
3139if test -z "$CC"; then
3140  if test -n "$ac_tool_prefix"; then
3141  for ac_prog in cl.exe
3142  do
3143    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3144set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146$as_echo_n "checking for $ac_word... " >&6; }
3147if ${ac_cv_prog_CC+:} false; then :
3148  $as_echo_n "(cached) " >&6
3149else
3150  if test -n "$CC"; then
3151  ac_cv_prog_CC="$CC" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156  IFS=$as_save_IFS
3157  test -z "$as_dir" && as_dir=.
3158    for ac_exec_ext in '' $ac_executable_extensions; do
3159  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162    break 2
3163  fi
3164done
3165  done
3166IFS=$as_save_IFS
3167
3168fi
3169fi
3170CC=$ac_cv_prog_CC
3171if test -n "$CC"; then
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3173$as_echo "$CC" >&6; }
3174else
3175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176$as_echo "no" >&6; }
3177fi
3178
3179
3180    test -n "$CC" && break
3181  done
3182fi
3183if test -z "$CC"; then
3184  ac_ct_CC=$CC
3185  for ac_prog in cl.exe
3186do
3187  # Extract the first word of "$ac_prog", so it can be a program name with args.
3188set dummy $ac_prog; ac_word=$2
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190$as_echo_n "checking for $ac_word... " >&6; }
3191if ${ac_cv_prog_ac_ct_CC+:} false; then :
3192  $as_echo_n "(cached) " >&6
3193else
3194  if test -n "$ac_ct_CC"; then
3195  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3196else
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200  IFS=$as_save_IFS
3201  test -z "$as_dir" && as_dir=.
3202    for ac_exec_ext in '' $ac_executable_extensions; do
3203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204    ac_cv_prog_ac_ct_CC="$ac_prog"
3205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206    break 2
3207  fi
3208done
3209  done
3210IFS=$as_save_IFS
3211
3212fi
3213fi
3214ac_ct_CC=$ac_cv_prog_ac_ct_CC
3215if test -n "$ac_ct_CC"; then
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3217$as_echo "$ac_ct_CC" >&6; }
3218else
3219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220$as_echo "no" >&6; }
3221fi
3222
3223
3224  test -n "$ac_ct_CC" && break
3225done
3226
3227  if test "x$ac_ct_CC" = x; then
3228    CC=""
3229  else
3230    case $cross_compiling:$ac_tool_warned in
3231yes:)
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234ac_tool_warned=yes ;;
3235esac
3236    CC=$ac_ct_CC
3237  fi
3238fi
3239
3240fi
3241
3242
3243test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245as_fn_error $? "no acceptable C compiler found in \$PATH
3246See \`config.log' for more details" "$LINENO" 5; }
3247
3248# Provide some information about the compiler.
3249$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3250set X $ac_compile
3251ac_compiler=$2
3252for ac_option in --version -v -V -qversion; do
3253  { { ac_try="$ac_compiler $ac_option >&5"
3254case "(($ac_try" in
3255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256  *) ac_try_echo=$ac_try;;
3257esac
3258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259$as_echo "$ac_try_echo"; } >&5
3260  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3261  ac_status=$?
3262  if test -s conftest.err; then
3263    sed '10a\
3264... rest of stderr output deleted ...
3265         10q' conftest.err >conftest.er1
3266    cat conftest.er1 >&5
3267  fi
3268  rm -f conftest.er1 conftest.err
3269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270  test $ac_status = 0; }
3271done
3272
3273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274/* end confdefs.h.  */
3275
3276int
3277main ()
3278{
3279
3280  ;
3281  return 0;
3282}
3283_ACEOF
3284ac_clean_files_save=$ac_clean_files
3285ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3286# Try to create an executable without -o first, disregard a.out.
3287# It will help us diagnose broken compilers, and finding out an intuition
3288# of exeext.
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3290$as_echo_n "checking whether the C compiler works... " >&6; }
3291ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3292
3293# The possible output files:
3294ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3295
3296ac_rmfiles=
3297for ac_file in $ac_files
3298do
3299  case $ac_file in
3300    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3301    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3302  esac
3303done
3304rm -f $ac_rmfiles
3305
3306if { { ac_try="$ac_link_default"
3307case "(($ac_try" in
3308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309  *) ac_try_echo=$ac_try;;
3310esac
3311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312$as_echo "$ac_try_echo"; } >&5
3313  (eval "$ac_link_default") 2>&5
3314  ac_status=$?
3315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316  test $ac_status = 0; }; then :
3317  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3318# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3319# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3320# so that the user can short-circuit this test for compilers unknown to
3321# Autoconf.
3322for ac_file in $ac_files ''
3323do
3324  test -f "$ac_file" || continue
3325  case $ac_file in
3326    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3327	;;
3328    [ab].out )
3329	# We found the default executable, but exeext='' is most
3330	# certainly right.
3331	break;;
3332    *.* )
3333	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3334	then :; else
3335	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336	fi
3337	# We set ac_cv_exeext here because the later test for it is not
3338	# safe: cross compilers may not add the suffix if given an `-o'
3339	# argument, so we may need to know it at that point already.
3340	# Even if this section looks crufty: it has the advantage of
3341	# actually working.
3342	break;;
3343    * )
3344	break;;
3345  esac
3346done
3347test "$ac_cv_exeext" = no && ac_cv_exeext=
3348
3349else
3350  ac_file=''
3351fi
3352if test -z "$ac_file"; then :
3353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
3355$as_echo "$as_me: failed program was:" >&5
3356sed 's/^/| /' conftest.$ac_ext >&5
3357
3358{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360as_fn_error 77 "C compiler cannot create executables
3361See \`config.log' for more details" "$LINENO" 5; }
3362else
3363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364$as_echo "yes" >&6; }
3365fi
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3367$as_echo_n "checking for C compiler default output file name... " >&6; }
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3369$as_echo "$ac_file" >&6; }
3370ac_exeext=$ac_cv_exeext
3371
3372rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3373ac_clean_files=$ac_clean_files_save
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3375$as_echo_n "checking for suffix of executables... " >&6; }
3376if { { ac_try="$ac_link"
3377case "(($ac_try" in
3378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379  *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382$as_echo "$ac_try_echo"; } >&5
3383  (eval "$ac_link") 2>&5
3384  ac_status=$?
3385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386  test $ac_status = 0; }; then :
3387  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3388# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3389# work properly (i.e., refer to `conftest.exe'), while it won't with
3390# `rm'.
3391for ac_file in conftest.exe conftest conftest.*; do
3392  test -f "$ac_file" || continue
3393  case $ac_file in
3394    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3395    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3396	  break;;
3397    * ) break;;
3398  esac
3399done
3400else
3401  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3404See \`config.log' for more details" "$LINENO" 5; }
3405fi
3406rm -f conftest conftest$ac_cv_exeext
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3408$as_echo "$ac_cv_exeext" >&6; }
3409
3410rm -f conftest.$ac_ext
3411EXEEXT=$ac_cv_exeext
3412ac_exeext=$EXEEXT
3413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414/* end confdefs.h.  */
3415#include <stdio.h>
3416int
3417main ()
3418{
3419FILE *f = fopen ("conftest.out", "w");
3420 return ferror (f) || fclose (f) != 0;
3421
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426ac_clean_files="$ac_clean_files conftest.out"
3427# Check that the compiler produces executables we can run.  If not, either
3428# the compiler is broken, or we cross compile.
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3430$as_echo_n "checking whether we are cross compiling... " >&6; }
3431if test "$cross_compiling" != yes; then
3432  { { ac_try="$ac_link"
3433case "(($ac_try" in
3434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435  *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438$as_echo "$ac_try_echo"; } >&5
3439  (eval "$ac_link") 2>&5
3440  ac_status=$?
3441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442  test $ac_status = 0; }
3443  if { ac_try='./conftest$ac_cv_exeext'
3444  { { case "(($ac_try" in
3445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446  *) ac_try_echo=$ac_try;;
3447esac
3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449$as_echo "$ac_try_echo"; } >&5
3450  (eval "$ac_try") 2>&5
3451  ac_status=$?
3452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453  test $ac_status = 0; }; }; then
3454    cross_compiling=no
3455  else
3456    if test "$cross_compiling" = maybe; then
3457	cross_compiling=yes
3458    else
3459	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461as_fn_error $? "cannot run C compiled programs.
3462If you meant to cross compile, use \`--host'.
3463See \`config.log' for more details" "$LINENO" 5; }
3464    fi
3465  fi
3466fi
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3468$as_echo "$cross_compiling" >&6; }
3469
3470rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3471ac_clean_files=$ac_clean_files_save
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3473$as_echo_n "checking for suffix of object files... " >&6; }
3474if ${ac_cv_objext+:} false; then :
3475  $as_echo_n "(cached) " >&6
3476else
3477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478/* end confdefs.h.  */
3479
3480int
3481main ()
3482{
3483
3484  ;
3485  return 0;
3486}
3487_ACEOF
3488rm -f conftest.o conftest.obj
3489if { { ac_try="$ac_compile"
3490case "(($ac_try" in
3491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492  *) ac_try_echo=$ac_try;;
3493esac
3494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495$as_echo "$ac_try_echo"; } >&5
3496  (eval "$ac_compile") 2>&5
3497  ac_status=$?
3498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499  test $ac_status = 0; }; then :
3500  for ac_file in conftest.o conftest.obj conftest.*; do
3501  test -f "$ac_file" || continue;
3502  case $ac_file in
3503    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3504    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3505       break;;
3506  esac
3507done
3508else
3509  $as_echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514as_fn_error $? "cannot compute suffix of object files: cannot compile
3515See \`config.log' for more details" "$LINENO" 5; }
3516fi
3517rm -f conftest.$ac_cv_objext conftest.$ac_ext
3518fi
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3520$as_echo "$ac_cv_objext" >&6; }
3521OBJEXT=$ac_cv_objext
3522ac_objext=$OBJEXT
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3524$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3525if ${ac_cv_c_compiler_gnu+:} false; then :
3526  $as_echo_n "(cached) " >&6
3527else
3528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529/* end confdefs.h.  */
3530
3531int
3532main ()
3533{
3534#ifndef __GNUC__
3535       choke me
3536#endif
3537
3538  ;
3539  return 0;
3540}
3541_ACEOF
3542if ac_fn_c_try_compile "$LINENO"; then :
3543  ac_compiler_gnu=yes
3544else
3545  ac_compiler_gnu=no
3546fi
3547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548ac_cv_c_compiler_gnu=$ac_compiler_gnu
3549
3550fi
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3552$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3553if test $ac_compiler_gnu = yes; then
3554  GCC=yes
3555else
3556  GCC=
3557fi
3558ac_test_CFLAGS=${CFLAGS+set}
3559ac_save_CFLAGS=$CFLAGS
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3561$as_echo_n "checking whether $CC accepts -g... " >&6; }
3562if ${ac_cv_prog_cc_g+:} false; then :
3563  $as_echo_n "(cached) " >&6
3564else
3565  ac_save_c_werror_flag=$ac_c_werror_flag
3566   ac_c_werror_flag=yes
3567   ac_cv_prog_cc_g=no
3568   CFLAGS="-g"
3569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570/* end confdefs.h.  */
3571
3572int
3573main ()
3574{
3575
3576  ;
3577  return 0;
3578}
3579_ACEOF
3580if ac_fn_c_try_compile "$LINENO"; then :
3581  ac_cv_prog_cc_g=yes
3582else
3583  CFLAGS=""
3584      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h.  */
3586
3587int
3588main ()
3589{
3590
3591  ;
3592  return 0;
3593}
3594_ACEOF
3595if ac_fn_c_try_compile "$LINENO"; then :
3596
3597else
3598  ac_c_werror_flag=$ac_save_c_werror_flag
3599	 CFLAGS="-g"
3600	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601/* end confdefs.h.  */
3602
3603int
3604main ()
3605{
3606
3607  ;
3608  return 0;
3609}
3610_ACEOF
3611if ac_fn_c_try_compile "$LINENO"; then :
3612  ac_cv_prog_cc_g=yes
3613fi
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615fi
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617fi
3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619   ac_c_werror_flag=$ac_save_c_werror_flag
3620fi
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3622$as_echo "$ac_cv_prog_cc_g" >&6; }
3623if test "$ac_test_CFLAGS" = set; then
3624  CFLAGS=$ac_save_CFLAGS
3625elif test $ac_cv_prog_cc_g = yes; then
3626  if test "$GCC" = yes; then
3627    CFLAGS="-g -O2"
3628  else
3629    CFLAGS="-g"
3630  fi
3631else
3632  if test "$GCC" = yes; then
3633    CFLAGS="-O2"
3634  else
3635    CFLAGS=
3636  fi
3637fi
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3639$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3640if ${ac_cv_prog_cc_c89+:} false; then :
3641  $as_echo_n "(cached) " >&6
3642else
3643  ac_cv_prog_cc_c89=no
3644ac_save_CC=$CC
3645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646/* end confdefs.h.  */
3647#include <stdarg.h>
3648#include <stdio.h>
3649struct stat;
3650/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3651struct buf { int x; };
3652FILE * (*rcsopen) (struct buf *, struct stat *, int);
3653static char *e (p, i)
3654     char **p;
3655     int i;
3656{
3657  return p[i];
3658}
3659static char *f (char * (*g) (char **, int), char **p, ...)
3660{
3661  char *s;
3662  va_list v;
3663  va_start (v,p);
3664  s = g (p, va_arg (v,int));
3665  va_end (v);
3666  return s;
3667}
3668
3669/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3670   function prototypes and stuff, but not '\xHH' hex character constants.
3671   These don't provoke an error unfortunately, instead are silently treated
3672   as 'x'.  The following induces an error, until -std is added to get
3673   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3674   array size at least.  It's necessary to write '\x00'==0 to get something
3675   that's true only with -std.  */
3676int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3677
3678/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3679   inside strings and character constants.  */
3680#define FOO(x) 'x'
3681int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3682
3683int test (int i, double x);
3684struct s1 {int (*f) (int a);};
3685struct s2 {int (*f) (double a);};
3686int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3687int argc;
3688char **argv;
3689int
3690main ()
3691{
3692return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3693  ;
3694  return 0;
3695}
3696_ACEOF
3697for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3698	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3699do
3700  CC="$ac_save_CC $ac_arg"
3701  if ac_fn_c_try_compile "$LINENO"; then :
3702  ac_cv_prog_cc_c89=$ac_arg
3703fi
3704rm -f core conftest.err conftest.$ac_objext
3705  test "x$ac_cv_prog_cc_c89" != "xno" && break
3706done
3707rm -f conftest.$ac_ext
3708CC=$ac_save_CC
3709
3710fi
3711# AC_CACHE_VAL
3712case "x$ac_cv_prog_cc_c89" in
3713  x)
3714    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3715$as_echo "none needed" >&6; } ;;
3716  xno)
3717    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3718$as_echo "unsupported" >&6; } ;;
3719  *)
3720    CC="$CC $ac_cv_prog_cc_c89"
3721    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3722$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3723esac
3724if test "x$ac_cv_prog_cc_c89" != xno; then :
3725
3726fi
3727
3728ac_ext=c
3729ac_cpp='$CPP $CPPFLAGS'
3730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733
3734ac_ext=c
3735ac_cpp='$CPP $CPPFLAGS'
3736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3740$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3741if ${am_cv_prog_cc_c_o+:} false; then :
3742  $as_echo_n "(cached) " >&6
3743else
3744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745/* end confdefs.h.  */
3746
3747int
3748main ()
3749{
3750
3751  ;
3752  return 0;
3753}
3754_ACEOF
3755  # Make sure it works both with $CC and with simple cc.
3756  # Following AC_PROG_CC_C_O, we do the test twice because some
3757  # compilers refuse to overwrite an existing .o file with -o,
3758  # though they will create one.
3759  am_cv_prog_cc_c_o=yes
3760  for am_i in 1 2; do
3761    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3762   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3763   ac_status=$?
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); } \
3766         && test -f conftest2.$ac_objext; then
3767      : OK
3768    else
3769      am_cv_prog_cc_c_o=no
3770      break
3771    fi
3772  done
3773  rm -f core conftest*
3774  unset am_i
3775fi
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3777$as_echo "$am_cv_prog_cc_c_o" >&6; }
3778if test "$am_cv_prog_cc_c_o" != yes; then
3779   # Losing compiler, so override with the script.
3780   # FIXME: It is wrong to rewrite CC.
3781   # But if we don't then we get into trouble of one sort or another.
3782   # A longer-term fix would be to have automake use am__CC in this case,
3783   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3784   CC="$am_aux_dir/compile $CC"
3785fi
3786ac_ext=c
3787ac_cpp='$CPP $CPPFLAGS'
3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
3792
3793depcc="$CC"   am_compiler_list=
3794
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3796$as_echo_n "checking dependency style of $depcc... " >&6; }
3797if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3798  $as_echo_n "(cached) " >&6
3799else
3800  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3801  # We make a subdir and do the tests there.  Otherwise we can end up
3802  # making bogus files that we don't know about and never remove.  For
3803  # instance it was reported that on HP-UX the gcc test will end up
3804  # making a dummy file named 'D' -- because '-MD' means "put the output
3805  # in D".
3806  rm -rf conftest.dir
3807  mkdir conftest.dir
3808  # Copy depcomp to subdir because otherwise we won't find it if we're
3809  # using a relative directory.
3810  cp "$am_depcomp" conftest.dir
3811  cd conftest.dir
3812  # We will build objects and dependencies in a subdirectory because
3813  # it helps to detect inapplicable dependency modes.  For instance
3814  # both Tru64's cc and ICC support -MD to output dependencies as a
3815  # side effect of compilation, but ICC will put the dependencies in
3816  # the current directory while Tru64 will put them in the object
3817  # directory.
3818  mkdir sub
3819
3820  am_cv_CC_dependencies_compiler_type=none
3821  if test "$am_compiler_list" = ""; then
3822     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823  fi
3824  am__universal=false
3825  case " $depcc " in #(
3826     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3827     esac
3828
3829  for depmode in $am_compiler_list; do
3830    # Setup a source with many dependencies, because some compilers
3831    # like to wrap large dependency lists on column 80 (with \), and
3832    # we should not choose a depcomp mode which is confused by this.
3833    #
3834    # We need to recreate these files for each test, as the compiler may
3835    # overwrite some of them when testing with obscure command lines.
3836    # This happens at least with the AIX C compiler.
3837    : > sub/conftest.c
3838    for i in 1 2 3 4 5 6; do
3839      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3840      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3841      # Solaris 10 /bin/sh.
3842      echo '/* dummy */' > sub/conftst$i.h
3843    done
3844    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3845
3846    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3847    # mode.  It turns out that the SunPro C++ compiler does not properly
3848    # handle '-M -o', and we need to detect this.  Also, some Intel
3849    # versions had trouble with output in subdirs.
3850    am__obj=sub/conftest.${OBJEXT-o}
3851    am__minus_obj="-o $am__obj"
3852    case $depmode in
3853    gcc)
3854      # This depmode causes a compiler race in universal mode.
3855      test "$am__universal" = false || continue
3856      ;;
3857    nosideeffect)
3858      # After this tag, mechanisms are not by side-effect, so they'll
3859      # only be used when explicitly requested.
3860      if test "x$enable_dependency_tracking" = xyes; then
3861	continue
3862      else
3863	break
3864      fi
3865      ;;
3866    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3867      # This compiler won't grok '-c -o', but also, the minuso test has
3868      # not run yet.  These depmodes are late enough in the game, and
3869      # so weak that their functioning should not be impacted.
3870      am__obj=conftest.${OBJEXT-o}
3871      am__minus_obj=
3872      ;;
3873    none) break ;;
3874    esac
3875    if depmode=$depmode \
3876       source=sub/conftest.c object=$am__obj \
3877       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3878       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3879         >/dev/null 2>conftest.err &&
3880       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3881       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3882       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3883       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3884      # icc doesn't choke on unknown options, it will just issue warnings
3885      # or remarks (even with -Werror).  So we grep stderr for any message
3886      # that says an option was ignored or not supported.
3887      # When given -MP, icc 7.0 and 7.1 complain thusly:
3888      #   icc: Command line warning: ignoring option '-M'; no argument required
3889      # The diagnosis changed in icc 8.0:
3890      #   icc: Command line remark: option '-MP' not supported
3891      if (grep 'ignoring option' conftest.err ||
3892          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3893        am_cv_CC_dependencies_compiler_type=$depmode
3894        break
3895      fi
3896    fi
3897  done
3898
3899  cd ..
3900  rm -rf conftest.dir
3901else
3902  am_cv_CC_dependencies_compiler_type=none
3903fi
3904
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3907$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3908CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3909
3910 if
3911  test "x$enable_dependency_tracking" != xno \
3912  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3913  am__fastdepCC_TRUE=
3914  am__fastdepCC_FALSE='#'
3915else
3916  am__fastdepCC_TRUE='#'
3917  am__fastdepCC_FALSE=
3918fi
3919
3920
3921
3922ac_ext=c
3923ac_cpp='$CPP $CPPFLAGS'
3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3928$as_echo_n "checking how to run the C preprocessor... " >&6; }
3929# On Suns, sometimes $CPP names a directory.
3930if test -n "$CPP" && test -d "$CPP"; then
3931  CPP=
3932fi
3933if test -z "$CPP"; then
3934  if ${ac_cv_prog_CPP+:} false; then :
3935  $as_echo_n "(cached) " >&6
3936else
3937      # Double quotes because CPP needs to be expanded
3938    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3939    do
3940      ac_preproc_ok=false
3941for ac_c_preproc_warn_flag in '' yes
3942do
3943  # Use a header file that comes with gcc, so configuring glibc
3944  # with a fresh cross-compiler works.
3945  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946  # <limits.h> exists even on freestanding compilers.
3947  # On the NeXT, cc -E runs the code through the compiler's parser,
3948  # not just through cpp. "Syntax error" is here to catch this case.
3949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950/* end confdefs.h.  */
3951#ifdef __STDC__
3952# include <limits.h>
3953#else
3954# include <assert.h>
3955#endif
3956		     Syntax error
3957_ACEOF
3958if ac_fn_c_try_cpp "$LINENO"; then :
3959
3960else
3961  # Broken: fails on valid input.
3962continue
3963fi
3964rm -f conftest.err conftest.i conftest.$ac_ext
3965
3966  # OK, works on sane cases.  Now check whether nonexistent headers
3967  # can be detected and how.
3968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h.  */
3970#include <ac_nonexistent.h>
3971_ACEOF
3972if ac_fn_c_try_cpp "$LINENO"; then :
3973  # Broken: success on invalid input.
3974continue
3975else
3976  # Passes both tests.
3977ac_preproc_ok=:
3978break
3979fi
3980rm -f conftest.err conftest.i conftest.$ac_ext
3981
3982done
3983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3984rm -f conftest.i conftest.err conftest.$ac_ext
3985if $ac_preproc_ok; then :
3986  break
3987fi
3988
3989    done
3990    ac_cv_prog_CPP=$CPP
3991
3992fi
3993  CPP=$ac_cv_prog_CPP
3994else
3995  ac_cv_prog_CPP=$CPP
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3998$as_echo "$CPP" >&6; }
3999ac_preproc_ok=false
4000for ac_c_preproc_warn_flag in '' yes
4001do
4002  # Use a header file that comes with gcc, so configuring glibc
4003  # with a fresh cross-compiler works.
4004  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005  # <limits.h> exists even on freestanding compilers.
4006  # On the NeXT, cc -E runs the code through the compiler's parser,
4007  # not just through cpp. "Syntax error" is here to catch this case.
4008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h.  */
4010#ifdef __STDC__
4011# include <limits.h>
4012#else
4013# include <assert.h>
4014#endif
4015		     Syntax error
4016_ACEOF
4017if ac_fn_c_try_cpp "$LINENO"; then :
4018
4019else
4020  # Broken: fails on valid input.
4021continue
4022fi
4023rm -f conftest.err conftest.i conftest.$ac_ext
4024
4025  # OK, works on sane cases.  Now check whether nonexistent headers
4026  # can be detected and how.
4027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h.  */
4029#include <ac_nonexistent.h>
4030_ACEOF
4031if ac_fn_c_try_cpp "$LINENO"; then :
4032  # Broken: success on invalid input.
4033continue
4034else
4035  # Passes both tests.
4036ac_preproc_ok=:
4037break
4038fi
4039rm -f conftest.err conftest.i conftest.$ac_ext
4040
4041done
4042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043rm -f conftest.i conftest.err conftest.$ac_ext
4044if $ac_preproc_ok; then :
4045
4046else
4047  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4050See \`config.log' for more details" "$LINENO" 5; }
4051fi
4052
4053ac_ext=c
4054ac_cpp='$CPP $CPPFLAGS'
4055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058
4059
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4061$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4062if ${ac_cv_path_GREP+:} false; then :
4063  $as_echo_n "(cached) " >&6
4064else
4065  if test -z "$GREP"; then
4066  ac_path_GREP_found=false
4067  # Loop through the user's path and test for each of PROGNAME-LIST
4068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070do
4071  IFS=$as_save_IFS
4072  test -z "$as_dir" && as_dir=.
4073    for ac_prog in grep ggrep; do
4074    for ac_exec_ext in '' $ac_executable_extensions; do
4075      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4076      as_fn_executable_p "$ac_path_GREP" || continue
4077# Check for GNU ac_path_GREP and select it if it is found.
4078  # Check for GNU $ac_path_GREP
4079case `"$ac_path_GREP" --version 2>&1` in
4080*GNU*)
4081  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4082*)
4083  ac_count=0
4084  $as_echo_n 0123456789 >"conftest.in"
4085  while :
4086  do
4087    cat "conftest.in" "conftest.in" >"conftest.tmp"
4088    mv "conftest.tmp" "conftest.in"
4089    cp "conftest.in" "conftest.nl"
4090    $as_echo 'GREP' >> "conftest.nl"
4091    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093    as_fn_arith $ac_count + 1 && ac_count=$as_val
4094    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4095      # Best one so far, save it but keep looking for a better one
4096      ac_cv_path_GREP="$ac_path_GREP"
4097      ac_path_GREP_max=$ac_count
4098    fi
4099    # 10*(2^10) chars as input seems more than enough
4100    test $ac_count -gt 10 && break
4101  done
4102  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103esac
4104
4105      $ac_path_GREP_found && break 3
4106    done
4107  done
4108  done
4109IFS=$as_save_IFS
4110  if test -z "$ac_cv_path_GREP"; then
4111    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4112  fi
4113else
4114  ac_cv_path_GREP=$GREP
4115fi
4116
4117fi
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4119$as_echo "$ac_cv_path_GREP" >&6; }
4120 GREP="$ac_cv_path_GREP"
4121
4122
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4124$as_echo_n "checking for egrep... " >&6; }
4125if ${ac_cv_path_EGREP+:} false; then :
4126  $as_echo_n "(cached) " >&6
4127else
4128  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4129   then ac_cv_path_EGREP="$GREP -E"
4130   else
4131     if test -z "$EGREP"; then
4132  ac_path_EGREP_found=false
4133  # Loop through the user's path and test for each of PROGNAME-LIST
4134  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4136do
4137  IFS=$as_save_IFS
4138  test -z "$as_dir" && as_dir=.
4139    for ac_prog in egrep; do
4140    for ac_exec_ext in '' $ac_executable_extensions; do
4141      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4142      as_fn_executable_p "$ac_path_EGREP" || continue
4143# Check for GNU ac_path_EGREP and select it if it is found.
4144  # Check for GNU $ac_path_EGREP
4145case `"$ac_path_EGREP" --version 2>&1` in
4146*GNU*)
4147  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4148*)
4149  ac_count=0
4150  $as_echo_n 0123456789 >"conftest.in"
4151  while :
4152  do
4153    cat "conftest.in" "conftest.in" >"conftest.tmp"
4154    mv "conftest.tmp" "conftest.in"
4155    cp "conftest.in" "conftest.nl"
4156    $as_echo 'EGREP' >> "conftest.nl"
4157    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4158    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4159    as_fn_arith $ac_count + 1 && ac_count=$as_val
4160    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4161      # Best one so far, save it but keep looking for a better one
4162      ac_cv_path_EGREP="$ac_path_EGREP"
4163      ac_path_EGREP_max=$ac_count
4164    fi
4165    # 10*(2^10) chars as input seems more than enough
4166    test $ac_count -gt 10 && break
4167  done
4168  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4169esac
4170
4171      $ac_path_EGREP_found && break 3
4172    done
4173  done
4174  done
4175IFS=$as_save_IFS
4176  if test -z "$ac_cv_path_EGREP"; then
4177    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4178  fi
4179else
4180  ac_cv_path_EGREP=$EGREP
4181fi
4182
4183   fi
4184fi
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4186$as_echo "$ac_cv_path_EGREP" >&6; }
4187 EGREP="$ac_cv_path_EGREP"
4188
4189
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4191$as_echo_n "checking for ANSI C header files... " >&6; }
4192if ${ac_cv_header_stdc+:} false; then :
4193  $as_echo_n "(cached) " >&6
4194else
4195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196/* end confdefs.h.  */
4197#include <stdlib.h>
4198#include <stdarg.h>
4199#include <string.h>
4200#include <float.h>
4201
4202int
4203main ()
4204{
4205
4206  ;
4207  return 0;
4208}
4209_ACEOF
4210if ac_fn_c_try_compile "$LINENO"; then :
4211  ac_cv_header_stdc=yes
4212else
4213  ac_cv_header_stdc=no
4214fi
4215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216
4217if test $ac_cv_header_stdc = yes; then
4218  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220/* end confdefs.h.  */
4221#include <string.h>
4222
4223_ACEOF
4224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4225  $EGREP "memchr" >/dev/null 2>&1; then :
4226
4227else
4228  ac_cv_header_stdc=no
4229fi
4230rm -f conftest*
4231
4232fi
4233
4234if test $ac_cv_header_stdc = yes; then
4235  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237/* end confdefs.h.  */
4238#include <stdlib.h>
4239
4240_ACEOF
4241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4242  $EGREP "free" >/dev/null 2>&1; then :
4243
4244else
4245  ac_cv_header_stdc=no
4246fi
4247rm -f conftest*
4248
4249fi
4250
4251if test $ac_cv_header_stdc = yes; then
4252  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4253  if test "$cross_compiling" = yes; then :
4254  :
4255else
4256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h.  */
4258#include <ctype.h>
4259#include <stdlib.h>
4260#if ((' ' & 0x0FF) == 0x020)
4261# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4262# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4263#else
4264# define ISLOWER(c) \
4265		   (('a' <= (c) && (c) <= 'i') \
4266		     || ('j' <= (c) && (c) <= 'r') \
4267		     || ('s' <= (c) && (c) <= 'z'))
4268# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4269#endif
4270
4271#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4272int
4273main ()
4274{
4275  int i;
4276  for (i = 0; i < 256; i++)
4277    if (XOR (islower (i), ISLOWER (i))
4278	|| toupper (i) != TOUPPER (i))
4279      return 2;
4280  return 0;
4281}
4282_ACEOF
4283if ac_fn_c_try_run "$LINENO"; then :
4284
4285else
4286  ac_cv_header_stdc=no
4287fi
4288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4289  conftest.$ac_objext conftest.beam conftest.$ac_ext
4290fi
4291
4292fi
4293fi
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4295$as_echo "$ac_cv_header_stdc" >&6; }
4296if test $ac_cv_header_stdc = yes; then
4297
4298$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4299
4300fi
4301
4302# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4303for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4304		  inttypes.h stdint.h unistd.h
4305do :
4306  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4307ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4308"
4309if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4310  cat >>confdefs.h <<_ACEOF
4311#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312_ACEOF
4313
4314fi
4315
4316done
4317
4318
4319
4320  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4321if test "x$ac_cv_header_minix_config_h" = xyes; then :
4322  MINIX=yes
4323else
4324  MINIX=
4325fi
4326
4327
4328  if test "$MINIX" = yes; then
4329
4330$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4331
4332
4333$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4334
4335
4336$as_echo "#define _MINIX 1" >>confdefs.h
4337
4338  fi
4339
4340
4341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4342$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4343if ${ac_cv_safe_to_define___extensions__+:} false; then :
4344  $as_echo_n "(cached) " >&6
4345else
4346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347/* end confdefs.h.  */
4348
4349#         define __EXTENSIONS__ 1
4350          $ac_includes_default
4351int
4352main ()
4353{
4354
4355  ;
4356  return 0;
4357}
4358_ACEOF
4359if ac_fn_c_try_compile "$LINENO"; then :
4360  ac_cv_safe_to_define___extensions__=yes
4361else
4362  ac_cv_safe_to_define___extensions__=no
4363fi
4364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365fi
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4367$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4368  test $ac_cv_safe_to_define___extensions__ = yes &&
4369    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4370
4371  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4372
4373  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4374
4375  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4376
4377  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4378
4379
4380ac_ext=c
4381ac_cpp='$CPP $CPPFLAGS'
4382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385if test -n "$ac_tool_prefix"; then
4386  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4387set dummy ${ac_tool_prefix}gcc; ac_word=$2
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389$as_echo_n "checking for $ac_word... " >&6; }
4390if ${ac_cv_prog_CC+:} false; then :
4391  $as_echo_n "(cached) " >&6
4392else
4393  if test -n "$CC"; then
4394  ac_cv_prog_CC="$CC" # Let the user override the test.
4395else
4396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH
4398do
4399  IFS=$as_save_IFS
4400  test -z "$as_dir" && as_dir=.
4401    for ac_exec_ext in '' $ac_executable_extensions; do
4402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405    break 2
4406  fi
4407done
4408  done
4409IFS=$as_save_IFS
4410
4411fi
4412fi
4413CC=$ac_cv_prog_CC
4414if test -n "$CC"; then
4415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4416$as_echo "$CC" >&6; }
4417else
4418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419$as_echo "no" >&6; }
4420fi
4421
4422
4423fi
4424if test -z "$ac_cv_prog_CC"; then
4425  ac_ct_CC=$CC
4426  # Extract the first word of "gcc", so it can be a program name with args.
4427set dummy gcc; ac_word=$2
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429$as_echo_n "checking for $ac_word... " >&6; }
4430if ${ac_cv_prog_ac_ct_CC+:} false; then :
4431  $as_echo_n "(cached) " >&6
4432else
4433  if test -n "$ac_ct_CC"; then
4434  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4435else
4436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437for as_dir in $PATH
4438do
4439  IFS=$as_save_IFS
4440  test -z "$as_dir" && as_dir=.
4441    for ac_exec_ext in '' $ac_executable_extensions; do
4442  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443    ac_cv_prog_ac_ct_CC="gcc"
4444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445    break 2
4446  fi
4447done
4448  done
4449IFS=$as_save_IFS
4450
4451fi
4452fi
4453ac_ct_CC=$ac_cv_prog_ac_ct_CC
4454if test -n "$ac_ct_CC"; then
4455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4456$as_echo "$ac_ct_CC" >&6; }
4457else
4458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459$as_echo "no" >&6; }
4460fi
4461
4462  if test "x$ac_ct_CC" = x; then
4463    CC=""
4464  else
4465    case $cross_compiling:$ac_tool_warned in
4466yes:)
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4469ac_tool_warned=yes ;;
4470esac
4471    CC=$ac_ct_CC
4472  fi
4473else
4474  CC="$ac_cv_prog_CC"
4475fi
4476
4477if test -z "$CC"; then
4478          if test -n "$ac_tool_prefix"; then
4479    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4480set dummy ${ac_tool_prefix}cc; ac_word=$2
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482$as_echo_n "checking for $ac_word... " >&6; }
4483if ${ac_cv_prog_CC+:} false; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486  if test -n "$CC"; then
4487  ac_cv_prog_CC="$CC" # Let the user override the test.
4488else
4489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490for as_dir in $PATH
4491do
4492  IFS=$as_save_IFS
4493  test -z "$as_dir" && as_dir=.
4494    for ac_exec_ext in '' $ac_executable_extensions; do
4495  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496    ac_cv_prog_CC="${ac_tool_prefix}cc"
4497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4498    break 2
4499  fi
4500done
4501  done
4502IFS=$as_save_IFS
4503
4504fi
4505fi
4506CC=$ac_cv_prog_CC
4507if test -n "$CC"; then
4508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4509$as_echo "$CC" >&6; }
4510else
4511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512$as_echo "no" >&6; }
4513fi
4514
4515
4516  fi
4517fi
4518if test -z "$CC"; then
4519  # Extract the first word of "cc", so it can be a program name with args.
4520set dummy cc; ac_word=$2
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522$as_echo_n "checking for $ac_word... " >&6; }
4523if ${ac_cv_prog_CC+:} false; then :
4524  $as_echo_n "(cached) " >&6
4525else
4526  if test -n "$CC"; then
4527  ac_cv_prog_CC="$CC" # Let the user override the test.
4528else
4529  ac_prog_rejected=no
4530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531for as_dir in $PATH
4532do
4533  IFS=$as_save_IFS
4534  test -z "$as_dir" && as_dir=.
4535    for ac_exec_ext in '' $ac_executable_extensions; do
4536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4537    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4538       ac_prog_rejected=yes
4539       continue
4540     fi
4541    ac_cv_prog_CC="cc"
4542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4543    break 2
4544  fi
4545done
4546  done
4547IFS=$as_save_IFS
4548
4549if test $ac_prog_rejected = yes; then
4550  # We found a bogon in the path, so make sure we never use it.
4551  set dummy $ac_cv_prog_CC
4552  shift
4553  if test $# != 0; then
4554    # We chose a different compiler from the bogus one.
4555    # However, it has the same basename, so the bogon will be chosen
4556    # first if we set CC to just the basename; use the full file name.
4557    shift
4558    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4559  fi
4560fi
4561fi
4562fi
4563CC=$ac_cv_prog_CC
4564if test -n "$CC"; then
4565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4566$as_echo "$CC" >&6; }
4567else
4568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569$as_echo "no" >&6; }
4570fi
4571
4572
4573fi
4574if test -z "$CC"; then
4575  if test -n "$ac_tool_prefix"; then
4576  for ac_prog in cl.exe
4577  do
4578    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4579set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581$as_echo_n "checking for $ac_word... " >&6; }
4582if ${ac_cv_prog_CC+:} false; then :
4583  $as_echo_n "(cached) " >&6
4584else
4585  if test -n "$CC"; then
4586  ac_cv_prog_CC="$CC" # Let the user override the test.
4587else
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591  IFS=$as_save_IFS
4592  test -z "$as_dir" && as_dir=.
4593    for ac_exec_ext in '' $ac_executable_extensions; do
4594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597    break 2
4598  fi
4599done
4600  done
4601IFS=$as_save_IFS
4602
4603fi
4604fi
4605CC=$ac_cv_prog_CC
4606if test -n "$CC"; then
4607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4608$as_echo "$CC" >&6; }
4609else
4610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611$as_echo "no" >&6; }
4612fi
4613
4614
4615    test -n "$CC" && break
4616  done
4617fi
4618if test -z "$CC"; then
4619  ac_ct_CC=$CC
4620  for ac_prog in cl.exe
4621do
4622  # Extract the first word of "$ac_prog", so it can be a program name with args.
4623set dummy $ac_prog; ac_word=$2
4624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4625$as_echo_n "checking for $ac_word... " >&6; }
4626if ${ac_cv_prog_ac_ct_CC+:} false; then :
4627  $as_echo_n "(cached) " >&6
4628else
4629  if test -n "$ac_ct_CC"; then
4630  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4631else
4632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH
4634do
4635  IFS=$as_save_IFS
4636  test -z "$as_dir" && as_dir=.
4637    for ac_exec_ext in '' $ac_executable_extensions; do
4638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639    ac_cv_prog_ac_ct_CC="$ac_prog"
4640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641    break 2
4642  fi
4643done
4644  done
4645IFS=$as_save_IFS
4646
4647fi
4648fi
4649ac_ct_CC=$ac_cv_prog_ac_ct_CC
4650if test -n "$ac_ct_CC"; then
4651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4652$as_echo "$ac_ct_CC" >&6; }
4653else
4654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655$as_echo "no" >&6; }
4656fi
4657
4658
4659  test -n "$ac_ct_CC" && break
4660done
4661
4662  if test "x$ac_ct_CC" = x; then
4663    CC=""
4664  else
4665    case $cross_compiling:$ac_tool_warned in
4666yes:)
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4669ac_tool_warned=yes ;;
4670esac
4671    CC=$ac_ct_CC
4672  fi
4673fi
4674
4675fi
4676
4677
4678test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680as_fn_error $? "no acceptable C compiler found in \$PATH
4681See \`config.log' for more details" "$LINENO" 5; }
4682
4683# Provide some information about the compiler.
4684$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4685set X $ac_compile
4686ac_compiler=$2
4687for ac_option in --version -v -V -qversion; do
4688  { { ac_try="$ac_compiler $ac_option >&5"
4689case "(($ac_try" in
4690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691  *) ac_try_echo=$ac_try;;
4692esac
4693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4694$as_echo "$ac_try_echo"; } >&5
4695  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4696  ac_status=$?
4697  if test -s conftest.err; then
4698    sed '10a\
4699... rest of stderr output deleted ...
4700         10q' conftest.err >conftest.er1
4701    cat conftest.er1 >&5
4702  fi
4703  rm -f conftest.er1 conftest.err
4704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4705  test $ac_status = 0; }
4706done
4707
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4709$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4710if ${ac_cv_c_compiler_gnu+:} false; then :
4711  $as_echo_n "(cached) " >&6
4712else
4713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714/* end confdefs.h.  */
4715
4716int
4717main ()
4718{
4719#ifndef __GNUC__
4720       choke me
4721#endif
4722
4723  ;
4724  return 0;
4725}
4726_ACEOF
4727if ac_fn_c_try_compile "$LINENO"; then :
4728  ac_compiler_gnu=yes
4729else
4730  ac_compiler_gnu=no
4731fi
4732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733ac_cv_c_compiler_gnu=$ac_compiler_gnu
4734
4735fi
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4737$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4738if test $ac_compiler_gnu = yes; then
4739  GCC=yes
4740else
4741  GCC=
4742fi
4743ac_test_CFLAGS=${CFLAGS+set}
4744ac_save_CFLAGS=$CFLAGS
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4746$as_echo_n "checking whether $CC accepts -g... " >&6; }
4747if ${ac_cv_prog_cc_g+:} false; then :
4748  $as_echo_n "(cached) " >&6
4749else
4750  ac_save_c_werror_flag=$ac_c_werror_flag
4751   ac_c_werror_flag=yes
4752   ac_cv_prog_cc_g=no
4753   CFLAGS="-g"
4754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755/* end confdefs.h.  */
4756
4757int
4758main ()
4759{
4760
4761  ;
4762  return 0;
4763}
4764_ACEOF
4765if ac_fn_c_try_compile "$LINENO"; then :
4766  ac_cv_prog_cc_g=yes
4767else
4768  CFLAGS=""
4769      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h.  */
4771
4772int
4773main ()
4774{
4775
4776  ;
4777  return 0;
4778}
4779_ACEOF
4780if ac_fn_c_try_compile "$LINENO"; then :
4781
4782else
4783  ac_c_werror_flag=$ac_save_c_werror_flag
4784	 CFLAGS="-g"
4785	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h.  */
4787
4788int
4789main ()
4790{
4791
4792  ;
4793  return 0;
4794}
4795_ACEOF
4796if ac_fn_c_try_compile "$LINENO"; then :
4797  ac_cv_prog_cc_g=yes
4798fi
4799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800fi
4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802fi
4803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804   ac_c_werror_flag=$ac_save_c_werror_flag
4805fi
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4807$as_echo "$ac_cv_prog_cc_g" >&6; }
4808if test "$ac_test_CFLAGS" = set; then
4809  CFLAGS=$ac_save_CFLAGS
4810elif test $ac_cv_prog_cc_g = yes; then
4811  if test "$GCC" = yes; then
4812    CFLAGS="-g -O2"
4813  else
4814    CFLAGS="-g"
4815  fi
4816else
4817  if test "$GCC" = yes; then
4818    CFLAGS="-O2"
4819  else
4820    CFLAGS=
4821  fi
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4824$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4825if ${ac_cv_prog_cc_c89+:} false; then :
4826  $as_echo_n "(cached) " >&6
4827else
4828  ac_cv_prog_cc_c89=no
4829ac_save_CC=$CC
4830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831/* end confdefs.h.  */
4832#include <stdarg.h>
4833#include <stdio.h>
4834struct stat;
4835/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4836struct buf { int x; };
4837FILE * (*rcsopen) (struct buf *, struct stat *, int);
4838static char *e (p, i)
4839     char **p;
4840     int i;
4841{
4842  return p[i];
4843}
4844static char *f (char * (*g) (char **, int), char **p, ...)
4845{
4846  char *s;
4847  va_list v;
4848  va_start (v,p);
4849  s = g (p, va_arg (v,int));
4850  va_end (v);
4851  return s;
4852}
4853
4854/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4855   function prototypes and stuff, but not '\xHH' hex character constants.
4856   These don't provoke an error unfortunately, instead are silently treated
4857   as 'x'.  The following induces an error, until -std is added to get
4858   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4859   array size at least.  It's necessary to write '\x00'==0 to get something
4860   that's true only with -std.  */
4861int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4862
4863/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4864   inside strings and character constants.  */
4865#define FOO(x) 'x'
4866int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4867
4868int test (int i, double x);
4869struct s1 {int (*f) (int a);};
4870struct s2 {int (*f) (double a);};
4871int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4872int argc;
4873char **argv;
4874int
4875main ()
4876{
4877return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4878  ;
4879  return 0;
4880}
4881_ACEOF
4882for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4883	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4884do
4885  CC="$ac_save_CC $ac_arg"
4886  if ac_fn_c_try_compile "$LINENO"; then :
4887  ac_cv_prog_cc_c89=$ac_arg
4888fi
4889rm -f core conftest.err conftest.$ac_objext
4890  test "x$ac_cv_prog_cc_c89" != "xno" && break
4891done
4892rm -f conftest.$ac_ext
4893CC=$ac_save_CC
4894
4895fi
4896# AC_CACHE_VAL
4897case "x$ac_cv_prog_cc_c89" in
4898  x)
4899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4900$as_echo "none needed" >&6; } ;;
4901  xno)
4902    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4903$as_echo "unsupported" >&6; } ;;
4904  *)
4905    CC="$CC $ac_cv_prog_cc_c89"
4906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4907$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4908esac
4909if test "x$ac_cv_prog_cc_c89" != xno; then :
4910
4911fi
4912
4913ac_ext=c
4914ac_cpp='$CPP $CPPFLAGS'
4915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
4919ac_ext=c
4920ac_cpp='$CPP $CPPFLAGS'
4921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4925$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4926if ${am_cv_prog_cc_c_o+:} false; then :
4927  $as_echo_n "(cached) " >&6
4928else
4929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930/* end confdefs.h.  */
4931
4932int
4933main ()
4934{
4935
4936  ;
4937  return 0;
4938}
4939_ACEOF
4940  # Make sure it works both with $CC and with simple cc.
4941  # Following AC_PROG_CC_C_O, we do the test twice because some
4942  # compilers refuse to overwrite an existing .o file with -o,
4943  # though they will create one.
4944  am_cv_prog_cc_c_o=yes
4945  for am_i in 1 2; do
4946    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4947   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4948   ac_status=$?
4949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); } \
4951         && test -f conftest2.$ac_objext; then
4952      : OK
4953    else
4954      am_cv_prog_cc_c_o=no
4955      break
4956    fi
4957  done
4958  rm -f core conftest*
4959  unset am_i
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4962$as_echo "$am_cv_prog_cc_c_o" >&6; }
4963if test "$am_cv_prog_cc_c_o" != yes; then
4964   # Losing compiler, so override with the script.
4965   # FIXME: It is wrong to rewrite CC.
4966   # But if we don't then we get into trouble of one sort or another.
4967   # A longer-term fix would be to have automake use am__CC in this case,
4968   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4969   CC="$am_aux_dir/compile $CC"
4970fi
4971ac_ext=c
4972ac_cpp='$CPP $CPPFLAGS'
4973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976
4977
4978depcc="$CC"   am_compiler_list=
4979
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4981$as_echo_n "checking dependency style of $depcc... " >&6; }
4982if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4983  $as_echo_n "(cached) " >&6
4984else
4985  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4986  # We make a subdir and do the tests there.  Otherwise we can end up
4987  # making bogus files that we don't know about and never remove.  For
4988  # instance it was reported that on HP-UX the gcc test will end up
4989  # making a dummy file named 'D' -- because '-MD' means "put the output
4990  # in D".
4991  rm -rf conftest.dir
4992  mkdir conftest.dir
4993  # Copy depcomp to subdir because otherwise we won't find it if we're
4994  # using a relative directory.
4995  cp "$am_depcomp" conftest.dir
4996  cd conftest.dir
4997  # We will build objects and dependencies in a subdirectory because
4998  # it helps to detect inapplicable dependency modes.  For instance
4999  # both Tru64's cc and ICC support -MD to output dependencies as a
5000  # side effect of compilation, but ICC will put the dependencies in
5001  # the current directory while Tru64 will put them in the object
5002  # directory.
5003  mkdir sub
5004
5005  am_cv_CC_dependencies_compiler_type=none
5006  if test "$am_compiler_list" = ""; then
5007     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5008  fi
5009  am__universal=false
5010  case " $depcc " in #(
5011     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5012     esac
5013
5014  for depmode in $am_compiler_list; do
5015    # Setup a source with many dependencies, because some compilers
5016    # like to wrap large dependency lists on column 80 (with \), and
5017    # we should not choose a depcomp mode which is confused by this.
5018    #
5019    # We need to recreate these files for each test, as the compiler may
5020    # overwrite some of them when testing with obscure command lines.
5021    # This happens at least with the AIX C compiler.
5022    : > sub/conftest.c
5023    for i in 1 2 3 4 5 6; do
5024      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5025      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5026      # Solaris 10 /bin/sh.
5027      echo '/* dummy */' > sub/conftst$i.h
5028    done
5029    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5030
5031    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5032    # mode.  It turns out that the SunPro C++ compiler does not properly
5033    # handle '-M -o', and we need to detect this.  Also, some Intel
5034    # versions had trouble with output in subdirs.
5035    am__obj=sub/conftest.${OBJEXT-o}
5036    am__minus_obj="-o $am__obj"
5037    case $depmode in
5038    gcc)
5039      # This depmode causes a compiler race in universal mode.
5040      test "$am__universal" = false || continue
5041      ;;
5042    nosideeffect)
5043      # After this tag, mechanisms are not by side-effect, so they'll
5044      # only be used when explicitly requested.
5045      if test "x$enable_dependency_tracking" = xyes; then
5046	continue
5047      else
5048	break
5049      fi
5050      ;;
5051    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5052      # This compiler won't grok '-c -o', but also, the minuso test has
5053      # not run yet.  These depmodes are late enough in the game, and
5054      # so weak that their functioning should not be impacted.
5055      am__obj=conftest.${OBJEXT-o}
5056      am__minus_obj=
5057      ;;
5058    none) break ;;
5059    esac
5060    if depmode=$depmode \
5061       source=sub/conftest.c object=$am__obj \
5062       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5063       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5064         >/dev/null 2>conftest.err &&
5065       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5066       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5067       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5068       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5069      # icc doesn't choke on unknown options, it will just issue warnings
5070      # or remarks (even with -Werror).  So we grep stderr for any message
5071      # that says an option was ignored or not supported.
5072      # When given -MP, icc 7.0 and 7.1 complain thusly:
5073      #   icc: Command line warning: ignoring option '-M'; no argument required
5074      # The diagnosis changed in icc 8.0:
5075      #   icc: Command line remark: option '-MP' not supported
5076      if (grep 'ignoring option' conftest.err ||
5077          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5078        am_cv_CC_dependencies_compiler_type=$depmode
5079        break
5080      fi
5081    fi
5082  done
5083
5084  cd ..
5085  rm -rf conftest.dir
5086else
5087  am_cv_CC_dependencies_compiler_type=none
5088fi
5089
5090fi
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5092$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5093CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5094
5095 if
5096  test "x$enable_dependency_tracking" != xno \
5097  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5098  am__fastdepCC_TRUE=
5099  am__fastdepCC_FALSE='#'
5100else
5101  am__fastdepCC_TRUE='#'
5102  am__fastdepCC_FALSE=
5103fi
5104
5105
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5107$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5108if ${ac_cv_prog_cc_c99+:} false; then :
5109  $as_echo_n "(cached) " >&6
5110else
5111  ac_cv_prog_cc_c99=no
5112ac_save_CC=$CC
5113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114/* end confdefs.h.  */
5115#include <stdarg.h>
5116#include <stdbool.h>
5117#include <stdlib.h>
5118#include <wchar.h>
5119#include <stdio.h>
5120
5121// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5122#define debug(...) fprintf (stderr, __VA_ARGS__)
5123#define showlist(...) puts (#__VA_ARGS__)
5124#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5125static void
5126test_varargs_macros (void)
5127{
5128  int x = 1234;
5129  int y = 5678;
5130  debug ("Flag");
5131  debug ("X = %d\n", x);
5132  showlist (The first, second, and third items.);
5133  report (x>y, "x is %d but y is %d", x, y);
5134}
5135
5136// Check long long types.
5137#define BIG64 18446744073709551615ull
5138#define BIG32 4294967295ul
5139#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5140#if !BIG_OK
5141  your preprocessor is broken;
5142#endif
5143#if BIG_OK
5144#else
5145  your preprocessor is broken;
5146#endif
5147static long long int bignum = -9223372036854775807LL;
5148static unsigned long long int ubignum = BIG64;
5149
5150struct incomplete_array
5151{
5152  int datasize;
5153  double data[];
5154};
5155
5156struct named_init {
5157  int number;
5158  const wchar_t *name;
5159  double average;
5160};
5161
5162typedef const char *ccp;
5163
5164static inline int
5165test_restrict (ccp restrict text)
5166{
5167  // See if C++-style comments work.
5168  // Iterate through items via the restricted pointer.
5169  // Also check for declarations in for loops.
5170  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5171    continue;
5172  return 0;
5173}
5174
5175// Check varargs and va_copy.
5176static void
5177test_varargs (const char *format, ...)
5178{
5179  va_list args;
5180  va_start (args, format);
5181  va_list args_copy;
5182  va_copy (args_copy, args);
5183
5184  const char *str;
5185  int number;
5186  float fnumber;
5187
5188  while (*format)
5189    {
5190      switch (*format++)
5191	{
5192	case 's': // string
5193	  str = va_arg (args_copy, const char *);
5194	  break;
5195	case 'd': // int
5196	  number = va_arg (args_copy, int);
5197	  break;
5198	case 'f': // float
5199	  fnumber = va_arg (args_copy, double);
5200	  break;
5201	default:
5202	  break;
5203	}
5204    }
5205  va_end (args_copy);
5206  va_end (args);
5207}
5208
5209int
5210main ()
5211{
5212
5213  // Check bool.
5214  _Bool success = false;
5215
5216  // Check restrict.
5217  if (test_restrict ("String literal") == 0)
5218    success = true;
5219  char *restrict newvar = "Another string";
5220
5221  // Check varargs.
5222  test_varargs ("s, d' f .", "string", 65, 34.234);
5223  test_varargs_macros ();
5224
5225  // Check flexible array members.
5226  struct incomplete_array *ia =
5227    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5228  ia->datasize = 10;
5229  for (int i = 0; i < ia->datasize; ++i)
5230    ia->data[i] = i * 1.234;
5231
5232  // Check named initializers.
5233  struct named_init ni = {
5234    .number = 34,
5235    .name = L"Test wide string",
5236    .average = 543.34343,
5237  };
5238
5239  ni.number = 58;
5240
5241  int dynamic_array[ni.number];
5242  dynamic_array[ni.number - 1] = 543;
5243
5244  // work around unused variable warnings
5245  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5246	  || dynamic_array[ni.number - 1] != 543);
5247
5248  ;
5249  return 0;
5250}
5251_ACEOF
5252for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5253do
5254  CC="$ac_save_CC $ac_arg"
5255  if ac_fn_c_try_compile "$LINENO"; then :
5256  ac_cv_prog_cc_c99=$ac_arg
5257fi
5258rm -f core conftest.err conftest.$ac_objext
5259  test "x$ac_cv_prog_cc_c99" != "xno" && break
5260done
5261rm -f conftest.$ac_ext
5262CC=$ac_save_CC
5263
5264fi
5265# AC_CACHE_VAL
5266case "x$ac_cv_prog_cc_c99" in
5267  x)
5268    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5269$as_echo "none needed" >&6; } ;;
5270  xno)
5271    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5272$as_echo "unsupported" >&6; } ;;
5273  *)
5274    CC="$CC $ac_cv_prog_cc_c99"
5275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5276$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5277esac
5278if test "x$ac_cv_prog_cc_c99" != xno; then :
5279
5280fi
5281
5282
5283for ac_prog in gawk mawk nawk awk
5284do
5285  # Extract the first word of "$ac_prog", so it can be a program name with args.
5286set dummy $ac_prog; ac_word=$2
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288$as_echo_n "checking for $ac_word... " >&6; }
5289if ${ac_cv_prog_AWK+:} false; then :
5290  $as_echo_n "(cached) " >&6
5291else
5292  if test -n "$AWK"; then
5293  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5294else
5295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296for as_dir in $PATH
5297do
5298  IFS=$as_save_IFS
5299  test -z "$as_dir" && as_dir=.
5300    for ac_exec_ext in '' $ac_executable_extensions; do
5301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302    ac_cv_prog_AWK="$ac_prog"
5303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304    break 2
5305  fi
5306done
5307  done
5308IFS=$as_save_IFS
5309
5310fi
5311fi
5312AWK=$ac_cv_prog_AWK
5313if test -n "$AWK"; then
5314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5315$as_echo "$AWK" >&6; }
5316else
5317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318$as_echo "no" >&6; }
5319fi
5320
5321
5322  test -n "$AWK" && break
5323done
5324
5325
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5327$as_echo_n "checking whether ln -s works... " >&6; }
5328LN_S=$as_ln_s
5329if test "$LN_S" = "ln -s"; then
5330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5331$as_echo "yes" >&6; }
5332else
5333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5334$as_echo "no, using $LN_S" >&6; }
5335fi
5336
5337case `pwd` in
5338  *\ * | *\	*)
5339    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5340$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5341esac
5342
5343
5344
5345macro_version='2.4.6'
5346macro_revision='2.4.6'
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360ltmain=$ac_aux_dir/ltmain.sh
5361
5362# Make sure we can run config.sub.
5363$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5364  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5365
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5367$as_echo_n "checking build system type... " >&6; }
5368if ${ac_cv_build+:} false; then :
5369  $as_echo_n "(cached) " >&6
5370else
5371  ac_build_alias=$build_alias
5372test "x$ac_build_alias" = x &&
5373  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5374test "x$ac_build_alias" = x &&
5375  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5376ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5377  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5378
5379fi
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5381$as_echo "$ac_cv_build" >&6; }
5382case $ac_cv_build in
5383*-*-*) ;;
5384*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5385esac
5386build=$ac_cv_build
5387ac_save_IFS=$IFS; IFS='-'
5388set x $ac_cv_build
5389shift
5390build_cpu=$1
5391build_vendor=$2
5392shift; shift
5393# Remember, the first character of IFS is used to create $*,
5394# except with old shells:
5395build_os=$*
5396IFS=$ac_save_IFS
5397case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5398
5399
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5401$as_echo_n "checking host system type... " >&6; }
5402if ${ac_cv_host+:} false; then :
5403  $as_echo_n "(cached) " >&6
5404else
5405  if test "x$host_alias" = x; then
5406  ac_cv_host=$ac_cv_build
5407else
5408  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5409    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5410fi
5411
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5414$as_echo "$ac_cv_host" >&6; }
5415case $ac_cv_host in
5416*-*-*) ;;
5417*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5418esac
5419host=$ac_cv_host
5420ac_save_IFS=$IFS; IFS='-'
5421set x $ac_cv_host
5422shift
5423host_cpu=$1
5424host_vendor=$2
5425shift; shift
5426# Remember, the first character of IFS is used to create $*,
5427# except with old shells:
5428host_os=$*
5429IFS=$ac_save_IFS
5430case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5431
5432
5433# Backslashify metacharacters that are still active within
5434# double-quoted strings.
5435sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5436
5437# Same as above, but do not quote variable references.
5438double_quote_subst='s/\(["`\\]\)/\\\1/g'
5439
5440# Sed substitution to delay expansion of an escaped shell variable in a
5441# double_quote_subst'ed string.
5442delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5443
5444# Sed substitution to delay expansion of an escaped single quote.
5445delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5446
5447# Sed substitution to avoid accidental globbing in evaled expressions
5448no_glob_subst='s/\*/\\\*/g'
5449
5450ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5451ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5452ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5453
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5455$as_echo_n "checking how to print strings... " >&6; }
5456# Test print first, because it will be a builtin if present.
5457if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5458   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5459  ECHO='print -r --'
5460elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5461  ECHO='printf %s\n'
5462else
5463  # Use this function as a fallback that always works.
5464  func_fallback_echo ()
5465  {
5466    eval 'cat <<_LTECHO_EOF
5467$1
5468_LTECHO_EOF'
5469  }
5470  ECHO='func_fallback_echo'
5471fi
5472
5473# func_echo_all arg...
5474# Invoke $ECHO with all args, space-separated.
5475func_echo_all ()
5476{
5477    $ECHO ""
5478}
5479
5480case $ECHO in
5481  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5482$as_echo "printf" >&6; } ;;
5483  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5484$as_echo "print -r" >&6; } ;;
5485  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5486$as_echo "cat" >&6; } ;;
5487esac
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5503$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5504if ${ac_cv_path_SED+:} false; then :
5505  $as_echo_n "(cached) " >&6
5506else
5507            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5508     for ac_i in 1 2 3 4 5 6 7; do
5509       ac_script="$ac_script$as_nl$ac_script"
5510     done
5511     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5512     { ac_script=; unset ac_script;}
5513     if test -z "$SED"; then
5514  ac_path_SED_found=false
5515  # Loop through the user's path and test for each of PROGNAME-LIST
5516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519  IFS=$as_save_IFS
5520  test -z "$as_dir" && as_dir=.
5521    for ac_prog in sed gsed; do
5522    for ac_exec_ext in '' $ac_executable_extensions; do
5523      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5524      as_fn_executable_p "$ac_path_SED" || continue
5525# Check for GNU ac_path_SED and select it if it is found.
5526  # Check for GNU $ac_path_SED
5527case `"$ac_path_SED" --version 2>&1` in
5528*GNU*)
5529  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5530*)
5531  ac_count=0
5532  $as_echo_n 0123456789 >"conftest.in"
5533  while :
5534  do
5535    cat "conftest.in" "conftest.in" >"conftest.tmp"
5536    mv "conftest.tmp" "conftest.in"
5537    cp "conftest.in" "conftest.nl"
5538    $as_echo '' >> "conftest.nl"
5539    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5540    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5541    as_fn_arith $ac_count + 1 && ac_count=$as_val
5542    if test $ac_count -gt ${ac_path_SED_max-0}; then
5543      # Best one so far, save it but keep looking for a better one
5544      ac_cv_path_SED="$ac_path_SED"
5545      ac_path_SED_max=$ac_count
5546    fi
5547    # 10*(2^10) chars as input seems more than enough
5548    test $ac_count -gt 10 && break
5549  done
5550  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5551esac
5552
5553      $ac_path_SED_found && break 3
5554    done
5555  done
5556  done
5557IFS=$as_save_IFS
5558  if test -z "$ac_cv_path_SED"; then
5559    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5560  fi
5561else
5562  ac_cv_path_SED=$SED
5563fi
5564
5565fi
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5567$as_echo "$ac_cv_path_SED" >&6; }
5568 SED="$ac_cv_path_SED"
5569  rm -f conftest.sed
5570
5571test -z "$SED" && SED=sed
5572Xsed="$SED -e 1s/^X//"
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5585$as_echo_n "checking for fgrep... " >&6; }
5586if ${ac_cv_path_FGREP+:} false; then :
5587  $as_echo_n "(cached) " >&6
5588else
5589  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5590   then ac_cv_path_FGREP="$GREP -F"
5591   else
5592     if test -z "$FGREP"; then
5593  ac_path_FGREP_found=false
5594  # Loop through the user's path and test for each of PROGNAME-LIST
5595  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5597do
5598  IFS=$as_save_IFS
5599  test -z "$as_dir" && as_dir=.
5600    for ac_prog in fgrep; do
5601    for ac_exec_ext in '' $ac_executable_extensions; do
5602      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5603      as_fn_executable_p "$ac_path_FGREP" || continue
5604# Check for GNU ac_path_FGREP and select it if it is found.
5605  # Check for GNU $ac_path_FGREP
5606case `"$ac_path_FGREP" --version 2>&1` in
5607*GNU*)
5608  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5609*)
5610  ac_count=0
5611  $as_echo_n 0123456789 >"conftest.in"
5612  while :
5613  do
5614    cat "conftest.in" "conftest.in" >"conftest.tmp"
5615    mv "conftest.tmp" "conftest.in"
5616    cp "conftest.in" "conftest.nl"
5617    $as_echo 'FGREP' >> "conftest.nl"
5618    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5619    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5620    as_fn_arith $ac_count + 1 && ac_count=$as_val
5621    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5622      # Best one so far, save it but keep looking for a better one
5623      ac_cv_path_FGREP="$ac_path_FGREP"
5624      ac_path_FGREP_max=$ac_count
5625    fi
5626    # 10*(2^10) chars as input seems more than enough
5627    test $ac_count -gt 10 && break
5628  done
5629  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5630esac
5631
5632      $ac_path_FGREP_found && break 3
5633    done
5634  done
5635  done
5636IFS=$as_save_IFS
5637  if test -z "$ac_cv_path_FGREP"; then
5638    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5639  fi
5640else
5641  ac_cv_path_FGREP=$FGREP
5642fi
5643
5644   fi
5645fi
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5647$as_echo "$ac_cv_path_FGREP" >&6; }
5648 FGREP="$ac_cv_path_FGREP"
5649
5650
5651test -z "$GREP" && GREP=grep
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671# Check whether --with-gnu-ld was given.
5672if test "${with_gnu_ld+set}" = set; then :
5673  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5674else
5675  with_gnu_ld=no
5676fi
5677
5678ac_prog=ld
5679if test yes = "$GCC"; then
5680  # Check if gcc -print-prog-name=ld gives a path.
5681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5682$as_echo_n "checking for ld used by $CC... " >&6; }
5683  case $host in
5684  *-*-mingw*)
5685    # gcc leaves a trailing carriage return, which upsets mingw
5686    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5687  *)
5688    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5689  esac
5690  case $ac_prog in
5691    # Accept absolute paths.
5692    [\\/]* | ?:[\\/]*)
5693      re_direlt='/[^/][^/]*/\.\./'
5694      # Canonicalize the pathname of ld
5695      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5696      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5697	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5698      done
5699      test -z "$LD" && LD=$ac_prog
5700      ;;
5701  "")
5702    # If it fails, then pretend we aren't using GCC.
5703    ac_prog=ld
5704    ;;
5705  *)
5706    # If it is relative, then search for the first ld in PATH.
5707    with_gnu_ld=unknown
5708    ;;
5709  esac
5710elif test yes = "$with_gnu_ld"; then
5711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5712$as_echo_n "checking for GNU ld... " >&6; }
5713else
5714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5715$as_echo_n "checking for non-GNU ld... " >&6; }
5716fi
5717if ${lt_cv_path_LD+:} false; then :
5718  $as_echo_n "(cached) " >&6
5719else
5720  if test -z "$LD"; then
5721  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5722  for ac_dir in $PATH; do
5723    IFS=$lt_save_ifs
5724    test -z "$ac_dir" && ac_dir=.
5725    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5726      lt_cv_path_LD=$ac_dir/$ac_prog
5727      # Check to see if the program is GNU ld.  I'd rather use --version,
5728      # but apparently some variants of GNU ld only accept -v.
5729      # Break only if it was the GNU/non-GNU ld that we prefer.
5730      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5731      *GNU* | *'with BFD'*)
5732	test no != "$with_gnu_ld" && break
5733	;;
5734      *)
5735	test yes != "$with_gnu_ld" && break
5736	;;
5737      esac
5738    fi
5739  done
5740  IFS=$lt_save_ifs
5741else
5742  lt_cv_path_LD=$LD # Let the user override the test with a path.
5743fi
5744fi
5745
5746LD=$lt_cv_path_LD
5747if test -n "$LD"; then
5748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5749$as_echo "$LD" >&6; }
5750else
5751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752$as_echo "no" >&6; }
5753fi
5754test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5756$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5757if ${lt_cv_prog_gnu_ld+:} false; then :
5758  $as_echo_n "(cached) " >&6
5759else
5760  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5761case `$LD -v 2>&1 </dev/null` in
5762*GNU* | *'with BFD'*)
5763  lt_cv_prog_gnu_ld=yes
5764  ;;
5765*)
5766  lt_cv_prog_gnu_ld=no
5767  ;;
5768esac
5769fi
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5771$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5772with_gnu_ld=$lt_cv_prog_gnu_ld
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5783$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5784if ${lt_cv_path_NM+:} false; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787  if test -n "$NM"; then
5788  # Let the user override the test.
5789  lt_cv_path_NM=$NM
5790else
5791  lt_nm_to_check=${ac_tool_prefix}nm
5792  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5793    lt_nm_to_check="$lt_nm_to_check nm"
5794  fi
5795  for lt_tmp_nm in $lt_nm_to_check; do
5796    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5797    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5798      IFS=$lt_save_ifs
5799      test -z "$ac_dir" && ac_dir=.
5800      tmp_nm=$ac_dir/$lt_tmp_nm
5801      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5802	# Check to see if the nm accepts a BSD-compat flag.
5803	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5804	#   nm: unknown option "B" ignored
5805	# Tru64's nm complains that /dev/null is an invalid object file
5806	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5807	case $build_os in
5808	mingw*) lt_bad_file=conftest.nm/nofile ;;
5809	*) lt_bad_file=/dev/null ;;
5810	esac
5811	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5812	*$lt_bad_file* | *'Invalid file or object type'*)
5813	  lt_cv_path_NM="$tmp_nm -B"
5814	  break 2
5815	  ;;
5816	*)
5817	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5818	  */dev/null*)
5819	    lt_cv_path_NM="$tmp_nm -p"
5820	    break 2
5821	    ;;
5822	  *)
5823	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5824	    continue # so that we can try to find one that supports BSD flags
5825	    ;;
5826	  esac
5827	  ;;
5828	esac
5829      fi
5830    done
5831    IFS=$lt_save_ifs
5832  done
5833  : ${lt_cv_path_NM=no}
5834fi
5835fi
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5837$as_echo "$lt_cv_path_NM" >&6; }
5838if test no != "$lt_cv_path_NM"; then
5839  NM=$lt_cv_path_NM
5840else
5841  # Didn't find any BSD compatible name lister, look for dumpbin.
5842  if test -n "$DUMPBIN"; then :
5843    # Let the user override the test.
5844  else
5845    if test -n "$ac_tool_prefix"; then
5846  for ac_prog in dumpbin "link -dump"
5847  do
5848    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5849set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851$as_echo_n "checking for $ac_word... " >&6; }
5852if ${ac_cv_prog_DUMPBIN+:} false; then :
5853  $as_echo_n "(cached) " >&6
5854else
5855  if test -n "$DUMPBIN"; then
5856  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861  IFS=$as_save_IFS
5862  test -z "$as_dir" && as_dir=.
5863    for ac_exec_ext in '' $ac_executable_extensions; do
5864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867    break 2
5868  fi
5869done
5870  done
5871IFS=$as_save_IFS
5872
5873fi
5874fi
5875DUMPBIN=$ac_cv_prog_DUMPBIN
5876if test -n "$DUMPBIN"; then
5877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5878$as_echo "$DUMPBIN" >&6; }
5879else
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881$as_echo "no" >&6; }
5882fi
5883
5884
5885    test -n "$DUMPBIN" && break
5886  done
5887fi
5888if test -z "$DUMPBIN"; then
5889  ac_ct_DUMPBIN=$DUMPBIN
5890  for ac_prog in dumpbin "link -dump"
5891do
5892  # Extract the first word of "$ac_prog", so it can be a program name with args.
5893set dummy $ac_prog; ac_word=$2
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895$as_echo_n "checking for $ac_word... " >&6; }
5896if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5897  $as_echo_n "(cached) " >&6
5898else
5899  if test -n "$ac_ct_DUMPBIN"; then
5900  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5901else
5902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903for as_dir in $PATH
5904do
5905  IFS=$as_save_IFS
5906  test -z "$as_dir" && as_dir=.
5907    for ac_exec_ext in '' $ac_executable_extensions; do
5908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911    break 2
5912  fi
5913done
5914  done
5915IFS=$as_save_IFS
5916
5917fi
5918fi
5919ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5920if test -n "$ac_ct_DUMPBIN"; then
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5922$as_echo "$ac_ct_DUMPBIN" >&6; }
5923else
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925$as_echo "no" >&6; }
5926fi
5927
5928
5929  test -n "$ac_ct_DUMPBIN" && break
5930done
5931
5932  if test "x$ac_ct_DUMPBIN" = x; then
5933    DUMPBIN=":"
5934  else
5935    case $cross_compiling:$ac_tool_warned in
5936yes:)
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5939ac_tool_warned=yes ;;
5940esac
5941    DUMPBIN=$ac_ct_DUMPBIN
5942  fi
5943fi
5944
5945    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5946    *COFF*)
5947      DUMPBIN="$DUMPBIN -symbols -headers"
5948      ;;
5949    *)
5950      DUMPBIN=:
5951      ;;
5952    esac
5953  fi
5954
5955  if test : != "$DUMPBIN"; then
5956    NM=$DUMPBIN
5957  fi
5958fi
5959test -z "$NM" && NM=nm
5960
5961
5962
5963
5964
5965
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5967$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5968if ${lt_cv_nm_interface+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  lt_cv_nm_interface="BSD nm"
5972  echo "int some_variable = 0;" > conftest.$ac_ext
5973  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5974  (eval "$ac_compile" 2>conftest.err)
5975  cat conftest.err >&5
5976  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5977  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5978  cat conftest.err >&5
5979  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5980  cat conftest.out >&5
5981  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5982    lt_cv_nm_interface="MS dumpbin"
5983  fi
5984  rm -f conftest*
5985fi
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5987$as_echo "$lt_cv_nm_interface" >&6; }
5988
5989# find the maximum length of command line arguments
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5991$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5992if ${lt_cv_sys_max_cmd_len+:} false; then :
5993  $as_echo_n "(cached) " >&6
5994else
5995    i=0
5996  teststring=ABCD
5997
5998  case $build_os in
5999  msdosdjgpp*)
6000    # On DJGPP, this test can blow up pretty badly due to problems in libc
6001    # (any single argument exceeding 2000 bytes causes a buffer overrun
6002    # during glob expansion).  Even if it were fixed, the result of this
6003    # check would be larger than it should be.
6004    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6005    ;;
6006
6007  gnu*)
6008    # Under GNU Hurd, this test is not required because there is
6009    # no limit to the length of command line arguments.
6010    # Libtool will interpret -1 as no limit whatsoever
6011    lt_cv_sys_max_cmd_len=-1;
6012    ;;
6013
6014  cygwin* | mingw* | cegcc*)
6015    # On Win9x/ME, this test blows up -- it succeeds, but takes
6016    # about 5 minutes as the teststring grows exponentially.
6017    # Worse, since 9x/ME are not pre-emptively multitasking,
6018    # you end up with a "frozen" computer, even though with patience
6019    # the test eventually succeeds (with a max line length of 256k).
6020    # Instead, let's just punt: use the minimum linelength reported by
6021    # all of the supported platforms: 8192 (on NT/2K/XP).
6022    lt_cv_sys_max_cmd_len=8192;
6023    ;;
6024
6025  mint*)
6026    # On MiNT this can take a long time and run out of memory.
6027    lt_cv_sys_max_cmd_len=8192;
6028    ;;
6029
6030  amigaos*)
6031    # On AmigaOS with pdksh, this test takes hours, literally.
6032    # So we just punt and use a minimum line length of 8192.
6033    lt_cv_sys_max_cmd_len=8192;
6034    ;;
6035
6036  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6037    # This has been around since 386BSD, at least.  Likely further.
6038    if test -x /sbin/sysctl; then
6039      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6040    elif test -x /usr/sbin/sysctl; then
6041      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6042    else
6043      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6044    fi
6045    # And add a safety zone
6046    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6047    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6048    ;;
6049
6050  interix*)
6051    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6052    lt_cv_sys_max_cmd_len=196608
6053    ;;
6054
6055  os2*)
6056    # The test takes a long time on OS/2.
6057    lt_cv_sys_max_cmd_len=8192
6058    ;;
6059
6060  osf*)
6061    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6062    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6063    # nice to cause kernel panics so lets avoid the loop below.
6064    # First set a reasonable default.
6065    lt_cv_sys_max_cmd_len=16384
6066    #
6067    if test -x /sbin/sysconfig; then
6068      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6069        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6070      esac
6071    fi
6072    ;;
6073  sco3.2v5*)
6074    lt_cv_sys_max_cmd_len=102400
6075    ;;
6076  sysv5* | sco5v6* | sysv4.2uw2*)
6077    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6078    if test -n "$kargmax"; then
6079      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6080    else
6081      lt_cv_sys_max_cmd_len=32768
6082    fi
6083    ;;
6084  *)
6085    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6086    if test -n "$lt_cv_sys_max_cmd_len" && \
6087       test undefined != "$lt_cv_sys_max_cmd_len"; then
6088      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6089      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6090    else
6091      # Make teststring a little bigger before we do anything with it.
6092      # a 1K string should be a reasonable start.
6093      for i in 1 2 3 4 5 6 7 8; do
6094        teststring=$teststring$teststring
6095      done
6096      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6097      # If test is not a shell built-in, we'll probably end up computing a
6098      # maximum length that is only half of the actual maximum length, but
6099      # we can't tell.
6100      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6101	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6102	      test 17 != "$i" # 1/2 MB should be enough
6103      do
6104        i=`expr $i + 1`
6105        teststring=$teststring$teststring
6106      done
6107      # Only check the string length outside the loop.
6108      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6109      teststring=
6110      # Add a significant safety factor because C++ compilers can tack on
6111      # massive amounts of additional arguments before passing them to the
6112      # linker.  It appears as though 1/2 is a usable value.
6113      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6114    fi
6115    ;;
6116  esac
6117
6118fi
6119
6120if test -n "$lt_cv_sys_max_cmd_len"; then
6121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6122$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6123else
6124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6125$as_echo "none" >&6; }
6126fi
6127max_cmd_len=$lt_cv_sys_max_cmd_len
6128
6129
6130
6131
6132
6133
6134: ${CP="cp -f"}
6135: ${MV="mv -f"}
6136: ${RM="rm -f"}
6137
6138if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6139  lt_unset=unset
6140else
6141  lt_unset=false
6142fi
6143
6144
6145
6146
6147
6148# test EBCDIC or ASCII
6149case `echo X|tr X '\101'` in
6150 A) # ASCII based system
6151    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6152  lt_SP2NL='tr \040 \012'
6153  lt_NL2SP='tr \015\012 \040\040'
6154  ;;
6155 *) # EBCDIC based system
6156  lt_SP2NL='tr \100 \n'
6157  lt_NL2SP='tr \r\n \100\100'
6158  ;;
6159esac
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6170$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6171if ${lt_cv_to_host_file_cmd+:} false; then :
6172  $as_echo_n "(cached) " >&6
6173else
6174  case $host in
6175  *-*-mingw* )
6176    case $build in
6177      *-*-mingw* ) # actually msys
6178        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6179        ;;
6180      *-*-cygwin* )
6181        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6182        ;;
6183      * ) # otherwise, assume *nix
6184        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6185        ;;
6186    esac
6187    ;;
6188  *-*-cygwin* )
6189    case $build in
6190      *-*-mingw* ) # actually msys
6191        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6192        ;;
6193      *-*-cygwin* )
6194        lt_cv_to_host_file_cmd=func_convert_file_noop
6195        ;;
6196      * ) # otherwise, assume *nix
6197        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6198        ;;
6199    esac
6200    ;;
6201  * ) # unhandled hosts (and "normal" native builds)
6202    lt_cv_to_host_file_cmd=func_convert_file_noop
6203    ;;
6204esac
6205
6206fi
6207
6208to_host_file_cmd=$lt_cv_to_host_file_cmd
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6210$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6211
6212
6213
6214
6215
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6217$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6218if ${lt_cv_to_tool_file_cmd+:} false; then :
6219  $as_echo_n "(cached) " >&6
6220else
6221  #assume ordinary cross tools, or native build.
6222lt_cv_to_tool_file_cmd=func_convert_file_noop
6223case $host in
6224  *-*-mingw* )
6225    case $build in
6226      *-*-mingw* ) # actually msys
6227        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6228        ;;
6229    esac
6230    ;;
6231esac
6232
6233fi
6234
6235to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6237$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6238
6239
6240
6241
6242
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6244$as_echo_n "checking for $LD option to reload object files... " >&6; }
6245if ${lt_cv_ld_reload_flag+:} false; then :
6246  $as_echo_n "(cached) " >&6
6247else
6248  lt_cv_ld_reload_flag='-r'
6249fi
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6251$as_echo "$lt_cv_ld_reload_flag" >&6; }
6252reload_flag=$lt_cv_ld_reload_flag
6253case $reload_flag in
6254"" | " "*) ;;
6255*) reload_flag=" $reload_flag" ;;
6256esac
6257reload_cmds='$LD$reload_flag -o $output$reload_objs'
6258case $host_os in
6259  cygwin* | mingw* | pw32* | cegcc*)
6260    if test yes != "$GCC"; then
6261      reload_cmds=false
6262    fi
6263    ;;
6264  darwin*)
6265    if test yes = "$GCC"; then
6266      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6267    else
6268      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6269    fi
6270    ;;
6271esac
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281if test -n "$ac_tool_prefix"; then
6282  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6283set dummy ${ac_tool_prefix}objdump; ac_word=$2
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285$as_echo_n "checking for $ac_word... " >&6; }
6286if ${ac_cv_prog_OBJDUMP+:} false; then :
6287  $as_echo_n "(cached) " >&6
6288else
6289  if test -n "$OBJDUMP"; then
6290  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6291else
6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295  IFS=$as_save_IFS
6296  test -z "$as_dir" && as_dir=.
6297    for ac_exec_ext in '' $ac_executable_extensions; do
6298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301    break 2
6302  fi
6303done
6304  done
6305IFS=$as_save_IFS
6306
6307fi
6308fi
6309OBJDUMP=$ac_cv_prog_OBJDUMP
6310if test -n "$OBJDUMP"; then
6311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6312$as_echo "$OBJDUMP" >&6; }
6313else
6314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315$as_echo "no" >&6; }
6316fi
6317
6318
6319fi
6320if test -z "$ac_cv_prog_OBJDUMP"; then
6321  ac_ct_OBJDUMP=$OBJDUMP
6322  # Extract the first word of "objdump", so it can be a program name with args.
6323set dummy objdump; ac_word=$2
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325$as_echo_n "checking for $ac_word... " >&6; }
6326if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6327  $as_echo_n "(cached) " >&6
6328else
6329  if test -n "$ac_ct_OBJDUMP"; then
6330  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335  IFS=$as_save_IFS
6336  test -z "$as_dir" && as_dir=.
6337    for ac_exec_ext in '' $ac_executable_extensions; do
6338  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6339    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341    break 2
6342  fi
6343done
6344  done
6345IFS=$as_save_IFS
6346
6347fi
6348fi
6349ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6350if test -n "$ac_ct_OBJDUMP"; then
6351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6352$as_echo "$ac_ct_OBJDUMP" >&6; }
6353else
6354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355$as_echo "no" >&6; }
6356fi
6357
6358  if test "x$ac_ct_OBJDUMP" = x; then
6359    OBJDUMP="false"
6360  else
6361    case $cross_compiling:$ac_tool_warned in
6362yes:)
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365ac_tool_warned=yes ;;
6366esac
6367    OBJDUMP=$ac_ct_OBJDUMP
6368  fi
6369else
6370  OBJDUMP="$ac_cv_prog_OBJDUMP"
6371fi
6372
6373test -z "$OBJDUMP" && OBJDUMP=objdump
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6384$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6385if ${lt_cv_deplibs_check_method+:} false; then :
6386  $as_echo_n "(cached) " >&6
6387else
6388  lt_cv_file_magic_cmd='$MAGIC_CMD'
6389lt_cv_file_magic_test_file=
6390lt_cv_deplibs_check_method='unknown'
6391# Need to set the preceding variable on all platforms that support
6392# interlibrary dependencies.
6393# 'none' -- dependencies not supported.
6394# 'unknown' -- same as none, but documents that we really don't know.
6395# 'pass_all' -- all dependencies passed with no checks.
6396# 'test_compile' -- check by making test program.
6397# 'file_magic [[regex]]' -- check by looking for files in library path
6398# that responds to the $file_magic_cmd with a given extended regex.
6399# If you have 'file' or equivalent on your system and you're not sure
6400# whether 'pass_all' will *always* work, you probably want this one.
6401
6402case $host_os in
6403aix[4-9]*)
6404  lt_cv_deplibs_check_method=pass_all
6405  ;;
6406
6407beos*)
6408  lt_cv_deplibs_check_method=pass_all
6409  ;;
6410
6411bsdi[45]*)
6412  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6413  lt_cv_file_magic_cmd='/usr/bin/file -L'
6414  lt_cv_file_magic_test_file=/shlib/libc.so
6415  ;;
6416
6417cygwin*)
6418  # func_win32_libid is a shell function defined in ltmain.sh
6419  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6420  lt_cv_file_magic_cmd='func_win32_libid'
6421  ;;
6422
6423mingw* | pw32*)
6424  # Base MSYS/MinGW do not provide the 'file' command needed by
6425  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6426  # unless we find 'file', for example because we are cross-compiling.
6427  if ( file / ) >/dev/null 2>&1; then
6428    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6429    lt_cv_file_magic_cmd='func_win32_libid'
6430  else
6431    # Keep this pattern in sync with the one in func_win32_libid.
6432    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6433    lt_cv_file_magic_cmd='$OBJDUMP -f'
6434  fi
6435  ;;
6436
6437cegcc*)
6438  # use the weaker test based on 'objdump'. See mingw*.
6439  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6440  lt_cv_file_magic_cmd='$OBJDUMP -f'
6441  ;;
6442
6443darwin* | rhapsody*)
6444  lt_cv_deplibs_check_method=pass_all
6445  ;;
6446
6447freebsd* | dragonfly*)
6448  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6449    case $host_cpu in
6450    i*86 )
6451      # Not sure whether the presence of OpenBSD here was a mistake.
6452      # Let's accept both of them until this is cleared up.
6453      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6454      lt_cv_file_magic_cmd=/usr/bin/file
6455      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6456      ;;
6457    esac
6458  else
6459    lt_cv_deplibs_check_method=pass_all
6460  fi
6461  ;;
6462
6463haiku*)
6464  lt_cv_deplibs_check_method=pass_all
6465  ;;
6466
6467hpux10.20* | hpux11*)
6468  lt_cv_file_magic_cmd=/usr/bin/file
6469  case $host_cpu in
6470  ia64*)
6471    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6472    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6473    ;;
6474  hppa*64*)
6475    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]'
6476    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6477    ;;
6478  *)
6479    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6480    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6481    ;;
6482  esac
6483  ;;
6484
6485interix[3-9]*)
6486  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6487  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6488  ;;
6489
6490irix5* | irix6* | nonstopux*)
6491  case $LD in
6492  *-32|*"-32 ") libmagic=32-bit;;
6493  *-n32|*"-n32 ") libmagic=N32;;
6494  *-64|*"-64 ") libmagic=64-bit;;
6495  *) libmagic=never-match;;
6496  esac
6497  lt_cv_deplibs_check_method=pass_all
6498  ;;
6499
6500# This must be glibc/ELF.
6501linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6502  lt_cv_deplibs_check_method=pass_all
6503  ;;
6504
6505netbsd*)
6506  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6507    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6508  else
6509    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6510  fi
6511  ;;
6512
6513newos6*)
6514  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6515  lt_cv_file_magic_cmd=/usr/bin/file
6516  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6517  ;;
6518
6519*nto* | *qnx*)
6520  lt_cv_deplibs_check_method=pass_all
6521  ;;
6522
6523openbsd* | bitrig*)
6524  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6525    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6526  else
6527    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6528  fi
6529  ;;
6530
6531osf3* | osf4* | osf5*)
6532  lt_cv_deplibs_check_method=pass_all
6533  ;;
6534
6535rdos*)
6536  lt_cv_deplibs_check_method=pass_all
6537  ;;
6538
6539solaris*)
6540  lt_cv_deplibs_check_method=pass_all
6541  ;;
6542
6543sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6544  lt_cv_deplibs_check_method=pass_all
6545  ;;
6546
6547sysv4 | sysv4.3*)
6548  case $host_vendor in
6549  motorola)
6550    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]'
6551    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6552    ;;
6553  ncr)
6554    lt_cv_deplibs_check_method=pass_all
6555    ;;
6556  sequent)
6557    lt_cv_file_magic_cmd='/bin/file'
6558    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6559    ;;
6560  sni)
6561    lt_cv_file_magic_cmd='/bin/file'
6562    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6563    lt_cv_file_magic_test_file=/lib/libc.so
6564    ;;
6565  siemens)
6566    lt_cv_deplibs_check_method=pass_all
6567    ;;
6568  pc)
6569    lt_cv_deplibs_check_method=pass_all
6570    ;;
6571  esac
6572  ;;
6573
6574tpf*)
6575  lt_cv_deplibs_check_method=pass_all
6576  ;;
6577os2*)
6578  lt_cv_deplibs_check_method=pass_all
6579  ;;
6580esac
6581
6582fi
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6584$as_echo "$lt_cv_deplibs_check_method" >&6; }
6585
6586file_magic_glob=
6587want_nocaseglob=no
6588if test "$build" = "$host"; then
6589  case $host_os in
6590  mingw* | pw32*)
6591    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6592      want_nocaseglob=yes
6593    else
6594      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6595    fi
6596    ;;
6597  esac
6598fi
6599
6600file_magic_cmd=$lt_cv_file_magic_cmd
6601deplibs_check_method=$lt_cv_deplibs_check_method
6602test -z "$deplibs_check_method" && deplibs_check_method=unknown
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625if test -n "$ac_tool_prefix"; then
6626  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6627set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629$as_echo_n "checking for $ac_word... " >&6; }
6630if ${ac_cv_prog_DLLTOOL+:} false; then :
6631  $as_echo_n "(cached) " >&6
6632else
6633  if test -n "$DLLTOOL"; then
6634  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6635else
6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639  IFS=$as_save_IFS
6640  test -z "$as_dir" && as_dir=.
6641    for ac_exec_ext in '' $ac_executable_extensions; do
6642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6643    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645    break 2
6646  fi
6647done
6648  done
6649IFS=$as_save_IFS
6650
6651fi
6652fi
6653DLLTOOL=$ac_cv_prog_DLLTOOL
6654if test -n "$DLLTOOL"; then
6655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6656$as_echo "$DLLTOOL" >&6; }
6657else
6658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659$as_echo "no" >&6; }
6660fi
6661
6662
6663fi
6664if test -z "$ac_cv_prog_DLLTOOL"; then
6665  ac_ct_DLLTOOL=$DLLTOOL
6666  # Extract the first word of "dlltool", so it can be a program name with args.
6667set dummy dlltool; ac_word=$2
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669$as_echo_n "checking for $ac_word... " >&6; }
6670if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673  if test -n "$ac_ct_DLLTOOL"; then
6674  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679  IFS=$as_save_IFS
6680  test -z "$as_dir" && as_dir=.
6681    for ac_exec_ext in '' $ac_executable_extensions; do
6682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685    break 2
6686  fi
6687done
6688  done
6689IFS=$as_save_IFS
6690
6691fi
6692fi
6693ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6694if test -n "$ac_ct_DLLTOOL"; then
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6696$as_echo "$ac_ct_DLLTOOL" >&6; }
6697else
6698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699$as_echo "no" >&6; }
6700fi
6701
6702  if test "x$ac_ct_DLLTOOL" = x; then
6703    DLLTOOL="false"
6704  else
6705    case $cross_compiling:$ac_tool_warned in
6706yes:)
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6709ac_tool_warned=yes ;;
6710esac
6711    DLLTOOL=$ac_ct_DLLTOOL
6712  fi
6713else
6714  DLLTOOL="$ac_cv_prog_DLLTOOL"
6715fi
6716
6717test -z "$DLLTOOL" && DLLTOOL=dlltool
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6729$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6730if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6731  $as_echo_n "(cached) " >&6
6732else
6733  lt_cv_sharedlib_from_linklib_cmd='unknown'
6734
6735case $host_os in
6736cygwin* | mingw* | pw32* | cegcc*)
6737  # two different shell functions defined in ltmain.sh;
6738  # decide which one to use based on capabilities of $DLLTOOL
6739  case `$DLLTOOL --help 2>&1` in
6740  *--identify-strict*)
6741    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6742    ;;
6743  *)
6744    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6745    ;;
6746  esac
6747  ;;
6748*)
6749  # fallback: assume linklib IS sharedlib
6750  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6751  ;;
6752esac
6753
6754fi
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6756$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6757sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6758test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6759
6760
6761
6762
6763
6764
6765
6766if test -n "$ac_tool_prefix"; then
6767  for ac_prog in ar
6768  do
6769    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6770set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772$as_echo_n "checking for $ac_word... " >&6; }
6773if ${ac_cv_prog_AR+:} false; then :
6774  $as_echo_n "(cached) " >&6
6775else
6776  if test -n "$AR"; then
6777  ac_cv_prog_AR="$AR" # Let the user override the test.
6778else
6779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782  IFS=$as_save_IFS
6783  test -z "$as_dir" && as_dir=.
6784    for ac_exec_ext in '' $ac_executable_extensions; do
6785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788    break 2
6789  fi
6790done
6791  done
6792IFS=$as_save_IFS
6793
6794fi
6795fi
6796AR=$ac_cv_prog_AR
6797if test -n "$AR"; then
6798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6799$as_echo "$AR" >&6; }
6800else
6801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802$as_echo "no" >&6; }
6803fi
6804
6805
6806    test -n "$AR" && break
6807  done
6808fi
6809if test -z "$AR"; then
6810  ac_ct_AR=$AR
6811  for ac_prog in ar
6812do
6813  # Extract the first word of "$ac_prog", so it can be a program name with args.
6814set dummy $ac_prog; ac_word=$2
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816$as_echo_n "checking for $ac_word... " >&6; }
6817if ${ac_cv_prog_ac_ct_AR+:} false; then :
6818  $as_echo_n "(cached) " >&6
6819else
6820  if test -n "$ac_ct_AR"; then
6821  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6822else
6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824for as_dir in $PATH
6825do
6826  IFS=$as_save_IFS
6827  test -z "$as_dir" && as_dir=.
6828    for ac_exec_ext in '' $ac_executable_extensions; do
6829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830    ac_cv_prog_ac_ct_AR="$ac_prog"
6831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832    break 2
6833  fi
6834done
6835  done
6836IFS=$as_save_IFS
6837
6838fi
6839fi
6840ac_ct_AR=$ac_cv_prog_ac_ct_AR
6841if test -n "$ac_ct_AR"; then
6842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6843$as_echo "$ac_ct_AR" >&6; }
6844else
6845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846$as_echo "no" >&6; }
6847fi
6848
6849
6850  test -n "$ac_ct_AR" && break
6851done
6852
6853  if test "x$ac_ct_AR" = x; then
6854    AR="false"
6855  else
6856    case $cross_compiling:$ac_tool_warned in
6857yes:)
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860ac_tool_warned=yes ;;
6861esac
6862    AR=$ac_ct_AR
6863  fi
6864fi
6865
6866: ${AR=ar}
6867: ${AR_FLAGS=cru}
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6880$as_echo_n "checking for archiver @FILE support... " >&6; }
6881if ${lt_cv_ar_at_file+:} false; then :
6882  $as_echo_n "(cached) " >&6
6883else
6884  lt_cv_ar_at_file=no
6885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886/* end confdefs.h.  */
6887
6888int
6889main ()
6890{
6891
6892  ;
6893  return 0;
6894}
6895_ACEOF
6896if ac_fn_c_try_compile "$LINENO"; then :
6897  echo conftest.$ac_objext > conftest.lst
6898      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6899      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6900  (eval $lt_ar_try) 2>&5
6901  ac_status=$?
6902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6903  test $ac_status = 0; }
6904      if test 0 -eq "$ac_status"; then
6905	# Ensure the archiver fails upon bogus file names.
6906	rm -f conftest.$ac_objext libconftest.a
6907	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6908  (eval $lt_ar_try) 2>&5
6909  ac_status=$?
6910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6911  test $ac_status = 0; }
6912	if test 0 -ne "$ac_status"; then
6913          lt_cv_ar_at_file=@
6914        fi
6915      fi
6916      rm -f conftest.* libconftest.a
6917
6918fi
6919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920
6921fi
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6923$as_echo "$lt_cv_ar_at_file" >&6; }
6924
6925if test no = "$lt_cv_ar_at_file"; then
6926  archiver_list_spec=
6927else
6928  archiver_list_spec=$lt_cv_ar_at_file
6929fi
6930
6931
6932
6933
6934
6935
6936
6937if test -n "$ac_tool_prefix"; then
6938  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6939set dummy ${ac_tool_prefix}strip; ac_word=$2
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941$as_echo_n "checking for $ac_word... " >&6; }
6942if ${ac_cv_prog_STRIP+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  if test -n "$STRIP"; then
6946  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6947else
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951  IFS=$as_save_IFS
6952  test -z "$as_dir" && as_dir=.
6953    for ac_exec_ext in '' $ac_executable_extensions; do
6954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957    break 2
6958  fi
6959done
6960  done
6961IFS=$as_save_IFS
6962
6963fi
6964fi
6965STRIP=$ac_cv_prog_STRIP
6966if test -n "$STRIP"; then
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6968$as_echo "$STRIP" >&6; }
6969else
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971$as_echo "no" >&6; }
6972fi
6973
6974
6975fi
6976if test -z "$ac_cv_prog_STRIP"; then
6977  ac_ct_STRIP=$STRIP
6978  # Extract the first word of "strip", so it can be a program name with args.
6979set dummy strip; ac_word=$2
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981$as_echo_n "checking for $ac_word... " >&6; }
6982if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6983  $as_echo_n "(cached) " >&6
6984else
6985  if test -n "$ac_ct_STRIP"; then
6986  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6987else
6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991  IFS=$as_save_IFS
6992  test -z "$as_dir" && as_dir=.
6993    for ac_exec_ext in '' $ac_executable_extensions; do
6994  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995    ac_cv_prog_ac_ct_STRIP="strip"
6996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997    break 2
6998  fi
6999done
7000  done
7001IFS=$as_save_IFS
7002
7003fi
7004fi
7005ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7006if test -n "$ac_ct_STRIP"; then
7007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7008$as_echo "$ac_ct_STRIP" >&6; }
7009else
7010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011$as_echo "no" >&6; }
7012fi
7013
7014  if test "x$ac_ct_STRIP" = x; then
7015    STRIP=":"
7016  else
7017    case $cross_compiling:$ac_tool_warned in
7018yes:)
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7021ac_tool_warned=yes ;;
7022esac
7023    STRIP=$ac_ct_STRIP
7024  fi
7025else
7026  STRIP="$ac_cv_prog_STRIP"
7027fi
7028
7029test -z "$STRIP" && STRIP=:
7030
7031
7032
7033
7034
7035
7036if test -n "$ac_tool_prefix"; then
7037  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7038set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040$as_echo_n "checking for $ac_word... " >&6; }
7041if ${ac_cv_prog_RANLIB+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  if test -n "$RANLIB"; then
7045  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7046else
7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050  IFS=$as_save_IFS
7051  test -z "$as_dir" && as_dir=.
7052    for ac_exec_ext in '' $ac_executable_extensions; do
7053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056    break 2
7057  fi
7058done
7059  done
7060IFS=$as_save_IFS
7061
7062fi
7063fi
7064RANLIB=$ac_cv_prog_RANLIB
7065if test -n "$RANLIB"; then
7066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7067$as_echo "$RANLIB" >&6; }
7068else
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070$as_echo "no" >&6; }
7071fi
7072
7073
7074fi
7075if test -z "$ac_cv_prog_RANLIB"; then
7076  ac_ct_RANLIB=$RANLIB
7077  # Extract the first word of "ranlib", so it can be a program name with args.
7078set dummy ranlib; ac_word=$2
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080$as_echo_n "checking for $ac_word... " >&6; }
7081if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7082  $as_echo_n "(cached) " >&6
7083else
7084  if test -n "$ac_ct_RANLIB"; then
7085  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7086else
7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090  IFS=$as_save_IFS
7091  test -z "$as_dir" && as_dir=.
7092    for ac_exec_ext in '' $ac_executable_extensions; do
7093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094    ac_cv_prog_ac_ct_RANLIB="ranlib"
7095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096    break 2
7097  fi
7098done
7099  done
7100IFS=$as_save_IFS
7101
7102fi
7103fi
7104ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7105if test -n "$ac_ct_RANLIB"; then
7106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7107$as_echo "$ac_ct_RANLIB" >&6; }
7108else
7109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110$as_echo "no" >&6; }
7111fi
7112
7113  if test "x$ac_ct_RANLIB" = x; then
7114    RANLIB=":"
7115  else
7116    case $cross_compiling:$ac_tool_warned in
7117yes:)
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120ac_tool_warned=yes ;;
7121esac
7122    RANLIB=$ac_ct_RANLIB
7123  fi
7124else
7125  RANLIB="$ac_cv_prog_RANLIB"
7126fi
7127
7128test -z "$RANLIB" && RANLIB=:
7129
7130
7131
7132
7133
7134
7135# Determine commands to create old-style static archives.
7136old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7137old_postinstall_cmds='chmod 644 $oldlib'
7138old_postuninstall_cmds=
7139
7140if test -n "$RANLIB"; then
7141  case $host_os in
7142  bitrig* | openbsd*)
7143    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7144    ;;
7145  *)
7146    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7147    ;;
7148  esac
7149  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7150fi
7151
7152case $host_os in
7153  darwin*)
7154    lock_old_archive_extraction=yes ;;
7155  *)
7156    lock_old_archive_extraction=no ;;
7157esac
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197# If no C compiler was specified, use CC.
7198LTCC=${LTCC-"$CC"}
7199
7200# If no C compiler flags were specified, use CFLAGS.
7201LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7202
7203# Allow CC to be a program name with arguments.
7204compiler=$CC
7205
7206
7207# Check for command to grab the raw symbol name followed by C symbol from nm.
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7209$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7210if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213
7214# These are sane defaults that work on at least a few old systems.
7215# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7216
7217# Character class describing NM global symbol codes.
7218symcode='[BCDEGRST]'
7219
7220# Regexp to match symbols that can be accessed directly from C.
7221sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7222
7223# Define system-specific variables.
7224case $host_os in
7225aix*)
7226  symcode='[BCDT]'
7227  ;;
7228cygwin* | mingw* | pw32* | cegcc*)
7229  symcode='[ABCDGISTW]'
7230  ;;
7231hpux*)
7232  if test ia64 = "$host_cpu"; then
7233    symcode='[ABCDEGRST]'
7234  fi
7235  ;;
7236irix* | nonstopux*)
7237  symcode='[BCDEGRST]'
7238  ;;
7239osf*)
7240  symcode='[BCDEGQRST]'
7241  ;;
7242solaris*)
7243  symcode='[BDRT]'
7244  ;;
7245sco3.2v5*)
7246  symcode='[DT]'
7247  ;;
7248sysv4.2uw2*)
7249  symcode='[DT]'
7250  ;;
7251sysv5* | sco5v6* | unixware* | OpenUNIX*)
7252  symcode='[ABDT]'
7253  ;;
7254sysv4)
7255  symcode='[DFNSTU]'
7256  ;;
7257esac
7258
7259# If we're using GNU nm, then use its standard symbol codes.
7260case `$NM -V 2>&1` in
7261*GNU* | *'with BFD'*)
7262  symcode='[ABCDGIRSTW]' ;;
7263esac
7264
7265if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7266  # Gets list of data symbols to import.
7267  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7268  # Adjust the below global symbol transforms to fixup imported variables.
7269  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7270  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7271  lt_c_name_lib_hook="\
7272  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7273  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7274else
7275  # Disable hooks by default.
7276  lt_cv_sys_global_symbol_to_import=
7277  lt_cdecl_hook=
7278  lt_c_name_hook=
7279  lt_c_name_lib_hook=
7280fi
7281
7282# Transform an extracted symbol line into a proper C declaration.
7283# Some systems (esp. on ia64) link data and code symbols differently,
7284# so use this general approach.
7285lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7286$lt_cdecl_hook\
7287" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7288" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7289
7290# Transform an extracted symbol line into symbol name and symbol address
7291lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7292$lt_c_name_hook\
7293" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7294" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7295
7296# Transform an extracted symbol line into symbol name with lib prefix and
7297# symbol address.
7298lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7299$lt_c_name_lib_hook\
7300" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7301" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7302" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7303
7304# Handle CRLF in mingw tool chain
7305opt_cr=
7306case $build_os in
7307mingw*)
7308  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7309  ;;
7310esac
7311
7312# Try without a prefix underscore, then with it.
7313for ac_symprfx in "" "_"; do
7314
7315  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7316  symxfrm="\\1 $ac_symprfx\\2 \\2"
7317
7318  # Write the raw and C identifiers.
7319  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7320    # Fake it for dumpbin and say T for any non-static function,
7321    # D for any global variable and I for any imported variable.
7322    # Also find C++ and __fastcall symbols from MSVC++,
7323    # which start with @ or ?.
7324    lt_cv_sys_global_symbol_pipe="$AWK '"\
7325"     {last_section=section; section=\$ 3};"\
7326"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7327"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7328"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7329"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7330"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7331"     \$ 0!~/External *\|/{next};"\
7332"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7333"     {if(hide[section]) next};"\
7334"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7335"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7336"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7337"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7338"     ' prfx=^$ac_symprfx"
7339  else
7340    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7341  fi
7342  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7343
7344  # Check to see that the pipe works correctly.
7345  pipe_works=no
7346
7347  rm -f conftest*
7348  cat > conftest.$ac_ext <<_LT_EOF
7349#ifdef __cplusplus
7350extern "C" {
7351#endif
7352char nm_test_var;
7353void nm_test_func(void);
7354void nm_test_func(void){}
7355#ifdef __cplusplus
7356}
7357#endif
7358int main(){nm_test_var='a';nm_test_func();return(0);}
7359_LT_EOF
7360
7361  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7362  (eval $ac_compile) 2>&5
7363  ac_status=$?
7364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7365  test $ac_status = 0; }; then
7366    # Now try to grab the symbols.
7367    nlist=conftest.nm
7368    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7369  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7370  ac_status=$?
7371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7372  test $ac_status = 0; } && test -s "$nlist"; then
7373      # Try sorting and uniquifying the output.
7374      if sort "$nlist" | uniq > "$nlist"T; then
7375	mv -f "$nlist"T "$nlist"
7376      else
7377	rm -f "$nlist"T
7378      fi
7379
7380      # Make sure that we snagged all the symbols we need.
7381      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7382	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7383	  cat <<_LT_EOF > conftest.$ac_ext
7384/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7385#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7386/* DATA imports from DLLs on WIN32 can't be const, because runtime
7387   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7388# define LT_DLSYM_CONST
7389#elif defined __osf__
7390/* This system does not cope well with relocations in const data.  */
7391# define LT_DLSYM_CONST
7392#else
7393# define LT_DLSYM_CONST const
7394#endif
7395
7396#ifdef __cplusplus
7397extern "C" {
7398#endif
7399
7400_LT_EOF
7401	  # Now generate the symbol file.
7402	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7403
7404	  cat <<_LT_EOF >> conftest.$ac_ext
7405
7406/* The mapping between symbol names and symbols.  */
7407LT_DLSYM_CONST struct {
7408  const char *name;
7409  void       *address;
7410}
7411lt__PROGRAM__LTX_preloaded_symbols[] =
7412{
7413  { "@PROGRAM@", (void *) 0 },
7414_LT_EOF
7415	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7416	  cat <<\_LT_EOF >> conftest.$ac_ext
7417  {0, (void *) 0}
7418};
7419
7420/* This works around a problem in FreeBSD linker */
7421#ifdef FREEBSD_WORKAROUND
7422static const void *lt_preloaded_setup() {
7423  return lt__PROGRAM__LTX_preloaded_symbols;
7424}
7425#endif
7426
7427#ifdef __cplusplus
7428}
7429#endif
7430_LT_EOF
7431	  # Now try linking the two files.
7432	  mv conftest.$ac_objext conftstm.$ac_objext
7433	  lt_globsym_save_LIBS=$LIBS
7434	  lt_globsym_save_CFLAGS=$CFLAGS
7435	  LIBS=conftstm.$ac_objext
7436	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7437	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7438  (eval $ac_link) 2>&5
7439  ac_status=$?
7440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7442	    pipe_works=yes
7443	  fi
7444	  LIBS=$lt_globsym_save_LIBS
7445	  CFLAGS=$lt_globsym_save_CFLAGS
7446	else
7447	  echo "cannot find nm_test_func in $nlist" >&5
7448	fi
7449      else
7450	echo "cannot find nm_test_var in $nlist" >&5
7451      fi
7452    else
7453      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7454    fi
7455  else
7456    echo "$progname: failed program was:" >&5
7457    cat conftest.$ac_ext >&5
7458  fi
7459  rm -rf conftest* conftst*
7460
7461  # Do not use the global_symbol_pipe unless it works.
7462  if test yes = "$pipe_works"; then
7463    break
7464  else
7465    lt_cv_sys_global_symbol_pipe=
7466  fi
7467done
7468
7469fi
7470
7471if test -z "$lt_cv_sys_global_symbol_pipe"; then
7472  lt_cv_sys_global_symbol_to_cdecl=
7473fi
7474if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7476$as_echo "failed" >&6; }
7477else
7478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7479$as_echo "ok" >&6; }
7480fi
7481
7482# Response file support.
7483if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7484  nm_file_list_spec='@'
7485elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7486  nm_file_list_spec='@'
7487fi
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7526$as_echo_n "checking for sysroot... " >&6; }
7527
7528# Check whether --with-sysroot was given.
7529if test "${with_sysroot+set}" = set; then :
7530  withval=$with_sysroot;
7531else
7532  with_sysroot=no
7533fi
7534
7535
7536lt_sysroot=
7537case $with_sysroot in #(
7538 yes)
7539   if test yes = "$GCC"; then
7540     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7541   fi
7542   ;; #(
7543 /*)
7544   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7545   ;; #(
7546 no|'')
7547   ;; #(
7548 *)
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7550$as_echo "$with_sysroot" >&6; }
7551   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7552   ;;
7553esac
7554
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7556$as_echo "${lt_sysroot:-no}" >&6; }
7557
7558
7559
7560
7561
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7563$as_echo_n "checking for a working dd... " >&6; }
7564if ${ac_cv_path_lt_DD+:} false; then :
7565  $as_echo_n "(cached) " >&6
7566else
7567  printf 0123456789abcdef0123456789abcdef >conftest.i
7568cat conftest.i conftest.i >conftest2.i
7569: ${lt_DD:=$DD}
7570if test -z "$lt_DD"; then
7571  ac_path_lt_DD_found=false
7572  # Loop through the user's path and test for each of PROGNAME-LIST
7573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576  IFS=$as_save_IFS
7577  test -z "$as_dir" && as_dir=.
7578    for ac_prog in dd; do
7579    for ac_exec_ext in '' $ac_executable_extensions; do
7580      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7581      as_fn_executable_p "$ac_path_lt_DD" || continue
7582if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7583  cmp -s conftest.i conftest.out \
7584  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7585fi
7586      $ac_path_lt_DD_found && break 3
7587    done
7588  done
7589  done
7590IFS=$as_save_IFS
7591  if test -z "$ac_cv_path_lt_DD"; then
7592    :
7593  fi
7594else
7595  ac_cv_path_lt_DD=$lt_DD
7596fi
7597
7598rm -f conftest.i conftest2.i conftest.out
7599fi
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7601$as_echo "$ac_cv_path_lt_DD" >&6; }
7602
7603
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7605$as_echo_n "checking how to truncate binary pipes... " >&6; }
7606if ${lt_cv_truncate_bin+:} false; then :
7607  $as_echo_n "(cached) " >&6
7608else
7609  printf 0123456789abcdef0123456789abcdef >conftest.i
7610cat conftest.i conftest.i >conftest2.i
7611lt_cv_truncate_bin=
7612if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7613  cmp -s conftest.i conftest.out \
7614  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7615fi
7616rm -f conftest.i conftest2.i conftest.out
7617test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7618fi
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7620$as_echo "$lt_cv_truncate_bin" >&6; }
7621
7622
7623
7624
7625
7626
7627
7628# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7629func_cc_basename ()
7630{
7631    for cc_temp in $*""; do
7632      case $cc_temp in
7633        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7634        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7635        \-*) ;;
7636        *) break;;
7637      esac
7638    done
7639    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7640}
7641
7642# Check whether --enable-libtool-lock was given.
7643if test "${enable_libtool_lock+set}" = set; then :
7644  enableval=$enable_libtool_lock;
7645fi
7646
7647test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7648
7649# Some flags need to be propagated to the compiler or linker for good
7650# libtool support.
7651case $host in
7652ia64-*-hpux*)
7653  # Find out what ABI is being produced by ac_compile, and set mode
7654  # options accordingly.
7655  echo 'int i;' > conftest.$ac_ext
7656  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7657  (eval $ac_compile) 2>&5
7658  ac_status=$?
7659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660  test $ac_status = 0; }; then
7661    case `/usr/bin/file conftest.$ac_objext` in
7662      *ELF-32*)
7663	HPUX_IA64_MODE=32
7664	;;
7665      *ELF-64*)
7666	HPUX_IA64_MODE=64
7667	;;
7668    esac
7669  fi
7670  rm -rf conftest*
7671  ;;
7672*-*-irix6*)
7673  # Find out what ABI is being produced by ac_compile, and set linker
7674  # options accordingly.
7675  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7676  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7677  (eval $ac_compile) 2>&5
7678  ac_status=$?
7679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7680  test $ac_status = 0; }; then
7681    if test yes = "$lt_cv_prog_gnu_ld"; then
7682      case `/usr/bin/file conftest.$ac_objext` in
7683	*32-bit*)
7684	  LD="${LD-ld} -melf32bsmip"
7685	  ;;
7686	*N32*)
7687	  LD="${LD-ld} -melf32bmipn32"
7688	  ;;
7689	*64-bit*)
7690	  LD="${LD-ld} -melf64bmip"
7691	;;
7692      esac
7693    else
7694      case `/usr/bin/file conftest.$ac_objext` in
7695	*32-bit*)
7696	  LD="${LD-ld} -32"
7697	  ;;
7698	*N32*)
7699	  LD="${LD-ld} -n32"
7700	  ;;
7701	*64-bit*)
7702	  LD="${LD-ld} -64"
7703	  ;;
7704      esac
7705    fi
7706  fi
7707  rm -rf conftest*
7708  ;;
7709
7710mips64*-*linux*)
7711  # Find out what ABI is being produced by ac_compile, and set linker
7712  # options accordingly.
7713  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7714  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7715  (eval $ac_compile) 2>&5
7716  ac_status=$?
7717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7718  test $ac_status = 0; }; then
7719    emul=elf
7720    case `/usr/bin/file conftest.$ac_objext` in
7721      *32-bit*)
7722	emul="${emul}32"
7723	;;
7724      *64-bit*)
7725	emul="${emul}64"
7726	;;
7727    esac
7728    case `/usr/bin/file conftest.$ac_objext` in
7729      *MSB*)
7730	emul="${emul}btsmip"
7731	;;
7732      *LSB*)
7733	emul="${emul}ltsmip"
7734	;;
7735    esac
7736    case `/usr/bin/file conftest.$ac_objext` in
7737      *N32*)
7738	emul="${emul}n32"
7739	;;
7740    esac
7741    LD="${LD-ld} -m $emul"
7742  fi
7743  rm -rf conftest*
7744  ;;
7745
7746x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7747s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7748  # Find out what ABI is being produced by ac_compile, and set linker
7749  # options accordingly.  Note that the listed cases only cover the
7750  # situations where additional linker options are needed (such as when
7751  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7752  # vice versa); the common cases where no linker options are needed do
7753  # not appear in the list.
7754  echo 'int i;' > conftest.$ac_ext
7755  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7756  (eval $ac_compile) 2>&5
7757  ac_status=$?
7758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7759  test $ac_status = 0; }; then
7760    case `/usr/bin/file conftest.o` in
7761      *32-bit*)
7762	case $host in
7763	  x86_64-*kfreebsd*-gnu)
7764	    LD="${LD-ld} -m elf_i386_fbsd"
7765	    ;;
7766	  x86_64-*linux*)
7767	    case `/usr/bin/file conftest.o` in
7768	      *x86-64*)
7769		LD="${LD-ld} -m elf32_x86_64"
7770		;;
7771	      *)
7772		LD="${LD-ld} -m elf_i386"
7773		;;
7774	    esac
7775	    ;;
7776	  powerpc64le-*linux*)
7777	    LD="${LD-ld} -m elf32lppclinux"
7778	    ;;
7779	  powerpc64-*linux*)
7780	    LD="${LD-ld} -m elf32ppclinux"
7781	    ;;
7782	  s390x-*linux*)
7783	    LD="${LD-ld} -m elf_s390"
7784	    ;;
7785	  sparc64-*linux*)
7786	    LD="${LD-ld} -m elf32_sparc"
7787	    ;;
7788	esac
7789	;;
7790      *64-bit*)
7791	case $host in
7792	  x86_64-*kfreebsd*-gnu)
7793	    LD="${LD-ld} -m elf_x86_64_fbsd"
7794	    ;;
7795	  x86_64-*linux*)
7796	    LD="${LD-ld} -m elf_x86_64"
7797	    ;;
7798	  powerpcle-*linux*)
7799	    LD="${LD-ld} -m elf64lppc"
7800	    ;;
7801	  powerpc-*linux*)
7802	    LD="${LD-ld} -m elf64ppc"
7803	    ;;
7804	  s390*-*linux*|s390*-*tpf*)
7805	    LD="${LD-ld} -m elf64_s390"
7806	    ;;
7807	  sparc*-*linux*)
7808	    LD="${LD-ld} -m elf64_sparc"
7809	    ;;
7810	esac
7811	;;
7812    esac
7813  fi
7814  rm -rf conftest*
7815  ;;
7816
7817*-*-sco3.2v5*)
7818  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7819  SAVE_CFLAGS=$CFLAGS
7820  CFLAGS="$CFLAGS -belf"
7821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7822$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7823if ${lt_cv_cc_needs_belf+:} false; then :
7824  $as_echo_n "(cached) " >&6
7825else
7826  ac_ext=c
7827ac_cpp='$CPP $CPPFLAGS'
7828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831
7832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833/* end confdefs.h.  */
7834
7835int
7836main ()
7837{
7838
7839  ;
7840  return 0;
7841}
7842_ACEOF
7843if ac_fn_c_try_link "$LINENO"; then :
7844  lt_cv_cc_needs_belf=yes
7845else
7846  lt_cv_cc_needs_belf=no
7847fi
7848rm -f core conftest.err conftest.$ac_objext \
7849    conftest$ac_exeext conftest.$ac_ext
7850     ac_ext=c
7851ac_cpp='$CPP $CPPFLAGS'
7852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854ac_compiler_gnu=$ac_cv_c_compiler_gnu
7855
7856fi
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7858$as_echo "$lt_cv_cc_needs_belf" >&6; }
7859  if test yes != "$lt_cv_cc_needs_belf"; then
7860    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7861    CFLAGS=$SAVE_CFLAGS
7862  fi
7863  ;;
7864*-*solaris*)
7865  # Find out what ABI is being produced by ac_compile, and set linker
7866  # options accordingly.
7867  echo 'int i;' > conftest.$ac_ext
7868  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7869  (eval $ac_compile) 2>&5
7870  ac_status=$?
7871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7872  test $ac_status = 0; }; then
7873    case `/usr/bin/file conftest.o` in
7874    *64-bit*)
7875      case $lt_cv_prog_gnu_ld in
7876      yes*)
7877        case $host in
7878        i?86-*-solaris*|x86_64-*-solaris*)
7879          LD="${LD-ld} -m elf_x86_64"
7880          ;;
7881        sparc*-*-solaris*)
7882          LD="${LD-ld} -m elf64_sparc"
7883          ;;
7884        esac
7885        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7886        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7887          LD=${LD-ld}_sol2
7888        fi
7889        ;;
7890      *)
7891	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7892	  LD="${LD-ld} -64"
7893	fi
7894	;;
7895      esac
7896      ;;
7897    esac
7898  fi
7899  rm -rf conftest*
7900  ;;
7901esac
7902
7903need_locks=$enable_libtool_lock
7904
7905if test -n "$ac_tool_prefix"; then
7906  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7907set dummy ${ac_tool_prefix}mt; ac_word=$2
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909$as_echo_n "checking for $ac_word... " >&6; }
7910if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7911  $as_echo_n "(cached) " >&6
7912else
7913  if test -n "$MANIFEST_TOOL"; then
7914  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7915else
7916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919  IFS=$as_save_IFS
7920  test -z "$as_dir" && as_dir=.
7921    for ac_exec_ext in '' $ac_executable_extensions; do
7922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925    break 2
7926  fi
7927done
7928  done
7929IFS=$as_save_IFS
7930
7931fi
7932fi
7933MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7934if test -n "$MANIFEST_TOOL"; then
7935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7936$as_echo "$MANIFEST_TOOL" >&6; }
7937else
7938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939$as_echo "no" >&6; }
7940fi
7941
7942
7943fi
7944if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7945  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7946  # Extract the first word of "mt", so it can be a program name with args.
7947set dummy mt; ac_word=$2
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949$as_echo_n "checking for $ac_word... " >&6; }
7950if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7951  $as_echo_n "(cached) " >&6
7952else
7953  if test -n "$ac_ct_MANIFEST_TOOL"; then
7954  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7955else
7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959  IFS=$as_save_IFS
7960  test -z "$as_dir" && as_dir=.
7961    for ac_exec_ext in '' $ac_executable_extensions; do
7962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965    break 2
7966  fi
7967done
7968  done
7969IFS=$as_save_IFS
7970
7971fi
7972fi
7973ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7974if test -n "$ac_ct_MANIFEST_TOOL"; then
7975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7976$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7977else
7978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979$as_echo "no" >&6; }
7980fi
7981
7982  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7983    MANIFEST_TOOL=":"
7984  else
7985    case $cross_compiling:$ac_tool_warned in
7986yes:)
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989ac_tool_warned=yes ;;
7990esac
7991    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7992  fi
7993else
7994  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7995fi
7996
7997test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7999$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8000if ${lt_cv_path_mainfest_tool+:} false; then :
8001  $as_echo_n "(cached) " >&6
8002else
8003  lt_cv_path_mainfest_tool=no
8004  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8005  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8006  cat conftest.err >&5
8007  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8008    lt_cv_path_mainfest_tool=yes
8009  fi
8010  rm -f conftest*
8011fi
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8013$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8014if test yes != "$lt_cv_path_mainfest_tool"; then
8015  MANIFEST_TOOL=:
8016fi
8017
8018
8019
8020
8021
8022
8023  case $host_os in
8024    rhapsody* | darwin*)
8025    if test -n "$ac_tool_prefix"; then
8026  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8027set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029$as_echo_n "checking for $ac_word... " >&6; }
8030if ${ac_cv_prog_DSYMUTIL+:} false; then :
8031  $as_echo_n "(cached) " >&6
8032else
8033  if test -n "$DSYMUTIL"; then
8034  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8035else
8036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037for as_dir in $PATH
8038do
8039  IFS=$as_save_IFS
8040  test -z "$as_dir" && as_dir=.
8041    for ac_exec_ext in '' $ac_executable_extensions; do
8042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8043    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045    break 2
8046  fi
8047done
8048  done
8049IFS=$as_save_IFS
8050
8051fi
8052fi
8053DSYMUTIL=$ac_cv_prog_DSYMUTIL
8054if test -n "$DSYMUTIL"; then
8055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8056$as_echo "$DSYMUTIL" >&6; }
8057else
8058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059$as_echo "no" >&6; }
8060fi
8061
8062
8063fi
8064if test -z "$ac_cv_prog_DSYMUTIL"; then
8065  ac_ct_DSYMUTIL=$DSYMUTIL
8066  # Extract the first word of "dsymutil", so it can be a program name with args.
8067set dummy dsymutil; ac_word=$2
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069$as_echo_n "checking for $ac_word... " >&6; }
8070if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8071  $as_echo_n "(cached) " >&6
8072else
8073  if test -n "$ac_ct_DSYMUTIL"; then
8074  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8075else
8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079  IFS=$as_save_IFS
8080  test -z "$as_dir" && as_dir=.
8081    for ac_exec_ext in '' $ac_executable_extensions; do
8082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085    break 2
8086  fi
8087done
8088  done
8089IFS=$as_save_IFS
8090
8091fi
8092fi
8093ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8094if test -n "$ac_ct_DSYMUTIL"; then
8095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8096$as_echo "$ac_ct_DSYMUTIL" >&6; }
8097else
8098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099$as_echo "no" >&6; }
8100fi
8101
8102  if test "x$ac_ct_DSYMUTIL" = x; then
8103    DSYMUTIL=":"
8104  else
8105    case $cross_compiling:$ac_tool_warned in
8106yes:)
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8109ac_tool_warned=yes ;;
8110esac
8111    DSYMUTIL=$ac_ct_DSYMUTIL
8112  fi
8113else
8114  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8115fi
8116
8117    if test -n "$ac_tool_prefix"; then
8118  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8119set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121$as_echo_n "checking for $ac_word... " >&6; }
8122if ${ac_cv_prog_NMEDIT+:} false; then :
8123  $as_echo_n "(cached) " >&6
8124else
8125  if test -n "$NMEDIT"; then
8126  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8127else
8128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129for as_dir in $PATH
8130do
8131  IFS=$as_save_IFS
8132  test -z "$as_dir" && as_dir=.
8133    for ac_exec_ext in '' $ac_executable_extensions; do
8134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8135    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137    break 2
8138  fi
8139done
8140  done
8141IFS=$as_save_IFS
8142
8143fi
8144fi
8145NMEDIT=$ac_cv_prog_NMEDIT
8146if test -n "$NMEDIT"; then
8147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8148$as_echo "$NMEDIT" >&6; }
8149else
8150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151$as_echo "no" >&6; }
8152fi
8153
8154
8155fi
8156if test -z "$ac_cv_prog_NMEDIT"; then
8157  ac_ct_NMEDIT=$NMEDIT
8158  # Extract the first word of "nmedit", so it can be a program name with args.
8159set dummy nmedit; ac_word=$2
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161$as_echo_n "checking for $ac_word... " >&6; }
8162if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8163  $as_echo_n "(cached) " >&6
8164else
8165  if test -n "$ac_ct_NMEDIT"; then
8166  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8167else
8168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171  IFS=$as_save_IFS
8172  test -z "$as_dir" && as_dir=.
8173    for ac_exec_ext in '' $ac_executable_extensions; do
8174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8175    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177    break 2
8178  fi
8179done
8180  done
8181IFS=$as_save_IFS
8182
8183fi
8184fi
8185ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8186if test -n "$ac_ct_NMEDIT"; then
8187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8188$as_echo "$ac_ct_NMEDIT" >&6; }
8189else
8190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191$as_echo "no" >&6; }
8192fi
8193
8194  if test "x$ac_ct_NMEDIT" = x; then
8195    NMEDIT=":"
8196  else
8197    case $cross_compiling:$ac_tool_warned in
8198yes:)
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8201ac_tool_warned=yes ;;
8202esac
8203    NMEDIT=$ac_ct_NMEDIT
8204  fi
8205else
8206  NMEDIT="$ac_cv_prog_NMEDIT"
8207fi
8208
8209    if test -n "$ac_tool_prefix"; then
8210  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8211set dummy ${ac_tool_prefix}lipo; ac_word=$2
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213$as_echo_n "checking for $ac_word... " >&6; }
8214if ${ac_cv_prog_LIPO+:} false; then :
8215  $as_echo_n "(cached) " >&6
8216else
8217  if test -n "$LIPO"; then
8218  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8219else
8220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221for as_dir in $PATH
8222do
8223  IFS=$as_save_IFS
8224  test -z "$as_dir" && as_dir=.
8225    for ac_exec_ext in '' $ac_executable_extensions; do
8226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8227    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229    break 2
8230  fi
8231done
8232  done
8233IFS=$as_save_IFS
8234
8235fi
8236fi
8237LIPO=$ac_cv_prog_LIPO
8238if test -n "$LIPO"; then
8239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8240$as_echo "$LIPO" >&6; }
8241else
8242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243$as_echo "no" >&6; }
8244fi
8245
8246
8247fi
8248if test -z "$ac_cv_prog_LIPO"; then
8249  ac_ct_LIPO=$LIPO
8250  # Extract the first word of "lipo", so it can be a program name with args.
8251set dummy lipo; ac_word=$2
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253$as_echo_n "checking for $ac_word... " >&6; }
8254if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8255  $as_echo_n "(cached) " >&6
8256else
8257  if test -n "$ac_ct_LIPO"; then
8258  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8259else
8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263  IFS=$as_save_IFS
8264  test -z "$as_dir" && as_dir=.
8265    for ac_exec_ext in '' $ac_executable_extensions; do
8266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8267    ac_cv_prog_ac_ct_LIPO="lipo"
8268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269    break 2
8270  fi
8271done
8272  done
8273IFS=$as_save_IFS
8274
8275fi
8276fi
8277ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8278if test -n "$ac_ct_LIPO"; then
8279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8280$as_echo "$ac_ct_LIPO" >&6; }
8281else
8282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
8284fi
8285
8286  if test "x$ac_ct_LIPO" = x; then
8287    LIPO=":"
8288  else
8289    case $cross_compiling:$ac_tool_warned in
8290yes:)
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8293ac_tool_warned=yes ;;
8294esac
8295    LIPO=$ac_ct_LIPO
8296  fi
8297else
8298  LIPO="$ac_cv_prog_LIPO"
8299fi
8300
8301    if test -n "$ac_tool_prefix"; then
8302  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8303set dummy ${ac_tool_prefix}otool; ac_word=$2
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305$as_echo_n "checking for $ac_word... " >&6; }
8306if ${ac_cv_prog_OTOOL+:} false; then :
8307  $as_echo_n "(cached) " >&6
8308else
8309  if test -n "$OTOOL"; then
8310  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8311else
8312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313for as_dir in $PATH
8314do
8315  IFS=$as_save_IFS
8316  test -z "$as_dir" && as_dir=.
8317    for ac_exec_ext in '' $ac_executable_extensions; do
8318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8319    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321    break 2
8322  fi
8323done
8324  done
8325IFS=$as_save_IFS
8326
8327fi
8328fi
8329OTOOL=$ac_cv_prog_OTOOL
8330if test -n "$OTOOL"; then
8331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8332$as_echo "$OTOOL" >&6; }
8333else
8334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335$as_echo "no" >&6; }
8336fi
8337
8338
8339fi
8340if test -z "$ac_cv_prog_OTOOL"; then
8341  ac_ct_OTOOL=$OTOOL
8342  # Extract the first word of "otool", so it can be a program name with args.
8343set dummy otool; ac_word=$2
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345$as_echo_n "checking for $ac_word... " >&6; }
8346if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8347  $as_echo_n "(cached) " >&6
8348else
8349  if test -n "$ac_ct_OTOOL"; then
8350  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8351else
8352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353for as_dir in $PATH
8354do
8355  IFS=$as_save_IFS
8356  test -z "$as_dir" && as_dir=.
8357    for ac_exec_ext in '' $ac_executable_extensions; do
8358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8359    ac_cv_prog_ac_ct_OTOOL="otool"
8360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361    break 2
8362  fi
8363done
8364  done
8365IFS=$as_save_IFS
8366
8367fi
8368fi
8369ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8370if test -n "$ac_ct_OTOOL"; then
8371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8372$as_echo "$ac_ct_OTOOL" >&6; }
8373else
8374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375$as_echo "no" >&6; }
8376fi
8377
8378  if test "x$ac_ct_OTOOL" = x; then
8379    OTOOL=":"
8380  else
8381    case $cross_compiling:$ac_tool_warned in
8382yes:)
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8385ac_tool_warned=yes ;;
8386esac
8387    OTOOL=$ac_ct_OTOOL
8388  fi
8389else
8390  OTOOL="$ac_cv_prog_OTOOL"
8391fi
8392
8393    if test -n "$ac_tool_prefix"; then
8394  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8395set dummy ${ac_tool_prefix}otool64; ac_word=$2
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397$as_echo_n "checking for $ac_word... " >&6; }
8398if ${ac_cv_prog_OTOOL64+:} false; then :
8399  $as_echo_n "(cached) " >&6
8400else
8401  if test -n "$OTOOL64"; then
8402  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8403else
8404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405for as_dir in $PATH
8406do
8407  IFS=$as_save_IFS
8408  test -z "$as_dir" && as_dir=.
8409    for ac_exec_ext in '' $ac_executable_extensions; do
8410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8411    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413    break 2
8414  fi
8415done
8416  done
8417IFS=$as_save_IFS
8418
8419fi
8420fi
8421OTOOL64=$ac_cv_prog_OTOOL64
8422if test -n "$OTOOL64"; then
8423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8424$as_echo "$OTOOL64" >&6; }
8425else
8426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427$as_echo "no" >&6; }
8428fi
8429
8430
8431fi
8432if test -z "$ac_cv_prog_OTOOL64"; then
8433  ac_ct_OTOOL64=$OTOOL64
8434  # Extract the first word of "otool64", so it can be a program name with args.
8435set dummy otool64; ac_word=$2
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437$as_echo_n "checking for $ac_word... " >&6; }
8438if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8439  $as_echo_n "(cached) " >&6
8440else
8441  if test -n "$ac_ct_OTOOL64"; then
8442  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8443else
8444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445for as_dir in $PATH
8446do
8447  IFS=$as_save_IFS
8448  test -z "$as_dir" && as_dir=.
8449    for ac_exec_ext in '' $ac_executable_extensions; do
8450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8451    ac_cv_prog_ac_ct_OTOOL64="otool64"
8452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453    break 2
8454  fi
8455done
8456  done
8457IFS=$as_save_IFS
8458
8459fi
8460fi
8461ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8462if test -n "$ac_ct_OTOOL64"; then
8463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8464$as_echo "$ac_ct_OTOOL64" >&6; }
8465else
8466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467$as_echo "no" >&6; }
8468fi
8469
8470  if test "x$ac_ct_OTOOL64" = x; then
8471    OTOOL64=":"
8472  else
8473    case $cross_compiling:$ac_tool_warned in
8474yes:)
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8477ac_tool_warned=yes ;;
8478esac
8479    OTOOL64=$ac_ct_OTOOL64
8480  fi
8481else
8482  OTOOL64="$ac_cv_prog_OTOOL64"
8483fi
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8512$as_echo_n "checking for -single_module linker flag... " >&6; }
8513if ${lt_cv_apple_cc_single_mod+:} false; then :
8514  $as_echo_n "(cached) " >&6
8515else
8516  lt_cv_apple_cc_single_mod=no
8517      if test -z "$LT_MULTI_MODULE"; then
8518	# By default we will add the -single_module flag. You can override
8519	# by either setting the environment variable LT_MULTI_MODULE
8520	# non-empty at configure time, or by adding -multi_module to the
8521	# link flags.
8522	rm -rf libconftest.dylib*
8523	echo "int foo(void){return 1;}" > conftest.c
8524	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8525-dynamiclib -Wl,-single_module conftest.c" >&5
8526	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8527	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8528        _lt_result=$?
8529	# If there is a non-empty error log, and "single_module"
8530	# appears in it, assume the flag caused a linker warning
8531        if test -s conftest.err && $GREP single_module conftest.err; then
8532	  cat conftest.err >&5
8533	# Otherwise, if the output was created with a 0 exit code from
8534	# the compiler, it worked.
8535	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8536	  lt_cv_apple_cc_single_mod=yes
8537	else
8538	  cat conftest.err >&5
8539	fi
8540	rm -rf libconftest.dylib*
8541	rm -f conftest.*
8542      fi
8543fi
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8545$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8546
8547    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8548$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8549if ${lt_cv_ld_exported_symbols_list+:} false; then :
8550  $as_echo_n "(cached) " >&6
8551else
8552  lt_cv_ld_exported_symbols_list=no
8553      save_LDFLAGS=$LDFLAGS
8554      echo "_main" > conftest.sym
8555      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8556      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557/* end confdefs.h.  */
8558
8559int
8560main ()
8561{
8562
8563  ;
8564  return 0;
8565}
8566_ACEOF
8567if ac_fn_c_try_link "$LINENO"; then :
8568  lt_cv_ld_exported_symbols_list=yes
8569else
8570  lt_cv_ld_exported_symbols_list=no
8571fi
8572rm -f core conftest.err conftest.$ac_objext \
8573    conftest$ac_exeext conftest.$ac_ext
8574	LDFLAGS=$save_LDFLAGS
8575
8576fi
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8578$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8579
8580    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8581$as_echo_n "checking for -force_load linker flag... " >&6; }
8582if ${lt_cv_ld_force_load+:} false; then :
8583  $as_echo_n "(cached) " >&6
8584else
8585  lt_cv_ld_force_load=no
8586      cat > conftest.c << _LT_EOF
8587int forced_loaded() { return 2;}
8588_LT_EOF
8589      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8590      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8591      echo "$AR cru libconftest.a conftest.o" >&5
8592      $AR cru libconftest.a conftest.o 2>&5
8593      echo "$RANLIB libconftest.a" >&5
8594      $RANLIB libconftest.a 2>&5
8595      cat > conftest.c << _LT_EOF
8596int main() { return 0;}
8597_LT_EOF
8598      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8599      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8600      _lt_result=$?
8601      if test -s conftest.err && $GREP force_load conftest.err; then
8602	cat conftest.err >&5
8603      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8604	lt_cv_ld_force_load=yes
8605      else
8606	cat conftest.err >&5
8607      fi
8608        rm -f conftest.err libconftest.a conftest conftest.c
8609        rm -rf conftest.dSYM
8610
8611fi
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8613$as_echo "$lt_cv_ld_force_load" >&6; }
8614    case $host_os in
8615    rhapsody* | darwin1.[012])
8616      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8617    darwin1.*)
8618      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8619    darwin*) # darwin 5.x on
8620      # if running on 10.5 or later, the deployment target defaults
8621      # to the OS version, if on x86, and 10.4, the deployment
8622      # target defaults to 10.4. Don't you love it?
8623      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8624	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8625	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8626	10.[012][,.]*)
8627	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8628	10.*)
8629	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8630      esac
8631    ;;
8632  esac
8633    if test yes = "$lt_cv_apple_cc_single_mod"; then
8634      _lt_dar_single_mod='$single_module'
8635    fi
8636    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8637      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8638    else
8639      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8640    fi
8641    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8642      _lt_dsymutil='~$DSYMUTIL $lib || :'
8643    else
8644      _lt_dsymutil=
8645    fi
8646    ;;
8647  esac
8648
8649# func_munge_path_list VARIABLE PATH
8650# -----------------------------------
8651# VARIABLE is name of variable containing _space_ separated list of
8652# directories to be munged by the contents of PATH, which is string
8653# having a format:
8654# "DIR[:DIR]:"
8655#       string "DIR[ DIR]" will be prepended to VARIABLE
8656# ":DIR[:DIR]"
8657#       string "DIR[ DIR]" will be appended to VARIABLE
8658# "DIRP[:DIRP]::[DIRA:]DIRA"
8659#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8660#       "DIRA[ DIRA]" will be appended to VARIABLE
8661# "DIR[:DIR]"
8662#       VARIABLE will be replaced by "DIR[ DIR]"
8663func_munge_path_list ()
8664{
8665    case x$2 in
8666    x)
8667        ;;
8668    *:)
8669        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8670        ;;
8671    x:*)
8672        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8673        ;;
8674    *::*)
8675        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8676        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8677        ;;
8678    *)
8679        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8680        ;;
8681    esac
8682}
8683
8684for ac_header in dlfcn.h
8685do :
8686  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8687"
8688if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8689  cat >>confdefs.h <<_ACEOF
8690#define HAVE_DLFCN_H 1
8691_ACEOF
8692
8693fi
8694
8695done
8696
8697
8698
8699
8700
8701# Set options
8702
8703
8704
8705        enable_dlopen=no
8706
8707
8708  enable_win32_dll=no
8709
8710
8711            # Check whether --enable-shared was given.
8712if test "${enable_shared+set}" = set; then :
8713  enableval=$enable_shared; p=${PACKAGE-default}
8714    case $enableval in
8715    yes) enable_shared=yes ;;
8716    no) enable_shared=no ;;
8717    *)
8718      enable_shared=no
8719      # Look at the argument we got.  We use all the common list separators.
8720      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8721      for pkg in $enableval; do
8722	IFS=$lt_save_ifs
8723	if test "X$pkg" = "X$p"; then
8724	  enable_shared=yes
8725	fi
8726      done
8727      IFS=$lt_save_ifs
8728      ;;
8729    esac
8730else
8731  enable_shared=yes
8732fi
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742  # Check whether --enable-static was given.
8743if test "${enable_static+set}" = set; then :
8744  enableval=$enable_static; p=${PACKAGE-default}
8745    case $enableval in
8746    yes) enable_static=yes ;;
8747    no) enable_static=no ;;
8748    *)
8749     enable_static=no
8750      # Look at the argument we got.  We use all the common list separators.
8751      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8752      for pkg in $enableval; do
8753	IFS=$lt_save_ifs
8754	if test "X$pkg" = "X$p"; then
8755	  enable_static=yes
8756	fi
8757      done
8758      IFS=$lt_save_ifs
8759      ;;
8760    esac
8761else
8762  enable_static=yes
8763fi
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774# Check whether --with-pic was given.
8775if test "${with_pic+set}" = set; then :
8776  withval=$with_pic; lt_p=${PACKAGE-default}
8777    case $withval in
8778    yes|no) pic_mode=$withval ;;
8779    *)
8780      pic_mode=default
8781      # Look at the argument we got.  We use all the common list separators.
8782      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8783      for lt_pkg in $withval; do
8784	IFS=$lt_save_ifs
8785	if test "X$lt_pkg" = "X$lt_p"; then
8786	  pic_mode=yes
8787	fi
8788      done
8789      IFS=$lt_save_ifs
8790      ;;
8791    esac
8792else
8793  pic_mode=default
8794fi
8795
8796
8797
8798
8799
8800
8801
8802
8803  # Check whether --enable-fast-install was given.
8804if test "${enable_fast_install+set}" = set; then :
8805  enableval=$enable_fast_install; p=${PACKAGE-default}
8806    case $enableval in
8807    yes) enable_fast_install=yes ;;
8808    no) enable_fast_install=no ;;
8809    *)
8810      enable_fast_install=no
8811      # Look at the argument we got.  We use all the common list separators.
8812      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8813      for pkg in $enableval; do
8814	IFS=$lt_save_ifs
8815	if test "X$pkg" = "X$p"; then
8816	  enable_fast_install=yes
8817	fi
8818      done
8819      IFS=$lt_save_ifs
8820      ;;
8821    esac
8822else
8823  enable_fast_install=yes
8824fi
8825
8826
8827
8828
8829
8830
8831
8832
8833  shared_archive_member_spec=
8834case $host,$enable_shared in
8835power*-*-aix[5-9]*,yes)
8836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8837$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8838
8839# Check whether --with-aix-soname was given.
8840if test "${with_aix_soname+set}" = set; then :
8841  withval=$with_aix_soname; case $withval in
8842    aix|svr4|both)
8843      ;;
8844    *)
8845      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8846      ;;
8847    esac
8848    lt_cv_with_aix_soname=$with_aix_soname
8849else
8850  if ${lt_cv_with_aix_soname+:} false; then :
8851  $as_echo_n "(cached) " >&6
8852else
8853  lt_cv_with_aix_soname=aix
8854fi
8855
8856    with_aix_soname=$lt_cv_with_aix_soname
8857fi
8858
8859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8860$as_echo "$with_aix_soname" >&6; }
8861  if test aix != "$with_aix_soname"; then
8862    # For the AIX way of multilib, we name the shared archive member
8863    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8864    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8865    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8866    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8867    if test 64 = "${OBJECT_MODE-32}"; then
8868      shared_archive_member_spec=shr_64
8869    else
8870      shared_archive_member_spec=shr
8871    fi
8872  fi
8873  ;;
8874*)
8875  with_aix_soname=aix
8876  ;;
8877esac
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888# This can be used to rebuild libtool when needed
8889LIBTOOL_DEPS=$ltmain
8890
8891# Always use our own libtool.
8892LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923test -z "$LN_S" && LN_S="ln -s"
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938if test -n "${ZSH_VERSION+set}"; then
8939   setopt NO_GLOB_SUBST
8940fi
8941
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8943$as_echo_n "checking for objdir... " >&6; }
8944if ${lt_cv_objdir+:} false; then :
8945  $as_echo_n "(cached) " >&6
8946else
8947  rm -f .libs 2>/dev/null
8948mkdir .libs 2>/dev/null
8949if test -d .libs; then
8950  lt_cv_objdir=.libs
8951else
8952  # MS-DOS does not allow filenames that begin with a dot.
8953  lt_cv_objdir=_libs
8954fi
8955rmdir .libs 2>/dev/null
8956fi
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8958$as_echo "$lt_cv_objdir" >&6; }
8959objdir=$lt_cv_objdir
8960
8961
8962
8963
8964
8965cat >>confdefs.h <<_ACEOF
8966#define LT_OBJDIR "$lt_cv_objdir/"
8967_ACEOF
8968
8969
8970
8971
8972case $host_os in
8973aix3*)
8974  # AIX sometimes has problems with the GCC collect2 program.  For some
8975  # reason, if we set the COLLECT_NAMES environment variable, the problems
8976  # vanish in a puff of smoke.
8977  if test set != "${COLLECT_NAMES+set}"; then
8978    COLLECT_NAMES=
8979    export COLLECT_NAMES
8980  fi
8981  ;;
8982esac
8983
8984# Global variables:
8985ofile=libtool
8986can_build_shared=yes
8987
8988# All known linkers require a '.a' archive for static linking (except MSVC,
8989# which needs '.lib').
8990libext=a
8991
8992with_gnu_ld=$lt_cv_prog_gnu_ld
8993
8994old_CC=$CC
8995old_CFLAGS=$CFLAGS
8996
8997# Set sane defaults for various variables
8998test -z "$CC" && CC=cc
8999test -z "$LTCC" && LTCC=$CC
9000test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9001test -z "$LD" && LD=ld
9002test -z "$ac_objext" && ac_objext=o
9003
9004func_cc_basename $compiler
9005cc_basename=$func_cc_basename_result
9006
9007
9008# Only perform the check for file, if the check method requires it
9009test -z "$MAGIC_CMD" && MAGIC_CMD=file
9010case $deplibs_check_method in
9011file_magic*)
9012  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9013    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9014$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9015if ${lt_cv_path_MAGIC_CMD+:} false; then :
9016  $as_echo_n "(cached) " >&6
9017else
9018  case $MAGIC_CMD in
9019[\\/*] |  ?:[\\/]*)
9020  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9021  ;;
9022*)
9023  lt_save_MAGIC_CMD=$MAGIC_CMD
9024  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9025  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9026  for ac_dir in $ac_dummy; do
9027    IFS=$lt_save_ifs
9028    test -z "$ac_dir" && ac_dir=.
9029    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9030      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9031      if test -n "$file_magic_test_file"; then
9032	case $deplibs_check_method in
9033	"file_magic "*)
9034	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9035	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9036	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9037	    $EGREP "$file_magic_regex" > /dev/null; then
9038	    :
9039	  else
9040	    cat <<_LT_EOF 1>&2
9041
9042*** Warning: the command libtool uses to detect shared libraries,
9043*** $file_magic_cmd, produces output that libtool cannot recognize.
9044*** The result is that libtool may fail to recognize shared libraries
9045*** as such.  This will affect the creation of libtool libraries that
9046*** depend on shared libraries, but programs linked with such libtool
9047*** libraries will work regardless of this problem.  Nevertheless, you
9048*** may want to report the problem to your system manager and/or to
9049*** bug-libtool@gnu.org
9050
9051_LT_EOF
9052	  fi ;;
9053	esac
9054      fi
9055      break
9056    fi
9057  done
9058  IFS=$lt_save_ifs
9059  MAGIC_CMD=$lt_save_MAGIC_CMD
9060  ;;
9061esac
9062fi
9063
9064MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9065if test -n "$MAGIC_CMD"; then
9066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9067$as_echo "$MAGIC_CMD" >&6; }
9068else
9069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070$as_echo "no" >&6; }
9071fi
9072
9073
9074
9075
9076
9077if test -z "$lt_cv_path_MAGIC_CMD"; then
9078  if test -n "$ac_tool_prefix"; then
9079    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9080$as_echo_n "checking for file... " >&6; }
9081if ${lt_cv_path_MAGIC_CMD+:} false; then :
9082  $as_echo_n "(cached) " >&6
9083else
9084  case $MAGIC_CMD in
9085[\\/*] |  ?:[\\/]*)
9086  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9087  ;;
9088*)
9089  lt_save_MAGIC_CMD=$MAGIC_CMD
9090  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9091  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9092  for ac_dir in $ac_dummy; do
9093    IFS=$lt_save_ifs
9094    test -z "$ac_dir" && ac_dir=.
9095    if test -f "$ac_dir/file"; then
9096      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9097      if test -n "$file_magic_test_file"; then
9098	case $deplibs_check_method in
9099	"file_magic "*)
9100	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9101	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9102	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9103	    $EGREP "$file_magic_regex" > /dev/null; then
9104	    :
9105	  else
9106	    cat <<_LT_EOF 1>&2
9107
9108*** Warning: the command libtool uses to detect shared libraries,
9109*** $file_magic_cmd, produces output that libtool cannot recognize.
9110*** The result is that libtool may fail to recognize shared libraries
9111*** as such.  This will affect the creation of libtool libraries that
9112*** depend on shared libraries, but programs linked with such libtool
9113*** libraries will work regardless of this problem.  Nevertheless, you
9114*** may want to report the problem to your system manager and/or to
9115*** bug-libtool@gnu.org
9116
9117_LT_EOF
9118	  fi ;;
9119	esac
9120      fi
9121      break
9122    fi
9123  done
9124  IFS=$lt_save_ifs
9125  MAGIC_CMD=$lt_save_MAGIC_CMD
9126  ;;
9127esac
9128fi
9129
9130MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9131if test -n "$MAGIC_CMD"; then
9132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9133$as_echo "$MAGIC_CMD" >&6; }
9134else
9135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136$as_echo "no" >&6; }
9137fi
9138
9139
9140  else
9141    MAGIC_CMD=:
9142  fi
9143fi
9144
9145  fi
9146  ;;
9147esac
9148
9149# Use C for the default configuration in the libtool script
9150
9151lt_save_CC=$CC
9152ac_ext=c
9153ac_cpp='$CPP $CPPFLAGS'
9154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9156ac_compiler_gnu=$ac_cv_c_compiler_gnu
9157
9158
9159# Source file extension for C test sources.
9160ac_ext=c
9161
9162# Object file extension for compiled C test sources.
9163objext=o
9164objext=$objext
9165
9166# Code to be used in simple compile tests
9167lt_simple_compile_test_code="int some_variable = 0;"
9168
9169# Code to be used in simple link tests
9170lt_simple_link_test_code='int main(){return(0);}'
9171
9172
9173
9174
9175
9176
9177
9178# If no C compiler was specified, use CC.
9179LTCC=${LTCC-"$CC"}
9180
9181# If no C compiler flags were specified, use CFLAGS.
9182LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9183
9184# Allow CC to be a program name with arguments.
9185compiler=$CC
9186
9187# Save the default compiler, since it gets overwritten when the other
9188# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9189compiler_DEFAULT=$CC
9190
9191# save warnings/boilerplate of simple test code
9192ac_outfile=conftest.$ac_objext
9193echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9194eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9195_lt_compiler_boilerplate=`cat conftest.err`
9196$RM conftest*
9197
9198ac_outfile=conftest.$ac_objext
9199echo "$lt_simple_link_test_code" >conftest.$ac_ext
9200eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9201_lt_linker_boilerplate=`cat conftest.err`
9202$RM -r conftest*
9203
9204
9205if test -n "$compiler"; then
9206
9207lt_prog_compiler_no_builtin_flag=
9208
9209if test yes = "$GCC"; then
9210  case $cc_basename in
9211  nvcc*)
9212    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9213  *)
9214    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9215  esac
9216
9217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9218$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9219if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9220  $as_echo_n "(cached) " >&6
9221else
9222  lt_cv_prog_compiler_rtti_exceptions=no
9223   ac_outfile=conftest.$ac_objext
9224   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9225   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9226   # Insert the option either (1) after the last *FLAGS variable, or
9227   # (2) before a word containing "conftest.", or (3) at the end.
9228   # Note that $ac_compile itself does not contain backslashes and begins
9229   # with a dollar sign (not a hyphen), so the echo should work correctly.
9230   # The option is referenced via a variable to avoid confusing sed.
9231   lt_compile=`echo "$ac_compile" | $SED \
9232   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9233   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9234   -e 's:$: $lt_compiler_flag:'`
9235   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9236   (eval "$lt_compile" 2>conftest.err)
9237   ac_status=$?
9238   cat conftest.err >&5
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   if (exit $ac_status) && test -s "$ac_outfile"; then
9241     # The compiler can only warn and ignore the option if not recognized
9242     # So say no if there are warnings other than the usual output.
9243     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9244     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9245     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9246       lt_cv_prog_compiler_rtti_exceptions=yes
9247     fi
9248   fi
9249   $RM conftest*
9250
9251fi
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9253$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9254
9255if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9256    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9257else
9258    :
9259fi
9260
9261fi
9262
9263
9264
9265
9266
9267
9268  lt_prog_compiler_wl=
9269lt_prog_compiler_pic=
9270lt_prog_compiler_static=
9271
9272
9273  if test yes = "$GCC"; then
9274    lt_prog_compiler_wl='-Wl,'
9275    lt_prog_compiler_static='-static'
9276
9277    case $host_os in
9278      aix*)
9279      # All AIX code is PIC.
9280      if test ia64 = "$host_cpu"; then
9281	# AIX 5 now supports IA64 processor
9282	lt_prog_compiler_static='-Bstatic'
9283      fi
9284      lt_prog_compiler_pic='-fPIC'
9285      ;;
9286
9287    amigaos*)
9288      case $host_cpu in
9289      powerpc)
9290            # see comment about AmigaOS4 .so support
9291            lt_prog_compiler_pic='-fPIC'
9292        ;;
9293      m68k)
9294            # FIXME: we need at least 68020 code to build shared libraries, but
9295            # adding the '-m68020' flag to GCC prevents building anything better,
9296            # like '-m68040'.
9297            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9298        ;;
9299      esac
9300      ;;
9301
9302    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9303      # PIC is the default for these OSes.
9304      ;;
9305
9306    mingw* | cygwin* | pw32* | os2* | cegcc*)
9307      # This hack is so that the source file can tell whether it is being
9308      # built for inclusion in a dll (and should export symbols for example).
9309      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9310      # (--disable-auto-import) libraries
9311      lt_prog_compiler_pic='-DDLL_EXPORT'
9312      case $host_os in
9313      os2*)
9314	lt_prog_compiler_static='$wl-static'
9315	;;
9316      esac
9317      ;;
9318
9319    darwin* | rhapsody*)
9320      # PIC is the default on this platform
9321      # Common symbols not allowed in MH_DYLIB files
9322      lt_prog_compiler_pic='-fno-common'
9323      ;;
9324
9325    haiku*)
9326      # PIC is the default for Haiku.
9327      # The "-static" flag exists, but is broken.
9328      lt_prog_compiler_static=
9329      ;;
9330
9331    hpux*)
9332      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9333      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9334      # sets the default TLS model and affects inlining.
9335      case $host_cpu in
9336      hppa*64*)
9337	# +Z the default
9338	;;
9339      *)
9340	lt_prog_compiler_pic='-fPIC'
9341	;;
9342      esac
9343      ;;
9344
9345    interix[3-9]*)
9346      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9347      # Instead, we relocate shared libraries at runtime.
9348      ;;
9349
9350    msdosdjgpp*)
9351      # Just because we use GCC doesn't mean we suddenly get shared libraries
9352      # on systems that don't support them.
9353      lt_prog_compiler_can_build_shared=no
9354      enable_shared=no
9355      ;;
9356
9357    *nto* | *qnx*)
9358      # QNX uses GNU C++, but need to define -shared option too, otherwise
9359      # it will coredump.
9360      lt_prog_compiler_pic='-fPIC -shared'
9361      ;;
9362
9363    sysv4*MP*)
9364      if test -d /usr/nec; then
9365	lt_prog_compiler_pic=-Kconform_pic
9366      fi
9367      ;;
9368
9369    *)
9370      lt_prog_compiler_pic='-fPIC'
9371      ;;
9372    esac
9373
9374    case $cc_basename in
9375    nvcc*) # Cuda Compiler Driver 2.2
9376      lt_prog_compiler_wl='-Xlinker '
9377      if test -n "$lt_prog_compiler_pic"; then
9378        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9379      fi
9380      ;;
9381    esac
9382  else
9383    # PORTME Check for flag to pass linker flags through the system compiler.
9384    case $host_os in
9385    aix*)
9386      lt_prog_compiler_wl='-Wl,'
9387      if test ia64 = "$host_cpu"; then
9388	# AIX 5 now supports IA64 processor
9389	lt_prog_compiler_static='-Bstatic'
9390      else
9391	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9392      fi
9393      ;;
9394
9395    darwin* | rhapsody*)
9396      # PIC is the default on this platform
9397      # Common symbols not allowed in MH_DYLIB files
9398      lt_prog_compiler_pic='-fno-common'
9399      case $cc_basename in
9400      nagfor*)
9401        # NAG Fortran compiler
9402        lt_prog_compiler_wl='-Wl,-Wl,,'
9403        lt_prog_compiler_pic='-PIC'
9404        lt_prog_compiler_static='-Bstatic'
9405        ;;
9406      esac
9407      ;;
9408
9409    mingw* | cygwin* | pw32* | os2* | cegcc*)
9410      # This hack is so that the source file can tell whether it is being
9411      # built for inclusion in a dll (and should export symbols for example).
9412      lt_prog_compiler_pic='-DDLL_EXPORT'
9413      case $host_os in
9414      os2*)
9415	lt_prog_compiler_static='$wl-static'
9416	;;
9417      esac
9418      ;;
9419
9420    hpux9* | hpux10* | hpux11*)
9421      lt_prog_compiler_wl='-Wl,'
9422      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9423      # not for PA HP-UX.
9424      case $host_cpu in
9425      hppa*64*|ia64*)
9426	# +Z the default
9427	;;
9428      *)
9429	lt_prog_compiler_pic='+Z'
9430	;;
9431      esac
9432      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9433      lt_prog_compiler_static='$wl-a ${wl}archive'
9434      ;;
9435
9436    irix5* | irix6* | nonstopux*)
9437      lt_prog_compiler_wl='-Wl,'
9438      # PIC (with -KPIC) is the default.
9439      lt_prog_compiler_static='-non_shared'
9440      ;;
9441
9442    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9443      case $cc_basename in
9444      # old Intel for x86_64, which still supported -KPIC.
9445      ecc*)
9446	lt_prog_compiler_wl='-Wl,'
9447	lt_prog_compiler_pic='-KPIC'
9448	lt_prog_compiler_static='-static'
9449        ;;
9450      # icc used to be incompatible with GCC.
9451      # ICC 10 doesn't accept -KPIC any more.
9452      icc* | ifort*)
9453	lt_prog_compiler_wl='-Wl,'
9454	lt_prog_compiler_pic='-fPIC'
9455	lt_prog_compiler_static='-static'
9456        ;;
9457      # Lahey Fortran 8.1.
9458      lf95*)
9459	lt_prog_compiler_wl='-Wl,'
9460	lt_prog_compiler_pic='--shared'
9461	lt_prog_compiler_static='--static'
9462	;;
9463      nagfor*)
9464	# NAG Fortran compiler
9465	lt_prog_compiler_wl='-Wl,-Wl,,'
9466	lt_prog_compiler_pic='-PIC'
9467	lt_prog_compiler_static='-Bstatic'
9468	;;
9469      tcc*)
9470	# Fabrice Bellard et al's Tiny C Compiler
9471	lt_prog_compiler_wl='-Wl,'
9472	lt_prog_compiler_pic='-fPIC'
9473	lt_prog_compiler_static='-static'
9474	;;
9475      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9476        # Portland Group compilers (*not* the Pentium gcc compiler,
9477	# which looks to be a dead project)
9478	lt_prog_compiler_wl='-Wl,'
9479	lt_prog_compiler_pic='-fpic'
9480	lt_prog_compiler_static='-Bstatic'
9481        ;;
9482      ccc*)
9483        lt_prog_compiler_wl='-Wl,'
9484        # All Alpha code is PIC.
9485        lt_prog_compiler_static='-non_shared'
9486        ;;
9487      xl* | bgxl* | bgf* | mpixl*)
9488	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9489	lt_prog_compiler_wl='-Wl,'
9490	lt_prog_compiler_pic='-qpic'
9491	lt_prog_compiler_static='-qstaticlink'
9492	;;
9493      *)
9494	case `$CC -V 2>&1 | sed 5q` in
9495	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9496	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9497	  lt_prog_compiler_pic='-KPIC'
9498	  lt_prog_compiler_static='-Bstatic'
9499	  lt_prog_compiler_wl=''
9500	  ;;
9501	*Sun\ F* | *Sun*Fortran*)
9502	  lt_prog_compiler_pic='-KPIC'
9503	  lt_prog_compiler_static='-Bstatic'
9504	  lt_prog_compiler_wl='-Qoption ld '
9505	  ;;
9506	*Sun\ C*)
9507	  # Sun C 5.9
9508	  lt_prog_compiler_pic='-KPIC'
9509	  lt_prog_compiler_static='-Bstatic'
9510	  lt_prog_compiler_wl='-Wl,'
9511	  ;;
9512        *Intel*\ [CF]*Compiler*)
9513	  lt_prog_compiler_wl='-Wl,'
9514	  lt_prog_compiler_pic='-fPIC'
9515	  lt_prog_compiler_static='-static'
9516	  ;;
9517	*Portland\ Group*)
9518	  lt_prog_compiler_wl='-Wl,'
9519	  lt_prog_compiler_pic='-fpic'
9520	  lt_prog_compiler_static='-Bstatic'
9521	  ;;
9522	esac
9523	;;
9524      esac
9525      ;;
9526
9527    newsos6)
9528      lt_prog_compiler_pic='-KPIC'
9529      lt_prog_compiler_static='-Bstatic'
9530      ;;
9531
9532    *nto* | *qnx*)
9533      # QNX uses GNU C++, but need to define -shared option too, otherwise
9534      # it will coredump.
9535      lt_prog_compiler_pic='-fPIC -shared'
9536      ;;
9537
9538    osf3* | osf4* | osf5*)
9539      lt_prog_compiler_wl='-Wl,'
9540      # All OSF/1 code is PIC.
9541      lt_prog_compiler_static='-non_shared'
9542      ;;
9543
9544    rdos*)
9545      lt_prog_compiler_static='-non_shared'
9546      ;;
9547
9548    solaris*)
9549      lt_prog_compiler_pic='-KPIC'
9550      lt_prog_compiler_static='-Bstatic'
9551      case $cc_basename in
9552      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9553	lt_prog_compiler_wl='-Qoption ld ';;
9554      *)
9555	lt_prog_compiler_wl='-Wl,';;
9556      esac
9557      ;;
9558
9559    sunos4*)
9560      lt_prog_compiler_wl='-Qoption ld '
9561      lt_prog_compiler_pic='-PIC'
9562      lt_prog_compiler_static='-Bstatic'
9563      ;;
9564
9565    sysv4 | sysv4.2uw2* | sysv4.3*)
9566      lt_prog_compiler_wl='-Wl,'
9567      lt_prog_compiler_pic='-KPIC'
9568      lt_prog_compiler_static='-Bstatic'
9569      ;;
9570
9571    sysv4*MP*)
9572      if test -d /usr/nec; then
9573	lt_prog_compiler_pic='-Kconform_pic'
9574	lt_prog_compiler_static='-Bstatic'
9575      fi
9576      ;;
9577
9578    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9579      lt_prog_compiler_wl='-Wl,'
9580      lt_prog_compiler_pic='-KPIC'
9581      lt_prog_compiler_static='-Bstatic'
9582      ;;
9583
9584    unicos*)
9585      lt_prog_compiler_wl='-Wl,'
9586      lt_prog_compiler_can_build_shared=no
9587      ;;
9588
9589    uts4*)
9590      lt_prog_compiler_pic='-pic'
9591      lt_prog_compiler_static='-Bstatic'
9592      ;;
9593
9594    *)
9595      lt_prog_compiler_can_build_shared=no
9596      ;;
9597    esac
9598  fi
9599
9600case $host_os in
9601  # For platforms that do not support PIC, -DPIC is meaningless:
9602  *djgpp*)
9603    lt_prog_compiler_pic=
9604    ;;
9605  *)
9606    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9607    ;;
9608esac
9609
9610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9611$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9612if ${lt_cv_prog_compiler_pic+:} false; then :
9613  $as_echo_n "(cached) " >&6
9614else
9615  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9616fi
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9618$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9619lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9620
9621#
9622# Check to make sure the PIC flag actually works.
9623#
9624if test -n "$lt_prog_compiler_pic"; then
9625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9626$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9627if ${lt_cv_prog_compiler_pic_works+:} false; then :
9628  $as_echo_n "(cached) " >&6
9629else
9630  lt_cv_prog_compiler_pic_works=no
9631   ac_outfile=conftest.$ac_objext
9632   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9633   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9634   # Insert the option either (1) after the last *FLAGS variable, or
9635   # (2) before a word containing "conftest.", or (3) at the end.
9636   # Note that $ac_compile itself does not contain backslashes and begins
9637   # with a dollar sign (not a hyphen), so the echo should work correctly.
9638   # The option is referenced via a variable to avoid confusing sed.
9639   lt_compile=`echo "$ac_compile" | $SED \
9640   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9641   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9642   -e 's:$: $lt_compiler_flag:'`
9643   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9644   (eval "$lt_compile" 2>conftest.err)
9645   ac_status=$?
9646   cat conftest.err >&5
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   if (exit $ac_status) && test -s "$ac_outfile"; then
9649     # The compiler can only warn and ignore the option if not recognized
9650     # So say no if there are warnings other than the usual output.
9651     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9652     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9653     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9654       lt_cv_prog_compiler_pic_works=yes
9655     fi
9656   fi
9657   $RM conftest*
9658
9659fi
9660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9661$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9662
9663if test yes = "$lt_cv_prog_compiler_pic_works"; then
9664    case $lt_prog_compiler_pic in
9665     "" | " "*) ;;
9666     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9667     esac
9668else
9669    lt_prog_compiler_pic=
9670     lt_prog_compiler_can_build_shared=no
9671fi
9672
9673fi
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685#
9686# Check to make sure the static flag actually works.
9687#
9688wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9690$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9691if ${lt_cv_prog_compiler_static_works+:} false; then :
9692  $as_echo_n "(cached) " >&6
9693else
9694  lt_cv_prog_compiler_static_works=no
9695   save_LDFLAGS=$LDFLAGS
9696   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9697   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9698   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9699     # The linker can only warn and ignore the option if not recognized
9700     # So say no if there are warnings
9701     if test -s conftest.err; then
9702       # Append any errors to the config.log.
9703       cat conftest.err 1>&5
9704       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9705       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9706       if diff conftest.exp conftest.er2 >/dev/null; then
9707         lt_cv_prog_compiler_static_works=yes
9708       fi
9709     else
9710       lt_cv_prog_compiler_static_works=yes
9711     fi
9712   fi
9713   $RM -r conftest*
9714   LDFLAGS=$save_LDFLAGS
9715
9716fi
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9718$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9719
9720if test yes = "$lt_cv_prog_compiler_static_works"; then
9721    :
9722else
9723    lt_prog_compiler_static=
9724fi
9725
9726
9727
9728
9729
9730
9731
9732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9733$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9734if ${lt_cv_prog_compiler_c_o+:} false; then :
9735  $as_echo_n "(cached) " >&6
9736else
9737  lt_cv_prog_compiler_c_o=no
9738   $RM -r conftest 2>/dev/null
9739   mkdir conftest
9740   cd conftest
9741   mkdir out
9742   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9743
9744   lt_compiler_flag="-o out/conftest2.$ac_objext"
9745   # Insert the option either (1) after the last *FLAGS variable, or
9746   # (2) before a word containing "conftest.", or (3) at the end.
9747   # Note that $ac_compile itself does not contain backslashes and begins
9748   # with a dollar sign (not a hyphen), so the echo should work correctly.
9749   lt_compile=`echo "$ac_compile" | $SED \
9750   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9751   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9752   -e 's:$: $lt_compiler_flag:'`
9753   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9754   (eval "$lt_compile" 2>out/conftest.err)
9755   ac_status=$?
9756   cat out/conftest.err >&5
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9759   then
9760     # The compiler can only warn and ignore the option if not recognized
9761     # So say no if there are warnings
9762     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9763     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9764     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9765       lt_cv_prog_compiler_c_o=yes
9766     fi
9767   fi
9768   chmod u+w . 2>&5
9769   $RM conftest*
9770   # SGI C++ compiler will create directory out/ii_files/ for
9771   # template instantiation
9772   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9773   $RM out/* && rmdir out
9774   cd ..
9775   $RM -r conftest
9776   $RM conftest*
9777
9778fi
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9780$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9781
9782
9783
9784
9785
9786
9787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9788$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9789if ${lt_cv_prog_compiler_c_o+:} false; then :
9790  $as_echo_n "(cached) " >&6
9791else
9792  lt_cv_prog_compiler_c_o=no
9793   $RM -r conftest 2>/dev/null
9794   mkdir conftest
9795   cd conftest
9796   mkdir out
9797   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9798
9799   lt_compiler_flag="-o out/conftest2.$ac_objext"
9800   # Insert the option either (1) after the last *FLAGS variable, or
9801   # (2) before a word containing "conftest.", or (3) at the end.
9802   # Note that $ac_compile itself does not contain backslashes and begins
9803   # with a dollar sign (not a hyphen), so the echo should work correctly.
9804   lt_compile=`echo "$ac_compile" | $SED \
9805   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9806   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9807   -e 's:$: $lt_compiler_flag:'`
9808   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9809   (eval "$lt_compile" 2>out/conftest.err)
9810   ac_status=$?
9811   cat out/conftest.err >&5
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9814   then
9815     # The compiler can only warn and ignore the option if not recognized
9816     # So say no if there are warnings
9817     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9818     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9819     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9820       lt_cv_prog_compiler_c_o=yes
9821     fi
9822   fi
9823   chmod u+w . 2>&5
9824   $RM conftest*
9825   # SGI C++ compiler will create directory out/ii_files/ for
9826   # template instantiation
9827   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9828   $RM out/* && rmdir out
9829   cd ..
9830   $RM -r conftest
9831   $RM conftest*
9832
9833fi
9834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9835$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9836
9837
9838
9839
9840hard_links=nottested
9841if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9842  # do not overwrite the value of need_locks provided by the user
9843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9844$as_echo_n "checking if we can lock with hard links... " >&6; }
9845  hard_links=yes
9846  $RM conftest*
9847  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9848  touch conftest.a
9849  ln conftest.a conftest.b 2>&5 || hard_links=no
9850  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9852$as_echo "$hard_links" >&6; }
9853  if test no = "$hard_links"; then
9854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9855$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9856    need_locks=warn
9857  fi
9858else
9859  need_locks=no
9860fi
9861
9862
9863
9864
9865
9866
9867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9868$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9869
9870  runpath_var=
9871  allow_undefined_flag=
9872  always_export_symbols=no
9873  archive_cmds=
9874  archive_expsym_cmds=
9875  compiler_needs_object=no
9876  enable_shared_with_static_runtimes=no
9877  export_dynamic_flag_spec=
9878  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9879  hardcode_automatic=no
9880  hardcode_direct=no
9881  hardcode_direct_absolute=no
9882  hardcode_libdir_flag_spec=
9883  hardcode_libdir_separator=
9884  hardcode_minus_L=no
9885  hardcode_shlibpath_var=unsupported
9886  inherit_rpath=no
9887  link_all_deplibs=unknown
9888  module_cmds=
9889  module_expsym_cmds=
9890  old_archive_from_new_cmds=
9891  old_archive_from_expsyms_cmds=
9892  thread_safe_flag_spec=
9893  whole_archive_flag_spec=
9894  # include_expsyms should be a list of space-separated symbols to be *always*
9895  # included in the symbol list
9896  include_expsyms=
9897  # exclude_expsyms can be an extended regexp of symbols to exclude
9898  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9899  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9900  # as well as any symbol that contains 'd'.
9901  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9902  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9903  # platforms (ab)use it in PIC code, but their linkers get confused if
9904  # the symbol is explicitly referenced.  Since portable code cannot
9905  # rely on this symbol name, it's probably fine to never include it in
9906  # preloaded symbol tables.
9907  # Exclude shared library initialization/finalization symbols.
9908  extract_expsyms_cmds=
9909
9910  case $host_os in
9911  cygwin* | mingw* | pw32* | cegcc*)
9912    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9913    # When not using gcc, we currently assume that we are using
9914    # Microsoft Visual C++.
9915    if test yes != "$GCC"; then
9916      with_gnu_ld=no
9917    fi
9918    ;;
9919  interix*)
9920    # we just hope/assume this is gcc and not c89 (= MSVC++)
9921    with_gnu_ld=yes
9922    ;;
9923  openbsd* | bitrig*)
9924    with_gnu_ld=no
9925    ;;
9926  esac
9927
9928  ld_shlibs=yes
9929
9930  # On some targets, GNU ld is compatible enough with the native linker
9931  # that we're better off using the native interface for both.
9932  lt_use_gnu_ld_interface=no
9933  if test yes = "$with_gnu_ld"; then
9934    case $host_os in
9935      aix*)
9936	# The AIX port of GNU ld has always aspired to compatibility
9937	# with the native linker.  However, as the warning in the GNU ld
9938	# block says, versions before 2.19.5* couldn't really create working
9939	# shared libraries, regardless of the interface used.
9940	case `$LD -v 2>&1` in
9941	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9942	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9943	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9944	  *)
9945	    lt_use_gnu_ld_interface=yes
9946	    ;;
9947	esac
9948	;;
9949      *)
9950	lt_use_gnu_ld_interface=yes
9951	;;
9952    esac
9953  fi
9954
9955  if test yes = "$lt_use_gnu_ld_interface"; then
9956    # If archive_cmds runs LD, not CC, wlarc should be empty
9957    wlarc='$wl'
9958
9959    # Set some defaults for GNU ld with shared library support. These
9960    # are reset later if shared libraries are not supported. Putting them
9961    # here allows them to be overridden if necessary.
9962    runpath_var=LD_RUN_PATH
9963    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9964    export_dynamic_flag_spec='$wl--export-dynamic'
9965    # ancient GNU ld didn't support --whole-archive et. al.
9966    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9967      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9968    else
9969      whole_archive_flag_spec=
9970    fi
9971    supports_anon_versioning=no
9972    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9973      *GNU\ gold*) supports_anon_versioning=yes ;;
9974      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9975      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9976      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9977      *\ 2.11.*) ;; # other 2.11 versions
9978      *) supports_anon_versioning=yes ;;
9979    esac
9980
9981    # See if GNU ld supports shared libraries.
9982    case $host_os in
9983    aix[3-9]*)
9984      # On AIX/PPC, the GNU linker is very broken
9985      if test ia64 != "$host_cpu"; then
9986	ld_shlibs=no
9987	cat <<_LT_EOF 1>&2
9988
9989*** Warning: the GNU linker, at least up to release 2.19, is reported
9990*** to be unable to reliably create shared libraries on AIX.
9991*** Therefore, libtool is disabling shared libraries support.  If you
9992*** really care for shared libraries, you may want to install binutils
9993*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9994*** You will then need to restart the configuration process.
9995
9996_LT_EOF
9997      fi
9998      ;;
9999
10000    amigaos*)
10001      case $host_cpu in
10002      powerpc)
10003            # see comment about AmigaOS4 .so support
10004            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10005            archive_expsym_cmds=''
10006        ;;
10007      m68k)
10008            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)'
10009            hardcode_libdir_flag_spec='-L$libdir'
10010            hardcode_minus_L=yes
10011        ;;
10012      esac
10013      ;;
10014
10015    beos*)
10016      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10017	allow_undefined_flag=unsupported
10018	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10019	# support --undefined.  This deserves some investigation.  FIXME
10020	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10021      else
10022	ld_shlibs=no
10023      fi
10024      ;;
10025
10026    cygwin* | mingw* | pw32* | cegcc*)
10027      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10028      # as there is no search path for DLLs.
10029      hardcode_libdir_flag_spec='-L$libdir'
10030      export_dynamic_flag_spec='$wl--export-all-symbols'
10031      allow_undefined_flag=unsupported
10032      always_export_symbols=no
10033      enable_shared_with_static_runtimes=yes
10034      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'
10035      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10036
10037      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10038        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10039	# If the export-symbols file already is a .def file, use it as
10040	# is; otherwise, prepend EXPORTS...
10041	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10042          cp $export_symbols $output_objdir/$soname.def;
10043        else
10044          echo EXPORTS > $output_objdir/$soname.def;
10045          cat $export_symbols >> $output_objdir/$soname.def;
10046        fi~
10047        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10048      else
10049	ld_shlibs=no
10050      fi
10051      ;;
10052
10053    haiku*)
10054      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10055      link_all_deplibs=yes
10056      ;;
10057
10058    os2*)
10059      hardcode_libdir_flag_spec='-L$libdir'
10060      hardcode_minus_L=yes
10061      allow_undefined_flag=unsupported
10062      shrext_cmds=.dll
10063      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10064	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10065	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10066	$ECHO EXPORTS >> $output_objdir/$libname.def~
10067	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10068	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10069	emximp -o $lib $output_objdir/$libname.def'
10070      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10071	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10072	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10073	$ECHO EXPORTS >> $output_objdir/$libname.def~
10074	prefix_cmds="$SED"~
10075	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10076	  prefix_cmds="$prefix_cmds -e 1d";
10077	fi~
10078	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10079	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10080	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10081	emximp -o $lib $output_objdir/$libname.def'
10082      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10083      enable_shared_with_static_runtimes=yes
10084      ;;
10085
10086    interix[3-9]*)
10087      hardcode_direct=no
10088      hardcode_shlibpath_var=no
10089      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10090      export_dynamic_flag_spec='$wl-E'
10091      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10092      # Instead, shared libraries are loaded at an image base (0x10000000 by
10093      # default) and relocated if they conflict, which is a slow very memory
10094      # consuming and fragmenting process.  To avoid this, we pick a random,
10095      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10096      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10097      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10098      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'
10099      ;;
10100
10101    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10102      tmp_diet=no
10103      if test linux-dietlibc = "$host_os"; then
10104	case $cc_basename in
10105	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10106	esac
10107      fi
10108      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10109	 && test no = "$tmp_diet"
10110      then
10111	tmp_addflag=' $pic_flag'
10112	tmp_sharedflag='-shared'
10113	case $cc_basename,$host_cpu in
10114        pgcc*)				# Portland Group C compiler
10115	  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'
10116	  tmp_addflag=' $pic_flag'
10117	  ;;
10118	pgf77* | pgf90* | pgf95* | pgfortran*)
10119					# Portland Group f77 and f90 compilers
10120	  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'
10121	  tmp_addflag=' $pic_flag -Mnomain' ;;
10122	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10123	  tmp_addflag=' -i_dynamic' ;;
10124	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10125	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10126	ifc* | ifort*)			# Intel Fortran compiler
10127	  tmp_addflag=' -nofor_main' ;;
10128	lf95*)				# Lahey Fortran 8.1
10129	  whole_archive_flag_spec=
10130	  tmp_sharedflag='--shared' ;;
10131        nagfor*)                        # NAGFOR 5.3
10132          tmp_sharedflag='-Wl,-shared' ;;
10133	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10134	  tmp_sharedflag='-qmkshrobj'
10135	  tmp_addflag= ;;
10136	nvcc*)	# Cuda Compiler Driver 2.2
10137	  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'
10138	  compiler_needs_object=yes
10139	  ;;
10140	esac
10141	case `$CC -V 2>&1 | sed 5q` in
10142	*Sun\ C*)			# Sun C 5.9
10143	  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'
10144	  compiler_needs_object=yes
10145	  tmp_sharedflag='-G' ;;
10146	*Sun\ F*)			# Sun Fortran 8.3
10147	  tmp_sharedflag='-G' ;;
10148	esac
10149	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10150
10151        if test yes = "$supports_anon_versioning"; then
10152          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10153            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10154            echo "local: *; };" >> $output_objdir/$libname.ver~
10155            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10156        fi
10157
10158	case $cc_basename in
10159	tcc*)
10160	  export_dynamic_flag_spec='-rdynamic'
10161	  ;;
10162	xlf* | bgf* | bgxlf* | mpixlf*)
10163	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10164	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10165	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10166	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10167	  if test yes = "$supports_anon_versioning"; then
10168	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10169              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10170              echo "local: *; };" >> $output_objdir/$libname.ver~
10171              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10172	  fi
10173	  ;;
10174	esac
10175      else
10176        ld_shlibs=no
10177      fi
10178      ;;
10179
10180    netbsd*)
10181      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10182	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10183	wlarc=
10184      else
10185	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10186	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10187      fi
10188      ;;
10189
10190    solaris*)
10191      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10192	ld_shlibs=no
10193	cat <<_LT_EOF 1>&2
10194
10195*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10196*** create shared libraries on Solaris systems.  Therefore, libtool
10197*** is disabling shared libraries support.  We urge you to upgrade GNU
10198*** binutils to release 2.9.1 or newer.  Another option is to modify
10199*** your PATH or compiler configuration so that the native linker is
10200*** used, and then restart.
10201
10202_LT_EOF
10203      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10204	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10205	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10206      else
10207	ld_shlibs=no
10208      fi
10209      ;;
10210
10211    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10212      case `$LD -v 2>&1` in
10213        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10214	ld_shlibs=no
10215	cat <<_LT_EOF 1>&2
10216
10217*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10218*** reliably create shared libraries on SCO systems.  Therefore, libtool
10219*** is disabling shared libraries support.  We urge you to upgrade GNU
10220*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10221*** your PATH or compiler configuration so that the native linker is
10222*** used, and then restart.
10223
10224_LT_EOF
10225	;;
10226	*)
10227	  # For security reasons, it is highly recommended that you always
10228	  # use absolute paths for naming shared libraries, and exclude the
10229	  # DT_RUNPATH tag from executables and libraries.  But doing so
10230	  # requires that you compile everything twice, which is a pain.
10231	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10232	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10233	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10234	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10235	  else
10236	    ld_shlibs=no
10237	  fi
10238	;;
10239      esac
10240      ;;
10241
10242    sunos4*)
10243      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10244      wlarc=
10245      hardcode_direct=yes
10246      hardcode_shlibpath_var=no
10247      ;;
10248
10249    *)
10250      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10251	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10252	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10253      else
10254	ld_shlibs=no
10255      fi
10256      ;;
10257    esac
10258
10259    if test no = "$ld_shlibs"; then
10260      runpath_var=
10261      hardcode_libdir_flag_spec=
10262      export_dynamic_flag_spec=
10263      whole_archive_flag_spec=
10264    fi
10265  else
10266    # PORTME fill in a description of your system's linker (not GNU ld)
10267    case $host_os in
10268    aix3*)
10269      allow_undefined_flag=unsupported
10270      always_export_symbols=yes
10271      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'
10272      # Note: this linker hardcodes the directories in LIBPATH if there
10273      # are no directories specified by -L.
10274      hardcode_minus_L=yes
10275      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10276	# Neither direct hardcoding nor static linking is supported with a
10277	# broken collect2.
10278	hardcode_direct=unsupported
10279      fi
10280      ;;
10281
10282    aix[4-9]*)
10283      if test ia64 = "$host_cpu"; then
10284	# On IA64, the linker does run time linking by default, so we don't
10285	# have to do anything special.
10286	aix_use_runtimelinking=no
10287	exp_sym_flag='-Bexport'
10288	no_entry_flag=
10289      else
10290	# If we're using GNU nm, then we don't want the "-C" option.
10291	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10292	# Without the "-l" option, or with the "-B" option, AIX nm treats
10293	# weak defined symbols like other global defined symbols, whereas
10294	# GNU nm marks them as "W".
10295	# While the 'weak' keyword is ignored in the Export File, we need
10296	# it in the Import File for the 'aix-soname' feature, so we have
10297	# to replace the "-B" option with "-P" for AIX nm.
10298	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10299	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10300	else
10301	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10302	fi
10303	aix_use_runtimelinking=no
10304
10305	# Test if we are trying to use run time linking or normal
10306	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10307	# have runtime linking enabled, and use it for executables.
10308	# For shared libraries, we enable/disable runtime linking
10309	# depending on the kind of the shared library created -
10310	# when "with_aix_soname,aix_use_runtimelinking" is:
10311	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10312	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10313	#            lib.a           static archive
10314	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10315	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10316	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10317	#            lib.a(lib.so.V) shared, rtl:no
10318	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10319	#            lib.a           static archive
10320	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10321	  for ld_flag in $LDFLAGS; do
10322	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10323	    aix_use_runtimelinking=yes
10324	    break
10325	  fi
10326	  done
10327	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10328	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10329	    # so we don't have lib.a shared libs to link our executables.
10330	    # We have to force runtime linking in this case.
10331	    aix_use_runtimelinking=yes
10332	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10333	  fi
10334	  ;;
10335	esac
10336
10337	exp_sym_flag='-bexport'
10338	no_entry_flag='-bnoentry'
10339      fi
10340
10341      # When large executables or shared objects are built, AIX ld can
10342      # have problems creating the table of contents.  If linking a library
10343      # or program results in "error TOC overflow" add -mminimal-toc to
10344      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10345      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10346
10347      archive_cmds=''
10348      hardcode_direct=yes
10349      hardcode_direct_absolute=yes
10350      hardcode_libdir_separator=':'
10351      link_all_deplibs=yes
10352      file_list_spec='$wl-f,'
10353      case $with_aix_soname,$aix_use_runtimelinking in
10354      aix,*) ;; # traditional, no import file
10355      svr4,* | *,yes) # use import file
10356	# The Import File defines what to hardcode.
10357	hardcode_direct=no
10358	hardcode_direct_absolute=no
10359	;;
10360      esac
10361
10362      if test yes = "$GCC"; then
10363	case $host_os in aix4.[012]|aix4.[012].*)
10364	# We only want to do this on AIX 4.2 and lower, the check
10365	# below for broken collect2 doesn't work under 4.3+
10366	  collect2name=`$CC -print-prog-name=collect2`
10367	  if test -f "$collect2name" &&
10368	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10369	  then
10370	  # We have reworked collect2
10371	  :
10372	  else
10373	  # We have old collect2
10374	  hardcode_direct=unsupported
10375	  # It fails to find uninstalled libraries when the uninstalled
10376	  # path is not listed in the libpath.  Setting hardcode_minus_L
10377	  # to unsupported forces relinking
10378	  hardcode_minus_L=yes
10379	  hardcode_libdir_flag_spec='-L$libdir'
10380	  hardcode_libdir_separator=
10381	  fi
10382	  ;;
10383	esac
10384	shared_flag='-shared'
10385	if test yes = "$aix_use_runtimelinking"; then
10386	  shared_flag="$shared_flag "'$wl-G'
10387	fi
10388	# Need to ensure runtime linking is disabled for the traditional
10389	# shared library, or the linker may eventually find shared libraries
10390	# /with/ Import File - we do not want to mix them.
10391	shared_flag_aix='-shared'
10392	shared_flag_svr4='-shared $wl-G'
10393      else
10394	# not using gcc
10395	if test ia64 = "$host_cpu"; then
10396	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10397	# chokes on -Wl,-G. The following line is correct:
10398	  shared_flag='-G'
10399	else
10400	  if test yes = "$aix_use_runtimelinking"; then
10401	    shared_flag='$wl-G'
10402	  else
10403	    shared_flag='$wl-bM:SRE'
10404	  fi
10405	  shared_flag_aix='$wl-bM:SRE'
10406	  shared_flag_svr4='$wl-G'
10407	fi
10408      fi
10409
10410      export_dynamic_flag_spec='$wl-bexpall'
10411      # It seems that -bexpall does not export symbols beginning with
10412      # underscore (_), so it is better to generate a list of symbols to export.
10413      always_export_symbols=yes
10414      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10415	# Warning - without using the other runtime loading flags (-brtl),
10416	# -berok will link without error, but may produce a broken library.
10417	allow_undefined_flag='-berok'
10418        # Determine the default libpath from the value encoded in an
10419        # empty executable.
10420        if test set = "${lt_cv_aix_libpath+set}"; then
10421  aix_libpath=$lt_cv_aix_libpath
10422else
10423  if ${lt_cv_aix_libpath_+:} false; then :
10424  $as_echo_n "(cached) " >&6
10425else
10426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427/* end confdefs.h.  */
10428
10429int
10430main ()
10431{
10432
10433  ;
10434  return 0;
10435}
10436_ACEOF
10437if ac_fn_c_try_link "$LINENO"; then :
10438
10439  lt_aix_libpath_sed='
10440      /Import File Strings/,/^$/ {
10441	  /^0/ {
10442	      s/^0  *\([^ ]*\) *$/\1/
10443	      p
10444	  }
10445      }'
10446  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10447  # Check for a 64-bit object if we didn't find anything.
10448  if test -z "$lt_cv_aix_libpath_"; then
10449    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10450  fi
10451fi
10452rm -f core conftest.err conftest.$ac_objext \
10453    conftest$ac_exeext conftest.$ac_ext
10454  if test -z "$lt_cv_aix_libpath_"; then
10455    lt_cv_aix_libpath_=/usr/lib:/lib
10456  fi
10457
10458fi
10459
10460  aix_libpath=$lt_cv_aix_libpath_
10461fi
10462
10463        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10464        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10465      else
10466	if test ia64 = "$host_cpu"; then
10467	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10468	  allow_undefined_flag="-z nodefs"
10469	  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"
10470	else
10471	 # Determine the default libpath from the value encoded in an
10472	 # empty executable.
10473	 if test set = "${lt_cv_aix_libpath+set}"; then
10474  aix_libpath=$lt_cv_aix_libpath
10475else
10476  if ${lt_cv_aix_libpath_+:} false; then :
10477  $as_echo_n "(cached) " >&6
10478else
10479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h.  */
10481
10482int
10483main ()
10484{
10485
10486  ;
10487  return 0;
10488}
10489_ACEOF
10490if ac_fn_c_try_link "$LINENO"; then :
10491
10492  lt_aix_libpath_sed='
10493      /Import File Strings/,/^$/ {
10494	  /^0/ {
10495	      s/^0  *\([^ ]*\) *$/\1/
10496	      p
10497	  }
10498      }'
10499  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10500  # Check for a 64-bit object if we didn't find anything.
10501  if test -z "$lt_cv_aix_libpath_"; then
10502    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10503  fi
10504fi
10505rm -f core conftest.err conftest.$ac_objext \
10506    conftest$ac_exeext conftest.$ac_ext
10507  if test -z "$lt_cv_aix_libpath_"; then
10508    lt_cv_aix_libpath_=/usr/lib:/lib
10509  fi
10510
10511fi
10512
10513  aix_libpath=$lt_cv_aix_libpath_
10514fi
10515
10516	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10517	  # Warning - without using the other run time loading flags,
10518	  # -berok will link without error, but may produce a broken library.
10519	  no_undefined_flag=' $wl-bernotok'
10520	  allow_undefined_flag=' $wl-berok'
10521	  if test yes = "$with_gnu_ld"; then
10522	    # We only use this code for GNU lds that support --whole-archive.
10523	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10524	  else
10525	    # Exported symbols can be pulled into shared objects from archives
10526	    whole_archive_flag_spec='$convenience'
10527	  fi
10528	  archive_cmds_need_lc=yes
10529	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10530	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10531	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10532	  if test svr4 != "$with_aix_soname"; then
10533	    # This is similar to how AIX traditionally builds its shared libraries.
10534	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10535	  fi
10536	  if test aix != "$with_aix_soname"; then
10537	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10538	  else
10539	    # used by -dlpreopen to get the symbols
10540	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10541	  fi
10542	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10543	fi
10544      fi
10545      ;;
10546
10547    amigaos*)
10548      case $host_cpu in
10549      powerpc)
10550            # see comment about AmigaOS4 .so support
10551            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10552            archive_expsym_cmds=''
10553        ;;
10554      m68k)
10555            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)'
10556            hardcode_libdir_flag_spec='-L$libdir'
10557            hardcode_minus_L=yes
10558        ;;
10559      esac
10560      ;;
10561
10562    bsdi[45]*)
10563      export_dynamic_flag_spec=-rdynamic
10564      ;;
10565
10566    cygwin* | mingw* | pw32* | cegcc*)
10567      # When not using gcc, we currently assume that we are using
10568      # Microsoft Visual C++.
10569      # hardcode_libdir_flag_spec is actually meaningless, as there is
10570      # no search path for DLLs.
10571      case $cc_basename in
10572      cl*)
10573	# Native MSVC
10574	hardcode_libdir_flag_spec=' '
10575	allow_undefined_flag=unsupported
10576	always_export_symbols=yes
10577	file_list_spec='@'
10578	# Tell ltmain to make .lib files, not .a files.
10579	libext=lib
10580	# Tell ltmain to make .dll files, not .so files.
10581	shrext_cmds=.dll
10582	# FIXME: Setting linknames here is a bad hack.
10583	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10584	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10585            cp "$export_symbols" "$output_objdir/$soname.def";
10586            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10587          else
10588            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10589          fi~
10590          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10591          linknames='
10592	# The linker will not automatically build a static lib if we build a DLL.
10593	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10594	enable_shared_with_static_runtimes=yes
10595	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10596	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10597	# Don't use ranlib
10598	old_postinstall_cmds='chmod 644 $oldlib'
10599	postlink_cmds='lt_outputfile="@OUTPUT@"~
10600          lt_tool_outputfile="@TOOL_OUTPUT@"~
10601          case $lt_outputfile in
10602            *.exe|*.EXE) ;;
10603            *)
10604              lt_outputfile=$lt_outputfile.exe
10605              lt_tool_outputfile=$lt_tool_outputfile.exe
10606              ;;
10607          esac~
10608          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10609            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10610            $RM "$lt_outputfile.manifest";
10611          fi'
10612	;;
10613      *)
10614	# Assume MSVC wrapper
10615	hardcode_libdir_flag_spec=' '
10616	allow_undefined_flag=unsupported
10617	# Tell ltmain to make .lib files, not .a files.
10618	libext=lib
10619	# Tell ltmain to make .dll files, not .so files.
10620	shrext_cmds=.dll
10621	# FIXME: Setting linknames here is a bad hack.
10622	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10623	# The linker will automatically build a .lib file if we build a DLL.
10624	old_archive_from_new_cmds='true'
10625	# FIXME: Should let the user specify the lib program.
10626	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10627	enable_shared_with_static_runtimes=yes
10628	;;
10629      esac
10630      ;;
10631
10632    darwin* | rhapsody*)
10633
10634
10635  archive_cmds_need_lc=no
10636  hardcode_direct=no
10637  hardcode_automatic=yes
10638  hardcode_shlibpath_var=unsupported
10639  if test yes = "$lt_cv_ld_force_load"; then
10640    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\"`'
10641
10642  else
10643    whole_archive_flag_spec=''
10644  fi
10645  link_all_deplibs=yes
10646  allow_undefined_flag=$_lt_dar_allow_undefined
10647  case $cc_basename in
10648     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10649     *) _lt_dar_can_shared=$GCC ;;
10650  esac
10651  if test yes = "$_lt_dar_can_shared"; then
10652    output_verbose_link_cmd=func_echo_all
10653    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10654    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10655    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"
10656    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"
10657
10658  else
10659  ld_shlibs=no
10660  fi
10661
10662      ;;
10663
10664    dgux*)
10665      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666      hardcode_libdir_flag_spec='-L$libdir'
10667      hardcode_shlibpath_var=no
10668      ;;
10669
10670    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10671    # support.  Future versions do this automatically, but an explicit c++rt0.o
10672    # does not break anything, and helps significantly (at the cost of a little
10673    # extra space).
10674    freebsd2.2*)
10675      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10676      hardcode_libdir_flag_spec='-R$libdir'
10677      hardcode_direct=yes
10678      hardcode_shlibpath_var=no
10679      ;;
10680
10681    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10682    freebsd2.*)
10683      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10684      hardcode_direct=yes
10685      hardcode_minus_L=yes
10686      hardcode_shlibpath_var=no
10687      ;;
10688
10689    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10690    freebsd* | dragonfly*)
10691      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10692      hardcode_libdir_flag_spec='-R$libdir'
10693      hardcode_direct=yes
10694      hardcode_shlibpath_var=no
10695      ;;
10696
10697    hpux9*)
10698      if test yes = "$GCC"; then
10699	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10700      else
10701	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10702      fi
10703      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10704      hardcode_libdir_separator=:
10705      hardcode_direct=yes
10706
10707      # hardcode_minus_L: Not really in the search PATH,
10708      # but as the default location of the library.
10709      hardcode_minus_L=yes
10710      export_dynamic_flag_spec='$wl-E'
10711      ;;
10712
10713    hpux10*)
10714      if test yes,no = "$GCC,$with_gnu_ld"; then
10715	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10716      else
10717	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10718      fi
10719      if test no = "$with_gnu_ld"; then
10720	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10721	hardcode_libdir_separator=:
10722	hardcode_direct=yes
10723	hardcode_direct_absolute=yes
10724	export_dynamic_flag_spec='$wl-E'
10725	# hardcode_minus_L: Not really in the search PATH,
10726	# but as the default location of the library.
10727	hardcode_minus_L=yes
10728      fi
10729      ;;
10730
10731    hpux11*)
10732      if test yes,no = "$GCC,$with_gnu_ld"; then
10733	case $host_cpu in
10734	hppa*64*)
10735	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10736	  ;;
10737	ia64*)
10738	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10739	  ;;
10740	*)
10741	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10742	  ;;
10743	esac
10744      else
10745	case $host_cpu in
10746	hppa*64*)
10747	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10748	  ;;
10749	ia64*)
10750	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10751	  ;;
10752	*)
10753
10754	  # Older versions of the 11.00 compiler do not understand -b yet
10755	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10756	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10757$as_echo_n "checking if $CC understands -b... " >&6; }
10758if ${lt_cv_prog_compiler__b+:} false; then :
10759  $as_echo_n "(cached) " >&6
10760else
10761  lt_cv_prog_compiler__b=no
10762   save_LDFLAGS=$LDFLAGS
10763   LDFLAGS="$LDFLAGS -b"
10764   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10765   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10766     # The linker can only warn and ignore the option if not recognized
10767     # So say no if there are warnings
10768     if test -s conftest.err; then
10769       # Append any errors to the config.log.
10770       cat conftest.err 1>&5
10771       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10772       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10773       if diff conftest.exp conftest.er2 >/dev/null; then
10774         lt_cv_prog_compiler__b=yes
10775       fi
10776     else
10777       lt_cv_prog_compiler__b=yes
10778     fi
10779   fi
10780   $RM -r conftest*
10781   LDFLAGS=$save_LDFLAGS
10782
10783fi
10784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10785$as_echo "$lt_cv_prog_compiler__b" >&6; }
10786
10787if test yes = "$lt_cv_prog_compiler__b"; then
10788    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10789else
10790    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10791fi
10792
10793	  ;;
10794	esac
10795      fi
10796      if test no = "$with_gnu_ld"; then
10797	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10798	hardcode_libdir_separator=:
10799
10800	case $host_cpu in
10801	hppa*64*|ia64*)
10802	  hardcode_direct=no
10803	  hardcode_shlibpath_var=no
10804	  ;;
10805	*)
10806	  hardcode_direct=yes
10807	  hardcode_direct_absolute=yes
10808	  export_dynamic_flag_spec='$wl-E'
10809
10810	  # hardcode_minus_L: Not really in the search PATH,
10811	  # but as the default location of the library.
10812	  hardcode_minus_L=yes
10813	  ;;
10814	esac
10815      fi
10816      ;;
10817
10818    irix5* | irix6* | nonstopux*)
10819      if test yes = "$GCC"; then
10820	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'
10821	# Try to use the -exported_symbol ld option, if it does not
10822	# work, assume that -exports_file does not work either and
10823	# implicitly export all symbols.
10824	# This should be the same for all languages, so no per-tag cache variable.
10825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10826$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10827if ${lt_cv_irix_exported_symbol+:} false; then :
10828  $as_echo_n "(cached) " >&6
10829else
10830  save_LDFLAGS=$LDFLAGS
10831	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10832	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833/* end confdefs.h.  */
10834int foo (void) { return 0; }
10835_ACEOF
10836if ac_fn_c_try_link "$LINENO"; then :
10837  lt_cv_irix_exported_symbol=yes
10838else
10839  lt_cv_irix_exported_symbol=no
10840fi
10841rm -f core conftest.err conftest.$ac_objext \
10842    conftest$ac_exeext conftest.$ac_ext
10843           LDFLAGS=$save_LDFLAGS
10844fi
10845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10846$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10847	if test yes = "$lt_cv_irix_exported_symbol"; then
10848          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'
10849	fi
10850      else
10851	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'
10852	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'
10853      fi
10854      archive_cmds_need_lc='no'
10855      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10856      hardcode_libdir_separator=:
10857      inherit_rpath=yes
10858      link_all_deplibs=yes
10859      ;;
10860
10861    linux*)
10862      case $cc_basename in
10863      tcc*)
10864	# Fabrice Bellard et al's Tiny C Compiler
10865	ld_shlibs=yes
10866	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10867	;;
10868      esac
10869      ;;
10870
10871    netbsd*)
10872      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10873	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10874      else
10875	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10876      fi
10877      hardcode_libdir_flag_spec='-R$libdir'
10878      hardcode_direct=yes
10879      hardcode_shlibpath_var=no
10880      ;;
10881
10882    newsos6)
10883      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10884      hardcode_direct=yes
10885      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10886      hardcode_libdir_separator=:
10887      hardcode_shlibpath_var=no
10888      ;;
10889
10890    *nto* | *qnx*)
10891      ;;
10892
10893    openbsd* | bitrig*)
10894      if test -f /usr/libexec/ld.so; then
10895	hardcode_direct=yes
10896	hardcode_shlibpath_var=no
10897	hardcode_direct_absolute=yes
10898	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10899	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10900	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10901	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10902	  export_dynamic_flag_spec='$wl-E'
10903	else
10904	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10905	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10906	fi
10907      else
10908	ld_shlibs=no
10909      fi
10910      ;;
10911
10912    os2*)
10913      hardcode_libdir_flag_spec='-L$libdir'
10914      hardcode_minus_L=yes
10915      allow_undefined_flag=unsupported
10916      shrext_cmds=.dll
10917      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10918	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10919	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10920	$ECHO EXPORTS >> $output_objdir/$libname.def~
10921	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10922	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10923	emximp -o $lib $output_objdir/$libname.def'
10924      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10925	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10926	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10927	$ECHO EXPORTS >> $output_objdir/$libname.def~
10928	prefix_cmds="$SED"~
10929	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10930	  prefix_cmds="$prefix_cmds -e 1d";
10931	fi~
10932	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10933	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10934	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10935	emximp -o $lib $output_objdir/$libname.def'
10936      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10937      enable_shared_with_static_runtimes=yes
10938      ;;
10939
10940    osf3*)
10941      if test yes = "$GCC"; then
10942	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10943	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'
10944      else
10945	allow_undefined_flag=' -expect_unresolved \*'
10946	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'
10947      fi
10948      archive_cmds_need_lc='no'
10949      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10950      hardcode_libdir_separator=:
10951      ;;
10952
10953    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10954      if test yes = "$GCC"; then
10955	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10956	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'
10957	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10958      else
10959	allow_undefined_flag=' -expect_unresolved \*'
10960	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'
10961	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~
10962          $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'
10963
10964	# Both c and cxx compiler support -rpath directly
10965	hardcode_libdir_flag_spec='-rpath $libdir'
10966      fi
10967      archive_cmds_need_lc='no'
10968      hardcode_libdir_separator=:
10969      ;;
10970
10971    solaris*)
10972      no_undefined_flag=' -z defs'
10973      if test yes = "$GCC"; then
10974	wlarc='$wl'
10975	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10976	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10977          $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'
10978      else
10979	case `$CC -V 2>&1` in
10980	*"Compilers 5.0"*)
10981	  wlarc=''
10982	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10983	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10984            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10985	  ;;
10986	*)
10987	  wlarc='$wl'
10988	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10989	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10990            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10991	  ;;
10992	esac
10993      fi
10994      hardcode_libdir_flag_spec='-R$libdir'
10995      hardcode_shlibpath_var=no
10996      case $host_os in
10997      solaris2.[0-5] | solaris2.[0-5].*) ;;
10998      *)
10999	# The compiler driver will combine and reorder linker options,
11000	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11001	# but is careful enough not to reorder.
11002	# Supported since Solaris 2.6 (maybe 2.5.1?)
11003	if test yes = "$GCC"; then
11004	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11005	else
11006	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11007	fi
11008	;;
11009      esac
11010      link_all_deplibs=yes
11011      ;;
11012
11013    sunos4*)
11014      if test sequent = "$host_vendor"; then
11015	# Use $CC to link under sequent, because it throws in some extra .o
11016	# files that make .init and .fini sections work.
11017	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11018      else
11019	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11020      fi
11021      hardcode_libdir_flag_spec='-L$libdir'
11022      hardcode_direct=yes
11023      hardcode_minus_L=yes
11024      hardcode_shlibpath_var=no
11025      ;;
11026
11027    sysv4)
11028      case $host_vendor in
11029	sni)
11030	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11031	  hardcode_direct=yes # is this really true???
11032	;;
11033	siemens)
11034	  ## LD is ld it makes a PLAMLIB
11035	  ## CC just makes a GrossModule.
11036	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11037	  reload_cmds='$CC -r -o $output$reload_objs'
11038	  hardcode_direct=no
11039        ;;
11040	motorola)
11041	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11042	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11043	;;
11044      esac
11045      runpath_var='LD_RUN_PATH'
11046      hardcode_shlibpath_var=no
11047      ;;
11048
11049    sysv4.3*)
11050      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11051      hardcode_shlibpath_var=no
11052      export_dynamic_flag_spec='-Bexport'
11053      ;;
11054
11055    sysv4*MP*)
11056      if test -d /usr/nec; then
11057	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11058	hardcode_shlibpath_var=no
11059	runpath_var=LD_RUN_PATH
11060	hardcode_runpath_var=yes
11061	ld_shlibs=yes
11062      fi
11063      ;;
11064
11065    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11066      no_undefined_flag='$wl-z,text'
11067      archive_cmds_need_lc=no
11068      hardcode_shlibpath_var=no
11069      runpath_var='LD_RUN_PATH'
11070
11071      if test yes = "$GCC"; then
11072	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11073	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11074      else
11075	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11076	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11077      fi
11078      ;;
11079
11080    sysv5* | sco3.2v5* | sco5v6*)
11081      # Note: We CANNOT use -z defs as we might desire, because we do not
11082      # link with -lc, and that would cause any symbols used from libc to
11083      # always be unresolved, which means just about no library would
11084      # ever link correctly.  If we're not using GNU ld we use -z text
11085      # though, which does catch some bad symbols but isn't as heavy-handed
11086      # as -z defs.
11087      no_undefined_flag='$wl-z,text'
11088      allow_undefined_flag='$wl-z,nodefs'
11089      archive_cmds_need_lc=no
11090      hardcode_shlibpath_var=no
11091      hardcode_libdir_flag_spec='$wl-R,$libdir'
11092      hardcode_libdir_separator=':'
11093      link_all_deplibs=yes
11094      export_dynamic_flag_spec='$wl-Bexport'
11095      runpath_var='LD_RUN_PATH'
11096
11097      if test yes = "$GCC"; then
11098	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11099	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11100      else
11101	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11102	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11103      fi
11104      ;;
11105
11106    uts4*)
11107      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11108      hardcode_libdir_flag_spec='-L$libdir'
11109      hardcode_shlibpath_var=no
11110      ;;
11111
11112    *)
11113      ld_shlibs=no
11114      ;;
11115    esac
11116
11117    if test sni = "$host_vendor"; then
11118      case $host in
11119      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11120	export_dynamic_flag_spec='$wl-Blargedynsym'
11121	;;
11122      esac
11123    fi
11124  fi
11125
11126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11127$as_echo "$ld_shlibs" >&6; }
11128test no = "$ld_shlibs" && can_build_shared=no
11129
11130with_gnu_ld=$with_gnu_ld
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146#
11147# Do we need to explicitly link libc?
11148#
11149case "x$archive_cmds_need_lc" in
11150x|xyes)
11151  # Assume -lc should be added
11152  archive_cmds_need_lc=yes
11153
11154  if test yes,yes = "$GCC,$enable_shared"; then
11155    case $archive_cmds in
11156    *'~'*)
11157      # FIXME: we may have to deal with multi-command sequences.
11158      ;;
11159    '$CC '*)
11160      # Test whether the compiler implicitly links with -lc since on some
11161      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11162      # to ld, don't add -lc before -lgcc.
11163      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11164$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11165if ${lt_cv_archive_cmds_need_lc+:} false; then :
11166  $as_echo_n "(cached) " >&6
11167else
11168  $RM conftest*
11169	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11170
11171	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11172  (eval $ac_compile) 2>&5
11173  ac_status=$?
11174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11175  test $ac_status = 0; } 2>conftest.err; then
11176	  soname=conftest
11177	  lib=conftest
11178	  libobjs=conftest.$ac_objext
11179	  deplibs=
11180	  wl=$lt_prog_compiler_wl
11181	  pic_flag=$lt_prog_compiler_pic
11182	  compiler_flags=-v
11183	  linker_flags=-v
11184	  verstring=
11185	  output_objdir=.
11186	  libname=conftest
11187	  lt_save_allow_undefined_flag=$allow_undefined_flag
11188	  allow_undefined_flag=
11189	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11190  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11191  ac_status=$?
11192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11193  test $ac_status = 0; }
11194	  then
11195	    lt_cv_archive_cmds_need_lc=no
11196	  else
11197	    lt_cv_archive_cmds_need_lc=yes
11198	  fi
11199	  allow_undefined_flag=$lt_save_allow_undefined_flag
11200	else
11201	  cat conftest.err 1>&5
11202	fi
11203	$RM conftest*
11204
11205fi
11206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11207$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11208      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11209      ;;
11210    esac
11211  fi
11212  ;;
11213esac
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11367$as_echo_n "checking dynamic linker characteristics... " >&6; }
11368
11369if test yes = "$GCC"; then
11370  case $host_os in
11371    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11372    *) lt_awk_arg='/^libraries:/' ;;
11373  esac
11374  case $host_os in
11375    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11376    *) lt_sed_strip_eq='s|=/|/|g' ;;
11377  esac
11378  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11379  case $lt_search_path_spec in
11380  *\;*)
11381    # if the path contains ";" then we assume it to be the separator
11382    # otherwise default to the standard path separator (i.e. ":") - it is
11383    # assumed that no part of a normal pathname contains ";" but that should
11384    # okay in the real world where ";" in dirpaths is itself problematic.
11385    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11386    ;;
11387  *)
11388    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11389    ;;
11390  esac
11391  # Ok, now we have the path, separated by spaces, we can step through it
11392  # and add multilib dir if necessary...
11393  lt_tmp_lt_search_path_spec=
11394  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11395  # ...but if some path component already ends with the multilib dir we assume
11396  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11397  case "$lt_multi_os_dir; $lt_search_path_spec " in
11398  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11399    lt_multi_os_dir=
11400    ;;
11401  esac
11402  for lt_sys_path in $lt_search_path_spec; do
11403    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11404      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11405    elif test -n "$lt_multi_os_dir"; then
11406      test -d "$lt_sys_path" && \
11407	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11408    fi
11409  done
11410  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11411BEGIN {RS = " "; FS = "/|\n";} {
11412  lt_foo = "";
11413  lt_count = 0;
11414  for (lt_i = NF; lt_i > 0; lt_i--) {
11415    if ($lt_i != "" && $lt_i != ".") {
11416      if ($lt_i == "..") {
11417        lt_count++;
11418      } else {
11419        if (lt_count == 0) {
11420          lt_foo = "/" $lt_i lt_foo;
11421        } else {
11422          lt_count--;
11423        }
11424      }
11425    }
11426  }
11427  if (lt_foo != "") { lt_freq[lt_foo]++; }
11428  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11429}'`
11430  # AWK program above erroneously prepends '/' to C:/dos/paths
11431  # for these hosts.
11432  case $host_os in
11433    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11434      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11435  esac
11436  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11437else
11438  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11439fi
11440library_names_spec=
11441libname_spec='lib$name'
11442soname_spec=
11443shrext_cmds=.so
11444postinstall_cmds=
11445postuninstall_cmds=
11446finish_cmds=
11447finish_eval=
11448shlibpath_var=
11449shlibpath_overrides_runpath=unknown
11450version_type=none
11451dynamic_linker="$host_os ld.so"
11452sys_lib_dlsearch_path_spec="/lib /usr/lib"
11453need_lib_prefix=unknown
11454hardcode_into_libs=no
11455
11456# when you set need_version to no, make sure it does not cause -set_version
11457# flags to be left without arguments
11458need_version=unknown
11459
11460
11461
11462case $host_os in
11463aix3*)
11464  version_type=linux # correct to gnu/linux during the next big refactor
11465  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11466  shlibpath_var=LIBPATH
11467
11468  # AIX 3 has no versioning support, so we append a major version to the name.
11469  soname_spec='$libname$release$shared_ext$major'
11470  ;;
11471
11472aix[4-9]*)
11473  version_type=linux # correct to gnu/linux during the next big refactor
11474  need_lib_prefix=no
11475  need_version=no
11476  hardcode_into_libs=yes
11477  if test ia64 = "$host_cpu"; then
11478    # AIX 5 supports IA64
11479    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11480    shlibpath_var=LD_LIBRARY_PATH
11481  else
11482    # With GCC up to 2.95.x, collect2 would create an import file
11483    # for dependence libraries.  The import file would start with
11484    # the line '#! .'.  This would cause the generated library to
11485    # depend on '.', always an invalid library.  This was fixed in
11486    # development snapshots of GCC prior to 3.0.
11487    case $host_os in
11488      aix4 | aix4.[01] | aix4.[01].*)
11489      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11490	   echo ' yes '
11491	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11492	:
11493      else
11494	can_build_shared=no
11495      fi
11496      ;;
11497    esac
11498    # Using Import Files as archive members, it is possible to support
11499    # filename-based versioning of shared library archives on AIX. While
11500    # this would work for both with and without runtime linking, it will
11501    # prevent static linking of such archives. So we do filename-based
11502    # shared library versioning with .so extension only, which is used
11503    # when both runtime linking and shared linking is enabled.
11504    # Unfortunately, runtime linking may impact performance, so we do
11505    # not want this to be the default eventually. Also, we use the
11506    # versioned .so libs for executables only if there is the -brtl
11507    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11508    # To allow for filename-based versioning support, we need to create
11509    # libNAME.so.V as an archive file, containing:
11510    # *) an Import File, referring to the versioned filename of the
11511    #    archive as well as the shared archive member, telling the
11512    #    bitwidth (32 or 64) of that shared object, and providing the
11513    #    list of exported symbols of that shared object, eventually
11514    #    decorated with the 'weak' keyword
11515    # *) the shared object with the F_LOADONLY flag set, to really avoid
11516    #    it being seen by the linker.
11517    # At run time we better use the real file rather than another symlink,
11518    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11519
11520    case $with_aix_soname,$aix_use_runtimelinking in
11521    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11522    # soname into executable. Probably we can add versioning support to
11523    # collect2, so additional links can be useful in future.
11524    aix,yes) # traditional libtool
11525      dynamic_linker='AIX unversionable lib.so'
11526      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11527      # instead of lib<name>.a to let people know that these are not
11528      # typical AIX shared libraries.
11529      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530      ;;
11531    aix,no) # traditional AIX only
11532      dynamic_linker='AIX lib.a(lib.so.V)'
11533      # We preserve .a as extension for shared libraries through AIX4.2
11534      # and later when we are not doing run time linking.
11535      library_names_spec='$libname$release.a $libname.a'
11536      soname_spec='$libname$release$shared_ext$major'
11537      ;;
11538    svr4,*) # full svr4 only
11539      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11540      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11541      # We do not specify a path in Import Files, so LIBPATH fires.
11542      shlibpath_overrides_runpath=yes
11543      ;;
11544    *,yes) # both, prefer svr4
11545      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11546      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11547      # unpreferred sharedlib libNAME.a needs extra handling
11548      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11549      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11550      # We do not specify a path in Import Files, so LIBPATH fires.
11551      shlibpath_overrides_runpath=yes
11552      ;;
11553    *,no) # both, prefer aix
11554      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11555      library_names_spec='$libname$release.a $libname.a'
11556      soname_spec='$libname$release$shared_ext$major'
11557      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11558      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11559      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11560      ;;
11561    esac
11562    shlibpath_var=LIBPATH
11563  fi
11564  ;;
11565
11566amigaos*)
11567  case $host_cpu in
11568  powerpc)
11569    # Since July 2007 AmigaOS4 officially supports .so libraries.
11570    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11571    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11572    ;;
11573  m68k)
11574    library_names_spec='$libname.ixlibrary $libname.a'
11575    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11576    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11577    ;;
11578  esac
11579  ;;
11580
11581beos*)
11582  library_names_spec='$libname$shared_ext'
11583  dynamic_linker="$host_os ld.so"
11584  shlibpath_var=LIBRARY_PATH
11585  ;;
11586
11587bsdi[45]*)
11588  version_type=linux # correct to gnu/linux during the next big refactor
11589  need_version=no
11590  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11591  soname_spec='$libname$release$shared_ext$major'
11592  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11593  shlibpath_var=LD_LIBRARY_PATH
11594  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11595  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11596  # the default ld.so.conf also contains /usr/contrib/lib and
11597  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11598  # libtool to hard-code these into programs
11599  ;;
11600
11601cygwin* | mingw* | pw32* | cegcc*)
11602  version_type=windows
11603  shrext_cmds=.dll
11604  need_version=no
11605  need_lib_prefix=no
11606
11607  case $GCC,$cc_basename in
11608  yes,*)
11609    # gcc
11610    library_names_spec='$libname.dll.a'
11611    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11612    postinstall_cmds='base_file=`basename \$file`~
11613      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11614      dldir=$destdir/`dirname \$dlpath`~
11615      test -d \$dldir || mkdir -p \$dldir~
11616      $install_prog $dir/$dlname \$dldir/$dlname~
11617      chmod a+x \$dldir/$dlname~
11618      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11619        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11620      fi'
11621    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11622      dlpath=$dir/\$dldll~
11623       $RM \$dlpath'
11624    shlibpath_overrides_runpath=yes
11625
11626    case $host_os in
11627    cygwin*)
11628      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11629      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11630
11631      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11632      ;;
11633    mingw* | cegcc*)
11634      # MinGW DLLs use traditional 'lib' prefix
11635      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11636      ;;
11637    pw32*)
11638      # pw32 DLLs use 'pw' prefix rather than 'lib'
11639      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11640      ;;
11641    esac
11642    dynamic_linker='Win32 ld.exe'
11643    ;;
11644
11645  *,cl*)
11646    # Native MSVC
11647    libname_spec='$name'
11648    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11649    library_names_spec='$libname.dll.lib'
11650
11651    case $build_os in
11652    mingw*)
11653      sys_lib_search_path_spec=
11654      lt_save_ifs=$IFS
11655      IFS=';'
11656      for lt_path in $LIB
11657      do
11658        IFS=$lt_save_ifs
11659        # Let DOS variable expansion print the short 8.3 style file name.
11660        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11661        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11662      done
11663      IFS=$lt_save_ifs
11664      # Convert to MSYS style.
11665      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11666      ;;
11667    cygwin*)
11668      # Convert to unix form, then to dos form, then back to unix form
11669      # but this time dos style (no spaces!) so that the unix form looks
11670      # like /cygdrive/c/PROGRA~1:/cygdr...
11671      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11672      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11673      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11674      ;;
11675    *)
11676      sys_lib_search_path_spec=$LIB
11677      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11678        # It is most probably a Windows format PATH.
11679        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11680      else
11681        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11682      fi
11683      # FIXME: find the short name or the path components, as spaces are
11684      # common. (e.g. "Program Files" -> "PROGRA~1")
11685      ;;
11686    esac
11687
11688    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11689    postinstall_cmds='base_file=`basename \$file`~
11690      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11691      dldir=$destdir/`dirname \$dlpath`~
11692      test -d \$dldir || mkdir -p \$dldir~
11693      $install_prog $dir/$dlname \$dldir/$dlname'
11694    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11695      dlpath=$dir/\$dldll~
11696       $RM \$dlpath'
11697    shlibpath_overrides_runpath=yes
11698    dynamic_linker='Win32 link.exe'
11699    ;;
11700
11701  *)
11702    # Assume MSVC wrapper
11703    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11704    dynamic_linker='Win32 ld.exe'
11705    ;;
11706  esac
11707  # FIXME: first we should search . and the directory the executable is in
11708  shlibpath_var=PATH
11709  ;;
11710
11711darwin* | rhapsody*)
11712  dynamic_linker="$host_os dyld"
11713  version_type=darwin
11714  need_lib_prefix=no
11715  need_version=no
11716  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11717  soname_spec='$libname$release$major$shared_ext'
11718  shlibpath_overrides_runpath=yes
11719  shlibpath_var=DYLD_LIBRARY_PATH
11720  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11721
11722  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11723  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11724  ;;
11725
11726dgux*)
11727  version_type=linux # correct to gnu/linux during the next big refactor
11728  need_lib_prefix=no
11729  need_version=no
11730  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11731  soname_spec='$libname$release$shared_ext$major'
11732  shlibpath_var=LD_LIBRARY_PATH
11733  ;;
11734
11735freebsd* | dragonfly*)
11736  # DragonFly does not have aout.  When/if they implement a new
11737  # versioning mechanism, adjust this.
11738  if test -x /usr/bin/objformat; then
11739    objformat=`/usr/bin/objformat`
11740  else
11741    case $host_os in
11742    freebsd[23].*) objformat=aout ;;
11743    *) objformat=elf ;;
11744    esac
11745  fi
11746  version_type=freebsd-$objformat
11747  case $version_type in
11748    freebsd-elf*)
11749      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11750      soname_spec='$libname$release$shared_ext$major'
11751      need_version=no
11752      need_lib_prefix=no
11753      ;;
11754    freebsd-*)
11755      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11756      need_version=yes
11757      ;;
11758  esac
11759  shlibpath_var=LD_LIBRARY_PATH
11760  case $host_os in
11761  freebsd2.*)
11762    shlibpath_overrides_runpath=yes
11763    ;;
11764  freebsd3.[01]* | freebsdelf3.[01]*)
11765    shlibpath_overrides_runpath=yes
11766    hardcode_into_libs=yes
11767    ;;
11768  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11769  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11770    shlibpath_overrides_runpath=no
11771    hardcode_into_libs=yes
11772    ;;
11773  *) # from 4.6 on, and DragonFly
11774    shlibpath_overrides_runpath=yes
11775    hardcode_into_libs=yes
11776    ;;
11777  esac
11778  ;;
11779
11780haiku*)
11781  version_type=linux # correct to gnu/linux during the next big refactor
11782  need_lib_prefix=no
11783  need_version=no
11784  dynamic_linker="$host_os runtime_loader"
11785  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11786  soname_spec='$libname$release$shared_ext$major'
11787  shlibpath_var=LIBRARY_PATH
11788  shlibpath_overrides_runpath=no
11789  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11790  hardcode_into_libs=yes
11791  ;;
11792
11793hpux9* | hpux10* | hpux11*)
11794  # Give a soname corresponding to the major version so that dld.sl refuses to
11795  # link against other versions.
11796  version_type=sunos
11797  need_lib_prefix=no
11798  need_version=no
11799  case $host_cpu in
11800  ia64*)
11801    shrext_cmds='.so'
11802    hardcode_into_libs=yes
11803    dynamic_linker="$host_os dld.so"
11804    shlibpath_var=LD_LIBRARY_PATH
11805    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11806    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11807    soname_spec='$libname$release$shared_ext$major'
11808    if test 32 = "$HPUX_IA64_MODE"; then
11809      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11810      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11811    else
11812      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11813      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11814    fi
11815    ;;
11816  hppa*64*)
11817    shrext_cmds='.sl'
11818    hardcode_into_libs=yes
11819    dynamic_linker="$host_os dld.sl"
11820    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11821    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11822    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11823    soname_spec='$libname$release$shared_ext$major'
11824    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11825    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11826    ;;
11827  *)
11828    shrext_cmds='.sl'
11829    dynamic_linker="$host_os dld.sl"
11830    shlibpath_var=SHLIB_PATH
11831    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11832    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11833    soname_spec='$libname$release$shared_ext$major'
11834    ;;
11835  esac
11836  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11837  postinstall_cmds='chmod 555 $lib'
11838  # or fails outright, so override atomically:
11839  install_override_mode=555
11840  ;;
11841
11842interix[3-9]*)
11843  version_type=linux # correct to gnu/linux during the next big refactor
11844  need_lib_prefix=no
11845  need_version=no
11846  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11847  soname_spec='$libname$release$shared_ext$major'
11848  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11849  shlibpath_var=LD_LIBRARY_PATH
11850  shlibpath_overrides_runpath=no
11851  hardcode_into_libs=yes
11852  ;;
11853
11854irix5* | irix6* | nonstopux*)
11855  case $host_os in
11856    nonstopux*) version_type=nonstopux ;;
11857    *)
11858	if test yes = "$lt_cv_prog_gnu_ld"; then
11859		version_type=linux # correct to gnu/linux during the next big refactor
11860	else
11861		version_type=irix
11862	fi ;;
11863  esac
11864  need_lib_prefix=no
11865  need_version=no
11866  soname_spec='$libname$release$shared_ext$major'
11867  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11868  case $host_os in
11869  irix5* | nonstopux*)
11870    libsuff= shlibsuff=
11871    ;;
11872  *)
11873    case $LD in # libtool.m4 will add one of these switches to LD
11874    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11875      libsuff= shlibsuff= libmagic=32-bit;;
11876    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11877      libsuff=32 shlibsuff=N32 libmagic=N32;;
11878    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11879      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11880    *) libsuff= shlibsuff= libmagic=never-match;;
11881    esac
11882    ;;
11883  esac
11884  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11885  shlibpath_overrides_runpath=no
11886  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11887  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11888  hardcode_into_libs=yes
11889  ;;
11890
11891# No shared lib support for Linux oldld, aout, or coff.
11892linux*oldld* | linux*aout* | linux*coff*)
11893  dynamic_linker=no
11894  ;;
11895
11896linux*android*)
11897  version_type=none # Android doesn't support versioned libraries.
11898  need_lib_prefix=no
11899  need_version=no
11900  library_names_spec='$libname$release$shared_ext'
11901  soname_spec='$libname$release$shared_ext'
11902  finish_cmds=
11903  shlibpath_var=LD_LIBRARY_PATH
11904  shlibpath_overrides_runpath=yes
11905
11906  # This implies no fast_install, which is unacceptable.
11907  # Some rework will be needed to allow for fast_install
11908  # before this can be enabled.
11909  hardcode_into_libs=yes
11910
11911  dynamic_linker='Android linker'
11912  # Don't embed -rpath directories since the linker doesn't support them.
11913  hardcode_libdir_flag_spec='-L$libdir'
11914  ;;
11915
11916# This must be glibc/ELF.
11917linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11918  version_type=linux # correct to gnu/linux during the next big refactor
11919  need_lib_prefix=no
11920  need_version=no
11921  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11922  soname_spec='$libname$release$shared_ext$major'
11923  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11924  shlibpath_var=LD_LIBRARY_PATH
11925  shlibpath_overrides_runpath=no
11926
11927  # Some binutils ld are patched to set DT_RUNPATH
11928  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11929  $as_echo_n "(cached) " >&6
11930else
11931  lt_cv_shlibpath_overrides_runpath=no
11932    save_LDFLAGS=$LDFLAGS
11933    save_libdir=$libdir
11934    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11935	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11936    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937/* end confdefs.h.  */
11938
11939int
11940main ()
11941{
11942
11943  ;
11944  return 0;
11945}
11946_ACEOF
11947if ac_fn_c_try_link "$LINENO"; then :
11948  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11949  lt_cv_shlibpath_overrides_runpath=yes
11950fi
11951fi
11952rm -f core conftest.err conftest.$ac_objext \
11953    conftest$ac_exeext conftest.$ac_ext
11954    LDFLAGS=$save_LDFLAGS
11955    libdir=$save_libdir
11956
11957fi
11958
11959  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11960
11961  # This implies no fast_install, which is unacceptable.
11962  # Some rework will be needed to allow for fast_install
11963  # before this can be enabled.
11964  hardcode_into_libs=yes
11965
11966  # Add ABI-specific directories to the system library path.
11967  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11968
11969  # Ideally, we could use ldconfig to report *all* directores which are
11970  # searched for libraries, however this is still not possible.  Aside from not
11971  # being certain /sbin/ldconfig is available, command
11972  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11973  # even though it is searched at run-time.  Try to do the best guess by
11974  # appending ld.so.conf contents (and includes) to the search path.
11975  if test -f /etc/ld.so.conf; then
11976    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' ' '`
11977    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11978  fi
11979
11980  # We used to test for /lib/ld.so.1 and disable shared libraries on
11981  # powerpc, because MkLinux only supported shared libraries with the
11982  # GNU dynamic linker.  Since this was broken with cross compilers,
11983  # most powerpc-linux boxes support dynamic linking these days and
11984  # people can always --disable-shared, the test was removed, and we
11985  # assume the GNU/Linux dynamic linker is in use.
11986  dynamic_linker='GNU/Linux ld.so'
11987  ;;
11988
11989netbsd*)
11990  version_type=sunos
11991  need_lib_prefix=no
11992  need_version=no
11993  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11994    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11995    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11996    dynamic_linker='NetBSD (a.out) ld.so'
11997  else
11998    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11999    soname_spec='$libname$release$shared_ext$major'
12000    dynamic_linker='NetBSD ld.elf_so'
12001  fi
12002  shlibpath_var=LD_LIBRARY_PATH
12003  shlibpath_overrides_runpath=yes
12004  hardcode_into_libs=yes
12005  ;;
12006
12007newsos6)
12008  version_type=linux # correct to gnu/linux during the next big refactor
12009  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12010  shlibpath_var=LD_LIBRARY_PATH
12011  shlibpath_overrides_runpath=yes
12012  ;;
12013
12014*nto* | *qnx*)
12015  version_type=qnx
12016  need_lib_prefix=no
12017  need_version=no
12018  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12019  soname_spec='$libname$release$shared_ext$major'
12020  shlibpath_var=LD_LIBRARY_PATH
12021  shlibpath_overrides_runpath=no
12022  hardcode_into_libs=yes
12023  dynamic_linker='ldqnx.so'
12024  ;;
12025
12026openbsd* | bitrig*)
12027  version_type=sunos
12028  sys_lib_dlsearch_path_spec=/usr/lib
12029  need_lib_prefix=no
12030  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12031    need_version=no
12032  else
12033    need_version=yes
12034  fi
12035  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12036  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12037  shlibpath_var=LD_LIBRARY_PATH
12038  shlibpath_overrides_runpath=yes
12039  ;;
12040
12041os2*)
12042  libname_spec='$name'
12043  version_type=windows
12044  shrext_cmds=.dll
12045  need_version=no
12046  need_lib_prefix=no
12047  # OS/2 can only load a DLL with a base name of 8 characters or less.
12048  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12049    v=$($ECHO $release$versuffix | tr -d .-);
12050    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12051    $ECHO $n$v`$shared_ext'
12052  library_names_spec='${libname}_dll.$libext'
12053  dynamic_linker='OS/2 ld.exe'
12054  shlibpath_var=BEGINLIBPATH
12055  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12056  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12057  postinstall_cmds='base_file=`basename \$file`~
12058    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12059    dldir=$destdir/`dirname \$dlpath`~
12060    test -d \$dldir || mkdir -p \$dldir~
12061    $install_prog $dir/$dlname \$dldir/$dlname~
12062    chmod a+x \$dldir/$dlname~
12063    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12064      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12065    fi'
12066  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12067    dlpath=$dir/\$dldll~
12068    $RM \$dlpath'
12069  ;;
12070
12071osf3* | osf4* | osf5*)
12072  version_type=osf
12073  need_lib_prefix=no
12074  need_version=no
12075  soname_spec='$libname$release$shared_ext$major'
12076  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12077  shlibpath_var=LD_LIBRARY_PATH
12078  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12079  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12080  ;;
12081
12082rdos*)
12083  dynamic_linker=no
12084  ;;
12085
12086solaris*)
12087  version_type=linux # correct to gnu/linux during the next big refactor
12088  need_lib_prefix=no
12089  need_version=no
12090  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12091  soname_spec='$libname$release$shared_ext$major'
12092  shlibpath_var=LD_LIBRARY_PATH
12093  shlibpath_overrides_runpath=yes
12094  hardcode_into_libs=yes
12095  # ldd complains unless libraries are executable
12096  postinstall_cmds='chmod +x $lib'
12097  ;;
12098
12099sunos4*)
12100  version_type=sunos
12101  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12102  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12103  shlibpath_var=LD_LIBRARY_PATH
12104  shlibpath_overrides_runpath=yes
12105  if test yes = "$with_gnu_ld"; then
12106    need_lib_prefix=no
12107  fi
12108  need_version=yes
12109  ;;
12110
12111sysv4 | sysv4.3*)
12112  version_type=linux # correct to gnu/linux during the next big refactor
12113  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12114  soname_spec='$libname$release$shared_ext$major'
12115  shlibpath_var=LD_LIBRARY_PATH
12116  case $host_vendor in
12117    sni)
12118      shlibpath_overrides_runpath=no
12119      need_lib_prefix=no
12120      runpath_var=LD_RUN_PATH
12121      ;;
12122    siemens)
12123      need_lib_prefix=no
12124      ;;
12125    motorola)
12126      need_lib_prefix=no
12127      need_version=no
12128      shlibpath_overrides_runpath=no
12129      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12130      ;;
12131  esac
12132  ;;
12133
12134sysv4*MP*)
12135  if test -d /usr/nec; then
12136    version_type=linux # correct to gnu/linux during the next big refactor
12137    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12138    soname_spec='$libname$shared_ext.$major'
12139    shlibpath_var=LD_LIBRARY_PATH
12140  fi
12141  ;;
12142
12143sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12144  version_type=sco
12145  need_lib_prefix=no
12146  need_version=no
12147  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12148  soname_spec='$libname$release$shared_ext$major'
12149  shlibpath_var=LD_LIBRARY_PATH
12150  shlibpath_overrides_runpath=yes
12151  hardcode_into_libs=yes
12152  if test yes = "$with_gnu_ld"; then
12153    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12154  else
12155    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12156    case $host_os in
12157      sco3.2v5*)
12158        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12159	;;
12160    esac
12161  fi
12162  sys_lib_dlsearch_path_spec='/usr/lib'
12163  ;;
12164
12165tpf*)
12166  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12167  version_type=linux # correct to gnu/linux during the next big refactor
12168  need_lib_prefix=no
12169  need_version=no
12170  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12171  shlibpath_var=LD_LIBRARY_PATH
12172  shlibpath_overrides_runpath=no
12173  hardcode_into_libs=yes
12174  ;;
12175
12176uts4*)
12177  version_type=linux # correct to gnu/linux during the next big refactor
12178  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12179  soname_spec='$libname$release$shared_ext$major'
12180  shlibpath_var=LD_LIBRARY_PATH
12181  ;;
12182
12183*)
12184  dynamic_linker=no
12185  ;;
12186esac
12187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12188$as_echo "$dynamic_linker" >&6; }
12189test no = "$dynamic_linker" && can_build_shared=no
12190
12191variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12192if test yes = "$GCC"; then
12193  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12194fi
12195
12196if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12197  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12198fi
12199
12200if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12201  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12202fi
12203
12204# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12205configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12206
12207# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12208func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12209
12210# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12211configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12310$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12311hardcode_action=
12312if test -n "$hardcode_libdir_flag_spec" ||
12313   test -n "$runpath_var" ||
12314   test yes = "$hardcode_automatic"; then
12315
12316  # We can hardcode non-existent directories.
12317  if test no != "$hardcode_direct" &&
12318     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12319     # have to relink, otherwise we might link with an installed library
12320     # when we should be linking with a yet-to-be-installed one
12321     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12322     test no != "$hardcode_minus_L"; then
12323    # Linking always hardcodes the temporary library directory.
12324    hardcode_action=relink
12325  else
12326    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12327    hardcode_action=immediate
12328  fi
12329else
12330  # We cannot hardcode anything, or else we can only hardcode existing
12331  # directories.
12332  hardcode_action=unsupported
12333fi
12334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12335$as_echo "$hardcode_action" >&6; }
12336
12337if test relink = "$hardcode_action" ||
12338   test yes = "$inherit_rpath"; then
12339  # Fast installation is not supported
12340  enable_fast_install=no
12341elif test yes = "$shlibpath_overrides_runpath" ||
12342     test no = "$enable_shared"; then
12343  # Fast installation is not necessary
12344  enable_fast_install=needless
12345fi
12346
12347
12348
12349
12350
12351
12352  if test yes != "$enable_dlopen"; then
12353  enable_dlopen=unknown
12354  enable_dlopen_self=unknown
12355  enable_dlopen_self_static=unknown
12356else
12357  lt_cv_dlopen=no
12358  lt_cv_dlopen_libs=
12359
12360  case $host_os in
12361  beos*)
12362    lt_cv_dlopen=load_add_on
12363    lt_cv_dlopen_libs=
12364    lt_cv_dlopen_self=yes
12365    ;;
12366
12367  mingw* | pw32* | cegcc*)
12368    lt_cv_dlopen=LoadLibrary
12369    lt_cv_dlopen_libs=
12370    ;;
12371
12372  cygwin*)
12373    lt_cv_dlopen=dlopen
12374    lt_cv_dlopen_libs=
12375    ;;
12376
12377  darwin*)
12378    # if libdl is installed we need to link against it
12379    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12380$as_echo_n "checking for dlopen in -ldl... " >&6; }
12381if ${ac_cv_lib_dl_dlopen+:} false; then :
12382  $as_echo_n "(cached) " >&6
12383else
12384  ac_check_lib_save_LIBS=$LIBS
12385LIBS="-ldl  $LIBS"
12386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387/* end confdefs.h.  */
12388
12389/* Override any GCC internal prototype to avoid an error.
12390   Use char because int might match the return type of a GCC
12391   builtin and then its argument prototype would still apply.  */
12392#ifdef __cplusplus
12393extern "C"
12394#endif
12395char dlopen ();
12396int
12397main ()
12398{
12399return dlopen ();
12400  ;
12401  return 0;
12402}
12403_ACEOF
12404if ac_fn_c_try_link "$LINENO"; then :
12405  ac_cv_lib_dl_dlopen=yes
12406else
12407  ac_cv_lib_dl_dlopen=no
12408fi
12409rm -f core conftest.err conftest.$ac_objext \
12410    conftest$ac_exeext conftest.$ac_ext
12411LIBS=$ac_check_lib_save_LIBS
12412fi
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12414$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12415if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12416  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12417else
12418
12419    lt_cv_dlopen=dyld
12420    lt_cv_dlopen_libs=
12421    lt_cv_dlopen_self=yes
12422
12423fi
12424
12425    ;;
12426
12427  tpf*)
12428    # Don't try to run any link tests for TPF.  We know it's impossible
12429    # because TPF is a cross-compiler, and we know how we open DSOs.
12430    lt_cv_dlopen=dlopen
12431    lt_cv_dlopen_libs=
12432    lt_cv_dlopen_self=no
12433    ;;
12434
12435  *)
12436    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12437if test "x$ac_cv_func_shl_load" = xyes; then :
12438  lt_cv_dlopen=shl_load
12439else
12440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12441$as_echo_n "checking for shl_load in -ldld... " >&6; }
12442if ${ac_cv_lib_dld_shl_load+:} false; then :
12443  $as_echo_n "(cached) " >&6
12444else
12445  ac_check_lib_save_LIBS=$LIBS
12446LIBS="-ldld  $LIBS"
12447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448/* end confdefs.h.  */
12449
12450/* Override any GCC internal prototype to avoid an error.
12451   Use char because int might match the return type of a GCC
12452   builtin and then its argument prototype would still apply.  */
12453#ifdef __cplusplus
12454extern "C"
12455#endif
12456char shl_load ();
12457int
12458main ()
12459{
12460return shl_load ();
12461  ;
12462  return 0;
12463}
12464_ACEOF
12465if ac_fn_c_try_link "$LINENO"; then :
12466  ac_cv_lib_dld_shl_load=yes
12467else
12468  ac_cv_lib_dld_shl_load=no
12469fi
12470rm -f core conftest.err conftest.$ac_objext \
12471    conftest$ac_exeext conftest.$ac_ext
12472LIBS=$ac_check_lib_save_LIBS
12473fi
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12475$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12476if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12477  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12478else
12479  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12480if test "x$ac_cv_func_dlopen" = xyes; then :
12481  lt_cv_dlopen=dlopen
12482else
12483  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12484$as_echo_n "checking for dlopen in -ldl... " >&6; }
12485if ${ac_cv_lib_dl_dlopen+:} false; then :
12486  $as_echo_n "(cached) " >&6
12487else
12488  ac_check_lib_save_LIBS=$LIBS
12489LIBS="-ldl  $LIBS"
12490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491/* end confdefs.h.  */
12492
12493/* Override any GCC internal prototype to avoid an error.
12494   Use char because int might match the return type of a GCC
12495   builtin and then its argument prototype would still apply.  */
12496#ifdef __cplusplus
12497extern "C"
12498#endif
12499char dlopen ();
12500int
12501main ()
12502{
12503return dlopen ();
12504  ;
12505  return 0;
12506}
12507_ACEOF
12508if ac_fn_c_try_link "$LINENO"; then :
12509  ac_cv_lib_dl_dlopen=yes
12510else
12511  ac_cv_lib_dl_dlopen=no
12512fi
12513rm -f core conftest.err conftest.$ac_objext \
12514    conftest$ac_exeext conftest.$ac_ext
12515LIBS=$ac_check_lib_save_LIBS
12516fi
12517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12518$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12519if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12520  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12521else
12522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12523$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12524if ${ac_cv_lib_svld_dlopen+:} false; then :
12525  $as_echo_n "(cached) " >&6
12526else
12527  ac_check_lib_save_LIBS=$LIBS
12528LIBS="-lsvld  $LIBS"
12529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12530/* end confdefs.h.  */
12531
12532/* Override any GCC internal prototype to avoid an error.
12533   Use char because int might match the return type of a GCC
12534   builtin and then its argument prototype would still apply.  */
12535#ifdef __cplusplus
12536extern "C"
12537#endif
12538char dlopen ();
12539int
12540main ()
12541{
12542return dlopen ();
12543  ;
12544  return 0;
12545}
12546_ACEOF
12547if ac_fn_c_try_link "$LINENO"; then :
12548  ac_cv_lib_svld_dlopen=yes
12549else
12550  ac_cv_lib_svld_dlopen=no
12551fi
12552rm -f core conftest.err conftest.$ac_objext \
12553    conftest$ac_exeext conftest.$ac_ext
12554LIBS=$ac_check_lib_save_LIBS
12555fi
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12557$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12558if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12559  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12560else
12561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12562$as_echo_n "checking for dld_link in -ldld... " >&6; }
12563if ${ac_cv_lib_dld_dld_link+:} false; then :
12564  $as_echo_n "(cached) " >&6
12565else
12566  ac_check_lib_save_LIBS=$LIBS
12567LIBS="-ldld  $LIBS"
12568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569/* end confdefs.h.  */
12570
12571/* Override any GCC internal prototype to avoid an error.
12572   Use char because int might match the return type of a GCC
12573   builtin and then its argument prototype would still apply.  */
12574#ifdef __cplusplus
12575extern "C"
12576#endif
12577char dld_link ();
12578int
12579main ()
12580{
12581return dld_link ();
12582  ;
12583  return 0;
12584}
12585_ACEOF
12586if ac_fn_c_try_link "$LINENO"; then :
12587  ac_cv_lib_dld_dld_link=yes
12588else
12589  ac_cv_lib_dld_dld_link=no
12590fi
12591rm -f core conftest.err conftest.$ac_objext \
12592    conftest$ac_exeext conftest.$ac_ext
12593LIBS=$ac_check_lib_save_LIBS
12594fi
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12596$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12597if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12598  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12599fi
12600
12601
12602fi
12603
12604
12605fi
12606
12607
12608fi
12609
12610
12611fi
12612
12613
12614fi
12615
12616    ;;
12617  esac
12618
12619  if test no = "$lt_cv_dlopen"; then
12620    enable_dlopen=no
12621  else
12622    enable_dlopen=yes
12623  fi
12624
12625  case $lt_cv_dlopen in
12626  dlopen)
12627    save_CPPFLAGS=$CPPFLAGS
12628    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12629
12630    save_LDFLAGS=$LDFLAGS
12631    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12632
12633    save_LIBS=$LIBS
12634    LIBS="$lt_cv_dlopen_libs $LIBS"
12635
12636    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12637$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12638if ${lt_cv_dlopen_self+:} false; then :
12639  $as_echo_n "(cached) " >&6
12640else
12641  	  if test yes = "$cross_compiling"; then :
12642  lt_cv_dlopen_self=cross
12643else
12644  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12645  lt_status=$lt_dlunknown
12646  cat > conftest.$ac_ext <<_LT_EOF
12647#line $LINENO "configure"
12648#include "confdefs.h"
12649
12650#if HAVE_DLFCN_H
12651#include <dlfcn.h>
12652#endif
12653
12654#include <stdio.h>
12655
12656#ifdef RTLD_GLOBAL
12657#  define LT_DLGLOBAL		RTLD_GLOBAL
12658#else
12659#  ifdef DL_GLOBAL
12660#    define LT_DLGLOBAL		DL_GLOBAL
12661#  else
12662#    define LT_DLGLOBAL		0
12663#  endif
12664#endif
12665
12666/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12667   find out it does not work in some platform. */
12668#ifndef LT_DLLAZY_OR_NOW
12669#  ifdef RTLD_LAZY
12670#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12671#  else
12672#    ifdef DL_LAZY
12673#      define LT_DLLAZY_OR_NOW		DL_LAZY
12674#    else
12675#      ifdef RTLD_NOW
12676#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12677#      else
12678#        ifdef DL_NOW
12679#          define LT_DLLAZY_OR_NOW	DL_NOW
12680#        else
12681#          define LT_DLLAZY_OR_NOW	0
12682#        endif
12683#      endif
12684#    endif
12685#  endif
12686#endif
12687
12688/* When -fvisibility=hidden is used, assume the code has been annotated
12689   correspondingly for the symbols needed.  */
12690#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12691int fnord () __attribute__((visibility("default")));
12692#endif
12693
12694int fnord () { return 42; }
12695int main ()
12696{
12697  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12698  int status = $lt_dlunknown;
12699
12700  if (self)
12701    {
12702      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12703      else
12704        {
12705	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12706          else puts (dlerror ());
12707	}
12708      /* dlclose (self); */
12709    }
12710  else
12711    puts (dlerror ());
12712
12713  return status;
12714}
12715_LT_EOF
12716  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12717  (eval $ac_link) 2>&5
12718  ac_status=$?
12719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12720  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12721    (./conftest; exit; ) >&5 2>/dev/null
12722    lt_status=$?
12723    case x$lt_status in
12724      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12725      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12726      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12727    esac
12728  else :
12729    # compilation failed
12730    lt_cv_dlopen_self=no
12731  fi
12732fi
12733rm -fr conftest*
12734
12735
12736fi
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12738$as_echo "$lt_cv_dlopen_self" >&6; }
12739
12740    if test yes = "$lt_cv_dlopen_self"; then
12741      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12742      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12743$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12744if ${lt_cv_dlopen_self_static+:} false; then :
12745  $as_echo_n "(cached) " >&6
12746else
12747  	  if test yes = "$cross_compiling"; then :
12748  lt_cv_dlopen_self_static=cross
12749else
12750  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12751  lt_status=$lt_dlunknown
12752  cat > conftest.$ac_ext <<_LT_EOF
12753#line $LINENO "configure"
12754#include "confdefs.h"
12755
12756#if HAVE_DLFCN_H
12757#include <dlfcn.h>
12758#endif
12759
12760#include <stdio.h>
12761
12762#ifdef RTLD_GLOBAL
12763#  define LT_DLGLOBAL		RTLD_GLOBAL
12764#else
12765#  ifdef DL_GLOBAL
12766#    define LT_DLGLOBAL		DL_GLOBAL
12767#  else
12768#    define LT_DLGLOBAL		0
12769#  endif
12770#endif
12771
12772/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12773   find out it does not work in some platform. */
12774#ifndef LT_DLLAZY_OR_NOW
12775#  ifdef RTLD_LAZY
12776#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12777#  else
12778#    ifdef DL_LAZY
12779#      define LT_DLLAZY_OR_NOW		DL_LAZY
12780#    else
12781#      ifdef RTLD_NOW
12782#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12783#      else
12784#        ifdef DL_NOW
12785#          define LT_DLLAZY_OR_NOW	DL_NOW
12786#        else
12787#          define LT_DLLAZY_OR_NOW	0
12788#        endif
12789#      endif
12790#    endif
12791#  endif
12792#endif
12793
12794/* When -fvisibility=hidden is used, assume the code has been annotated
12795   correspondingly for the symbols needed.  */
12796#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12797int fnord () __attribute__((visibility("default")));
12798#endif
12799
12800int fnord () { return 42; }
12801int main ()
12802{
12803  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12804  int status = $lt_dlunknown;
12805
12806  if (self)
12807    {
12808      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12809      else
12810        {
12811	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12812          else puts (dlerror ());
12813	}
12814      /* dlclose (self); */
12815    }
12816  else
12817    puts (dlerror ());
12818
12819  return status;
12820}
12821_LT_EOF
12822  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12823  (eval $ac_link) 2>&5
12824  ac_status=$?
12825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12826  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12827    (./conftest; exit; ) >&5 2>/dev/null
12828    lt_status=$?
12829    case x$lt_status in
12830      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12831      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12832      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12833    esac
12834  else :
12835    # compilation failed
12836    lt_cv_dlopen_self_static=no
12837  fi
12838fi
12839rm -fr conftest*
12840
12841
12842fi
12843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12844$as_echo "$lt_cv_dlopen_self_static" >&6; }
12845    fi
12846
12847    CPPFLAGS=$save_CPPFLAGS
12848    LDFLAGS=$save_LDFLAGS
12849    LIBS=$save_LIBS
12850    ;;
12851  esac
12852
12853  case $lt_cv_dlopen_self in
12854  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12855  *) enable_dlopen_self=unknown ;;
12856  esac
12857
12858  case $lt_cv_dlopen_self_static in
12859  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12860  *) enable_dlopen_self_static=unknown ;;
12861  esac
12862fi
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880striplib=
12881old_striplib=
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12883$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12884if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12885  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12886  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12888$as_echo "yes" >&6; }
12889else
12890# FIXME - insert some real tests, host_os isn't really good enough
12891  case $host_os in
12892  darwin*)
12893    if test -n "$STRIP"; then
12894      striplib="$STRIP -x"
12895      old_striplib="$STRIP -S"
12896      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12897$as_echo "yes" >&6; }
12898    else
12899      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900$as_echo "no" >&6; }
12901    fi
12902    ;;
12903  *)
12904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905$as_echo "no" >&6; }
12906    ;;
12907  esac
12908fi
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921  # Report what library types will actually be built
12922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12923$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12925$as_echo "$can_build_shared" >&6; }
12926
12927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12928$as_echo_n "checking whether to build shared libraries... " >&6; }
12929  test no = "$can_build_shared" && enable_shared=no
12930
12931  # On AIX, shared libraries and static libraries use the same namespace, and
12932  # are all built from PIC.
12933  case $host_os in
12934  aix3*)
12935    test yes = "$enable_shared" && enable_static=no
12936    if test -n "$RANLIB"; then
12937      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12938      postinstall_cmds='$RANLIB $lib'
12939    fi
12940    ;;
12941
12942  aix[4-9]*)
12943    if test ia64 != "$host_cpu"; then
12944      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12945      yes,aix,yes) ;;			# shared object as lib.so file only
12946      yes,svr4,*) ;;			# shared object as lib.so archive member only
12947      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12948      esac
12949    fi
12950    ;;
12951  esac
12952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12953$as_echo "$enable_shared" >&6; }
12954
12955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12956$as_echo_n "checking whether to build static libraries... " >&6; }
12957  # Make sure either enable_shared or enable_static is yes.
12958  test yes = "$enable_shared" || enable_static=yes
12959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12960$as_echo "$enable_static" >&6; }
12961
12962
12963
12964
12965fi
12966ac_ext=c
12967ac_cpp='$CPP $CPPFLAGS'
12968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12970ac_compiler_gnu=$ac_cv_c_compiler_gnu
12971
12972CC=$lt_save_CC
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988        ac_config_commands="$ac_config_commands libtool"
12989
12990
12991
12992
12993# Only expand once:
12994
12995
12996
12997
12998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12999$as_echo_n "checking for ANSI C header files... " >&6; }
13000if ${ac_cv_header_stdc+:} false; then :
13001  $as_echo_n "(cached) " >&6
13002else
13003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004/* end confdefs.h.  */
13005#include <stdlib.h>
13006#include <stdarg.h>
13007#include <string.h>
13008#include <float.h>
13009
13010int
13011main ()
13012{
13013
13014  ;
13015  return 0;
13016}
13017_ACEOF
13018if ac_fn_c_try_compile "$LINENO"; then :
13019  ac_cv_header_stdc=yes
13020else
13021  ac_cv_header_stdc=no
13022fi
13023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024
13025if test $ac_cv_header_stdc = yes; then
13026  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028/* end confdefs.h.  */
13029#include <string.h>
13030
13031_ACEOF
13032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13033  $EGREP "memchr" >/dev/null 2>&1; then :
13034
13035else
13036  ac_cv_header_stdc=no
13037fi
13038rm -f conftest*
13039
13040fi
13041
13042if test $ac_cv_header_stdc = yes; then
13043  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045/* end confdefs.h.  */
13046#include <stdlib.h>
13047
13048_ACEOF
13049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13050  $EGREP "free" >/dev/null 2>&1; then :
13051
13052else
13053  ac_cv_header_stdc=no
13054fi
13055rm -f conftest*
13056
13057fi
13058
13059if test $ac_cv_header_stdc = yes; then
13060  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13061  if test "$cross_compiling" = yes; then :
13062  :
13063else
13064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065/* end confdefs.h.  */
13066#include <ctype.h>
13067#include <stdlib.h>
13068#if ((' ' & 0x0FF) == 0x020)
13069# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13070# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13071#else
13072# define ISLOWER(c) \
13073		   (('a' <= (c) && (c) <= 'i') \
13074		     || ('j' <= (c) && (c) <= 'r') \
13075		     || ('s' <= (c) && (c) <= 'z'))
13076# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13077#endif
13078
13079#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13080int
13081main ()
13082{
13083  int i;
13084  for (i = 0; i < 256; i++)
13085    if (XOR (islower (i), ISLOWER (i))
13086	|| toupper (i) != TOUPPER (i))
13087      return 2;
13088  return 0;
13089}
13090_ACEOF
13091if ac_fn_c_try_run "$LINENO"; then :
13092
13093else
13094  ac_cv_header_stdc=no
13095fi
13096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13097  conftest.$ac_objext conftest.beam conftest.$ac_ext
13098fi
13099
13100fi
13101fi
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13103$as_echo "$ac_cv_header_stdc" >&6; }
13104if test $ac_cv_header_stdc = yes; then
13105
13106$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13107
13108fi
13109
13110for ac_header in fcntl.h sys/time.h sys/wait.h sys/select.h sys/uio.h unistd.h
13111do :
13112  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13113ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13114if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13115  cat >>confdefs.h <<_ACEOF
13116#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13117_ACEOF
13118
13119fi
13120
13121done
13122
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13124$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13125if ${ac_cv_header_time+:} false; then :
13126  $as_echo_n "(cached) " >&6
13127else
13128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129/* end confdefs.h.  */
13130#include <sys/types.h>
13131#include <sys/time.h>
13132#include <time.h>
13133
13134int
13135main ()
13136{
13137if ((struct tm *) 0)
13138return 0;
13139  ;
13140  return 0;
13141}
13142_ACEOF
13143if ac_fn_c_try_compile "$LINENO"; then :
13144  ac_cv_header_time=yes
13145else
13146  ac_cv_header_time=no
13147fi
13148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13149fi
13150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13151$as_echo "$ac_cv_header_time" >&6; }
13152if test $ac_cv_header_time = yes; then
13153
13154$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13155
13156fi
13157
13158
13159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13160$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13161if ${ac_cv_c_const+:} false; then :
13162  $as_echo_n "(cached) " >&6
13163else
13164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165/* end confdefs.h.  */
13166
13167int
13168main ()
13169{
13170
13171#ifndef __cplusplus
13172  /* Ultrix mips cc rejects this sort of thing.  */
13173  typedef int charset[2];
13174  const charset cs = { 0, 0 };
13175  /* SunOS 4.1.1 cc rejects this.  */
13176  char const *const *pcpcc;
13177  char **ppc;
13178  /* NEC SVR4.0.2 mips cc rejects this.  */
13179  struct point {int x, y;};
13180  static struct point const zero = {0,0};
13181  /* AIX XL C 1.02.0.0 rejects this.
13182     It does not let you subtract one const X* pointer from another in
13183     an arm of an if-expression whose if-part is not a constant
13184     expression */
13185  const char *g = "string";
13186  pcpcc = &g + (g ? g-g : 0);
13187  /* HPUX 7.0 cc rejects these. */
13188  ++pcpcc;
13189  ppc = (char**) pcpcc;
13190  pcpcc = (char const *const *) ppc;
13191  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13192    char tx;
13193    char *t = &tx;
13194    char const *s = 0 ? (char *) 0 : (char const *) 0;
13195
13196    *t++ = 0;
13197    if (s) return 0;
13198  }
13199  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13200    int x[] = {25, 17};
13201    const int *foo = &x[0];
13202    ++foo;
13203  }
13204  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13205    typedef const int *iptr;
13206    iptr p = 0;
13207    ++p;
13208  }
13209  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13210       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13211    struct s { int j; const int *ap[3]; } bx;
13212    struct s *b = &bx; b->j = 5;
13213  }
13214  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13215    const int foo = 10;
13216    if (!foo) return 0;
13217  }
13218  return !cs[0] && !zero.x;
13219#endif
13220
13221  ;
13222  return 0;
13223}
13224_ACEOF
13225if ac_fn_c_try_compile "$LINENO"; then :
13226  ac_cv_c_const=yes
13227else
13228  ac_cv_c_const=no
13229fi
13230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13231fi
13232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13233$as_echo "$ac_cv_c_const" >&6; }
13234if test $ac_cv_c_const = no; then
13235
13236$as_echo "#define const /**/" >>confdefs.h
13237
13238fi
13239
13240ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13241if test "x$ac_cv_type_size_t" = xyes; then :
13242
13243else
13244
13245cat >>confdefs.h <<_ACEOF
13246#define size_t unsigned int
13247_ACEOF
13248
13249fi
13250
13251
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
13253$as_echo_n "checking for socklen_t... " >&6; }
13254if ${cgi_cv_hassocklen_t+:} false; then :
13255  $as_echo_n "(cached) " >&6
13256else
13257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258/* end confdefs.h.  */
13259
13260
13261#include <sys/types.h>
13262#include <sys/socket.h>
13263
13264socklen_t sl_t;
13265
13266_ACEOF
13267if ac_fn_c_try_compile "$LINENO"; then :
13268  cgi_cv_hassocklen_t=yes
13269else
13270  cgi_cv_hassocklen_t=no
13271fi
13272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13273
13274fi
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cgi_cv_hassocklen_t" >&5
13276$as_echo "$cgi_cv_hassocklen_t" >&6; }
13277
13278socklen_t="int"
13279
13280if test $cgi_cv_hassocklen_t = yes
13281then
13282	:
13283else
13284
13285cat >>confdefs.h <<_ACEOF
13286#define socklen_t int
13287_ACEOF
13288
13289fi
13290
13291
13292for ac_func in strdup strncasecmp
13293do :
13294  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13295ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13296if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13297  cat >>confdefs.h <<_ACEOF
13298#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13299_ACEOF
13300
13301fi
13302done
13303
13304
13305
13306
13307# Check whether --with-formdata was given.
13308if test "${with_formdata+set}" = set; then :
13309  withval=$with_formdata;
13310cat >>confdefs.h <<_ACEOF
13311#define CGIFORMDATA 1
13312_ACEOF
13313
13314fi
13315
13316
13317
13318# Check whether --with-maxargsize was given.
13319if test "${with_maxargsize+set}" = set; then :
13320  withval=$with_maxargsize; CFLAGS="$CFLAGS -DCGIMAXARG=$withval"
13321fi
13322
13323
13324
13325# Check whether --with-maxformargsize was given.
13326if test "${with_maxformargsize+set}" = set; then :
13327  withval=$with_maxformargsize; CFLAGS="$CFLAGS -DCGIMAXFORMDATAARG=$withval"
13328fi
13329
13330
13331if test "$cross_compiling" = yes; then :
13332
13333		MAXLONGSIZE=60
13334		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross compiling, setting MAXLONGSIZE to $MAXLONGSIZE" >&5
13335$as_echo "$as_me: WARNING: Cross compiling, setting MAXLONGSIZE to $MAXLONGSIZE" >&2;}
13336
13337
13338else
13339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340/* end confdefs.h.  */
13341
13342
13343#include	<stdio.h>
13344#include	<stdlib.h>
13345#include	<limits.h>
13346
13347int main()
13348{
13349FILE	*fp=fopen("conftestval", "w");
13350
13351	if (!fp)	exit(1);
13352	fprintf(fp, "-%lu\n", ULONG_MAX);
13353	fclose(fp);
13354	return (0);
13355}
13356
13357
13358_ACEOF
13359if ac_fn_c_try_run "$LINENO"; then :
13360   MAXLONGSIZE=`wc -c conftestval | awk ' { print $1 } '  `
13361else
13362
13363		as_fn_error $? "Unable to run test program." "$LINENO" 5
13364
13365fi
13366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13367  conftest.$ac_objext conftest.beam conftest.$ac_ext
13368fi
13369
13370
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to pass file descriptors" >&5
13372$as_echo_n "checking how to pass file descriptors... " >&6; }
13373if ${ac_cv_sqwebmail_passfd+:} false; then :
13374  $as_echo_n "(cached) " >&6
13375else
13376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377/* end confdefs.h.  */
13378
13379#include <sys/types.h>
13380#include <sys/socket.h>
13381#include <sys/uio.h>
13382
13383int fd; struct msghdr msg;
13384int
13385main ()
13386{
13387
13388	msg.msg_accrights=(caddr_t)fd;
13389	msg.msg_accrightslen=sizeof(fd);
13390
13391  ;
13392  return 0;
13393}
13394_ACEOF
13395if ac_fn_c_try_compile "$LINENO"; then :
13396  ac_cv_sqwebmail_passfd=msg_accrights
13397else
13398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399/* end confdefs.h.  */
13400
13401#include <sys/types.h>
13402#include <sys/socket.h>
13403#include <sys/uio.h>
13404
13405struct msghdr msg; struct cmsghdr cmsg; char buf;
13406
13407int
13408main ()
13409{
13410
13411              msg.msg_control = &buf;
13412              msg.msg_controllen = 1;
13413
13414  ;
13415  return 0;
13416}
13417_ACEOF
13418if ac_fn_c_try_compile "$LINENO"; then :
13419  ac_cv_sqwebmail_passfd=msg_control
13420else
13421  ac_cv_sqwebmail_passfd=none
13422fi
13423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424fi
13425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426fi
13427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sqwebmail_passfd" >&5
13428$as_echo "$ac_cv_sqwebmail_passfd" >&6; }
13429
13430if test "$ac_cv_sqwebmail_passfd" = "msg_accrights"
13431then
13432
13433cat >>confdefs.h <<_ACEOF
13434#define CGI_PASSFD_MSGACCRIGHTS 1
13435_ACEOF
13436
13437fi
13438
13439if test "$ac_cv_sqwebmail_passfd" = "msg_control"
13440then
13441
13442cat >>confdefs.h <<_ACEOF
13443#define CGI_PASSFD_MSGCONTROL 1
13444_ACEOF
13445
13446fi
13447
13448
13449if test "$GCC" = yes ; then
13450        CFLAGS="$CFLAGS -Wall"
13451fi
13452
13453CFLAGS="$CFLAGS -I.. -I$srcdir/.."
13454# Check whether --enable-largefile was given.
13455if test "${enable_largefile+set}" = set; then :
13456  enableval=$enable_largefile;
13457fi
13458
13459if test "$enable_largefile" != no; then
13460
13461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13462$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13463if ${ac_cv_sys_largefile_CC+:} false; then :
13464  $as_echo_n "(cached) " >&6
13465else
13466  ac_cv_sys_largefile_CC=no
13467     if test "$GCC" != yes; then
13468       ac_save_CC=$CC
13469       while :; do
13470	 # IRIX 6.2 and later do not support large files by default,
13471	 # so use the C compiler's -n32 option if that helps.
13472	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473/* end confdefs.h.  */
13474#include <sys/types.h>
13475 /* Check that off_t can represent 2**63 - 1 correctly.
13476    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13477    since some C++ compilers masquerading as C compilers
13478    incorrectly reject 9223372036854775807.  */
13479#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13480  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13481		       && LARGE_OFF_T % 2147483647 == 1)
13482		      ? 1 : -1];
13483int
13484main ()
13485{
13486
13487  ;
13488  return 0;
13489}
13490_ACEOF
13491	 if ac_fn_c_try_compile "$LINENO"; then :
13492  break
13493fi
13494rm -f core conftest.err conftest.$ac_objext
13495	 CC="$CC -n32"
13496	 if ac_fn_c_try_compile "$LINENO"; then :
13497  ac_cv_sys_largefile_CC=' -n32'; break
13498fi
13499rm -f core conftest.err conftest.$ac_objext
13500	 break
13501       done
13502       CC=$ac_save_CC
13503       rm -f conftest.$ac_ext
13504    fi
13505fi
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13507$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13508  if test "$ac_cv_sys_largefile_CC" != no; then
13509    CC=$CC$ac_cv_sys_largefile_CC
13510  fi
13511
13512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13513$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13514if ${ac_cv_sys_file_offset_bits+:} false; then :
13515  $as_echo_n "(cached) " >&6
13516else
13517  while :; do
13518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519/* end confdefs.h.  */
13520#include <sys/types.h>
13521 /* Check that off_t can represent 2**63 - 1 correctly.
13522    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13523    since some C++ compilers masquerading as C compilers
13524    incorrectly reject 9223372036854775807.  */
13525#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13526  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13527		       && LARGE_OFF_T % 2147483647 == 1)
13528		      ? 1 : -1];
13529int
13530main ()
13531{
13532
13533  ;
13534  return 0;
13535}
13536_ACEOF
13537if ac_fn_c_try_compile "$LINENO"; then :
13538  ac_cv_sys_file_offset_bits=no; break
13539fi
13540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542/* end confdefs.h.  */
13543#define _FILE_OFFSET_BITS 64
13544#include <sys/types.h>
13545 /* Check that off_t can represent 2**63 - 1 correctly.
13546    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13547    since some C++ compilers masquerading as C compilers
13548    incorrectly reject 9223372036854775807.  */
13549#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13550  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13551		       && LARGE_OFF_T % 2147483647 == 1)
13552		      ? 1 : -1];
13553int
13554main ()
13555{
13556
13557  ;
13558  return 0;
13559}
13560_ACEOF
13561if ac_fn_c_try_compile "$LINENO"; then :
13562  ac_cv_sys_file_offset_bits=64; break
13563fi
13564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565  ac_cv_sys_file_offset_bits=unknown
13566  break
13567done
13568fi
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13570$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13571case $ac_cv_sys_file_offset_bits in #(
13572  no | unknown) ;;
13573  *)
13574cat >>confdefs.h <<_ACEOF
13575#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13576_ACEOF
13577;;
13578esac
13579rm -rf conftest*
13580  if test $ac_cv_sys_file_offset_bits = unknown; then
13581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13582$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13583if ${ac_cv_sys_large_files+:} false; then :
13584  $as_echo_n "(cached) " >&6
13585else
13586  while :; do
13587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588/* end confdefs.h.  */
13589#include <sys/types.h>
13590 /* Check that off_t can represent 2**63 - 1 correctly.
13591    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13592    since some C++ compilers masquerading as C compilers
13593    incorrectly reject 9223372036854775807.  */
13594#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13595  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13596		       && LARGE_OFF_T % 2147483647 == 1)
13597		      ? 1 : -1];
13598int
13599main ()
13600{
13601
13602  ;
13603  return 0;
13604}
13605_ACEOF
13606if ac_fn_c_try_compile "$LINENO"; then :
13607  ac_cv_sys_large_files=no; break
13608fi
13609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611/* end confdefs.h.  */
13612#define _LARGE_FILES 1
13613#include <sys/types.h>
13614 /* Check that off_t can represent 2**63 - 1 correctly.
13615    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13616    since some C++ compilers masquerading as C compilers
13617    incorrectly reject 9223372036854775807.  */
13618#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13619  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13620		       && LARGE_OFF_T % 2147483647 == 1)
13621		      ? 1 : -1];
13622int
13623main ()
13624{
13625
13626  ;
13627  return 0;
13628}
13629_ACEOF
13630if ac_fn_c_try_compile "$LINENO"; then :
13631  ac_cv_sys_large_files=1; break
13632fi
13633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634  ac_cv_sys_large_files=unknown
13635  break
13636done
13637fi
13638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13639$as_echo "$ac_cv_sys_large_files" >&6; }
13640case $ac_cv_sys_large_files in #(
13641  no | unknown) ;;
13642  *)
13643cat >>confdefs.h <<_ACEOF
13644#define _LARGE_FILES $ac_cv_sys_large_files
13645_ACEOF
13646;;
13647esac
13648rm -rf conftest*
13649  fi
13650
13651
13652fi
13653
13654
13655
13656cat >>confdefs.h <<_ACEOF
13657#define MAXLONGSIZE $MAXLONGSIZE
13658_ACEOF
13659
13660ac_config_files="$ac_config_files Makefile"
13661
13662cat >confcache <<\_ACEOF
13663# This file is a shell script that caches the results of configure
13664# tests run on this system so they can be shared between configure
13665# scripts and configure runs, see configure's option --config-cache.
13666# It is not useful on other systems.  If it contains results you don't
13667# want to keep, you may remove or edit it.
13668#
13669# config.status only pays attention to the cache file if you give it
13670# the --recheck option to rerun configure.
13671#
13672# `ac_cv_env_foo' variables (set or unset) will be overridden when
13673# loading this file, other *unset* `ac_cv_foo' will be assigned the
13674# following values.
13675
13676_ACEOF
13677
13678# The following way of writing the cache mishandles newlines in values,
13679# but we know of no workaround that is simple, portable, and efficient.
13680# So, we kill variables containing newlines.
13681# Ultrix sh set writes to stderr and can't be redirected directly,
13682# and sets the high bit in the cache file unless we assign to the vars.
13683(
13684  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13685    eval ac_val=\$$ac_var
13686    case $ac_val in #(
13687    *${as_nl}*)
13688      case $ac_var in #(
13689      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13690$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13691      esac
13692      case $ac_var in #(
13693      _ | IFS | as_nl) ;; #(
13694      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13695      *) { eval $ac_var=; unset $ac_var;} ;;
13696      esac ;;
13697    esac
13698  done
13699
13700  (set) 2>&1 |
13701    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13702    *${as_nl}ac_space=\ *)
13703      # `set' does not quote correctly, so add quotes: double-quote
13704      # substitution turns \\\\ into \\, and sed turns \\ into \.
13705      sed -n \
13706	"s/'/'\\\\''/g;
13707	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13708      ;; #(
13709    *)
13710      # `set' quotes correctly as required by POSIX, so do not add quotes.
13711      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13712      ;;
13713    esac |
13714    sort
13715) |
13716  sed '
13717     /^ac_cv_env_/b end
13718     t clear
13719     :clear
13720     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13721     t end
13722     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13723     :end' >>confcache
13724if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13725  if test -w "$cache_file"; then
13726    if test "x$cache_file" != "x/dev/null"; then
13727      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13728$as_echo "$as_me: updating cache $cache_file" >&6;}
13729      if test ! -f "$cache_file" || test -h "$cache_file"; then
13730	cat confcache >"$cache_file"
13731      else
13732        case $cache_file in #(
13733        */* | ?:*)
13734	  mv -f confcache "$cache_file"$$ &&
13735	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13736        *)
13737	  mv -f confcache "$cache_file" ;;
13738	esac
13739      fi
13740    fi
13741  else
13742    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13743$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13744  fi
13745fi
13746rm -f confcache
13747
13748test "x$prefix" = xNONE && prefix=$ac_default_prefix
13749# Let make expand exec_prefix.
13750test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13751
13752DEFS=-DHAVE_CONFIG_H
13753
13754ac_libobjs=
13755ac_ltlibobjs=
13756U=
13757for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13758  # 1. Remove the extension, and $U if already installed.
13759  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13760  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13761  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13762  #    will be set to the directory where LIBOBJS objects are built.
13763  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13764  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13765done
13766LIBOBJS=$ac_libobjs
13767
13768LTLIBOBJS=$ac_ltlibobjs
13769
13770
13771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13772$as_echo_n "checking that generated files are newer than configure... " >&6; }
13773   if test -n "$am_sleep_pid"; then
13774     # Hide warnings about reused PIDs.
13775     wait $am_sleep_pid 2>/dev/null
13776   fi
13777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13778$as_echo "done" >&6; }
13779 if test -n "$EXEEXT"; then
13780  am__EXEEXT_TRUE=
13781  am__EXEEXT_FALSE='#'
13782else
13783  am__EXEEXT_TRUE='#'
13784  am__EXEEXT_FALSE=
13785fi
13786
13787if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13788  as_fn_error $? "conditional \"AMDEP\" was never defined.
13789Usually this means the macro was only invoked conditionally." "$LINENO" 5
13790fi
13791if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13792  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13793Usually this means the macro was only invoked conditionally." "$LINENO" 5
13794fi
13795if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13796  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13797Usually this means the macro was only invoked conditionally." "$LINENO" 5
13798fi
13799
13800: "${CONFIG_STATUS=./config.status}"
13801ac_write_fail=0
13802ac_clean_files_save=$ac_clean_files
13803ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13805$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13806as_write_fail=0
13807cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13808#! $SHELL
13809# Generated by $as_me.
13810# Run this file to recreate the current configuration.
13811# Compiler output produced by configure, useful for debugging
13812# configure, is in config.log if it exists.
13813
13814debug=false
13815ac_cs_recheck=false
13816ac_cs_silent=false
13817
13818SHELL=\${CONFIG_SHELL-$SHELL}
13819export SHELL
13820_ASEOF
13821cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13822## -------------------- ##
13823## M4sh Initialization. ##
13824## -------------------- ##
13825
13826# Be more Bourne compatible
13827DUALCASE=1; export DUALCASE # for MKS sh
13828if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13829  emulate sh
13830  NULLCMD=:
13831  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13832  # is contrary to our usage.  Disable this feature.
13833  alias -g '${1+"$@"}'='"$@"'
13834  setopt NO_GLOB_SUBST
13835else
13836  case `(set -o) 2>/dev/null` in #(
13837  *posix*) :
13838    set -o posix ;; #(
13839  *) :
13840     ;;
13841esac
13842fi
13843
13844
13845as_nl='
13846'
13847export as_nl
13848# Printing a long string crashes Solaris 7 /usr/bin/printf.
13849as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13850as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13851as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13852# Prefer a ksh shell builtin over an external printf program on Solaris,
13853# but without wasting forks for bash or zsh.
13854if test -z "$BASH_VERSION$ZSH_VERSION" \
13855    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13856  as_echo='print -r --'
13857  as_echo_n='print -rn --'
13858elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13859  as_echo='printf %s\n'
13860  as_echo_n='printf %s'
13861else
13862  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13863    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13864    as_echo_n='/usr/ucb/echo -n'
13865  else
13866    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13867    as_echo_n_body='eval
13868      arg=$1;
13869      case $arg in #(
13870      *"$as_nl"*)
13871	expr "X$arg" : "X\\(.*\\)$as_nl";
13872	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13873      esac;
13874      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13875    '
13876    export as_echo_n_body
13877    as_echo_n='sh -c $as_echo_n_body as_echo'
13878  fi
13879  export as_echo_body
13880  as_echo='sh -c $as_echo_body as_echo'
13881fi
13882
13883# The user is always right.
13884if test "${PATH_SEPARATOR+set}" != set; then
13885  PATH_SEPARATOR=:
13886  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13887    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13888      PATH_SEPARATOR=';'
13889  }
13890fi
13891
13892
13893# IFS
13894# We need space, tab and new line, in precisely that order.  Quoting is
13895# there to prevent editors from complaining about space-tab.
13896# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13897# splitting by setting IFS to empty value.)
13898IFS=" ""	$as_nl"
13899
13900# Find who we are.  Look in the path if we contain no directory separator.
13901as_myself=
13902case $0 in #((
13903  *[\\/]* ) as_myself=$0 ;;
13904  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905for as_dir in $PATH
13906do
13907  IFS=$as_save_IFS
13908  test -z "$as_dir" && as_dir=.
13909    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13910  done
13911IFS=$as_save_IFS
13912
13913     ;;
13914esac
13915# We did not find ourselves, most probably we were run as `sh COMMAND'
13916# in which case we are not to be found in the path.
13917if test "x$as_myself" = x; then
13918  as_myself=$0
13919fi
13920if test ! -f "$as_myself"; then
13921  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13922  exit 1
13923fi
13924
13925# Unset variables that we do not need and which cause bugs (e.g. in
13926# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13927# suppresses any "Segmentation fault" message there.  '((' could
13928# trigger a bug in pdksh 5.2.14.
13929for as_var in BASH_ENV ENV MAIL MAILPATH
13930do eval test x\${$as_var+set} = xset \
13931  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13932done
13933PS1='$ '
13934PS2='> '
13935PS4='+ '
13936
13937# NLS nuisances.
13938LC_ALL=C
13939export LC_ALL
13940LANGUAGE=C
13941export LANGUAGE
13942
13943# CDPATH.
13944(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13945
13946
13947# as_fn_error STATUS ERROR [LINENO LOG_FD]
13948# ----------------------------------------
13949# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13950# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13951# script with STATUS, using 1 if that was 0.
13952as_fn_error ()
13953{
13954  as_status=$1; test $as_status -eq 0 && as_status=1
13955  if test "$4"; then
13956    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13957    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13958  fi
13959  $as_echo "$as_me: error: $2" >&2
13960  as_fn_exit $as_status
13961} # as_fn_error
13962
13963
13964# as_fn_set_status STATUS
13965# -----------------------
13966# Set $? to STATUS, without forking.
13967as_fn_set_status ()
13968{
13969  return $1
13970} # as_fn_set_status
13971
13972# as_fn_exit STATUS
13973# -----------------
13974# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13975as_fn_exit ()
13976{
13977  set +e
13978  as_fn_set_status $1
13979  exit $1
13980} # as_fn_exit
13981
13982# as_fn_unset VAR
13983# ---------------
13984# Portably unset VAR.
13985as_fn_unset ()
13986{
13987  { eval $1=; unset $1;}
13988}
13989as_unset=as_fn_unset
13990# as_fn_append VAR VALUE
13991# ----------------------
13992# Append the text in VALUE to the end of the definition contained in VAR. Take
13993# advantage of any shell optimizations that allow amortized linear growth over
13994# repeated appends, instead of the typical quadratic growth present in naive
13995# implementations.
13996if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13997  eval 'as_fn_append ()
13998  {
13999    eval $1+=\$2
14000  }'
14001else
14002  as_fn_append ()
14003  {
14004    eval $1=\$$1\$2
14005  }
14006fi # as_fn_append
14007
14008# as_fn_arith ARG...
14009# ------------------
14010# Perform arithmetic evaluation on the ARGs, and store the result in the
14011# global $as_val. Take advantage of shells that can avoid forks. The arguments
14012# must be portable across $(()) and expr.
14013if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14014  eval 'as_fn_arith ()
14015  {
14016    as_val=$(( $* ))
14017  }'
14018else
14019  as_fn_arith ()
14020  {
14021    as_val=`expr "$@" || test $? -eq 1`
14022  }
14023fi # as_fn_arith
14024
14025
14026if expr a : '\(a\)' >/dev/null 2>&1 &&
14027   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14028  as_expr=expr
14029else
14030  as_expr=false
14031fi
14032
14033if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14034  as_basename=basename
14035else
14036  as_basename=false
14037fi
14038
14039if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14040  as_dirname=dirname
14041else
14042  as_dirname=false
14043fi
14044
14045as_me=`$as_basename -- "$0" ||
14046$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14047	 X"$0" : 'X\(//\)$' \| \
14048	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14049$as_echo X/"$0" |
14050    sed '/^.*\/\([^/][^/]*\)\/*$/{
14051	    s//\1/
14052	    q
14053	  }
14054	  /^X\/\(\/\/\)$/{
14055	    s//\1/
14056	    q
14057	  }
14058	  /^X\/\(\/\).*/{
14059	    s//\1/
14060	    q
14061	  }
14062	  s/.*/./; q'`
14063
14064# Avoid depending upon Character Ranges.
14065as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14066as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14067as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14068as_cr_digits='0123456789'
14069as_cr_alnum=$as_cr_Letters$as_cr_digits
14070
14071ECHO_C= ECHO_N= ECHO_T=
14072case `echo -n x` in #(((((
14073-n*)
14074  case `echo 'xy\c'` in
14075  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14076  xy)  ECHO_C='\c';;
14077  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14078       ECHO_T='	';;
14079  esac;;
14080*)
14081  ECHO_N='-n';;
14082esac
14083
14084rm -f conf$$ conf$$.exe conf$$.file
14085if test -d conf$$.dir; then
14086  rm -f conf$$.dir/conf$$.file
14087else
14088  rm -f conf$$.dir
14089  mkdir conf$$.dir 2>/dev/null
14090fi
14091if (echo >conf$$.file) 2>/dev/null; then
14092  if ln -s conf$$.file conf$$ 2>/dev/null; then
14093    as_ln_s='ln -s'
14094    # ... but there are two gotchas:
14095    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14096    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14097    # In both cases, we have to default to `cp -pR'.
14098    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14099      as_ln_s='cp -pR'
14100  elif ln conf$$.file conf$$ 2>/dev/null; then
14101    as_ln_s=ln
14102  else
14103    as_ln_s='cp -pR'
14104  fi
14105else
14106  as_ln_s='cp -pR'
14107fi
14108rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14109rmdir conf$$.dir 2>/dev/null
14110
14111
14112# as_fn_mkdir_p
14113# -------------
14114# Create "$as_dir" as a directory, including parents if necessary.
14115as_fn_mkdir_p ()
14116{
14117
14118  case $as_dir in #(
14119  -*) as_dir=./$as_dir;;
14120  esac
14121  test -d "$as_dir" || eval $as_mkdir_p || {
14122    as_dirs=
14123    while :; do
14124      case $as_dir in #(
14125      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14126      *) as_qdir=$as_dir;;
14127      esac
14128      as_dirs="'$as_qdir' $as_dirs"
14129      as_dir=`$as_dirname -- "$as_dir" ||
14130$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14131	 X"$as_dir" : 'X\(//\)[^/]' \| \
14132	 X"$as_dir" : 'X\(//\)$' \| \
14133	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14134$as_echo X"$as_dir" |
14135    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14136	    s//\1/
14137	    q
14138	  }
14139	  /^X\(\/\/\)[^/].*/{
14140	    s//\1/
14141	    q
14142	  }
14143	  /^X\(\/\/\)$/{
14144	    s//\1/
14145	    q
14146	  }
14147	  /^X\(\/\).*/{
14148	    s//\1/
14149	    q
14150	  }
14151	  s/.*/./; q'`
14152      test -d "$as_dir" && break
14153    done
14154    test -z "$as_dirs" || eval "mkdir $as_dirs"
14155  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14156
14157
14158} # as_fn_mkdir_p
14159if mkdir -p . 2>/dev/null; then
14160  as_mkdir_p='mkdir -p "$as_dir"'
14161else
14162  test -d ./-p && rmdir ./-p
14163  as_mkdir_p=false
14164fi
14165
14166
14167# as_fn_executable_p FILE
14168# -----------------------
14169# Test if FILE is an executable regular file.
14170as_fn_executable_p ()
14171{
14172  test -f "$1" && test -x "$1"
14173} # as_fn_executable_p
14174as_test_x='test -x'
14175as_executable_p=as_fn_executable_p
14176
14177# Sed expression to map a string onto a valid CPP name.
14178as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14179
14180# Sed expression to map a string onto a valid variable name.
14181as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14182
14183
14184exec 6>&1
14185## ----------------------------------- ##
14186## Main body of $CONFIG_STATUS script. ##
14187## ----------------------------------- ##
14188_ASEOF
14189test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14190
14191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14192# Save the log message, to keep $0 and so on meaningful, and to
14193# report actual input values of CONFIG_FILES etc. instead of their
14194# values after options handling.
14195ac_log="
14196This file was extended by cgi $as_me 0.10, which was
14197generated by GNU Autoconf 2.69.  Invocation command line was
14198
14199  CONFIG_FILES    = $CONFIG_FILES
14200  CONFIG_HEADERS  = $CONFIG_HEADERS
14201  CONFIG_LINKS    = $CONFIG_LINKS
14202  CONFIG_COMMANDS = $CONFIG_COMMANDS
14203  $ $0 $@
14204
14205on `(hostname || uname -n) 2>/dev/null | sed 1q`
14206"
14207
14208_ACEOF
14209
14210case $ac_config_files in *"
14211"*) set x $ac_config_files; shift; ac_config_files=$*;;
14212esac
14213
14214case $ac_config_headers in *"
14215"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14216esac
14217
14218
14219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14220# Files that config.status was made for.
14221config_files="$ac_config_files"
14222config_headers="$ac_config_headers"
14223config_commands="$ac_config_commands"
14224
14225_ACEOF
14226
14227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14228ac_cs_usage="\
14229\`$as_me' instantiates files and other configuration actions
14230from templates according to the current configuration.  Unless the files
14231and actions are specified as TAGs, all are instantiated by default.
14232
14233Usage: $0 [OPTION]... [TAG]...
14234
14235  -h, --help       print this help, then exit
14236  -V, --version    print version number and configuration settings, then exit
14237      --config     print configuration, then exit
14238  -q, --quiet, --silent
14239                   do not print progress messages
14240  -d, --debug      don't remove temporary files
14241      --recheck    update $as_me by reconfiguring in the same conditions
14242      --file=FILE[:TEMPLATE]
14243                   instantiate the configuration file FILE
14244      --header=FILE[:TEMPLATE]
14245                   instantiate the configuration header FILE
14246
14247Configuration files:
14248$config_files
14249
14250Configuration headers:
14251$config_headers
14252
14253Configuration commands:
14254$config_commands
14255
14256Report bugs to <courier-users@lists.sourceforge.net>."
14257
14258_ACEOF
14259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14260ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14261ac_cs_version="\\
14262cgi config.status 0.10
14263configured by $0, generated by GNU Autoconf 2.69,
14264  with options \\"\$ac_cs_config\\"
14265
14266Copyright (C) 2012 Free Software Foundation, Inc.
14267This config.status script is free software; the Free Software Foundation
14268gives unlimited permission to copy, distribute and modify it."
14269
14270ac_pwd='$ac_pwd'
14271srcdir='$srcdir'
14272INSTALL='$INSTALL'
14273MKDIR_P='$MKDIR_P'
14274AWK='$AWK'
14275test -n "\$AWK" || AWK=awk
14276_ACEOF
14277
14278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14279# The default lists apply if the user does not specify any file.
14280ac_need_defaults=:
14281while test $# != 0
14282do
14283  case $1 in
14284  --*=?*)
14285    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14286    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14287    ac_shift=:
14288    ;;
14289  --*=)
14290    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14291    ac_optarg=
14292    ac_shift=:
14293    ;;
14294  *)
14295    ac_option=$1
14296    ac_optarg=$2
14297    ac_shift=shift
14298    ;;
14299  esac
14300
14301  case $ac_option in
14302  # Handling of the options.
14303  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14304    ac_cs_recheck=: ;;
14305  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14306    $as_echo "$ac_cs_version"; exit ;;
14307  --config | --confi | --conf | --con | --co | --c )
14308    $as_echo "$ac_cs_config"; exit ;;
14309  --debug | --debu | --deb | --de | --d | -d )
14310    debug=: ;;
14311  --file | --fil | --fi | --f )
14312    $ac_shift
14313    case $ac_optarg in
14314    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14315    '') as_fn_error $? "missing file argument" ;;
14316    esac
14317    as_fn_append CONFIG_FILES " '$ac_optarg'"
14318    ac_need_defaults=false;;
14319  --header | --heade | --head | --hea )
14320    $ac_shift
14321    case $ac_optarg in
14322    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14323    esac
14324    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14325    ac_need_defaults=false;;
14326  --he | --h)
14327    # Conflict between --help and --header
14328    as_fn_error $? "ambiguous option: \`$1'
14329Try \`$0 --help' for more information.";;
14330  --help | --hel | -h )
14331    $as_echo "$ac_cs_usage"; exit ;;
14332  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14333  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14334    ac_cs_silent=: ;;
14335
14336  # This is an error.
14337  -*) as_fn_error $? "unrecognized option: \`$1'
14338Try \`$0 --help' for more information." ;;
14339
14340  *) as_fn_append ac_config_targets " $1"
14341     ac_need_defaults=false ;;
14342
14343  esac
14344  shift
14345done
14346
14347ac_configure_extra_args=
14348
14349if $ac_cs_silent; then
14350  exec 6>/dev/null
14351  ac_configure_extra_args="$ac_configure_extra_args --silent"
14352fi
14353
14354_ACEOF
14355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14356if \$ac_cs_recheck; then
14357  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14358  shift
14359  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14360  CONFIG_SHELL='$SHELL'
14361  export CONFIG_SHELL
14362  exec "\$@"
14363fi
14364
14365_ACEOF
14366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14367exec 5>>config.log
14368{
14369  echo
14370  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14371## Running $as_me. ##
14372_ASBOX
14373  $as_echo "$ac_log"
14374} >&5
14375
14376_ACEOF
14377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14378#
14379# INIT-COMMANDS
14380#
14381AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14382
14383
14384# The HP-UX ksh and POSIX shell print the target directory to stdout
14385# if CDPATH is set.
14386(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14387
14388sed_quote_subst='$sed_quote_subst'
14389double_quote_subst='$double_quote_subst'
14390delay_variable_subst='$delay_variable_subst'
14391macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14392macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14393enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14394enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14395pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14396enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14397shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14398SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14399ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14400PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14401host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14402host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14403host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14404build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14405build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14406build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14407SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14408Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14409GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14410EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14411FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14412LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14413NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14414LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14415max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14416ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14417exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14418lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14419lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14420lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14421lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14422lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14423reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14424reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14425OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14426deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14427file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14428file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14429want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14430DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14431sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14432AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14433AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14434archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14435STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14436RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14437old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14438old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14439old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14440lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14441CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14442CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14443compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14444GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14445lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14446lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14447lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14448lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14449lt_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"`'
14450lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14451nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14452lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14453lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14454objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14455MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14456lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14457lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14458lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14459lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14460lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14461need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14462MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14463DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14464NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14465LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14466OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14467OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14468libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14469shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14470extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14471archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14472enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14473export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14474whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14475compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14476old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14477old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14478archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14479archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14480module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14481module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14482with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14483allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14484no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14485hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14486hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14487hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14488hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14489hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14490hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14491hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14492inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14493link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14494always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14495export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14496exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14497include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14498prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14499postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14500file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14501variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14502need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14503need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14504version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14505runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14506shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14507shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14508libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14509library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14510soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14511install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14512postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14513postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14514finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14515finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14516hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14517sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14518configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14519configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14520hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14521enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14522enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14523enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14524old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14525striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14526
14527LTCC='$LTCC'
14528LTCFLAGS='$LTCFLAGS'
14529compiler='$compiler_DEFAULT'
14530
14531# A function that is used when there is no print builtin or printf.
14532func_fallback_echo ()
14533{
14534  eval 'cat <<_LTECHO_EOF
14535\$1
14536_LTECHO_EOF'
14537}
14538
14539# Quote evaled strings.
14540for var in SHELL \
14541ECHO \
14542PATH_SEPARATOR \
14543SED \
14544GREP \
14545EGREP \
14546FGREP \
14547LD \
14548NM \
14549LN_S \
14550lt_SP2NL \
14551lt_NL2SP \
14552reload_flag \
14553OBJDUMP \
14554deplibs_check_method \
14555file_magic_cmd \
14556file_magic_glob \
14557want_nocaseglob \
14558DLLTOOL \
14559sharedlib_from_linklib_cmd \
14560AR \
14561AR_FLAGS \
14562archiver_list_spec \
14563STRIP \
14564RANLIB \
14565CC \
14566CFLAGS \
14567compiler \
14568lt_cv_sys_global_symbol_pipe \
14569lt_cv_sys_global_symbol_to_cdecl \
14570lt_cv_sys_global_symbol_to_import \
14571lt_cv_sys_global_symbol_to_c_name_address \
14572lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14573lt_cv_nm_interface \
14574nm_file_list_spec \
14575lt_cv_truncate_bin \
14576lt_prog_compiler_no_builtin_flag \
14577lt_prog_compiler_pic \
14578lt_prog_compiler_wl \
14579lt_prog_compiler_static \
14580lt_cv_prog_compiler_c_o \
14581need_locks \
14582MANIFEST_TOOL \
14583DSYMUTIL \
14584NMEDIT \
14585LIPO \
14586OTOOL \
14587OTOOL64 \
14588shrext_cmds \
14589export_dynamic_flag_spec \
14590whole_archive_flag_spec \
14591compiler_needs_object \
14592with_gnu_ld \
14593allow_undefined_flag \
14594no_undefined_flag \
14595hardcode_libdir_flag_spec \
14596hardcode_libdir_separator \
14597exclude_expsyms \
14598include_expsyms \
14599file_list_spec \
14600variables_saved_for_relink \
14601libname_spec \
14602library_names_spec \
14603soname_spec \
14604install_override_mode \
14605finish_eval \
14606old_striplib \
14607striplib; do
14608    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14609    *[\\\\\\\`\\"\\\$]*)
14610      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14611      ;;
14612    *)
14613      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14614      ;;
14615    esac
14616done
14617
14618# Double-quote double-evaled strings.
14619for var in reload_cmds \
14620old_postinstall_cmds \
14621old_postuninstall_cmds \
14622old_archive_cmds \
14623extract_expsyms_cmds \
14624old_archive_from_new_cmds \
14625old_archive_from_expsyms_cmds \
14626archive_cmds \
14627archive_expsym_cmds \
14628module_cmds \
14629module_expsym_cmds \
14630export_symbols_cmds \
14631prelink_cmds \
14632postlink_cmds \
14633postinstall_cmds \
14634postuninstall_cmds \
14635finish_cmds \
14636sys_lib_search_path_spec \
14637configure_time_dlsearch_path \
14638configure_time_lt_sys_library_path; do
14639    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14640    *[\\\\\\\`\\"\\\$]*)
14641      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14642      ;;
14643    *)
14644      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14645      ;;
14646    esac
14647done
14648
14649ac_aux_dir='$ac_aux_dir'
14650
14651# See if we are running on zsh, and set the options that allow our
14652# commands through without removal of \ escapes INIT.
14653if test -n "\${ZSH_VERSION+set}"; then
14654   setopt NO_GLOB_SUBST
14655fi
14656
14657
14658    PACKAGE='$PACKAGE'
14659    VERSION='$VERSION'
14660    RM='$RM'
14661    ofile='$ofile'
14662
14663
14664
14665
14666_ACEOF
14667
14668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14669
14670# Handling of arguments.
14671for ac_config_target in $ac_config_targets
14672do
14673  case $ac_config_target in
14674    "cgi_config.h") CONFIG_HEADERS="$CONFIG_HEADERS cgi_config.h" ;;
14675    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14676    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14677    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14678
14679  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14680  esac
14681done
14682
14683
14684# If the user did not use the arguments to specify the items to instantiate,
14685# then the envvar interface is used.  Set only those that are not.
14686# We use the long form for the default assignment because of an extremely
14687# bizarre bug on SunOS 4.1.3.
14688if $ac_need_defaults; then
14689  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14690  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14691  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14692fi
14693
14694# Have a temporary directory for convenience.  Make it in the build tree
14695# simply because there is no reason against having it here, and in addition,
14696# creating and moving files from /tmp can sometimes cause problems.
14697# Hook for its removal unless debugging.
14698# Note that there is a small window in which the directory will not be cleaned:
14699# after its creation but before its name has been assigned to `$tmp'.
14700$debug ||
14701{
14702  tmp= ac_tmp=
14703  trap 'exit_status=$?
14704  : "${ac_tmp:=$tmp}"
14705  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14706' 0
14707  trap 'as_fn_exit 1' 1 2 13 15
14708}
14709# Create a (secure) tmp directory for tmp files.
14710
14711{
14712  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14713  test -d "$tmp"
14714}  ||
14715{
14716  tmp=./conf$$-$RANDOM
14717  (umask 077 && mkdir "$tmp")
14718} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14719ac_tmp=$tmp
14720
14721# Set up the scripts for CONFIG_FILES section.
14722# No need to generate them if there are no CONFIG_FILES.
14723# This happens for instance with `./config.status config.h'.
14724if test -n "$CONFIG_FILES"; then
14725
14726
14727ac_cr=`echo X | tr X '\015'`
14728# On cygwin, bash can eat \r inside `` if the user requested igncr.
14729# But we know of no other shell where ac_cr would be empty at this
14730# point, so we can use a bashism as a fallback.
14731if test "x$ac_cr" = x; then
14732  eval ac_cr=\$\'\\r\'
14733fi
14734ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14735if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14736  ac_cs_awk_cr='\\r'
14737else
14738  ac_cs_awk_cr=$ac_cr
14739fi
14740
14741echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14742_ACEOF
14743
14744
14745{
14746  echo "cat >conf$$subs.awk <<_ACEOF" &&
14747  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14748  echo "_ACEOF"
14749} >conf$$subs.sh ||
14750  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14751ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14752ac_delim='%!_!# '
14753for ac_last_try in false false false false false :; do
14754  . ./conf$$subs.sh ||
14755    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14756
14757  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14758  if test $ac_delim_n = $ac_delim_num; then
14759    break
14760  elif $ac_last_try; then
14761    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14762  else
14763    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14764  fi
14765done
14766rm -f conf$$subs.sh
14767
14768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14769cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14770_ACEOF
14771sed -n '
14772h
14773s/^/S["/; s/!.*/"]=/
14774p
14775g
14776s/^[^!]*!//
14777:repl
14778t repl
14779s/'"$ac_delim"'$//
14780t delim
14781:nl
14782h
14783s/\(.\{148\}\)..*/\1/
14784t more1
14785s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14786p
14787n
14788b repl
14789:more1
14790s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14791p
14792g
14793s/.\{148\}//
14794t nl
14795:delim
14796h
14797s/\(.\{148\}\)..*/\1/
14798t more2
14799s/["\\]/\\&/g; s/^/"/; s/$/"/
14800p
14801b
14802:more2
14803s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14804p
14805g
14806s/.\{148\}//
14807t delim
14808' <conf$$subs.awk | sed '
14809/^[^""]/{
14810  N
14811  s/\n//
14812}
14813' >>$CONFIG_STATUS || ac_write_fail=1
14814rm -f conf$$subs.awk
14815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14816_ACAWK
14817cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14818  for (key in S) S_is_set[key] = 1
14819  FS = ""
14820
14821}
14822{
14823  line = $ 0
14824  nfields = split(line, field, "@")
14825  substed = 0
14826  len = length(field[1])
14827  for (i = 2; i < nfields; i++) {
14828    key = field[i]
14829    keylen = length(key)
14830    if (S_is_set[key]) {
14831      value = S[key]
14832      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14833      len += length(value) + length(field[++i])
14834      substed = 1
14835    } else
14836      len += 1 + keylen
14837  }
14838
14839  print line
14840}
14841
14842_ACAWK
14843_ACEOF
14844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14845if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14846  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14847else
14848  cat
14849fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14850  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14851_ACEOF
14852
14853# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14854# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14855# trailing colons and then remove the whole line if VPATH becomes empty
14856# (actually we leave an empty line to preserve line numbers).
14857if test "x$srcdir" = x.; then
14858  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14859h
14860s///
14861s/^/:/
14862s/[	 ]*$/:/
14863s/:\$(srcdir):/:/g
14864s/:\${srcdir}:/:/g
14865s/:@srcdir@:/:/g
14866s/^:*//
14867s/:*$//
14868x
14869s/\(=[	 ]*\).*/\1/
14870G
14871s/\n//
14872s/^[^=]*=[	 ]*$//
14873}'
14874fi
14875
14876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14877fi # test -n "$CONFIG_FILES"
14878
14879# Set up the scripts for CONFIG_HEADERS section.
14880# No need to generate them if there are no CONFIG_HEADERS.
14881# This happens for instance with `./config.status Makefile'.
14882if test -n "$CONFIG_HEADERS"; then
14883cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14884BEGIN {
14885_ACEOF
14886
14887# Transform confdefs.h into an awk script `defines.awk', embedded as
14888# here-document in config.status, that substitutes the proper values into
14889# config.h.in to produce config.h.
14890
14891# Create a delimiter string that does not exist in confdefs.h, to ease
14892# handling of long lines.
14893ac_delim='%!_!# '
14894for ac_last_try in false false :; do
14895  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14896  if test -z "$ac_tt"; then
14897    break
14898  elif $ac_last_try; then
14899    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14900  else
14901    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14902  fi
14903done
14904
14905# For the awk script, D is an array of macro values keyed by name,
14906# likewise P contains macro parameters if any.  Preserve backslash
14907# newline sequences.
14908
14909ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14910sed -n '
14911s/.\{148\}/&'"$ac_delim"'/g
14912t rset
14913:rset
14914s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14915t def
14916d
14917:def
14918s/\\$//
14919t bsnl
14920s/["\\]/\\&/g
14921s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14922D["\1"]=" \3"/p
14923s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14924d
14925:bsnl
14926s/["\\]/\\&/g
14927s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14928D["\1"]=" \3\\\\\\n"\\/p
14929t cont
14930s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14931t cont
14932d
14933:cont
14934n
14935s/.\{148\}/&'"$ac_delim"'/g
14936t clear
14937:clear
14938s/\\$//
14939t bsnlc
14940s/["\\]/\\&/g; s/^/"/; s/$/"/p
14941d
14942:bsnlc
14943s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14944b cont
14945' <confdefs.h | sed '
14946s/'"$ac_delim"'/"\\\
14947"/g' >>$CONFIG_STATUS || ac_write_fail=1
14948
14949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14950  for (key in D) D_is_set[key] = 1
14951  FS = ""
14952}
14953/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14954  line = \$ 0
14955  split(line, arg, " ")
14956  if (arg[1] == "#") {
14957    defundef = arg[2]
14958    mac1 = arg[3]
14959  } else {
14960    defundef = substr(arg[1], 2)
14961    mac1 = arg[2]
14962  }
14963  split(mac1, mac2, "(") #)
14964  macro = mac2[1]
14965  prefix = substr(line, 1, index(line, defundef) - 1)
14966  if (D_is_set[macro]) {
14967    # Preserve the white space surrounding the "#".
14968    print prefix "define", macro P[macro] D[macro]
14969    next
14970  } else {
14971    # Replace #undef with comments.  This is necessary, for example,
14972    # in the case of _POSIX_SOURCE, which is predefined and required
14973    # on some systems where configure will not decide to define it.
14974    if (defundef == "undef") {
14975      print "/*", prefix defundef, macro, "*/"
14976      next
14977    }
14978  }
14979}
14980{ print }
14981_ACAWK
14982_ACEOF
14983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14984  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14985fi # test -n "$CONFIG_HEADERS"
14986
14987
14988eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14989shift
14990for ac_tag
14991do
14992  case $ac_tag in
14993  :[FHLC]) ac_mode=$ac_tag; continue;;
14994  esac
14995  case $ac_mode$ac_tag in
14996  :[FHL]*:*);;
14997  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14998  :[FH]-) ac_tag=-:-;;
14999  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15000  esac
15001  ac_save_IFS=$IFS
15002  IFS=:
15003  set x $ac_tag
15004  IFS=$ac_save_IFS
15005  shift
15006  ac_file=$1
15007  shift
15008
15009  case $ac_mode in
15010  :L) ac_source=$1;;
15011  :[FH])
15012    ac_file_inputs=
15013    for ac_f
15014    do
15015      case $ac_f in
15016      -) ac_f="$ac_tmp/stdin";;
15017      *) # Look for the file first in the build tree, then in the source tree
15018	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15019	 # because $ac_f cannot contain `:'.
15020	 test -f "$ac_f" ||
15021	   case $ac_f in
15022	   [\\/$]*) false;;
15023	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15024	   esac ||
15025	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15026      esac
15027      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15028      as_fn_append ac_file_inputs " '$ac_f'"
15029    done
15030
15031    # Let's still pretend it is `configure' which instantiates (i.e., don't
15032    # use $as_me), people would be surprised to read:
15033    #    /* config.h.  Generated by config.status.  */
15034    configure_input='Generated from '`
15035	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15036	`' by configure.'
15037    if test x"$ac_file" != x-; then
15038      configure_input="$ac_file.  $configure_input"
15039      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15040$as_echo "$as_me: creating $ac_file" >&6;}
15041    fi
15042    # Neutralize special characters interpreted by sed in replacement strings.
15043    case $configure_input in #(
15044    *\&* | *\|* | *\\* )
15045       ac_sed_conf_input=`$as_echo "$configure_input" |
15046       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15047    *) ac_sed_conf_input=$configure_input;;
15048    esac
15049
15050    case $ac_tag in
15051    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15052      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15053    esac
15054    ;;
15055  esac
15056
15057  ac_dir=`$as_dirname -- "$ac_file" ||
15058$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15059	 X"$ac_file" : 'X\(//\)[^/]' \| \
15060	 X"$ac_file" : 'X\(//\)$' \| \
15061	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15062$as_echo X"$ac_file" |
15063    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15064	    s//\1/
15065	    q
15066	  }
15067	  /^X\(\/\/\)[^/].*/{
15068	    s//\1/
15069	    q
15070	  }
15071	  /^X\(\/\/\)$/{
15072	    s//\1/
15073	    q
15074	  }
15075	  /^X\(\/\).*/{
15076	    s//\1/
15077	    q
15078	  }
15079	  s/.*/./; q'`
15080  as_dir="$ac_dir"; as_fn_mkdir_p
15081  ac_builddir=.
15082
15083case "$ac_dir" in
15084.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15085*)
15086  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15087  # A ".." for each directory in $ac_dir_suffix.
15088  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15089  case $ac_top_builddir_sub in
15090  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15091  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15092  esac ;;
15093esac
15094ac_abs_top_builddir=$ac_pwd
15095ac_abs_builddir=$ac_pwd$ac_dir_suffix
15096# for backward compatibility:
15097ac_top_builddir=$ac_top_build_prefix
15098
15099case $srcdir in
15100  .)  # We are building in place.
15101    ac_srcdir=.
15102    ac_top_srcdir=$ac_top_builddir_sub
15103    ac_abs_top_srcdir=$ac_pwd ;;
15104  [\\/]* | ?:[\\/]* )  # Absolute name.
15105    ac_srcdir=$srcdir$ac_dir_suffix;
15106    ac_top_srcdir=$srcdir
15107    ac_abs_top_srcdir=$srcdir ;;
15108  *) # Relative name.
15109    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15110    ac_top_srcdir=$ac_top_build_prefix$srcdir
15111    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15112esac
15113ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15114
15115
15116  case $ac_mode in
15117  :F)
15118  #
15119  # CONFIG_FILE
15120  #
15121
15122  case $INSTALL in
15123  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15124  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15125  esac
15126  ac_MKDIR_P=$MKDIR_P
15127  case $MKDIR_P in
15128  [\\/$]* | ?:[\\/]* ) ;;
15129  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15130  esac
15131_ACEOF
15132
15133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15134# If the template does not know about datarootdir, expand it.
15135# FIXME: This hack should be removed a few years after 2.60.
15136ac_datarootdir_hack=; ac_datarootdir_seen=
15137ac_sed_dataroot='
15138/datarootdir/ {
15139  p
15140  q
15141}
15142/@datadir@/p
15143/@docdir@/p
15144/@infodir@/p
15145/@localedir@/p
15146/@mandir@/p'
15147case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15148*datarootdir*) ac_datarootdir_seen=yes;;
15149*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15150  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15151$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15152_ACEOF
15153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15154  ac_datarootdir_hack='
15155  s&@datadir@&$datadir&g
15156  s&@docdir@&$docdir&g
15157  s&@infodir@&$infodir&g
15158  s&@localedir@&$localedir&g
15159  s&@mandir@&$mandir&g
15160  s&\\\${datarootdir}&$datarootdir&g' ;;
15161esac
15162_ACEOF
15163
15164# Neutralize VPATH when `$srcdir' = `.'.
15165# Shell code in configure.ac might set extrasub.
15166# FIXME: do we really want to maintain this feature?
15167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15168ac_sed_extra="$ac_vpsub
15169$extrasub
15170_ACEOF
15171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15172:t
15173/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15174s|@configure_input@|$ac_sed_conf_input|;t t
15175s&@top_builddir@&$ac_top_builddir_sub&;t t
15176s&@top_build_prefix@&$ac_top_build_prefix&;t t
15177s&@srcdir@&$ac_srcdir&;t t
15178s&@abs_srcdir@&$ac_abs_srcdir&;t t
15179s&@top_srcdir@&$ac_top_srcdir&;t t
15180s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15181s&@builddir@&$ac_builddir&;t t
15182s&@abs_builddir@&$ac_abs_builddir&;t t
15183s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15184s&@INSTALL@&$ac_INSTALL&;t t
15185s&@MKDIR_P@&$ac_MKDIR_P&;t t
15186$ac_datarootdir_hack
15187"
15188eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15189  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15190
15191test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15192  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15193  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15194      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15195  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15196which seems to be undefined.  Please make sure it is defined" >&5
15197$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15198which seems to be undefined.  Please make sure it is defined" >&2;}
15199
15200  rm -f "$ac_tmp/stdin"
15201  case $ac_file in
15202  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15203  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15204  esac \
15205  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15206 ;;
15207  :H)
15208  #
15209  # CONFIG_HEADER
15210  #
15211  if test x"$ac_file" != x-; then
15212    {
15213      $as_echo "/* $configure_input  */" \
15214      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15215    } >"$ac_tmp/config.h" \
15216      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15217    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15218      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15219$as_echo "$as_me: $ac_file is unchanged" >&6;}
15220    else
15221      rm -f "$ac_file"
15222      mv "$ac_tmp/config.h" "$ac_file" \
15223	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15224    fi
15225  else
15226    $as_echo "/* $configure_input  */" \
15227      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15228      || as_fn_error $? "could not create -" "$LINENO" 5
15229  fi
15230# Compute "$ac_file"'s index in $config_headers.
15231_am_arg="$ac_file"
15232_am_stamp_count=1
15233for _am_header in $config_headers :; do
15234  case $_am_header in
15235    $_am_arg | $_am_arg:* )
15236      break ;;
15237    * )
15238      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15239  esac
15240done
15241echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15242$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15243	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15244	 X"$_am_arg" : 'X\(//\)$' \| \
15245	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15246$as_echo X"$_am_arg" |
15247    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15248	    s//\1/
15249	    q
15250	  }
15251	  /^X\(\/\/\)[^/].*/{
15252	    s//\1/
15253	    q
15254	  }
15255	  /^X\(\/\/\)$/{
15256	    s//\1/
15257	    q
15258	  }
15259	  /^X\(\/\).*/{
15260	    s//\1/
15261	    q
15262	  }
15263	  s/.*/./; q'`/stamp-h$_am_stamp_count
15264 ;;
15265
15266  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15267$as_echo "$as_me: executing $ac_file commands" >&6;}
15268 ;;
15269  esac
15270
15271
15272  case $ac_file$ac_mode in
15273    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15274  # Older Autoconf quotes --file arguments for eval, but not when files
15275  # are listed without --file.  Let's play safe and only enable the eval
15276  # if we detect the quoting.
15277  # TODO: see whether this extra hack can be removed once we start
15278  # requiring Autoconf 2.70 or later.
15279  case $CONFIG_FILES in #(
15280  *\'*) :
15281    eval set x "$CONFIG_FILES" ;; #(
15282  *) :
15283    set x $CONFIG_FILES ;; #(
15284  *) :
15285     ;;
15286esac
15287  shift
15288  # Used to flag and report bootstrapping failures.
15289  am_rc=0
15290  for am_mf
15291  do
15292    # Strip MF so we end up with the name of the file.
15293    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15294    # Check whether this is an Automake generated Makefile which includes
15295    # dependency-tracking related rules and includes.
15296    # Grep'ing the whole file directly is not great: AIX grep has a line
15297    # limit of 2048, but all sed's we know have understand at least 4000.
15298    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15299      || continue
15300    am_dirpart=`$as_dirname -- "$am_mf" ||
15301$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15302	 X"$am_mf" : 'X\(//\)[^/]' \| \
15303	 X"$am_mf" : 'X\(//\)$' \| \
15304	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15305$as_echo X"$am_mf" |
15306    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15307	    s//\1/
15308	    q
15309	  }
15310	  /^X\(\/\/\)[^/].*/{
15311	    s//\1/
15312	    q
15313	  }
15314	  /^X\(\/\/\)$/{
15315	    s//\1/
15316	    q
15317	  }
15318	  /^X\(\/\).*/{
15319	    s//\1/
15320	    q
15321	  }
15322	  s/.*/./; q'`
15323    am_filepart=`$as_basename -- "$am_mf" ||
15324$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15325	 X"$am_mf" : 'X\(//\)$' \| \
15326	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15327$as_echo X/"$am_mf" |
15328    sed '/^.*\/\([^/][^/]*\)\/*$/{
15329	    s//\1/
15330	    q
15331	  }
15332	  /^X\/\(\/\/\)$/{
15333	    s//\1/
15334	    q
15335	  }
15336	  /^X\/\(\/\).*/{
15337	    s//\1/
15338	    q
15339	  }
15340	  s/.*/./; q'`
15341    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15342      && sed -e '/# am--include-marker/d' "$am_filepart" \
15343        | $MAKE -f - am--depfiles" >&5
15344   (cd "$am_dirpart" \
15345      && sed -e '/# am--include-marker/d' "$am_filepart" \
15346        | $MAKE -f - am--depfiles) >&5 2>&5
15347   ac_status=$?
15348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349   (exit $ac_status); } || am_rc=$?
15350  done
15351  if test $am_rc -ne 0; then
15352    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15354as_fn_error $? "Something went wrong bootstrapping makefile fragments
15355    for automatic dependency tracking.  If GNU make was not used, consider
15356    re-running the configure script with MAKE=\"gmake\" (or whatever is
15357    necessary).  You can also try re-running configure with the
15358    '--disable-dependency-tracking' option to at least be able to build
15359    the package (albeit without support for automatic dependency tracking).
15360See \`config.log' for more details" "$LINENO" 5; }
15361  fi
15362  { am_dirpart=; unset am_dirpart;}
15363  { am_filepart=; unset am_filepart;}
15364  { am_mf=; unset am_mf;}
15365  { am_rc=; unset am_rc;}
15366  rm -f conftest-deps.mk
15367}
15368 ;;
15369    "libtool":C)
15370
15371    # See if we are running on zsh, and set the options that allow our
15372    # commands through without removal of \ escapes.
15373    if test -n "${ZSH_VERSION+set}"; then
15374      setopt NO_GLOB_SUBST
15375    fi
15376
15377    cfgfile=${ofile}T
15378    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15379    $RM "$cfgfile"
15380
15381    cat <<_LT_EOF >> "$cfgfile"
15382#! $SHELL
15383# Generated automatically by $as_me ($PACKAGE) $VERSION
15384# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15385# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15386
15387# Provide generalized library-building support services.
15388# Written by Gordon Matzigkeit, 1996
15389
15390# Copyright (C) 2014 Free Software Foundation, Inc.
15391# This is free software; see the source for copying conditions.  There is NO
15392# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15393
15394# GNU Libtool is free software; you can redistribute it and/or modify
15395# it under the terms of the GNU General Public License as published by
15396# the Free Software Foundation; either version 2 of of the License, or
15397# (at your option) any later version.
15398#
15399# As a special exception to the GNU General Public License, if you
15400# distribute this file as part of a program or library that is built
15401# using GNU Libtool, you may include this file under the  same
15402# distribution terms that you use for the rest of that program.
15403#
15404# GNU Libtool is distributed in the hope that it will be useful, but
15405# WITHOUT ANY WARRANTY; without even the implied warranty of
15406# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15407# GNU General Public License for more details.
15408#
15409# You should have received a copy of the GNU General Public License
15410# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15411
15412
15413# The names of the tagged configurations supported by this script.
15414available_tags=''
15415
15416# Configured defaults for sys_lib_dlsearch_path munging.
15417: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15418
15419# ### BEGIN LIBTOOL CONFIG
15420
15421# Which release of libtool.m4 was used?
15422macro_version=$macro_version
15423macro_revision=$macro_revision
15424
15425# Whether or not to build shared libraries.
15426build_libtool_libs=$enable_shared
15427
15428# Whether or not to build static libraries.
15429build_old_libs=$enable_static
15430
15431# What type of objects to build.
15432pic_mode=$pic_mode
15433
15434# Whether or not to optimize for fast installation.
15435fast_install=$enable_fast_install
15436
15437# Shared archive member basename,for filename based shared library versioning on AIX.
15438shared_archive_member_spec=$shared_archive_member_spec
15439
15440# Shell to use when invoking shell scripts.
15441SHELL=$lt_SHELL
15442
15443# An echo program that protects backslashes.
15444ECHO=$lt_ECHO
15445
15446# The PATH separator for the build system.
15447PATH_SEPARATOR=$lt_PATH_SEPARATOR
15448
15449# The host system.
15450host_alias=$host_alias
15451host=$host
15452host_os=$host_os
15453
15454# The build system.
15455build_alias=$build_alias
15456build=$build
15457build_os=$build_os
15458
15459# A sed program that does not truncate output.
15460SED=$lt_SED
15461
15462# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15463Xsed="\$SED -e 1s/^X//"
15464
15465# A grep program that handles long lines.
15466GREP=$lt_GREP
15467
15468# An ERE matcher.
15469EGREP=$lt_EGREP
15470
15471# A literal string matcher.
15472FGREP=$lt_FGREP
15473
15474# A BSD- or MS-compatible name lister.
15475NM=$lt_NM
15476
15477# Whether we need soft or hard links.
15478LN_S=$lt_LN_S
15479
15480# What is the maximum length of a command?
15481max_cmd_len=$max_cmd_len
15482
15483# Object file suffix (normally "o").
15484objext=$ac_objext
15485
15486# Executable file suffix (normally "").
15487exeext=$exeext
15488
15489# whether the shell understands "unset".
15490lt_unset=$lt_unset
15491
15492# turn spaces into newlines.
15493SP2NL=$lt_lt_SP2NL
15494
15495# turn newlines into spaces.
15496NL2SP=$lt_lt_NL2SP
15497
15498# convert \$build file names to \$host format.
15499to_host_file_cmd=$lt_cv_to_host_file_cmd
15500
15501# convert \$build files to toolchain format.
15502to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15503
15504# An object symbol dumper.
15505OBJDUMP=$lt_OBJDUMP
15506
15507# Method to check whether dependent libraries are shared objects.
15508deplibs_check_method=$lt_deplibs_check_method
15509
15510# Command to use when deplibs_check_method = "file_magic".
15511file_magic_cmd=$lt_file_magic_cmd
15512
15513# How to find potential files when deplibs_check_method = "file_magic".
15514file_magic_glob=$lt_file_magic_glob
15515
15516# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15517want_nocaseglob=$lt_want_nocaseglob
15518
15519# DLL creation program.
15520DLLTOOL=$lt_DLLTOOL
15521
15522# Command to associate shared and link libraries.
15523sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15524
15525# The archiver.
15526AR=$lt_AR
15527
15528# Flags to create an archive.
15529AR_FLAGS=$lt_AR_FLAGS
15530
15531# How to feed a file listing to the archiver.
15532archiver_list_spec=$lt_archiver_list_spec
15533
15534# A symbol stripping program.
15535STRIP=$lt_STRIP
15536
15537# Commands used to install an old-style archive.
15538RANLIB=$lt_RANLIB
15539old_postinstall_cmds=$lt_old_postinstall_cmds
15540old_postuninstall_cmds=$lt_old_postuninstall_cmds
15541
15542# Whether to use a lock for old archive extraction.
15543lock_old_archive_extraction=$lock_old_archive_extraction
15544
15545# A C compiler.
15546LTCC=$lt_CC
15547
15548# LTCC compiler flags.
15549LTCFLAGS=$lt_CFLAGS
15550
15551# Take the output of nm and produce a listing of raw symbols and C names.
15552global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15553
15554# Transform the output of nm in a proper C declaration.
15555global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15556
15557# Transform the output of nm into a list of symbols to manually relocate.
15558global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15559
15560# Transform the output of nm in a C name address pair.
15561global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15562
15563# Transform the output of nm in a C name address pair when lib prefix is needed.
15564global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15565
15566# The name lister interface.
15567nm_interface=$lt_lt_cv_nm_interface
15568
15569# Specify filename containing input files for \$NM.
15570nm_file_list_spec=$lt_nm_file_list_spec
15571
15572# The root where to search for dependent libraries,and where our libraries should be installed.
15573lt_sysroot=$lt_sysroot
15574
15575# Command to truncate a binary pipe.
15576lt_truncate_bin=$lt_lt_cv_truncate_bin
15577
15578# The name of the directory that contains temporary libtool files.
15579objdir=$objdir
15580
15581# Used to examine libraries when file_magic_cmd begins with "file".
15582MAGIC_CMD=$MAGIC_CMD
15583
15584# Must we lock files when doing compilation?
15585need_locks=$lt_need_locks
15586
15587# Manifest tool.
15588MANIFEST_TOOL=$lt_MANIFEST_TOOL
15589
15590# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15591DSYMUTIL=$lt_DSYMUTIL
15592
15593# Tool to change global to local symbols on Mac OS X.
15594NMEDIT=$lt_NMEDIT
15595
15596# Tool to manipulate fat objects and archives on Mac OS X.
15597LIPO=$lt_LIPO
15598
15599# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15600OTOOL=$lt_OTOOL
15601
15602# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15603OTOOL64=$lt_OTOOL64
15604
15605# Old archive suffix (normally "a").
15606libext=$libext
15607
15608# Shared library suffix (normally ".so").
15609shrext_cmds=$lt_shrext_cmds
15610
15611# The commands to extract the exported symbol list from a shared archive.
15612extract_expsyms_cmds=$lt_extract_expsyms_cmds
15613
15614# Variables whose values should be saved in libtool wrapper scripts and
15615# restored at link time.
15616variables_saved_for_relink=$lt_variables_saved_for_relink
15617
15618# Do we need the "lib" prefix for modules?
15619need_lib_prefix=$need_lib_prefix
15620
15621# Do we need a version for libraries?
15622need_version=$need_version
15623
15624# Library versioning type.
15625version_type=$version_type
15626
15627# Shared library runtime path variable.
15628runpath_var=$runpath_var
15629
15630# Shared library path variable.
15631shlibpath_var=$shlibpath_var
15632
15633# Is shlibpath searched before the hard-coded library search path?
15634shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15635
15636# Format of library name prefix.
15637libname_spec=$lt_libname_spec
15638
15639# List of archive names.  First name is the real one, the rest are links.
15640# The last name is the one that the linker finds with -lNAME
15641library_names_spec=$lt_library_names_spec
15642
15643# The coded name of the library, if different from the real name.
15644soname_spec=$lt_soname_spec
15645
15646# Permission mode override for installation of shared libraries.
15647install_override_mode=$lt_install_override_mode
15648
15649# Command to use after installation of a shared archive.
15650postinstall_cmds=$lt_postinstall_cmds
15651
15652# Command to use after uninstallation of a shared archive.
15653postuninstall_cmds=$lt_postuninstall_cmds
15654
15655# Commands used to finish a libtool library installation in a directory.
15656finish_cmds=$lt_finish_cmds
15657
15658# As "finish_cmds", except a single script fragment to be evaled but
15659# not shown.
15660finish_eval=$lt_finish_eval
15661
15662# Whether we should hardcode library paths into libraries.
15663hardcode_into_libs=$hardcode_into_libs
15664
15665# Compile-time system search path for libraries.
15666sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15667
15668# Detected run-time system search path for libraries.
15669sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15670
15671# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15672configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15673
15674# Whether dlopen is supported.
15675dlopen_support=$enable_dlopen
15676
15677# Whether dlopen of programs is supported.
15678dlopen_self=$enable_dlopen_self
15679
15680# Whether dlopen of statically linked programs is supported.
15681dlopen_self_static=$enable_dlopen_self_static
15682
15683# Commands to strip libraries.
15684old_striplib=$lt_old_striplib
15685striplib=$lt_striplib
15686
15687
15688# The linker used to build libraries.
15689LD=$lt_LD
15690
15691# How to create reloadable object files.
15692reload_flag=$lt_reload_flag
15693reload_cmds=$lt_reload_cmds
15694
15695# Commands used to build an old-style archive.
15696old_archive_cmds=$lt_old_archive_cmds
15697
15698# A language specific compiler.
15699CC=$lt_compiler
15700
15701# Is the compiler the GNU compiler?
15702with_gcc=$GCC
15703
15704# Compiler flag to turn off builtin functions.
15705no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15706
15707# Additional compiler flags for building library objects.
15708pic_flag=$lt_lt_prog_compiler_pic
15709
15710# How to pass a linker flag through the compiler.
15711wl=$lt_lt_prog_compiler_wl
15712
15713# Compiler flag to prevent dynamic linking.
15714link_static_flag=$lt_lt_prog_compiler_static
15715
15716# Does compiler simultaneously support -c and -o options?
15717compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15718
15719# Whether or not to add -lc for building shared libraries.
15720build_libtool_need_lc=$archive_cmds_need_lc
15721
15722# Whether or not to disallow shared libs when runtime libs are static.
15723allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15724
15725# Compiler flag to allow reflexive dlopens.
15726export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15727
15728# Compiler flag to generate shared objects directly from archives.
15729whole_archive_flag_spec=$lt_whole_archive_flag_spec
15730
15731# Whether the compiler copes with passing no objects directly.
15732compiler_needs_object=$lt_compiler_needs_object
15733
15734# Create an old-style archive from a shared archive.
15735old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15736
15737# Create a temporary old-style archive to link instead of a shared archive.
15738old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15739
15740# Commands used to build a shared archive.
15741archive_cmds=$lt_archive_cmds
15742archive_expsym_cmds=$lt_archive_expsym_cmds
15743
15744# Commands used to build a loadable module if different from building
15745# a shared archive.
15746module_cmds=$lt_module_cmds
15747module_expsym_cmds=$lt_module_expsym_cmds
15748
15749# Whether we are building with GNU ld or not.
15750with_gnu_ld=$lt_with_gnu_ld
15751
15752# Flag that allows shared libraries with undefined symbols to be built.
15753allow_undefined_flag=$lt_allow_undefined_flag
15754
15755# Flag that enforces no undefined symbols.
15756no_undefined_flag=$lt_no_undefined_flag
15757
15758# Flag to hardcode \$libdir into a binary during linking.
15759# This must work even if \$libdir does not exist
15760hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15761
15762# Whether we need a single "-rpath" flag with a separated argument.
15763hardcode_libdir_separator=$lt_hardcode_libdir_separator
15764
15765# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15766# DIR into the resulting binary.
15767hardcode_direct=$hardcode_direct
15768
15769# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15770# DIR into the resulting binary and the resulting library dependency is
15771# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15772# library is relocated.
15773hardcode_direct_absolute=$hardcode_direct_absolute
15774
15775# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15776# into the resulting binary.
15777hardcode_minus_L=$hardcode_minus_L
15778
15779# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15780# into the resulting binary.
15781hardcode_shlibpath_var=$hardcode_shlibpath_var
15782
15783# Set to "yes" if building a shared library automatically hardcodes DIR
15784# into the library and all subsequent libraries and executables linked
15785# against it.
15786hardcode_automatic=$hardcode_automatic
15787
15788# Set to yes if linker adds runtime paths of dependent libraries
15789# to runtime path list.
15790inherit_rpath=$inherit_rpath
15791
15792# Whether libtool must link a program against all its dependency libraries.
15793link_all_deplibs=$link_all_deplibs
15794
15795# Set to "yes" if exported symbols are required.
15796always_export_symbols=$always_export_symbols
15797
15798# The commands to list exported symbols.
15799export_symbols_cmds=$lt_export_symbols_cmds
15800
15801# Symbols that should not be listed in the preloaded symbols.
15802exclude_expsyms=$lt_exclude_expsyms
15803
15804# Symbols that must always be exported.
15805include_expsyms=$lt_include_expsyms
15806
15807# Commands necessary for linking programs (against libraries) with templates.
15808prelink_cmds=$lt_prelink_cmds
15809
15810# Commands necessary for finishing linking programs.
15811postlink_cmds=$lt_postlink_cmds
15812
15813# Specify filename containing input files.
15814file_list_spec=$lt_file_list_spec
15815
15816# How to hardcode a shared library path into an executable.
15817hardcode_action=$hardcode_action
15818
15819# ### END LIBTOOL CONFIG
15820
15821_LT_EOF
15822
15823    cat <<'_LT_EOF' >> "$cfgfile"
15824
15825# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15826
15827# func_munge_path_list VARIABLE PATH
15828# -----------------------------------
15829# VARIABLE is name of variable containing _space_ separated list of
15830# directories to be munged by the contents of PATH, which is string
15831# having a format:
15832# "DIR[:DIR]:"
15833#       string "DIR[ DIR]" will be prepended to VARIABLE
15834# ":DIR[:DIR]"
15835#       string "DIR[ DIR]" will be appended to VARIABLE
15836# "DIRP[:DIRP]::[DIRA:]DIRA"
15837#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15838#       "DIRA[ DIRA]" will be appended to VARIABLE
15839# "DIR[:DIR]"
15840#       VARIABLE will be replaced by "DIR[ DIR]"
15841func_munge_path_list ()
15842{
15843    case x$2 in
15844    x)
15845        ;;
15846    *:)
15847        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15848        ;;
15849    x:*)
15850        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15851        ;;
15852    *::*)
15853        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15854        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15855        ;;
15856    *)
15857        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15858        ;;
15859    esac
15860}
15861
15862
15863# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15864func_cc_basename ()
15865{
15866    for cc_temp in $*""; do
15867      case $cc_temp in
15868        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15869        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15870        \-*) ;;
15871        *) break;;
15872      esac
15873    done
15874    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15875}
15876
15877
15878# ### END FUNCTIONS SHARED WITH CONFIGURE
15879
15880_LT_EOF
15881
15882  case $host_os in
15883  aix3*)
15884    cat <<\_LT_EOF >> "$cfgfile"
15885# AIX sometimes has problems with the GCC collect2 program.  For some
15886# reason, if we set the COLLECT_NAMES environment variable, the problems
15887# vanish in a puff of smoke.
15888if test set != "${COLLECT_NAMES+set}"; then
15889  COLLECT_NAMES=
15890  export COLLECT_NAMES
15891fi
15892_LT_EOF
15893    ;;
15894  esac
15895
15896
15897ltmain=$ac_aux_dir/ltmain.sh
15898
15899
15900  # We use sed instead of cat because bash on DJGPP gets confused if
15901  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15902  # text mode, it properly converts lines to CR/LF.  This bash problem
15903  # is reportedly fixed, but why not run on old versions too?
15904  sed '$q' "$ltmain" >> "$cfgfile" \
15905     || (rm -f "$cfgfile"; exit 1)
15906
15907   mv -f "$cfgfile" "$ofile" ||
15908    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15909  chmod +x "$ofile"
15910
15911 ;;
15912
15913  esac
15914done # for ac_tag
15915
15916
15917as_fn_exit 0
15918_ACEOF
15919ac_clean_files=$ac_clean_files_save
15920
15921test $ac_write_fail = 0 ||
15922  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15923
15924
15925# configure is writing to config.log, and then calls config.status.
15926# config.status does its own redirection, appending to config.log.
15927# Unfortunately, on DOS this fails, as config.log is still kept open
15928# by configure, so config.status won't be able to write to it; its
15929# output is simply discarded.  So we exec the FD to /dev/null,
15930# effectively closing config.log, so it can be properly (re)opened and
15931# appended to by config.status.  When coming back to configure, we
15932# need to make the FD available again.
15933if test "$no_create" != yes; then
15934  ac_cs_success=:
15935  ac_config_status_args=
15936  test "$silent" = yes &&
15937    ac_config_status_args="$ac_config_status_args --quiet"
15938  exec 5>/dev/null
15939  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15940  exec 5>>config.log
15941  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15942  # would make configure fail if this is the last instruction.
15943  $ac_cs_success || as_fn_exit 1
15944fi
15945if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15946  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15947$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15948fi
15949
15950