source: trunk/third/gettext2/autoconf-lib-link/tests/rpathlyx/configure @ 22167

Revision 22167, 155.2 KB checked in by ghudson, 19 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r22166, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.58.
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=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="configure.ac"
275ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBRPATHX LTLIBRPATHX LIBRPATHY LTLIBRPATHY global_top_auxdir LIBOBJS LTLIBOBJS'
276ac_subst_files=''
277
278# Initialize some variables set by options.
279ac_init_help=
280ac_init_version=false
281# The variables have the same names as the options, with
282# dashes changed to underlines.
283cache_file=/dev/null
284exec_prefix=NONE
285no_create=
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
294verbose=
295x_includes=NONE
296x_libraries=NONE
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
315
316ac_prev=
317for ac_option
318do
319  # If the previous option needs an argument, assign it.
320  if test -n "$ac_prev"; then
321    eval "$ac_prev=\$ac_option"
322    ac_prev=
323    continue
324  fi
325
326  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328  # Accept the important Cygnus configure options, so we can diagnose typos.
329
330  case $ac_option in
331
332  -bindir | --bindir | --bindi | --bind | --bin | --bi)
333    ac_prev=bindir ;;
334  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335    bindir=$ac_optarg ;;
336
337  -build | --build | --buil | --bui | --bu)
338    ac_prev=build_alias ;;
339  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340    build_alias=$ac_optarg ;;
341
342  -cache-file | --cache-file | --cache-fil | --cache-fi \
343  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344    ac_prev=cache_file ;;
345  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347    cache_file=$ac_optarg ;;
348
349  --config-cache | -C)
350    cache_file=config.cache ;;
351
352  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353    ac_prev=datadir ;;
354  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355  | --da=*)
356    datadir=$ac_optarg ;;
357
358  -disable-* | --disable-*)
359    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360    # Reject names that are not valid shell variable names.
361    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363   { (exit 1); exit 1; }; }
364    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365    eval "enable_$ac_feature=no" ;;
366
367  -enable-* | --enable-*)
368    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369    # Reject names that are not valid shell variable names.
370    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372   { (exit 1); exit 1; }; }
373    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374    case $ac_option in
375      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376      *) ac_optarg=yes ;;
377    esac
378    eval "enable_$ac_feature='$ac_optarg'" ;;
379
380  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382  | --exec | --exe | --ex)
383    ac_prev=exec_prefix ;;
384  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386  | --exec=* | --exe=* | --ex=*)
387    exec_prefix=$ac_optarg ;;
388
389  -gas | --gas | --ga | --g)
390    # Obsolete; use --with-gas.
391    with_gas=yes ;;
392
393  -help | --help | --hel | --he | -h)
394    ac_init_help=long ;;
395  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396    ac_init_help=recursive ;;
397  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398    ac_init_help=short ;;
399
400  -host | --host | --hos | --ho)
401    ac_prev=host_alias ;;
402  -host=* | --host=* | --hos=* | --ho=*)
403    host_alias=$ac_optarg ;;
404
405  -includedir | --includedir | --includedi | --included | --include \
406  | --includ | --inclu | --incl | --inc)
407    ac_prev=includedir ;;
408  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409  | --includ=* | --inclu=* | --incl=* | --inc=*)
410    includedir=$ac_optarg ;;
411
412  -infodir | --infodir | --infodi | --infod | --info | --inf)
413    ac_prev=infodir ;;
414  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415    infodir=$ac_optarg ;;
416
417  -libdir | --libdir | --libdi | --libd)
418    ac_prev=libdir ;;
419  -libdir=* | --libdir=* | --libdi=* | --libd=*)
420    libdir=$ac_optarg ;;
421
422  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423  | --libexe | --libex | --libe)
424    ac_prev=libexecdir ;;
425  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426  | --libexe=* | --libex=* | --libe=*)
427    libexecdir=$ac_optarg ;;
428
429  -localstatedir | --localstatedir | --localstatedi | --localstated \
430  | --localstate | --localstat | --localsta | --localst \
431  | --locals | --local | --loca | --loc | --lo)
432    ac_prev=localstatedir ;;
433  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436    localstatedir=$ac_optarg ;;
437
438  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439    ac_prev=mandir ;;
440  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441    mandir=$ac_optarg ;;
442
443  -nfp | --nfp | --nf)
444    # Obsolete; use --without-fp.
445    with_fp=no ;;
446
447  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448  | --no-cr | --no-c | -n)
449    no_create=yes ;;
450
451  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453    no_recursion=yes ;;
454
455  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457  | --oldin | --oldi | --old | --ol | --o)
458    ac_prev=oldincludedir ;;
459  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462    oldincludedir=$ac_optarg ;;
463
464  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465    ac_prev=prefix ;;
466  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467    prefix=$ac_optarg ;;
468
469  -program-prefix | --program-prefix | --program-prefi | --program-pref \
470  | --program-pre | --program-pr | --program-p)
471    ac_prev=program_prefix ;;
472  -program-prefix=* | --program-prefix=* | --program-prefi=* \
473  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474    program_prefix=$ac_optarg ;;
475
476  -program-suffix | --program-suffix | --program-suffi | --program-suff \
477  | --program-suf | --program-su | --program-s)
478    ac_prev=program_suffix ;;
479  -program-suffix=* | --program-suffix=* | --program-suffi=* \
480  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481    program_suffix=$ac_optarg ;;
482
483  -program-transform-name | --program-transform-name \
484  | --program-transform-nam | --program-transform-na \
485  | --program-transform-n | --program-transform- \
486  | --program-transform | --program-transfor \
487  | --program-transfo | --program-transf \
488  | --program-trans | --program-tran \
489  | --progr-tra | --program-tr | --program-t)
490    ac_prev=program_transform_name ;;
491  -program-transform-name=* | --program-transform-name=* \
492  | --program-transform-nam=* | --program-transform-na=* \
493  | --program-transform-n=* | --program-transform-=* \
494  | --program-transform=* | --program-transfor=* \
495  | --program-transfo=* | --program-transf=* \
496  | --program-trans=* | --program-tran=* \
497  | --progr-tra=* | --program-tr=* | --program-t=*)
498    program_transform_name=$ac_optarg ;;
499
500  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501  | -silent | --silent | --silen | --sile | --sil)
502    silent=yes ;;
503
504  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505    ac_prev=sbindir ;;
506  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507  | --sbi=* | --sb=*)
508    sbindir=$ac_optarg ;;
509
510  -sharedstatedir | --sharedstatedir | --sharedstatedi \
511  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512  | --sharedst | --shareds | --shared | --share | --shar \
513  | --sha | --sh)
514    ac_prev=sharedstatedir ;;
515  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518  | --sha=* | --sh=*)
519    sharedstatedir=$ac_optarg ;;
520
521  -site | --site | --sit)
522    ac_prev=site ;;
523  -site=* | --site=* | --sit=*)
524    site=$ac_optarg ;;
525
526  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527    ac_prev=srcdir ;;
528  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529    srcdir=$ac_optarg ;;
530
531  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532  | --syscon | --sysco | --sysc | --sys | --sy)
533    ac_prev=sysconfdir ;;
534  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536    sysconfdir=$ac_optarg ;;
537
538  -target | --target | --targe | --targ | --tar | --ta | --t)
539    ac_prev=target_alias ;;
540  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541    target_alias=$ac_optarg ;;
542
543  -v | -verbose | --verbose | --verbos | --verbo | --verb)
544    verbose=yes ;;
545
546  -version | --version | --versio | --versi | --vers | -V)
547    ac_init_version=: ;;
548
549  -with-* | --with-*)
550    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid package name: $ac_package" >&2
554   { (exit 1); exit 1; }; }
555    ac_package=`echo $ac_package| sed 's/-/_/g'`
556    case $ac_option in
557      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558      *) ac_optarg=yes ;;
559    esac
560    eval "with_$ac_package='$ac_optarg'" ;;
561
562  -without-* | --without-*)
563    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid package name: $ac_package" >&2
567   { (exit 1); exit 1; }; }
568    ac_package=`echo $ac_package | sed 's/-/_/g'`
569    eval "with_$ac_package=no" ;;
570
571  --x)
572    # Obsolete; use --with-x.
573    with_x=yes ;;
574
575  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576  | --x-incl | --x-inc | --x-in | --x-i)
577    ac_prev=x_includes ;;
578  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580    x_includes=$ac_optarg ;;
581
582  -x-libraries | --x-libraries | --x-librarie | --x-librari \
583  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584    ac_prev=x_libraries ;;
585  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587    x_libraries=$ac_optarg ;;
588
589  -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591   { (exit 1); exit 1; }; }
592    ;;
593
594  *=*)
595    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596    # Reject names that are not valid shell variable names.
597    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599   { (exit 1); exit 1; }; }
600    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601    eval "$ac_envvar='$ac_optarg'"
602    export $ac_envvar ;;
603
604  *)
605    # FIXME: should be removed in autoconf 3.0.
606    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610    ;;
611
612  esac
613done
614
615if test -n "$ac_prev"; then
616  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617  { echo "$as_me: error: missing argument to $ac_option" >&2
618   { (exit 1); exit 1; }; }
619fi
620
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624  eval ac_val=$`echo $ac_var`
625  case $ac_val in
626    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628   { (exit 1); exit 1; }; };;
629  esac
630done
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634              localstatedir libdir includedir oldincludedir infodir mandir
635do
636  eval ac_val=$`echo $ac_var`
637  case $ac_val in
638    [\\/$]* | ?:[\\/]* ) ;;
639    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640   { (exit 1); exit 1; }; };;
641  esac
642done
643
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
650
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653  if test "x$build_alias" = x; then
654    cross_compiling=maybe
655    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656    If a cross compiler is detected then cross compile mode will be used." >&2
657  elif test "x$build_alias" != "x$host_alias"; then
658    cross_compiling=yes
659  fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
666
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670  ac_srcdir_defaulted=yes
671  # Try the directory containing this script, then its parent.
672  ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674         X"$0" : 'X\(//\)[^/]' \| \
675         X"$0" : 'X\(//\)$' \| \
676         X"$0" : 'X\(/\)' \| \
677         .     : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681          /^X\(\/\/\)$/{ s//\1/; q; }
682          /^X\(\/\).*/{ s//\1/; q; }
683          s/.*/./; q'`
684  srcdir=$ac_confdir
685  if test ! -r $srcdir/$ac_unique_file; then
686    srcdir=..
687  fi
688else
689  ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692  if test "$ac_srcdir_defaulted" = yes; then
693    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694   { (exit 1); exit 1; }; }
695  else
696    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697   { (exit 1); exit 1; }; }
698  fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702   { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732
733#
734# Report the --help message.
735#
736if test "$ac_init_help" = "long"; then
737  # Omit some internal or obsolete options to make the list less imposing.
738  # This message is too long to be a string in the A/UX 3.1 sh.
739  cat <<_ACEOF
740\`configure' configures this package to adapt to many kinds of systems.
741
742Usage: $0 [OPTION]... [VAR=VALUE]...
743
744To assign environment variables (e.g., CC, CFLAGS...), specify them as
745VAR=VALUE.  See below for descriptions of some of the useful variables.
746
747Defaults for the options are specified in brackets.
748
749Configuration:
750  -h, --help              display this help and exit
751      --help=short        display options specific to this package
752      --help=recursive    display the short help of all the included packages
753  -V, --version           display version information and exit
754  -q, --quiet, --silent   do not print \`checking...' messages
755      --cache-file=FILE   cache test results in FILE [disabled]
756  -C, --config-cache      alias for \`--cache-file=config.cache'
757  -n, --no-create         do not create output files
758      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
759
760_ACEOF
761
762  cat <<_ACEOF
763Installation directories:
764  --prefix=PREFIX         install architecture-independent files in PREFIX
765                          [$ac_default_prefix]
766  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
767                          [PREFIX]
768
769By default, \`make install' will install all the files in
770\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
771an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772for instance \`--prefix=\$HOME'.
773
774For better control, use the options below.
775
776Fine tuning of the installation directories:
777  --bindir=DIR           user executables [EPREFIX/bin]
778  --sbindir=DIR          system admin executables [EPREFIX/sbin]
779  --libexecdir=DIR       program executables [EPREFIX/libexec]
780  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
781  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
782  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
783  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
784  --libdir=DIR           object code libraries [EPREFIX/lib]
785  --includedir=DIR       C header files [PREFIX/include]
786  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
787  --infodir=DIR          info documentation [PREFIX/info]
788  --mandir=DIR           man documentation [PREFIX/man]
789_ACEOF
790
791  cat <<\_ACEOF
792
793Program names:
794  --program-prefix=PREFIX            prepend PREFIX to installed program names
795  --program-suffix=SUFFIX            append SUFFIX to installed program names
796  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
797
798System types:
799  --build=BUILD     configure for building on BUILD [guessed]
800  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
801_ACEOF
802fi
803
804if test -n "$ac_init_help"; then
805
806  cat <<\_ACEOF
807
808Optional Features:
809  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
810  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
811  --disable-dependency-tracking Speeds up one-time builds
812  --enable-dependency-tracking  Do not reject slow dependency extractors
813  --disable-rpath         do not hardcode runtime library paths
814
815Optional Packages:
816  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
817  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
818  --with-gnu-ld           assume the C compiler uses GNU ld default=no
819  --with-librpathx-prefix[=DIR]  search for librpathx in DIR/include and DIR/lib
820  --without-librpathx-prefix     don't search for librpathx in includedir and libdir
821  --with-librpathy-prefix[=DIR]  search for librpathy in DIR/include and DIR/lib
822  --without-librpathy-prefix     don't search for librpathy in includedir and libdir
823
824Some influential environment variables:
825  CC          C compiler command
826  CFLAGS      C compiler flags
827  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
828              nonstandard directory <lib dir>
829  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
830              headers in a nonstandard directory <include dir>
831
832Use these variables to override the choices made by `configure' or to help
833it to find libraries and programs with nonstandard names/locations.
834
835_ACEOF
836fi
837
838if test "$ac_init_help" = "recursive"; then
839  # If there are subdirs, report their specific --help.
840  ac_popdir=`pwd`
841  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
842    test -d $ac_dir || continue
843    ac_builddir=.
844
845if test "$ac_dir" != .; then
846  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
847  # A "../" for each directory in $ac_dir_suffix.
848  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
849else
850  ac_dir_suffix= ac_top_builddir=
851fi
852
853case $srcdir in
854  .)  # No --srcdir option.  We are building in place.
855    ac_srcdir=.
856    if test -z "$ac_top_builddir"; then
857       ac_top_srcdir=.
858    else
859       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
860    fi ;;
861  [\\/]* | ?:[\\/]* )  # Absolute path.
862    ac_srcdir=$srcdir$ac_dir_suffix;
863    ac_top_srcdir=$srcdir ;;
864  *) # Relative path.
865    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
866    ac_top_srcdir=$ac_top_builddir$srcdir ;;
867esac
868case "$ac_dir" in
869.) ac_abs_builddir=$ac_builddir;;
870*)
871  case $ac_builddir in
872  .) ac_abs_builddir="$ac_dir";;
873  [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
874  *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
875  esac;;
876esac
877case "$ac_dir" in
878.) ac_abs_top_builddir=${ac_top_builddir}.;;
879*)
880  case ${ac_top_builddir}. in
881  .) ac_abs_top_builddir="$ac_dir";;
882  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
883  *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
884  esac;;
885esac
886case "$ac_dir" in
887.) ac_abs_srcdir=$ac_srcdir;;
888*)
889  case $ac_srcdir in
890  .) ac_abs_srcdir="$ac_dir";;
891  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
892  *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
893  esac;;
894esac
895case "$ac_dir" in
896.) ac_abs_top_srcdir=$ac_top_srcdir;;
897*)
898  case $ac_top_srcdir in
899  .) ac_abs_top_srcdir="$ac_dir";;
900  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
901  *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
902  esac;;
903esac
904
905    cd $ac_dir
906    # Check for guested configure; otherwise get Cygnus style configure.
907    if test -f $ac_srcdir/configure.gnu; then
908      echo
909      $SHELL $ac_srcdir/configure.gnu  --help=recursive
910    elif test -f $ac_srcdir/configure; then
911      echo
912      $SHELL $ac_srcdir/configure  --help=recursive
913    elif test -f $ac_srcdir/configure.ac ||
914           test -f $ac_srcdir/configure.in; then
915      echo
916      $ac_configure --help
917    else
918      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
919    fi
920    cd $ac_popdir
921  done
922fi
923
924test -n "$ac_init_help" && exit 0
925if $ac_init_version; then
926  cat <<\_ACEOF
927
928Copyright (C) 2003 Free Software Foundation, Inc.
929This configure script is free software; the Free Software Foundation
930gives unlimited permission to copy, distribute and modify it.
931_ACEOF
932  exit 0
933fi
934exec 5>config.log
935cat >&5 <<_ACEOF
936This file contains any messages produced by compilers while
937running configure, to aid debugging if configure makes a mistake.
938
939It was created by $as_me, which was
940generated by GNU Autoconf 2.58.  Invocation command line was
941
942  $ $0 $@
943
944_ACEOF
945{
946cat <<_ASUNAME
947## --------- ##
948## Platform. ##
949## --------- ##
950
951hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
952uname -m = `(uname -m) 2>/dev/null || echo unknown`
953uname -r = `(uname -r) 2>/dev/null || echo unknown`
954uname -s = `(uname -s) 2>/dev/null || echo unknown`
955uname -v = `(uname -v) 2>/dev/null || echo unknown`
956
957/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
958/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
959
960/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
961/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
962/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
963hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
964/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
965/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
966/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
967
968_ASUNAME
969
970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
971for as_dir in $PATH
972do
973  IFS=$as_save_IFS
974  test -z "$as_dir" && as_dir=.
975  echo "PATH: $as_dir"
976done
977
978} >&5
979
980cat >&5 <<_ACEOF
981
982
983## ----------- ##
984## Core tests. ##
985## ----------- ##
986
987_ACEOF
988
989
990# Keep a trace of the command line.
991# Strip out --no-create and --no-recursion so they do not pile up.
992# Strip out --silent because we don't want to record it for future runs.
993# Also quote any args containing shell meta-characters.
994# Make two passes to allow for proper duplicate-argument suppression.
995ac_configure_args=
996ac_configure_args0=
997ac_configure_args1=
998ac_sep=
999ac_must_keep_next=false
1000for ac_pass in 1 2
1001do
1002  for ac_arg
1003  do
1004    case $ac_arg in
1005    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1006    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007    | -silent | --silent | --silen | --sile | --sil)
1008      continue ;;
1009    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1010      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1011    esac
1012    case $ac_pass in
1013    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1014    2)
1015      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1016      if test $ac_must_keep_next = true; then
1017        ac_must_keep_next=false # Got value, back to normal.
1018      else
1019        case $ac_arg in
1020          *=* | --config-cache | -C | -disable-* | --disable-* \
1021          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1022          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1023          | -with-* | --with-* | -without-* | --without-* | --x)
1024            case "$ac_configure_args0 " in
1025              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1026            esac
1027            ;;
1028          -* ) ac_must_keep_next=true ;;
1029        esac
1030      fi
1031      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1032      # Get rid of the leading space.
1033      ac_sep=" "
1034      ;;
1035    esac
1036  done
1037done
1038$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1039$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1040
1041# When interrupted or exit'd, cleanup temporary files, and complete
1042# config.log.  We remove comments because anyway the quotes in there
1043# would cause problems or look ugly.
1044# WARNING: Be sure not to use single quotes in there, as some shells,
1045# such as our DU 5.0 friend, will then `close' the trap.
1046trap 'exit_status=$?
1047  # Save into config.log some information that might help in debugging.
1048  {
1049    echo
1050
1051    cat <<\_ASBOX
1052## ---------------- ##
1053## Cache variables. ##
1054## ---------------- ##
1055_ASBOX
1056    echo
1057    # The following way of writing the cache mishandles newlines in values,
1058{
1059  (set) 2>&1 |
1060    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1061    *ac_space=\ *)
1062      sed -n \
1063        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1064          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1065      ;;
1066    *)
1067      sed -n \
1068        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1069      ;;
1070    esac;
1071}
1072    echo
1073
1074    cat <<\_ASBOX
1075## ----------------- ##
1076## Output variables. ##
1077## ----------------- ##
1078_ASBOX
1079    echo
1080    for ac_var in $ac_subst_vars
1081    do
1082      eval ac_val=$`echo $ac_var`
1083      echo "$ac_var='"'"'$ac_val'"'"'"
1084    done | sort
1085    echo
1086
1087    if test -n "$ac_subst_files"; then
1088      cat <<\_ASBOX
1089## ------------- ##
1090## Output files. ##
1091## ------------- ##
1092_ASBOX
1093      echo
1094      for ac_var in $ac_subst_files
1095      do
1096        eval ac_val=$`echo $ac_var`
1097        echo "$ac_var='"'"'$ac_val'"'"'"
1098      done | sort
1099      echo
1100    fi
1101
1102    if test -s confdefs.h; then
1103      cat <<\_ASBOX
1104## ----------- ##
1105## confdefs.h. ##
1106## ----------- ##
1107_ASBOX
1108      echo
1109      sed "/^$/d" confdefs.h | sort
1110      echo
1111    fi
1112    test "$ac_signal" != 0 &&
1113      echo "$as_me: caught signal $ac_signal"
1114    echo "$as_me: exit $exit_status"
1115  } >&5
1116  rm -f core *.core &&
1117  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1118    exit $exit_status
1119     ' 0
1120for ac_signal in 1 2 13 15; do
1121  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1122done
1123ac_signal=0
1124
1125# confdefs.h avoids OS command line length limits that DEFS can exceed.
1126rm -rf conftest* confdefs.h
1127# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1128echo >confdefs.h
1129
1130# Predefined preprocessor variables.
1131
1132cat >>confdefs.h <<_ACEOF
1133#define PACKAGE_NAME "$PACKAGE_NAME"
1134_ACEOF
1135
1136
1137cat >>confdefs.h <<_ACEOF
1138#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1139_ACEOF
1140
1141
1142cat >>confdefs.h <<_ACEOF
1143#define PACKAGE_VERSION "$PACKAGE_VERSION"
1144_ACEOF
1145
1146
1147cat >>confdefs.h <<_ACEOF
1148#define PACKAGE_STRING "$PACKAGE_STRING"
1149_ACEOF
1150
1151
1152cat >>confdefs.h <<_ACEOF
1153#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1154_ACEOF
1155
1156
1157# Let the site file select an alternate cache file if it wants to.
1158# Prefer explicitly selected file to automatically selected ones.
1159if test -z "$CONFIG_SITE"; then
1160  if test "x$prefix" != xNONE; then
1161    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1162  else
1163    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1164  fi
1165fi
1166for ac_site_file in $CONFIG_SITE; do
1167  if test -r "$ac_site_file"; then
1168    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1169echo "$as_me: loading site script $ac_site_file" >&6;}
1170    sed 's/^/| /' "$ac_site_file" >&5
1171    . "$ac_site_file"
1172  fi
1173done
1174
1175if test -r "$cache_file"; then
1176  # Some versions of bash will fail to source /dev/null (special
1177  # files actually), so we avoid doing that.
1178  if test -f "$cache_file"; then
1179    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1180echo "$as_me: loading cache $cache_file" >&6;}
1181    case $cache_file in
1182      [\\/]* | ?:[\\/]* ) . $cache_file;;
1183      *)                      . ./$cache_file;;
1184    esac
1185  fi
1186else
1187  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1188echo "$as_me: creating cache $cache_file" >&6;}
1189  >$cache_file
1190fi
1191
1192# Check that the precious variables saved in the cache have kept the same
1193# value.
1194ac_cache_corrupted=false
1195for ac_var in `(set) 2>&1 |
1196               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1197  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1198  eval ac_new_set=\$ac_env_${ac_var}_set
1199  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1200  eval ac_new_val="\$ac_env_${ac_var}_value"
1201  case $ac_old_set,$ac_new_set in
1202    set,)
1203      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1204echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1205      ac_cache_corrupted=: ;;
1206    ,set)
1207      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1208echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1209      ac_cache_corrupted=: ;;
1210    ,);;
1211    *)
1212      if test "x$ac_old_val" != "x$ac_new_val"; then
1213        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1214echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1215        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1216echo "$as_me:   former value:  $ac_old_val" >&2;}
1217        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1218echo "$as_me:   current value: $ac_new_val" >&2;}
1219        ac_cache_corrupted=:
1220      fi;;
1221  esac
1222  # Pass precious variables to config.status.
1223  if test "$ac_new_set" = set; then
1224    case $ac_new_val in
1225    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1227    *) ac_arg=$ac_var=$ac_new_val ;;
1228    esac
1229    case " $ac_configure_args " in
1230      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1231      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1232    esac
1233  fi
1234done
1235if $ac_cache_corrupted; then
1236  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1237echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1238  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1239echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1240   { (exit 1); exit 1; }; }
1241fi
1242
1243ac_ext=c
1244ac_cpp='$CPP $CPPFLAGS'
1245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1247ac_compiler_gnu=$ac_cv_c_compiler_gnu
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267ac_aux_dir=
1268for ac_dir in ../../../config $srcdir/../../../config; do
1269  if test -f $ac_dir/install-sh; then
1270    ac_aux_dir=$ac_dir
1271    ac_install_sh="$ac_aux_dir/install-sh -c"
1272    break
1273  elif test -f $ac_dir/install.sh; then
1274    ac_aux_dir=$ac_dir
1275    ac_install_sh="$ac_aux_dir/install.sh -c"
1276    break
1277  elif test -f $ac_dir/shtool; then
1278    ac_aux_dir=$ac_dir
1279    ac_install_sh="$ac_aux_dir/shtool install -c"
1280    break
1281  fi
1282done
1283if test -z "$ac_aux_dir"; then
1284  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../config $srcdir/../../../config" >&5
1285echo "$as_me: error: cannot find install-sh or install.sh in ../../../config $srcdir/../../../config" >&2;}
1286   { (exit 1); exit 1; }; }
1287fi
1288ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1289ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1290ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1291
1292am__api_version="1.7"
1293# Find a good install program.  We prefer a C program (faster),
1294# so one script is as good as another.  But avoid the broken or
1295# incompatible versions:
1296# SysV /etc/install, /usr/sbin/install
1297# SunOS /usr/etc/install
1298# IRIX /sbin/install
1299# AIX /bin/install
1300# AmigaOS /C/install, which installs bootblocks on floppy discs
1301# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1302# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1303# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1304# OS/2's system install, which has a completely different semantic
1305# ./install, which can be erroneously created by make from ./install.sh.
1306echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1307echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1308if test -z "$INSTALL"; then
1309if test "${ac_cv_path_install+set}" = set; then
1310  echo $ECHO_N "(cached) $ECHO_C" >&6
1311else
1312  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1313for as_dir in $PATH
1314do
1315  IFS=$as_save_IFS
1316  test -z "$as_dir" && as_dir=.
1317  # Account for people who put trailing slashes in PATH elements.
1318case $as_dir/ in
1319  ./ | .// | /cC/* | \
1320  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1321  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1322  /usr/ucb/* ) ;;
1323  *)
1324    # OSF1 and SCO ODT 3.0 have their own names for install.
1325    # Don't use installbsd from OSF since it installs stuff as root
1326    # by default.
1327    for ac_prog in ginstall scoinst install; do
1328      for ac_exec_ext in '' $ac_executable_extensions; do
1329        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1330          if test $ac_prog = install &&
1331            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1332            # AIX install.  It has an incompatible calling convention.
1333            :
1334          elif test $ac_prog = install &&
1335            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1336            # program-specific install script used by HP pwplus--don't use.
1337            :
1338          else
1339            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1340            break 3
1341          fi
1342        fi
1343      done
1344    done
1345    ;;
1346esac
1347done
1348
1349
1350fi
1351  if test "${ac_cv_path_install+set}" = set; then
1352    INSTALL=$ac_cv_path_install
1353  else
1354    # As a last resort, use the slow shell script.  We don't cache a
1355    # path for INSTALL within a source directory, because that will
1356    # break other packages using the cache if that directory is
1357    # removed, or if the path is relative.
1358    INSTALL=$ac_install_sh
1359  fi
1360fi
1361echo "$as_me:$LINENO: result: $INSTALL" >&5
1362echo "${ECHO_T}$INSTALL" >&6
1363
1364# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1365# It thinks the first close brace ends the variable substitution.
1366test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1367
1368test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1369
1370test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1371
1372echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1373echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1374# Just in case
1375sleep 1
1376echo timestamp > conftest.file
1377# Do `set' in a subshell so we don't clobber the current shell's
1378# arguments.  Must try -L first in case configure is actually a
1379# symlink; some systems play weird games with the mod time of symlinks
1380# (eg FreeBSD returns the mod time of the symlink's containing
1381# directory).
1382if (
1383   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1384   if test "$*" = "X"; then
1385      # -L didn't work.
1386      set X `ls -t $srcdir/configure conftest.file`
1387   fi
1388   rm -f conftest.file
1389   if test "$*" != "X $srcdir/configure conftest.file" \
1390      && test "$*" != "X conftest.file $srcdir/configure"; then
1391
1392      # If neither matched, then we have a broken ls.  This can happen
1393      # if, for instance, CONFIG_SHELL is bash and it inherits a
1394      # broken ls alias from the environment.  This has actually
1395      # happened.  Such a system could not be considered "sane".
1396      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1397alias in your environment" >&5
1398echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1399alias in your environment" >&2;}
1400   { (exit 1); exit 1; }; }
1401   fi
1402
1403   test "$2" = conftest.file
1404   )
1405then
1406   # Ok.
1407   :
1408else
1409   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1410Check your system clock" >&5
1411echo "$as_me: error: newly created file is older than distributed files!
1412Check your system clock" >&2;}
1413   { (exit 1); exit 1; }; }
1414fi
1415echo "$as_me:$LINENO: result: yes" >&5
1416echo "${ECHO_T}yes" >&6
1417test "$program_prefix" != NONE &&
1418  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1419# Use a double $ so make ignores it.
1420test "$program_suffix" != NONE &&
1421  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1422# Double any \ or $.  echo might interpret backslashes.
1423# By default was `s,x,x', remove it if useless.
1424cat <<\_ACEOF >conftest.sed
1425s/[\\$]/&&/g;s/;s,x,x,$//
1426_ACEOF
1427program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1428rm conftest.sed
1429
1430
1431# expand $ac_aux_dir to an absolute path
1432am_aux_dir=`cd $ac_aux_dir && pwd`
1433
1434test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1435# Use eval to expand $SHELL
1436if eval "$MISSING --run true"; then
1437  am_missing_run="$MISSING --run "
1438else
1439  am_missing_run=
1440  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1441echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1442fi
1443
1444for ac_prog in gawk mawk nawk awk
1445do
1446  # Extract the first word of "$ac_prog", so it can be a program name with args.
1447set dummy $ac_prog; ac_word=$2
1448echo "$as_me:$LINENO: checking for $ac_word" >&5
1449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450if test "${ac_cv_prog_AWK+set}" = set; then
1451  echo $ECHO_N "(cached) $ECHO_C" >&6
1452else
1453  if test -n "$AWK"; then
1454  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1455else
1456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457for as_dir in $PATH
1458do
1459  IFS=$as_save_IFS
1460  test -z "$as_dir" && as_dir=.
1461  for ac_exec_ext in '' $ac_executable_extensions; do
1462  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463    ac_cv_prog_AWK="$ac_prog"
1464    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465    break 2
1466  fi
1467done
1468done
1469
1470fi
1471fi
1472AWK=$ac_cv_prog_AWK
1473if test -n "$AWK"; then
1474  echo "$as_me:$LINENO: result: $AWK" >&5
1475echo "${ECHO_T}$AWK" >&6
1476else
1477  echo "$as_me:$LINENO: result: no" >&5
1478echo "${ECHO_T}no" >&6
1479fi
1480
1481  test -n "$AWK" && break
1482done
1483
1484echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1485echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1486set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1487if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1488  echo $ECHO_N "(cached) $ECHO_C" >&6
1489else
1490  cat >conftest.make <<\_ACEOF
1491all:
1492        @echo 'ac_maketemp="$(MAKE)"'
1493_ACEOF
1494# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1495eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1496if test -n "$ac_maketemp"; then
1497  eval ac_cv_prog_make_${ac_make}_set=yes
1498else
1499  eval ac_cv_prog_make_${ac_make}_set=no
1500fi
1501rm -f conftest.make
1502fi
1503if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1504  echo "$as_me:$LINENO: result: yes" >&5
1505echo "${ECHO_T}yes" >&6
1506  SET_MAKE=
1507else
1508  echo "$as_me:$LINENO: result: no" >&5
1509echo "${ECHO_T}no" >&6
1510  SET_MAKE="MAKE=${MAKE-make}"
1511fi
1512
1513rm -rf .tst 2>/dev/null
1514mkdir .tst 2>/dev/null
1515if test -d .tst; then
1516  am__leading_dot=.
1517else
1518  am__leading_dot=_
1519fi
1520rmdir .tst 2>/dev/null
1521
1522 # test to see if srcdir already configured
1523if test "`cd $srcdir && pwd`" != "`pwd`" &&
1524   test -f $srcdir/config.status; then
1525  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1526echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1527   { (exit 1); exit 1; }; }
1528fi
1529
1530# test whether we have cygpath
1531if test -z "$CYGPATH_W"; then
1532  if (cygpath --version) >/dev/null 2>/dev/null; then
1533    CYGPATH_W='cygpath -w'
1534  else
1535    CYGPATH_W=echo
1536  fi
1537fi
1538
1539
1540# Define the identity of the package.
1541 PACKAGE=gettext_rpathlyx
1542 VERSION=0
1543
1544
1545cat >>confdefs.h <<_ACEOF
1546#define PACKAGE "$PACKAGE"
1547_ACEOF
1548
1549
1550cat >>confdefs.h <<_ACEOF
1551#define VERSION "$VERSION"
1552_ACEOF
1553
1554# Some tools Automake needs.
1555
1556ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1557
1558
1559AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1560
1561
1562AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1563
1564
1565AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1566
1567
1568MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1569
1570
1571AMTAR=${AMTAR-"${am_missing_run}tar"}
1572
1573install_sh=${install_sh-"$am_aux_dir/install-sh"}
1574
1575# Installed binaries are usually stripped using `strip' when the user
1576# run `make install-strip'.  However `strip' might not be the right
1577# tool to use in cross-compilation environments, therefore Automake
1578# will honor the `STRIP' environment variable to overrule this program.
1579if test "$cross_compiling" != no; then
1580  if test -n "$ac_tool_prefix"; then
1581  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1582set dummy ${ac_tool_prefix}strip; ac_word=$2
1583echo "$as_me:$LINENO: checking for $ac_word" >&5
1584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585if test "${ac_cv_prog_STRIP+set}" = set; then
1586  echo $ECHO_N "(cached) $ECHO_C" >&6
1587else
1588  if test -n "$STRIP"; then
1589  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1590else
1591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592for as_dir in $PATH
1593do
1594  IFS=$as_save_IFS
1595  test -z "$as_dir" && as_dir=.
1596  for ac_exec_ext in '' $ac_executable_extensions; do
1597  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1599    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600    break 2
1601  fi
1602done
1603done
1604
1605fi
1606fi
1607STRIP=$ac_cv_prog_STRIP
1608if test -n "$STRIP"; then
1609  echo "$as_me:$LINENO: result: $STRIP" >&5
1610echo "${ECHO_T}$STRIP" >&6
1611else
1612  echo "$as_me:$LINENO: result: no" >&5
1613echo "${ECHO_T}no" >&6
1614fi
1615
1616fi
1617if test -z "$ac_cv_prog_STRIP"; then
1618  ac_ct_STRIP=$STRIP
1619  # Extract the first word of "strip", so it can be a program name with args.
1620set dummy strip; ac_word=$2
1621echo "$as_me:$LINENO: checking for $ac_word" >&5
1622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1624  echo $ECHO_N "(cached) $ECHO_C" >&6
1625else
1626  if test -n "$ac_ct_STRIP"; then
1627  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1628else
1629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630for as_dir in $PATH
1631do
1632  IFS=$as_save_IFS
1633  test -z "$as_dir" && as_dir=.
1634  for ac_exec_ext in '' $ac_executable_extensions; do
1635  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636    ac_cv_prog_ac_ct_STRIP="strip"
1637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638    break 2
1639  fi
1640done
1641done
1642
1643  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1644fi
1645fi
1646ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1647if test -n "$ac_ct_STRIP"; then
1648  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1649echo "${ECHO_T}$ac_ct_STRIP" >&6
1650else
1651  echo "$as_me:$LINENO: result: no" >&5
1652echo "${ECHO_T}no" >&6
1653fi
1654
1655  STRIP=$ac_ct_STRIP
1656else
1657  STRIP="$ac_cv_prog_STRIP"
1658fi
1659
1660fi
1661INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1662
1663# We need awk for the "check" target.  The system "awk" is bad on
1664# some platforms.
1665
1666
1667
1668ac_ext=c
1669ac_cpp='$CPP $CPPFLAGS'
1670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1672ac_compiler_gnu=$ac_cv_c_compiler_gnu
1673if test -n "$ac_tool_prefix"; then
1674  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1675set dummy ${ac_tool_prefix}gcc; ac_word=$2
1676echo "$as_me:$LINENO: checking for $ac_word" >&5
1677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678if test "${ac_cv_prog_CC+set}" = set; then
1679  echo $ECHO_N "(cached) $ECHO_C" >&6
1680else
1681  if test -n "$CC"; then
1682  ac_cv_prog_CC="$CC" # Let the user override the test.
1683else
1684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685for as_dir in $PATH
1686do
1687  IFS=$as_save_IFS
1688  test -z "$as_dir" && as_dir=.
1689  for ac_exec_ext in '' $ac_executable_extensions; do
1690  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693    break 2
1694  fi
1695done
1696done
1697
1698fi
1699fi
1700CC=$ac_cv_prog_CC
1701if test -n "$CC"; then
1702  echo "$as_me:$LINENO: result: $CC" >&5
1703echo "${ECHO_T}$CC" >&6
1704else
1705  echo "$as_me:$LINENO: result: no" >&5
1706echo "${ECHO_T}no" >&6
1707fi
1708
1709fi
1710if test -z "$ac_cv_prog_CC"; then
1711  ac_ct_CC=$CC
1712  # Extract the first word of "gcc", so it can be a program name with args.
1713set dummy gcc; ac_word=$2
1714echo "$as_me:$LINENO: checking for $ac_word" >&5
1715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1717  echo $ECHO_N "(cached) $ECHO_C" >&6
1718else
1719  if test -n "$ac_ct_CC"; then
1720  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1721else
1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723for as_dir in $PATH
1724do
1725  IFS=$as_save_IFS
1726  test -z "$as_dir" && as_dir=.
1727  for ac_exec_ext in '' $ac_executable_extensions; do
1728  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729    ac_cv_prog_ac_ct_CC="gcc"
1730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731    break 2
1732  fi
1733done
1734done
1735
1736fi
1737fi
1738ac_ct_CC=$ac_cv_prog_ac_ct_CC
1739if test -n "$ac_ct_CC"; then
1740  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1741echo "${ECHO_T}$ac_ct_CC" >&6
1742else
1743  echo "$as_me:$LINENO: result: no" >&5
1744echo "${ECHO_T}no" >&6
1745fi
1746
1747  CC=$ac_ct_CC
1748else
1749  CC="$ac_cv_prog_CC"
1750fi
1751
1752if test -z "$CC"; then
1753  if test -n "$ac_tool_prefix"; then
1754  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1755set dummy ${ac_tool_prefix}cc; ac_word=$2
1756echo "$as_me:$LINENO: checking for $ac_word" >&5
1757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758if test "${ac_cv_prog_CC+set}" = set; then
1759  echo $ECHO_N "(cached) $ECHO_C" >&6
1760else
1761  if test -n "$CC"; then
1762  ac_cv_prog_CC="$CC" # Let the user override the test.
1763else
1764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765for as_dir in $PATH
1766do
1767  IFS=$as_save_IFS
1768  test -z "$as_dir" && as_dir=.
1769  for ac_exec_ext in '' $ac_executable_extensions; do
1770  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771    ac_cv_prog_CC="${ac_tool_prefix}cc"
1772    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773    break 2
1774  fi
1775done
1776done
1777
1778fi
1779fi
1780CC=$ac_cv_prog_CC
1781if test -n "$CC"; then
1782  echo "$as_me:$LINENO: result: $CC" >&5
1783echo "${ECHO_T}$CC" >&6
1784else
1785  echo "$as_me:$LINENO: result: no" >&5
1786echo "${ECHO_T}no" >&6
1787fi
1788
1789fi
1790if test -z "$ac_cv_prog_CC"; then
1791  ac_ct_CC=$CC
1792  # Extract the first word of "cc", so it can be a program name with args.
1793set dummy cc; ac_word=$2
1794echo "$as_me:$LINENO: checking for $ac_word" >&5
1795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1797  echo $ECHO_N "(cached) $ECHO_C" >&6
1798else
1799  if test -n "$ac_ct_CC"; then
1800  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1801else
1802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803for as_dir in $PATH
1804do
1805  IFS=$as_save_IFS
1806  test -z "$as_dir" && as_dir=.
1807  for ac_exec_ext in '' $ac_executable_extensions; do
1808  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809    ac_cv_prog_ac_ct_CC="cc"
1810    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811    break 2
1812  fi
1813done
1814done
1815
1816fi
1817fi
1818ac_ct_CC=$ac_cv_prog_ac_ct_CC
1819if test -n "$ac_ct_CC"; then
1820  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1821echo "${ECHO_T}$ac_ct_CC" >&6
1822else
1823  echo "$as_me:$LINENO: result: no" >&5
1824echo "${ECHO_T}no" >&6
1825fi
1826
1827  CC=$ac_ct_CC
1828else
1829  CC="$ac_cv_prog_CC"
1830fi
1831
1832fi
1833if test -z "$CC"; then
1834  # Extract the first word of "cc", so it can be a program name with args.
1835set dummy cc; ac_word=$2
1836echo "$as_me:$LINENO: checking for $ac_word" >&5
1837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838if test "${ac_cv_prog_CC+set}" = set; then
1839  echo $ECHO_N "(cached) $ECHO_C" >&6
1840else
1841  if test -n "$CC"; then
1842  ac_cv_prog_CC="$CC" # Let the user override the test.
1843else
1844  ac_prog_rejected=no
1845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846for as_dir in $PATH
1847do
1848  IFS=$as_save_IFS
1849  test -z "$as_dir" && as_dir=.
1850  for ac_exec_ext in '' $ac_executable_extensions; do
1851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1853       ac_prog_rejected=yes
1854       continue
1855     fi
1856    ac_cv_prog_CC="cc"
1857    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858    break 2
1859  fi
1860done
1861done
1862
1863if test $ac_prog_rejected = yes; then
1864  # We found a bogon in the path, so make sure we never use it.
1865  set dummy $ac_cv_prog_CC
1866  shift
1867  if test $# != 0; then
1868    # We chose a different compiler from the bogus one.
1869    # However, it has the same basename, so the bogon will be chosen
1870    # first if we set CC to just the basename; use the full file name.
1871    shift
1872    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1873  fi
1874fi
1875fi
1876fi
1877CC=$ac_cv_prog_CC
1878if test -n "$CC"; then
1879  echo "$as_me:$LINENO: result: $CC" >&5
1880echo "${ECHO_T}$CC" >&6
1881else
1882  echo "$as_me:$LINENO: result: no" >&5
1883echo "${ECHO_T}no" >&6
1884fi
1885
1886fi
1887if test -z "$CC"; then
1888  if test -n "$ac_tool_prefix"; then
1889  for ac_prog in cl
1890  do
1891    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1892set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1893echo "$as_me:$LINENO: checking for $ac_word" >&5
1894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895if test "${ac_cv_prog_CC+set}" = set; then
1896  echo $ECHO_N "(cached) $ECHO_C" >&6
1897else
1898  if test -n "$CC"; then
1899  ac_cv_prog_CC="$CC" # Let the user override the test.
1900else
1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902for as_dir in $PATH
1903do
1904  IFS=$as_save_IFS
1905  test -z "$as_dir" && as_dir=.
1906  for ac_exec_ext in '' $ac_executable_extensions; do
1907  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1909    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910    break 2
1911  fi
1912done
1913done
1914
1915fi
1916fi
1917CC=$ac_cv_prog_CC
1918if test -n "$CC"; then
1919  echo "$as_me:$LINENO: result: $CC" >&5
1920echo "${ECHO_T}$CC" >&6
1921else
1922  echo "$as_me:$LINENO: result: no" >&5
1923echo "${ECHO_T}no" >&6
1924fi
1925
1926    test -n "$CC" && break
1927  done
1928fi
1929if test -z "$CC"; then
1930  ac_ct_CC=$CC
1931  for ac_prog in cl
1932do
1933  # Extract the first word of "$ac_prog", so it can be a program name with args.
1934set dummy $ac_prog; ac_word=$2
1935echo "$as_me:$LINENO: checking for $ac_word" >&5
1936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1938  echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940  if test -n "$ac_ct_CC"; then
1941  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1942else
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946  IFS=$as_save_IFS
1947  test -z "$as_dir" && as_dir=.
1948  for ac_exec_ext in '' $ac_executable_extensions; do
1949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950    ac_cv_prog_ac_ct_CC="$ac_prog"
1951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952    break 2
1953  fi
1954done
1955done
1956
1957fi
1958fi
1959ac_ct_CC=$ac_cv_prog_ac_ct_CC
1960if test -n "$ac_ct_CC"; then
1961  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1962echo "${ECHO_T}$ac_ct_CC" >&6
1963else
1964  echo "$as_me:$LINENO: result: no" >&5
1965echo "${ECHO_T}no" >&6
1966fi
1967
1968  test -n "$ac_ct_CC" && break
1969done
1970
1971  CC=$ac_ct_CC
1972fi
1973
1974fi
1975
1976
1977test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1978See \`config.log' for more details." >&5
1979echo "$as_me: error: no acceptable C compiler found in \$PATH
1980See \`config.log' for more details." >&2;}
1981   { (exit 1); exit 1; }; }
1982
1983# Provide some information about the compiler.
1984echo "$as_me:$LINENO:" \
1985     "checking for C compiler version" >&5
1986ac_compiler=`set X $ac_compile; echo $2`
1987{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1988  (eval $ac_compiler --version </dev/null >&5) 2>&5
1989  ac_status=$?
1990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991  (exit $ac_status); }
1992{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1993  (eval $ac_compiler -v </dev/null >&5) 2>&5
1994  ac_status=$?
1995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996  (exit $ac_status); }
1997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1998  (eval $ac_compiler -V </dev/null >&5) 2>&5
1999  ac_status=$?
2000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001  (exit $ac_status); }
2002
2003cat >conftest.$ac_ext <<_ACEOF
2004/* confdefs.h.  */
2005_ACEOF
2006cat confdefs.h >>conftest.$ac_ext
2007cat >>conftest.$ac_ext <<_ACEOF
2008/* end confdefs.h.  */
2009
2010int
2011main ()
2012{
2013
2014  ;
2015  return 0;
2016}
2017_ACEOF
2018ac_clean_files_save=$ac_clean_files
2019ac_clean_files="$ac_clean_files a.out a.exe b.out"
2020# Try to create an executable without -o first, disregard a.out.
2021# It will help us diagnose broken compilers, and finding out an intuition
2022# of exeext.
2023echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2024echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2025ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2026if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2027  (eval $ac_link_default) 2>&5
2028  ac_status=$?
2029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030  (exit $ac_status); }; then
2031  # Find the output, starting from the most likely.  This scheme is
2032# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2033# resort.
2034
2035# Be careful to initialize this variable, since it used to be cached.
2036# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2037ac_cv_exeext=
2038# b.out is created by i960 compilers.
2039for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2040do
2041  test -f "$ac_file" || continue
2042  case $ac_file in
2043    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2044        ;;
2045    conftest.$ac_ext )
2046        # This is the source file.
2047        ;;
2048    [ab].out )
2049        # We found the default executable, but exeext='' is most
2050        # certainly right.
2051        break;;
2052    *.* )
2053        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2054        # FIXME: I believe we export ac_cv_exeext for Libtool,
2055        # but it would be cool to find out if it's true.  Does anybody
2056        # maintain Libtool? --akim.
2057        export ac_cv_exeext
2058        break;;
2059    * )
2060        break;;
2061  esac
2062done
2063else
2064  echo "$as_me: failed program was:" >&5
2065sed 's/^/| /' conftest.$ac_ext >&5
2066
2067{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2068See \`config.log' for more details." >&5
2069echo "$as_me: error: C compiler cannot create executables
2070See \`config.log' for more details." >&2;}
2071   { (exit 77); exit 77; }; }
2072fi
2073
2074ac_exeext=$ac_cv_exeext
2075echo "$as_me:$LINENO: result: $ac_file" >&5
2076echo "${ECHO_T}$ac_file" >&6
2077
2078# Check the compiler produces executables we can run.  If not, either
2079# the compiler is broken, or we cross compile.
2080echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2081echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2082# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2083# If not cross compiling, check that we can run a simple program.
2084if test "$cross_compiling" != yes; then
2085  if { ac_try='./$ac_file'
2086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087  (eval $ac_try) 2>&5
2088  ac_status=$?
2089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090  (exit $ac_status); }; }; then
2091    cross_compiling=no
2092  else
2093    if test "$cross_compiling" = maybe; then
2094        cross_compiling=yes
2095    else
2096        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2097If you meant to cross compile, use \`--host'.
2098See \`config.log' for more details." >&5
2099echo "$as_me: error: cannot run C compiled programs.
2100If you meant to cross compile, use \`--host'.
2101See \`config.log' for more details." >&2;}
2102   { (exit 1); exit 1; }; }
2103    fi
2104  fi
2105fi
2106echo "$as_me:$LINENO: result: yes" >&5
2107echo "${ECHO_T}yes" >&6
2108
2109rm -f a.out a.exe conftest$ac_cv_exeext b.out
2110ac_clean_files=$ac_clean_files_save
2111# Check the compiler produces executables we can run.  If not, either
2112# the compiler is broken, or we cross compile.
2113echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2114echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2115echo "$as_me:$LINENO: result: $cross_compiling" >&5
2116echo "${ECHO_T}$cross_compiling" >&6
2117
2118echo "$as_me:$LINENO: checking for suffix of executables" >&5
2119echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2121  (eval $ac_link) 2>&5
2122  ac_status=$?
2123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124  (exit $ac_status); }; then
2125  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2126# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2127# work properly (i.e., refer to `conftest.exe'), while it won't with
2128# `rm'.
2129for ac_file in conftest.exe conftest conftest.*; do
2130  test -f "$ac_file" || continue
2131  case $ac_file in
2132    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2133    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2134          export ac_cv_exeext
2135          break;;
2136    * ) break;;
2137  esac
2138done
2139else
2140  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2141See \`config.log' for more details." >&5
2142echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2143See \`config.log' for more details." >&2;}
2144   { (exit 1); exit 1; }; }
2145fi
2146
2147rm -f conftest$ac_cv_exeext
2148echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2149echo "${ECHO_T}$ac_cv_exeext" >&6
2150
2151rm -f conftest.$ac_ext
2152EXEEXT=$ac_cv_exeext
2153ac_exeext=$EXEEXT
2154echo "$as_me:$LINENO: checking for suffix of object files" >&5
2155echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2156if test "${ac_cv_objext+set}" = set; then
2157  echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159  cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h.  */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h.  */
2165
2166int
2167main ()
2168{
2169
2170  ;
2171  return 0;
2172}
2173_ACEOF
2174rm -f conftest.o conftest.obj
2175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176  (eval $ac_compile) 2>&5
2177  ac_status=$?
2178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179  (exit $ac_status); }; then
2180  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2181  case $ac_file in
2182    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2183    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2184       break;;
2185  esac
2186done
2187else
2188  echo "$as_me: failed program was:" >&5
2189sed 's/^/| /' conftest.$ac_ext >&5
2190
2191{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2192See \`config.log' for more details." >&5
2193echo "$as_me: error: cannot compute suffix of object files: cannot compile
2194See \`config.log' for more details." >&2;}
2195   { (exit 1); exit 1; }; }
2196fi
2197
2198rm -f conftest.$ac_cv_objext conftest.$ac_ext
2199fi
2200echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2201echo "${ECHO_T}$ac_cv_objext" >&6
2202OBJEXT=$ac_cv_objext
2203ac_objext=$OBJEXT
2204echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2205echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2206if test "${ac_cv_c_compiler_gnu+set}" = set; then
2207  echo $ECHO_N "(cached) $ECHO_C" >&6
2208else
2209  cat >conftest.$ac_ext <<_ACEOF
2210/* confdefs.h.  */
2211_ACEOF
2212cat confdefs.h >>conftest.$ac_ext
2213cat >>conftest.$ac_ext <<_ACEOF
2214/* end confdefs.h.  */
2215
2216int
2217main ()
2218{
2219#ifndef __GNUC__
2220       choke me
2221#endif
2222
2223  ;
2224  return 0;
2225}
2226_ACEOF
2227rm -f conftest.$ac_objext
2228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229  (eval $ac_compile) 2>conftest.er1
2230  ac_status=$?
2231  grep -v '^ *+' conftest.er1 >conftest.err
2232  rm -f conftest.er1
2233  cat conftest.err >&5
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); } &&
2236         { ac_try='test -z "$ac_c_werror_flag"
2237                         || test ! -s conftest.err'
2238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239  (eval $ac_try) 2>&5
2240  ac_status=$?
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); }; } &&
2243         { ac_try='test -s conftest.$ac_objext'
2244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245  (eval $ac_try) 2>&5
2246  ac_status=$?
2247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248  (exit $ac_status); }; }; then
2249  ac_compiler_gnu=yes
2250else
2251  echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254ac_compiler_gnu=no
2255fi
2256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257ac_cv_c_compiler_gnu=$ac_compiler_gnu
2258
2259fi
2260echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2261echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2262GCC=`test $ac_compiler_gnu = yes && echo yes`
2263ac_test_CFLAGS=${CFLAGS+set}
2264ac_save_CFLAGS=$CFLAGS
2265CFLAGS="-g"
2266echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2267echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2268if test "${ac_cv_prog_cc_g+set}" = set; then
2269  echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
2271  cat >conftest.$ac_ext <<_ACEOF
2272/* confdefs.h.  */
2273_ACEOF
2274cat confdefs.h >>conftest.$ac_ext
2275cat >>conftest.$ac_ext <<_ACEOF
2276/* end confdefs.h.  */
2277
2278int
2279main ()
2280{
2281
2282  ;
2283  return 0;
2284}
2285_ACEOF
2286rm -f conftest.$ac_objext
2287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288  (eval $ac_compile) 2>conftest.er1
2289  ac_status=$?
2290  grep -v '^ *+' conftest.er1 >conftest.err
2291  rm -f conftest.er1
2292  cat conftest.err >&5
2293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294  (exit $ac_status); } &&
2295         { ac_try='test -z "$ac_c_werror_flag"
2296                         || test ! -s conftest.err'
2297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298  (eval $ac_try) 2>&5
2299  ac_status=$?
2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301  (exit $ac_status); }; } &&
2302         { ac_try='test -s conftest.$ac_objext'
2303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304  (eval $ac_try) 2>&5
2305  ac_status=$?
2306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307  (exit $ac_status); }; }; then
2308  ac_cv_prog_cc_g=yes
2309else
2310  echo "$as_me: failed program was:" >&5
2311sed 's/^/| /' conftest.$ac_ext >&5
2312
2313ac_cv_prog_cc_g=no
2314fi
2315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2316fi
2317echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2318echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2319if test "$ac_test_CFLAGS" = set; then
2320  CFLAGS=$ac_save_CFLAGS
2321elif test $ac_cv_prog_cc_g = yes; then
2322  if test "$GCC" = yes; then
2323    CFLAGS="-g -O2"
2324  else
2325    CFLAGS="-g"
2326  fi
2327else
2328  if test "$GCC" = yes; then
2329    CFLAGS="-O2"
2330  else
2331    CFLAGS=
2332  fi
2333fi
2334echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2335echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2336if test "${ac_cv_prog_cc_stdc+set}" = set; then
2337  echo $ECHO_N "(cached) $ECHO_C" >&6
2338else
2339  ac_cv_prog_cc_stdc=no
2340ac_save_CC=$CC
2341cat >conftest.$ac_ext <<_ACEOF
2342/* confdefs.h.  */
2343_ACEOF
2344cat confdefs.h >>conftest.$ac_ext
2345cat >>conftest.$ac_ext <<_ACEOF
2346/* end confdefs.h.  */
2347#include <stdarg.h>
2348#include <stdio.h>
2349#include <sys/types.h>
2350#include <sys/stat.h>
2351/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2352struct buf { int x; };
2353FILE * (*rcsopen) (struct buf *, struct stat *, int);
2354static char *e (p, i)
2355     char **p;
2356     int i;
2357{
2358  return p[i];
2359}
2360static char *f (char * (*g) (char **, int), char **p, ...)
2361{
2362  char *s;
2363  va_list v;
2364  va_start (v,p);
2365  s = g (p, va_arg (v,int));
2366  va_end (v);
2367  return s;
2368}
2369
2370/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2371   function prototypes and stuff, but not '\xHH' hex character constants.
2372   These don't provoke an error unfortunately, instead are silently treated
2373   as 'x'.  The following induces an error, until -std1 is added to get
2374   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2375   array size at least.  It's necessary to write '\x00'==0 to get something
2376   that's true only with -std1.  */
2377int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2378
2379int test (int i, double x);
2380struct s1 {int (*f) (int a);};
2381struct s2 {int (*f) (double a);};
2382int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2383int argc;
2384char **argv;
2385int
2386main ()
2387{
2388return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2389  ;
2390  return 0;
2391}
2392_ACEOF
2393# Don't try gcc -ansi; that turns off useful extensions and
2394# breaks some systems' header files.
2395# AIX                   -qlanglvl=ansi
2396# Ultrix and OSF/1      -std1
2397# HP-UX 10.20 and later -Ae
2398# HP-UX older versions  -Aa -D_HPUX_SOURCE
2399# SVR4                  -Xc -D__EXTENSIONS__
2400for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2401do
2402  CC="$ac_save_CC $ac_arg"
2403  rm -f conftest.$ac_objext
2404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405  (eval $ac_compile) 2>conftest.er1
2406  ac_status=$?
2407  grep -v '^ *+' conftest.er1 >conftest.err
2408  rm -f conftest.er1
2409  cat conftest.err >&5
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); } &&
2412         { ac_try='test -z "$ac_c_werror_flag"
2413                         || test ! -s conftest.err'
2414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415  (eval $ac_try) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); }; } &&
2419         { ac_try='test -s conftest.$ac_objext'
2420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421  (eval $ac_try) 2>&5
2422  ac_status=$?
2423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424  (exit $ac_status); }; }; then
2425  ac_cv_prog_cc_stdc=$ac_arg
2426break
2427else
2428  echo "$as_me: failed program was:" >&5
2429sed 's/^/| /' conftest.$ac_ext >&5
2430
2431fi
2432rm -f conftest.err conftest.$ac_objext
2433done
2434rm -f conftest.$ac_ext conftest.$ac_objext
2435CC=$ac_save_CC
2436
2437fi
2438
2439case "x$ac_cv_prog_cc_stdc" in
2440  x|xno)
2441    echo "$as_me:$LINENO: result: none needed" >&5
2442echo "${ECHO_T}none needed" >&6 ;;
2443  *)
2444    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2445echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2446    CC="$CC $ac_cv_prog_cc_stdc" ;;
2447esac
2448
2449# Some people use a C++ compiler to compile C.  Since we use `exit',
2450# in C++ we need to declare it.  In case someone uses the same compiler
2451# for both compiling C and C++ we need to have the C++ compiler decide
2452# the declaration of exit, since it's the most demanding environment.
2453cat >conftest.$ac_ext <<_ACEOF
2454#ifndef __cplusplus
2455  choke me
2456#endif
2457_ACEOF
2458rm -f conftest.$ac_objext
2459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460  (eval $ac_compile) 2>conftest.er1
2461  ac_status=$?
2462  grep -v '^ *+' conftest.er1 >conftest.err
2463  rm -f conftest.er1
2464  cat conftest.err >&5
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); } &&
2467         { ac_try='test -z "$ac_c_werror_flag"
2468                         || test ! -s conftest.err'
2469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470  (eval $ac_try) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; } &&
2474         { ac_try='test -s conftest.$ac_objext'
2475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476  (eval $ac_try) 2>&5
2477  ac_status=$?
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); }; }; then
2480  for ac_declaration in \
2481   '' \
2482   'extern "C" void std::exit (int) throw (); using std::exit;' \
2483   'extern "C" void std::exit (int); using std::exit;' \
2484   'extern "C" void exit (int) throw ();' \
2485   'extern "C" void exit (int);' \
2486   'void exit (int);'
2487do
2488  cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h.  */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h.  */
2494$ac_declaration
2495#include <stdlib.h>
2496int
2497main ()
2498{
2499exit (42);
2500  ;
2501  return 0;
2502}
2503_ACEOF
2504rm -f conftest.$ac_objext
2505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2506  (eval $ac_compile) 2>conftest.er1
2507  ac_status=$?
2508  grep -v '^ *+' conftest.er1 >conftest.err
2509  rm -f conftest.er1
2510  cat conftest.err >&5
2511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512  (exit $ac_status); } &&
2513         { ac_try='test -z "$ac_c_werror_flag"
2514                         || test ! -s conftest.err'
2515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516  (eval $ac_try) 2>&5
2517  ac_status=$?
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); }; } &&
2520         { ac_try='test -s conftest.$ac_objext'
2521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522  (eval $ac_try) 2>&5
2523  ac_status=$?
2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525  (exit $ac_status); }; }; then
2526  :
2527else
2528  echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531continue
2532fi
2533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2534  cat >conftest.$ac_ext <<_ACEOF
2535/* confdefs.h.  */
2536_ACEOF
2537cat confdefs.h >>conftest.$ac_ext
2538cat >>conftest.$ac_ext <<_ACEOF
2539/* end confdefs.h.  */
2540$ac_declaration
2541int
2542main ()
2543{
2544exit (42);
2545  ;
2546  return 0;
2547}
2548_ACEOF
2549rm -f conftest.$ac_objext
2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551  (eval $ac_compile) 2>conftest.er1
2552  ac_status=$?
2553  grep -v '^ *+' conftest.er1 >conftest.err
2554  rm -f conftest.er1
2555  cat conftest.err >&5
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); } &&
2558         { ac_try='test -z "$ac_c_werror_flag"
2559                         || test ! -s conftest.err'
2560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561  (eval $ac_try) 2>&5
2562  ac_status=$?
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); }; } &&
2565         { ac_try='test -s conftest.$ac_objext'
2566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567  (eval $ac_try) 2>&5
2568  ac_status=$?
2569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570  (exit $ac_status); }; }; then
2571  break
2572else
2573  echo "$as_me: failed program was:" >&5
2574sed 's/^/| /' conftest.$ac_ext >&5
2575
2576fi
2577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578done
2579rm -f conftest*
2580if test -n "$ac_declaration"; then
2581  echo '#ifdef __cplusplus' >>confdefs.h
2582  echo $ac_declaration      >>confdefs.h
2583  echo '#endif'             >>confdefs.h
2584fi
2585
2586else
2587  echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590fi
2591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2592ac_ext=c
2593ac_cpp='$CPP $CPPFLAGS'
2594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597DEPDIR="${am__leading_dot}deps"
2598
2599          ac_config_commands="$ac_config_commands depfiles"
2600
2601
2602am_make=${MAKE-make}
2603cat > confinc << 'END'
2604am__doit:
2605        @echo done
2606.PHONY: am__doit
2607END
2608# If we don't find an include directive, just comment out the code.
2609echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2610echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2611am__include="#"
2612am__quote=
2613_am_result=none
2614# First try GNU make style include.
2615echo "include confinc" > confmf
2616# We grep out `Entering directory' and `Leaving directory'
2617# messages which can occur if `w' ends up in MAKEFLAGS.
2618# In particular we don't look at `^make:' because GNU make might
2619# be invoked under some other name (usually "gmake"), in which
2620# case it prints its new name instead of `make'.
2621if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2622   am__include=include
2623   am__quote=
2624   _am_result=GNU
2625fi
2626# Now try BSD make style include.
2627if test "$am__include" = "#"; then
2628   echo '.include "confinc"' > confmf
2629   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2630      am__include=.include
2631      am__quote="\""
2632      _am_result=BSD
2633   fi
2634fi
2635
2636
2637echo "$as_me:$LINENO: result: $_am_result" >&5
2638echo "${ECHO_T}$_am_result" >&6
2639rm -f confinc confmf
2640
2641# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2642if test "${enable_dependency_tracking+set}" = set; then
2643  enableval="$enable_dependency_tracking"
2644
2645fi;
2646if test "x$enable_dependency_tracking" != xno; then
2647  am_depcomp="$ac_aux_dir/depcomp"
2648  AMDEPBACKSLASH='\'
2649fi
2650
2651
2652if test "x$enable_dependency_tracking" != xno; then
2653  AMDEP_TRUE=
2654  AMDEP_FALSE='#'
2655else
2656  AMDEP_TRUE='#'
2657  AMDEP_FALSE=
2658fi
2659
2660
2661
2662
2663depcc="$CC"   am_compiler_list=
2664
2665echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2666echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2667if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2668  echo $ECHO_N "(cached) $ECHO_C" >&6
2669else
2670  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2671  # We make a subdir and do the tests there.  Otherwise we can end up
2672  # making bogus files that we don't know about and never remove.  For
2673  # instance it was reported that on HP-UX the gcc test will end up
2674  # making a dummy file named `D' -- because `-MD' means `put the output
2675  # in D'.
2676  mkdir conftest.dir
2677  # Copy depcomp to subdir because otherwise we won't find it if we're
2678  # using a relative directory.
2679  cp "$am_depcomp" conftest.dir
2680  cd conftest.dir
2681  # We will build objects and dependencies in a subdirectory because
2682  # it helps to detect inapplicable dependency modes.  For instance
2683  # both Tru64's cc and ICC support -MD to output dependencies as a
2684  # side effect of compilation, but ICC will put the dependencies in
2685  # the current directory while Tru64 will put them in the object
2686  # directory.
2687  mkdir sub
2688
2689  am_cv_CC_dependencies_compiler_type=none
2690  if test "$am_compiler_list" = ""; then
2691     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2692  fi
2693  for depmode in $am_compiler_list; do
2694    # Setup a source with many dependencies, because some compilers
2695    # like to wrap large dependency lists on column 80 (with \), and
2696    # we should not choose a depcomp mode which is confused by this.
2697    #
2698    # We need to recreate these files for each test, as the compiler may
2699    # overwrite some of them when testing with obscure command lines.
2700    # This happens at least with the AIX C compiler.
2701    : > sub/conftest.c
2702    for i in 1 2 3 4 5 6; do
2703      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2704      : > sub/conftst$i.h
2705    done
2706    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2707
2708    case $depmode in
2709    nosideeffect)
2710      # after this tag, mechanisms are not by side-effect, so they'll
2711      # only be used when explicitly requested
2712      if test "x$enable_dependency_tracking" = xyes; then
2713        continue
2714      else
2715        break
2716      fi
2717      ;;
2718    none) break ;;
2719    esac
2720    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2721    # mode.  It turns out that the SunPro C++ compiler does not properly
2722    # handle `-M -o', and we need to detect this.
2723    if depmode=$depmode \
2724       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2725       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2726       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2727         >/dev/null 2>conftest.err &&
2728       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2729       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2730       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2731      # icc doesn't choke on unknown options, it will just issue warnings
2732      # (even with -Werror).  So we grep stderr for any message
2733      # that says an option was ignored.
2734      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2735        am_cv_CC_dependencies_compiler_type=$depmode
2736        break
2737      fi
2738    fi
2739  done
2740
2741  cd ..
2742  rm -rf conftest.dir
2743else
2744  am_cv_CC_dependencies_compiler_type=none
2745fi
2746
2747fi
2748echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2749echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2750CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2751
2752
2753
2754if
2755  test "x$enable_dependency_tracking" != xno \
2756  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2757  am__fastdepCC_TRUE=
2758  am__fastdepCC_FALSE='#'
2759else
2760  am__fastdepCC_TRUE='#'
2761  am__fastdepCC_FALSE=
2762fi
2763
2764
2765
2766      if test "X$prefix" = "XNONE"; then
2767    acl_final_prefix="$ac_default_prefix"
2768  else
2769    acl_final_prefix="$prefix"
2770  fi
2771  if test "X$exec_prefix" = "XNONE"; then
2772    acl_final_exec_prefix='${prefix}'
2773  else
2774    acl_final_exec_prefix="$exec_prefix"
2775  fi
2776  acl_save_prefix="$prefix"
2777  prefix="$acl_final_prefix"
2778  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2779  prefix="$acl_save_prefix"
2780
2781# Make sure we can run config.sub.
2782$ac_config_sub sun4 >/dev/null 2>&1 ||
2783  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2784echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2785   { (exit 1); exit 1; }; }
2786
2787echo "$as_me:$LINENO: checking build system type" >&5
2788echo $ECHO_N "checking build system type... $ECHO_C" >&6
2789if test "${ac_cv_build+set}" = set; then
2790  echo $ECHO_N "(cached) $ECHO_C" >&6
2791else
2792  ac_cv_build_alias=$build_alias
2793test -z "$ac_cv_build_alias" &&
2794  ac_cv_build_alias=`$ac_config_guess`
2795test -z "$ac_cv_build_alias" &&
2796  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2797echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2798   { (exit 1); exit 1; }; }
2799ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2800  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2801echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2802   { (exit 1); exit 1; }; }
2803
2804fi
2805echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2806echo "${ECHO_T}$ac_cv_build" >&6
2807build=$ac_cv_build
2808build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2809build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2810build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2811
2812
2813echo "$as_me:$LINENO: checking host system type" >&5
2814echo $ECHO_N "checking host system type... $ECHO_C" >&6
2815if test "${ac_cv_host+set}" = set; then
2816  echo $ECHO_N "(cached) $ECHO_C" >&6
2817else
2818  ac_cv_host_alias=$host_alias
2819test -z "$ac_cv_host_alias" &&
2820  ac_cv_host_alias=$ac_cv_build_alias
2821ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2822  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2823echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2824   { (exit 1); exit 1; }; }
2825
2826fi
2827echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2828echo "${ECHO_T}$ac_cv_host" >&6
2829host=$ac_cv_host
2830host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2831host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2832host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2833
2834
2835
2836# Check whether --with-gnu-ld or --without-gnu-ld was given.
2837if test "${with_gnu_ld+set}" = set; then
2838  withval="$with_gnu_ld"
2839  test "$withval" = no || with_gnu_ld=yes
2840else
2841  with_gnu_ld=no
2842fi;
2843# Prepare PATH_SEPARATOR.
2844# The user is always right.
2845if test "${PATH_SEPARATOR+set}" != set; then
2846  echo "#! /bin/sh" >conf$$.sh
2847  echo  "exit 0"   >>conf$$.sh
2848  chmod +x conf$$.sh
2849  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2850    PATH_SEPARATOR=';'
2851  else
2852    PATH_SEPARATOR=:
2853  fi
2854  rm -f conf$$.sh
2855fi
2856ac_prog=ld
2857if test "$GCC" = yes; then
2858  # Check if gcc -print-prog-name=ld gives a path.
2859  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2860echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2861  case $host in
2862  *-*-mingw*)
2863    # gcc leaves a trailing carriage return which upsets mingw
2864    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2865  *)
2866    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2867  esac
2868  case $ac_prog in
2869    # Accept absolute paths.
2870    [\\/]* | [A-Za-z]:[\\/]*)
2871      re_direlt='/[^/][^/]*/\.\./'
2872      # Canonicalize the path of ld
2873      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2874      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2875        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2876      done
2877      test -z "$LD" && LD="$ac_prog"
2878      ;;
2879  "")
2880    # If it fails, then pretend we aren't using GCC.
2881    ac_prog=ld
2882    ;;
2883  *)
2884    # If it is relative, then search for the first ld in PATH.
2885    with_gnu_ld=unknown
2886    ;;
2887  esac
2888elif test "$with_gnu_ld" = yes; then
2889  echo "$as_me:$LINENO: checking for GNU ld" >&5
2890echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2891else
2892  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2893echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2894fi
2895if test "${acl_cv_path_LD+set}" = set; then
2896  echo $ECHO_N "(cached) $ECHO_C" >&6
2897else
2898  if test -z "$LD"; then
2899  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2900  for ac_dir in $PATH; do
2901    test -z "$ac_dir" && ac_dir=.
2902    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2903      acl_cv_path_LD="$ac_dir/$ac_prog"
2904      # Check to see if the program is GNU ld.  I'd rather use --version,
2905      # but apparently some GNU ld's only accept -v.
2906      # Break only if it was the GNU/non-GNU ld that we prefer.
2907      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
2908      *GNU* | *'with BFD'*)
2909        test "$with_gnu_ld" != no && break ;;
2910      *)
2911        test "$with_gnu_ld" != yes && break ;;
2912      esac
2913    fi
2914  done
2915  IFS="$ac_save_ifs"
2916else
2917  acl_cv_path_LD="$LD" # Let the user override the test with a path.
2918fi
2919fi
2920
2921LD="$acl_cv_path_LD"
2922if test -n "$LD"; then
2923  echo "$as_me:$LINENO: result: $LD" >&5
2924echo "${ECHO_T}$LD" >&6
2925else
2926  echo "$as_me:$LINENO: result: no" >&5
2927echo "${ECHO_T}no" >&6
2928fi
2929test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2930echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2931   { (exit 1); exit 1; }; }
2932echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2933echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2934if test "${acl_cv_prog_gnu_ld+set}" = set; then
2935  echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2938case `$LD -v 2>&1 </dev/null` in
2939*GNU* | *'with BFD'*)
2940  acl_cv_prog_gnu_ld=yes ;;
2941*)
2942  acl_cv_prog_gnu_ld=no ;;
2943esac
2944fi
2945echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
2946echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
2947with_gnu_ld=$acl_cv_prog_gnu_ld
2948
2949
2950
2951                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
2952echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
2953if test "${acl_cv_rpath+set}" = set; then
2954  echo $ECHO_N "(cached) $ECHO_C" >&6
2955else
2956
2957    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
2958    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
2959    . ./conftest.sh
2960    rm -f ./conftest.sh
2961    acl_cv_rpath=done
2962
2963fi
2964echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
2965echo "${ECHO_T}$acl_cv_rpath" >&6
2966  wl="$acl_cv_wl"
2967  libext="$acl_cv_libext"
2968  shlibext="$acl_cv_shlibext"
2969  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
2970  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
2971  hardcode_direct="$acl_cv_hardcode_direct"
2972  hardcode_minus_L="$acl_cv_hardcode_minus_L"
2973    # Check whether --enable-rpath or --disable-rpath was given.
2974if test "${enable_rpath+set}" = set; then
2975  enableval="$enable_rpath"
2976  :
2977else
2978  enable_rpath=yes
2979fi;
2980
2981
2982
2983
2984
2985
2986  echo "$as_me:$LINENO: checking how to link with librpathx" >&5
2987echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6
2988if test "${ac_cv_librpathx_libs+set}" = set; then
2989  echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
2991
2992
2993
2994    use_additional=yes
2995
2996  acl_save_prefix="$prefix"
2997  prefix="$acl_final_prefix"
2998  acl_save_exec_prefix="$exec_prefix"
2999  exec_prefix="$acl_final_exec_prefix"
3000
3001    eval additional_includedir=\"$includedir\"
3002    eval additional_libdir=\"$libdir\"
3003
3004  exec_prefix="$acl_save_exec_prefix"
3005  prefix="$acl_save_prefix"
3006
3007
3008# Check whether --with-librpathx-prefix or --without-librpathx-prefix was given.
3009if test "${with_librpathx_prefix+set}" = set; then
3010  withval="$with_librpathx_prefix"
3011
3012    if test "X$withval" = "Xno"; then
3013      use_additional=no
3014    else
3015      if test "X$withval" = "X"; then
3016
3017  acl_save_prefix="$prefix"
3018  prefix="$acl_final_prefix"
3019  acl_save_exec_prefix="$exec_prefix"
3020  exec_prefix="$acl_final_exec_prefix"
3021
3022          eval additional_includedir=\"$includedir\"
3023          eval additional_libdir=\"$libdir\"
3024
3025  exec_prefix="$acl_save_exec_prefix"
3026  prefix="$acl_save_prefix"
3027
3028      else
3029        additional_includedir="$withval/include"
3030        additional_libdir="$withval/lib"
3031      fi
3032    fi
3033
3034fi;
3035      LIBRPATHX=
3036  LTLIBRPATHX=
3037  INCRPATHX=
3038  rpathdirs=
3039  ltrpathdirs=
3040  names_already_handled=
3041  names_next_round='rpathx '
3042  while test -n "$names_next_round"; do
3043    names_this_round="$names_next_round"
3044    names_next_round=
3045    for name in $names_this_round; do
3046      already_handled=
3047      for n in $names_already_handled; do
3048        if test "$n" = "$name"; then
3049          already_handled=yes
3050          break
3051        fi
3052      done
3053      if test -z "$already_handled"; then
3054        names_already_handled="$names_already_handled $name"
3055                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3056        eval value=\"\$HAVE_LIB$uppername\"
3057        if test -n "$value"; then
3058          if test "$value" = yes; then
3059            eval value=\"\$LIB$uppername\"
3060            test -z "$value" || LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$value"
3061            eval value=\"\$LTLIB$uppername\"
3062            test -z "$value" || LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value"
3063          else
3064                                    :
3065          fi
3066        else
3067                              found_dir=
3068          found_la=
3069          found_so=
3070          found_a=
3071          if test $use_additional = yes; then
3072            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3073              found_dir="$additional_libdir"
3074              found_so="$additional_libdir/lib$name.$shlibext"
3075              if test -f "$additional_libdir/lib$name.la"; then
3076                found_la="$additional_libdir/lib$name.la"
3077              fi
3078            else
3079              if test -f "$additional_libdir/lib$name.$libext"; then
3080                found_dir="$additional_libdir"
3081                found_a="$additional_libdir/lib$name.$libext"
3082                if test -f "$additional_libdir/lib$name.la"; then
3083                  found_la="$additional_libdir/lib$name.la"
3084                fi
3085              fi
3086            fi
3087          fi
3088          if test "X$found_dir" = "X"; then
3089            for x in $LDFLAGS $LTLIBRPATHX; do
3090
3091  acl_save_prefix="$prefix"
3092  prefix="$acl_final_prefix"
3093  acl_save_exec_prefix="$exec_prefix"
3094  exec_prefix="$acl_final_exec_prefix"
3095  eval x=\"$x\"
3096  exec_prefix="$acl_save_exec_prefix"
3097  prefix="$acl_save_prefix"
3098
3099              case "$x" in
3100                -L*)
3101                  dir=`echo "X$x" | sed -e 's/^X-L//'`
3102                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3103                    found_dir="$dir"
3104                    found_so="$dir/lib$name.$shlibext"
3105                    if test -f "$dir/lib$name.la"; then
3106                      found_la="$dir/lib$name.la"
3107                    fi
3108                  else
3109                    if test -f "$dir/lib$name.$libext"; then
3110                      found_dir="$dir"
3111                      found_a="$dir/lib$name.$libext"
3112                      if test -f "$dir/lib$name.la"; then
3113                        found_la="$dir/lib$name.la"
3114                      fi
3115                    fi
3116                  fi
3117                  ;;
3118              esac
3119              if test "X$found_dir" != "X"; then
3120                break
3121              fi
3122            done
3123          fi
3124          if test "X$found_dir" != "X"; then
3125                        LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name"
3126            if test "X$found_so" != "X"; then
3127                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3128                                LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
3129              else
3130                                                                                haveit=
3131                for x in $ltrpathdirs; do
3132                  if test "X$x" = "X$found_dir"; then
3133                    haveit=yes
3134                    break
3135                  fi
3136                done
3137                if test -z "$haveit"; then
3138                  ltrpathdirs="$ltrpathdirs $found_dir"
3139                fi
3140                                if test "$hardcode_direct" = yes; then
3141                                                      LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
3142                else
3143                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3144                                                            LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
3145                                                            haveit=
3146                    for x in $rpathdirs; do
3147                      if test "X$x" = "X$found_dir"; then
3148                        haveit=yes
3149                        break
3150                      fi
3151                    done
3152                    if test -z "$haveit"; then
3153                      rpathdirs="$rpathdirs $found_dir"
3154                    fi
3155                  else
3156                                                                                haveit=
3157                    for x in $LDFLAGS $LIBRPATHX; do
3158
3159  acl_save_prefix="$prefix"
3160  prefix="$acl_final_prefix"
3161  acl_save_exec_prefix="$exec_prefix"
3162  exec_prefix="$acl_final_exec_prefix"
3163  eval x=\"$x\"
3164  exec_prefix="$acl_save_exec_prefix"
3165  prefix="$acl_save_prefix"
3166
3167                      if test "X$x" = "X-L$found_dir"; then
3168                        haveit=yes
3169                        break
3170                      fi
3171                    done
3172                    if test -z "$haveit"; then
3173                      LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir"
3174                    fi
3175                    if test "$hardcode_minus_L" != no; then
3176                                                                                        LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
3177                    else
3178                                                                                                                                                                                LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name"
3179                    fi
3180                  fi
3181                fi
3182              fi
3183            else
3184              if test "X$found_a" != "X"; then
3185                                LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_a"
3186              else
3187                                                LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name"
3188              fi
3189            fi
3190                        additional_includedir=
3191            case "$found_dir" in
3192              */lib | */lib/)
3193                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3194                additional_includedir="$basedir/include"
3195                ;;
3196            esac
3197            if test "X$additional_includedir" != "X"; then
3198                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
3199                haveit=
3200                if test "X$additional_includedir" = "X/usr/local/include"; then
3201                  if test -n "$GCC"; then
3202                    case $host_os in
3203                      linux*) haveit=yes;;
3204                    esac
3205                  fi
3206                fi
3207                if test -z "$haveit"; then
3208                  for x in $CPPFLAGS $INCRPATHX; do
3209
3210  acl_save_prefix="$prefix"
3211  prefix="$acl_final_prefix"
3212  acl_save_exec_prefix="$exec_prefix"
3213  exec_prefix="$acl_final_exec_prefix"
3214  eval x=\"$x\"
3215  exec_prefix="$acl_save_exec_prefix"
3216  prefix="$acl_save_prefix"
3217
3218                    if test "X$x" = "X-I$additional_includedir"; then
3219                      haveit=yes
3220                      break
3221                    fi
3222                  done
3223                  if test -z "$haveit"; then
3224                    if test -d "$additional_includedir"; then
3225                                            INCRPATHX="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir"
3226                    fi
3227                  fi
3228                fi
3229              fi
3230            fi
3231                        if test -n "$found_la"; then
3232                                                        save_libdir="$libdir"
3233              case "$found_la" in
3234                */* | *\\*) . "$found_la" ;;
3235                *) . "./$found_la" ;;
3236              esac
3237              libdir="$save_libdir"
3238                            for dep in $dependency_libs; do
3239                case "$dep" in
3240                  -L*)
3241                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3242                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
3243                      haveit=
3244                      if test "X$additional_libdir" = "X/usr/local/lib"; then
3245                        if test -n "$GCC"; then
3246                          case $host_os in
3247                            linux*) haveit=yes;;
3248                          esac
3249                        fi
3250                      fi
3251                      if test -z "$haveit"; then
3252                        haveit=
3253                        for x in $LDFLAGS $LIBRPATHX; do
3254
3255  acl_save_prefix="$prefix"
3256  prefix="$acl_final_prefix"
3257  acl_save_exec_prefix="$exec_prefix"
3258  exec_prefix="$acl_final_exec_prefix"
3259  eval x=\"$x\"
3260  exec_prefix="$acl_save_exec_prefix"
3261  prefix="$acl_save_prefix"
3262
3263                          if test "X$x" = "X-L$additional_libdir"; then
3264                            haveit=yes
3265                            break
3266                          fi
3267                        done
3268                        if test -z "$haveit"; then
3269                          if test -d "$additional_libdir"; then
3270                                                        LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir"
3271                          fi
3272                        fi
3273                        haveit=
3274                        for x in $LDFLAGS $LTLIBRPATHX; do
3275
3276  acl_save_prefix="$prefix"
3277  prefix="$acl_final_prefix"
3278  acl_save_exec_prefix="$exec_prefix"
3279  exec_prefix="$acl_final_exec_prefix"
3280  eval x=\"$x\"
3281  exec_prefix="$acl_save_exec_prefix"
3282  prefix="$acl_save_prefix"
3283
3284                          if test "X$x" = "X-L$additional_libdir"; then
3285                            haveit=yes
3286                            break
3287                          fi
3288                        done
3289                        if test -z "$haveit"; then
3290                          if test -d "$additional_libdir"; then
3291                                                        LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir"
3292                          fi
3293                        fi
3294                      fi
3295                    fi
3296                    ;;
3297                  -R*)
3298                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
3299                    if test "$enable_rpath" != no; then
3300                                                                  haveit=
3301                      for x in $rpathdirs; do
3302                        if test "X$x" = "X$dir"; then
3303                          haveit=yes
3304                          break
3305                        fi
3306                      done
3307                      if test -z "$haveit"; then
3308                        rpathdirs="$rpathdirs $dir"
3309                      fi
3310                                                                  haveit=
3311                      for x in $ltrpathdirs; do
3312                        if test "X$x" = "X$dir"; then
3313                          haveit=yes
3314                          break
3315                        fi
3316                      done
3317                      if test -z "$haveit"; then
3318                        ltrpathdirs="$ltrpathdirs $dir"
3319                      fi
3320                    fi
3321                    ;;
3322                  -l*)
3323                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3324                    ;;
3325                  *.la)
3326                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3327                    ;;
3328                  *)
3329                                        LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$dep"
3330                    LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep"
3331                    ;;
3332                esac
3333              done
3334            fi
3335          else
3336                                                            LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name"
3337            LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name"
3338          fi
3339        fi
3340      fi
3341    done
3342  done
3343  if test "X$rpathdirs" != "X"; then
3344    if test -n "$hardcode_libdir_separator"; then
3345                        alldirs=
3346      for found_dir in $rpathdirs; do
3347        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3348      done
3349            acl_save_libdir="$libdir"
3350      libdir="$alldirs"
3351      eval flag=\"$hardcode_libdir_flag_spec\"
3352      libdir="$acl_save_libdir"
3353      LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag"
3354    else
3355            for found_dir in $rpathdirs; do
3356        acl_save_libdir="$libdir"
3357        libdir="$found_dir"
3358        eval flag=\"$hardcode_libdir_flag_spec\"
3359        libdir="$acl_save_libdir"
3360        LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag"
3361      done
3362    fi
3363  fi
3364  if test "X$ltrpathdirs" != "X"; then
3365            for found_dir in $ltrpathdirs; do
3366      LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir"
3367    done
3368  fi
3369
3370    ac_cv_librpathx_libs="$LIBRPATHX"
3371    ac_cv_librpathx_ltlibs="$LTLIBRPATHX"
3372    ac_cv_librpathx_cppflags="$INCRPATHX"
3373
3374fi
3375echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5
3376echo "${ECHO_T}$ac_cv_librpathx_libs" >&6
3377  LIBRPATHX="$ac_cv_librpathx_libs"
3378  LTLIBRPATHX="$ac_cv_librpathx_ltlibs"
3379  INCRPATHX="$ac_cv_librpathx_cppflags"
3380
3381  for element in $INCRPATHX; do
3382    haveit=
3383    for x in $CPPFLAGS; do
3384
3385  acl_save_prefix="$prefix"
3386  prefix="$acl_final_prefix"
3387  acl_save_exec_prefix="$exec_prefix"
3388  exec_prefix="$acl_final_exec_prefix"
3389  eval x=\"$x\"
3390  exec_prefix="$acl_save_exec_prefix"
3391  prefix="$acl_save_prefix"
3392
3393      if test "X$x" = "X$element"; then
3394        haveit=yes
3395        break
3396      fi
3397    done
3398    if test -z "$haveit"; then
3399      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3400    fi
3401  done
3402
3403
3404
3405      HAVE_LIBRPATHX=yes
3406
3407
3408
3409
3410
3411
3412
3413
3414  echo "$as_me:$LINENO: checking how to link with librpathy" >&5
3415echo $ECHO_N "checking how to link with librpathy... $ECHO_C" >&6
3416if test "${ac_cv_librpathy_libs+set}" = set; then
3417  echo $ECHO_N "(cached) $ECHO_C" >&6
3418else
3419
3420
3421
3422    use_additional=yes
3423
3424  acl_save_prefix="$prefix"
3425  prefix="$acl_final_prefix"
3426  acl_save_exec_prefix="$exec_prefix"
3427  exec_prefix="$acl_final_exec_prefix"
3428
3429    eval additional_includedir=\"$includedir\"
3430    eval additional_libdir=\"$libdir\"
3431
3432  exec_prefix="$acl_save_exec_prefix"
3433  prefix="$acl_save_prefix"
3434
3435
3436# Check whether --with-librpathy-prefix or --without-librpathy-prefix was given.
3437if test "${with_librpathy_prefix+set}" = set; then
3438  withval="$with_librpathy_prefix"
3439
3440    if test "X$withval" = "Xno"; then
3441      use_additional=no
3442    else
3443      if test "X$withval" = "X"; then
3444
3445  acl_save_prefix="$prefix"
3446  prefix="$acl_final_prefix"
3447  acl_save_exec_prefix="$exec_prefix"
3448  exec_prefix="$acl_final_exec_prefix"
3449
3450          eval additional_includedir=\"$includedir\"
3451          eval additional_libdir=\"$libdir\"
3452
3453  exec_prefix="$acl_save_exec_prefix"
3454  prefix="$acl_save_prefix"
3455
3456      else
3457        additional_includedir="$withval/include"
3458        additional_libdir="$withval/lib"
3459      fi
3460    fi
3461
3462fi;
3463      LIBRPATHY=
3464  LTLIBRPATHY=
3465  INCRPATHY=
3466  rpathdirs=
3467  ltrpathdirs=
3468  names_already_handled=
3469  names_next_round='rpathy rpathx'
3470  while test -n "$names_next_round"; do
3471    names_this_round="$names_next_round"
3472    names_next_round=
3473    for name in $names_this_round; do
3474      already_handled=
3475      for n in $names_already_handled; do
3476        if test "$n" = "$name"; then
3477          already_handled=yes
3478          break
3479        fi
3480      done
3481      if test -z "$already_handled"; then
3482        names_already_handled="$names_already_handled $name"
3483                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3484        eval value=\"\$HAVE_LIB$uppername\"
3485        if test -n "$value"; then
3486          if test "$value" = yes; then
3487            eval value=\"\$LIB$uppername\"
3488            test -z "$value" || LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$value"
3489            eval value=\"\$LTLIB$uppername\"
3490            test -z "$value" || LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$value"
3491          else
3492                                    :
3493          fi
3494        else
3495                              found_dir=
3496          found_la=
3497          found_so=
3498          found_a=
3499          if test $use_additional = yes; then
3500            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3501              found_dir="$additional_libdir"
3502              found_so="$additional_libdir/lib$name.$shlibext"
3503              if test -f "$additional_libdir/lib$name.la"; then
3504                found_la="$additional_libdir/lib$name.la"
3505              fi
3506            else
3507              if test -f "$additional_libdir/lib$name.$libext"; then
3508                found_dir="$additional_libdir"
3509                found_a="$additional_libdir/lib$name.$libext"
3510                if test -f "$additional_libdir/lib$name.la"; then
3511                  found_la="$additional_libdir/lib$name.la"
3512                fi
3513              fi
3514            fi
3515          fi
3516          if test "X$found_dir" = "X"; then
3517            for x in $LDFLAGS $LTLIBRPATHY; do
3518
3519  acl_save_prefix="$prefix"
3520  prefix="$acl_final_prefix"
3521  acl_save_exec_prefix="$exec_prefix"
3522  exec_prefix="$acl_final_exec_prefix"
3523  eval x=\"$x\"
3524  exec_prefix="$acl_save_exec_prefix"
3525  prefix="$acl_save_prefix"
3526
3527              case "$x" in
3528                -L*)
3529                  dir=`echo "X$x" | sed -e 's/^X-L//'`
3530                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3531                    found_dir="$dir"
3532                    found_so="$dir/lib$name.$shlibext"
3533                    if test -f "$dir/lib$name.la"; then
3534                      found_la="$dir/lib$name.la"
3535                    fi
3536                  else
3537                    if test -f "$dir/lib$name.$libext"; then
3538                      found_dir="$dir"
3539                      found_a="$dir/lib$name.$libext"
3540                      if test -f "$dir/lib$name.la"; then
3541                        found_la="$dir/lib$name.la"
3542                      fi
3543                    fi
3544                  fi
3545                  ;;
3546              esac
3547              if test "X$found_dir" != "X"; then
3548                break
3549              fi
3550            done
3551          fi
3552          if test "X$found_dir" != "X"; then
3553                        LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$found_dir -l$name"
3554            if test "X$found_so" != "X"; then
3555                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3556                                LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
3557              else
3558                                                                                haveit=
3559                for x in $ltrpathdirs; do
3560                  if test "X$x" = "X$found_dir"; then
3561                    haveit=yes
3562                    break
3563                  fi
3564                done
3565                if test -z "$haveit"; then
3566                  ltrpathdirs="$ltrpathdirs $found_dir"
3567                fi
3568                                if test "$hardcode_direct" = yes; then
3569                                                      LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
3570                else
3571                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3572                                                            LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
3573                                                            haveit=
3574                    for x in $rpathdirs; do
3575                      if test "X$x" = "X$found_dir"; then
3576                        haveit=yes
3577                        break
3578                      fi
3579                    done
3580                    if test -z "$haveit"; then
3581                      rpathdirs="$rpathdirs $found_dir"
3582                    fi
3583                  else
3584                                                                                haveit=
3585                    for x in $LDFLAGS $LIBRPATHY; do
3586
3587  acl_save_prefix="$prefix"
3588  prefix="$acl_final_prefix"
3589  acl_save_exec_prefix="$exec_prefix"
3590  exec_prefix="$acl_final_exec_prefix"
3591  eval x=\"$x\"
3592  exec_prefix="$acl_save_exec_prefix"
3593  prefix="$acl_save_prefix"
3594
3595                      if test "X$x" = "X-L$found_dir"; then
3596                        haveit=yes
3597                        break
3598                      fi
3599                    done
3600                    if test -z "$haveit"; then
3601                      LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir"
3602                    fi
3603                    if test "$hardcode_minus_L" != no; then
3604                                                                                        LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
3605                    else
3606                                                                                                                                                                                LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name"
3607                    fi
3608                  fi
3609                fi
3610              fi
3611            else
3612              if test "X$found_a" != "X"; then
3613                                LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_a"
3614              else
3615                                                LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir -l$name"
3616              fi
3617            fi
3618                        additional_includedir=
3619            case "$found_dir" in
3620              */lib | */lib/)
3621                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3622                additional_includedir="$basedir/include"
3623                ;;
3624            esac
3625            if test "X$additional_includedir" != "X"; then
3626                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
3627                haveit=
3628                if test "X$additional_includedir" = "X/usr/local/include"; then
3629                  if test -n "$GCC"; then
3630                    case $host_os in
3631                      linux*) haveit=yes;;
3632                    esac
3633                  fi
3634                fi
3635                if test -z "$haveit"; then
3636                  for x in $CPPFLAGS $INCRPATHY; do
3637
3638  acl_save_prefix="$prefix"
3639  prefix="$acl_final_prefix"
3640  acl_save_exec_prefix="$exec_prefix"
3641  exec_prefix="$acl_final_exec_prefix"
3642  eval x=\"$x\"
3643  exec_prefix="$acl_save_exec_prefix"
3644  prefix="$acl_save_prefix"
3645
3646                    if test "X$x" = "X-I$additional_includedir"; then
3647                      haveit=yes
3648                      break
3649                    fi
3650                  done
3651                  if test -z "$haveit"; then
3652                    if test -d "$additional_includedir"; then
3653                                            INCRPATHY="${INCRPATHY}${INCRPATHY:+ }-I$additional_includedir"
3654                    fi
3655                  fi
3656                fi
3657              fi
3658            fi
3659                        if test -n "$found_la"; then
3660                                                        save_libdir="$libdir"
3661              case "$found_la" in
3662                */* | *\\*) . "$found_la" ;;
3663                *) . "./$found_la" ;;
3664              esac
3665              libdir="$save_libdir"
3666                            for dep in $dependency_libs; do
3667                case "$dep" in
3668                  -L*)
3669                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3670                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
3671                      haveit=
3672                      if test "X$additional_libdir" = "X/usr/local/lib"; then
3673                        if test -n "$GCC"; then
3674                          case $host_os in
3675                            linux*) haveit=yes;;
3676                          esac
3677                        fi
3678                      fi
3679                      if test -z "$haveit"; then
3680                        haveit=
3681                        for x in $LDFLAGS $LIBRPATHY; do
3682
3683  acl_save_prefix="$prefix"
3684  prefix="$acl_final_prefix"
3685  acl_save_exec_prefix="$exec_prefix"
3686  exec_prefix="$acl_final_exec_prefix"
3687  eval x=\"$x\"
3688  exec_prefix="$acl_save_exec_prefix"
3689  prefix="$acl_save_prefix"
3690
3691                          if test "X$x" = "X-L$additional_libdir"; then
3692                            haveit=yes
3693                            break
3694                          fi
3695                        done
3696                        if test -z "$haveit"; then
3697                          if test -d "$additional_libdir"; then
3698                                                        LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$additional_libdir"
3699                          fi
3700                        fi
3701                        haveit=
3702                        for x in $LDFLAGS $LTLIBRPATHY; do
3703
3704  acl_save_prefix="$prefix"
3705  prefix="$acl_final_prefix"
3706  acl_save_exec_prefix="$exec_prefix"
3707  exec_prefix="$acl_final_exec_prefix"
3708  eval x=\"$x\"
3709  exec_prefix="$acl_save_exec_prefix"
3710  prefix="$acl_save_prefix"
3711
3712                          if test "X$x" = "X-L$additional_libdir"; then
3713                            haveit=yes
3714                            break
3715                          fi
3716                        done
3717                        if test -z "$haveit"; then
3718                          if test -d "$additional_libdir"; then
3719                                                        LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$additional_libdir"
3720                          fi
3721                        fi
3722                      fi
3723                    fi
3724                    ;;
3725                  -R*)
3726                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
3727                    if test "$enable_rpath" != no; then
3728                                                                  haveit=
3729                      for x in $rpathdirs; do
3730                        if test "X$x" = "X$dir"; then
3731                          haveit=yes
3732                          break
3733                        fi
3734                      done
3735                      if test -z "$haveit"; then
3736                        rpathdirs="$rpathdirs $dir"
3737                      fi
3738                                                                  haveit=
3739                      for x in $ltrpathdirs; do
3740                        if test "X$x" = "X$dir"; then
3741                          haveit=yes
3742                          break
3743                        fi
3744                      done
3745                      if test -z "$haveit"; then
3746                        ltrpathdirs="$ltrpathdirs $dir"
3747                      fi
3748                    fi
3749                    ;;
3750                  -l*)
3751                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3752                    ;;
3753                  *.la)
3754                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3755                    ;;
3756                  *)
3757                                        LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$dep"
3758                    LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$dep"
3759                    ;;
3760                esac
3761              done
3762            fi
3763          else
3764                                                            LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name"
3765            LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-l$name"
3766          fi
3767        fi
3768      fi
3769    done
3770  done
3771  if test "X$rpathdirs" != "X"; then
3772    if test -n "$hardcode_libdir_separator"; then
3773                        alldirs=
3774      for found_dir in $rpathdirs; do
3775        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3776      done
3777            acl_save_libdir="$libdir"
3778      libdir="$alldirs"
3779      eval flag=\"$hardcode_libdir_flag_spec\"
3780      libdir="$acl_save_libdir"
3781      LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag"
3782    else
3783            for found_dir in $rpathdirs; do
3784        acl_save_libdir="$libdir"
3785        libdir="$found_dir"
3786        eval flag=\"$hardcode_libdir_flag_spec\"
3787        libdir="$acl_save_libdir"
3788        LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag"
3789      done
3790    fi
3791  fi
3792  if test "X$ltrpathdirs" != "X"; then
3793            for found_dir in $ltrpathdirs; do
3794      LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-R$found_dir"
3795    done
3796  fi
3797
3798    ac_cv_librpathy_libs="$LIBRPATHY"
3799    ac_cv_librpathy_ltlibs="$LTLIBRPATHY"
3800    ac_cv_librpathy_cppflags="$INCRPATHY"
3801
3802fi
3803echo "$as_me:$LINENO: result: $ac_cv_librpathy_libs" >&5
3804echo "${ECHO_T}$ac_cv_librpathy_libs" >&6
3805  LIBRPATHY="$ac_cv_librpathy_libs"
3806  LTLIBRPATHY="$ac_cv_librpathy_ltlibs"
3807  INCRPATHY="$ac_cv_librpathy_cppflags"
3808
3809  for element in $INCRPATHY; do
3810    haveit=
3811    for x in $CPPFLAGS; do
3812
3813  acl_save_prefix="$prefix"
3814  prefix="$acl_final_prefix"
3815  acl_save_exec_prefix="$exec_prefix"
3816  exec_prefix="$acl_final_exec_prefix"
3817  eval x=\"$x\"
3818  exec_prefix="$acl_save_exec_prefix"
3819  prefix="$acl_save_prefix"
3820
3821      if test "X$x" = "X$element"; then
3822        haveit=yes
3823        break
3824      fi
3825    done
3826    if test -z "$haveit"; then
3827      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3828    fi
3829  done
3830
3831
3832
3833      HAVE_LIBRPATHY=yes
3834
3835
3836
3837LIBRPATHY="$LIBRPATHY $LIBRPATHX"
3838
3839          ac_config_files="$ac_config_files Makefile"
3840cat >confcache <<\_ACEOF
3841# This file is a shell script that caches the results of configure
3842# tests run on this system so they can be shared between configure
3843# scripts and configure runs, see configure's option --config-cache.
3844# It is not useful on other systems.  If it contains results you don't
3845# want to keep, you may remove or edit it.
3846#
3847# config.status only pays attention to the cache file if you give it
3848# the --recheck option to rerun configure.
3849#
3850# `ac_cv_env_foo' variables (set or unset) will be overridden when
3851# loading this file, other *unset* `ac_cv_foo' will be assigned the
3852# following values.
3853
3854_ACEOF
3855
3856# The following way of writing the cache mishandles newlines in values,
3857# but we know of no workaround that is simple, portable, and efficient.
3858# So, don't put newlines in cache variables' values.
3859# Ultrix sh set writes to stderr and can't be redirected directly,
3860# and sets the high bit in the cache file unless we assign to the vars.
3861{
3862  (set) 2>&1 |
3863    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3864    *ac_space=\ *)
3865      # `set' does not quote correctly, so add quotes (double-quote
3866      # substitution turns \\\\ into \\, and sed turns \\ into \).
3867      sed -n \
3868        "s/'/'\\\\''/g;
3869          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3870      ;;
3871    *)
3872      # `set' quotes correctly as required by POSIX, so do not add quotes.
3873      sed -n \
3874        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3875      ;;
3876    esac;
3877} |
3878  sed '
3879     t clear
3880     : clear
3881     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3882     t end
3883     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3884     : end' >>confcache
3885if diff $cache_file confcache >/dev/null 2>&1; then :; else
3886  if test -w $cache_file; then
3887    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3888    cat confcache >$cache_file
3889  else
3890    echo "not updating unwritable cache $cache_file"
3891  fi
3892fi
3893rm -f confcache
3894
3895test "x$prefix" = xNONE && prefix=$ac_default_prefix
3896# Let make expand exec_prefix.
3897test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3898
3899# VPATH may cause trouble with some makes, so we remove $(srcdir),
3900# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3901# trailing colons and then remove the whole line if VPATH becomes empty
3902# (actually we leave an empty line to preserve line numbers).
3903if test "x$srcdir" = x.; then
3904  ac_vpsub='/^[  ]*VPATH[        ]*=/{
3905s/:*\$(srcdir):*/:/;
3906s/:*\${srcdir}:*/:/;
3907s/:*@srcdir@:*/:/;
3908s/^\([^=]*=[     ]*\):*/\1/;
3909s/:*$//;
3910s/^[^=]*=[       ]*$//;
3911}'
3912fi
3913
3914# Transform confdefs.h into DEFS.
3915# Protect against shell expansion while executing Makefile rules.
3916# Protect against Makefile macro expansion.
3917#
3918# If the first sed substitution is executed (which looks for macros that
3919# take arguments), then we branch to the quote section.  Otherwise,
3920# look for a macro that doesn't take arguments.
3921cat >confdef2opt.sed <<\_ACEOF
3922t clear
3923: clear
3924s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3925t quote
3926s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3927t quote
3928d
3929: quote
3930s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3931s,\[,\\&,g
3932s,\],\\&,g
3933s,\$,$$,g
3934p
3935_ACEOF
3936# We use echo to avoid assuming a particular line-breaking character.
3937# The extra dot is to prevent the shell from consuming trailing
3938# line-breaks from the sub-command output.  A line-break within
3939# single-quotes doesn't work because, if this script is created in a
3940# platform that uses two characters for line-breaks (e.g., DOS), tr
3941# would break.
3942ac_LF_and_DOT=`echo; echo .`
3943DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3944rm -f confdef2opt.sed
3945
3946
3947ac_libobjs=
3948ac_ltlibobjs=
3949for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3950  # 1. Remove the extension, and $U if already installed.
3951  ac_i=`echo "$ac_i" |
3952         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3953  # 2. Add them.
3954  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3955  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3956done
3957LIBOBJS=$ac_libobjs
3958
3959LTLIBOBJS=$ac_ltlibobjs
3960
3961
3962if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3963  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
3964Usually this means the macro was only invoked conditionally." >&5
3965echo "$as_me: error: conditional \"AMDEP\" was never defined.
3966Usually this means the macro was only invoked conditionally." >&2;}
3967   { (exit 1); exit 1; }; }
3968fi
3969if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3970  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
3971Usually this means the macro was only invoked conditionally." >&5
3972echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
3973Usually this means the macro was only invoked conditionally." >&2;}
3974   { (exit 1); exit 1; }; }
3975fi
3976
3977: ${CONFIG_STATUS=./config.status}
3978ac_clean_files_save=$ac_clean_files
3979ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3980{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3981echo "$as_me: creating $CONFIG_STATUS" >&6;}
3982cat >$CONFIG_STATUS <<_ACEOF
3983#! $SHELL
3984# Generated by $as_me.
3985# Run this file to recreate the current configuration.
3986# Compiler output produced by configure, useful for debugging
3987# configure, is in config.log if it exists.
3988
3989debug=false
3990ac_cs_recheck=false
3991ac_cs_silent=false
3992SHELL=\${CONFIG_SHELL-$SHELL}
3993_ACEOF
3994
3995cat >>$CONFIG_STATUS <<\_ACEOF
3996## --------------------- ##
3997## M4sh Initialization.  ##
3998## --------------------- ##
3999
4000# Be Bourne compatible
4001if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4002  emulate sh
4003  NULLCMD=:
4004  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4005  # is contrary to our usage.  Disable this feature.
4006  alias -g '${1+"$@"}'='"$@"'
4007elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4008  set -o posix
4009fi
4010DUALCASE=1; export DUALCASE # for MKS sh
4011
4012# Support unset when possible.
4013if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4014  as_unset=unset
4015else
4016  as_unset=false
4017fi
4018
4019
4020# Work around bugs in pre-3.0 UWIN ksh.
4021$as_unset ENV MAIL MAILPATH
4022PS1='$ '
4023PS2='> '
4024PS4='+ '
4025
4026# NLS nuisances.
4027for as_var in \
4028  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4029  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4030  LC_TELEPHONE LC_TIME
4031do
4032  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4033    eval $as_var=C; export $as_var
4034  else
4035    $as_unset $as_var
4036  fi
4037done
4038
4039# Required to use basename.
4040if expr a : '\(a\)' >/dev/null 2>&1; then
4041  as_expr=expr
4042else
4043  as_expr=false
4044fi
4045
4046if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4047  as_basename=basename
4048else
4049  as_basename=false
4050fi
4051
4052
4053# Name of the executable.
4054as_me=`$as_basename "$0" ||
4055$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4056         X"$0" : 'X\(//\)$' \| \
4057         X"$0" : 'X\(/\)$' \| \
4058         .     : '\(.\)' 2>/dev/null ||
4059echo X/"$0" |
4060    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4061          /^X\/\(\/\/\)$/{ s//\1/; q; }
4062          /^X\/\(\/\).*/{ s//\1/; q; }
4063          s/.*/./; q'`
4064
4065
4066# PATH needs CR, and LINENO needs CR and PATH.
4067# Avoid depending upon Character Ranges.
4068as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4069as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4070as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4071as_cr_digits='0123456789'
4072as_cr_alnum=$as_cr_Letters$as_cr_digits
4073
4074# The user is always right.
4075if test "${PATH_SEPARATOR+set}" != set; then
4076  echo "#! /bin/sh" >conf$$.sh
4077  echo  "exit 0"   >>conf$$.sh
4078  chmod +x conf$$.sh
4079  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4080    PATH_SEPARATOR=';'
4081  else
4082    PATH_SEPARATOR=:
4083  fi
4084  rm -f conf$$.sh
4085fi
4086
4087
4088  as_lineno_1=$LINENO
4089  as_lineno_2=$LINENO
4090  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4091  test "x$as_lineno_1" != "x$as_lineno_2" &&
4092  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4093  # Find who we are.  Look in the path if we contain no path at all
4094  # relative or not.
4095  case $0 in
4096    *[\\/]* ) as_myself=$0 ;;
4097    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098for as_dir in $PATH
4099do
4100  IFS=$as_save_IFS
4101  test -z "$as_dir" && as_dir=.
4102  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4103done
4104
4105       ;;
4106  esac
4107  # We did not find ourselves, most probably we were run as `sh COMMAND'
4108  # in which case we are not to be found in the path.
4109  if test "x$as_myself" = x; then
4110    as_myself=$0
4111  fi
4112  if test ! -f "$as_myself"; then
4113    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4114echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4115   { (exit 1); exit 1; }; }
4116  fi
4117  case $CONFIG_SHELL in
4118  '')
4119    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4121do
4122  IFS=$as_save_IFS
4123  test -z "$as_dir" && as_dir=.
4124  for as_base in sh bash ksh sh5; do
4125         case $as_dir in
4126         /*)
4127           if ("$as_dir/$as_base" -c '
4128  as_lineno_1=$LINENO
4129  as_lineno_2=$LINENO
4130  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4131  test "x$as_lineno_1" != "x$as_lineno_2" &&
4132  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4133             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4134             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4135             CONFIG_SHELL=$as_dir/$as_base
4136             export CONFIG_SHELL
4137             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4138           fi;;
4139         esac
4140       done
4141done
4142;;
4143  esac
4144
4145  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4146  # uniformly replaced by the line number.  The first 'sed' inserts a
4147  # line-number line before each line; the second 'sed' does the real
4148  # work.  The second script uses 'N' to pair each line-number line
4149  # with the numbered line, and appends trailing '-' during
4150  # substitution so that $LINENO is not a special case at line end.
4151  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4152  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4153  sed '=' <$as_myself |
4154    sed '
4155      N
4156      s,$,-,
4157      : loop
4158      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4159      t loop
4160      s,-$,,
4161      s,^['$as_cr_digits']*\n,,
4162    ' >$as_me.lineno &&
4163  chmod +x $as_me.lineno ||
4164    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4165echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4166   { (exit 1); exit 1; }; }
4167
4168  # Don't try to exec as it changes $[0], causing all sort of problems
4169  # (the dirname of $[0] is not the place where we might find the
4170  # original and so on.  Autoconf is especially sensible to this).
4171  . ./$as_me.lineno
4172  # Exit status is that of the last command.
4173  exit
4174}
4175
4176
4177case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4178  *c*,-n*) ECHO_N= ECHO_C='
4179' ECHO_T='      ' ;;
4180  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4181  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4182esac
4183
4184if expr a : '\(a\)' >/dev/null 2>&1; then
4185  as_expr=expr
4186else
4187  as_expr=false
4188fi
4189
4190rm -f conf$$ conf$$.exe conf$$.file
4191echo >conf$$.file
4192if ln -s conf$$.file conf$$ 2>/dev/null; then
4193  # We could just check for DJGPP; but this test a) works b) is more generic
4194  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4195  if test -f conf$$.exe; then
4196    # Don't use ln at all; we don't have any links
4197    as_ln_s='cp -p'
4198  else
4199    as_ln_s='ln -s'
4200  fi
4201elif ln conf$$.file conf$$ 2>/dev/null; then
4202  as_ln_s=ln
4203else
4204  as_ln_s='cp -p'
4205fi
4206rm -f conf$$ conf$$.exe conf$$.file
4207
4208if mkdir -p . 2>/dev/null; then
4209  as_mkdir_p=:
4210else
4211  test -d ./-p && rmdir ./-p
4212  as_mkdir_p=false
4213fi
4214
4215as_executable_p="test -f"
4216
4217# Sed expression to map a string onto a valid CPP name.
4218as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4219
4220# Sed expression to map a string onto a valid variable name.
4221as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4222
4223
4224# IFS
4225# We need space, tab and new line, in precisely that order.
4226as_nl='
4227'
4228IFS="   $as_nl"
4229
4230# CDPATH.
4231$as_unset CDPATH
4232
4233exec 6>&1
4234
4235# Open the log real soon, to keep \$[0] and so on meaningful, and to
4236# report actual input values of CONFIG_FILES etc. instead of their
4237# values after options handling.  Logging --version etc. is OK.
4238exec 5>>config.log
4239{
4240  echo
4241  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4242## Running $as_me. ##
4243_ASBOX
4244} >&5
4245cat >&5 <<_CSEOF
4246
4247This file was extended by $as_me, which was
4248generated by GNU Autoconf 2.58.  Invocation command line was
4249
4250  CONFIG_FILES    = $CONFIG_FILES
4251  CONFIG_HEADERS  = $CONFIG_HEADERS
4252  CONFIG_LINKS    = $CONFIG_LINKS
4253  CONFIG_COMMANDS = $CONFIG_COMMANDS
4254  $ $0 $@
4255
4256_CSEOF
4257echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4258echo >&5
4259_ACEOF
4260
4261# Files that config.status was made for.
4262if test -n "$ac_config_files"; then
4263  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4264fi
4265
4266if test -n "$ac_config_headers"; then
4267  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4268fi
4269
4270if test -n "$ac_config_links"; then
4271  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4272fi
4273
4274if test -n "$ac_config_commands"; then
4275  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4276fi
4277
4278cat >>$CONFIG_STATUS <<\_ACEOF
4279
4280ac_cs_usage="\
4281\`$as_me' instantiates files from templates according to the
4282current configuration.
4283
4284Usage: $0 [OPTIONS] [FILE]...
4285
4286  -h, --help       print this help, then exit
4287  -V, --version    print version number, then exit
4288  -q, --quiet      do not print progress messages
4289  -d, --debug      don't remove temporary files
4290      --recheck    update $as_me by reconfiguring in the same conditions
4291  --file=FILE[:TEMPLATE]
4292                   instantiate the configuration file FILE
4293
4294Configuration files:
4295$config_files
4296
4297Configuration commands:
4298$config_commands
4299
4300Report bugs to <bug-autoconf@gnu.org>."
4301_ACEOF
4302
4303cat >>$CONFIG_STATUS <<_ACEOF
4304ac_cs_version="\\
4305config.status
4306configured by $0, generated by GNU Autoconf 2.58,
4307  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4308
4309Copyright (C) 2003 Free Software Foundation, Inc.
4310This config.status script is free software; the Free Software Foundation
4311gives unlimited permission to copy, distribute and modify it."
4312srcdir=$srcdir
4313INSTALL="$INSTALL"
4314_ACEOF
4315
4316cat >>$CONFIG_STATUS <<\_ACEOF
4317# If no file are specified by the user, then we need to provide default
4318# value.  By we need to know if files were specified by the user.
4319ac_need_defaults=:
4320while test $# != 0
4321do
4322  case $1 in
4323  --*=*)
4324    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4325    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4326    ac_shift=:
4327    ;;
4328  -*)
4329    ac_option=$1
4330    ac_optarg=$2
4331    ac_shift=shift
4332    ;;
4333  *) # This is not an option, so the user has probably given explicit
4334     # arguments.
4335     ac_option=$1
4336     ac_need_defaults=false;;
4337  esac
4338
4339  case $ac_option in
4340  # Handling of the options.
4341_ACEOF
4342cat >>$CONFIG_STATUS <<\_ACEOF
4343  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4344    ac_cs_recheck=: ;;
4345  --version | --vers* | -V )
4346    echo "$ac_cs_version"; exit 0 ;;
4347  --he | --h)
4348    # Conflict between --help and --header
4349    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4350Try \`$0 --help' for more information." >&5
4351echo "$as_me: error: ambiguous option: $1
4352Try \`$0 --help' for more information." >&2;}
4353   { (exit 1); exit 1; }; };;
4354  --help | --hel | -h )
4355    echo "$ac_cs_usage"; exit 0 ;;
4356  --debug | --d* | -d )
4357    debug=: ;;
4358  --file | --fil | --fi | --f )
4359    $ac_shift
4360    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4361    ac_need_defaults=false;;
4362  --header | --heade | --head | --hea )
4363    $ac_shift
4364    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4365    ac_need_defaults=false;;
4366  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4367  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4368    ac_cs_silent=: ;;
4369
4370  # This is an error.
4371  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4372Try \`$0 --help' for more information." >&5
4373echo "$as_me: error: unrecognized option: $1
4374Try \`$0 --help' for more information." >&2;}
4375   { (exit 1); exit 1; }; } ;;
4376
4377  *) ac_config_targets="$ac_config_targets $1" ;;
4378
4379  esac
4380  shift
4381done
4382
4383ac_configure_extra_args=
4384
4385if $ac_cs_silent; then
4386  exec 6>/dev/null
4387  ac_configure_extra_args="$ac_configure_extra_args --silent"
4388fi
4389
4390_ACEOF
4391cat >>$CONFIG_STATUS <<_ACEOF
4392if \$ac_cs_recheck; then
4393  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4394  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4395fi
4396
4397_ACEOF
4398
4399cat >>$CONFIG_STATUS <<_ACEOF
4400#
4401# INIT-COMMANDS section.
4402#
4403
4404AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4405
4406_ACEOF
4407
4408
4409
4410cat >>$CONFIG_STATUS <<\_ACEOF
4411for ac_config_target in $ac_config_targets
4412do
4413  case "$ac_config_target" in
4414  # Handling of arguments.
4415  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4416  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4417  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4418echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4419   { (exit 1); exit 1; }; };;
4420  esac
4421done
4422
4423# If the user did not use the arguments to specify the items to instantiate,
4424# then the envvar interface is used.  Set only those that are not.
4425# We use the long form for the default assignment because of an extremely
4426# bizarre bug on SunOS 4.1.3.
4427if $ac_need_defaults; then
4428  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4429  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4430fi
4431
4432# Have a temporary directory for convenience.  Make it in the build tree
4433# simply because there is no reason to put it here, and in addition,
4434# creating and moving files from /tmp can sometimes cause problems.
4435# Create a temporary directory, and hook for its removal unless debugging.
4436$debug ||
4437{
4438  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4439  trap '{ (exit 1); exit 1; }' 1 2 13 15
4440}
4441
4442# Create a (secure) tmp directory for tmp files.
4443
4444{
4445  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4446  test -n "$tmp" && test -d "$tmp"
4447}  ||
4448{
4449  tmp=./confstat$$-$RANDOM
4450  (umask 077 && mkdir $tmp)
4451} ||
4452{
4453   echo "$me: cannot create a temporary directory in ." >&2
4454   { (exit 1); exit 1; }
4455}
4456
4457_ACEOF
4458
4459cat >>$CONFIG_STATUS <<_ACEOF
4460
4461#
4462# CONFIG_FILES section.
4463#
4464
4465# No need to generate the scripts if there are no CONFIG_FILES.
4466# This happens for instance when ./config.status config.h
4467if test -n "\$CONFIG_FILES"; then
4468  # Protect against being on the right side of a sed subst in config.status.
4469  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4470   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4471s,@SHELL@,$SHELL,;t t
4472s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4473s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4474s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4475s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4476s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4477s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4478s,@exec_prefix@,$exec_prefix,;t t
4479s,@prefix@,$prefix,;t t
4480s,@program_transform_name@,$program_transform_name,;t t
4481s,@bindir@,$bindir,;t t
4482s,@sbindir@,$sbindir,;t t
4483s,@libexecdir@,$libexecdir,;t t
4484s,@datadir@,$datadir,;t t
4485s,@sysconfdir@,$sysconfdir,;t t
4486s,@sharedstatedir@,$sharedstatedir,;t t
4487s,@localstatedir@,$localstatedir,;t t
4488s,@libdir@,$libdir,;t t
4489s,@includedir@,$includedir,;t t
4490s,@oldincludedir@,$oldincludedir,;t t
4491s,@infodir@,$infodir,;t t
4492s,@mandir@,$mandir,;t t
4493s,@build_alias@,$build_alias,;t t
4494s,@host_alias@,$host_alias,;t t
4495s,@target_alias@,$target_alias,;t t
4496s,@DEFS@,$DEFS,;t t
4497s,@ECHO_C@,$ECHO_C,;t t
4498s,@ECHO_N@,$ECHO_N,;t t
4499s,@ECHO_T@,$ECHO_T,;t t
4500s,@LIBS@,$LIBS,;t t
4501s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4502s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4503s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4504s,@CYGPATH_W@,$CYGPATH_W,;t t
4505s,@PACKAGE@,$PACKAGE,;t t
4506s,@VERSION@,$VERSION,;t t
4507s,@ACLOCAL@,$ACLOCAL,;t t
4508s,@AUTOCONF@,$AUTOCONF,;t t
4509s,@AUTOMAKE@,$AUTOMAKE,;t t
4510s,@AUTOHEADER@,$AUTOHEADER,;t t
4511s,@MAKEINFO@,$MAKEINFO,;t t
4512s,@AMTAR@,$AMTAR,;t t
4513s,@install_sh@,$install_sh,;t t
4514s,@STRIP@,$STRIP,;t t
4515s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4516s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4517s,@AWK@,$AWK,;t t
4518s,@SET_MAKE@,$SET_MAKE,;t t
4519s,@am__leading_dot@,$am__leading_dot,;t t
4520s,@CC@,$CC,;t t
4521s,@CFLAGS@,$CFLAGS,;t t
4522s,@LDFLAGS@,$LDFLAGS,;t t
4523s,@CPPFLAGS@,$CPPFLAGS,;t t
4524s,@ac_ct_CC@,$ac_ct_CC,;t t
4525s,@EXEEXT@,$EXEEXT,;t t
4526s,@OBJEXT@,$OBJEXT,;t t
4527s,@DEPDIR@,$DEPDIR,;t t
4528s,@am__include@,$am__include,;t t
4529s,@am__quote@,$am__quote,;t t
4530s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4531s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4532s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4533s,@CCDEPMODE@,$CCDEPMODE,;t t
4534s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4535s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4536s,@build@,$build,;t t
4537s,@build_cpu@,$build_cpu,;t t
4538s,@build_vendor@,$build_vendor,;t t
4539s,@build_os@,$build_os,;t t
4540s,@host@,$host,;t t
4541s,@host_cpu@,$host_cpu,;t t
4542s,@host_vendor@,$host_vendor,;t t
4543s,@host_os@,$host_os,;t t
4544s,@LIBRPATHX@,$LIBRPATHX,;t t
4545s,@LTLIBRPATHX@,$LTLIBRPATHX,;t t
4546s,@LIBRPATHY@,$LIBRPATHY,;t t
4547s,@LTLIBRPATHY@,$LTLIBRPATHY,;t t
4548s,@global_top_auxdir@,$global_top_auxdir,;t t
4549s,@LIBOBJS@,$LIBOBJS,;t t
4550s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4551CEOF
4552
4553_ACEOF
4554
4555  cat >>$CONFIG_STATUS <<\_ACEOF
4556  # Split the substitutions into bite-sized pieces for seds with
4557  # small command number limits, like on Digital OSF/1 and HP-UX.
4558  ac_max_sed_lines=48
4559  ac_sed_frag=1 # Number of current file.
4560  ac_beg=1 # First line for current file.
4561  ac_end=$ac_max_sed_lines # Line after last line for current file.
4562  ac_more_lines=:
4563  ac_sed_cmds=
4564  while $ac_more_lines; do
4565    if test $ac_beg -gt 1; then
4566      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4567    else
4568      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4569    fi
4570    if test ! -s $tmp/subs.frag; then
4571      ac_more_lines=false
4572    else
4573      # The purpose of the label and of the branching condition is to
4574      # speed up the sed processing (if there are no `@' at all, there
4575      # is no need to browse any of the substitutions).
4576      # These are the two extra sed commands mentioned above.
4577      (echo ':t
4578  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4579      if test -z "$ac_sed_cmds"; then
4580        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4581      else
4582        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4583      fi
4584      ac_sed_frag=`expr $ac_sed_frag + 1`
4585      ac_beg=$ac_end
4586      ac_end=`expr $ac_end + $ac_max_sed_lines`
4587    fi
4588  done
4589  if test -z "$ac_sed_cmds"; then
4590    ac_sed_cmds=cat
4591  fi
4592fi # test -n "$CONFIG_FILES"
4593
4594_ACEOF
4595cat >>$CONFIG_STATUS <<\_ACEOF
4596for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4597  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4598  case $ac_file in
4599  - | *:- | *:-:* ) # input from stdin
4600        cat >$tmp/stdin
4601        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4602        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4603  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4604        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4605  * )   ac_file_in=$ac_file.in ;;
4606  esac
4607
4608  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4609  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4610$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4611         X"$ac_file" : 'X\(//\)[^/]' \| \
4612         X"$ac_file" : 'X\(//\)$' \| \
4613         X"$ac_file" : 'X\(/\)' \| \
4614         .     : '\(.\)' 2>/dev/null ||
4615echo X"$ac_file" |
4616    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4617          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4618          /^X\(\/\/\)$/{ s//\1/; q; }
4619          /^X\(\/\).*/{ s//\1/; q; }
4620          s/.*/./; q'`
4621  { if $as_mkdir_p; then
4622    mkdir -p "$ac_dir"
4623  else
4624    as_dir="$ac_dir"
4625    as_dirs=
4626    while test ! -d "$as_dir"; do
4627      as_dirs="$as_dir $as_dirs"
4628      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4629$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4630         X"$as_dir" : 'X\(//\)[^/]' \| \
4631         X"$as_dir" : 'X\(//\)$' \| \
4632         X"$as_dir" : 'X\(/\)' \| \
4633         .     : '\(.\)' 2>/dev/null ||
4634echo X"$as_dir" |
4635    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4636          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4637          /^X\(\/\/\)$/{ s//\1/; q; }
4638          /^X\(\/\).*/{ s//\1/; q; }
4639          s/.*/./; q'`
4640    done
4641    test ! -n "$as_dirs" || mkdir $as_dirs
4642  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4643echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4644   { (exit 1); exit 1; }; }; }
4645
4646  ac_builddir=.
4647
4648if test "$ac_dir" != .; then
4649  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4650  # A "../" for each directory in $ac_dir_suffix.
4651  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4652else
4653  ac_dir_suffix= ac_top_builddir=
4654fi
4655
4656case $srcdir in
4657  .)  # No --srcdir option.  We are building in place.
4658    ac_srcdir=.
4659    if test -z "$ac_top_builddir"; then
4660       ac_top_srcdir=.
4661    else
4662       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4663    fi ;;
4664  [\\/]* | ?:[\\/]* )  # Absolute path.
4665    ac_srcdir=$srcdir$ac_dir_suffix;
4666    ac_top_srcdir=$srcdir ;;
4667  *) # Relative path.
4668    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4669    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4670esac
4671case "$ac_dir" in
4672.) ac_abs_builddir=$ac_builddir;;
4673*)
4674  case $ac_builddir in
4675  .) ac_abs_builddir="$ac_dir";;
4676  [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
4677  *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
4678  esac;;
4679esac
4680case "$ac_dir" in
4681.) ac_abs_top_builddir=${ac_top_builddir}.;;
4682*)
4683  case ${ac_top_builddir}. in
4684  .) ac_abs_top_builddir="$ac_dir";;
4685  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4686  *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
4687  esac;;
4688esac
4689case "$ac_dir" in
4690.) ac_abs_srcdir=$ac_srcdir;;
4691*)
4692  case $ac_srcdir in
4693  .) ac_abs_srcdir="$ac_dir";;
4694  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4695  *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
4696  esac;;
4697esac
4698case "$ac_dir" in
4699.) ac_abs_top_srcdir=$ac_top_srcdir;;
4700*)
4701  case $ac_top_srcdir in
4702  .) ac_abs_top_srcdir="$ac_dir";;
4703  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4704  *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
4705  esac;;
4706esac
4707
4708
4709  case $INSTALL in
4710  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4711  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4712  esac
4713
4714  if test x"$ac_file" != x-; then
4715    { echo "$as_me:$LINENO: creating $ac_file" >&5
4716echo "$as_me: creating $ac_file" >&6;}
4717    rm -f "$ac_file"
4718  fi
4719  # Let's still pretend it is `configure' which instantiates (i.e., don't
4720  # use $as_me), people would be surprised to read:
4721  #    /* config.h.  Generated by config.status.  */
4722  if test x"$ac_file" = x-; then
4723    configure_input=
4724  else
4725    configure_input="$ac_file.  "
4726  fi
4727  configure_input=$configure_input"Generated from `echo $ac_file_in |
4728                                     sed 's,.*/,,'` by configure."
4729
4730  # First look for the input files in the build tree, otherwise in the
4731  # src tree.
4732  ac_file_inputs=`IFS=:
4733    for f in $ac_file_in; do
4734      case $f in
4735      -) echo $tmp/stdin ;;
4736      [\\/$]*)
4737         # Absolute (can't be DOS-style, as IFS=:)
4738         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4739echo "$as_me: error: cannot find input file: $f" >&2;}
4740   { (exit 1); exit 1; }; }
4741         echo "$f";;
4742      *) # Relative
4743         if test -f "$f"; then
4744           # Build tree
4745           echo "$f"
4746         elif test -f "$srcdir/$f"; then
4747           # Source tree
4748           echo "$srcdir/$f"
4749         else
4750           # /dev/null tree
4751           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4752echo "$as_me: error: cannot find input file: $f" >&2;}
4753   { (exit 1); exit 1; }; }
4754         fi;;
4755      esac
4756    done` || { (exit 1); exit 1; }
4757_ACEOF
4758cat >>$CONFIG_STATUS <<_ACEOF
4759  sed "$ac_vpsub
4760$extrasub
4761_ACEOF
4762cat >>$CONFIG_STATUS <<\_ACEOF
4763:t
4764/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4765s,@configure_input@,$configure_input,;t t
4766s,@srcdir@,$ac_srcdir,;t t
4767s,@abs_srcdir@,$ac_abs_srcdir,;t t
4768s,@top_srcdir@,$ac_top_srcdir,;t t
4769s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4770s,@builddir@,$ac_builddir,;t t
4771s,@abs_builddir@,$ac_abs_builddir,;t t
4772s,@top_builddir@,$ac_top_builddir,;t t
4773s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4774s,@INSTALL@,$ac_INSTALL,;t t
4775" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4776  rm -f $tmp/stdin
4777  if test x"$ac_file" != x-; then
4778    mv $tmp/out $ac_file
4779  else
4780    cat $tmp/out
4781    rm -f $tmp/out
4782  fi
4783
4784done
4785_ACEOF
4786cat >>$CONFIG_STATUS <<\_ACEOF
4787
4788#
4789# CONFIG_COMMANDS section.
4790#
4791for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4792  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4793  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4794  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4795$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4796         X"$ac_dest" : 'X\(//\)[^/]' \| \
4797         X"$ac_dest" : 'X\(//\)$' \| \
4798         X"$ac_dest" : 'X\(/\)' \| \
4799         .     : '\(.\)' 2>/dev/null ||
4800echo X"$ac_dest" |
4801    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4802          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4803          /^X\(\/\/\)$/{ s//\1/; q; }
4804          /^X\(\/\).*/{ s//\1/; q; }
4805          s/.*/./; q'`
4806  { if $as_mkdir_p; then
4807    mkdir -p "$ac_dir"
4808  else
4809    as_dir="$ac_dir"
4810    as_dirs=
4811    while test ! -d "$as_dir"; do
4812      as_dirs="$as_dir $as_dirs"
4813      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4814$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4815         X"$as_dir" : 'X\(//\)[^/]' \| \
4816         X"$as_dir" : 'X\(//\)$' \| \
4817         X"$as_dir" : 'X\(/\)' \| \
4818         .     : '\(.\)' 2>/dev/null ||
4819echo X"$as_dir" |
4820    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4821          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4822          /^X\(\/\/\)$/{ s//\1/; q; }
4823          /^X\(\/\).*/{ s//\1/; q; }
4824          s/.*/./; q'`
4825    done
4826    test ! -n "$as_dirs" || mkdir $as_dirs
4827  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4828echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4829   { (exit 1); exit 1; }; }; }
4830
4831  ac_builddir=.
4832
4833if test "$ac_dir" != .; then
4834  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4835  # A "../" for each directory in $ac_dir_suffix.
4836  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4837else
4838  ac_dir_suffix= ac_top_builddir=
4839fi
4840
4841case $srcdir in
4842  .)  # No --srcdir option.  We are building in place.
4843    ac_srcdir=.
4844    if test -z "$ac_top_builddir"; then
4845       ac_top_srcdir=.
4846    else
4847       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4848    fi ;;
4849  [\\/]* | ?:[\\/]* )  # Absolute path.
4850    ac_srcdir=$srcdir$ac_dir_suffix;
4851    ac_top_srcdir=$srcdir ;;
4852  *) # Relative path.
4853    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4854    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4855esac
4856case "$ac_dir" in
4857.) ac_abs_builddir=$ac_builddir;;
4858*)
4859  case $ac_builddir in
4860  .) ac_abs_builddir="$ac_dir";;
4861  [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
4862  *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
4863  esac;;
4864esac
4865case "$ac_dir" in
4866.) ac_abs_top_builddir=${ac_top_builddir}.;;
4867*)
4868  case ${ac_top_builddir}. in
4869  .) ac_abs_top_builddir="$ac_dir";;
4870  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4871  *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
4872  esac;;
4873esac
4874case "$ac_dir" in
4875.) ac_abs_srcdir=$ac_srcdir;;
4876*)
4877  case $ac_srcdir in
4878  .) ac_abs_srcdir="$ac_dir";;
4879  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4880  *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
4881  esac;;
4882esac
4883case "$ac_dir" in
4884.) ac_abs_top_srcdir=$ac_top_srcdir;;
4885*)
4886  case $ac_top_srcdir in
4887  .) ac_abs_top_srcdir="$ac_dir";;
4888  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4889  *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
4890  esac;;
4891esac
4892
4893
4894  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4895echo "$as_me: executing $ac_dest commands" >&6;}
4896  case $ac_dest in
4897    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4898  # Strip MF so we end up with the name of the file.
4899  mf=`echo "$mf" | sed -e 's/:.*$//'`
4900  # Check whether this is an Automake generated Makefile or not.
4901  # We used to match only the files named `Makefile.in', but
4902  # some people rename them; so instead we look at the file content.
4903  # Grep'ing the first line is not enough: some people post-process
4904  # each Makefile.in and add a new line on top of each file to say so.
4905  # So let's grep whole file.
4906  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4907    dirpart=`(dirname "$mf") 2>/dev/null ||
4908$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4909         X"$mf" : 'X\(//\)[^/]' \| \
4910         X"$mf" : 'X\(//\)$' \| \
4911         X"$mf" : 'X\(/\)' \| \
4912         .     : '\(.\)' 2>/dev/null ||
4913echo X"$mf" |
4914    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4915          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4916          /^X\(\/\/\)$/{ s//\1/; q; }
4917          /^X\(\/\).*/{ s//\1/; q; }
4918          s/.*/./; q'`
4919  else
4920    continue
4921  fi
4922  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
4923  # Extract the definition of DEP_FILES from the Makefile without
4924  # running `make'.
4925  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
4926  test -z "$DEPDIR" && continue
4927  # When using ansi2knr, U may be empty or an underscore; expand it
4928  U=`sed -n -e '/^U = / s///p' < "$mf"`
4929  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
4930  # We invoke sed twice because it is the simplest approach to
4931  # changing $(DEPDIR) to its actual value in the expansion.
4932  for file in `sed -n -e '
4933    /^DEP_FILES = .*\\\\$/ {
4934      s/^DEP_FILES = //
4935      :loop
4936        s/\\\\$//
4937        p
4938        n
4939        /\\\\$/ b loop
4940      p
4941    }
4942    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
4943       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4944    # Make sure the directory exists.
4945    test -f "$dirpart/$file" && continue
4946    fdir=`(dirname "$file") 2>/dev/null ||
4947$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4948         X"$file" : 'X\(//\)[^/]' \| \
4949         X"$file" : 'X\(//\)$' \| \
4950         X"$file" : 'X\(/\)' \| \
4951         .     : '\(.\)' 2>/dev/null ||
4952echo X"$file" |
4953    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4954          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4955          /^X\(\/\/\)$/{ s//\1/; q; }
4956          /^X\(\/\).*/{ s//\1/; q; }
4957          s/.*/./; q'`
4958    { if $as_mkdir_p; then
4959    mkdir -p $dirpart/$fdir
4960  else
4961    as_dir=$dirpart/$fdir
4962    as_dirs=
4963    while test ! -d "$as_dir"; do
4964      as_dirs="$as_dir $as_dirs"
4965      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4966$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4967         X"$as_dir" : 'X\(//\)[^/]' \| \
4968         X"$as_dir" : 'X\(//\)$' \| \
4969         X"$as_dir" : 'X\(/\)' \| \
4970         .     : '\(.\)' 2>/dev/null ||
4971echo X"$as_dir" |
4972    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4973          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4974          /^X\(\/\/\)$/{ s//\1/; q; }
4975          /^X\(\/\).*/{ s//\1/; q; }
4976          s/.*/./; q'`
4977    done
4978    test ! -n "$as_dirs" || mkdir $as_dirs
4979  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
4980echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
4981   { (exit 1); exit 1; }; }; }
4982
4983    # echo "creating $dirpart/$file"
4984    echo '# dummy' > "$dirpart/$file"
4985  done
4986done
4987 ;;
4988  esac
4989done
4990_ACEOF
4991
4992cat >>$CONFIG_STATUS <<\_ACEOF
4993
4994{ (exit 0); exit 0; }
4995_ACEOF
4996chmod +x $CONFIG_STATUS
4997ac_clean_files=$ac_clean_files_save
4998
4999
5000# configure is writing to config.log, and then calls config.status.
5001# config.status does its own redirection, appending to config.log.
5002# Unfortunately, on DOS this fails, as config.log is still kept open
5003# by configure, so config.status won't be able to write to it; its
5004# output is simply discarded.  So we exec the FD to /dev/null,
5005# effectively closing config.log, so it can be properly (re)opened and
5006# appended to by config.status.  When coming back to configure, we
5007# need to make the FD available again.
5008if test "$no_create" != yes; then
5009  ac_cs_success=:
5010  ac_config_status_args=
5011  test "$silent" = yes &&
5012    ac_config_status_args="$ac_config_status_args --quiet"
5013  exec 5>/dev/null
5014  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5015  exec 5>>config.log
5016  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5017  # would make configure fail if this is the last instruction.
5018  $ac_cs_success || { (exit 1); exit 1; }
5019fi
5020
Note: See TracBrowser for help on using the repository browser.