No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / autoconf-lib-link / tests / rpathlyx / configure
blob56097813465498971dca033a425069c75fe2d5da
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for 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
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
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if 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=:
96 rm -f conf$$.sh
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
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
152 done
154 esac
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 '
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; }; }
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
187 case `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= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="configure.ac"
275 ac_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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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'
276 ac_subst_files=''
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
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.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
316 ac_prev=
317 for ac_option
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
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
330 case $ac_option in
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335 bindir=$ac_optarg ;;
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
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 ;;
349 --config-cache | -C)
350 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
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 ;;
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
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 ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
420 libdir=$ac_optarg ;;
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 ;;
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 ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441 mandir=$ac_optarg ;;
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
449 no_create=yes ;;
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 ;;
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 ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
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 ;;
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 ;;
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
524 site=$ac_optarg ;;
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529 srcdir=$ac_optarg ;;
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 ;;
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 ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
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'" ;;
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" ;;
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
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 ;;
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 ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
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 ;;
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}
612 esac
613 done
615 if 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; }; }
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
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
630 done
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
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
642 done
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.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
651 # FIXME: To remove some day.
652 if 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
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665 test "$silent" = yes && exec 6>/dev/null
668 # Find the source files, if location was not specified.
669 if 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 ||
678 echo 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=..
688 else
689 ac_srcdir_defaulted=no
691 if 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; }; }
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; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
734 # Report the --help message.
736 if 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.
742 Usage: $0 [OPTION]... [VAR=VALUE]...
744 To assign environment variables (e.g., CC, CFLAGS...), specify them as
745 VAR=VALUE. See below for descriptions of some of the useful variables.
747 Defaults for the options are specified in brackets.
749 Configuration:
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 \`..']
760 _ACEOF
762 cat <<_ACEOF
763 Installation 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]
769 By default, \`make install' will install all the files in
770 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
771 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772 for instance \`--prefix=\$HOME'.
774 For better control, use the options below.
776 Fine 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
791 cat <<\_ACEOF
793 Program 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
798 System 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
804 if test -n "$ac_init_help"; then
806 cat <<\_ACEOF
808 Optional 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 build
812 --enable-dependency-tracking do not reject slow dependency extractors
813 --disable-rpath do not hardcode runtime library paths
815 Optional 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
824 Some 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>
832 Use these variables to override the choices made by `configure' or to help
833 it to find libraries and programs with nonstandard names/locations.
835 _ACEOF
838 if 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=.
845 if 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'`
849 else
850 ac_dir_suffix= ac_top_builddir=
853 case $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 ;;
867 esac
869 # Do not use `cd foo && pwd` to compute absolute paths, because
870 # the directories may not exist.
871 case `pwd` in
872 .) ac_abs_builddir="$ac_dir";;
874 case "$ac_dir" in
875 .) ac_abs_builddir=`pwd`;;
876 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
877 *) ac_abs_builddir=`pwd`/"$ac_dir";;
878 esac;;
879 esac
880 case $ac_abs_builddir in
881 .) ac_abs_top_builddir=${ac_top_builddir}.;;
883 case ${ac_top_builddir}. in
884 .) ac_abs_top_builddir=$ac_abs_builddir;;
885 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
886 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
887 esac;;
888 esac
889 case $ac_abs_builddir in
890 .) ac_abs_srcdir=$ac_srcdir;;
892 case $ac_srcdir in
893 .) ac_abs_srcdir=$ac_abs_builddir;;
894 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
895 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
896 esac;;
897 esac
898 case $ac_abs_builddir in
899 .) ac_abs_top_srcdir=$ac_top_srcdir;;
901 case $ac_top_srcdir in
902 .) ac_abs_top_srcdir=$ac_abs_builddir;;
903 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
904 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
905 esac;;
906 esac
908 cd $ac_dir
909 # Check for guested configure; otherwise get Cygnus style configure.
910 if test -f $ac_srcdir/configure.gnu; then
911 echo
912 $SHELL $ac_srcdir/configure.gnu --help=recursive
913 elif test -f $ac_srcdir/configure; then
914 echo
915 $SHELL $ac_srcdir/configure --help=recursive
916 elif test -f $ac_srcdir/configure.ac ||
917 test -f $ac_srcdir/configure.in; then
918 echo
919 $ac_configure --help
920 else
921 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
923 cd $ac_popdir
924 done
927 test -n "$ac_init_help" && exit 0
928 if $ac_init_version; then
929 cat <<\_ACEOF
931 Copyright (C) 2003 Free Software Foundation, Inc.
932 This configure script is free software; the Free Software Foundation
933 gives unlimited permission to copy, distribute and modify it.
934 _ACEOF
935 exit 0
937 exec 5>config.log
938 cat >&5 <<_ACEOF
939 This file contains any messages produced by compilers while
940 running configure, to aid debugging if configure makes a mistake.
942 It was created by $as_me, which was
943 generated by GNU Autoconf 2.59. Invocation command line was
945 $ $0 $@
947 _ACEOF
949 cat <<_ASUNAME
950 ## --------- ##
951 ## Platform. ##
952 ## --------- ##
954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
961 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
963 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
964 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
966 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
967 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
968 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
969 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
971 _ASUNAME
973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974 for as_dir in $PATH
976 IFS=$as_save_IFS
977 test -z "$as_dir" && as_dir=.
978 echo "PATH: $as_dir"
979 done
981 } >&5
983 cat >&5 <<_ACEOF
986 ## ----------- ##
987 ## Core tests. ##
988 ## ----------- ##
990 _ACEOF
993 # Keep a trace of the command line.
994 # Strip out --no-create and --no-recursion so they do not pile up.
995 # Strip out --silent because we don't want to record it for future runs.
996 # Also quote any args containing shell meta-characters.
997 # Make two passes to allow for proper duplicate-argument suppression.
998 ac_configure_args=
999 ac_configure_args0=
1000 ac_configure_args1=
1001 ac_sep=
1002 ac_must_keep_next=false
1003 for ac_pass in 1 2
1005 for ac_arg
1007 case $ac_arg in
1008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010 | -silent | --silent | --silen | --sile | --sil)
1011 continue ;;
1012 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1013 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1014 esac
1015 case $ac_pass in
1016 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1018 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1019 if test $ac_must_keep_next = true; then
1020 ac_must_keep_next=false # Got value, back to normal.
1021 else
1022 case $ac_arg in
1023 *=* | --config-cache | -C | -disable-* | --disable-* \
1024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1026 | -with-* | --with-* | -without-* | --without-* | --x)
1027 case "$ac_configure_args0 " in
1028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1029 esac
1031 -* ) ac_must_keep_next=true ;;
1032 esac
1034 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1035 # Get rid of the leading space.
1036 ac_sep=" "
1038 esac
1039 done
1040 done
1041 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1042 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log. We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1052 echo
1054 cat <<\_ASBOX
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1058 _ASBOX
1059 echo
1060 # The following way of writing the cache mishandles newlines in values,
1062 (set) 2>&1 |
1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064 *ac_space=\ *)
1065 sed -n \
1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 sed -n \
1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1073 esac;
1075 echo
1077 cat <<\_ASBOX
1078 ## ----------------- ##
1079 ## Output variables. ##
1080 ## ----------------- ##
1081 _ASBOX
1082 echo
1083 for ac_var in $ac_subst_vars
1085 eval ac_val=$`echo $ac_var`
1086 echo "$ac_var='"'"'$ac_val'"'"'"
1087 done | sort
1088 echo
1090 if test -n "$ac_subst_files"; then
1091 cat <<\_ASBOX
1092 ## ------------- ##
1093 ## Output files. ##
1094 ## ------------- ##
1095 _ASBOX
1096 echo
1097 for ac_var in $ac_subst_files
1099 eval ac_val=$`echo $ac_var`
1100 echo "$ac_var='"'"'$ac_val'"'"'"
1101 done | sort
1102 echo
1105 if test -s confdefs.h; then
1106 cat <<\_ASBOX
1107 ## ----------- ##
1108 ## confdefs.h. ##
1109 ## ----------- ##
1110 _ASBOX
1111 echo
1112 sed "/^$/d" confdefs.h | sort
1113 echo
1115 test "$ac_signal" != 0 &&
1116 echo "$as_me: caught signal $ac_signal"
1117 echo "$as_me: exit $exit_status"
1118 } >&5
1119 rm -f core *.core &&
1120 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1121 exit $exit_status
1123 for ac_signal in 1 2 13 15; do
1124 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1125 done
1126 ac_signal=0
1128 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1129 rm -rf conftest* confdefs.h
1130 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1131 echo >confdefs.h
1133 # Predefined preprocessor variables.
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_NAME "$PACKAGE_NAME"
1137 _ACEOF
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1142 _ACEOF
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1147 _ACEOF
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_STRING "$PACKAGE_STRING"
1152 _ACEOF
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1157 _ACEOF
1160 # Let the site file select an alternate cache file if it wants to.
1161 # Prefer explicitly selected file to automatically selected ones.
1162 if test -z "$CONFIG_SITE"; then
1163 if test "x$prefix" != xNONE; then
1164 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1165 else
1166 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1169 for ac_site_file in $CONFIG_SITE; do
1170 if test -r "$ac_site_file"; then
1171 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1172 echo "$as_me: loading site script $ac_site_file" >&6;}
1173 sed 's/^/| /' "$ac_site_file" >&5
1174 . "$ac_site_file"
1176 done
1178 if test -r "$cache_file"; then
1179 # Some versions of bash will fail to source /dev/null (special
1180 # files actually), so we avoid doing that.
1181 if test -f "$cache_file"; then
1182 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1183 echo "$as_me: loading cache $cache_file" >&6;}
1184 case $cache_file in
1185 [\\/]* | ?:[\\/]* ) . $cache_file;;
1186 *) . ./$cache_file;;
1187 esac
1189 else
1190 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1191 echo "$as_me: creating cache $cache_file" >&6;}
1192 >$cache_file
1195 # Check that the precious variables saved in the cache have kept the same
1196 # value.
1197 ac_cache_corrupted=false
1198 for ac_var in `(set) 2>&1 |
1199 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1200 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1201 eval ac_new_set=\$ac_env_${ac_var}_set
1202 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1203 eval ac_new_val="\$ac_env_${ac_var}_value"
1204 case $ac_old_set,$ac_new_set in
1205 set,)
1206 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1207 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1208 ac_cache_corrupted=: ;;
1209 ,set)
1210 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1211 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1212 ac_cache_corrupted=: ;;
1213 ,);;
1215 if test "x$ac_old_val" != "x$ac_new_val"; then
1216 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1217 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1218 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1219 echo "$as_me: former value: $ac_old_val" >&2;}
1220 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1221 echo "$as_me: current value: $ac_new_val" >&2;}
1222 ac_cache_corrupted=:
1223 fi;;
1224 esac
1225 # Pass precious variables to config.status.
1226 if test "$ac_new_set" = set; then
1227 case $ac_new_val in
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 *) ac_arg=$ac_var=$ac_new_val ;;
1231 esac
1232 case " $ac_configure_args " in
1233 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1234 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1235 esac
1237 done
1238 if $ac_cache_corrupted; then
1239 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1240 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1241 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1242 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1243 { (exit 1); exit 1; }; }
1246 ac_ext=c
1247 ac_cpp='$CPP $CPPFLAGS'
1248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1270 ac_aux_dir=
1271 for ac_dir in ../../../build-aux $srcdir/../../../build-aux; do
1272 if test -f $ac_dir/install-sh; then
1273 ac_aux_dir=$ac_dir
1274 ac_install_sh="$ac_aux_dir/install-sh -c"
1275 break
1276 elif test -f $ac_dir/install.sh; then
1277 ac_aux_dir=$ac_dir
1278 ac_install_sh="$ac_aux_dir/install.sh -c"
1279 break
1280 elif test -f $ac_dir/shtool; then
1281 ac_aux_dir=$ac_dir
1282 ac_install_sh="$ac_aux_dir/shtool install -c"
1283 break
1285 done
1286 if test -z "$ac_aux_dir"; then
1287 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux $srcdir/../../../build-aux" >&5
1288 echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux $srcdir/../../../build-aux" >&2;}
1289 { (exit 1); exit 1; }; }
1291 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1292 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1293 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1295 am__api_version="1.9"
1296 # Find a good install program. We prefer a C program (faster),
1297 # so one script is as good as another. But avoid the broken or
1298 # incompatible versions:
1299 # SysV /etc/install, /usr/sbin/install
1300 # SunOS /usr/etc/install
1301 # IRIX /sbin/install
1302 # AIX /bin/install
1303 # AmigaOS /C/install, which installs bootblocks on floppy discs
1304 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1305 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1306 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1307 # OS/2's system install, which has a completely different semantic
1308 # ./install, which can be erroneously created by make from ./install.sh.
1309 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1310 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1311 if test -z "$INSTALL"; then
1312 if test "${ac_cv_path_install+set}" = set; then
1313 echo $ECHO_N "(cached) $ECHO_C" >&6
1314 else
1315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1316 for as_dir in $PATH
1318 IFS=$as_save_IFS
1319 test -z "$as_dir" && as_dir=.
1320 # Account for people who put trailing slashes in PATH elements.
1321 case $as_dir/ in
1322 ./ | .// | /cC/* | \
1323 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1324 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1325 /usr/ucb/* ) ;;
1327 # OSF1 and SCO ODT 3.0 have their own names for install.
1328 # Don't use installbsd from OSF since it installs stuff as root
1329 # by default.
1330 for ac_prog in ginstall scoinst install; do
1331 for ac_exec_ext in '' $ac_executable_extensions; do
1332 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1333 if test $ac_prog = install &&
1334 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1335 # AIX install. It has an incompatible calling convention.
1337 elif test $ac_prog = install &&
1338 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1339 # program-specific install script used by HP pwplus--don't use.
1341 else
1342 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1343 break 3
1346 done
1347 done
1349 esac
1350 done
1354 if test "${ac_cv_path_install+set}" = set; then
1355 INSTALL=$ac_cv_path_install
1356 else
1357 # As a last resort, use the slow shell script. We don't cache a
1358 # path for INSTALL within a source directory, because that will
1359 # break other packages using the cache if that directory is
1360 # removed, or if the path is relative.
1361 INSTALL=$ac_install_sh
1364 echo "$as_me:$LINENO: result: $INSTALL" >&5
1365 echo "${ECHO_T}$INSTALL" >&6
1367 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1368 # It thinks the first close brace ends the variable substitution.
1369 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1371 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1373 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1375 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1376 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1377 # Just in case
1378 sleep 1
1379 echo timestamp > conftest.file
1380 # Do `set' in a subshell so we don't clobber the current shell's
1381 # arguments. Must try -L first in case configure is actually a
1382 # symlink; some systems play weird games with the mod time of symlinks
1383 # (eg FreeBSD returns the mod time of the symlink's containing
1384 # directory).
1385 if (
1386 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1387 if test "$*" = "X"; then
1388 # -L didn't work.
1389 set X `ls -t $srcdir/configure conftest.file`
1391 rm -f conftest.file
1392 if test "$*" != "X $srcdir/configure conftest.file" \
1393 && test "$*" != "X conftest.file $srcdir/configure"; then
1395 # If neither matched, then we have a broken ls. This can happen
1396 # if, for instance, CONFIG_SHELL is bash and it inherits a
1397 # broken ls alias from the environment. This has actually
1398 # happened. Such a system could not be considered "sane".
1399 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1400 alias in your environment" >&5
1401 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1402 alias in your environment" >&2;}
1403 { (exit 1); exit 1; }; }
1406 test "$2" = conftest.file
1408 then
1409 # Ok.
1411 else
1412 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1413 Check your system clock" >&5
1414 echo "$as_me: error: newly created file is older than distributed files!
1415 Check your system clock" >&2;}
1416 { (exit 1); exit 1; }; }
1418 echo "$as_me:$LINENO: result: yes" >&5
1419 echo "${ECHO_T}yes" >&6
1420 test "$program_prefix" != NONE &&
1421 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1422 # Use a double $ so make ignores it.
1423 test "$program_suffix" != NONE &&
1424 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1425 # Double any \ or $. echo might interpret backslashes.
1426 # By default was `s,x,x', remove it if useless.
1427 cat <<\_ACEOF >conftest.sed
1428 s/[\\$]/&&/g;s/;s,x,x,$//
1429 _ACEOF
1430 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1431 rm conftest.sed
1433 # expand $ac_aux_dir to an absolute path
1434 am_aux_dir=`cd $ac_aux_dir && pwd`
1436 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1437 # Use eval to expand $SHELL
1438 if eval "$MISSING --run true"; then
1439 am_missing_run="$MISSING --run "
1440 else
1441 am_missing_run=
1442 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1443 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1446 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1447 # We used to keeping the `.' as first argument, in order to
1448 # allow $(mkdir_p) to be used without argument. As in
1449 # $(mkdir_p) $(somedir)
1450 # where $(somedir) is conditionally defined. However this is wrong
1451 # for two reasons:
1452 # 1. if the package is installed by a user who cannot write `.'
1453 # make install will fail,
1454 # 2. the above comment should most certainly read
1455 # $(mkdir_p) $(DESTDIR)$(somedir)
1456 # so it does not work when $(somedir) is undefined and
1457 # $(DESTDIR) is not.
1458 # To support the latter case, we have to write
1459 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1460 # so the `.' trick is pointless.
1461 mkdir_p='mkdir -p --'
1462 else
1463 # On NextStep and OpenStep, the `mkdir' command does not
1464 # recognize any option. It will interpret all options as
1465 # directories to create, and then abort because `.' already
1466 # exists.
1467 for d in ./-p ./--version;
1469 test -d $d && rmdir $d
1470 done
1471 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1472 if test -f "$ac_aux_dir/mkinstalldirs"; then
1473 mkdir_p='$(mkinstalldirs)'
1474 else
1475 mkdir_p='$(install_sh) -d'
1479 for ac_prog in gawk mawk nawk awk
1481 # Extract the first word of "$ac_prog", so it can be a program name with args.
1482 set dummy $ac_prog; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_AWK+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 if test -n "$AWK"; then
1489 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1490 else
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 ac_cv_prog_AWK="$ac_prog"
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 break 2
1502 done
1503 done
1507 AWK=$ac_cv_prog_AWK
1508 if test -n "$AWK"; then
1509 echo "$as_me:$LINENO: result: $AWK" >&5
1510 echo "${ECHO_T}$AWK" >&6
1511 else
1512 echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1516 test -n "$AWK" && break
1517 done
1519 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1520 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1521 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1522 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 cat >conftest.make <<\_ACEOF
1526 all:
1527 @echo 'ac_maketemp="$(MAKE)"'
1528 _ACEOF
1529 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1530 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1531 if test -n "$ac_maketemp"; then
1532 eval ac_cv_prog_make_${ac_make}_set=yes
1533 else
1534 eval ac_cv_prog_make_${ac_make}_set=no
1536 rm -f conftest.make
1538 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1539 echo "$as_me:$LINENO: result: yes" >&5
1540 echo "${ECHO_T}yes" >&6
1541 SET_MAKE=
1542 else
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1545 SET_MAKE="MAKE=${MAKE-make}"
1548 rm -rf .tst 2>/dev/null
1549 mkdir .tst 2>/dev/null
1550 if test -d .tst; then
1551 am__leading_dot=.
1552 else
1553 am__leading_dot=_
1555 rmdir .tst 2>/dev/null
1557 # test to see if srcdir already configured
1558 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1559 test -f $srcdir/config.status; then
1560 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1561 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1562 { (exit 1); exit 1; }; }
1565 # test whether we have cygpath
1566 if test -z "$CYGPATH_W"; then
1567 if (cygpath --version) >/dev/null 2>/dev/null; then
1568 CYGPATH_W='cygpath -w'
1569 else
1570 CYGPATH_W=echo
1575 # Define the identity of the package.
1576 PACKAGE=gettext_rpathlyx
1577 VERSION=0
1580 cat >>confdefs.h <<_ACEOF
1581 #define PACKAGE "$PACKAGE"
1582 _ACEOF
1585 cat >>confdefs.h <<_ACEOF
1586 #define VERSION "$VERSION"
1587 _ACEOF
1589 # Some tools Automake needs.
1591 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1594 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1597 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1600 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1603 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1605 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1607 # Installed binaries are usually stripped using `strip' when the user
1608 # run `make install-strip'. However `strip' might not be the right
1609 # tool to use in cross-compilation environments, therefore Automake
1610 # will honor the `STRIP' environment variable to overrule this program.
1611 if test "$cross_compiling" != no; then
1612 if test -n "$ac_tool_prefix"; then
1613 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1614 set dummy ${ac_tool_prefix}strip; ac_word=$2
1615 echo "$as_me:$LINENO: checking for $ac_word" >&5
1616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617 if test "${ac_cv_prog_STRIP+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620 if test -n "$STRIP"; then
1621 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1622 else
1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624 for as_dir in $PATH
1626 IFS=$as_save_IFS
1627 test -z "$as_dir" && as_dir=.
1628 for ac_exec_ext in '' $ac_executable_extensions; do
1629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1630 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 break 2
1634 done
1635 done
1639 STRIP=$ac_cv_prog_STRIP
1640 if test -n "$STRIP"; then
1641 echo "$as_me:$LINENO: result: $STRIP" >&5
1642 echo "${ECHO_T}$STRIP" >&6
1643 else
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1649 if test -z "$ac_cv_prog_STRIP"; then
1650 ac_ct_STRIP=$STRIP
1651 # Extract the first word of "strip", so it can be a program name with args.
1652 set dummy strip; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658 if test -n "$ac_ct_STRIP"; then
1659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1660 else
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_ac_ct_STRIP="strip"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 break 2
1672 done
1673 done
1675 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1678 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1679 if test -n "$ac_ct_STRIP"; then
1680 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1681 echo "${ECHO_T}$ac_ct_STRIP" >&6
1682 else
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1687 STRIP=$ac_ct_STRIP
1688 else
1689 STRIP="$ac_cv_prog_STRIP"
1693 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1695 # We need awk for the "check" target. The system "awk" is bad on
1696 # some platforms.
1697 # Always define AMTAR for backward compatibility.
1699 AMTAR=${AMTAR-"${am_missing_run}tar"}
1701 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1707 ac_ext=c
1708 ac_cpp='$CPP $CPPFLAGS'
1709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1712 if test -n "$ac_tool_prefix"; then
1713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1714 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_CC+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720 if test -n "$CC"; then
1721 ac_cv_prog_CC="$CC" # Let the user override the test.
1722 else
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 for as_dir in $PATH
1726 IFS=$as_save_IFS
1727 test -z "$as_dir" && as_dir=.
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 break 2
1734 done
1735 done
1739 CC=$ac_cv_prog_CC
1740 if test -n "$CC"; then
1741 echo "$as_me:$LINENO: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1743 else
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1749 if test -z "$ac_cv_prog_CC"; then
1750 ac_ct_CC=$CC
1751 # Extract the first word of "gcc", so it can be a program name with args.
1752 set dummy gcc; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758 if test -n "$ac_ct_CC"; then
1759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1760 else
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1764 IFS=$as_save_IFS
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 ac_cv_prog_ac_ct_CC="gcc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 break 2
1772 done
1773 done
1777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1778 if test -n "$ac_ct_CC"; then
1779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1780 echo "${ECHO_T}$ac_ct_CC" >&6
1781 else
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1786 CC=$ac_ct_CC
1787 else
1788 CC="$ac_cv_prog_CC"
1791 if test -z "$CC"; then
1792 if test -n "$ac_tool_prefix"; then
1793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1794 set dummy ${ac_tool_prefix}cc; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1802 else
1803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804 for as_dir in $PATH
1806 IFS=$as_save_IFS
1807 test -z "$as_dir" && as_dir=.
1808 for ac_exec_ext in '' $ac_executable_extensions; do
1809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810 ac_cv_prog_CC="${ac_tool_prefix}cc"
1811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 break 2
1814 done
1815 done
1819 CC=$ac_cv_prog_CC
1820 if test -n "$CC"; then
1821 echo "$as_me:$LINENO: result: $CC" >&5
1822 echo "${ECHO_T}$CC" >&6
1823 else
1824 echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1829 if test -z "$ac_cv_prog_CC"; then
1830 ac_ct_CC=$CC
1831 # Extract the first word of "cc", so it can be a program name with args.
1832 set dummy cc; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838 if test -n "$ac_ct_CC"; then
1839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_ac_ct_CC="cc"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1852 done
1853 done
1857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1858 if test -n "$ac_ct_CC"; then
1859 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1860 echo "${ECHO_T}$ac_ct_CC" >&6
1861 else
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1866 CC=$ac_ct_CC
1867 else
1868 CC="$ac_cv_prog_CC"
1872 if test -z "$CC"; then
1873 # Extract the first word of "cc", so it can be a program name with args.
1874 set dummy cc; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$CC"; then
1881 ac_cv_prog_CC="$CC" # Let the user override the test.
1882 else
1883 ac_prog_rejected=no
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1892 ac_prog_rejected=yes
1893 continue
1895 ac_cv_prog_CC="cc"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 break 2
1899 done
1900 done
1902 if test $ac_prog_rejected = yes; then
1903 # We found a bogon in the path, so make sure we never use it.
1904 set dummy $ac_cv_prog_CC
1905 shift
1906 if test $# != 0; then
1907 # We chose a different compiler from the bogus one.
1908 # However, it has the same basename, so the bogon will be chosen
1909 # first if we set CC to just the basename; use the full file name.
1910 shift
1911 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1916 CC=$ac_cv_prog_CC
1917 if test -n "$CC"; then
1918 echo "$as_me:$LINENO: result: $CC" >&5
1919 echo "${ECHO_T}$CC" >&6
1920 else
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1926 if test -z "$CC"; then
1927 if test -n "$ac_tool_prefix"; then
1928 for ac_prog in cl
1930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 if test -n "$CC"; then
1938 ac_cv_prog_CC="$CC" # Let the user override the test.
1939 else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 break 2
1951 done
1952 done
1956 CC=$ac_cv_prog_CC
1957 if test -n "$CC"; then
1958 echo "$as_me:$LINENO: result: $CC" >&5
1959 echo "${ECHO_T}$CC" >&6
1960 else
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1965 test -n "$CC" && break
1966 done
1968 if test -z "$CC"; then
1969 ac_ct_CC=$CC
1970 for ac_prog in cl
1972 # Extract the first word of "$ac_prog", so it can be a program name with args.
1973 set dummy $ac_prog; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979 if test -n "$ac_ct_CC"; then
1980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1981 else
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989 ac_cv_prog_ac_ct_CC="$ac_prog"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 break 2
1993 done
1994 done
1998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1999 if test -n "$ac_ct_CC"; then
2000 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2001 echo "${ECHO_T}$ac_ct_CC" >&6
2002 else
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2007 test -n "$ac_ct_CC" && break
2008 done
2010 CC=$ac_ct_CC
2016 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2017 See \`config.log' for more details." >&5
2018 echo "$as_me: error: no acceptable C compiler found in \$PATH
2019 See \`config.log' for more details." >&2;}
2020 { (exit 1); exit 1; }; }
2022 # Provide some information about the compiler.
2023 echo "$as_me:$LINENO:" \
2024 "checking for C compiler version" >&5
2025 ac_compiler=`set X $ac_compile; echo $2`
2026 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2027 (eval $ac_compiler --version </dev/null >&5) 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }
2031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2032 (eval $ac_compiler -v </dev/null >&5) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }
2036 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2037 (eval $ac_compiler -V </dev/null >&5) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }
2042 cat >conftest.$ac_ext <<_ACEOF
2043 /* confdefs.h. */
2044 _ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h. */
2050 main ()
2054 return 0;
2056 _ACEOF
2057 ac_clean_files_save=$ac_clean_files
2058 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2059 # Try to create an executable without -o first, disregard a.out.
2060 # It will help us diagnose broken compilers, and finding out an intuition
2061 # of exeext.
2062 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2063 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2064 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2065 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2066 (eval $ac_link_default) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; then
2070 # Find the output, starting from the most likely. This scheme is
2071 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2072 # resort.
2074 # Be careful to initialize this variable, since it used to be cached.
2075 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2076 ac_cv_exeext=
2077 # b.out is created by i960 compilers.
2078 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2080 test -f "$ac_file" || continue
2081 case $ac_file in
2082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2084 conftest.$ac_ext )
2085 # This is the source file.
2087 [ab].out )
2088 # We found the default executable, but exeext='' is most
2089 # certainly right.
2090 break;;
2091 *.* )
2092 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2093 # FIXME: I believe we export ac_cv_exeext for Libtool,
2094 # but it would be cool to find out if it's true. Does anybody
2095 # maintain Libtool? --akim.
2096 export ac_cv_exeext
2097 break;;
2099 break;;
2100 esac
2101 done
2102 else
2103 echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2106 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: C compiler cannot create executables
2109 See \`config.log' for more details." >&2;}
2110 { (exit 77); exit 77; }; }
2113 ac_exeext=$ac_cv_exeext
2114 echo "$as_me:$LINENO: result: $ac_file" >&5
2115 echo "${ECHO_T}$ac_file" >&6
2117 # Check the compiler produces executables we can run. If not, either
2118 # the compiler is broken, or we cross compile.
2119 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2120 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2121 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2122 # If not cross compiling, check that we can run a simple program.
2123 if test "$cross_compiling" != yes; then
2124 if { ac_try='./$ac_file'
2125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2126 (eval $ac_try) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }; }; then
2130 cross_compiling=no
2131 else
2132 if test "$cross_compiling" = maybe; then
2133 cross_compiling=yes
2134 else
2135 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2136 If you meant to cross compile, use \`--host'.
2137 See \`config.log' for more details." >&5
2138 echo "$as_me: error: cannot run C compiled programs.
2139 If you meant to cross compile, use \`--host'.
2140 See \`config.log' for more details." >&2;}
2141 { (exit 1); exit 1; }; }
2145 echo "$as_me:$LINENO: result: yes" >&5
2146 echo "${ECHO_T}yes" >&6
2148 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2149 ac_clean_files=$ac_clean_files_save
2150 # Check the compiler produces executables we can run. If not, either
2151 # the compiler is broken, or we cross compile.
2152 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2153 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2154 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2155 echo "${ECHO_T}$cross_compiling" >&6
2157 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2158 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2160 (eval $ac_link) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; then
2164 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2165 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2166 # work properly (i.e., refer to `conftest.exe'), while it won't with
2167 # `rm'.
2168 for ac_file in conftest.exe conftest conftest.*; do
2169 test -f "$ac_file" || continue
2170 case $ac_file in
2171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2172 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 export ac_cv_exeext
2174 break;;
2175 * ) break;;
2176 esac
2177 done
2178 else
2179 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2180 See \`config.log' for more details." >&5
2181 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2182 See \`config.log' for more details." >&2;}
2183 { (exit 1); exit 1; }; }
2186 rm -f conftest$ac_cv_exeext
2187 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2188 echo "${ECHO_T}$ac_cv_exeext" >&6
2190 rm -f conftest.$ac_ext
2191 EXEEXT=$ac_cv_exeext
2192 ac_exeext=$EXEEXT
2193 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2194 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2195 if test "${ac_cv_objext+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198 cat >conftest.$ac_ext <<_ACEOF
2199 /* confdefs.h. */
2200 _ACEOF
2201 cat confdefs.h >>conftest.$ac_ext
2202 cat >>conftest.$ac_ext <<_ACEOF
2203 /* end confdefs.h. */
2206 main ()
2210 return 0;
2212 _ACEOF
2213 rm -f conftest.o conftest.obj
2214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215 (eval $ac_compile) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; then
2219 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2220 case $ac_file in
2221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2222 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2223 break;;
2224 esac
2225 done
2226 else
2227 echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2230 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2231 See \`config.log' for more details." >&5
2232 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2233 See \`config.log' for more details." >&2;}
2234 { (exit 1); exit 1; }; }
2237 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2239 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2240 echo "${ECHO_T}$ac_cv_objext" >&6
2241 OBJEXT=$ac_cv_objext
2242 ac_objext=$OBJEXT
2243 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2244 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2245 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248 cat >conftest.$ac_ext <<_ACEOF
2249 /* confdefs.h. */
2250 _ACEOF
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h. */
2256 main ()
2258 #ifndef __GNUC__
2259 choke me
2260 #endif
2263 return 0;
2265 _ACEOF
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2288 ac_compiler_gnu=yes
2289 else
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2293 ac_compiler_gnu=no
2295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2299 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2300 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2301 GCC=`test $ac_compiler_gnu = yes && echo yes`
2302 ac_test_CFLAGS=${CFLAGS+set}
2303 ac_save_CFLAGS=$CFLAGS
2304 CFLAGS="-g"
2305 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2306 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2307 if test "${ac_cv_prog_cc_g+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310 cat >conftest.$ac_ext <<_ACEOF
2311 /* confdefs.h. */
2312 _ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h. */
2318 main ()
2322 return 0;
2324 _ACEOF
2325 rm -f conftest.$ac_objext
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>conftest.er1
2328 ac_status=$?
2329 grep -v '^ *+' conftest.er1 >conftest.err
2330 rm -f conftest.er1
2331 cat conftest.err >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -z "$ac_c_werror_flag"
2335 || test ! -s conftest.err'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 (eval $ac_try) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2347 ac_cv_prog_cc_g=yes
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2352 ac_cv_prog_cc_g=no
2354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2357 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2358 if test "$ac_test_CFLAGS" = set; then
2359 CFLAGS=$ac_save_CFLAGS
2360 elif test $ac_cv_prog_cc_g = yes; then
2361 if test "$GCC" = yes; then
2362 CFLAGS="-g -O2"
2363 else
2364 CFLAGS="-g"
2366 else
2367 if test "$GCC" = yes; then
2368 CFLAGS="-O2"
2369 else
2370 CFLAGS=
2373 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2374 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2375 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378 ac_cv_prog_cc_stdc=no
2379 ac_save_CC=$CC
2380 cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h. */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h. */
2386 #include <stdarg.h>
2387 #include <stdio.h>
2388 #include <sys/types.h>
2389 #include <sys/stat.h>
2390 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2391 struct buf { int x; };
2392 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2393 static char *e (p, i)
2394 char **p;
2395 int i;
2397 return p[i];
2399 static char *f (char * (*g) (char **, int), char **p, ...)
2401 char *s;
2402 va_list v;
2403 va_start (v,p);
2404 s = g (p, va_arg (v,int));
2405 va_end (v);
2406 return s;
2409 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2410 function prototypes and stuff, but not '\xHH' hex character constants.
2411 These don't provoke an error unfortunately, instead are silently treated
2412 as 'x'. The following induces an error, until -std1 is added to get
2413 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2414 array size at least. It's necessary to write '\x00'==0 to get something
2415 that's true only with -std1. */
2416 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2418 int test (int i, double x);
2419 struct s1 {int (*f) (int a);};
2420 struct s2 {int (*f) (double a);};
2421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2422 int argc;
2423 char **argv;
2425 main ()
2427 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2429 return 0;
2431 _ACEOF
2432 # Don't try gcc -ansi; that turns off useful extensions and
2433 # breaks some systems' header files.
2434 # AIX -qlanglvl=ansi
2435 # Ultrix and OSF/1 -std1
2436 # HP-UX 10.20 and later -Ae
2437 # HP-UX older versions -Aa -D_HPUX_SOURCE
2438 # SVR4 -Xc -D__EXTENSIONS__
2439 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2441 CC="$ac_save_CC $ac_arg"
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag"
2452 || test ! -s conftest.err'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2464 ac_cv_prog_cc_stdc=$ac_arg
2465 break
2466 else
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2471 rm -f conftest.err conftest.$ac_objext
2472 done
2473 rm -f conftest.$ac_ext conftest.$ac_objext
2474 CC=$ac_save_CC
2478 case "x$ac_cv_prog_cc_stdc" in
2479 x|xno)
2480 echo "$as_me:$LINENO: result: none needed" >&5
2481 echo "${ECHO_T}none needed" >&6 ;;
2483 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2484 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2485 CC="$CC $ac_cv_prog_cc_stdc" ;;
2486 esac
2488 # Some people use a C++ compiler to compile C. Since we use `exit',
2489 # in C++ we need to declare it. In case someone uses the same compiler
2490 # for both compiling C and C++ we need to have the C++ compiler decide
2491 # the declaration of exit, since it's the most demanding environment.
2492 cat >conftest.$ac_ext <<_ACEOF
2493 #ifndef __cplusplus
2494 choke me
2495 #endif
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 for ac_declaration in \
2520 '' \
2521 'extern "C" void std::exit (int) throw (); using std::exit;' \
2522 'extern "C" void std::exit (int); using std::exit;' \
2523 'extern "C" void exit (int) throw ();' \
2524 'extern "C" void exit (int);' \
2525 'void exit (int);'
2527 cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h. */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2533 $ac_declaration
2534 #include <stdlib.h>
2536 main ()
2538 exit (42);
2540 return 0;
2542 _ACEOF
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try='test -z "$ac_c_werror_flag"
2553 || test ! -s conftest.err'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2566 else
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2570 continue
2572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2573 cat >conftest.$ac_ext <<_ACEOF
2574 /* confdefs.h. */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2579 $ac_declaration
2581 main ()
2583 exit (42);
2585 return 0;
2587 _ACEOF
2588 rm -f conftest.$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 (eval $ac_compile) 2>conftest.er1
2591 ac_status=$?
2592 grep -v '^ *+' conftest.er1 >conftest.err
2593 rm -f conftest.er1
2594 cat conftest.err >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } &&
2597 { ac_try='test -z "$ac_c_werror_flag"
2598 || test ! -s conftest.err'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 (eval $ac_try) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; } &&
2604 { ac_try='test -s conftest.$ac_objext'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2610 break
2611 else
2612 echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617 done
2618 rm -f conftest*
2619 if test -n "$ac_declaration"; then
2620 echo '#ifdef __cplusplus' >>confdefs.h
2621 echo $ac_declaration >>confdefs.h
2622 echo '#endif' >>confdefs.h
2625 else
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2631 ac_ext=c
2632 ac_cpp='$CPP $CPPFLAGS'
2633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2636 DEPDIR="${am__leading_dot}deps"
2638 ac_config_commands="$ac_config_commands depfiles"
2641 am_make=${MAKE-make}
2642 cat > confinc << 'END'
2643 am__doit:
2644 @echo done
2645 .PHONY: am__doit
2647 # If we don't find an include directive, just comment out the code.
2648 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2649 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2650 am__include="#"
2651 am__quote=
2652 _am_result=none
2653 # First try GNU make style include.
2654 echo "include confinc" > confmf
2655 # We grep out `Entering directory' and `Leaving directory'
2656 # messages which can occur if `w' ends up in MAKEFLAGS.
2657 # In particular we don't look at `^make:' because GNU make might
2658 # be invoked under some other name (usually "gmake"), in which
2659 # case it prints its new name instead of `make'.
2660 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2661 am__include=include
2662 am__quote=
2663 _am_result=GNU
2665 # Now try BSD make style include.
2666 if test "$am__include" = "#"; then
2667 echo '.include "confinc"' > confmf
2668 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2669 am__include=.include
2670 am__quote="\""
2671 _am_result=BSD
2676 echo "$as_me:$LINENO: result: $_am_result" >&5
2677 echo "${ECHO_T}$_am_result" >&6
2678 rm -f confinc confmf
2680 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2681 if test "${enable_dependency_tracking+set}" = set; then
2682 enableval="$enable_dependency_tracking"
2685 if test "x$enable_dependency_tracking" != xno; then
2686 am_depcomp="$ac_aux_dir/depcomp"
2687 AMDEPBACKSLASH='\'
2691 if test "x$enable_dependency_tracking" != xno; then
2692 AMDEP_TRUE=
2693 AMDEP_FALSE='#'
2694 else
2695 AMDEP_TRUE='#'
2696 AMDEP_FALSE=
2702 depcc="$CC" am_compiler_list=
2704 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2705 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2706 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2710 # We make a subdir and do the tests there. Otherwise we can end up
2711 # making bogus files that we don't know about and never remove. For
2712 # instance it was reported that on HP-UX the gcc test will end up
2713 # making a dummy file named `D' -- because `-MD' means `put the output
2714 # in D'.
2715 mkdir conftest.dir
2716 # Copy depcomp to subdir because otherwise we won't find it if we're
2717 # using a relative directory.
2718 cp "$am_depcomp" conftest.dir
2719 cd conftest.dir
2720 # We will build objects and dependencies in a subdirectory because
2721 # it helps to detect inapplicable dependency modes. For instance
2722 # both Tru64's cc and ICC support -MD to output dependencies as a
2723 # side effect of compilation, but ICC will put the dependencies in
2724 # the current directory while Tru64 will put them in the object
2725 # directory.
2726 mkdir sub
2728 am_cv_CC_dependencies_compiler_type=none
2729 if test "$am_compiler_list" = ""; then
2730 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2732 for depmode in $am_compiler_list; do
2733 # Setup a source with many dependencies, because some compilers
2734 # like to wrap large dependency lists on column 80 (with \), and
2735 # we should not choose a depcomp mode which is confused by this.
2737 # We need to recreate these files for each test, as the compiler may
2738 # overwrite some of them when testing with obscure command lines.
2739 # This happens at least with the AIX C compiler.
2740 : > sub/conftest.c
2741 for i in 1 2 3 4 5 6; do
2742 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2743 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2744 # Solaris 8's {/usr,}/bin/sh.
2745 touch sub/conftst$i.h
2746 done
2747 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2749 case $depmode in
2750 nosideeffect)
2751 # after this tag, mechanisms are not by side-effect, so they'll
2752 # only be used when explicitly requested
2753 if test "x$enable_dependency_tracking" = xyes; then
2754 continue
2755 else
2756 break
2759 none) break ;;
2760 esac
2761 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2762 # mode. It turns out that the SunPro C++ compiler does not properly
2763 # handle `-M -o', and we need to detect this.
2764 if depmode=$depmode \
2765 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2766 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2767 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2768 >/dev/null 2>conftest.err &&
2769 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2770 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2771 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2772 # icc doesn't choke on unknown options, it will just issue warnings
2773 # or remarks (even with -Werror). So we grep stderr for any message
2774 # that says an option was ignored or not supported.
2775 # When given -MP, icc 7.0 and 7.1 complain thusly:
2776 # icc: Command line warning: ignoring option '-M'; no argument required
2777 # The diagnosis changed in icc 8.0:
2778 # icc: Command line remark: option '-MP' not supported
2779 if (grep 'ignoring option' conftest.err ||
2780 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2781 am_cv_CC_dependencies_compiler_type=$depmode
2782 break
2785 done
2787 cd ..
2788 rm -rf conftest.dir
2789 else
2790 am_cv_CC_dependencies_compiler_type=none
2794 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2795 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2796 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2801 test "x$enable_dependency_tracking" != xno \
2802 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2803 am__fastdepCC_TRUE=
2804 am__fastdepCC_FALSE='#'
2805 else
2806 am__fastdepCC_TRUE='#'
2807 am__fastdepCC_FALSE=
2812 if test "X$prefix" = "XNONE"; then
2813 acl_final_prefix="$ac_default_prefix"
2814 else
2815 acl_final_prefix="$prefix"
2817 if test "X$exec_prefix" = "XNONE"; then
2818 acl_final_exec_prefix='${prefix}'
2819 else
2820 acl_final_exec_prefix="$exec_prefix"
2822 acl_save_prefix="$prefix"
2823 prefix="$acl_final_prefix"
2824 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2825 prefix="$acl_save_prefix"
2827 # Make sure we can run config.sub.
2828 $ac_config_sub sun4 >/dev/null 2>&1 ||
2829 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2830 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2831 { (exit 1); exit 1; }; }
2833 echo "$as_me:$LINENO: checking build system type" >&5
2834 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2835 if test "${ac_cv_build+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838 ac_cv_build_alias=$build_alias
2839 test -z "$ac_cv_build_alias" &&
2840 ac_cv_build_alias=`$ac_config_guess`
2841 test -z "$ac_cv_build_alias" &&
2842 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2843 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2844 { (exit 1); exit 1; }; }
2845 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2846 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2847 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2848 { (exit 1); exit 1; }; }
2851 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2852 echo "${ECHO_T}$ac_cv_build" >&6
2853 build=$ac_cv_build
2854 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2855 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2856 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2859 echo "$as_me:$LINENO: checking host system type" >&5
2860 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2861 if test "${ac_cv_host+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864 ac_cv_host_alias=$host_alias
2865 test -z "$ac_cv_host_alias" &&
2866 ac_cv_host_alias=$ac_cv_build_alias
2867 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2868 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2869 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2870 { (exit 1); exit 1; }; }
2873 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2874 echo "${ECHO_T}$ac_cv_host" >&6
2875 host=$ac_cv_host
2876 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2877 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2878 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2882 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2883 if test "${with_gnu_ld+set}" = set; then
2884 withval="$with_gnu_ld"
2885 test "$withval" = no || with_gnu_ld=yes
2886 else
2887 with_gnu_ld=no
2889 # Prepare PATH_SEPARATOR.
2890 # The user is always right.
2891 if test "${PATH_SEPARATOR+set}" != set; then
2892 echo "#! /bin/sh" >conf$$.sh
2893 echo "exit 0" >>conf$$.sh
2894 chmod +x conf$$.sh
2895 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2896 PATH_SEPARATOR=';'
2897 else
2898 PATH_SEPARATOR=:
2900 rm -f conf$$.sh
2902 ac_prog=ld
2903 if test "$GCC" = yes; then
2904 # Check if gcc -print-prog-name=ld gives a path.
2905 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2906 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2907 case $host in
2908 *-*-mingw*)
2909 # gcc leaves a trailing carriage return which upsets mingw
2910 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2912 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2913 esac
2914 case $ac_prog in
2915 # Accept absolute paths.
2916 [\\/]* | [A-Za-z]:[\\/]*)
2917 re_direlt='/[^/][^/]*/\.\./'
2918 # Canonicalize the path of ld
2919 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2920 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2921 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2922 done
2923 test -z "$LD" && LD="$ac_prog"
2926 # If it fails, then pretend we aren't using GCC.
2927 ac_prog=ld
2930 # If it is relative, then search for the first ld in PATH.
2931 with_gnu_ld=unknown
2933 esac
2934 elif test "$with_gnu_ld" = yes; then
2935 echo "$as_me:$LINENO: checking for GNU ld" >&5
2936 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2937 else
2938 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2939 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2941 if test "${acl_cv_path_LD+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 if test -z "$LD"; then
2945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2946 for ac_dir in $PATH; do
2947 test -z "$ac_dir" && ac_dir=.
2948 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2949 acl_cv_path_LD="$ac_dir/$ac_prog"
2950 # Check to see if the program is GNU ld. I'd rather use --version,
2951 # but apparently some GNU ld's only accept -v.
2952 # Break only if it was the GNU/non-GNU ld that we prefer.
2953 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
2954 *GNU* | *'with BFD'*)
2955 test "$with_gnu_ld" != no && break ;;
2957 test "$with_gnu_ld" != yes && break ;;
2958 esac
2960 done
2961 IFS="$ac_save_ifs"
2962 else
2963 acl_cv_path_LD="$LD" # Let the user override the test with a path.
2967 LD="$acl_cv_path_LD"
2968 if test -n "$LD"; then
2969 echo "$as_me:$LINENO: result: $LD" >&5
2970 echo "${ECHO_T}$LD" >&6
2971 else
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2975 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2976 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2977 { (exit 1); exit 1; }; }
2978 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2979 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2980 if test "${acl_cv_prog_gnu_ld+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2984 case `$LD -v 2>&1 </dev/null` in
2985 *GNU* | *'with BFD'*)
2986 acl_cv_prog_gnu_ld=yes ;;
2988 acl_cv_prog_gnu_ld=no ;;
2989 esac
2991 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
2992 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
2993 with_gnu_ld=$acl_cv_prog_gnu_ld
2998 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
2999 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
3000 if test "${acl_cv_rpath+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3004 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3005 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3006 . ./conftest.sh
3007 rm -f ./conftest.sh
3008 acl_cv_rpath=done
3011 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3012 echo "${ECHO_T}$acl_cv_rpath" >&6
3013 wl="$acl_cv_wl"
3014 libext="$acl_cv_libext"
3015 shlibext="$acl_cv_shlibext"
3016 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3017 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3018 hardcode_direct="$acl_cv_hardcode_direct"
3019 hardcode_minus_L="$acl_cv_hardcode_minus_L"
3020 # Check whether --enable-rpath or --disable-rpath was given.
3021 if test "${enable_rpath+set}" = set; then
3022 enableval="$enable_rpath"
3024 else
3025 enable_rpath=yes
3033 echo "$as_me:$LINENO: checking how to link with librpathx" >&5
3034 echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6
3035 if test "${ac_cv_librpathx_libs+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3041 use_additional=yes
3043 acl_save_prefix="$prefix"
3044 prefix="$acl_final_prefix"
3045 acl_save_exec_prefix="$exec_prefix"
3046 exec_prefix="$acl_final_exec_prefix"
3048 eval additional_includedir=\"$includedir\"
3049 eval additional_libdir=\"$libdir\"
3051 exec_prefix="$acl_save_exec_prefix"
3052 prefix="$acl_save_prefix"
3055 # Check whether --with-librpathx-prefix or --without-librpathx-prefix was given.
3056 if test "${with_librpathx_prefix+set}" = set; then
3057 withval="$with_librpathx_prefix"
3059 if test "X$withval" = "Xno"; then
3060 use_additional=no
3061 else
3062 if test "X$withval" = "X"; then
3064 acl_save_prefix="$prefix"
3065 prefix="$acl_final_prefix"
3066 acl_save_exec_prefix="$exec_prefix"
3067 exec_prefix="$acl_final_exec_prefix"
3069 eval additional_includedir=\"$includedir\"
3070 eval additional_libdir=\"$libdir\"
3072 exec_prefix="$acl_save_exec_prefix"
3073 prefix="$acl_save_prefix"
3075 else
3076 additional_includedir="$withval/include"
3077 additional_libdir="$withval/lib"
3082 LIBRPATHX=
3083 LTLIBRPATHX=
3084 INCRPATHX=
3085 rpathdirs=
3086 ltrpathdirs=
3087 names_already_handled=
3088 names_next_round='rpathx '
3089 while test -n "$names_next_round"; do
3090 names_this_round="$names_next_round"
3091 names_next_round=
3092 for name in $names_this_round; do
3093 already_handled=
3094 for n in $names_already_handled; do
3095 if test "$n" = "$name"; then
3096 already_handled=yes
3097 break
3099 done
3100 if test -z "$already_handled"; then
3101 names_already_handled="$names_already_handled $name"
3102 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3103 eval value=\"\$HAVE_LIB$uppername\"
3104 if test -n "$value"; then
3105 if test "$value" = yes; then
3106 eval value=\"\$LIB$uppername\"
3107 test -z "$value" || LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$value"
3108 eval value=\"\$LTLIB$uppername\"
3109 test -z "$value" || LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value"
3110 else
3113 else
3114 found_dir=
3115 found_la=
3116 found_so=
3117 found_a=
3118 if test $use_additional = yes; then
3119 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3120 found_dir="$additional_libdir"
3121 found_so="$additional_libdir/lib$name.$shlibext"
3122 if test -f "$additional_libdir/lib$name.la"; then
3123 found_la="$additional_libdir/lib$name.la"
3125 else
3126 if test -f "$additional_libdir/lib$name.$libext"; then
3127 found_dir="$additional_libdir"
3128 found_a="$additional_libdir/lib$name.$libext"
3129 if test -f "$additional_libdir/lib$name.la"; then
3130 found_la="$additional_libdir/lib$name.la"
3135 if test "X$found_dir" = "X"; then
3136 for x in $LDFLAGS $LTLIBRPATHX; do
3138 acl_save_prefix="$prefix"
3139 prefix="$acl_final_prefix"
3140 acl_save_exec_prefix="$exec_prefix"
3141 exec_prefix="$acl_final_exec_prefix"
3142 eval x=\"$x\"
3143 exec_prefix="$acl_save_exec_prefix"
3144 prefix="$acl_save_prefix"
3146 case "$x" in
3147 -L*)
3148 dir=`echo "X$x" | sed -e 's/^X-L//'`
3149 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3150 found_dir="$dir"
3151 found_so="$dir/lib$name.$shlibext"
3152 if test -f "$dir/lib$name.la"; then
3153 found_la="$dir/lib$name.la"
3155 else
3156 if test -f "$dir/lib$name.$libext"; then
3157 found_dir="$dir"
3158 found_a="$dir/lib$name.$libext"
3159 if test -f "$dir/lib$name.la"; then
3160 found_la="$dir/lib$name.la"
3165 esac
3166 if test "X$found_dir" != "X"; then
3167 break
3169 done
3171 if test "X$found_dir" != "X"; then
3172 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name"
3173 if test "X$found_so" != "X"; then
3174 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3175 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
3176 else
3177 haveit=
3178 for x in $ltrpathdirs; do
3179 if test "X$x" = "X$found_dir"; then
3180 haveit=yes
3181 break
3183 done
3184 if test -z "$haveit"; then
3185 ltrpathdirs="$ltrpathdirs $found_dir"
3187 if test "$hardcode_direct" = yes; then
3188 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
3189 else
3190 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3191 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
3192 haveit=
3193 for x in $rpathdirs; do
3194 if test "X$x" = "X$found_dir"; then
3195 haveit=yes
3196 break
3198 done
3199 if test -z "$haveit"; then
3200 rpathdirs="$rpathdirs $found_dir"
3202 else
3203 haveit=
3204 for x in $LDFLAGS $LIBRPATHX; do
3206 acl_save_prefix="$prefix"
3207 prefix="$acl_final_prefix"
3208 acl_save_exec_prefix="$exec_prefix"
3209 exec_prefix="$acl_final_exec_prefix"
3210 eval x=\"$x\"
3211 exec_prefix="$acl_save_exec_prefix"
3212 prefix="$acl_save_prefix"
3214 if test "X$x" = "X-L$found_dir"; then
3215 haveit=yes
3216 break
3218 done
3219 if test -z "$haveit"; then
3220 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir"
3222 if test "$hardcode_minus_L" != no; then
3223 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
3224 else
3225 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name"
3230 else
3231 if test "X$found_a" != "X"; then
3232 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_a"
3233 else
3234 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name"
3237 additional_includedir=
3238 case "$found_dir" in
3239 */lib | */lib/)
3240 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3241 additional_includedir="$basedir/include"
3243 esac
3244 if test "X$additional_includedir" != "X"; then
3245 if test "X$additional_includedir" != "X/usr/include"; then
3246 haveit=
3247 if test "X$additional_includedir" = "X/usr/local/include"; then
3248 if test -n "$GCC"; then
3249 case $host_os in
3250 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
3251 esac
3254 if test -z "$haveit"; then
3255 for x in $CPPFLAGS $INCRPATHX; do
3257 acl_save_prefix="$prefix"
3258 prefix="$acl_final_prefix"
3259 acl_save_exec_prefix="$exec_prefix"
3260 exec_prefix="$acl_final_exec_prefix"
3261 eval x=\"$x\"
3262 exec_prefix="$acl_save_exec_prefix"
3263 prefix="$acl_save_prefix"
3265 if test "X$x" = "X-I$additional_includedir"; then
3266 haveit=yes
3267 break
3269 done
3270 if test -z "$haveit"; then
3271 if test -d "$additional_includedir"; then
3272 INCRPATHX="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir"
3278 if test -n "$found_la"; then
3279 save_libdir="$libdir"
3280 case "$found_la" in
3281 */* | *\\*) . "$found_la" ;;
3282 *) . "./$found_la" ;;
3283 esac
3284 libdir="$save_libdir"
3285 for dep in $dependency_libs; do
3286 case "$dep" in
3287 -L*)
3288 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3289 if test "X$additional_libdir" != "X/usr/lib"; then
3290 haveit=
3291 if test "X$additional_libdir" = "X/usr/local/lib"; then
3292 if test -n "$GCC"; then
3293 case $host_os in
3294 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
3295 esac
3298 if test -z "$haveit"; then
3299 haveit=
3300 for x in $LDFLAGS $LIBRPATHX; do
3302 acl_save_prefix="$prefix"
3303 prefix="$acl_final_prefix"
3304 acl_save_exec_prefix="$exec_prefix"
3305 exec_prefix="$acl_final_exec_prefix"
3306 eval x=\"$x\"
3307 exec_prefix="$acl_save_exec_prefix"
3308 prefix="$acl_save_prefix"
3310 if test "X$x" = "X-L$additional_libdir"; then
3311 haveit=yes
3312 break
3314 done
3315 if test -z "$haveit"; then
3316 if test -d "$additional_libdir"; then
3317 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir"
3320 haveit=
3321 for x in $LDFLAGS $LTLIBRPATHX; do
3323 acl_save_prefix="$prefix"
3324 prefix="$acl_final_prefix"
3325 acl_save_exec_prefix="$exec_prefix"
3326 exec_prefix="$acl_final_exec_prefix"
3327 eval x=\"$x\"
3328 exec_prefix="$acl_save_exec_prefix"
3329 prefix="$acl_save_prefix"
3331 if test "X$x" = "X-L$additional_libdir"; then
3332 haveit=yes
3333 break
3335 done
3336 if test -z "$haveit"; then
3337 if test -d "$additional_libdir"; then
3338 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir"
3344 -R*)
3345 dir=`echo "X$dep" | sed -e 's/^X-R//'`
3346 if test "$enable_rpath" != no; then
3347 haveit=
3348 for x in $rpathdirs; do
3349 if test "X$x" = "X$dir"; then
3350 haveit=yes
3351 break
3353 done
3354 if test -z "$haveit"; then
3355 rpathdirs="$rpathdirs $dir"
3357 haveit=
3358 for x in $ltrpathdirs; do
3359 if test "X$x" = "X$dir"; then
3360 haveit=yes
3361 break
3363 done
3364 if test -z "$haveit"; then
3365 ltrpathdirs="$ltrpathdirs $dir"
3369 -l*)
3370 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3372 *.la)
3373 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3376 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$dep"
3377 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep"
3379 esac
3380 done
3382 else
3383 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name"
3384 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name"
3388 done
3389 done
3390 if test "X$rpathdirs" != "X"; then
3391 if test -n "$hardcode_libdir_separator"; then
3392 alldirs=
3393 for found_dir in $rpathdirs; do
3394 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3395 done
3396 acl_save_libdir="$libdir"
3397 libdir="$alldirs"
3398 eval flag=\"$hardcode_libdir_flag_spec\"
3399 libdir="$acl_save_libdir"
3400 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag"
3401 else
3402 for found_dir in $rpathdirs; do
3403 acl_save_libdir="$libdir"
3404 libdir="$found_dir"
3405 eval flag=\"$hardcode_libdir_flag_spec\"
3406 libdir="$acl_save_libdir"
3407 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag"
3408 done
3411 if test "X$ltrpathdirs" != "X"; then
3412 for found_dir in $ltrpathdirs; do
3413 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir"
3414 done
3417 ac_cv_librpathx_libs="$LIBRPATHX"
3418 ac_cv_librpathx_ltlibs="$LTLIBRPATHX"
3419 ac_cv_librpathx_cppflags="$INCRPATHX"
3422 echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5
3423 echo "${ECHO_T}$ac_cv_librpathx_libs" >&6
3424 LIBRPATHX="$ac_cv_librpathx_libs"
3425 LTLIBRPATHX="$ac_cv_librpathx_ltlibs"
3426 INCRPATHX="$ac_cv_librpathx_cppflags"
3428 for element in $INCRPATHX; do
3429 haveit=
3430 for x in $CPPFLAGS; do
3432 acl_save_prefix="$prefix"
3433 prefix="$acl_final_prefix"
3434 acl_save_exec_prefix="$exec_prefix"
3435 exec_prefix="$acl_final_exec_prefix"
3436 eval x=\"$x\"
3437 exec_prefix="$acl_save_exec_prefix"
3438 prefix="$acl_save_prefix"
3440 if test "X$x" = "X$element"; then
3441 haveit=yes
3442 break
3444 done
3445 if test -z "$haveit"; then
3446 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3448 done
3452 HAVE_LIBRPATHX=yes
3461 echo "$as_me:$LINENO: checking how to link with librpathy" >&5
3462 echo $ECHO_N "checking how to link with librpathy... $ECHO_C" >&6
3463 if test "${ac_cv_librpathy_libs+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3469 use_additional=yes
3471 acl_save_prefix="$prefix"
3472 prefix="$acl_final_prefix"
3473 acl_save_exec_prefix="$exec_prefix"
3474 exec_prefix="$acl_final_exec_prefix"
3476 eval additional_includedir=\"$includedir\"
3477 eval additional_libdir=\"$libdir\"
3479 exec_prefix="$acl_save_exec_prefix"
3480 prefix="$acl_save_prefix"
3483 # Check whether --with-librpathy-prefix or --without-librpathy-prefix was given.
3484 if test "${with_librpathy_prefix+set}" = set; then
3485 withval="$with_librpathy_prefix"
3487 if test "X$withval" = "Xno"; then
3488 use_additional=no
3489 else
3490 if test "X$withval" = "X"; then
3492 acl_save_prefix="$prefix"
3493 prefix="$acl_final_prefix"
3494 acl_save_exec_prefix="$exec_prefix"
3495 exec_prefix="$acl_final_exec_prefix"
3497 eval additional_includedir=\"$includedir\"
3498 eval additional_libdir=\"$libdir\"
3500 exec_prefix="$acl_save_exec_prefix"
3501 prefix="$acl_save_prefix"
3503 else
3504 additional_includedir="$withval/include"
3505 additional_libdir="$withval/lib"
3510 LIBRPATHY=
3511 LTLIBRPATHY=
3512 INCRPATHY=
3513 rpathdirs=
3514 ltrpathdirs=
3515 names_already_handled=
3516 names_next_round='rpathy rpathx'
3517 while test -n "$names_next_round"; do
3518 names_this_round="$names_next_round"
3519 names_next_round=
3520 for name in $names_this_round; do
3521 already_handled=
3522 for n in $names_already_handled; do
3523 if test "$n" = "$name"; then
3524 already_handled=yes
3525 break
3527 done
3528 if test -z "$already_handled"; then
3529 names_already_handled="$names_already_handled $name"
3530 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3531 eval value=\"\$HAVE_LIB$uppername\"
3532 if test -n "$value"; then
3533 if test "$value" = yes; then
3534 eval value=\"\$LIB$uppername\"
3535 test -z "$value" || LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$value"
3536 eval value=\"\$LTLIB$uppername\"
3537 test -z "$value" || LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$value"
3538 else
3541 else
3542 found_dir=
3543 found_la=
3544 found_so=
3545 found_a=
3546 if test $use_additional = yes; then
3547 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3548 found_dir="$additional_libdir"
3549 found_so="$additional_libdir/lib$name.$shlibext"
3550 if test -f "$additional_libdir/lib$name.la"; then
3551 found_la="$additional_libdir/lib$name.la"
3553 else
3554 if test -f "$additional_libdir/lib$name.$libext"; then
3555 found_dir="$additional_libdir"
3556 found_a="$additional_libdir/lib$name.$libext"
3557 if test -f "$additional_libdir/lib$name.la"; then
3558 found_la="$additional_libdir/lib$name.la"
3563 if test "X$found_dir" = "X"; then
3564 for x in $LDFLAGS $LTLIBRPATHY; do
3566 acl_save_prefix="$prefix"
3567 prefix="$acl_final_prefix"
3568 acl_save_exec_prefix="$exec_prefix"
3569 exec_prefix="$acl_final_exec_prefix"
3570 eval x=\"$x\"
3571 exec_prefix="$acl_save_exec_prefix"
3572 prefix="$acl_save_prefix"
3574 case "$x" in
3575 -L*)
3576 dir=`echo "X$x" | sed -e 's/^X-L//'`
3577 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3578 found_dir="$dir"
3579 found_so="$dir/lib$name.$shlibext"
3580 if test -f "$dir/lib$name.la"; then
3581 found_la="$dir/lib$name.la"
3583 else
3584 if test -f "$dir/lib$name.$libext"; then
3585 found_dir="$dir"
3586 found_a="$dir/lib$name.$libext"
3587 if test -f "$dir/lib$name.la"; then
3588 found_la="$dir/lib$name.la"
3593 esac
3594 if test "X$found_dir" != "X"; then
3595 break
3597 done
3599 if test "X$found_dir" != "X"; then
3600 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$found_dir -l$name"
3601 if test "X$found_so" != "X"; then
3602 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3603 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
3604 else
3605 haveit=
3606 for x in $ltrpathdirs; do
3607 if test "X$x" = "X$found_dir"; then
3608 haveit=yes
3609 break
3611 done
3612 if test -z "$haveit"; then
3613 ltrpathdirs="$ltrpathdirs $found_dir"
3615 if test "$hardcode_direct" = yes; then
3616 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
3617 else
3618 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3619 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
3620 haveit=
3621 for x in $rpathdirs; do
3622 if test "X$x" = "X$found_dir"; then
3623 haveit=yes
3624 break
3626 done
3627 if test -z "$haveit"; then
3628 rpathdirs="$rpathdirs $found_dir"
3630 else
3631 haveit=
3632 for x in $LDFLAGS $LIBRPATHY; do
3634 acl_save_prefix="$prefix"
3635 prefix="$acl_final_prefix"
3636 acl_save_exec_prefix="$exec_prefix"
3637 exec_prefix="$acl_final_exec_prefix"
3638 eval x=\"$x\"
3639 exec_prefix="$acl_save_exec_prefix"
3640 prefix="$acl_save_prefix"
3642 if test "X$x" = "X-L$found_dir"; then
3643 haveit=yes
3644 break
3646 done
3647 if test -z "$haveit"; then
3648 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir"
3650 if test "$hardcode_minus_L" != no; then
3651 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
3652 else
3653 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name"
3658 else
3659 if test "X$found_a" != "X"; then
3660 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_a"
3661 else
3662 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir -l$name"
3665 additional_includedir=
3666 case "$found_dir" in
3667 */lib | */lib/)
3668 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3669 additional_includedir="$basedir/include"
3671 esac
3672 if test "X$additional_includedir" != "X"; then
3673 if test "X$additional_includedir" != "X/usr/include"; then
3674 haveit=
3675 if test "X$additional_includedir" = "X/usr/local/include"; then
3676 if test -n "$GCC"; then
3677 case $host_os in
3678 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
3679 esac
3682 if test -z "$haveit"; then
3683 for x in $CPPFLAGS $INCRPATHY; do
3685 acl_save_prefix="$prefix"
3686 prefix="$acl_final_prefix"
3687 acl_save_exec_prefix="$exec_prefix"
3688 exec_prefix="$acl_final_exec_prefix"
3689 eval x=\"$x\"
3690 exec_prefix="$acl_save_exec_prefix"
3691 prefix="$acl_save_prefix"
3693 if test "X$x" = "X-I$additional_includedir"; then
3694 haveit=yes
3695 break
3697 done
3698 if test -z "$haveit"; then
3699 if test -d "$additional_includedir"; then
3700 INCRPATHY="${INCRPATHY}${INCRPATHY:+ }-I$additional_includedir"
3706 if test -n "$found_la"; then
3707 save_libdir="$libdir"
3708 case "$found_la" in
3709 */* | *\\*) . "$found_la" ;;
3710 *) . "./$found_la" ;;
3711 esac
3712 libdir="$save_libdir"
3713 for dep in $dependency_libs; do
3714 case "$dep" in
3715 -L*)
3716 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3717 if test "X$additional_libdir" != "X/usr/lib"; then
3718 haveit=
3719 if test "X$additional_libdir" = "X/usr/local/lib"; then
3720 if test -n "$GCC"; then
3721 case $host_os in
3722 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
3723 esac
3726 if test -z "$haveit"; then
3727 haveit=
3728 for x in $LDFLAGS $LIBRPATHY; do
3730 acl_save_prefix="$prefix"
3731 prefix="$acl_final_prefix"
3732 acl_save_exec_prefix="$exec_prefix"
3733 exec_prefix="$acl_final_exec_prefix"
3734 eval x=\"$x\"
3735 exec_prefix="$acl_save_exec_prefix"
3736 prefix="$acl_save_prefix"
3738 if test "X$x" = "X-L$additional_libdir"; then
3739 haveit=yes
3740 break
3742 done
3743 if test -z "$haveit"; then
3744 if test -d "$additional_libdir"; then
3745 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$additional_libdir"
3748 haveit=
3749 for x in $LDFLAGS $LTLIBRPATHY; do
3751 acl_save_prefix="$prefix"
3752 prefix="$acl_final_prefix"
3753 acl_save_exec_prefix="$exec_prefix"
3754 exec_prefix="$acl_final_exec_prefix"
3755 eval x=\"$x\"
3756 exec_prefix="$acl_save_exec_prefix"
3757 prefix="$acl_save_prefix"
3759 if test "X$x" = "X-L$additional_libdir"; then
3760 haveit=yes
3761 break
3763 done
3764 if test -z "$haveit"; then
3765 if test -d "$additional_libdir"; then
3766 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$additional_libdir"
3772 -R*)
3773 dir=`echo "X$dep" | sed -e 's/^X-R//'`
3774 if test "$enable_rpath" != no; then
3775 haveit=
3776 for x in $rpathdirs; do
3777 if test "X$x" = "X$dir"; then
3778 haveit=yes
3779 break
3781 done
3782 if test -z "$haveit"; then
3783 rpathdirs="$rpathdirs $dir"
3785 haveit=
3786 for x in $ltrpathdirs; do
3787 if test "X$x" = "X$dir"; then
3788 haveit=yes
3789 break
3791 done
3792 if test -z "$haveit"; then
3793 ltrpathdirs="$ltrpathdirs $dir"
3797 -l*)
3798 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3800 *.la)
3801 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3804 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$dep"
3805 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$dep"
3807 esac
3808 done
3810 else
3811 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name"
3812 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-l$name"
3816 done
3817 done
3818 if test "X$rpathdirs" != "X"; then
3819 if test -n "$hardcode_libdir_separator"; then
3820 alldirs=
3821 for found_dir in $rpathdirs; do
3822 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3823 done
3824 acl_save_libdir="$libdir"
3825 libdir="$alldirs"
3826 eval flag=\"$hardcode_libdir_flag_spec\"
3827 libdir="$acl_save_libdir"
3828 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag"
3829 else
3830 for found_dir in $rpathdirs; do
3831 acl_save_libdir="$libdir"
3832 libdir="$found_dir"
3833 eval flag=\"$hardcode_libdir_flag_spec\"
3834 libdir="$acl_save_libdir"
3835 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag"
3836 done
3839 if test "X$ltrpathdirs" != "X"; then
3840 for found_dir in $ltrpathdirs; do
3841 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-R$found_dir"
3842 done
3845 ac_cv_librpathy_libs="$LIBRPATHY"
3846 ac_cv_librpathy_ltlibs="$LTLIBRPATHY"
3847 ac_cv_librpathy_cppflags="$INCRPATHY"
3850 echo "$as_me:$LINENO: result: $ac_cv_librpathy_libs" >&5
3851 echo "${ECHO_T}$ac_cv_librpathy_libs" >&6
3852 LIBRPATHY="$ac_cv_librpathy_libs"
3853 LTLIBRPATHY="$ac_cv_librpathy_ltlibs"
3854 INCRPATHY="$ac_cv_librpathy_cppflags"
3856 for element in $INCRPATHY; do
3857 haveit=
3858 for x in $CPPFLAGS; do
3860 acl_save_prefix="$prefix"
3861 prefix="$acl_final_prefix"
3862 acl_save_exec_prefix="$exec_prefix"
3863 exec_prefix="$acl_final_exec_prefix"
3864 eval x=\"$x\"
3865 exec_prefix="$acl_save_exec_prefix"
3866 prefix="$acl_save_prefix"
3868 if test "X$x" = "X$element"; then
3869 haveit=yes
3870 break
3872 done
3873 if test -z "$haveit"; then
3874 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3876 done
3880 HAVE_LIBRPATHY=yes
3884 LIBRPATHY="$LIBRPATHY $LIBRPATHX"
3886 ac_config_files="$ac_config_files Makefile"
3887 cat >confcache <<\_ACEOF
3888 # This file is a shell script that caches the results of configure
3889 # tests run on this system so they can be shared between configure
3890 # scripts and configure runs, see configure's option --config-cache.
3891 # It is not useful on other systems. If it contains results you don't
3892 # want to keep, you may remove or edit it.
3894 # config.status only pays attention to the cache file if you give it
3895 # the --recheck option to rerun configure.
3897 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3898 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3899 # following values.
3901 _ACEOF
3903 # The following way of writing the cache mishandles newlines in values,
3904 # but we know of no workaround that is simple, portable, and efficient.
3905 # So, don't put newlines in cache variables' values.
3906 # Ultrix sh set writes to stderr and can't be redirected directly,
3907 # and sets the high bit in the cache file unless we assign to the vars.
3909 (set) 2>&1 |
3910 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3911 *ac_space=\ *)
3912 # `set' does not quote correctly, so add quotes (double-quote
3913 # substitution turns \\\\ into \\, and sed turns \\ into \).
3914 sed -n \
3915 "s/'/'\\\\''/g;
3916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3919 # `set' quotes correctly as required by POSIX, so do not add quotes.
3920 sed -n \
3921 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3923 esac;
3925 sed '
3926 t clear
3927 : clear
3928 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3929 t end
3930 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3931 : end' >>confcache
3932 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3933 if test -w $cache_file; then
3934 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3935 cat confcache >$cache_file
3936 else
3937 echo "not updating unwritable cache $cache_file"
3940 rm -f confcache
3942 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3943 # Let make expand exec_prefix.
3944 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3946 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3947 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3948 # trailing colons and then remove the whole line if VPATH becomes empty
3949 # (actually we leave an empty line to preserve line numbers).
3950 if test "x$srcdir" = x.; then
3951 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3952 s/:*\$(srcdir):*/:/;
3953 s/:*\${srcdir}:*/:/;
3954 s/:*@srcdir@:*/:/;
3955 s/^\([^=]*=[ ]*\):*/\1/;
3956 s/:*$//;
3957 s/^[^=]*=[ ]*$//;
3961 # Transform confdefs.h into DEFS.
3962 # Protect against shell expansion while executing Makefile rules.
3963 # Protect against Makefile macro expansion.
3965 # If the first sed substitution is executed (which looks for macros that
3966 # take arguments), then we branch to the quote section. Otherwise,
3967 # look for a macro that doesn't take arguments.
3968 cat >confdef2opt.sed <<\_ACEOF
3969 t clear
3970 : clear
3971 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3972 t quote
3973 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3974 t quote
3976 : quote
3977 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3978 s,\[,\\&,g
3979 s,\],\\&,g
3980 s,\$,$$,g
3982 _ACEOF
3983 # We use echo to avoid assuming a particular line-breaking character.
3984 # The extra dot is to prevent the shell from consuming trailing
3985 # line-breaks from the sub-command output. A line-break within
3986 # single-quotes doesn't work because, if this script is created in a
3987 # platform that uses two characters for line-breaks (e.g., DOS), tr
3988 # would break.
3989 ac_LF_and_DOT=`echo; echo .`
3990 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3991 rm -f confdef2opt.sed
3994 ac_libobjs=
3995 ac_ltlibobjs=
3996 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3997 # 1. Remove the extension, and $U if already installed.
3998 ac_i=`echo "$ac_i" |
3999 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4000 # 2. Add them.
4001 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4002 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4003 done
4004 LIBOBJS=$ac_libobjs
4006 LTLIBOBJS=$ac_ltlibobjs
4009 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4010 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4011 Usually this means the macro was only invoked conditionally." >&5
4012 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4013 Usually this means the macro was only invoked conditionally." >&2;}
4014 { (exit 1); exit 1; }; }
4016 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4017 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4018 Usually this means the macro was only invoked conditionally." >&5
4019 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4020 Usually this means the macro was only invoked conditionally." >&2;}
4021 { (exit 1); exit 1; }; }
4024 : ${CONFIG_STATUS=./config.status}
4025 ac_clean_files_save=$ac_clean_files
4026 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4027 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4028 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4029 cat >$CONFIG_STATUS <<_ACEOF
4030 #! $SHELL
4031 # Generated by $as_me.
4032 # Run this file to recreate the current configuration.
4033 # Compiler output produced by configure, useful for debugging
4034 # configure, is in config.log if it exists.
4036 debug=false
4037 ac_cs_recheck=false
4038 ac_cs_silent=false
4039 SHELL=\${CONFIG_SHELL-$SHELL}
4040 _ACEOF
4042 cat >>$CONFIG_STATUS <<\_ACEOF
4043 ## --------------------- ##
4044 ## M4sh Initialization. ##
4045 ## --------------------- ##
4047 # Be Bourne compatible
4048 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4049 emulate sh
4050 NULLCMD=:
4051 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4052 # is contrary to our usage. Disable this feature.
4053 alias -g '${1+"$@"}'='"$@"'
4054 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4055 set -o posix
4057 DUALCASE=1; export DUALCASE # for MKS sh
4059 # Support unset when possible.
4060 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4061 as_unset=unset
4062 else
4063 as_unset=false
4067 # Work around bugs in pre-3.0 UWIN ksh.
4068 $as_unset ENV MAIL MAILPATH
4069 PS1='$ '
4070 PS2='> '
4071 PS4='+ '
4073 # NLS nuisances.
4074 for as_var in \
4075 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4076 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4077 LC_TELEPHONE LC_TIME
4079 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4080 eval $as_var=C; export $as_var
4081 else
4082 $as_unset $as_var
4084 done
4086 # Required to use basename.
4087 if expr a : '\(a\)' >/dev/null 2>&1; then
4088 as_expr=expr
4089 else
4090 as_expr=false
4093 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4094 as_basename=basename
4095 else
4096 as_basename=false
4100 # Name of the executable.
4101 as_me=`$as_basename "$0" ||
4102 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4103 X"$0" : 'X\(//\)$' \| \
4104 X"$0" : 'X\(/\)$' \| \
4105 . : '\(.\)' 2>/dev/null ||
4106 echo X/"$0" |
4107 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4108 /^X\/\(\/\/\)$/{ s//\1/; q; }
4109 /^X\/\(\/\).*/{ s//\1/; q; }
4110 s/.*/./; q'`
4113 # PATH needs CR, and LINENO needs CR and PATH.
4114 # Avoid depending upon Character Ranges.
4115 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4116 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4117 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4118 as_cr_digits='0123456789'
4119 as_cr_alnum=$as_cr_Letters$as_cr_digits
4121 # The user is always right.
4122 if test "${PATH_SEPARATOR+set}" != set; then
4123 echo "#! /bin/sh" >conf$$.sh
4124 echo "exit 0" >>conf$$.sh
4125 chmod +x conf$$.sh
4126 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4127 PATH_SEPARATOR=';'
4128 else
4129 PATH_SEPARATOR=:
4131 rm -f conf$$.sh
4135 as_lineno_1=$LINENO
4136 as_lineno_2=$LINENO
4137 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4138 test "x$as_lineno_1" != "x$as_lineno_2" &&
4139 test "x$as_lineno_3" = "x$as_lineno_2" || {
4140 # Find who we are. Look in the path if we contain no path at all
4141 # relative or not.
4142 case $0 in
4143 *[\\/]* ) as_myself=$0 ;;
4144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4150 done
4153 esac
4154 # We did not find ourselves, most probably we were run as `sh COMMAND'
4155 # in which case we are not to be found in the path.
4156 if test "x$as_myself" = x; then
4157 as_myself=$0
4159 if test ! -f "$as_myself"; then
4160 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4161 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4162 { (exit 1); exit 1; }; }
4164 case $CONFIG_SHELL in
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for as_base in sh bash ksh sh5; do
4172 case $as_dir in
4174 if ("$as_dir/$as_base" -c '
4175 as_lineno_1=$LINENO
4176 as_lineno_2=$LINENO
4177 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4178 test "x$as_lineno_1" != "x$as_lineno_2" &&
4179 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4180 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4181 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4182 CONFIG_SHELL=$as_dir/$as_base
4183 export CONFIG_SHELL
4184 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4185 fi;;
4186 esac
4187 done
4188 done
4190 esac
4192 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4193 # uniformly replaced by the line number. The first 'sed' inserts a
4194 # line-number line before each line; the second 'sed' does the real
4195 # work. The second script uses 'N' to pair each line-number line
4196 # with the numbered line, and appends trailing '-' during
4197 # substitution so that $LINENO is not a special case at line end.
4198 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4199 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4200 sed '=' <$as_myself |
4201 sed '
4203 s,$,-,
4204 : loop
4205 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4206 t loop
4207 s,-$,,
4208 s,^['$as_cr_digits']*\n,,
4209 ' >$as_me.lineno &&
4210 chmod +x $as_me.lineno ||
4211 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4212 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4213 { (exit 1); exit 1; }; }
4215 # Don't try to exec as it changes $[0], causing all sort of problems
4216 # (the dirname of $[0] is not the place where we might find the
4217 # original and so on. Autoconf is especially sensible to this).
4218 . ./$as_me.lineno
4219 # Exit status is that of the last command.
4220 exit
4224 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4225 *c*,-n*) ECHO_N= ECHO_C='
4226 ' ECHO_T=' ' ;;
4227 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4228 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4229 esac
4231 if expr a : '\(a\)' >/dev/null 2>&1; then
4232 as_expr=expr
4233 else
4234 as_expr=false
4237 rm -f conf$$ conf$$.exe conf$$.file
4238 echo >conf$$.file
4239 if ln -s conf$$.file conf$$ 2>/dev/null; then
4240 # We could just check for DJGPP; but this test a) works b) is more generic
4241 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4242 if test -f conf$$.exe; then
4243 # Don't use ln at all; we don't have any links
4244 as_ln_s='cp -p'
4245 else
4246 as_ln_s='ln -s'
4248 elif ln conf$$.file conf$$ 2>/dev/null; then
4249 as_ln_s=ln
4250 else
4251 as_ln_s='cp -p'
4253 rm -f conf$$ conf$$.exe conf$$.file
4255 if mkdir -p . 2>/dev/null; then
4256 as_mkdir_p=:
4257 else
4258 test -d ./-p && rmdir ./-p
4259 as_mkdir_p=false
4262 as_executable_p="test -f"
4264 # Sed expression to map a string onto a valid CPP name.
4265 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4267 # Sed expression to map a string onto a valid variable name.
4268 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4271 # IFS
4272 # We need space, tab and new line, in precisely that order.
4273 as_nl='
4275 IFS=" $as_nl"
4277 # CDPATH.
4278 $as_unset CDPATH
4280 exec 6>&1
4282 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4283 # report actual input values of CONFIG_FILES etc. instead of their
4284 # values after options handling. Logging --version etc. is OK.
4285 exec 5>>config.log
4287 echo
4288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4289 ## Running $as_me. ##
4290 _ASBOX
4291 } >&5
4292 cat >&5 <<_CSEOF
4294 This file was extended by $as_me, which was
4295 generated by GNU Autoconf 2.59. Invocation command line was
4297 CONFIG_FILES = $CONFIG_FILES
4298 CONFIG_HEADERS = $CONFIG_HEADERS
4299 CONFIG_LINKS = $CONFIG_LINKS
4300 CONFIG_COMMANDS = $CONFIG_COMMANDS
4301 $ $0 $@
4303 _CSEOF
4304 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4305 echo >&5
4306 _ACEOF
4308 # Files that config.status was made for.
4309 if test -n "$ac_config_files"; then
4310 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4313 if test -n "$ac_config_headers"; then
4314 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4317 if test -n "$ac_config_links"; then
4318 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4321 if test -n "$ac_config_commands"; then
4322 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4325 cat >>$CONFIG_STATUS <<\_ACEOF
4327 ac_cs_usage="\
4328 \`$as_me' instantiates files from templates according to the
4329 current configuration.
4331 Usage: $0 [OPTIONS] [FILE]...
4333 -h, --help print this help, then exit
4334 -V, --version print version number, then exit
4335 -q, --quiet do not print progress messages
4336 -d, --debug don't remove temporary files
4337 --recheck update $as_me by reconfiguring in the same conditions
4338 --file=FILE[:TEMPLATE]
4339 instantiate the configuration file FILE
4341 Configuration files:
4342 $config_files
4344 Configuration commands:
4345 $config_commands
4347 Report bugs to <bug-autoconf@gnu.org>."
4348 _ACEOF
4350 cat >>$CONFIG_STATUS <<_ACEOF
4351 ac_cs_version="\\
4352 config.status
4353 configured by $0, generated by GNU Autoconf 2.59,
4354 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4356 Copyright (C) 2003 Free Software Foundation, Inc.
4357 This config.status script is free software; the Free Software Foundation
4358 gives unlimited permission to copy, distribute and modify it."
4359 srcdir=$srcdir
4360 INSTALL="$INSTALL"
4361 _ACEOF
4363 cat >>$CONFIG_STATUS <<\_ACEOF
4364 # If no file are specified by the user, then we need to provide default
4365 # value. By we need to know if files were specified by the user.
4366 ac_need_defaults=:
4367 while test $# != 0
4369 case $1 in
4370 --*=*)
4371 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4372 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4373 ac_shift=:
4376 ac_option=$1
4377 ac_optarg=$2
4378 ac_shift=shift
4380 *) # This is not an option, so the user has probably given explicit
4381 # arguments.
4382 ac_option=$1
4383 ac_need_defaults=false;;
4384 esac
4386 case $ac_option in
4387 # Handling of the options.
4388 _ACEOF
4389 cat >>$CONFIG_STATUS <<\_ACEOF
4390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4391 ac_cs_recheck=: ;;
4392 --version | --vers* | -V )
4393 echo "$ac_cs_version"; exit 0 ;;
4394 --he | --h)
4395 # Conflict between --help and --header
4396 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4397 Try \`$0 --help' for more information." >&5
4398 echo "$as_me: error: ambiguous option: $1
4399 Try \`$0 --help' for more information." >&2;}
4400 { (exit 1); exit 1; }; };;
4401 --help | --hel | -h )
4402 echo "$ac_cs_usage"; exit 0 ;;
4403 --debug | --d* | -d )
4404 debug=: ;;
4405 --file | --fil | --fi | --f )
4406 $ac_shift
4407 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4408 ac_need_defaults=false;;
4409 --header | --heade | --head | --hea )
4410 $ac_shift
4411 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4412 ac_need_defaults=false;;
4413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4414 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4415 ac_cs_silent=: ;;
4417 # This is an error.
4418 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4419 Try \`$0 --help' for more information." >&5
4420 echo "$as_me: error: unrecognized option: $1
4421 Try \`$0 --help' for more information." >&2;}
4422 { (exit 1); exit 1; }; } ;;
4424 *) ac_config_targets="$ac_config_targets $1" ;;
4426 esac
4427 shift
4428 done
4430 ac_configure_extra_args=
4432 if $ac_cs_silent; then
4433 exec 6>/dev/null
4434 ac_configure_extra_args="$ac_configure_extra_args --silent"
4437 _ACEOF
4438 cat >>$CONFIG_STATUS <<_ACEOF
4439 if \$ac_cs_recheck; then
4440 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4441 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4444 _ACEOF
4446 cat >>$CONFIG_STATUS <<_ACEOF
4448 # INIT-COMMANDS section.
4451 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4453 _ACEOF
4457 cat >>$CONFIG_STATUS <<\_ACEOF
4458 for ac_config_target in $ac_config_targets
4460 case "$ac_config_target" in
4461 # Handling of arguments.
4462 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4463 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4464 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4465 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4466 { (exit 1); exit 1; }; };;
4467 esac
4468 done
4470 # If the user did not use the arguments to specify the items to instantiate,
4471 # then the envvar interface is used. Set only those that are not.
4472 # We use the long form for the default assignment because of an extremely
4473 # bizarre bug on SunOS 4.1.3.
4474 if $ac_need_defaults; then
4475 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4476 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4479 # Have a temporary directory for convenience. Make it in the build tree
4480 # simply because there is no reason to put it here, and in addition,
4481 # creating and moving files from /tmp can sometimes cause problems.
4482 # Create a temporary directory, and hook for its removal unless debugging.
4483 $debug ||
4485 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4486 trap '{ (exit 1); exit 1; }' 1 2 13 15
4489 # Create a (secure) tmp directory for tmp files.
4492 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4493 test -n "$tmp" && test -d "$tmp"
4494 } ||
4496 tmp=./confstat$$-$RANDOM
4497 (umask 077 && mkdir $tmp)
4498 } ||
4500 echo "$me: cannot create a temporary directory in ." >&2
4501 { (exit 1); exit 1; }
4504 _ACEOF
4506 cat >>$CONFIG_STATUS <<_ACEOF
4509 # CONFIG_FILES section.
4512 # No need to generate the scripts if there are no CONFIG_FILES.
4513 # This happens for instance when ./config.status config.h
4514 if test -n "\$CONFIG_FILES"; then
4515 # Protect against being on the right side of a sed subst in config.status.
4516 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4517 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4518 s,@SHELL@,$SHELL,;t t
4519 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4520 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4521 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4522 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4523 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4524 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4525 s,@exec_prefix@,$exec_prefix,;t t
4526 s,@prefix@,$prefix,;t t
4527 s,@program_transform_name@,$program_transform_name,;t t
4528 s,@bindir@,$bindir,;t t
4529 s,@sbindir@,$sbindir,;t t
4530 s,@libexecdir@,$libexecdir,;t t
4531 s,@datadir@,$datadir,;t t
4532 s,@sysconfdir@,$sysconfdir,;t t
4533 s,@sharedstatedir@,$sharedstatedir,;t t
4534 s,@localstatedir@,$localstatedir,;t t
4535 s,@libdir@,$libdir,;t t
4536 s,@includedir@,$includedir,;t t
4537 s,@oldincludedir@,$oldincludedir,;t t
4538 s,@infodir@,$infodir,;t t
4539 s,@mandir@,$mandir,;t t
4540 s,@build_alias@,$build_alias,;t t
4541 s,@host_alias@,$host_alias,;t t
4542 s,@target_alias@,$target_alias,;t t
4543 s,@DEFS@,$DEFS,;t t
4544 s,@ECHO_C@,$ECHO_C,;t t
4545 s,@ECHO_N@,$ECHO_N,;t t
4546 s,@ECHO_T@,$ECHO_T,;t t
4547 s,@LIBS@,$LIBS,;t t
4548 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4549 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4550 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4551 s,@CYGPATH_W@,$CYGPATH_W,;t t
4552 s,@PACKAGE@,$PACKAGE,;t t
4553 s,@VERSION@,$VERSION,;t t
4554 s,@ACLOCAL@,$ACLOCAL,;t t
4555 s,@AUTOCONF@,$AUTOCONF,;t t
4556 s,@AUTOMAKE@,$AUTOMAKE,;t t
4557 s,@AUTOHEADER@,$AUTOHEADER,;t t
4558 s,@MAKEINFO@,$MAKEINFO,;t t
4559 s,@install_sh@,$install_sh,;t t
4560 s,@STRIP@,$STRIP,;t t
4561 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4562 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4563 s,@mkdir_p@,$mkdir_p,;t t
4564 s,@AWK@,$AWK,;t t
4565 s,@SET_MAKE@,$SET_MAKE,;t t
4566 s,@am__leading_dot@,$am__leading_dot,;t t
4567 s,@AMTAR@,$AMTAR,;t t
4568 s,@am__tar@,$am__tar,;t t
4569 s,@am__untar@,$am__untar,;t t
4570 s,@CC@,$CC,;t t
4571 s,@CFLAGS@,$CFLAGS,;t t
4572 s,@LDFLAGS@,$LDFLAGS,;t t
4573 s,@CPPFLAGS@,$CPPFLAGS,;t t
4574 s,@ac_ct_CC@,$ac_ct_CC,;t t
4575 s,@EXEEXT@,$EXEEXT,;t t
4576 s,@OBJEXT@,$OBJEXT,;t t
4577 s,@DEPDIR@,$DEPDIR,;t t
4578 s,@am__include@,$am__include,;t t
4579 s,@am__quote@,$am__quote,;t t
4580 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4581 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4582 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4583 s,@CCDEPMODE@,$CCDEPMODE,;t t
4584 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4585 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4586 s,@build@,$build,;t t
4587 s,@build_cpu@,$build_cpu,;t t
4588 s,@build_vendor@,$build_vendor,;t t
4589 s,@build_os@,$build_os,;t t
4590 s,@host@,$host,;t t
4591 s,@host_cpu@,$host_cpu,;t t
4592 s,@host_vendor@,$host_vendor,;t t
4593 s,@host_os@,$host_os,;t t
4594 s,@LIBRPATHX@,$LIBRPATHX,;t t
4595 s,@LTLIBRPATHX@,$LTLIBRPATHX,;t t
4596 s,@LIBRPATHY@,$LIBRPATHY,;t t
4597 s,@LTLIBRPATHY@,$LTLIBRPATHY,;t t
4598 s,@global_top_auxdir@,$global_top_auxdir,;t t
4599 s,@LIBOBJS@,$LIBOBJS,;t t
4600 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4601 CEOF
4603 _ACEOF
4605 cat >>$CONFIG_STATUS <<\_ACEOF
4606 # Split the substitutions into bite-sized pieces for seds with
4607 # small command number limits, like on Digital OSF/1 and HP-UX.
4608 ac_max_sed_lines=48
4609 ac_sed_frag=1 # Number of current file.
4610 ac_beg=1 # First line for current file.
4611 ac_end=$ac_max_sed_lines # Line after last line for current file.
4612 ac_more_lines=:
4613 ac_sed_cmds=
4614 while $ac_more_lines; do
4615 if test $ac_beg -gt 1; then
4616 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4617 else
4618 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4620 if test ! -s $tmp/subs.frag; then
4621 ac_more_lines=false
4622 else
4623 # The purpose of the label and of the branching condition is to
4624 # speed up the sed processing (if there are no `@' at all, there
4625 # is no need to browse any of the substitutions).
4626 # These are the two extra sed commands mentioned above.
4627 (echo ':t
4628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4629 if test -z "$ac_sed_cmds"; then
4630 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4631 else
4632 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4634 ac_sed_frag=`expr $ac_sed_frag + 1`
4635 ac_beg=$ac_end
4636 ac_end=`expr $ac_end + $ac_max_sed_lines`
4638 done
4639 if test -z "$ac_sed_cmds"; then
4640 ac_sed_cmds=cat
4642 fi # test -n "$CONFIG_FILES"
4644 _ACEOF
4645 cat >>$CONFIG_STATUS <<\_ACEOF
4646 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4647 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4648 case $ac_file in
4649 - | *:- | *:-:* ) # input from stdin
4650 cat >$tmp/stdin
4651 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4652 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4653 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4654 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4655 * ) ac_file_in=$ac_file.in ;;
4656 esac
4658 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4659 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4660 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4661 X"$ac_file" : 'X\(//\)[^/]' \| \
4662 X"$ac_file" : 'X\(//\)$' \| \
4663 X"$ac_file" : 'X\(/\)' \| \
4664 . : '\(.\)' 2>/dev/null ||
4665 echo X"$ac_file" |
4666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4668 /^X\(\/\/\)$/{ s//\1/; q; }
4669 /^X\(\/\).*/{ s//\1/; q; }
4670 s/.*/./; q'`
4671 { if $as_mkdir_p; then
4672 mkdir -p "$ac_dir"
4673 else
4674 as_dir="$ac_dir"
4675 as_dirs=
4676 while test ! -d "$as_dir"; do
4677 as_dirs="$as_dir $as_dirs"
4678 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4680 X"$as_dir" : 'X\(//\)[^/]' \| \
4681 X"$as_dir" : 'X\(//\)$' \| \
4682 X"$as_dir" : 'X\(/\)' \| \
4683 . : '\(.\)' 2>/dev/null ||
4684 echo X"$as_dir" |
4685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4687 /^X\(\/\/\)$/{ s//\1/; q; }
4688 /^X\(\/\).*/{ s//\1/; q; }
4689 s/.*/./; q'`
4690 done
4691 test ! -n "$as_dirs" || mkdir $as_dirs
4692 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4693 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4694 { (exit 1); exit 1; }; }; }
4696 ac_builddir=.
4698 if test "$ac_dir" != .; then
4699 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4700 # A "../" for each directory in $ac_dir_suffix.
4701 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4702 else
4703 ac_dir_suffix= ac_top_builddir=
4706 case $srcdir in
4707 .) # No --srcdir option. We are building in place.
4708 ac_srcdir=.
4709 if test -z "$ac_top_builddir"; then
4710 ac_top_srcdir=.
4711 else
4712 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4713 fi ;;
4714 [\\/]* | ?:[\\/]* ) # Absolute path.
4715 ac_srcdir=$srcdir$ac_dir_suffix;
4716 ac_top_srcdir=$srcdir ;;
4717 *) # Relative path.
4718 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4719 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4720 esac
4722 # Do not use `cd foo && pwd` to compute absolute paths, because
4723 # the directories may not exist.
4724 case `pwd` in
4725 .) ac_abs_builddir="$ac_dir";;
4727 case "$ac_dir" in
4728 .) ac_abs_builddir=`pwd`;;
4729 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4730 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4731 esac;;
4732 esac
4733 case $ac_abs_builddir in
4734 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4736 case ${ac_top_builddir}. in
4737 .) ac_abs_top_builddir=$ac_abs_builddir;;
4738 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4739 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4740 esac;;
4741 esac
4742 case $ac_abs_builddir in
4743 .) ac_abs_srcdir=$ac_srcdir;;
4745 case $ac_srcdir in
4746 .) ac_abs_srcdir=$ac_abs_builddir;;
4747 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4748 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4749 esac;;
4750 esac
4751 case $ac_abs_builddir in
4752 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4754 case $ac_top_srcdir in
4755 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4756 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4757 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4758 esac;;
4759 esac
4762 case $INSTALL in
4763 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4764 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4765 esac
4767 if test x"$ac_file" != x-; then
4768 { echo "$as_me:$LINENO: creating $ac_file" >&5
4769 echo "$as_me: creating $ac_file" >&6;}
4770 rm -f "$ac_file"
4772 # Let's still pretend it is `configure' which instantiates (i.e., don't
4773 # use $as_me), people would be surprised to read:
4774 # /* config.h. Generated by config.status. */
4775 if test x"$ac_file" = x-; then
4776 configure_input=
4777 else
4778 configure_input="$ac_file. "
4780 configure_input=$configure_input"Generated from `echo $ac_file_in |
4781 sed 's,.*/,,'` by configure."
4783 # First look for the input files in the build tree, otherwise in the
4784 # src tree.
4785 ac_file_inputs=`IFS=:
4786 for f in $ac_file_in; do
4787 case $f in
4788 -) echo $tmp/stdin ;;
4789 [\\/$]*)
4790 # Absolute (can't be DOS-style, as IFS=:)
4791 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4792 echo "$as_me: error: cannot find input file: $f" >&2;}
4793 { (exit 1); exit 1; }; }
4794 echo "$f";;
4795 *) # Relative
4796 if test -f "$f"; then
4797 # Build tree
4798 echo "$f"
4799 elif test -f "$srcdir/$f"; then
4800 # Source tree
4801 echo "$srcdir/$f"
4802 else
4803 # /dev/null tree
4804 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4805 echo "$as_me: error: cannot find input file: $f" >&2;}
4806 { (exit 1); exit 1; }; }
4807 fi;;
4808 esac
4809 done` || { (exit 1); exit 1; }
4810 _ACEOF
4811 cat >>$CONFIG_STATUS <<_ACEOF
4812 sed "$ac_vpsub
4813 $extrasub
4814 _ACEOF
4815 cat >>$CONFIG_STATUS <<\_ACEOF
4817 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4818 s,@configure_input@,$configure_input,;t t
4819 s,@srcdir@,$ac_srcdir,;t t
4820 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4821 s,@top_srcdir@,$ac_top_srcdir,;t t
4822 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4823 s,@builddir@,$ac_builddir,;t t
4824 s,@abs_builddir@,$ac_abs_builddir,;t t
4825 s,@top_builddir@,$ac_top_builddir,;t t
4826 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4827 s,@INSTALL@,$ac_INSTALL,;t t
4828 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4829 rm -f $tmp/stdin
4830 if test x"$ac_file" != x-; then
4831 mv $tmp/out $ac_file
4832 else
4833 cat $tmp/out
4834 rm -f $tmp/out
4837 done
4838 _ACEOF
4839 cat >>$CONFIG_STATUS <<\_ACEOF
4842 # CONFIG_COMMANDS section.
4844 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4845 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4846 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4847 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4848 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4849 X"$ac_dest" : 'X\(//\)[^/]' \| \
4850 X"$ac_dest" : 'X\(//\)$' \| \
4851 X"$ac_dest" : 'X\(/\)' \| \
4852 . : '\(.\)' 2>/dev/null ||
4853 echo X"$ac_dest" |
4854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4856 /^X\(\/\/\)$/{ s//\1/; q; }
4857 /^X\(\/\).*/{ s//\1/; q; }
4858 s/.*/./; q'`
4859 { if $as_mkdir_p; then
4860 mkdir -p "$ac_dir"
4861 else
4862 as_dir="$ac_dir"
4863 as_dirs=
4864 while test ! -d "$as_dir"; do
4865 as_dirs="$as_dir $as_dirs"
4866 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4868 X"$as_dir" : 'X\(//\)[^/]' \| \
4869 X"$as_dir" : 'X\(//\)$' \| \
4870 X"$as_dir" : 'X\(/\)' \| \
4871 . : '\(.\)' 2>/dev/null ||
4872 echo X"$as_dir" |
4873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4875 /^X\(\/\/\)$/{ s//\1/; q; }
4876 /^X\(\/\).*/{ s//\1/; q; }
4877 s/.*/./; q'`
4878 done
4879 test ! -n "$as_dirs" || mkdir $as_dirs
4880 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4881 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4882 { (exit 1); exit 1; }; }; }
4884 ac_builddir=.
4886 if test "$ac_dir" != .; then
4887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4888 # A "../" for each directory in $ac_dir_suffix.
4889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4890 else
4891 ac_dir_suffix= ac_top_builddir=
4894 case $srcdir in
4895 .) # No --srcdir option. We are building in place.
4896 ac_srcdir=.
4897 if test -z "$ac_top_builddir"; then
4898 ac_top_srcdir=.
4899 else
4900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4901 fi ;;
4902 [\\/]* | ?:[\\/]* ) # Absolute path.
4903 ac_srcdir=$srcdir$ac_dir_suffix;
4904 ac_top_srcdir=$srcdir ;;
4905 *) # Relative path.
4906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4908 esac
4910 # Do not use `cd foo && pwd` to compute absolute paths, because
4911 # the directories may not exist.
4912 case `pwd` in
4913 .) ac_abs_builddir="$ac_dir";;
4915 case "$ac_dir" in
4916 .) ac_abs_builddir=`pwd`;;
4917 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4918 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4919 esac;;
4920 esac
4921 case $ac_abs_builddir in
4922 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4924 case ${ac_top_builddir}. in
4925 .) ac_abs_top_builddir=$ac_abs_builddir;;
4926 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4927 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4928 esac;;
4929 esac
4930 case $ac_abs_builddir in
4931 .) ac_abs_srcdir=$ac_srcdir;;
4933 case $ac_srcdir in
4934 .) ac_abs_srcdir=$ac_abs_builddir;;
4935 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4936 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4937 esac;;
4938 esac
4939 case $ac_abs_builddir in
4940 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4942 case $ac_top_srcdir in
4943 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4944 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4945 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4946 esac;;
4947 esac
4950 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4951 echo "$as_me: executing $ac_dest commands" >&6;}
4952 case $ac_dest in
4953 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4954 # Strip MF so we end up with the name of the file.
4955 mf=`echo "$mf" | sed -e 's/:.*$//'`
4956 # Check whether this is an Automake generated Makefile or not.
4957 # We used to match only the files named `Makefile.in', but
4958 # some people rename them; so instead we look at the file content.
4959 # Grep'ing the first line is not enough: some people post-process
4960 # each Makefile.in and add a new line on top of each file to say so.
4961 # So let's grep whole file.
4962 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4963 dirpart=`(dirname "$mf") 2>/dev/null ||
4964 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4965 X"$mf" : 'X\(//\)[^/]' \| \
4966 X"$mf" : 'X\(//\)$' \| \
4967 X"$mf" : 'X\(/\)' \| \
4968 . : '\(.\)' 2>/dev/null ||
4969 echo X"$mf" |
4970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4972 /^X\(\/\/\)$/{ s//\1/; q; }
4973 /^X\(\/\).*/{ s//\1/; q; }
4974 s/.*/./; q'`
4975 else
4976 continue
4978 # Extract the definition of DEPDIR, am__include, and am__quote
4979 # from the Makefile without running `make'.
4980 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
4981 test -z "$DEPDIR" && continue
4982 am__include=`sed -n 's/^am__include = //p' < "$mf"`
4983 test -z "am__include" && continue
4984 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
4985 # When using ansi2knr, U may be empty or an underscore; expand it
4986 U=`sed -n 's/^U = //p' < "$mf"`
4987 # Find all dependency output files, they are included files with
4988 # $(DEPDIR) in their names. We invoke sed twice because it is the
4989 # simplest approach to changing $(DEPDIR) to its actual value in the
4990 # expansion.
4991 for file in `sed -n "
4992 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
4993 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4994 # Make sure the directory exists.
4995 test -f "$dirpart/$file" && continue
4996 fdir=`(dirname "$file") 2>/dev/null ||
4997 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4998 X"$file" : 'X\(//\)[^/]' \| \
4999 X"$file" : 'X\(//\)$' \| \
5000 X"$file" : 'X\(/\)' \| \
5001 . : '\(.\)' 2>/dev/null ||
5002 echo X"$file" |
5003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5005 /^X\(\/\/\)$/{ s//\1/; q; }
5006 /^X\(\/\).*/{ s//\1/; q; }
5007 s/.*/./; q'`
5008 { if $as_mkdir_p; then
5009 mkdir -p $dirpart/$fdir
5010 else
5011 as_dir=$dirpart/$fdir
5012 as_dirs=
5013 while test ! -d "$as_dir"; do
5014 as_dirs="$as_dir $as_dirs"
5015 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5017 X"$as_dir" : 'X\(//\)[^/]' \| \
5018 X"$as_dir" : 'X\(//\)$' \| \
5019 X"$as_dir" : 'X\(/\)' \| \
5020 . : '\(.\)' 2>/dev/null ||
5021 echo X"$as_dir" |
5022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5024 /^X\(\/\/\)$/{ s//\1/; q; }
5025 /^X\(\/\).*/{ s//\1/; q; }
5026 s/.*/./; q'`
5027 done
5028 test ! -n "$as_dirs" || mkdir $as_dirs
5029 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5030 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5031 { (exit 1); exit 1; }; }; }
5033 # echo "creating $dirpart/$file"
5034 echo '# dummy' > "$dirpart/$file"
5035 done
5036 done
5038 esac
5039 done
5040 _ACEOF
5042 cat >>$CONFIG_STATUS <<\_ACEOF
5044 { (exit 0); exit 0; }
5045 _ACEOF
5046 chmod +x $CONFIG_STATUS
5047 ac_clean_files=$ac_clean_files_save
5050 # configure is writing to config.log, and then calls config.status.
5051 # config.status does its own redirection, appending to config.log.
5052 # Unfortunately, on DOS this fails, as config.log is still kept open
5053 # by configure, so config.status won't be able to write to it; its
5054 # output is simply discarded. So we exec the FD to /dev/null,
5055 # effectively closing config.log, so it can be properly (re)opened and
5056 # appended to by config.status. When coming back to configure, we
5057 # need to make the FD available again.
5058 if test "$no_create" != yes; then
5059 ac_cs_success=:
5060 ac_config_status_args=
5061 test "$silent" = yes &&
5062 ac_config_status_args="$ac_config_status_args --quiet"
5063 exec 5>/dev/null
5064 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5065 exec 5>>config.log
5066 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5067 # would make configure fail if this is the last instruction.
5068 $ac_cs_success || { (exit 1); exit 1; }