1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libssp 1.0.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='libssp'
269PACKAGE_TARNAME='libssp'
270PACKAGE_VERSION='1.0'
271PACKAGE_STRING='libssp 1.0'
272PACKAGE_BUGREPORT=''
273
274ac_unique_file="ssp.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CPP CPPFLAGS LIBSSP_USE_SYMVER_TRUE LIBSSP_USE_SYMVER_FALSE EGREP ssp_have_usable_vsnprintf LN_S RANLIB ac_ct_RANLIB LIBTOOL enable_shared enable_static toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CPP_set=${CPP+set}
754ac_env_CPP_value=$CPP
755ac_cv_env_CPP_set=${CPP+set}
756ac_cv_env_CPP_value=$CPP
757ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758ac_env_CPPFLAGS_value=$CPPFLAGS
759ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761
762#
763# Report the --help message.
764#
765if test "$ac_init_help" = "long"; then
766  # Omit some internal or obsolete options to make the list less imposing.
767  # This message is too long to be a string in the A/UX 3.1 sh.
768  cat <<_ACEOF
769\`configure' configures libssp 1.0 to adapt to many kinds of systems.
770
771Usage: $0 [OPTION]... [VAR=VALUE]...
772
773To assign environment variables (e.g., CC, CFLAGS...), specify them as
774VAR=VALUE.  See below for descriptions of some of the useful variables.
775
776Defaults for the options are specified in brackets.
777
778Configuration:
779  -h, --help              display this help and exit
780      --help=short        display options specific to this package
781      --help=recursive    display the short help of all the included packages
782  -V, --version           display version information and exit
783  -q, --quiet, --silent   do not print \`checking...' messages
784      --cache-file=FILE   cache test results in FILE [disabled]
785  -C, --config-cache      alias for \`--cache-file=config.cache'
786  -n, --no-create         do not create output files
787      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
788
789_ACEOF
790
791  cat <<_ACEOF
792Installation directories:
793  --prefix=PREFIX         install architecture-independent files in PREFIX
794			  [$ac_default_prefix]
795  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
796			  [PREFIX]
797
798By default, \`make install' will install all the files in
799\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
800an installation prefix other than \`$ac_default_prefix' using \`--prefix',
801for instance \`--prefix=\$HOME'.
802
803For better control, use the options below.
804
805Fine tuning of the installation directories:
806  --bindir=DIR           user executables [EPREFIX/bin]
807  --sbindir=DIR          system admin executables [EPREFIX/sbin]
808  --libexecdir=DIR       program executables [EPREFIX/libexec]
809  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
810  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
811  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
812  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
813  --libdir=DIR           object code libraries [EPREFIX/lib]
814  --includedir=DIR       C header files [PREFIX/include]
815  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
816  --infodir=DIR          info documentation [PREFIX/info]
817  --mandir=DIR           man documentation [PREFIX/man]
818_ACEOF
819
820  cat <<\_ACEOF
821
822Program names:
823  --program-prefix=PREFIX            prepend PREFIX to installed program names
824  --program-suffix=SUFFIX            append SUFFIX to installed program names
825  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
826
827System types:
828  --build=BUILD     configure for building on BUILD [guessed]
829  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
830  --target=TARGET   configure for building compilers for TARGET [HOST]
831_ACEOF
832fi
833
834if test -n "$ac_init_help"; then
835  case $ac_init_help in
836     short | recursive ) echo "Configuration of libssp 1.0:";;
837   esac
838  cat <<\_ACEOF
839
840Optional Features:
841  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
842  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
843  --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
844  --enable-maintainer-mode  enable make rules and dependencies not useful
845			  (and sometimes confusing) to the casual installer
846  --enable-multilib       build many library versions (default)
847  --disable-dependency-tracking  speeds up one-time build
848  --enable-dependency-tracking   do not reject slow dependency extractors
849  --enable-shared=PKGS  build shared libraries default=yes
850  --enable-static=PKGS  build static libraries default=yes
851  --enable-fast-install=PKGS  optimize for fast installation default=yes
852  --disable-libtool-lock  avoid locking (might break parallel builds)
853
854Optional Packages:
855  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
856  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
857  --with-gnu-ld           assume the C compiler uses GNU ld default=no
858  --with-pic              try to use only PIC/non-PIC objects default=use both
859
860Some influential environment variables:
861  CC          C compiler command
862  CFLAGS      C compiler flags
863  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
864              nonstandard directory <lib dir>
865  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
866              headers in a nonstandard directory <include dir>
867  CPP         C preprocessor
868
869Use these variables to override the choices made by `configure' or to help
870it to find libraries and programs with nonstandard names/locations.
871
872_ACEOF
873fi
874
875if test "$ac_init_help" = "recursive"; then
876  # If there are subdirs, report their specific --help.
877  ac_popdir=`pwd`
878  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879    test -d $ac_dir || continue
880    ac_builddir=.
881
882if test "$ac_dir" != .; then
883  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884  # A "../" for each directory in $ac_dir_suffix.
885  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886else
887  ac_dir_suffix= ac_top_builddir=
888fi
889
890case $srcdir in
891  .)  # No --srcdir option.  We are building in place.
892    ac_srcdir=.
893    if test -z "$ac_top_builddir"; then
894       ac_top_srcdir=.
895    else
896       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897    fi ;;
898  [\\/]* | ?:[\\/]* )  # Absolute path.
899    ac_srcdir=$srcdir$ac_dir_suffix;
900    ac_top_srcdir=$srcdir ;;
901  *) # Relative path.
902    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903    ac_top_srcdir=$ac_top_builddir$srcdir ;;
904esac
905
906# Do not use `cd foo && pwd` to compute absolute paths, because
907# the directories may not exist.
908case `pwd` in
909.) ac_abs_builddir="$ac_dir";;
910*)
911  case "$ac_dir" in
912  .) ac_abs_builddir=`pwd`;;
913  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914  *) ac_abs_builddir=`pwd`/"$ac_dir";;
915  esac;;
916esac
917case $ac_abs_builddir in
918.) ac_abs_top_builddir=${ac_top_builddir}.;;
919*)
920  case ${ac_top_builddir}. in
921  .) ac_abs_top_builddir=$ac_abs_builddir;;
922  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924  esac;;
925esac
926case $ac_abs_builddir in
927.) ac_abs_srcdir=$ac_srcdir;;
928*)
929  case $ac_srcdir in
930  .) ac_abs_srcdir=$ac_abs_builddir;;
931  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933  esac;;
934esac
935case $ac_abs_builddir in
936.) ac_abs_top_srcdir=$ac_top_srcdir;;
937*)
938  case $ac_top_srcdir in
939  .) ac_abs_top_srcdir=$ac_abs_builddir;;
940  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942  esac;;
943esac
944
945    cd $ac_dir
946    # Check for guested configure; otherwise get Cygnus style configure.
947    if test -f $ac_srcdir/configure.gnu; then
948      echo
949      $SHELL $ac_srcdir/configure.gnu  --help=recursive
950    elif test -f $ac_srcdir/configure; then
951      echo
952      $SHELL $ac_srcdir/configure  --help=recursive
953    elif test -f $ac_srcdir/configure.ac ||
954	   test -f $ac_srcdir/configure.in; then
955      echo
956      $ac_configure --help
957    else
958      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959    fi
960    cd $ac_popdir
961  done
962fi
963
964test -n "$ac_init_help" && exit 0
965if $ac_init_version; then
966  cat <<\_ACEOF
967libssp configure 1.0
968generated by GNU Autoconf 2.59
969
970Copyright (C) 2003 Free Software Foundation, Inc.
971This configure script is free software; the Free Software Foundation
972gives unlimited permission to copy, distribute and modify it.
973_ACEOF
974  exit 0
975fi
976exec 5>config.log
977cat >&5 <<_ACEOF
978This file contains any messages produced by compilers while
979running configure, to aid debugging if configure makes a mistake.
980
981It was created by libssp $as_me 1.0, which was
982generated by GNU Autoconf 2.59.  Invocation command line was
983
984  $ $0 $@
985
986_ACEOF
987{
988cat <<_ASUNAME
989## --------- ##
990## Platform. ##
991## --------- ##
992
993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994uname -m = `(uname -m) 2>/dev/null || echo unknown`
995uname -r = `(uname -r) 2>/dev/null || echo unknown`
996uname -s = `(uname -s) 2>/dev/null || echo unknown`
997uname -v = `(uname -v) 2>/dev/null || echo unknown`
998
999/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1001
1002/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1003/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1004/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1006/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1007/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1008/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1009
1010_ASUNAME
1011
1012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013for as_dir in $PATH
1014do
1015  IFS=$as_save_IFS
1016  test -z "$as_dir" && as_dir=.
1017  echo "PATH: $as_dir"
1018done
1019
1020} >&5
1021
1022cat >&5 <<_ACEOF
1023
1024
1025## ----------- ##
1026## Core tests. ##
1027## ----------- ##
1028
1029_ACEOF
1030
1031
1032# Keep a trace of the command line.
1033# Strip out --no-create and --no-recursion so they do not pile up.
1034# Strip out --silent because we don't want to record it for future runs.
1035# Also quote any args containing shell meta-characters.
1036# Make two passes to allow for proper duplicate-argument suppression.
1037ac_configure_args=
1038ac_configure_args0=
1039ac_configure_args1=
1040ac_sep=
1041ac_must_keep_next=false
1042for ac_pass in 1 2
1043do
1044  for ac_arg
1045  do
1046    case $ac_arg in
1047    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049    | -silent | --silent | --silen | --sile | --sil)
1050      continue ;;
1051    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053    esac
1054    case $ac_pass in
1055    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056    2)
1057      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058      if test $ac_must_keep_next = true; then
1059	ac_must_keep_next=false # Got value, back to normal.
1060      else
1061	case $ac_arg in
1062	  *=* | --config-cache | -C | -disable-* | --disable-* \
1063	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065	  | -with-* | --with-* | -without-* | --without-* | --x)
1066	    case "$ac_configure_args0 " in
1067	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068	    esac
1069	    ;;
1070	  -* ) ac_must_keep_next=true ;;
1071	esac
1072      fi
1073      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074      # Get rid of the leading space.
1075      ac_sep=" "
1076      ;;
1077    esac
1078  done
1079done
1080$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082
1083# When interrupted or exit'd, cleanup temporary files, and complete
1084# config.log.  We remove comments because anyway the quotes in there
1085# would cause problems or look ugly.
1086# WARNING: Be sure not to use single quotes in there, as some shells,
1087# such as our DU 5.0 friend, will then `close' the trap.
1088trap 'exit_status=$?
1089  # Save into config.log some information that might help in debugging.
1090  {
1091    echo
1092
1093    cat <<\_ASBOX
1094## ---------------- ##
1095## Cache variables. ##
1096## ---------------- ##
1097_ASBOX
1098    echo
1099    # The following way of writing the cache mishandles newlines in values,
1100{
1101  (set) 2>&1 |
1102    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103    *ac_space=\ *)
1104      sed -n \
1105	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107      ;;
1108    *)
1109      sed -n \
1110	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111      ;;
1112    esac;
1113}
1114    echo
1115
1116    cat <<\_ASBOX
1117## ----------------- ##
1118## Output variables. ##
1119## ----------------- ##
1120_ASBOX
1121    echo
1122    for ac_var in $ac_subst_vars
1123    do
1124      eval ac_val=$`echo $ac_var`
1125      echo "$ac_var='"'"'$ac_val'"'"'"
1126    done | sort
1127    echo
1128
1129    if test -n "$ac_subst_files"; then
1130      cat <<\_ASBOX
1131## ------------- ##
1132## Output files. ##
1133## ------------- ##
1134_ASBOX
1135      echo
1136      for ac_var in $ac_subst_files
1137      do
1138	eval ac_val=$`echo $ac_var`
1139	echo "$ac_var='"'"'$ac_val'"'"'"
1140      done | sort
1141      echo
1142    fi
1143
1144    if test -s confdefs.h; then
1145      cat <<\_ASBOX
1146## ----------- ##
1147## confdefs.h. ##
1148## ----------- ##
1149_ASBOX
1150      echo
1151      sed "/^$/d" confdefs.h | sort
1152      echo
1153    fi
1154    test "$ac_signal" != 0 &&
1155      echo "$as_me: caught signal $ac_signal"
1156    echo "$as_me: exit $exit_status"
1157  } >&5
1158  rm -f core *.core &&
1159  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160    exit $exit_status
1161     ' 0
1162for ac_signal in 1 2 13 15; do
1163  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164done
1165ac_signal=0
1166
1167# confdefs.h avoids OS command line length limits that DEFS can exceed.
1168rm -rf conftest* confdefs.h
1169# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170echo >confdefs.h
1171
1172# Predefined preprocessor variables.
1173
1174cat >>confdefs.h <<_ACEOF
1175#define PACKAGE_NAME "$PACKAGE_NAME"
1176_ACEOF
1177
1178
1179cat >>confdefs.h <<_ACEOF
1180#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181_ACEOF
1182
1183
1184cat >>confdefs.h <<_ACEOF
1185#define PACKAGE_VERSION "$PACKAGE_VERSION"
1186_ACEOF
1187
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_STRING "$PACKAGE_STRING"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196_ACEOF
1197
1198
1199# Let the site file select an alternate cache file if it wants to.
1200# Prefer explicitly selected file to automatically selected ones.
1201if test -z "$CONFIG_SITE"; then
1202  if test "x$prefix" != xNONE; then
1203    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204  else
1205    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206  fi
1207fi
1208for ac_site_file in $CONFIG_SITE; do
1209  if test -r "$ac_site_file"; then
1210    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211echo "$as_me: loading site script $ac_site_file" >&6;}
1212    sed 's/^/| /' "$ac_site_file" >&5
1213    . "$ac_site_file"
1214  fi
1215done
1216
1217if test -r "$cache_file"; then
1218  # Some versions of bash will fail to source /dev/null (special
1219  # files actually), so we avoid doing that.
1220  if test -f "$cache_file"; then
1221    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222echo "$as_me: loading cache $cache_file" >&6;}
1223    case $cache_file in
1224      [\\/]* | ?:[\\/]* ) . $cache_file;;
1225      *)                      . ./$cache_file;;
1226    esac
1227  fi
1228else
1229  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230echo "$as_me: creating cache $cache_file" >&6;}
1231  >$cache_file
1232fi
1233
1234# Check that the precious variables saved in the cache have kept the same
1235# value.
1236ac_cache_corrupted=false
1237for ac_var in `(set) 2>&1 |
1238	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240  eval ac_new_set=\$ac_env_${ac_var}_set
1241  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242  eval ac_new_val="\$ac_env_${ac_var}_value"
1243  case $ac_old_set,$ac_new_set in
1244    set,)
1245      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247      ac_cache_corrupted=: ;;
1248    ,set)
1249      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251      ac_cache_corrupted=: ;;
1252    ,);;
1253    *)
1254      if test "x$ac_old_val" != "x$ac_new_val"; then
1255	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1258echo "$as_me:   former value:  $ac_old_val" >&2;}
1259	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1260echo "$as_me:   current value: $ac_new_val" >&2;}
1261	ac_cache_corrupted=:
1262      fi;;
1263  esac
1264  # Pass precious variables to config.status.
1265  if test "$ac_new_set" = set; then
1266    case $ac_new_val in
1267    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269    *) ac_arg=$ac_var=$ac_new_val ;;
1270    esac
1271    case " $ac_configure_args " in
1272      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1273      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274    esac
1275  fi
1276done
1277if $ac_cache_corrupted; then
1278  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282   { (exit 1); exit 1; }; }
1283fi
1284
1285ac_ext=c
1286ac_cpp='$CPP $CPPFLAGS'
1287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318ac_aux_dir=
1319for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320  if test -f $ac_dir/install-sh; then
1321    ac_aux_dir=$ac_dir
1322    ac_install_sh="$ac_aux_dir/install-sh -c"
1323    break
1324  elif test -f $ac_dir/install.sh; then
1325    ac_aux_dir=$ac_dir
1326    ac_install_sh="$ac_aux_dir/install.sh -c"
1327    break
1328  elif test -f $ac_dir/shtool; then
1329    ac_aux_dir=$ac_dir
1330    ac_install_sh="$ac_aux_dir/shtool install -c"
1331    break
1332  fi
1333done
1334if test -z "$ac_aux_dir"; then
1335  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337   { (exit 1); exit 1; }; }
1338fi
1339ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1342
1343# Make sure we can run config.sub.
1344$ac_config_sub sun4 >/dev/null 2>&1 ||
1345  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1346echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1347   { (exit 1); exit 1; }; }
1348
1349echo "$as_me:$LINENO: checking build system type" >&5
1350echo $ECHO_N "checking build system type... $ECHO_C" >&6
1351if test "${ac_cv_build+set}" = set; then
1352  echo $ECHO_N "(cached) $ECHO_C" >&6
1353else
1354  ac_cv_build_alias=$build_alias
1355test -z "$ac_cv_build_alias" &&
1356  ac_cv_build_alias=`$ac_config_guess`
1357test -z "$ac_cv_build_alias" &&
1358  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1359echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1360   { (exit 1); exit 1; }; }
1361ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1362  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1363echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1364   { (exit 1); exit 1; }; }
1365
1366fi
1367echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1368echo "${ECHO_T}$ac_cv_build" >&6
1369build=$ac_cv_build
1370build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1371build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1372build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1373
1374
1375echo "$as_me:$LINENO: checking host system type" >&5
1376echo $ECHO_N "checking host system type... $ECHO_C" >&6
1377if test "${ac_cv_host+set}" = set; then
1378  echo $ECHO_N "(cached) $ECHO_C" >&6
1379else
1380  ac_cv_host_alias=$host_alias
1381test -z "$ac_cv_host_alias" &&
1382  ac_cv_host_alias=$ac_cv_build_alias
1383ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1384  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1385echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1386   { (exit 1); exit 1; }; }
1387
1388fi
1389echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1390echo "${ECHO_T}$ac_cv_host" >&6
1391host=$ac_cv_host
1392host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1393host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1394host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1395
1396
1397echo "$as_me:$LINENO: checking target system type" >&5
1398echo $ECHO_N "checking target system type... $ECHO_C" >&6
1399if test "${ac_cv_target+set}" = set; then
1400  echo $ECHO_N "(cached) $ECHO_C" >&6
1401else
1402  ac_cv_target_alias=$target_alias
1403test "x$ac_cv_target_alias" = "x" &&
1404  ac_cv_target_alias=$ac_cv_host_alias
1405ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1406  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1407echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1408   { (exit 1); exit 1; }; }
1409
1410fi
1411echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1412echo "${ECHO_T}$ac_cv_target" >&6
1413target=$ac_cv_target
1414target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1417
1418
1419# The aliases save the names the user supplied, while $host etc.
1420# will get canonicalized.
1421test -n "$target_alias" &&
1422  test "$program_prefix$program_suffix$program_transform_name" = \
1423    NONENONEs,x,x, &&
1424  program_prefix=${target_alias}-
1425 case ${build_alias} in
1426  "") build_noncanonical=${build} ;;
1427  *) build_noncanonical=${build_alias} ;;
1428esac
1429
1430 case ${host_alias} in
1431  "") host_noncanonical=${build_noncanonical} ;;
1432  *) host_noncanonical=${host_alias} ;;
1433esac
1434
1435 case ${target_alias} in
1436  "") target_noncanonical=${host_noncanonical} ;;
1437  *) target_noncanonical=${target_alias} ;;
1438esac
1439
1440
1441
1442
1443am__api_version="1.9"
1444# Find a good install program.  We prefer a C program (faster),
1445# so one script is as good as another.  But avoid the broken or
1446# incompatible versions:
1447# SysV /etc/install, /usr/sbin/install
1448# SunOS /usr/etc/install
1449# IRIX /sbin/install
1450# AIX /bin/install
1451# AmigaOS /C/install, which installs bootblocks on floppy discs
1452# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1453# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1454# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1455# OS/2's system install, which has a completely different semantic
1456# ./install, which can be erroneously created by make from ./install.sh.
1457echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1458echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1459if test -z "$INSTALL"; then
1460if test "${ac_cv_path_install+set}" = set; then
1461  echo $ECHO_N "(cached) $ECHO_C" >&6
1462else
1463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464for as_dir in $PATH
1465do
1466  IFS=$as_save_IFS
1467  test -z "$as_dir" && as_dir=.
1468  # Account for people who put trailing slashes in PATH elements.
1469case $as_dir/ in
1470  ./ | .// | /cC/* | \
1471  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1472  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1473  /usr/ucb/* ) ;;
1474  *)
1475    # OSF1 and SCO ODT 3.0 have their own names for install.
1476    # Don't use installbsd from OSF since it installs stuff as root
1477    # by default.
1478    for ac_prog in ginstall scoinst install; do
1479      for ac_exec_ext in '' $ac_executable_extensions; do
1480	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1481	  if test $ac_prog = install &&
1482	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1483	    # AIX install.  It has an incompatible calling convention.
1484	    :
1485	  elif test $ac_prog = install &&
1486	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1487	    # program-specific install script used by HP pwplus--don't use.
1488	    :
1489	  else
1490	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1491	    break 3
1492	  fi
1493	fi
1494      done
1495    done
1496    ;;
1497esac
1498done
1499
1500
1501fi
1502  if test "${ac_cv_path_install+set}" = set; then
1503    INSTALL=$ac_cv_path_install
1504  else
1505    # As a last resort, use the slow shell script.  We don't cache a
1506    # path for INSTALL within a source directory, because that will
1507    # break other packages using the cache if that directory is
1508    # removed, or if the path is relative.
1509    INSTALL=$ac_install_sh
1510  fi
1511fi
1512echo "$as_me:$LINENO: result: $INSTALL" >&5
1513echo "${ECHO_T}$INSTALL" >&6
1514
1515# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1516# It thinks the first close brace ends the variable substitution.
1517test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1518
1519test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1520
1521test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1522
1523echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1524echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1525# Just in case
1526sleep 1
1527echo timestamp > conftest.file
1528# Do `set' in a subshell so we don't clobber the current shell's
1529# arguments.  Must try -L first in case configure is actually a
1530# symlink; some systems play weird games with the mod time of symlinks
1531# (eg FreeBSD returns the mod time of the symlink's containing
1532# directory).
1533if (
1534   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1535   if test "$*" = "X"; then
1536      # -L didn't work.
1537      set X `ls -t $srcdir/configure conftest.file`
1538   fi
1539   rm -f conftest.file
1540   if test "$*" != "X $srcdir/configure conftest.file" \
1541      && test "$*" != "X conftest.file $srcdir/configure"; then
1542
1543      # If neither matched, then we have a broken ls.  This can happen
1544      # if, for instance, CONFIG_SHELL is bash and it inherits a
1545      # broken ls alias from the environment.  This has actually
1546      # happened.  Such a system could not be considered "sane".
1547      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1548alias in your environment" >&5
1549echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1550alias in your environment" >&2;}
1551   { (exit 1); exit 1; }; }
1552   fi
1553
1554   test "$2" = conftest.file
1555   )
1556then
1557   # Ok.
1558   :
1559else
1560   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1561Check your system clock" >&5
1562echo "$as_me: error: newly created file is older than distributed files!
1563Check your system clock" >&2;}
1564   { (exit 1); exit 1; }; }
1565fi
1566echo "$as_me:$LINENO: result: yes" >&5
1567echo "${ECHO_T}yes" >&6
1568test "$program_prefix" != NONE &&
1569  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1570# Use a double $ so make ignores it.
1571test "$program_suffix" != NONE &&
1572  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1573# Double any \ or $.  echo might interpret backslashes.
1574# By default was `s,x,x', remove it if useless.
1575cat <<\_ACEOF >conftest.sed
1576s/[\\$]/&&/g;s/;s,x,x,$//
1577_ACEOF
1578program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1579rm conftest.sed
1580
1581# expand $ac_aux_dir to an absolute path
1582am_aux_dir=`cd $ac_aux_dir && pwd`
1583
1584test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1585# Use eval to expand $SHELL
1586if eval "$MISSING --run true"; then
1587  am_missing_run="$MISSING --run "
1588else
1589  am_missing_run=
1590  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1591echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1592fi
1593
1594if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1595  # We used to keeping the `.' as first argument, in order to
1596  # allow $(mkdir_p) to be used without argument.  As in
1597  #   $(mkdir_p) $(somedir)
1598  # where $(somedir) is conditionally defined.  However this is wrong
1599  # for two reasons:
1600  #  1. if the package is installed by a user who cannot write `.'
1601  #     make install will fail,
1602  #  2. the above comment should most certainly read
1603  #     $(mkdir_p) $(DESTDIR)$(somedir)
1604  #     so it does not work when $(somedir) is undefined and
1605  #     $(DESTDIR) is not.
1606  #  To support the latter case, we have to write
1607  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1608  #  so the `.' trick is pointless.
1609  mkdir_p='mkdir -p --'
1610else
1611  # On NextStep and OpenStep, the `mkdir' command does not
1612  # recognize any option.  It will interpret all options as
1613  # directories to create, and then abort because `.' already
1614  # exists.
1615  for d in ./-p ./--version;
1616  do
1617    test -d $d && rmdir $d
1618  done
1619  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1620  if test -f "$ac_aux_dir/mkinstalldirs"; then
1621    mkdir_p='$(mkinstalldirs)'
1622  else
1623    mkdir_p='$(install_sh) -d'
1624  fi
1625fi
1626
1627for ac_prog in gawk mawk nawk awk
1628do
1629  # Extract the first word of "$ac_prog", so it can be a program name with args.
1630set dummy $ac_prog; ac_word=$2
1631echo "$as_me:$LINENO: checking for $ac_word" >&5
1632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633if test "${ac_cv_prog_AWK+set}" = set; then
1634  echo $ECHO_N "(cached) $ECHO_C" >&6
1635else
1636  if test -n "$AWK"; then
1637  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1638else
1639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640for as_dir in $PATH
1641do
1642  IFS=$as_save_IFS
1643  test -z "$as_dir" && as_dir=.
1644  for ac_exec_ext in '' $ac_executable_extensions; do
1645  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646    ac_cv_prog_AWK="$ac_prog"
1647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648    break 2
1649  fi
1650done
1651done
1652
1653fi
1654fi
1655AWK=$ac_cv_prog_AWK
1656if test -n "$AWK"; then
1657  echo "$as_me:$LINENO: result: $AWK" >&5
1658echo "${ECHO_T}$AWK" >&6
1659else
1660  echo "$as_me:$LINENO: result: no" >&5
1661echo "${ECHO_T}no" >&6
1662fi
1663
1664  test -n "$AWK" && break
1665done
1666
1667echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1668echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1669set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1670if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1671  echo $ECHO_N "(cached) $ECHO_C" >&6
1672else
1673  cat >conftest.make <<\_ACEOF
1674all:
1675	@echo 'ac_maketemp="$(MAKE)"'
1676_ACEOF
1677# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1678eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1679if test -n "$ac_maketemp"; then
1680  eval ac_cv_prog_make_${ac_make}_set=yes
1681else
1682  eval ac_cv_prog_make_${ac_make}_set=no
1683fi
1684rm -f conftest.make
1685fi
1686if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1687  echo "$as_me:$LINENO: result: yes" >&5
1688echo "${ECHO_T}yes" >&6
1689  SET_MAKE=
1690else
1691  echo "$as_me:$LINENO: result: no" >&5
1692echo "${ECHO_T}no" >&6
1693  SET_MAKE="MAKE=${MAKE-make}"
1694fi
1695
1696rm -rf .tst 2>/dev/null
1697mkdir .tst 2>/dev/null
1698if test -d .tst; then
1699  am__leading_dot=.
1700else
1701  am__leading_dot=_
1702fi
1703rmdir .tst 2>/dev/null
1704
1705# test to see if srcdir already configured
1706if test "`cd $srcdir && pwd`" != "`pwd`" &&
1707   test -f $srcdir/config.status; then
1708  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1709echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1710   { (exit 1); exit 1; }; }
1711fi
1712
1713# test whether we have cygpath
1714if test -z "$CYGPATH_W"; then
1715  if (cygpath --version) >/dev/null 2>/dev/null; then
1716    CYGPATH_W='cygpath -w'
1717  else
1718    CYGPATH_W=echo
1719  fi
1720fi
1721
1722
1723# Define the identity of the package.
1724 PACKAGE='libssp'
1725 VERSION='1.0'
1726
1727
1728cat >>confdefs.h <<_ACEOF
1729#define PACKAGE "$PACKAGE"
1730_ACEOF
1731
1732
1733cat >>confdefs.h <<_ACEOF
1734#define VERSION "$VERSION"
1735_ACEOF
1736
1737# Some tools Automake needs.
1738
1739ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1740
1741
1742AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1743
1744
1745AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1746
1747
1748AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1749
1750
1751MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1752
1753install_sh=${install_sh-"$am_aux_dir/install-sh"}
1754
1755# Installed binaries are usually stripped using `strip' when the user
1756# run `make install-strip'.  However `strip' might not be the right
1757# tool to use in cross-compilation environments, therefore Automake
1758# will honor the `STRIP' environment variable to overrule this program.
1759if test "$cross_compiling" != no; then
1760  if test -n "$ac_tool_prefix"; then
1761  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1762set dummy ${ac_tool_prefix}strip; ac_word=$2
1763echo "$as_me:$LINENO: checking for $ac_word" >&5
1764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765if test "${ac_cv_prog_STRIP+set}" = set; then
1766  echo $ECHO_N "(cached) $ECHO_C" >&6
1767else
1768  if test -n "$STRIP"; then
1769  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1770else
1771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772for as_dir in $PATH
1773do
1774  IFS=$as_save_IFS
1775  test -z "$as_dir" && as_dir=.
1776  for ac_exec_ext in '' $ac_executable_extensions; do
1777  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1779    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780    break 2
1781  fi
1782done
1783done
1784
1785fi
1786fi
1787STRIP=$ac_cv_prog_STRIP
1788if test -n "$STRIP"; then
1789  echo "$as_me:$LINENO: result: $STRIP" >&5
1790echo "${ECHO_T}$STRIP" >&6
1791else
1792  echo "$as_me:$LINENO: result: no" >&5
1793echo "${ECHO_T}no" >&6
1794fi
1795
1796fi
1797if test -z "$ac_cv_prog_STRIP"; then
1798  ac_ct_STRIP=$STRIP
1799  # Extract the first word of "strip", so it can be a program name with args.
1800set dummy strip; ac_word=$2
1801echo "$as_me:$LINENO: checking for $ac_word" >&5
1802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1804  echo $ECHO_N "(cached) $ECHO_C" >&6
1805else
1806  if test -n "$ac_ct_STRIP"; then
1807  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1808else
1809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810for as_dir in $PATH
1811do
1812  IFS=$as_save_IFS
1813  test -z "$as_dir" && as_dir=.
1814  for ac_exec_ext in '' $ac_executable_extensions; do
1815  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816    ac_cv_prog_ac_ct_STRIP="strip"
1817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818    break 2
1819  fi
1820done
1821done
1822
1823  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1824fi
1825fi
1826ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1827if test -n "$ac_ct_STRIP"; then
1828  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1829echo "${ECHO_T}$ac_ct_STRIP" >&6
1830else
1831  echo "$as_me:$LINENO: result: no" >&5
1832echo "${ECHO_T}no" >&6
1833fi
1834
1835  STRIP=$ac_ct_STRIP
1836else
1837  STRIP="$ac_cv_prog_STRIP"
1838fi
1839
1840fi
1841INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1842
1843# We need awk for the "check" target.  The system "awk" is bad on
1844# some platforms.
1845# Always define AMTAR for backward compatibility.
1846
1847AMTAR=${AMTAR-"${am_missing_run}tar"}
1848
1849am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1850
1851
1852
1853
1854
1855
1856echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1857echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1858# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1859if test "${enable_version_specific_runtime_libs+set}" = set; then
1860  enableval="$enable_version_specific_runtime_libs"
1861  case "$enableval" in
1862 yes) version_specific_libs=yes ;;
1863 no)  version_specific_libs=no ;;
1864 *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1865echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1866   { (exit 1); exit 1; }; };;
1867 esac
1868else
1869  version_specific_libs=no
1870fi;
1871echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1872echo "${ECHO_T}$version_specific_libs" >&6
1873
1874echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1875echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1876    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1877if test "${enable_maintainer_mode+set}" = set; then
1878  enableval="$enable_maintainer_mode"
1879  USE_MAINTAINER_MODE=$enableval
1880else
1881  USE_MAINTAINER_MODE=no
1882fi;
1883  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1884echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1885
1886
1887if test $USE_MAINTAINER_MODE = yes; then
1888  MAINTAINER_MODE_TRUE=
1889  MAINTAINER_MODE_FALSE='#'
1890else
1891  MAINTAINER_MODE_TRUE='#'
1892  MAINTAINER_MODE_FALSE=
1893fi
1894
1895  MAINT=$MAINTAINER_MODE_TRUE
1896
1897
1898
1899
1900
1901# Default to --enable-multilib
1902# Check whether --enable-multilib or --disable-multilib was given.
1903if test "${enable_multilib+set}" = set; then
1904  enableval="$enable_multilib"
1905  case "$enableval" in
1906  yes) multilib=yes ;;
1907  no)  multilib=no ;;
1908  *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1909echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1910   { (exit 1); exit 1; }; } ;;
1911 esac
1912else
1913  multilib=yes
1914fi;
1915
1916# We may get other options which we leave undocumented:
1917# --with-target-subdir, --with-multisrctop, --with-multisubdir
1918# See config-ml.in if you want the gory details.
1919
1920if test "$srcdir" = "."; then
1921  if test "$with_target_subdir" != "."; then
1922    multi_basedir="$srcdir/$with_multisrctop../.."
1923  else
1924    multi_basedir="$srcdir/$with_multisrctop.."
1925  fi
1926else
1927  multi_basedir="$srcdir/.."
1928fi
1929
1930
1931# Even if the default multilib is not a cross compilation,
1932# it may be that some of the other multilibs are.
1933if test $cross_compiling = no && test $multilib = yes \
1934   && test "x${with_multisubdir}" != x ; then
1935   cross_compiling=maybe
1936fi
1937
1938          ac_config_commands="$ac_config_commands default-1"
1939
1940
1941target_alias=${target_alias-$host_alias}
1942
1943
1944          ac_config_headers="$ac_config_headers config.h"
1945
1946
1947ac_ext=c
1948ac_cpp='$CPP $CPPFLAGS'
1949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952
1953# The same as in boehm-gc and libstdc++. Have to borrow it from there.
1954# We must force CC to /not/ be precious variables; otherwise
1955# the wrong, non-multilib-adjusted value will be used in multilibs.
1956# As a side effect, we have to subst CFLAGS ourselves.
1957
1958
1959
1960ac_ext=c
1961ac_cpp='$CPP $CPPFLAGS'
1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965if test -n "$ac_tool_prefix"; then
1966  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1967set dummy ${ac_tool_prefix}gcc; ac_word=$2
1968echo "$as_me:$LINENO: checking for $ac_word" >&5
1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970if test "${ac_cv_prog_CC+set}" = set; then
1971  echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973  if test -n "$CC"; then
1974  ac_cv_prog_CC="$CC" # Let the user override the test.
1975else
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981  for ac_exec_ext in '' $ac_executable_extensions; do
1982  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985    break 2
1986  fi
1987done
1988done
1989
1990fi
1991fi
1992CC=$ac_cv_prog_CC
1993if test -n "$CC"; then
1994  echo "$as_me:$LINENO: result: $CC" >&5
1995echo "${ECHO_T}$CC" >&6
1996else
1997  echo "$as_me:$LINENO: result: no" >&5
1998echo "${ECHO_T}no" >&6
1999fi
2000
2001fi
2002if test -z "$ac_cv_prog_CC"; then
2003  ac_ct_CC=$CC
2004  # Extract the first word of "gcc", so it can be a program name with args.
2005set dummy gcc; ac_word=$2
2006echo "$as_me:$LINENO: checking for $ac_word" >&5
2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009  echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011  if test -n "$ac_ct_CC"; then
2012  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013else
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017  IFS=$as_save_IFS
2018  test -z "$as_dir" && as_dir=.
2019  for ac_exec_ext in '' $ac_executable_extensions; do
2020  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021    ac_cv_prog_ac_ct_CC="gcc"
2022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023    break 2
2024  fi
2025done
2026done
2027
2028fi
2029fi
2030ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031if test -n "$ac_ct_CC"; then
2032  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033echo "${ECHO_T}$ac_ct_CC" >&6
2034else
2035  echo "$as_me:$LINENO: result: no" >&5
2036echo "${ECHO_T}no" >&6
2037fi
2038
2039  CC=$ac_ct_CC
2040else
2041  CC="$ac_cv_prog_CC"
2042fi
2043
2044if test -z "$CC"; then
2045  if test -n "$ac_tool_prefix"; then
2046  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2047set dummy ${ac_tool_prefix}cc; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_CC+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test -n "$CC"; then
2054  ac_cv_prog_CC="$CC" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061  for ac_exec_ext in '' $ac_executable_extensions; do
2062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063    ac_cv_prog_CC="${ac_tool_prefix}cc"
2064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065    break 2
2066  fi
2067done
2068done
2069
2070fi
2071fi
2072CC=$ac_cv_prog_CC
2073if test -n "$CC"; then
2074  echo "$as_me:$LINENO: result: $CC" >&5
2075echo "${ECHO_T}$CC" >&6
2076else
2077  echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6
2079fi
2080
2081fi
2082if test -z "$ac_cv_prog_CC"; then
2083  ac_ct_CC=$CC
2084  # Extract the first word of "cc", so it can be a program name with args.
2085set dummy cc; ac_word=$2
2086echo "$as_me:$LINENO: checking for $ac_word" >&5
2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089  echo $ECHO_N "(cached) $ECHO_C" >&6
2090else
2091  if test -n "$ac_ct_CC"; then
2092  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093else
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097  IFS=$as_save_IFS
2098  test -z "$as_dir" && as_dir=.
2099  for ac_exec_ext in '' $ac_executable_extensions; do
2100  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101    ac_cv_prog_ac_ct_CC="cc"
2102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103    break 2
2104  fi
2105done
2106done
2107
2108fi
2109fi
2110ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111if test -n "$ac_ct_CC"; then
2112  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113echo "${ECHO_T}$ac_ct_CC" >&6
2114else
2115  echo "$as_me:$LINENO: result: no" >&5
2116echo "${ECHO_T}no" >&6
2117fi
2118
2119  CC=$ac_ct_CC
2120else
2121  CC="$ac_cv_prog_CC"
2122fi
2123
2124fi
2125if test -z "$CC"; then
2126  # Extract the first word of "cc", so it can be a program name with args.
2127set dummy cc; ac_word=$2
2128echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130if test "${ac_cv_prog_CC+set}" = set; then
2131  echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133  if test -n "$CC"; then
2134  ac_cv_prog_CC="$CC" # Let the user override the test.
2135else
2136  ac_prog_rejected=no
2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140  IFS=$as_save_IFS
2141  test -z "$as_dir" && as_dir=.
2142  for ac_exec_ext in '' $ac_executable_extensions; do
2143  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2145       ac_prog_rejected=yes
2146       continue
2147     fi
2148    ac_cv_prog_CC="cc"
2149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150    break 2
2151  fi
2152done
2153done
2154
2155if test $ac_prog_rejected = yes; then
2156  # We found a bogon in the path, so make sure we never use it.
2157  set dummy $ac_cv_prog_CC
2158  shift
2159  if test $# != 0; then
2160    # We chose a different compiler from the bogus one.
2161    # However, it has the same basename, so the bogon will be chosen
2162    # first if we set CC to just the basename; use the full file name.
2163    shift
2164    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2165  fi
2166fi
2167fi
2168fi
2169CC=$ac_cv_prog_CC
2170if test -n "$CC"; then
2171  echo "$as_me:$LINENO: result: $CC" >&5
2172echo "${ECHO_T}$CC" >&6
2173else
2174  echo "$as_me:$LINENO: result: no" >&5
2175echo "${ECHO_T}no" >&6
2176fi
2177
2178fi
2179if test -z "$CC"; then
2180  if test -n "$ac_tool_prefix"; then
2181  for ac_prog in cl
2182  do
2183    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2185echo "$as_me:$LINENO: checking for $ac_word" >&5
2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187if test "${ac_cv_prog_CC+set}" = set; then
2188  echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190  if test -n "$CC"; then
2191  ac_cv_prog_CC="$CC" # Let the user override the test.
2192else
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196  IFS=$as_save_IFS
2197  test -z "$as_dir" && as_dir=.
2198  for ac_exec_ext in '' $ac_executable_extensions; do
2199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202    break 2
2203  fi
2204done
2205done
2206
2207fi
2208fi
2209CC=$ac_cv_prog_CC
2210if test -n "$CC"; then
2211  echo "$as_me:$LINENO: result: $CC" >&5
2212echo "${ECHO_T}$CC" >&6
2213else
2214  echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6
2216fi
2217
2218    test -n "$CC" && break
2219  done
2220fi
2221if test -z "$CC"; then
2222  ac_ct_CC=$CC
2223  for ac_prog in cl
2224do
2225  # Extract the first word of "$ac_prog", so it can be a program name with args.
2226set dummy $ac_prog; ac_word=$2
2227echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230  echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232  if test -n "$ac_ct_CC"; then
2233  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234else
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238  IFS=$as_save_IFS
2239  test -z "$as_dir" && as_dir=.
2240  for ac_exec_ext in '' $ac_executable_extensions; do
2241  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242    ac_cv_prog_ac_ct_CC="$ac_prog"
2243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244    break 2
2245  fi
2246done
2247done
2248
2249fi
2250fi
2251ac_ct_CC=$ac_cv_prog_ac_ct_CC
2252if test -n "$ac_ct_CC"; then
2253  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2254echo "${ECHO_T}$ac_ct_CC" >&6
2255else
2256  echo "$as_me:$LINENO: result: no" >&5
2257echo "${ECHO_T}no" >&6
2258fi
2259
2260  test -n "$ac_ct_CC" && break
2261done
2262
2263  CC=$ac_ct_CC
2264fi
2265
2266fi
2267
2268
2269test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: no acceptable C compiler found in \$PATH
2272See \`config.log' for more details." >&2;}
2273   { (exit 1); exit 1; }; }
2274
2275# Provide some information about the compiler.
2276echo "$as_me:$LINENO:" \
2277     "checking for C compiler version" >&5
2278ac_compiler=`set X $ac_compile; echo $2`
2279{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2280  (eval $ac_compiler --version </dev/null >&5) 2>&5
2281  ac_status=$?
2282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283  (exit $ac_status); }
2284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2285  (eval $ac_compiler -v </dev/null >&5) 2>&5
2286  ac_status=$?
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); }
2289{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2290  (eval $ac_compiler -V </dev/null >&5) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }
2294
2295cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h.  */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h.  */
2301
2302int
2303main ()
2304{
2305
2306  ;
2307  return 0;
2308}
2309_ACEOF
2310# FIXME: Cleanup?
2311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2312  (eval $ac_link) 2>&5
2313  ac_status=$?
2314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315  (exit $ac_status); }; then
2316  gcc_no_link=no
2317else
2318  gcc_no_link=yes
2319fi
2320
2321if test x$gcc_no_link = xyes; then
2322  # Setting cross_compile will disable run tests; it will
2323  # also disable AC_CHECK_FILE but that's generally
2324  # correct if we can't link.
2325  cross_compiling=yes
2326  EXEEXT=
2327else
2328  cat >conftest.$ac_ext <<_ACEOF
2329/* confdefs.h.  */
2330_ACEOF
2331cat confdefs.h >>conftest.$ac_ext
2332cat >>conftest.$ac_ext <<_ACEOF
2333/* end confdefs.h.  */
2334
2335int
2336main ()
2337{
2338
2339  ;
2340  return 0;
2341}
2342_ACEOF
2343ac_clean_files_save=$ac_clean_files
2344ac_clean_files="$ac_clean_files a.out a.exe b.out"
2345# Try to create an executable without -o first, disregard a.out.
2346# It will help us diagnose broken compilers, and finding out an intuition
2347# of exeext.
2348echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2349echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2350ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2351if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2352  (eval $ac_link_default) 2>&5
2353  ac_status=$?
2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355  (exit $ac_status); }; then
2356  # Find the output, starting from the most likely.  This scheme is
2357# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2358# resort.
2359
2360# Be careful to initialize this variable, since it used to be cached.
2361# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2362ac_cv_exeext=
2363# b.out is created by i960 compilers.
2364for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2365do
2366  test -f "$ac_file" || continue
2367  case $ac_file in
2368    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2369	;;
2370    conftest.$ac_ext )
2371	# This is the source file.
2372	;;
2373    [ab].out )
2374	# We found the default executable, but exeext='' is most
2375	# certainly right.
2376	break;;
2377    *.* )
2378	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2379	# FIXME: I believe we export ac_cv_exeext for Libtool,
2380	# but it would be cool to find out if it's true.  Does anybody
2381	# maintain Libtool? --akim.
2382	export ac_cv_exeext
2383	break;;
2384    * )
2385	break;;
2386  esac
2387done
2388else
2389  echo "$as_me: failed program was:" >&5
2390sed 's/^/| /' conftest.$ac_ext >&5
2391
2392{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2393See \`config.log' for more details." >&5
2394echo "$as_me: error: C compiler cannot create executables
2395See \`config.log' for more details." >&2;}
2396   { (exit 77); exit 77; }; }
2397fi
2398
2399ac_exeext=$ac_cv_exeext
2400echo "$as_me:$LINENO: result: $ac_file" >&5
2401echo "${ECHO_T}$ac_file" >&6
2402
2403# Check the compiler produces executables we can run.  If not, either
2404# the compiler is broken, or we cross compile.
2405echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2406echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2407# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2408# If not cross compiling, check that we can run a simple program.
2409if test "$cross_compiling" != yes; then
2410  if { ac_try='./$ac_file'
2411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412  (eval $ac_try) 2>&5
2413  ac_status=$?
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); }; }; then
2416    cross_compiling=no
2417  else
2418    if test "$cross_compiling" = maybe; then
2419	cross_compiling=yes
2420    else
2421	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2422If you meant to cross compile, use \`--host'.
2423See \`config.log' for more details." >&5
2424echo "$as_me: error: cannot run C compiled programs.
2425If you meant to cross compile, use \`--host'.
2426See \`config.log' for more details." >&2;}
2427   { (exit 1); exit 1; }; }
2428    fi
2429  fi
2430fi
2431echo "$as_me:$LINENO: result: yes" >&5
2432echo "${ECHO_T}yes" >&6
2433
2434rm -f a.out a.exe conftest$ac_cv_exeext b.out
2435ac_clean_files=$ac_clean_files_save
2436# Check the compiler produces executables we can run.  If not, either
2437# the compiler is broken, or we cross compile.
2438echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2439echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2440echo "$as_me:$LINENO: result: $cross_compiling" >&5
2441echo "${ECHO_T}$cross_compiling" >&6
2442
2443echo "$as_me:$LINENO: checking for suffix of executables" >&5
2444echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446  (eval $ac_link) 2>&5
2447  ac_status=$?
2448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449  (exit $ac_status); }; then
2450  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2451# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2452# work properly (i.e., refer to `conftest.exe'), while it won't with
2453# `rm'.
2454for ac_file in conftest.exe conftest conftest.*; do
2455  test -f "$ac_file" || continue
2456  case $ac_file in
2457    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2458    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2459	  export ac_cv_exeext
2460	  break;;
2461    * ) break;;
2462  esac
2463done
2464else
2465  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2466See \`config.log' for more details." >&5
2467echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2468See \`config.log' for more details." >&2;}
2469   { (exit 1); exit 1; }; }
2470fi
2471
2472rm -f conftest$ac_cv_exeext
2473echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2474echo "${ECHO_T}$ac_cv_exeext" >&6
2475
2476rm -f conftest.$ac_ext
2477EXEEXT=$ac_cv_exeext
2478ac_exeext=$EXEEXT
2479fi
2480echo "$as_me:$LINENO: checking for suffix of object files" >&5
2481echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2482if test "${ac_cv_objext+set}" = set; then
2483  echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485  cat >conftest.$ac_ext <<_ACEOF
2486/* confdefs.h.  */
2487_ACEOF
2488cat confdefs.h >>conftest.$ac_ext
2489cat >>conftest.$ac_ext <<_ACEOF
2490/* end confdefs.h.  */
2491
2492int
2493main ()
2494{
2495
2496  ;
2497  return 0;
2498}
2499_ACEOF
2500rm -f conftest.o conftest.obj
2501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502  (eval $ac_compile) 2>&5
2503  ac_status=$?
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); }; then
2506  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2507  case $ac_file in
2508    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2509    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2510       break;;
2511  esac
2512done
2513else
2514  echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2518See \`config.log' for more details." >&5
2519echo "$as_me: error: cannot compute suffix of object files: cannot compile
2520See \`config.log' for more details." >&2;}
2521   { (exit 1); exit 1; }; }
2522fi
2523
2524rm -f conftest.$ac_cv_objext conftest.$ac_ext
2525fi
2526echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2527echo "${ECHO_T}$ac_cv_objext" >&6
2528OBJEXT=$ac_cv_objext
2529ac_objext=$OBJEXT
2530echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2531echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2532if test "${ac_cv_c_compiler_gnu+set}" = set; then
2533  echo $ECHO_N "(cached) $ECHO_C" >&6
2534else
2535  cat >conftest.$ac_ext <<_ACEOF
2536/* confdefs.h.  */
2537_ACEOF
2538cat confdefs.h >>conftest.$ac_ext
2539cat >>conftest.$ac_ext <<_ACEOF
2540/* end confdefs.h.  */
2541
2542int
2543main ()
2544{
2545#ifndef __GNUC__
2546       choke me
2547#endif
2548
2549  ;
2550  return 0;
2551}
2552_ACEOF
2553rm -f conftest.$ac_objext
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555  (eval $ac_compile) 2>conftest.er1
2556  ac_status=$?
2557  grep -v '^ *+' conftest.er1 >conftest.err
2558  rm -f conftest.er1
2559  cat conftest.err >&5
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); } &&
2562	 { ac_try='test -z "$ac_c_werror_flag"
2563			 || test ! -s conftest.err'
2564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565  (eval $ac_try) 2>&5
2566  ac_status=$?
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); }; } &&
2569	 { ac_try='test -s conftest.$ac_objext'
2570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571  (eval $ac_try) 2>&5
2572  ac_status=$?
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); }; }; then
2575  ac_compiler_gnu=yes
2576else
2577  echo "$as_me: failed program was:" >&5
2578sed 's/^/| /' conftest.$ac_ext >&5
2579
2580ac_compiler_gnu=no
2581fi
2582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583ac_cv_c_compiler_gnu=$ac_compiler_gnu
2584
2585fi
2586echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2587echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2588GCC=`test $ac_compiler_gnu = yes && echo yes`
2589ac_test_CFLAGS=${CFLAGS+set}
2590ac_save_CFLAGS=$CFLAGS
2591CFLAGS="-g"
2592echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2593echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2594if test "${ac_cv_prog_cc_g+set}" = set; then
2595  echo $ECHO_N "(cached) $ECHO_C" >&6
2596else
2597  cat >conftest.$ac_ext <<_ACEOF
2598/* confdefs.h.  */
2599_ACEOF
2600cat confdefs.h >>conftest.$ac_ext
2601cat >>conftest.$ac_ext <<_ACEOF
2602/* end confdefs.h.  */
2603
2604int
2605main ()
2606{
2607
2608  ;
2609  return 0;
2610}
2611_ACEOF
2612rm -f conftest.$ac_objext
2613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614  (eval $ac_compile) 2>conftest.er1
2615  ac_status=$?
2616  grep -v '^ *+' conftest.er1 >conftest.err
2617  rm -f conftest.er1
2618  cat conftest.err >&5
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); } &&
2621	 { ac_try='test -z "$ac_c_werror_flag"
2622			 || test ! -s conftest.err'
2623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624  (eval $ac_try) 2>&5
2625  ac_status=$?
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); }; } &&
2628	 { ac_try='test -s conftest.$ac_objext'
2629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630  (eval $ac_try) 2>&5
2631  ac_status=$?
2632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633  (exit $ac_status); }; }; then
2634  ac_cv_prog_cc_g=yes
2635else
2636  echo "$as_me: failed program was:" >&5
2637sed 's/^/| /' conftest.$ac_ext >&5
2638
2639ac_cv_prog_cc_g=no
2640fi
2641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642fi
2643echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2645if test "$ac_test_CFLAGS" = set; then
2646  CFLAGS=$ac_save_CFLAGS
2647elif test $ac_cv_prog_cc_g = yes; then
2648  if test "$GCC" = yes; then
2649    CFLAGS="-g -O2"
2650  else
2651    CFLAGS="-g"
2652  fi
2653else
2654  if test "$GCC" = yes; then
2655    CFLAGS="-O2"
2656  else
2657    CFLAGS=
2658  fi
2659fi
2660echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2661echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2662if test "${ac_cv_prog_cc_stdc+set}" = set; then
2663  echo $ECHO_N "(cached) $ECHO_C" >&6
2664else
2665  ac_cv_prog_cc_stdc=no
2666ac_save_CC=$CC
2667cat >conftest.$ac_ext <<_ACEOF
2668/* confdefs.h.  */
2669_ACEOF
2670cat confdefs.h >>conftest.$ac_ext
2671cat >>conftest.$ac_ext <<_ACEOF
2672/* end confdefs.h.  */
2673#include <stdarg.h>
2674#include <stdio.h>
2675#include <sys/types.h>
2676#include <sys/stat.h>
2677/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2678struct buf { int x; };
2679FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680static char *e (p, i)
2681     char **p;
2682     int i;
2683{
2684  return p[i];
2685}
2686static char *f (char * (*g) (char **, int), char **p, ...)
2687{
2688  char *s;
2689  va_list v;
2690  va_start (v,p);
2691  s = g (p, va_arg (v,int));
2692  va_end (v);
2693  return s;
2694}
2695
2696/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2697   function prototypes and stuff, but not '\xHH' hex character constants.
2698   These don't provoke an error unfortunately, instead are silently treated
2699   as 'x'.  The following induces an error, until -std1 is added to get
2700   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2701   array size at least.  It's necessary to write '\x00'==0 to get something
2702   that's true only with -std1.  */
2703int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704
2705int test (int i, double x);
2706struct s1 {int (*f) (int a);};
2707struct s2 {int (*f) (double a);};
2708int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2709int argc;
2710char **argv;
2711int
2712main ()
2713{
2714return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2715  ;
2716  return 0;
2717}
2718_ACEOF
2719# Don't try gcc -ansi; that turns off useful extensions and
2720# breaks some systems' header files.
2721# AIX			-qlanglvl=ansi
2722# Ultrix and OSF/1	-std1
2723# HP-UX 10.20 and later	-Ae
2724# HP-UX older versions	-Aa -D_HPUX_SOURCE
2725# SVR4			-Xc -D__EXTENSIONS__
2726for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2727do
2728  CC="$ac_save_CC $ac_arg"
2729  rm -f conftest.$ac_objext
2730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731  (eval $ac_compile) 2>conftest.er1
2732  ac_status=$?
2733  grep -v '^ *+' conftest.er1 >conftest.err
2734  rm -f conftest.er1
2735  cat conftest.err >&5
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); } &&
2738	 { ac_try='test -z "$ac_c_werror_flag"
2739			 || test ! -s conftest.err'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; } &&
2745	 { ac_try='test -s conftest.$ac_objext'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; }; then
2751  ac_cv_prog_cc_stdc=$ac_arg
2752break
2753else
2754  echo "$as_me: failed program was:" >&5
2755sed 's/^/| /' conftest.$ac_ext >&5
2756
2757fi
2758rm -f conftest.err conftest.$ac_objext
2759done
2760rm -f conftest.$ac_ext conftest.$ac_objext
2761CC=$ac_save_CC
2762
2763fi
2764
2765case "x$ac_cv_prog_cc_stdc" in
2766  x|xno)
2767    echo "$as_me:$LINENO: result: none needed" >&5
2768echo "${ECHO_T}none needed" >&6 ;;
2769  *)
2770    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2771echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2772    CC="$CC $ac_cv_prog_cc_stdc" ;;
2773esac
2774
2775# Some people use a C++ compiler to compile C.  Since we use `exit',
2776# in C++ we need to declare it.  In case someone uses the same compiler
2777# for both compiling C and C++ we need to have the C++ compiler decide
2778# the declaration of exit, since it's the most demanding environment.
2779cat >conftest.$ac_ext <<_ACEOF
2780#ifndef __cplusplus
2781  choke me
2782#endif
2783_ACEOF
2784rm -f conftest.$ac_objext
2785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786  (eval $ac_compile) 2>conftest.er1
2787  ac_status=$?
2788  grep -v '^ *+' conftest.er1 >conftest.err
2789  rm -f conftest.er1
2790  cat conftest.err >&5
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); } &&
2793	 { ac_try='test -z "$ac_c_werror_flag"
2794			 || test ! -s conftest.err'
2795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796  (eval $ac_try) 2>&5
2797  ac_status=$?
2798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799  (exit $ac_status); }; } &&
2800	 { ac_try='test -s conftest.$ac_objext'
2801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802  (eval $ac_try) 2>&5
2803  ac_status=$?
2804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805  (exit $ac_status); }; }; then
2806  for ac_declaration in \
2807   '' \
2808   'extern "C" void std::exit (int) throw (); using std::exit;' \
2809   'extern "C" void std::exit (int); using std::exit;' \
2810   'extern "C" void exit (int) throw ();' \
2811   'extern "C" void exit (int);' \
2812   'void exit (int);'
2813do
2814  cat >conftest.$ac_ext <<_ACEOF
2815/* confdefs.h.  */
2816_ACEOF
2817cat confdefs.h >>conftest.$ac_ext
2818cat >>conftest.$ac_ext <<_ACEOF
2819/* end confdefs.h.  */
2820$ac_declaration
2821#include <stdlib.h>
2822int
2823main ()
2824{
2825exit (42);
2826  ;
2827  return 0;
2828}
2829_ACEOF
2830rm -f conftest.$ac_objext
2831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832  (eval $ac_compile) 2>conftest.er1
2833  ac_status=$?
2834  grep -v '^ *+' conftest.er1 >conftest.err
2835  rm -f conftest.er1
2836  cat conftest.err >&5
2837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838  (exit $ac_status); } &&
2839	 { ac_try='test -z "$ac_c_werror_flag"
2840			 || test ! -s conftest.err'
2841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842  (eval $ac_try) 2>&5
2843  ac_status=$?
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); }; } &&
2846	 { ac_try='test -s conftest.$ac_objext'
2847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848  (eval $ac_try) 2>&5
2849  ac_status=$?
2850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851  (exit $ac_status); }; }; then
2852  :
2853else
2854  echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857continue
2858fi
2859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860  cat >conftest.$ac_ext <<_ACEOF
2861/* confdefs.h.  */
2862_ACEOF
2863cat confdefs.h >>conftest.$ac_ext
2864cat >>conftest.$ac_ext <<_ACEOF
2865/* end confdefs.h.  */
2866$ac_declaration
2867int
2868main ()
2869{
2870exit (42);
2871  ;
2872  return 0;
2873}
2874_ACEOF
2875rm -f conftest.$ac_objext
2876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877  (eval $ac_compile) 2>conftest.er1
2878  ac_status=$?
2879  grep -v '^ *+' conftest.er1 >conftest.err
2880  rm -f conftest.er1
2881  cat conftest.err >&5
2882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883  (exit $ac_status); } &&
2884	 { ac_try='test -z "$ac_c_werror_flag"
2885			 || test ! -s conftest.err'
2886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887  (eval $ac_try) 2>&5
2888  ac_status=$?
2889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890  (exit $ac_status); }; } &&
2891	 { ac_try='test -s conftest.$ac_objext'
2892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893  (eval $ac_try) 2>&5
2894  ac_status=$?
2895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896  (exit $ac_status); }; }; then
2897  break
2898else
2899  echo "$as_me: failed program was:" >&5
2900sed 's/^/| /' conftest.$ac_ext >&5
2901
2902fi
2903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904done
2905rm -f conftest*
2906if test -n "$ac_declaration"; then
2907  echo '#ifdef __cplusplus' >>confdefs.h
2908  echo $ac_declaration      >>confdefs.h
2909  echo '#endif'             >>confdefs.h
2910fi
2911
2912else
2913  echo "$as_me: failed program was:" >&5
2914sed 's/^/| /' conftest.$ac_ext >&5
2915
2916fi
2917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918ac_ext=c
2919ac_cpp='$CPP $CPPFLAGS'
2920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923DEPDIR="${am__leading_dot}deps"
2924
2925          ac_config_commands="$ac_config_commands depfiles"
2926
2927
2928am_make=${MAKE-make}
2929cat > confinc << 'END'
2930am__doit:
2931	@echo done
2932.PHONY: am__doit
2933END
2934# If we don't find an include directive, just comment out the code.
2935echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2936echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2937am__include="#"
2938am__quote=
2939_am_result=none
2940# First try GNU make style include.
2941echo "include confinc" > confmf
2942# We grep out `Entering directory' and `Leaving directory'
2943# messages which can occur if `w' ends up in MAKEFLAGS.
2944# In particular we don't look at `^make:' because GNU make might
2945# be invoked under some other name (usually "gmake"), in which
2946# case it prints its new name instead of `make'.
2947if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2948   am__include=include
2949   am__quote=
2950   _am_result=GNU
2951fi
2952# Now try BSD make style include.
2953if test "$am__include" = "#"; then
2954   echo '.include "confinc"' > confmf
2955   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2956      am__include=.include
2957      am__quote="\""
2958      _am_result=BSD
2959   fi
2960fi
2961
2962
2963echo "$as_me:$LINENO: result: $_am_result" >&5
2964echo "${ECHO_T}$_am_result" >&6
2965rm -f confinc confmf
2966
2967# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2968if test "${enable_dependency_tracking+set}" = set; then
2969  enableval="$enable_dependency_tracking"
2970
2971fi;
2972if test "x$enable_dependency_tracking" != xno; then
2973  am_depcomp="$ac_aux_dir/depcomp"
2974  AMDEPBACKSLASH='\'
2975fi
2976
2977
2978if test "x$enable_dependency_tracking" != xno; then
2979  AMDEP_TRUE=
2980  AMDEP_FALSE='#'
2981else
2982  AMDEP_TRUE='#'
2983  AMDEP_FALSE=
2984fi
2985
2986
2987
2988
2989depcc="$CC"   am_compiler_list=
2990
2991echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2992echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2993if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2994  echo $ECHO_N "(cached) $ECHO_C" >&6
2995else
2996  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2997  # We make a subdir and do the tests there.  Otherwise we can end up
2998  # making bogus files that we don't know about and never remove.  For
2999  # instance it was reported that on HP-UX the gcc test will end up
3000  # making a dummy file named `D' -- because `-MD' means `put the output
3001  # in D'.
3002  mkdir conftest.dir
3003  # Copy depcomp to subdir because otherwise we won't find it if we're
3004  # using a relative directory.
3005  cp "$am_depcomp" conftest.dir
3006  cd conftest.dir
3007  # We will build objects and dependencies in a subdirectory because
3008  # it helps to detect inapplicable dependency modes.  For instance
3009  # both Tru64's cc and ICC support -MD to output dependencies as a
3010  # side effect of compilation, but ICC will put the dependencies in
3011  # the current directory while Tru64 will put them in the object
3012  # directory.
3013  mkdir sub
3014
3015  am_cv_CC_dependencies_compiler_type=none
3016  if test "$am_compiler_list" = ""; then
3017     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3018  fi
3019  for depmode in $am_compiler_list; do
3020    # Setup a source with many dependencies, because some compilers
3021    # like to wrap large dependency lists on column 80 (with \), and
3022    # we should not choose a depcomp mode which is confused by this.
3023    #
3024    # We need to recreate these files for each test, as the compiler may
3025    # overwrite some of them when testing with obscure command lines.
3026    # This happens at least with the AIX C compiler.
3027    : > sub/conftest.c
3028    for i in 1 2 3 4 5 6; do
3029      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3030      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3031      # Solaris 8's {/usr,}/bin/sh.
3032      touch sub/conftst$i.h
3033    done
3034    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3035
3036    case $depmode in
3037    nosideeffect)
3038      # after this tag, mechanisms are not by side-effect, so they'll
3039      # only be used when explicitly requested
3040      if test "x$enable_dependency_tracking" = xyes; then
3041	continue
3042      else
3043	break
3044      fi
3045      ;;
3046    none) break ;;
3047    esac
3048    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3049    # mode.  It turns out that the SunPro C++ compiler does not properly
3050    # handle `-M -o', and we need to detect this.
3051    if depmode=$depmode \
3052       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3053       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3054       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3055         >/dev/null 2>conftest.err &&
3056       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3057       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3058       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3059      # icc doesn't choke on unknown options, it will just issue warnings
3060      # or remarks (even with -Werror).  So we grep stderr for any message
3061      # that says an option was ignored or not supported.
3062      # When given -MP, icc 7.0 and 7.1 complain thusly:
3063      #   icc: Command line warning: ignoring option '-M'; no argument required
3064      # The diagnosis changed in icc 8.0:
3065      #   icc: Command line remark: option '-MP' not supported
3066      if (grep 'ignoring option' conftest.err ||
3067          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3068        am_cv_CC_dependencies_compiler_type=$depmode
3069        break
3070      fi
3071    fi
3072  done
3073
3074  cd ..
3075  rm -rf conftest.dir
3076else
3077  am_cv_CC_dependencies_compiler_type=none
3078fi
3079
3080fi
3081echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3082echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3083CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3084
3085
3086
3087if
3088  test "x$enable_dependency_tracking" != xno \
3089  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3090  am__fastdepCC_TRUE=
3091  am__fastdepCC_FALSE='#'
3092else
3093  am__fastdepCC_TRUE='#'
3094  am__fastdepCC_FALSE=
3095fi
3096
3097
3098
3099
3100
3101
3102if test "x$GCC" != "xyes"; then
3103  { { echo "$as_me:$LINENO: error: libssp must be built with GCC" >&5
3104echo "$as_me: error: libssp must be built with GCC" >&2;}
3105   { (exit 1); exit 1; }; }
3106fi
3107ac_ext=c
3108ac_cpp='$CPP $CPPFLAGS'
3109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3113echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3114# On Suns, sometimes $CPP names a directory.
3115if test -n "$CPP" && test -d "$CPP"; then
3116  CPP=
3117fi
3118if test -z "$CPP"; then
3119  if test "${ac_cv_prog_CPP+set}" = set; then
3120  echo $ECHO_N "(cached) $ECHO_C" >&6
3121else
3122      # Double quotes because CPP needs to be expanded
3123    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3124    do
3125      ac_preproc_ok=false
3126for ac_c_preproc_warn_flag in '' yes
3127do
3128  # Use a header file that comes with gcc, so configuring glibc
3129  # with a fresh cross-compiler works.
3130  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3131  # <limits.h> exists even on freestanding compilers.
3132  # On the NeXT, cc -E runs the code through the compiler's parser,
3133  # not just through cpp. "Syntax error" is here to catch this case.
3134  cat >conftest.$ac_ext <<_ACEOF
3135/* confdefs.h.  */
3136_ACEOF
3137cat confdefs.h >>conftest.$ac_ext
3138cat >>conftest.$ac_ext <<_ACEOF
3139/* end confdefs.h.  */
3140#ifdef __STDC__
3141# include <limits.h>
3142#else
3143# include <assert.h>
3144#endif
3145		     Syntax error
3146_ACEOF
3147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3148  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3149  ac_status=$?
3150  grep -v '^ *+' conftest.er1 >conftest.err
3151  rm -f conftest.er1
3152  cat conftest.err >&5
3153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); } >/dev/null; then
3155  if test -s conftest.err; then
3156    ac_cpp_err=$ac_c_preproc_warn_flag
3157    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3158  else
3159    ac_cpp_err=
3160  fi
3161else
3162  ac_cpp_err=yes
3163fi
3164if test -z "$ac_cpp_err"; then
3165  :
3166else
3167  echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
3170  # Broken: fails on valid input.
3171continue
3172fi
3173rm -f conftest.err conftest.$ac_ext
3174
3175  # OK, works on sane cases.  Now check whether non-existent headers
3176  # can be detected and how.
3177  cat >conftest.$ac_ext <<_ACEOF
3178/* confdefs.h.  */
3179_ACEOF
3180cat confdefs.h >>conftest.$ac_ext
3181cat >>conftest.$ac_ext <<_ACEOF
3182/* end confdefs.h.  */
3183#include <ac_nonexistent.h>
3184_ACEOF
3185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3186  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3187  ac_status=$?
3188  grep -v '^ *+' conftest.er1 >conftest.err
3189  rm -f conftest.er1
3190  cat conftest.err >&5
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); } >/dev/null; then
3193  if test -s conftest.err; then
3194    ac_cpp_err=$ac_c_preproc_warn_flag
3195    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3196  else
3197    ac_cpp_err=
3198  fi
3199else
3200  ac_cpp_err=yes
3201fi
3202if test -z "$ac_cpp_err"; then
3203  # Broken: success on invalid input.
3204continue
3205else
3206  echo "$as_me: failed program was:" >&5
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
3209  # Passes both tests.
3210ac_preproc_ok=:
3211break
3212fi
3213rm -f conftest.err conftest.$ac_ext
3214
3215done
3216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3217rm -f conftest.err conftest.$ac_ext
3218if $ac_preproc_ok; then
3219  break
3220fi
3221
3222    done
3223    ac_cv_prog_CPP=$CPP
3224
3225fi
3226  CPP=$ac_cv_prog_CPP
3227else
3228  ac_cv_prog_CPP=$CPP
3229fi
3230echo "$as_me:$LINENO: result: $CPP" >&5
3231echo "${ECHO_T}$CPP" >&6
3232ac_preproc_ok=false
3233for ac_c_preproc_warn_flag in '' yes
3234do
3235  # Use a header file that comes with gcc, so configuring glibc
3236  # with a fresh cross-compiler works.
3237  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238  # <limits.h> exists even on freestanding compilers.
3239  # On the NeXT, cc -E runs the code through the compiler's parser,
3240  # not just through cpp. "Syntax error" is here to catch this case.
3241  cat >conftest.$ac_ext <<_ACEOF
3242/* confdefs.h.  */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h.  */
3247#ifdef __STDC__
3248# include <limits.h>
3249#else
3250# include <assert.h>
3251#endif
3252		     Syntax error
3253_ACEOF
3254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3255  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3256  ac_status=$?
3257  grep -v '^ *+' conftest.er1 >conftest.err
3258  rm -f conftest.er1
3259  cat conftest.err >&5
3260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261  (exit $ac_status); } >/dev/null; then
3262  if test -s conftest.err; then
3263    ac_cpp_err=$ac_c_preproc_warn_flag
3264    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3265  else
3266    ac_cpp_err=
3267  fi
3268else
3269  ac_cpp_err=yes
3270fi
3271if test -z "$ac_cpp_err"; then
3272  :
3273else
3274  echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
3276
3277  # Broken: fails on valid input.
3278continue
3279fi
3280rm -f conftest.err conftest.$ac_ext
3281
3282  # OK, works on sane cases.  Now check whether non-existent headers
3283  # can be detected and how.
3284  cat >conftest.$ac_ext <<_ACEOF
3285/* confdefs.h.  */
3286_ACEOF
3287cat confdefs.h >>conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h.  */
3290#include <ac_nonexistent.h>
3291_ACEOF
3292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3293  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3294  ac_status=$?
3295  grep -v '^ *+' conftest.er1 >conftest.err
3296  rm -f conftest.er1
3297  cat conftest.err >&5
3298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299  (exit $ac_status); } >/dev/null; then
3300  if test -s conftest.err; then
3301    ac_cpp_err=$ac_c_preproc_warn_flag
3302    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303  else
3304    ac_cpp_err=
3305  fi
3306else
3307  ac_cpp_err=yes
3308fi
3309if test -z "$ac_cpp_err"; then
3310  # Broken: success on invalid input.
3311continue
3312else
3313  echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316  # Passes both tests.
3317ac_preproc_ok=:
3318break
3319fi
3320rm -f conftest.err conftest.$ac_ext
3321
3322done
3323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324rm -f conftest.err conftest.$ac_ext
3325if $ac_preproc_ok; then
3326  :
3327else
3328  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3329See \`config.log' for more details." >&5
3330echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3331See \`config.log' for more details." >&2;}
3332   { (exit 1); exit 1; }; }
3333fi
3334
3335ac_ext=c
3336ac_cpp='$CPP $CPPFLAGS'
3337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340
3341
3342echo "$as_me:$LINENO: checking whether -fstack-protector works" >&5
3343echo $ECHO_N "checking whether -fstack-protector works... $ECHO_C" >&6
3344save_CFLAGS="$CFLAGS"
3345CFLAGS="$CFLAGS -fstack-protector -Werror"
3346
3347cat >conftest.$ac_ext <<_ACEOF
3348/* confdefs.h.  */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h.  */
3353
3354void __attribute__((noinline)) bar (char *x)
3355{
3356  __builtin_memset (x, 0, 64);
3357}
3358int
3359main ()
3360{
3361char buf[64]; bar (buf);
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366rm -f conftest.$ac_objext
3367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368  (eval $ac_compile) 2>conftest.er1
3369  ac_status=$?
3370  grep -v '^ *+' conftest.er1 >conftest.err
3371  rm -f conftest.er1
3372  cat conftest.err >&5
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); } &&
3375	 { ac_try='test -z "$ac_c_werror_flag"
3376			 || test ! -s conftest.err'
3377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378  (eval $ac_try) 2>&5
3379  ac_status=$?
3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381  (exit $ac_status); }; } &&
3382	 { ac_try='test -s conftest.$ac_objext'
3383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384  (eval $ac_try) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }; }; then
3388  echo "$as_me:$LINENO: result: yes" >&5
3389echo "${ECHO_T}yes" >&6
3390else
3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394echo "$as_me:$LINENO: result: no" >&5
3395echo "${ECHO_T}no" >&6
3396fi
3397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3398CFLAGS="$save_CFLAGS"
3399
3400echo "$as_me:$LINENO: checking whether hidden visibility is supported" >&5
3401echo $ECHO_N "checking whether hidden visibility is supported... $ECHO_C" >&6
3402cat >conftest.$ac_ext <<_ACEOF
3403/* confdefs.h.  */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
3407/* end confdefs.h.  */
3408
3409void __attribute__((visibility ("hidden"))) bar (void) {}
3410int
3411main ()
3412{
3413
3414  ;
3415  return 0;
3416}
3417_ACEOF
3418rm -f conftest.$ac_objext
3419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420  (eval $ac_compile) 2>conftest.er1
3421  ac_status=$?
3422  grep -v '^ *+' conftest.er1 >conftest.err
3423  rm -f conftest.er1
3424  cat conftest.err >&5
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); } &&
3427	 { ac_try='test -z "$ac_c_werror_flag"
3428			 || test ! -s conftest.err'
3429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430  (eval $ac_try) 2>&5
3431  ac_status=$?
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); }; } &&
3434	 { ac_try='test -s conftest.$ac_objext'
3435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436  (eval $ac_try) 2>&5
3437  ac_status=$?
3438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439  (exit $ac_status); }; }; then
3440  ssp_hidden=yes
3441else
3442  echo "$as_me: failed program was:" >&5
3443sed 's/^/| /' conftest.$ac_ext >&5
3444
3445ssp_hidden=no
3446fi
3447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3448echo "$as_me:$LINENO: result: $ssp_hidden" >&5
3449echo "${ECHO_T}$ssp_hidden" >&6
3450if test x$ssp_hidden = xyes; then
3451
3452cat >>confdefs.h <<\_ACEOF
3453#define HAVE_HIDDEN_VISIBILITY 1
3454_ACEOF
3455
3456fi
3457
3458echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5
3459echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6
3460cat > conftest.map <<EOF
3461FOO_1.0 {
3462  global: *foo*; bar; local: *;
3463};
3464EOF
3465save_LDFLAGS="$LDFLAGS"
3466LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
3467if test x$gcc_no_link = xyes; then
3468  # If we cannot link, we cannot build shared libraries, so do not use
3469  # symbol versioning.
3470  ssp_use_symver=no
3471else
3472  if test x$gcc_no_link = xyes; then
3473  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3474echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3475   { (exit 1); exit 1; }; }
3476fi
3477cat >conftest.$ac_ext <<_ACEOF
3478/* confdefs.h.  */
3479_ACEOF
3480cat confdefs.h >>conftest.$ac_ext
3481cat >>conftest.$ac_ext <<_ACEOF
3482/* end confdefs.h.  */
3483int foo;
3484int
3485main ()
3486{
3487
3488  ;
3489  return 0;
3490}
3491_ACEOF
3492rm -f conftest.$ac_objext conftest$ac_exeext
3493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3494  (eval $ac_link) 2>conftest.er1
3495  ac_status=$?
3496  grep -v '^ *+' conftest.er1 >conftest.err
3497  rm -f conftest.er1
3498  cat conftest.err >&5
3499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500  (exit $ac_status); } &&
3501	 { ac_try='test -z "$ac_c_werror_flag"
3502			 || test ! -s conftest.err'
3503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504  (eval $ac_try) 2>&5
3505  ac_status=$?
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); }; } &&
3508	 { ac_try='test -s conftest$ac_exeext'
3509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510  (eval $ac_try) 2>&5
3511  ac_status=$?
3512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513  (exit $ac_status); }; }; then
3514  ssp_use_symver=yes
3515else
3516  echo "$as_me: failed program was:" >&5
3517sed 's/^/| /' conftest.$ac_ext >&5
3518
3519ssp_use_symver=no
3520fi
3521rm -f conftest.err conftest.$ac_objext \
3522      conftest$ac_exeext conftest.$ac_ext
3523fi
3524LDFLAGS="$save_LDFLAGS"
3525echo "$as_me:$LINENO: result: $ssp_use_symver" >&5
3526echo "${ECHO_T}$ssp_use_symver" >&6
3527
3528
3529if test "x$ssp_use_symver" = xyes; then
3530  LIBSSP_USE_SYMVER_TRUE=
3531  LIBSSP_USE_SYMVER_FALSE='#'
3532else
3533  LIBSSP_USE_SYMVER_TRUE='#'
3534  LIBSSP_USE_SYMVER_FALSE=
3535fi
3536
3537
3538
3539echo "$as_me:$LINENO: checking for egrep" >&5
3540echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3541if test "${ac_cv_prog_egrep+set}" = set; then
3542  echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3545    then ac_cv_prog_egrep='grep -E'
3546    else ac_cv_prog_egrep='egrep'
3547    fi
3548fi
3549echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3550echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3551 EGREP=$ac_cv_prog_egrep
3552
3553
3554echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3555echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3556if test "${ac_cv_header_stdc+set}" = set; then
3557  echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559  cat >conftest.$ac_ext <<_ACEOF
3560/* confdefs.h.  */
3561_ACEOF
3562cat confdefs.h >>conftest.$ac_ext
3563cat >>conftest.$ac_ext <<_ACEOF
3564/* end confdefs.h.  */
3565#include <stdlib.h>
3566#include <stdarg.h>
3567#include <string.h>
3568#include <float.h>
3569
3570int
3571main ()
3572{
3573
3574  ;
3575  return 0;
3576}
3577_ACEOF
3578rm -f conftest.$ac_objext
3579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3580  (eval $ac_compile) 2>conftest.er1
3581  ac_status=$?
3582  grep -v '^ *+' conftest.er1 >conftest.err
3583  rm -f conftest.er1
3584  cat conftest.err >&5
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); } &&
3587	 { ac_try='test -z "$ac_c_werror_flag"
3588			 || test ! -s conftest.err'
3589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590  (eval $ac_try) 2>&5
3591  ac_status=$?
3592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593  (exit $ac_status); }; } &&
3594	 { ac_try='test -s conftest.$ac_objext'
3595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596  (eval $ac_try) 2>&5
3597  ac_status=$?
3598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599  (exit $ac_status); }; }; then
3600  ac_cv_header_stdc=yes
3601else
3602  echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605ac_cv_header_stdc=no
3606fi
3607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608
3609if test $ac_cv_header_stdc = yes; then
3610  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3611  cat >conftest.$ac_ext <<_ACEOF
3612/* confdefs.h.  */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h.  */
3617#include <string.h>
3618
3619_ACEOF
3620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3621  $EGREP "memchr" >/dev/null 2>&1; then
3622  :
3623else
3624  ac_cv_header_stdc=no
3625fi
3626rm -f conftest*
3627
3628fi
3629
3630if test $ac_cv_header_stdc = yes; then
3631  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3632  cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h.  */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h.  */
3638#include <stdlib.h>
3639
3640_ACEOF
3641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642  $EGREP "free" >/dev/null 2>&1; then
3643  :
3644else
3645  ac_cv_header_stdc=no
3646fi
3647rm -f conftest*
3648
3649fi
3650
3651if test $ac_cv_header_stdc = yes; then
3652  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3653  if test "$cross_compiling" = yes; then
3654  :
3655else
3656  cat >conftest.$ac_ext <<_ACEOF
3657/* confdefs.h.  */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h.  */
3662#include <ctype.h>
3663#if ((' ' & 0x0FF) == 0x020)
3664# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3665# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3666#else
3667# define ISLOWER(c) \
3668		   (('a' <= (c) && (c) <= 'i') \
3669		     || ('j' <= (c) && (c) <= 'r') \
3670		     || ('s' <= (c) && (c) <= 'z'))
3671# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3672#endif
3673
3674#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3675int
3676main ()
3677{
3678  int i;
3679  for (i = 0; i < 256; i++)
3680    if (XOR (islower (i), ISLOWER (i))
3681	|| toupper (i) != TOUPPER (i))
3682      exit(2);
3683  exit (0);
3684}
3685_ACEOF
3686rm -f conftest$ac_exeext
3687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3688  (eval $ac_link) 2>&5
3689  ac_status=$?
3690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693  (eval $ac_try) 2>&5
3694  ac_status=$?
3695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696  (exit $ac_status); }; }; then
3697  :
3698else
3699  echo "$as_me: program exited with status $ac_status" >&5
3700echo "$as_me: failed program was:" >&5
3701sed 's/^/| /' conftest.$ac_ext >&5
3702
3703( exit $ac_status )
3704ac_cv_header_stdc=no
3705fi
3706rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3707fi
3708fi
3709fi
3710echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3711echo "${ECHO_T}$ac_cv_header_stdc" >&6
3712if test $ac_cv_header_stdc = yes; then
3713
3714cat >>confdefs.h <<\_ACEOF
3715#define STDC_HEADERS 1
3716_ACEOF
3717
3718fi
3719
3720# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3731		  inttypes.h stdint.h unistd.h
3732do
3733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3734echo "$as_me:$LINENO: checking for $ac_header" >&5
3735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3736if eval "test \"\${$as_ac_Header+set}\" = set"; then
3737  echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739  cat >conftest.$ac_ext <<_ACEOF
3740/* confdefs.h.  */
3741_ACEOF
3742cat confdefs.h >>conftest.$ac_ext
3743cat >>conftest.$ac_ext <<_ACEOF
3744/* end confdefs.h.  */
3745$ac_includes_default
3746
3747#include <$ac_header>
3748_ACEOF
3749rm -f conftest.$ac_objext
3750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751  (eval $ac_compile) 2>conftest.er1
3752  ac_status=$?
3753  grep -v '^ *+' conftest.er1 >conftest.err
3754  rm -f conftest.er1
3755  cat conftest.err >&5
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); } &&
3758	 { ac_try='test -z "$ac_c_werror_flag"
3759			 || test ! -s conftest.err'
3760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761  (eval $ac_try) 2>&5
3762  ac_status=$?
3763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764  (exit $ac_status); }; } &&
3765	 { ac_try='test -s conftest.$ac_objext'
3766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767  (eval $ac_try) 2>&5
3768  ac_status=$?
3769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770  (exit $ac_status); }; }; then
3771  eval "$as_ac_Header=yes"
3772else
3773  echo "$as_me: failed program was:" >&5
3774sed 's/^/| /' conftest.$ac_ext >&5
3775
3776eval "$as_ac_Header=no"
3777fi
3778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3779fi
3780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3782if test `eval echo '${'$as_ac_Header'}'` = yes; then
3783  cat >>confdefs.h <<_ACEOF
3784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3785_ACEOF
3786
3787fi
3788
3789done
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800for ac_header in alloca.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
3801do
3802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3803if eval "test \"\${$as_ac_Header+set}\" = set"; then
3804  echo "$as_me:$LINENO: checking for $ac_header" >&5
3805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3806if eval "test \"\${$as_ac_Header+set}\" = set"; then
3807  echo $ECHO_N "(cached) $ECHO_C" >&6
3808fi
3809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3811else
3812  # Is the header compilable?
3813echo "$as_me:$LINENO: checking $ac_header usability" >&5
3814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3815cat >conftest.$ac_ext <<_ACEOF
3816/* confdefs.h.  */
3817_ACEOF
3818cat confdefs.h >>conftest.$ac_ext
3819cat >>conftest.$ac_ext <<_ACEOF
3820/* end confdefs.h.  */
3821$ac_includes_default
3822#include <$ac_header>
3823_ACEOF
3824rm -f conftest.$ac_objext
3825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826  (eval $ac_compile) 2>conftest.er1
3827  ac_status=$?
3828  grep -v '^ *+' conftest.er1 >conftest.err
3829  rm -f conftest.er1
3830  cat conftest.err >&5
3831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832  (exit $ac_status); } &&
3833	 { ac_try='test -z "$ac_c_werror_flag"
3834			 || test ! -s conftest.err'
3835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836  (eval $ac_try) 2>&5
3837  ac_status=$?
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); }; } &&
3840	 { ac_try='test -s conftest.$ac_objext'
3841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842  (eval $ac_try) 2>&5
3843  ac_status=$?
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); }; }; then
3846  ac_header_compiler=yes
3847else
3848  echo "$as_me: failed program was:" >&5
3849sed 's/^/| /' conftest.$ac_ext >&5
3850
3851ac_header_compiler=no
3852fi
3853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3854echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3855echo "${ECHO_T}$ac_header_compiler" >&6
3856
3857# Is the header present?
3858echo "$as_me:$LINENO: checking $ac_header presence" >&5
3859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3860cat >conftest.$ac_ext <<_ACEOF
3861/* confdefs.h.  */
3862_ACEOF
3863cat confdefs.h >>conftest.$ac_ext
3864cat >>conftest.$ac_ext <<_ACEOF
3865/* end confdefs.h.  */
3866#include <$ac_header>
3867_ACEOF
3868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3869  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3870  ac_status=$?
3871  grep -v '^ *+' conftest.er1 >conftest.err
3872  rm -f conftest.er1
3873  cat conftest.err >&5
3874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875  (exit $ac_status); } >/dev/null; then
3876  if test -s conftest.err; then
3877    ac_cpp_err=$ac_c_preproc_warn_flag
3878    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3879  else
3880    ac_cpp_err=
3881  fi
3882else
3883  ac_cpp_err=yes
3884fi
3885if test -z "$ac_cpp_err"; then
3886  ac_header_preproc=yes
3887else
3888  echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
3890
3891  ac_header_preproc=no
3892fi
3893rm -f conftest.err conftest.$ac_ext
3894echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3895echo "${ECHO_T}$ac_header_preproc" >&6
3896
3897# So?  What about this header?
3898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3899  yes:no: )
3900    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3902    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3903echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3904    ac_header_preproc=yes
3905    ;;
3906  no:yes:* )
3907    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3909    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3910echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3911    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3912echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3913    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3914echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3915    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3917    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3918echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3919    (
3920      cat <<\_ASBOX
3921## --------------------------------- ##
3922## Report this to the libssp lists.  ##
3923## --------------------------------- ##
3924_ASBOX
3925    ) |
3926      sed "s/^/$as_me: WARNING:     /" >&2
3927    ;;
3928esac
3929echo "$as_me:$LINENO: checking for $ac_header" >&5
3930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3931if eval "test \"\${$as_ac_Header+set}\" = set"; then
3932  echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934  eval "$as_ac_Header=\$ac_header_preproc"
3935fi
3936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3938
3939fi
3940if test `eval echo '${'$as_ac_Header'}'` = yes; then
3941  cat >>confdefs.h <<_ACEOF
3942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3943_ACEOF
3944
3945fi
3946
3947done
3948
3949
3950if test x$gcc_no_link = xyes; then
3951  # Presume the ISO C functions are available; add target-specific
3952  # configuration here if required.
3953  cat >>confdefs.h <<\_ACEOF
3954#define HAVE_STRNCPY 1
3955_ACEOF
3956
3957  cat >>confdefs.h <<\_ACEOF
3958#define HAVE_STRNCAT 1
3959_ACEOF
3960
3961else
3962
3963
3964
3965for ac_func in mempcpy strncpy strncat
3966do
3967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3968echo "$as_me:$LINENO: checking for $ac_func" >&5
3969echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3970if eval "test \"\${$as_ac_var+set}\" = set"; then
3971  echo $ECHO_N "(cached) $ECHO_C" >&6
3972else
3973  if test x$gcc_no_link = xyes; then
3974  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3975echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3976   { (exit 1); exit 1; }; }
3977fi
3978cat >conftest.$ac_ext <<_ACEOF
3979/* confdefs.h.  */
3980_ACEOF
3981cat confdefs.h >>conftest.$ac_ext
3982cat >>conftest.$ac_ext <<_ACEOF
3983/* end confdefs.h.  */
3984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3985   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3986#define $ac_func innocuous_$ac_func
3987
3988/* System header to define __stub macros and hopefully few prototypes,
3989    which can conflict with char $ac_func (); below.
3990    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3991    <limits.h> exists even on freestanding compilers.  */
3992
3993#ifdef __STDC__
3994# include <limits.h>
3995#else
3996# include <assert.h>
3997#endif
3998
3999#undef $ac_func
4000
4001/* Override any gcc2 internal prototype to avoid an error.  */
4002#ifdef __cplusplus
4003extern "C"
4004{
4005#endif
4006/* We use char because int might match the return type of a gcc2
4007   builtin and then its argument prototype would still apply.  */
4008char $ac_func ();
4009/* The GNU C library defines this for functions which it implements
4010    to always fail with ENOSYS.  Some functions are actually named
4011    something starting with __ and the normal name is an alias.  */
4012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4013choke me
4014#else
4015char (*f) () = $ac_func;
4016#endif
4017#ifdef __cplusplus
4018}
4019#endif
4020
4021int
4022main ()
4023{
4024return f != $ac_func;
4025  ;
4026  return 0;
4027}
4028_ACEOF
4029rm -f conftest.$ac_objext conftest$ac_exeext
4030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4031  (eval $ac_link) 2>conftest.er1
4032  ac_status=$?
4033  grep -v '^ *+' conftest.er1 >conftest.err
4034  rm -f conftest.er1
4035  cat conftest.err >&5
4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037  (exit $ac_status); } &&
4038	 { ac_try='test -z "$ac_c_werror_flag"
4039			 || test ! -s conftest.err'
4040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041  (eval $ac_try) 2>&5
4042  ac_status=$?
4043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044  (exit $ac_status); }; } &&
4045	 { ac_try='test -s conftest$ac_exeext'
4046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047  (eval $ac_try) 2>&5
4048  ac_status=$?
4049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050  (exit $ac_status); }; }; then
4051  eval "$as_ac_var=yes"
4052else
4053  echo "$as_me: failed program was:" >&5
4054sed 's/^/| /' conftest.$ac_ext >&5
4055
4056eval "$as_ac_var=no"
4057fi
4058rm -f conftest.err conftest.$ac_objext \
4059      conftest$ac_exeext conftest.$ac_ext
4060fi
4061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4062echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4063if test `eval echo '${'$as_ac_var'}'` = yes; then
4064  cat >>confdefs.h <<_ACEOF
4065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4066_ACEOF
4067
4068fi
4069done
4070
4071fi
4072
4073echo "$as_me:$LINENO: checking whether vsnprintf is usable" >&5
4074echo $ECHO_N "checking whether vsnprintf is usable... $ECHO_C" >&6
4075if test "$cross_compiling" = yes; then
4076  ssp_have_usable_vsnprintf=undef
4077else
4078  cat >conftest.$ac_ext <<_ACEOF
4079/* confdefs.h.  */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h.  */
4084
4085#include <stdarg.h>
4086#include <string.h>
4087#include <stdio.h>
4088int foo (char *buf, size_t n, const char *fmt, ...)
4089{
4090  va_list ap;
4091  int ret;
4092  va_start (ap, fmt);
4093  ret = vsnprintf (buf, n, fmt, ap);
4094  va_end (ap);
4095  return ret;
4096}
4097int
4098main ()
4099{
4100char buf[8]; memset (buf, 'A', sizeof (buf));
4101 if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4102   return 1;
4103 return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4104  ;
4105  return 0;
4106}
4107_ACEOF
4108rm -f conftest$ac_exeext
4109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4110  (eval $ac_link) 2>&5
4111  ac_status=$?
4112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115  (eval $ac_try) 2>&5
4116  ac_status=$?
4117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118  (exit $ac_status); }; }; then
4119  ssp_have_usable_vsnprintf=define
4120else
4121  echo "$as_me: program exited with status $ac_status" >&5
4122echo "$as_me: failed program was:" >&5
4123sed 's/^/| /' conftest.$ac_ext >&5
4124
4125( exit $ac_status )
4126ssp_have_usable_vsnprintf=undef
4127fi
4128rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4129fi
4130if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4131  echo "$as_me:$LINENO: result: yes" >&5
4132echo "${ECHO_T}yes" >&6
4133
4134cat >>confdefs.h <<\_ACEOF
4135#define HAVE_USABLE_VSNPRINTF 1
4136_ACEOF
4137
4138else
4139  echo "$as_me:$LINENO: result: no" >&5
4140echo "${ECHO_T}no" >&6
4141fi
4142
4143
4144# Check whether --enable-shared or --disable-shared was given.
4145if test "${enable_shared+set}" = set; then
4146  enableval="$enable_shared"
4147  p=${PACKAGE-default}
4148case $enableval in
4149yes) enable_shared=yes ;;
4150no) enable_shared=no ;;
4151*)
4152  enable_shared=no
4153  # Look at the argument we got.  We use all the common list separators.
4154  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4155  for pkg in $enableval; do
4156    if test "X$pkg" = "X$p"; then
4157      enable_shared=yes
4158    fi
4159  done
4160  IFS="$ac_save_ifs"
4161  ;;
4162esac
4163else
4164  enable_shared=yes
4165fi;
4166# Check whether --enable-static or --disable-static was given.
4167if test "${enable_static+set}" = set; then
4168  enableval="$enable_static"
4169  p=${PACKAGE-default}
4170case $enableval in
4171yes) enable_static=yes ;;
4172no) enable_static=no ;;
4173*)
4174  enable_static=no
4175  # Look at the argument we got.  We use all the common list separators.
4176  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4177  for pkg in $enableval; do
4178    if test "X$pkg" = "X$p"; then
4179      enable_static=yes
4180    fi
4181  done
4182  IFS="$ac_save_ifs"
4183  ;;
4184esac
4185else
4186  enable_static=yes
4187fi;
4188# Check whether --enable-fast-install or --disable-fast-install was given.
4189if test "${enable_fast_install+set}" = set; then
4190  enableval="$enable_fast_install"
4191  p=${PACKAGE-default}
4192case $enableval in
4193yes) enable_fast_install=yes ;;
4194no) enable_fast_install=no ;;
4195*)
4196  enable_fast_install=no
4197  # Look at the argument we got.  We use all the common list separators.
4198  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4199  for pkg in $enableval; do
4200    if test "X$pkg" = "X$p"; then
4201      enable_fast_install=yes
4202    fi
4203  done
4204  IFS="$ac_save_ifs"
4205  ;;
4206esac
4207else
4208  enable_fast_install=yes
4209fi;
4210
4211# Check whether --with-gnu-ld or --without-gnu-ld was given.
4212if test "${with_gnu_ld+set}" = set; then
4213  withval="$with_gnu_ld"
4214  test "$withval" = no || with_gnu_ld=yes
4215else
4216  with_gnu_ld=no
4217fi;
4218ac_prog=ld
4219if test "$GCC" = yes; then
4220  # Check if gcc -print-prog-name=ld gives a path.
4221  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4222echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4223  case $host in
4224  *-*-mingw*)
4225    # gcc leaves a trailing carriage return which upsets mingw
4226    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4227  *)
4228    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4229  esac
4230  case $ac_prog in
4231    # Accept absolute paths.
4232    [\\/]* | [A-Za-z]:[\\/]*)
4233      re_direlt='/[^/][^/]*/\.\./'
4234      # Canonicalize the path of ld
4235      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4236      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4237	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4238      done
4239      test -z "$LD" && LD="$ac_prog"
4240      ;;
4241  "")
4242    # If it fails, then pretend we aren't using GCC.
4243    ac_prog=ld
4244    ;;
4245  *)
4246    # If it is relative, then search for the first ld in PATH.
4247    with_gnu_ld=unknown
4248    ;;
4249  esac
4250elif test "$with_gnu_ld" = yes; then
4251  echo "$as_me:$LINENO: checking for GNU ld" >&5
4252echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4253else
4254  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4255echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4256fi
4257if test "${lt_cv_path_LD+set}" = set; then
4258  echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260  if test -z "$LD"; then
4261  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4262  for ac_dir in $PATH; do
4263    test -z "$ac_dir" && ac_dir=.
4264    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4265      lt_cv_path_LD="$ac_dir/$ac_prog"
4266      # Check to see if the program is GNU ld.  I'd rather use --version,
4267      # but apparently some GNU ld's only accept -v.
4268      # Break only if it was the GNU/non-GNU ld that we prefer.
4269      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4270	test "$with_gnu_ld" != no && break
4271      else
4272	test "$with_gnu_ld" != yes && break
4273      fi
4274    fi
4275  done
4276  IFS="$ac_save_ifs"
4277else
4278  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4279fi
4280fi
4281
4282LD="$lt_cv_path_LD"
4283if test -n "$LD"; then
4284  echo "$as_me:$LINENO: result: $LD" >&5
4285echo "${ECHO_T}$LD" >&6
4286else
4287  echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6
4289fi
4290test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4291echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4292   { (exit 1); exit 1; }; }
4293echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4294echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4295if test "${lt_cv_prog_gnu_ld+set}" = set; then
4296  echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4299if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4300  lt_cv_prog_gnu_ld=yes
4301else
4302  lt_cv_prog_gnu_ld=no
4303fi
4304fi
4305echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4306echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4307with_gnu_ld=$lt_cv_prog_gnu_ld
4308
4309
4310echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4311echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4312if test "${lt_cv_ld_reload_flag+set}" = set; then
4313  echo $ECHO_N "(cached) $ECHO_C" >&6
4314else
4315  lt_cv_ld_reload_flag='-r'
4316fi
4317echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4318echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4319reload_flag=$lt_cv_ld_reload_flag
4320test -n "$reload_flag" && reload_flag=" $reload_flag"
4321
4322echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4323echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4324if test "${lt_cv_path_NM+set}" = set; then
4325  echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
4327  if test -n "$NM"; then
4328  # Let the user override the test.
4329  lt_cv_path_NM="$NM"
4330else
4331  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4332  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4333    test -z "$ac_dir" && ac_dir=.
4334    tmp_nm=$ac_dir/${ac_tool_prefix}nm
4335    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4336      # Check to see if the nm accepts a BSD-compat flag.
4337      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4338      #   nm: unknown option "B" ignored
4339      # Tru64's nm complains that /dev/null is an invalid object file
4340      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4341	lt_cv_path_NM="$tmp_nm -B"
4342	break
4343      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4344	lt_cv_path_NM="$tmp_nm -p"
4345	break
4346      else
4347	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4348	continue # so that we can try to find one that supports BSD flags
4349      fi
4350    fi
4351  done
4352  IFS="$ac_save_ifs"
4353  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4354fi
4355fi
4356
4357NM="$lt_cv_path_NM"
4358echo "$as_me:$LINENO: result: $NM" >&5
4359echo "${ECHO_T}$NM" >&6
4360
4361echo "$as_me:$LINENO: checking whether ln -s works" >&5
4362echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4363LN_S=$as_ln_s
4364if test "$LN_S" = "ln -s"; then
4365  echo "$as_me:$LINENO: result: yes" >&5
4366echo "${ECHO_T}yes" >&6
4367else
4368  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4369echo "${ECHO_T}no, using $LN_S" >&6
4370fi
4371
4372echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4373echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4374if test "${lt_cv_deplibs_check_method+set}" = set; then
4375  echo $ECHO_N "(cached) $ECHO_C" >&6
4376else
4377  lt_cv_file_magic_cmd='$MAGIC_CMD'
4378lt_cv_file_magic_test_file=
4379lt_cv_deplibs_check_method='unknown'
4380# Need to set the preceding variable on all platforms that support
4381# interlibrary dependencies.
4382# 'none' -- dependencies not supported.
4383# `unknown' -- same as none, but documents that we really don't know.
4384# 'pass_all' -- all dependencies passed with no checks.
4385# 'test_compile' -- check by making test program.
4386# 'file_magic [regex]' -- check by looking for files in library path
4387# which responds to the $file_magic_cmd with a given egrep regex.
4388# If you have `file' or equivalent on your system and you're not sure
4389# whether `pass_all' will *always* work, you probably want this one.
4390
4391case $host_os in
4392aix*)
4393  lt_cv_deplibs_check_method=pass_all
4394  ;;
4395
4396beos*)
4397  lt_cv_deplibs_check_method=pass_all
4398  ;;
4399
4400bsdi4*)
4401  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4402  lt_cv_file_magic_cmd='/usr/bin/file -L'
4403  lt_cv_file_magic_test_file=/shlib/libc.so
4404  ;;
4405
4406cygwin* | mingw* |pw32*)
4407  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4408  lt_cv_file_magic_cmd='$OBJDUMP -f'
4409  ;;
4410
4411darwin* | rhapsody*)
4412  # this will be overwritten by pass_all, but leave it in just in case
4413  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4414  lt_cv_file_magic_cmd='/usr/bin/file -L'
4415  case "$host_os" in
4416  rhapsody* | darwin1.012)
4417    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4418    ;;
4419  *) # Darwin 1.3 on
4420    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4421    ;;
4422  esac
4423  lt_cv_deplibs_check_method=pass_all
4424  ;;
4425
4426freebsd* | kfreebsd*-gnu)
4427  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4428    case $host_cpu in
4429    i*86 )
4430      # Not sure whether the presence of OpenBSD here was a mistake.
4431      # Let's accept both of them until this is cleared up.
4432      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4433      lt_cv_file_magic_cmd=/usr/bin/file
4434      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4435      ;;
4436    esac
4437  else
4438    lt_cv_deplibs_check_method=pass_all
4439  fi
4440  ;;
4441
4442gnu*)
4443  lt_cv_deplibs_check_method=pass_all
4444  ;;
4445
4446hpux10.20*|hpux11*)
4447  case $host_cpu in
4448  hppa*)
4449    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4450    lt_cv_file_magic_cmd=/usr/bin/file
4451    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4452    ;;
4453  ia64*)
4454    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4455    lt_cv_file_magic_cmd=/usr/bin/file
4456    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4457    ;;
4458  esac
4459  ;;
4460
4461irix5* | irix6*)
4462  case $host_os in
4463  irix5*)
4464    # this will be overridden with pass_all, but let us keep it just in case
4465    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4466    ;;
4467  *)
4468    case $LD in
4469    *-32|*"-32 ") libmagic=32-bit;;
4470    *-n32|*"-n32 ") libmagic=N32;;
4471    *-64|*"-64 ") libmagic=64-bit;;
4472    *) libmagic=never-match;;
4473    esac
4474    # this will be overridden with pass_all, but let us keep it just in case
4475    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4476    ;;
4477  esac
4478  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4479  lt_cv_deplibs_check_method=pass_all
4480  ;;
4481
4482# This must be Linux ELF.
4483linux-gnu*)
4484  lt_cv_deplibs_check_method=pass_all
4485  ;;
4486
4487netbsd* | knetbsd*-gnu)
4488  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4489    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4490  else
4491    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4492  fi
4493  ;;
4494
4495newsos6)
4496  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4497  lt_cv_file_magic_cmd=/usr/bin/file
4498  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4499  ;;
4500
4501osf3* | osf4* | osf5*)
4502  # this will be overridden with pass_all, but let us keep it just in case
4503  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4504  lt_cv_file_magic_test_file=/shlib/libc.so
4505  lt_cv_deplibs_check_method=pass_all
4506  ;;
4507
4508sco3.2v5*)
4509  lt_cv_deplibs_check_method=pass_all
4510  ;;
4511
4512solaris*)
4513  lt_cv_deplibs_check_method=pass_all
4514  lt_cv_file_magic_test_file=/lib/libc.so
4515  ;;
4516
4517sysv5uw[78]* | sysv4*uw2*)
4518  lt_cv_deplibs_check_method=pass_all
4519  ;;
4520
4521sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4522  case $host_vendor in
4523  ncr)
4524    lt_cv_deplibs_check_method=pass_all
4525    ;;
4526  motorola)
4527    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]'
4528    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4529    ;;
4530  esac
4531  ;;
4532esac
4533
4534fi
4535echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4536echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4537file_magic_cmd=$lt_cv_file_magic_cmd
4538deplibs_check_method=$lt_cv_deplibs_check_method
4539
4540
4541
4542
4543# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4544
4545# find the maximum length of command line arguments
4546echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4547echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4548if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4549  echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
4551    i=0
4552  teststring="ABCD"
4553
4554  case $build_os in
4555  msdosdjgpp*)
4556    # On DJGPP, this test can blow up pretty badly due to problems in libc
4557    # (any single argument exceeding 2000 bytes causes a buffer overrun
4558    # during glob expansion).  Even if it were fixed, the result of this
4559    # check would be larger than it should be.
4560    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4561    ;;
4562
4563  cygwin* | mingw*)
4564    # On Win9x/ME, this test blows up -- it succeeds, but takes
4565    # about 5 minutes as the teststring grows exponentially.
4566    # Worse, since 9x/ME are not pre-emptively multitasking,
4567    # you end up with a "frozen" computer, even though with patience
4568    # the test eventually succeeds (with a max line length of 256k).
4569    # Instead, let's just punt: use the minimum linelength reported by
4570    # all of the supported platforms: 8192 (on NT/2K/XP).
4571    lt_cv_sys_max_cmd_len=8192;
4572    ;;
4573
4574  amigaos*)
4575    # On AmigaOS with pdksh, this test takes hours, literally.
4576    # So we just punt and use a minimum line length of 8192.
4577    lt_cv_sys_max_cmd_len=8192;
4578    ;;
4579
4580  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4581    # This has been around since 386BSD, at least.  Likely further.
4582    if test -x /sbin/sysctl; then
4583      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4584    elif test -x /usr/sbin/sysctl; then
4585      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4586    else
4587      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4588    fi
4589    # And add a safety zone
4590    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4591    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4592    ;;
4593  esac
4594
4595fi
4596
4597if test -n "$lt_cv_sys_max_cmd_len" ; then
4598  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4599echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4600else
4601  echo "$as_me:$LINENO: result: none" >&5
4602echo "${ECHO_T}none" >&6
4603fi
4604
4605
4606# Only perform the check for file, if the check method requires it
4607case $deplibs_check_method in
4608file_magic*)
4609  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4610    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4611echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4612if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4613  echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615  case $MAGIC_CMD in
4616  /*)
4617  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4618  ;;
4619  ?:/*)
4620  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4621  ;;
4622  *)
4623  ac_save_MAGIC_CMD="$MAGIC_CMD"
4624  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4625  ac_dummy="/usr/bin:$PATH"
4626  for ac_dir in $ac_dummy; do
4627    test -z "$ac_dir" && ac_dir=.
4628    if test -f $ac_dir/${ac_tool_prefix}file; then
4629      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4630      if test -n "$file_magic_test_file"; then
4631	case $deplibs_check_method in
4632	"file_magic "*)
4633	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4634	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4635	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4636	    egrep "$file_magic_regex" > /dev/null; then
4637	    :
4638	  else
4639	    cat <<EOF 1>&2
4640
4641*** Warning: the command libtool uses to detect shared libraries,
4642*** $file_magic_cmd, produces output that libtool cannot recognize.
4643*** The result is that libtool may fail to recognize shared libraries
4644*** as such.  This will affect the creation of libtool libraries that
4645*** depend on shared libraries, but programs linked with such libtool
4646*** libraries will work regardless of this problem.  Nevertheless, you
4647*** may want to report the problem to your system manager and/or to
4648*** bug-libtool@gnu.org
4649
4650EOF
4651	  fi ;;
4652	esac
4653      fi
4654      break
4655    fi
4656  done
4657  IFS="$ac_save_ifs"
4658  MAGIC_CMD="$ac_save_MAGIC_CMD"
4659  ;;
4660esac
4661fi
4662
4663MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4664if test -n "$MAGIC_CMD"; then
4665  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4666echo "${ECHO_T}$MAGIC_CMD" >&6
4667else
4668  echo "$as_me:$LINENO: result: no" >&5
4669echo "${ECHO_T}no" >&6
4670fi
4671
4672if test -z "$lt_cv_path_MAGIC_CMD"; then
4673  if test -n "$ac_tool_prefix"; then
4674    echo "$as_me:$LINENO: checking for file" >&5
4675echo $ECHO_N "checking for file... $ECHO_C" >&6
4676if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4677  echo $ECHO_N "(cached) $ECHO_C" >&6
4678else
4679  case $MAGIC_CMD in
4680  /*)
4681  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4682  ;;
4683  ?:/*)
4684  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4685  ;;
4686  *)
4687  ac_save_MAGIC_CMD="$MAGIC_CMD"
4688  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4689  ac_dummy="/usr/bin:$PATH"
4690  for ac_dir in $ac_dummy; do
4691    test -z "$ac_dir" && ac_dir=.
4692    if test -f $ac_dir/file; then
4693      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4694      if test -n "$file_magic_test_file"; then
4695	case $deplibs_check_method in
4696	"file_magic "*)
4697	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4698	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4699	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4700	    egrep "$file_magic_regex" > /dev/null; then
4701	    :
4702	  else
4703	    cat <<EOF 1>&2
4704
4705*** Warning: the command libtool uses to detect shared libraries,
4706*** $file_magic_cmd, produces output that libtool cannot recognize.
4707*** The result is that libtool may fail to recognize shared libraries
4708*** as such.  This will affect the creation of libtool libraries that
4709*** depend on shared libraries, but programs linked with such libtool
4710*** libraries will work regardless of this problem.  Nevertheless, you
4711*** may want to report the problem to your system manager and/or to
4712*** bug-libtool@gnu.org
4713
4714EOF
4715	  fi ;;
4716	esac
4717      fi
4718      break
4719    fi
4720  done
4721  IFS="$ac_save_ifs"
4722  MAGIC_CMD="$ac_save_MAGIC_CMD"
4723  ;;
4724esac
4725fi
4726
4727MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4728if test -n "$MAGIC_CMD"; then
4729  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4730echo "${ECHO_T}$MAGIC_CMD" >&6
4731else
4732  echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6
4734fi
4735
4736  else
4737    MAGIC_CMD=:
4738  fi
4739fi
4740
4741  fi
4742  ;;
4743esac
4744
4745if test -n "$ac_tool_prefix"; then
4746  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4747set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4748echo "$as_me:$LINENO: checking for $ac_word" >&5
4749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4750if test "${ac_cv_prog_RANLIB+set}" = set; then
4751  echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753  if test -n "$RANLIB"; then
4754  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4755else
4756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759  IFS=$as_save_IFS
4760  test -z "$as_dir" && as_dir=.
4761  for ac_exec_ext in '' $ac_executable_extensions; do
4762  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765    break 2
4766  fi
4767done
4768done
4769
4770fi
4771fi
4772RANLIB=$ac_cv_prog_RANLIB
4773if test -n "$RANLIB"; then
4774  echo "$as_me:$LINENO: result: $RANLIB" >&5
4775echo "${ECHO_T}$RANLIB" >&6
4776else
4777  echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6
4779fi
4780
4781fi
4782if test -z "$ac_cv_prog_RANLIB"; then
4783  ac_ct_RANLIB=$RANLIB
4784  # Extract the first word of "ranlib", so it can be a program name with args.
4785set dummy ranlib; ac_word=$2
4786echo "$as_me:$LINENO: checking for $ac_word" >&5
4787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4788if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4789  echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791  if test -n "$ac_ct_RANLIB"; then
4792  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4793else
4794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795for as_dir in $PATH
4796do
4797  IFS=$as_save_IFS
4798  test -z "$as_dir" && as_dir=.
4799  for ac_exec_ext in '' $ac_executable_extensions; do
4800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801    ac_cv_prog_ac_ct_RANLIB="ranlib"
4802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803    break 2
4804  fi
4805done
4806done
4807
4808  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4809fi
4810fi
4811ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4812if test -n "$ac_ct_RANLIB"; then
4813  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4814echo "${ECHO_T}$ac_ct_RANLIB" >&6
4815else
4816  echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
4818fi
4819
4820  RANLIB=$ac_ct_RANLIB
4821else
4822  RANLIB="$ac_cv_prog_RANLIB"
4823fi
4824
4825if test -n "$ac_tool_prefix"; then
4826  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4827set dummy ${ac_tool_prefix}strip; ac_word=$2
4828echo "$as_me:$LINENO: checking for $ac_word" >&5
4829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4830if test "${ac_cv_prog_STRIP+set}" = set; then
4831  echo $ECHO_N "(cached) $ECHO_C" >&6
4832else
4833  if test -n "$STRIP"; then
4834  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4835else
4836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837for as_dir in $PATH
4838do
4839  IFS=$as_save_IFS
4840  test -z "$as_dir" && as_dir=.
4841  for ac_exec_ext in '' $ac_executable_extensions; do
4842  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4844    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4845    break 2
4846  fi
4847done
4848done
4849
4850fi
4851fi
4852STRIP=$ac_cv_prog_STRIP
4853if test -n "$STRIP"; then
4854  echo "$as_me:$LINENO: result: $STRIP" >&5
4855echo "${ECHO_T}$STRIP" >&6
4856else
4857  echo "$as_me:$LINENO: result: no" >&5
4858echo "${ECHO_T}no" >&6
4859fi
4860
4861fi
4862if test -z "$ac_cv_prog_STRIP"; then
4863  ac_ct_STRIP=$STRIP
4864  # Extract the first word of "strip", so it can be a program name with args.
4865set dummy strip; ac_word=$2
4866echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  if test -n "$ac_ct_STRIP"; then
4872  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877  IFS=$as_save_IFS
4878  test -z "$as_dir" && as_dir=.
4879  for ac_exec_ext in '' $ac_executable_extensions; do
4880  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881    ac_cv_prog_ac_ct_STRIP="strip"
4882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883    break 2
4884  fi
4885done
4886done
4887
4888  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4889fi
4890fi
4891ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4892if test -n "$ac_ct_STRIP"; then
4893  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4894echo "${ECHO_T}$ac_ct_STRIP" >&6
4895else
4896  echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6
4898fi
4899
4900  STRIP=$ac_ct_STRIP
4901else
4902  STRIP="$ac_cv_prog_STRIP"
4903fi
4904
4905
4906# Check for any special flags to pass to ltconfig.
4907libtool_flags="--cache-file=$cache_file"
4908test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4909test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4910test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4911test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4912test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4913
4914
4915# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4916if test "${enable_libtool_lock+set}" = set; then
4917  enableval="$enable_libtool_lock"
4918
4919fi;
4920test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4921test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4922
4923
4924# Check whether --with-pic or --without-pic was given.
4925if test "${with_pic+set}" = set; then
4926  withval="$with_pic"
4927  pic_mode="$withval"
4928else
4929  pic_mode=default
4930fi;
4931test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4932test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4933
4934# Some flags need to be propagated to the compiler or linker for good
4935# libtool support.
4936case $host in
4937*-*-irix6*)
4938  # Find out which ABI we are using.
4939  echo '#line 4939 "configure"' > conftest.$ac_ext
4940  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941  (eval $ac_compile) 2>&5
4942  ac_status=$?
4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944  (exit $ac_status); }; then
4945   if test "$lt_cv_prog_gnu_ld" = yes; then
4946    case `/usr/bin/file conftest.$ac_objext` in
4947    *32-bit*)
4948      LD="${LD-ld} -melf32bsmip"
4949      ;;
4950    *N32*)
4951      LD="${LD-ld} -melf32bmipn32"
4952      ;;
4953    *64-bit*)
4954      LD="${LD-ld} -melf64bmip"
4955      ;;
4956    esac
4957   else
4958    case `/usr/bin/file conftest.$ac_objext` in
4959    *32-bit*)
4960      LD="${LD-ld} -32"
4961      ;;
4962    *N32*)
4963      LD="${LD-ld} -n32"
4964      ;;
4965    *64-bit*)
4966      LD="${LD-ld} -64"
4967      ;;
4968    esac
4969   fi
4970  fi
4971  rm -rf conftest*
4972  ;;
4973
4974ia64-*-hpux*)
4975  # Find out which ABI we are using.
4976  echo 'int i;' > conftest.$ac_ext
4977  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4978  (eval $ac_compile) 2>&5
4979  ac_status=$?
4980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981  (exit $ac_status); }; then
4982    case "`/usr/bin/file conftest.o`" in
4983    *ELF-32*)
4984      HPUX_IA64_MODE="32"
4985      ;;
4986    *ELF-64*)
4987      HPUX_IA64_MODE="64"
4988      ;;
4989    esac
4990  fi
4991  rm -rf conftest*
4992  ;;
4993
4994x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4995  # Find out which ABI we are using.
4996  echo 'int i;' > conftest.$ac_ext
4997  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998  (eval $ac_compile) 2>&5
4999  ac_status=$?
5000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001  (exit $ac_status); }; then
5002    case "`/usr/bin/file conftest.o`" in
5003    *32-bit*)
5004      case $host in
5005        x86_64-*linux*)
5006          LD="${LD-ld} -m elf_i386"
5007          ;;
5008        ppc64-*linux*|powerpc64-*linux*)
5009          LD="${LD-ld} -m elf32ppclinux"
5010          ;;
5011        s390x-*linux*)
5012          LD="${LD-ld} -m elf_s390"
5013          ;;
5014        sparc64-*linux*)
5015          LD="${LD-ld} -m elf32_sparc"
5016          ;;
5017      esac
5018      ;;
5019    *64-bit*)
5020      case $host in
5021        x86_64-*linux*)
5022          LD="${LD-ld} -m elf_x86_64"
5023          ;;
5024        ppc*-*linux*|powerpc*-*linux*)
5025          LD="${LD-ld} -m elf64ppc"
5026          ;;
5027        s390*-*linux*)
5028          LD="${LD-ld} -m elf64_s390"
5029          ;;
5030        sparc*-*linux*)
5031          LD="${LD-ld} -m elf64_sparc"
5032          ;;
5033      esac
5034      ;;
5035    esac
5036  fi
5037  rm -rf conftest*
5038  ;;
5039
5040*-*-sco3.2v5*)
5041  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5042  SAVE_CFLAGS="$CFLAGS"
5043  CFLAGS="$CFLAGS -belf"
5044  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5045echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5046if test "${lt_cv_cc_needs_belf+set}" = set; then
5047  echo $ECHO_N "(cached) $ECHO_C" >&6
5048else
5049
5050
5051     ac_ext=c
5052ac_cpp='$CPP $CPPFLAGS'
5053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056
5057     if test x$gcc_no_link = xyes; then
5058  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5059echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5060   { (exit 1); exit 1; }; }
5061fi
5062cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h.  */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h.  */
5068
5069int
5070main ()
5071{
5072
5073  ;
5074  return 0;
5075}
5076_ACEOF
5077rm -f conftest.$ac_objext conftest$ac_exeext
5078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079  (eval $ac_link) 2>conftest.er1
5080  ac_status=$?
5081  grep -v '^ *+' conftest.er1 >conftest.err
5082  rm -f conftest.er1
5083  cat conftest.err >&5
5084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085  (exit $ac_status); } &&
5086	 { ac_try='test -z "$ac_c_werror_flag"
5087			 || test ! -s conftest.err'
5088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089  (eval $ac_try) 2>&5
5090  ac_status=$?
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); }; } &&
5093	 { ac_try='test -s conftest$ac_exeext'
5094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095  (eval $ac_try) 2>&5
5096  ac_status=$?
5097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098  (exit $ac_status); }; }; then
5099  lt_cv_cc_needs_belf=yes
5100else
5101  echo "$as_me: failed program was:" >&5
5102sed 's/^/| /' conftest.$ac_ext >&5
5103
5104lt_cv_cc_needs_belf=no
5105fi
5106rm -f conftest.err conftest.$ac_objext \
5107      conftest$ac_exeext conftest.$ac_ext
5108     ac_ext=c
5109ac_cpp='$CPP $CPPFLAGS'
5110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112ac_compiler_gnu=$ac_cv_c_compiler_gnu
5113
5114fi
5115echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5116echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5117  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5118    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5119    CFLAGS="$SAVE_CFLAGS"
5120  fi
5121  ;;
5122
5123
5124esac
5125
5126
5127# Save cache, so that ltconfig can load it
5128cat >confcache <<\_ACEOF
5129# This file is a shell script that caches the results of configure
5130# tests run on this system so they can be shared between configure
5131# scripts and configure runs, see configure's option --config-cache.
5132# It is not useful on other systems.  If it contains results you don't
5133# want to keep, you may remove or edit it.
5134#
5135# config.status only pays attention to the cache file if you give it
5136# the --recheck option to rerun configure.
5137#
5138# `ac_cv_env_foo' variables (set or unset) will be overridden when
5139# loading this file, other *unset* `ac_cv_foo' will be assigned the
5140# following values.
5141
5142_ACEOF
5143
5144# The following way of writing the cache mishandles newlines in values,
5145# but we know of no workaround that is simple, portable, and efficient.
5146# So, don't put newlines in cache variables' values.
5147# Ultrix sh set writes to stderr and can't be redirected directly,
5148# and sets the high bit in the cache file unless we assign to the vars.
5149{
5150  (set) 2>&1 |
5151    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5152    *ac_space=\ *)
5153      # `set' does not quote correctly, so add quotes (double-quote
5154      # substitution turns \\\\ into \\, and sed turns \\ into \).
5155      sed -n \
5156	"s/'/'\\\\''/g;
5157	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5158      ;;
5159    *)
5160      # `set' quotes correctly as required by POSIX, so do not add quotes.
5161      sed -n \
5162	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5163      ;;
5164    esac;
5165} |
5166  sed '
5167     t clear
5168     : clear
5169     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5170     t end
5171     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5172     : end' >>confcache
5173if diff $cache_file confcache >/dev/null 2>&1; then :; else
5174  if test -w $cache_file; then
5175    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5176    cat confcache >$cache_file
5177  else
5178    echo "not updating unwritable cache $cache_file"
5179  fi
5180fi
5181rm -f confcache
5182
5183# Actually configure libtool.  ac_aux_dir is where install-sh is found.
5184AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5185MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5186LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5187AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5188objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5189deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5190${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5191$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5192|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5193echo "$as_me: error: libtool configure failed" >&2;}
5194   { (exit 1); exit 1; }; }
5195
5196# Reload cache, that may have been modified by ltconfig
5197if test -r "$cache_file"; then
5198  # Some versions of bash will fail to source /dev/null (special
5199  # files actually), so we avoid doing that.
5200  if test -f "$cache_file"; then
5201    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5202echo "$as_me: loading cache $cache_file" >&6;}
5203    case $cache_file in
5204      [\\/]* | ?:[\\/]* ) . $cache_file;;
5205      *)                      . ./$cache_file;;
5206    esac
5207  fi
5208else
5209  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5210echo "$as_me: creating cache $cache_file" >&6;}
5211  >$cache_file
5212fi
5213
5214
5215# This can be used to rebuild libtool when needed
5216LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5217
5218# Always use our own libtool.
5219LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5220
5221# Redirect the config.log output again, so that the ltconfig log is not
5222# clobbered by the next message.
5223exec 5>>./config.log
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233# Calculate toolexeclibdir
5234# Also toolexecdir, though it's only used in toolexeclibdir
5235case ${version_specific_libs} in
5236  yes)
5237    # Need the gcc compiler version to know where to install libraries
5238    # and header files if --enable-version-specific-runtime-libs option
5239    # is selected.
5240    toolexecdir='$(libdir)/gcc/$(target_alias)'
5241    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5242    ;;
5243  no)
5244    if test -n "$with_cross_host" &&
5245       test x"$with_cross_host" != x"no"; then
5246      # Install a library built with a cross compiler in tooldir, not libdir.
5247      toolexecdir='$(exec_prefix)/$(target_alias)'
5248      toolexeclibdir='$(toolexecdir)/lib'
5249    else
5250      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5251      toolexeclibdir='$(libdir)'
5252    fi
5253    multi_os_directory=`$CC -print-multi-os-directory`
5254    case $multi_os_directory in
5255      .) ;; # Avoid trailing /.
5256      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5257    esac
5258    ;;
5259esac
5260
5261
5262
5263if test ${multilib} = yes; then
5264  multilib_arg="--enable-multilib"
5265else
5266  multilib_arg=
5267fi
5268
5269                    ac_config_files="$ac_config_files Makefile ssp/ssp.h"
5270
5271cat >confcache <<\_ACEOF
5272# This file is a shell script that caches the results of configure
5273# tests run on this system so they can be shared between configure
5274# scripts and configure runs, see configure's option --config-cache.
5275# It is not useful on other systems.  If it contains results you don't
5276# want to keep, you may remove or edit it.
5277#
5278# config.status only pays attention to the cache file if you give it
5279# the --recheck option to rerun configure.
5280#
5281# `ac_cv_env_foo' variables (set or unset) will be overridden when
5282# loading this file, other *unset* `ac_cv_foo' will be assigned the
5283# following values.
5284
5285_ACEOF
5286
5287# The following way of writing the cache mishandles newlines in values,
5288# but we know of no workaround that is simple, portable, and efficient.
5289# So, don't put newlines in cache variables' values.
5290# Ultrix sh set writes to stderr and can't be redirected directly,
5291# and sets the high bit in the cache file unless we assign to the vars.
5292{
5293  (set) 2>&1 |
5294    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5295    *ac_space=\ *)
5296      # `set' does not quote correctly, so add quotes (double-quote
5297      # substitution turns \\\\ into \\, and sed turns \\ into \).
5298      sed -n \
5299	"s/'/'\\\\''/g;
5300	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5301      ;;
5302    *)
5303      # `set' quotes correctly as required by POSIX, so do not add quotes.
5304      sed -n \
5305	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5306      ;;
5307    esac;
5308} |
5309  sed '
5310     t clear
5311     : clear
5312     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5313     t end
5314     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5315     : end' >>confcache
5316if diff $cache_file confcache >/dev/null 2>&1; then :; else
5317  if test -w $cache_file; then
5318    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5319    cat confcache >$cache_file
5320  else
5321    echo "not updating unwritable cache $cache_file"
5322  fi
5323fi
5324rm -f confcache
5325
5326test "x$prefix" = xNONE && prefix=$ac_default_prefix
5327# Let make expand exec_prefix.
5328test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5329
5330# VPATH may cause trouble with some makes, so we remove $(srcdir),
5331# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5332# trailing colons and then remove the whole line if VPATH becomes empty
5333# (actually we leave an empty line to preserve line numbers).
5334if test "x$srcdir" = x.; then
5335  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
5336s/:*\$(srcdir):*/:/;
5337s/:*\${srcdir}:*/:/;
5338s/:*@srcdir@:*/:/;
5339s/^\([^=]*=[	 ]*\):*/\1/;
5340s/:*$//;
5341s/^[^=]*=[	 ]*$//;
5342}'
5343fi
5344
5345DEFS=-DHAVE_CONFIG_H
5346
5347ac_libobjs=
5348ac_ltlibobjs=
5349for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5350  # 1. Remove the extension, and $U if already installed.
5351  ac_i=`echo "$ac_i" |
5352	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5353  # 2. Add them.
5354  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5355  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5356done
5357LIBOBJS=$ac_libobjs
5358
5359LTLIBOBJS=$ac_ltlibobjs
5360
5361
5362if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5363  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5364Usually this means the macro was only invoked conditionally." >&5
5365echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5366Usually this means the macro was only invoked conditionally." >&2;}
5367   { (exit 1); exit 1; }; }
5368fi
5369if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5370  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5371Usually this means the macro was only invoked conditionally." >&5
5372echo "$as_me: error: conditional \"AMDEP\" was never defined.
5373Usually this means the macro was only invoked conditionally." >&2;}
5374   { (exit 1); exit 1; }; }
5375fi
5376if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5377  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5378Usually this means the macro was only invoked conditionally." >&5
5379echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5380Usually this means the macro was only invoked conditionally." >&2;}
5381   { (exit 1); exit 1; }; }
5382fi
5383if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
5384  { { echo "$as_me:$LINENO: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
5385Usually this means the macro was only invoked conditionally." >&5
5386echo "$as_me: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
5387Usually this means the macro was only invoked conditionally." >&2;}
5388   { (exit 1); exit 1; }; }
5389fi
5390
5391: ${CONFIG_STATUS=./config.status}
5392ac_clean_files_save=$ac_clean_files
5393ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5394{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5395echo "$as_me: creating $CONFIG_STATUS" >&6;}
5396cat >$CONFIG_STATUS <<_ACEOF
5397#! $SHELL
5398# Generated by $as_me.
5399# Run this file to recreate the current configuration.
5400# Compiler output produced by configure, useful for debugging
5401# configure, is in config.log if it exists.
5402
5403debug=false
5404ac_cs_recheck=false
5405ac_cs_silent=false
5406SHELL=\${CONFIG_SHELL-$SHELL}
5407_ACEOF
5408
5409cat >>$CONFIG_STATUS <<\_ACEOF
5410## --------------------- ##
5411## M4sh Initialization.  ##
5412## --------------------- ##
5413
5414# Be Bourne compatible
5415if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5416  emulate sh
5417  NULLCMD=:
5418  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5419  # is contrary to our usage.  Disable this feature.
5420  alias -g '${1+"$@"}'='"$@"'
5421elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5422  set -o posix
5423fi
5424DUALCASE=1; export DUALCASE # for MKS sh
5425
5426# Support unset when possible.
5427if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5428  as_unset=unset
5429else
5430  as_unset=false
5431fi
5432
5433
5434# Work around bugs in pre-3.0 UWIN ksh.
5435$as_unset ENV MAIL MAILPATH
5436PS1='$ '
5437PS2='> '
5438PS4='+ '
5439
5440# NLS nuisances.
5441for as_var in \
5442  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5443  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5444  LC_TELEPHONE LC_TIME
5445do
5446  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5447    eval $as_var=C; export $as_var
5448  else
5449    $as_unset $as_var
5450  fi
5451done
5452
5453# Required to use basename.
5454if expr a : '\(a\)' >/dev/null 2>&1; then
5455  as_expr=expr
5456else
5457  as_expr=false
5458fi
5459
5460if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5461  as_basename=basename
5462else
5463  as_basename=false
5464fi
5465
5466
5467# Name of the executable.
5468as_me=`$as_basename "$0" ||
5469$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5470	 X"$0" : 'X\(//\)$' \| \
5471	 X"$0" : 'X\(/\)$' \| \
5472	 .     : '\(.\)' 2>/dev/null ||
5473echo X/"$0" |
5474    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5475  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
5476  	  /^X\/\(\/\).*/{ s//\1/; q; }
5477  	  s/.*/./; q'`
5478
5479
5480# PATH needs CR, and LINENO needs CR and PATH.
5481# Avoid depending upon Character Ranges.
5482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5485as_cr_digits='0123456789'
5486as_cr_alnum=$as_cr_Letters$as_cr_digits
5487
5488# The user is always right.
5489if test "${PATH_SEPARATOR+set}" != set; then
5490  echo "#! /bin/sh" >conf$$.sh
5491  echo  "exit 0"   >>conf$$.sh
5492  chmod +x conf$$.sh
5493  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5494    PATH_SEPARATOR=';'
5495  else
5496    PATH_SEPARATOR=:
5497  fi
5498  rm -f conf$$.sh
5499fi
5500
5501
5502  as_lineno_1=$LINENO
5503  as_lineno_2=$LINENO
5504  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5505  test "x$as_lineno_1" != "x$as_lineno_2" &&
5506  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5507  # Find who we are.  Look in the path if we contain no path at all
5508  # relative or not.
5509  case $0 in
5510    *[\\/]* ) as_myself=$0 ;;
5511    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514  IFS=$as_save_IFS
5515  test -z "$as_dir" && as_dir=.
5516  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5517done
5518
5519       ;;
5520  esac
5521  # We did not find ourselves, most probably we were run as `sh COMMAND'
5522  # in which case we are not to be found in the path.
5523  if test "x$as_myself" = x; then
5524    as_myself=$0
5525  fi
5526  if test ! -f "$as_myself"; then
5527    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5528echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5529   { (exit 1); exit 1; }; }
5530  fi
5531  case $CONFIG_SHELL in
5532  '')
5533    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5535do
5536  IFS=$as_save_IFS
5537  test -z "$as_dir" && as_dir=.
5538  for as_base in sh bash ksh sh5; do
5539	 case $as_dir in
5540	 /*)
5541	   if ("$as_dir/$as_base" -c '
5542  as_lineno_1=$LINENO
5543  as_lineno_2=$LINENO
5544  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5545  test "x$as_lineno_1" != "x$as_lineno_2" &&
5546  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5547	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5548	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5549	     CONFIG_SHELL=$as_dir/$as_base
5550	     export CONFIG_SHELL
5551	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5552	   fi;;
5553	 esac
5554       done
5555done
5556;;
5557  esac
5558
5559  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5560  # uniformly replaced by the line number.  The first 'sed' inserts a
5561  # line-number line before each line; the second 'sed' does the real
5562  # work.  The second script uses 'N' to pair each line-number line
5563  # with the numbered line, and appends trailing '-' during
5564  # substitution so that $LINENO is not a special case at line end.
5565  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5566  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5567  sed '=' <$as_myself |
5568    sed '
5569      N
5570      s,$,-,
5571      : loop
5572      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5573      t loop
5574      s,-$,,
5575      s,^['$as_cr_digits']*\n,,
5576    ' >$as_me.lineno &&
5577  chmod +x $as_me.lineno ||
5578    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5579echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5580   { (exit 1); exit 1; }; }
5581
5582  # Don't try to exec as it changes $[0], causing all sort of problems
5583  # (the dirname of $[0] is not the place where we might find the
5584  # original and so on.  Autoconf is especially sensible to this).
5585  . ./$as_me.lineno
5586  # Exit status is that of the last command.
5587  exit
5588}
5589
5590
5591case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5592  *c*,-n*) ECHO_N= ECHO_C='
5593' ECHO_T='	' ;;
5594  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5595  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5596esac
5597
5598if expr a : '\(a\)' >/dev/null 2>&1; then
5599  as_expr=expr
5600else
5601  as_expr=false
5602fi
5603
5604rm -f conf$$ conf$$.exe conf$$.file
5605echo >conf$$.file
5606if ln -s conf$$.file conf$$ 2>/dev/null; then
5607  # We could just check for DJGPP; but this test a) works b) is more generic
5608  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5609  if test -f conf$$.exe; then
5610    # Don't use ln at all; we don't have any links
5611    as_ln_s='cp -p'
5612  else
5613    as_ln_s='ln -s'
5614  fi
5615elif ln conf$$.file conf$$ 2>/dev/null; then
5616  as_ln_s=ln
5617else
5618  as_ln_s='cp -p'
5619fi
5620rm -f conf$$ conf$$.exe conf$$.file
5621
5622if mkdir -p . 2>/dev/null; then
5623  as_mkdir_p=:
5624else
5625  test -d ./-p && rmdir ./-p
5626  as_mkdir_p=false
5627fi
5628
5629as_executable_p="test -f"
5630
5631# Sed expression to map a string onto a valid CPP name.
5632as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5633
5634# Sed expression to map a string onto a valid variable name.
5635as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5636
5637
5638# IFS
5639# We need space, tab and new line, in precisely that order.
5640as_nl='
5641'
5642IFS=" 	$as_nl"
5643
5644# CDPATH.
5645$as_unset CDPATH
5646
5647exec 6>&1
5648
5649# Open the log real soon, to keep \$[0] and so on meaningful, and to
5650# report actual input values of CONFIG_FILES etc. instead of their
5651# values after options handling.  Logging --version etc. is OK.
5652exec 5>>config.log
5653{
5654  echo
5655  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5656## Running $as_me. ##
5657_ASBOX
5658} >&5
5659cat >&5 <<_CSEOF
5660
5661This file was extended by libssp $as_me 1.0, which was
5662generated by GNU Autoconf 2.59.  Invocation command line was
5663
5664  CONFIG_FILES    = $CONFIG_FILES
5665  CONFIG_HEADERS  = $CONFIG_HEADERS
5666  CONFIG_LINKS    = $CONFIG_LINKS
5667  CONFIG_COMMANDS = $CONFIG_COMMANDS
5668  $ $0 $@
5669
5670_CSEOF
5671echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5672echo >&5
5673_ACEOF
5674
5675# Files that config.status was made for.
5676if test -n "$ac_config_files"; then
5677  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5678fi
5679
5680if test -n "$ac_config_headers"; then
5681  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5682fi
5683
5684if test -n "$ac_config_links"; then
5685  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5686fi
5687
5688if test -n "$ac_config_commands"; then
5689  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5690fi
5691
5692cat >>$CONFIG_STATUS <<\_ACEOF
5693
5694ac_cs_usage="\
5695\`$as_me' instantiates files from templates according to the
5696current configuration.
5697
5698Usage: $0 [OPTIONS] [FILE]...
5699
5700  -h, --help       print this help, then exit
5701  -V, --version    print version number, then exit
5702  -q, --quiet      do not print progress messages
5703  -d, --debug      don't remove temporary files
5704      --recheck    update $as_me by reconfiguring in the same conditions
5705  --file=FILE[:TEMPLATE]
5706		   instantiate the configuration file FILE
5707  --header=FILE[:TEMPLATE]
5708		   instantiate the configuration header FILE
5709
5710Configuration files:
5711$config_files
5712
5713Configuration headers:
5714$config_headers
5715
5716Configuration commands:
5717$config_commands
5718
5719Report bugs to <bug-autoconf@gnu.org>."
5720_ACEOF
5721
5722cat >>$CONFIG_STATUS <<_ACEOF
5723ac_cs_version="\\
5724libssp config.status 1.0
5725configured by $0, generated by GNU Autoconf 2.59,
5726  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5727
5728Copyright (C) 2003 Free Software Foundation, Inc.
5729This config.status script is free software; the Free Software Foundation
5730gives unlimited permission to copy, distribute and modify it."
5731srcdir=$srcdir
5732INSTALL="$INSTALL"
5733_ACEOF
5734
5735cat >>$CONFIG_STATUS <<\_ACEOF
5736# If no file are specified by the user, then we need to provide default
5737# value.  By we need to know if files were specified by the user.
5738ac_need_defaults=:
5739while test $# != 0
5740do
5741  case $1 in
5742  --*=*)
5743    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5744    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5745    ac_shift=:
5746    ;;
5747  -*)
5748    ac_option=$1
5749    ac_optarg=$2
5750    ac_shift=shift
5751    ;;
5752  *) # This is not an option, so the user has probably given explicit
5753     # arguments.
5754     ac_option=$1
5755     ac_need_defaults=false;;
5756  esac
5757
5758  case $ac_option in
5759  # Handling of the options.
5760_ACEOF
5761cat >>$CONFIG_STATUS <<\_ACEOF
5762  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5763    ac_cs_recheck=: ;;
5764  --version | --vers* | -V )
5765    echo "$ac_cs_version"; exit 0 ;;
5766  --he | --h)
5767    # Conflict between --help and --header
5768    { { echo "$as_me:$LINENO: error: ambiguous option: $1
5769Try \`$0 --help' for more information." >&5
5770echo "$as_me: error: ambiguous option: $1
5771Try \`$0 --help' for more information." >&2;}
5772   { (exit 1); exit 1; }; };;
5773  --help | --hel | -h )
5774    echo "$ac_cs_usage"; exit 0 ;;
5775  --debug | --d* | -d )
5776    debug=: ;;
5777  --file | --fil | --fi | --f )
5778    $ac_shift
5779    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5780    ac_need_defaults=false;;
5781  --header | --heade | --head | --hea )
5782    $ac_shift
5783    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5784    ac_need_defaults=false;;
5785  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5786  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5787    ac_cs_silent=: ;;
5788
5789  # This is an error.
5790  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5791Try \`$0 --help' for more information." >&5
5792echo "$as_me: error: unrecognized option: $1
5793Try \`$0 --help' for more information." >&2;}
5794   { (exit 1); exit 1; }; } ;;
5795
5796  *) ac_config_targets="$ac_config_targets $1" ;;
5797
5798  esac
5799  shift
5800done
5801
5802ac_configure_extra_args=
5803
5804if $ac_cs_silent; then
5805  exec 6>/dev/null
5806  ac_configure_extra_args="$ac_configure_extra_args --silent"
5807fi
5808
5809_ACEOF
5810cat >>$CONFIG_STATUS <<_ACEOF
5811if \$ac_cs_recheck; then
5812  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5813  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5814fi
5815
5816_ACEOF
5817
5818cat >>$CONFIG_STATUS <<_ACEOF
5819#
5820# INIT-COMMANDS section.
5821#
5822
5823
5824srcdir="$srcdir"
5825host="$host"
5826target="$target"
5827with_multisubdir="$with_multisubdir"
5828with_multisrctop="$with_multisrctop"
5829with_target_subdir="$with_target_subdir"
5830ac_configure_args="${multilib_arg} ${ac_configure_args}"
5831multi_basedir="$multi_basedir"
5832CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5833CC="$CC"
5834AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5835
5836_ACEOF
5837
5838
5839
5840cat >>$CONFIG_STATUS <<\_ACEOF
5841for ac_config_target in $ac_config_targets
5842do
5843  case "$ac_config_target" in
5844  # Handling of arguments.
5845  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5846  "ssp/ssp.h" ) CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
5847  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5848  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5849  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5850  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5851echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5852   { (exit 1); exit 1; }; };;
5853  esac
5854done
5855
5856# If the user did not use the arguments to specify the items to instantiate,
5857# then the envvar interface is used.  Set only those that are not.
5858# We use the long form for the default assignment because of an extremely
5859# bizarre bug on SunOS 4.1.3.
5860if $ac_need_defaults; then
5861  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5862  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5863  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5864fi
5865
5866# Have a temporary directory for convenience.  Make it in the build tree
5867# simply because there is no reason to put it here, and in addition,
5868# creating and moving files from /tmp can sometimes cause problems.
5869# Create a temporary directory, and hook for its removal unless debugging.
5870$debug ||
5871{
5872  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5873  trap '{ (exit 1); exit 1; }' 1 2 13 15
5874}
5875
5876# Create a (secure) tmp directory for tmp files.
5877
5878{
5879  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5880  test -n "$tmp" && test -d "$tmp"
5881}  ||
5882{
5883  tmp=./confstat$$-$RANDOM
5884  (umask 077 && mkdir $tmp)
5885} ||
5886{
5887   echo "$me: cannot create a temporary directory in ." >&2
5888   { (exit 1); exit 1; }
5889}
5890
5891_ACEOF
5892
5893cat >>$CONFIG_STATUS <<_ACEOF
5894
5895#
5896# CONFIG_FILES section.
5897#
5898
5899# No need to generate the scripts if there are no CONFIG_FILES.
5900# This happens for instance when ./config.status config.h
5901if test -n "\$CONFIG_FILES"; then
5902  # Protect against being on the right side of a sed subst in config.status.
5903  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5904   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5905s,@SHELL@,$SHELL,;t t
5906s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5907s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5908s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5909s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5910s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5911s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5912s,@exec_prefix@,$exec_prefix,;t t
5913s,@prefix@,$prefix,;t t
5914s,@program_transform_name@,$program_transform_name,;t t
5915s,@bindir@,$bindir,;t t
5916s,@sbindir@,$sbindir,;t t
5917s,@libexecdir@,$libexecdir,;t t
5918s,@datadir@,$datadir,;t t
5919s,@sysconfdir@,$sysconfdir,;t t
5920s,@sharedstatedir@,$sharedstatedir,;t t
5921s,@localstatedir@,$localstatedir,;t t
5922s,@libdir@,$libdir,;t t
5923s,@includedir@,$includedir,;t t
5924s,@oldincludedir@,$oldincludedir,;t t
5925s,@infodir@,$infodir,;t t
5926s,@mandir@,$mandir,;t t
5927s,@build_alias@,$build_alias,;t t
5928s,@host_alias@,$host_alias,;t t
5929s,@target_alias@,$target_alias,;t t
5930s,@DEFS@,$DEFS,;t t
5931s,@ECHO_C@,$ECHO_C,;t t
5932s,@ECHO_N@,$ECHO_N,;t t
5933s,@ECHO_T@,$ECHO_T,;t t
5934s,@LIBS@,$LIBS,;t t
5935s,@build@,$build,;t t
5936s,@build_cpu@,$build_cpu,;t t
5937s,@build_vendor@,$build_vendor,;t t
5938s,@build_os@,$build_os,;t t
5939s,@host@,$host,;t t
5940s,@host_cpu@,$host_cpu,;t t
5941s,@host_vendor@,$host_vendor,;t t
5942s,@host_os@,$host_os,;t t
5943s,@target@,$target,;t t
5944s,@target_cpu@,$target_cpu,;t t
5945s,@target_vendor@,$target_vendor,;t t
5946s,@target_os@,$target_os,;t t
5947s,@target_noncanonical@,$target_noncanonical,;t t
5948s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5949s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5950s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5951s,@CYGPATH_W@,$CYGPATH_W,;t t
5952s,@PACKAGE@,$PACKAGE,;t t
5953s,@VERSION@,$VERSION,;t t
5954s,@ACLOCAL@,$ACLOCAL,;t t
5955s,@AUTOCONF@,$AUTOCONF,;t t
5956s,@AUTOMAKE@,$AUTOMAKE,;t t
5957s,@AUTOHEADER@,$AUTOHEADER,;t t
5958s,@MAKEINFO@,$MAKEINFO,;t t
5959s,@install_sh@,$install_sh,;t t
5960s,@STRIP@,$STRIP,;t t
5961s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5962s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5963s,@mkdir_p@,$mkdir_p,;t t
5964s,@AWK@,$AWK,;t t
5965s,@SET_MAKE@,$SET_MAKE,;t t
5966s,@am__leading_dot@,$am__leading_dot,;t t
5967s,@AMTAR@,$AMTAR,;t t
5968s,@am__tar@,$am__tar,;t t
5969s,@am__untar@,$am__untar,;t t
5970s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5971s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5972s,@MAINT@,$MAINT,;t t
5973s,@multi_basedir@,$multi_basedir,;t t
5974s,@CC@,$CC,;t t
5975s,@ac_ct_CC@,$ac_ct_CC,;t t
5976s,@EXEEXT@,$EXEEXT,;t t
5977s,@OBJEXT@,$OBJEXT,;t t
5978s,@DEPDIR@,$DEPDIR,;t t
5979s,@am__include@,$am__include,;t t
5980s,@am__quote@,$am__quote,;t t
5981s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5982s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5983s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5984s,@CCDEPMODE@,$CCDEPMODE,;t t
5985s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5986s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5987s,@CFLAGS@,$CFLAGS,;t t
5988s,@CPP@,$CPP,;t t
5989s,@CPPFLAGS@,$CPPFLAGS,;t t
5990s,@LIBSSP_USE_SYMVER_TRUE@,$LIBSSP_USE_SYMVER_TRUE,;t t
5991s,@LIBSSP_USE_SYMVER_FALSE@,$LIBSSP_USE_SYMVER_FALSE,;t t
5992s,@EGREP@,$EGREP,;t t
5993s,@ssp_have_usable_vsnprintf@,$ssp_have_usable_vsnprintf,;t t
5994s,@LN_S@,$LN_S,;t t
5995s,@RANLIB@,$RANLIB,;t t
5996s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5997s,@LIBTOOL@,$LIBTOOL,;t t
5998s,@enable_shared@,$enable_shared,;t t
5999s,@enable_static@,$enable_static,;t t
6000s,@toolexecdir@,$toolexecdir,;t t
6001s,@toolexeclibdir@,$toolexeclibdir,;t t
6002s,@LIBOBJS@,$LIBOBJS,;t t
6003s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6004CEOF
6005
6006_ACEOF
6007
6008  cat >>$CONFIG_STATUS <<\_ACEOF
6009  # Split the substitutions into bite-sized pieces for seds with
6010  # small command number limits, like on Digital OSF/1 and HP-UX.
6011  ac_max_sed_lines=48
6012  ac_sed_frag=1 # Number of current file.
6013  ac_beg=1 # First line for current file.
6014  ac_end=$ac_max_sed_lines # Line after last line for current file.
6015  ac_more_lines=:
6016  ac_sed_cmds=
6017  while $ac_more_lines; do
6018    if test $ac_beg -gt 1; then
6019      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6020    else
6021      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6022    fi
6023    if test ! -s $tmp/subs.frag; then
6024      ac_more_lines=false
6025    else
6026      # The purpose of the label and of the branching condition is to
6027      # speed up the sed processing (if there are no `@' at all, there
6028      # is no need to browse any of the substitutions).
6029      # These are the two extra sed commands mentioned above.
6030      (echo ':t
6031  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6032      if test -z "$ac_sed_cmds"; then
6033	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6034      else
6035	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6036      fi
6037      ac_sed_frag=`expr $ac_sed_frag + 1`
6038      ac_beg=$ac_end
6039      ac_end=`expr $ac_end + $ac_max_sed_lines`
6040    fi
6041  done
6042  if test -z "$ac_sed_cmds"; then
6043    ac_sed_cmds=cat
6044  fi
6045fi # test -n "$CONFIG_FILES"
6046
6047_ACEOF
6048cat >>$CONFIG_STATUS <<\_ACEOF
6049for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6050  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6051  case $ac_file in
6052  - | *:- | *:-:* ) # input from stdin
6053	cat >$tmp/stdin
6054	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6055	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6056  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6057	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6058  * )   ac_file_in=$ac_file.in ;;
6059  esac
6060
6061  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6062  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6063$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6064	 X"$ac_file" : 'X\(//\)[^/]' \| \
6065	 X"$ac_file" : 'X\(//\)$' \| \
6066	 X"$ac_file" : 'X\(/\)' \| \
6067	 .     : '\(.\)' 2>/dev/null ||
6068echo X"$ac_file" |
6069    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6070  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6071  	  /^X\(\/\/\)$/{ s//\1/; q; }
6072  	  /^X\(\/\).*/{ s//\1/; q; }
6073  	  s/.*/./; q'`
6074  { if $as_mkdir_p; then
6075    mkdir -p "$ac_dir"
6076  else
6077    as_dir="$ac_dir"
6078    as_dirs=
6079    while test ! -d "$as_dir"; do
6080      as_dirs="$as_dir $as_dirs"
6081      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6082$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6083	 X"$as_dir" : 'X\(//\)[^/]' \| \
6084	 X"$as_dir" : 'X\(//\)$' \| \
6085	 X"$as_dir" : 'X\(/\)' \| \
6086	 .     : '\(.\)' 2>/dev/null ||
6087echo X"$as_dir" |
6088    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6089  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6090  	  /^X\(\/\/\)$/{ s//\1/; q; }
6091  	  /^X\(\/\).*/{ s//\1/; q; }
6092  	  s/.*/./; q'`
6093    done
6094    test ! -n "$as_dirs" || mkdir $as_dirs
6095  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6096echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6097   { (exit 1); exit 1; }; }; }
6098
6099  ac_builddir=.
6100
6101if test "$ac_dir" != .; then
6102  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6103  # A "../" for each directory in $ac_dir_suffix.
6104  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6105else
6106  ac_dir_suffix= ac_top_builddir=
6107fi
6108
6109case $srcdir in
6110  .)  # No --srcdir option.  We are building in place.
6111    ac_srcdir=.
6112    if test -z "$ac_top_builddir"; then
6113       ac_top_srcdir=.
6114    else
6115       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6116    fi ;;
6117  [\\/]* | ?:[\\/]* )  # Absolute path.
6118    ac_srcdir=$srcdir$ac_dir_suffix;
6119    ac_top_srcdir=$srcdir ;;
6120  *) # Relative path.
6121    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6122    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6123esac
6124
6125# Do not use `cd foo && pwd` to compute absolute paths, because
6126# the directories may not exist.
6127case `pwd` in
6128.) ac_abs_builddir="$ac_dir";;
6129*)
6130  case "$ac_dir" in
6131  .) ac_abs_builddir=`pwd`;;
6132  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6133  *) ac_abs_builddir=`pwd`/"$ac_dir";;
6134  esac;;
6135esac
6136case $ac_abs_builddir in
6137.) ac_abs_top_builddir=${ac_top_builddir}.;;
6138*)
6139  case ${ac_top_builddir}. in
6140  .) ac_abs_top_builddir=$ac_abs_builddir;;
6141  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6142  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6143  esac;;
6144esac
6145case $ac_abs_builddir in
6146.) ac_abs_srcdir=$ac_srcdir;;
6147*)
6148  case $ac_srcdir in
6149  .) ac_abs_srcdir=$ac_abs_builddir;;
6150  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6151  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6152  esac;;
6153esac
6154case $ac_abs_builddir in
6155.) ac_abs_top_srcdir=$ac_top_srcdir;;
6156*)
6157  case $ac_top_srcdir in
6158  .) ac_abs_top_srcdir=$ac_abs_builddir;;
6159  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6160  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6161  esac;;
6162esac
6163
6164
6165  case $INSTALL in
6166  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6167  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6168  esac
6169
6170  if test x"$ac_file" != x-; then
6171    { echo "$as_me:$LINENO: creating $ac_file" >&5
6172echo "$as_me: creating $ac_file" >&6;}
6173    rm -f "$ac_file"
6174  fi
6175  # Let's still pretend it is `configure' which instantiates (i.e., don't
6176  # use $as_me), people would be surprised to read:
6177  #    /* config.h.  Generated by config.status.  */
6178  if test x"$ac_file" = x-; then
6179    configure_input=
6180  else
6181    configure_input="$ac_file.  "
6182  fi
6183  configure_input=$configure_input"Generated from `echo $ac_file_in |
6184				     sed 's,.*/,,'` by configure."
6185
6186  # First look for the input files in the build tree, otherwise in the
6187  # src tree.
6188  ac_file_inputs=`IFS=:
6189    for f in $ac_file_in; do
6190      case $f in
6191      -) echo $tmp/stdin ;;
6192      [\\/$]*)
6193	 # Absolute (can't be DOS-style, as IFS=:)
6194	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6195echo "$as_me: error: cannot find input file: $f" >&2;}
6196   { (exit 1); exit 1; }; }
6197	 echo "$f";;
6198      *) # Relative
6199	 if test -f "$f"; then
6200	   # Build tree
6201	   echo "$f"
6202	 elif test -f "$srcdir/$f"; then
6203	   # Source tree
6204	   echo "$srcdir/$f"
6205	 else
6206	   # /dev/null tree
6207	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6208echo "$as_me: error: cannot find input file: $f" >&2;}
6209   { (exit 1); exit 1; }; }
6210	 fi;;
6211      esac
6212    done` || { (exit 1); exit 1; }
6213_ACEOF
6214cat >>$CONFIG_STATUS <<_ACEOF
6215  sed "$ac_vpsub
6216$extrasub
6217_ACEOF
6218cat >>$CONFIG_STATUS <<\_ACEOF
6219:t
6220/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6221s,@configure_input@,$configure_input,;t t
6222s,@srcdir@,$ac_srcdir,;t t
6223s,@abs_srcdir@,$ac_abs_srcdir,;t t
6224s,@top_srcdir@,$ac_top_srcdir,;t t
6225s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6226s,@builddir@,$ac_builddir,;t t
6227s,@abs_builddir@,$ac_abs_builddir,;t t
6228s,@top_builddir@,$ac_top_builddir,;t t
6229s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6230s,@INSTALL@,$ac_INSTALL,;t t
6231" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6232  rm -f $tmp/stdin
6233  if test x"$ac_file" != x-; then
6234    mv $tmp/out $ac_file
6235  else
6236    cat $tmp/out
6237    rm -f $tmp/out
6238  fi
6239
6240done
6241_ACEOF
6242cat >>$CONFIG_STATUS <<\_ACEOF
6243
6244#
6245# CONFIG_HEADER section.
6246#
6247
6248# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6249# NAME is the cpp macro being defined and VALUE is the value it is being given.
6250#
6251# ac_d sets the value in "#define NAME VALUE" lines.
6252ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
6253ac_dB='[	 ].*$,\1#\2'
6254ac_dC=' '
6255ac_dD=',;t'
6256# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6257ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
6258ac_uB='$,\1#\2define\3'
6259ac_uC=' '
6260ac_uD=',;t'
6261
6262for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6263  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6264  case $ac_file in
6265  - | *:- | *:-:* ) # input from stdin
6266	cat >$tmp/stdin
6267	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6268	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6269  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6270	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6271  * )   ac_file_in=$ac_file.in ;;
6272  esac
6273
6274  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6275echo "$as_me: creating $ac_file" >&6;}
6276
6277  # First look for the input files in the build tree, otherwise in the
6278  # src tree.
6279  ac_file_inputs=`IFS=:
6280    for f in $ac_file_in; do
6281      case $f in
6282      -) echo $tmp/stdin ;;
6283      [\\/$]*)
6284	 # Absolute (can't be DOS-style, as IFS=:)
6285	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6286echo "$as_me: error: cannot find input file: $f" >&2;}
6287   { (exit 1); exit 1; }; }
6288	 # Do quote $f, to prevent DOS paths from being IFS'd.
6289	 echo "$f";;
6290      *) # Relative
6291	 if test -f "$f"; then
6292	   # Build tree
6293	   echo "$f"
6294	 elif test -f "$srcdir/$f"; then
6295	   # Source tree
6296	   echo "$srcdir/$f"
6297	 else
6298	   # /dev/null tree
6299	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6300echo "$as_me: error: cannot find input file: $f" >&2;}
6301   { (exit 1); exit 1; }; }
6302	 fi;;
6303      esac
6304    done` || { (exit 1); exit 1; }
6305  # Remove the trailing spaces.
6306  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
6307
6308_ACEOF
6309
6310# Transform confdefs.h into two sed scripts, `conftest.defines' and
6311# `conftest.undefs', that substitutes the proper values into
6312# config.h.in to produce config.h.  The first handles `#define'
6313# templates, and the second `#undef' templates.
6314# And first: Protect against being on the right side of a sed subst in
6315# config.status.  Protect against being in an unquoted here document
6316# in config.status.
6317rm -f conftest.defines conftest.undefs
6318# Using a here document instead of a string reduces the quoting nightmare.
6319# Putting comments in sed scripts is not portable.
6320#
6321# `end' is used to avoid that the second main sed command (meant for
6322# 0-ary CPP macros) applies to n-ary macro definitions.
6323# See the Autoconf documentation for `clear'.
6324cat >confdef2sed.sed <<\_ACEOF
6325s/[\\&,]/\\&/g
6326s,[\\$`],\\&,g
6327t clear
6328: clear
6329s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6330t end
6331s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6332: end
6333_ACEOF
6334# If some macros were called several times there might be several times
6335# the same #defines, which is useless.  Nevertheless, we may not want to
6336# sort them, since we want the *last* AC-DEFINE to be honored.
6337uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6338sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6339rm -f confdef2sed.sed
6340
6341# This sed command replaces #undef with comments.  This is necessary, for
6342# example, in the case of _POSIX_SOURCE, which is predefined and required
6343# on some systems where configure will not decide to define it.
6344cat >>conftest.undefs <<\_ACEOF
6345s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6346_ACEOF
6347
6348# Break up conftest.defines because some shells have a limit on the size
6349# of here documents, and old seds have small limits too (100 cmds).
6350echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6351echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6352echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6353echo '  :' >>$CONFIG_STATUS
6354rm -f conftest.tail
6355while grep . conftest.defines >/dev/null
6356do
6357  # Write a limited-size here document to $tmp/defines.sed.
6358  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6359  # Speed up: don't consider the non `#define' lines.
6360  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
6361  # Work around the forget-to-reset-the-flag bug.
6362  echo 't clr' >>$CONFIG_STATUS
6363  echo ': clr' >>$CONFIG_STATUS
6364  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6365  echo 'CEOF
6366  sed -f $tmp/defines.sed $tmp/in >$tmp/out
6367  rm -f $tmp/in
6368  mv $tmp/out $tmp/in
6369' >>$CONFIG_STATUS
6370  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6371  rm -f conftest.defines
6372  mv conftest.tail conftest.defines
6373done
6374rm -f conftest.defines
6375echo '  fi # grep' >>$CONFIG_STATUS
6376echo >>$CONFIG_STATUS
6377
6378# Break up conftest.undefs because some shells have a limit on the size
6379# of here documents, and old seds have small limits too (100 cmds).
6380echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6381rm -f conftest.tail
6382while grep . conftest.undefs >/dev/null
6383do
6384  # Write a limited-size here document to $tmp/undefs.sed.
6385  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6386  # Speed up: don't consider the non `#undef'
6387  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
6388  # Work around the forget-to-reset-the-flag bug.
6389  echo 't clr' >>$CONFIG_STATUS
6390  echo ': clr' >>$CONFIG_STATUS
6391  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6392  echo 'CEOF
6393  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6394  rm -f $tmp/in
6395  mv $tmp/out $tmp/in
6396' >>$CONFIG_STATUS
6397  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6398  rm -f conftest.undefs
6399  mv conftest.tail conftest.undefs
6400done
6401rm -f conftest.undefs
6402
6403cat >>$CONFIG_STATUS <<\_ACEOF
6404  # Let's still pretend it is `configure' which instantiates (i.e., don't
6405  # use $as_me), people would be surprised to read:
6406  #    /* config.h.  Generated by config.status.  */
6407  if test x"$ac_file" = x-; then
6408    echo "/* Generated by configure.  */" >$tmp/config.h
6409  else
6410    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6411  fi
6412  cat $tmp/in >>$tmp/config.h
6413  rm -f $tmp/in
6414  if test x"$ac_file" != x-; then
6415    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6416      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6417echo "$as_me: $ac_file is unchanged" >&6;}
6418    else
6419      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6420$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6421	 X"$ac_file" : 'X\(//\)[^/]' \| \
6422	 X"$ac_file" : 'X\(//\)$' \| \
6423	 X"$ac_file" : 'X\(/\)' \| \
6424	 .     : '\(.\)' 2>/dev/null ||
6425echo X"$ac_file" |
6426    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6427  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6428  	  /^X\(\/\/\)$/{ s//\1/; q; }
6429  	  /^X\(\/\).*/{ s//\1/; q; }
6430  	  s/.*/./; q'`
6431      { if $as_mkdir_p; then
6432    mkdir -p "$ac_dir"
6433  else
6434    as_dir="$ac_dir"
6435    as_dirs=
6436    while test ! -d "$as_dir"; do
6437      as_dirs="$as_dir $as_dirs"
6438      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6439$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6440	 X"$as_dir" : 'X\(//\)[^/]' \| \
6441	 X"$as_dir" : 'X\(//\)$' \| \
6442	 X"$as_dir" : 'X\(/\)' \| \
6443	 .     : '\(.\)' 2>/dev/null ||
6444echo X"$as_dir" |
6445    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6446  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6447  	  /^X\(\/\/\)$/{ s//\1/; q; }
6448  	  /^X\(\/\).*/{ s//\1/; q; }
6449  	  s/.*/./; q'`
6450    done
6451    test ! -n "$as_dirs" || mkdir $as_dirs
6452  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6453echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6454   { (exit 1); exit 1; }; }; }
6455
6456      rm -f $ac_file
6457      mv $tmp/config.h $ac_file
6458    fi
6459  else
6460    cat $tmp/config.h
6461    rm -f $tmp/config.h
6462  fi
6463# Compute $ac_file's index in $config_headers.
6464_am_stamp_count=1
6465for _am_header in $config_headers :; do
6466  case $_am_header in
6467    $ac_file | $ac_file:* )
6468      break ;;
6469    * )
6470      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6471  esac
6472done
6473echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6474$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6475	 X$ac_file : 'X\(//\)[^/]' \| \
6476	 X$ac_file : 'X\(//\)$' \| \
6477	 X$ac_file : 'X\(/\)' \| \
6478	 .     : '\(.\)' 2>/dev/null ||
6479echo X$ac_file |
6480    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6481  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6482  	  /^X\(\/\/\)$/{ s//\1/; q; }
6483  	  /^X\(\/\).*/{ s//\1/; q; }
6484  	  s/.*/./; q'`/stamp-h$_am_stamp_count
6485done
6486_ACEOF
6487cat >>$CONFIG_STATUS <<\_ACEOF
6488
6489#
6490# CONFIG_COMMANDS section.
6491#
6492for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6493  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6494  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6495  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6496$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6497	 X"$ac_dest" : 'X\(//\)[^/]' \| \
6498	 X"$ac_dest" : 'X\(//\)$' \| \
6499	 X"$ac_dest" : 'X\(/\)' \| \
6500	 .     : '\(.\)' 2>/dev/null ||
6501echo X"$ac_dest" |
6502    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6503  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6504  	  /^X\(\/\/\)$/{ s//\1/; q; }
6505  	  /^X\(\/\).*/{ s//\1/; q; }
6506  	  s/.*/./; q'`
6507  { if $as_mkdir_p; then
6508    mkdir -p "$ac_dir"
6509  else
6510    as_dir="$ac_dir"
6511    as_dirs=
6512    while test ! -d "$as_dir"; do
6513      as_dirs="$as_dir $as_dirs"
6514      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6515$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6516	 X"$as_dir" : 'X\(//\)[^/]' \| \
6517	 X"$as_dir" : 'X\(//\)$' \| \
6518	 X"$as_dir" : 'X\(/\)' \| \
6519	 .     : '\(.\)' 2>/dev/null ||
6520echo X"$as_dir" |
6521    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6522  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6523  	  /^X\(\/\/\)$/{ s//\1/; q; }
6524  	  /^X\(\/\).*/{ s//\1/; q; }
6525  	  s/.*/./; q'`
6526    done
6527    test ! -n "$as_dirs" || mkdir $as_dirs
6528  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6529echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6530   { (exit 1); exit 1; }; }; }
6531
6532  ac_builddir=.
6533
6534if test "$ac_dir" != .; then
6535  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6536  # A "../" for each directory in $ac_dir_suffix.
6537  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6538else
6539  ac_dir_suffix= ac_top_builddir=
6540fi
6541
6542case $srcdir in
6543  .)  # No --srcdir option.  We are building in place.
6544    ac_srcdir=.
6545    if test -z "$ac_top_builddir"; then
6546       ac_top_srcdir=.
6547    else
6548       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6549    fi ;;
6550  [\\/]* | ?:[\\/]* )  # Absolute path.
6551    ac_srcdir=$srcdir$ac_dir_suffix;
6552    ac_top_srcdir=$srcdir ;;
6553  *) # Relative path.
6554    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6555    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6556esac
6557
6558# Do not use `cd foo && pwd` to compute absolute paths, because
6559# the directories may not exist.
6560case `pwd` in
6561.) ac_abs_builddir="$ac_dir";;
6562*)
6563  case "$ac_dir" in
6564  .) ac_abs_builddir=`pwd`;;
6565  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6566  *) ac_abs_builddir=`pwd`/"$ac_dir";;
6567  esac;;
6568esac
6569case $ac_abs_builddir in
6570.) ac_abs_top_builddir=${ac_top_builddir}.;;
6571*)
6572  case ${ac_top_builddir}. in
6573  .) ac_abs_top_builddir=$ac_abs_builddir;;
6574  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6575  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6576  esac;;
6577esac
6578case $ac_abs_builddir in
6579.) ac_abs_srcdir=$ac_srcdir;;
6580*)
6581  case $ac_srcdir in
6582  .) ac_abs_srcdir=$ac_abs_builddir;;
6583  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6584  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6585  esac;;
6586esac
6587case $ac_abs_builddir in
6588.) ac_abs_top_srcdir=$ac_top_srcdir;;
6589*)
6590  case $ac_top_srcdir in
6591  .) ac_abs_top_srcdir=$ac_abs_builddir;;
6592  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6593  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6594  esac;;
6595esac
6596
6597
6598  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6599echo "$as_me: executing $ac_dest commands" >&6;}
6600  case $ac_dest in
6601    default-1 )
6602# Only add multilib support code if we just rebuilt the top-level
6603# Makefile.
6604case " $CONFIG_FILES " in
6605 *" Makefile "*)
6606   ac_file=Makefile . ${multi_basedir}/config-ml.in
6607   ;;
6608esac ;;
6609    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6610  # Strip MF so we end up with the name of the file.
6611  mf=`echo "$mf" | sed -e 's/:.*$//'`
6612  # Check whether this is an Automake generated Makefile or not.
6613  # We used to match only the files named `Makefile.in', but
6614  # some people rename them; so instead we look at the file content.
6615  # Grep'ing the first line is not enough: some people post-process
6616  # each Makefile.in and add a new line on top of each file to say so.
6617  # So let's grep whole file.
6618  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6619    dirpart=`(dirname "$mf") 2>/dev/null ||
6620$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6621	 X"$mf" : 'X\(//\)[^/]' \| \
6622	 X"$mf" : 'X\(//\)$' \| \
6623	 X"$mf" : 'X\(/\)' \| \
6624	 .     : '\(.\)' 2>/dev/null ||
6625echo X"$mf" |
6626    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6627  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6628  	  /^X\(\/\/\)$/{ s//\1/; q; }
6629  	  /^X\(\/\).*/{ s//\1/; q; }
6630  	  s/.*/./; q'`
6631  else
6632    continue
6633  fi
6634  # Extract the definition of DEPDIR, am__include, and am__quote
6635  # from the Makefile without running `make'.
6636  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6637  test -z "$DEPDIR" && continue
6638  am__include=`sed -n 's/^am__include = //p' < "$mf"`
6639  test -z "am__include" && continue
6640  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6641  # When using ansi2knr, U may be empty or an underscore; expand it
6642  U=`sed -n 's/^U = //p' < "$mf"`
6643  # Find all dependency output files, they are included files with
6644  # $(DEPDIR) in their names.  We invoke sed twice because it is the
6645  # simplest approach to changing $(DEPDIR) to its actual value in the
6646  # expansion.
6647  for file in `sed -n "
6648    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6649       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6650    # Make sure the directory exists.
6651    test -f "$dirpart/$file" && continue
6652    fdir=`(dirname "$file") 2>/dev/null ||
6653$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6654	 X"$file" : 'X\(//\)[^/]' \| \
6655	 X"$file" : 'X\(//\)$' \| \
6656	 X"$file" : 'X\(/\)' \| \
6657	 .     : '\(.\)' 2>/dev/null ||
6658echo X"$file" |
6659    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6660  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6661  	  /^X\(\/\/\)$/{ s//\1/; q; }
6662  	  /^X\(\/\).*/{ s//\1/; q; }
6663  	  s/.*/./; q'`
6664    { if $as_mkdir_p; then
6665    mkdir -p $dirpart/$fdir
6666  else
6667    as_dir=$dirpart/$fdir
6668    as_dirs=
6669    while test ! -d "$as_dir"; do
6670      as_dirs="$as_dir $as_dirs"
6671      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6672$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6673	 X"$as_dir" : 'X\(//\)[^/]' \| \
6674	 X"$as_dir" : 'X\(//\)$' \| \
6675	 X"$as_dir" : 'X\(/\)' \| \
6676	 .     : '\(.\)' 2>/dev/null ||
6677echo X"$as_dir" |
6678    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6679  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6680  	  /^X\(\/\/\)$/{ s//\1/; q; }
6681  	  /^X\(\/\).*/{ s//\1/; q; }
6682  	  s/.*/./; q'`
6683    done
6684    test ! -n "$as_dirs" || mkdir $as_dirs
6685  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6686echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6687   { (exit 1); exit 1; }; }; }
6688
6689    # echo "creating $dirpart/$file"
6690    echo '# dummy' > "$dirpart/$file"
6691  done
6692done
6693 ;;
6694  esac
6695done
6696_ACEOF
6697
6698cat >>$CONFIG_STATUS <<\_ACEOF
6699
6700{ (exit 0); exit 0; }
6701_ACEOF
6702chmod +x $CONFIG_STATUS
6703ac_clean_files=$ac_clean_files_save
6704
6705
6706# configure is writing to config.log, and then calls config.status.
6707# config.status does its own redirection, appending to config.log.
6708# Unfortunately, on DOS this fails, as config.log is still kept open
6709# by configure, so config.status won't be able to write to it; its
6710# output is simply discarded.  So we exec the FD to /dev/null,
6711# effectively closing config.log, so it can be properly (re)opened and
6712# appended to by config.status.  When coming back to configure, we
6713# need to make the FD available again.
6714if test "$no_create" != yes; then
6715  ac_cs_success=:
6716  ac_config_status_args=
6717  test "$silent" = yes &&
6718    ac_config_status_args="$ac_config_status_args --quiet"
6719  exec 5>/dev/null
6720  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6721  exec 5>>config.log
6722  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6723  # would make configure fail if this is the last instruction.
6724  $ac_cs_success || { (exit 1); exit 1; }
6725fi
6726
6727