Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
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
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
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}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/Main.cpp"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CXXCPP EGREP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS SHAPE IMLIB2_CONFIG IMLIB_LIBS IMLIB_CXXFLAGS IMLIB2_CFLAGS IMLIB2_LIBS PKG_CONFIG ac_pt_PKG_CONFIG LIBSN_CFLAGS LIBSN_LIBS HAVE_STARTUP_NOTIFICATION_TRUE HAVE_STARTUP_NOTIFICATION_FALSE STARTUP XFT_TRUE XFT_FALSE DEFAULT_PREFIX LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CXXCPP_set=${CXXCPP+set}
778 ac_env_CXXCPP_value=$CXXCPP
779 ac_cv_env_CXXCPP_set=${CXXCPP+set}
780 ac_cv_env_CXXCPP_value=$CXXCPP
781 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
782 ac_env_PKG_CONFIG_value=$PKG_CONFIG
783 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
784 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
785 ac_env_LIBSN_CFLAGS_set=${LIBSN_CFLAGS+set}
786 ac_env_LIBSN_CFLAGS_value=$LIBSN_CFLAGS
787 ac_cv_env_LIBSN_CFLAGS_set=${LIBSN_CFLAGS+set}
788 ac_cv_env_LIBSN_CFLAGS_value=$LIBSN_CFLAGS
789 ac_env_LIBSN_LIBS_set=${LIBSN_LIBS+set}
790 ac_env_LIBSN_LIBS_value=$LIBSN_LIBS
791 ac_cv_env_LIBSN_LIBS_set=${LIBSN_LIBS+set}
792 ac_cv_env_LIBSN_LIBS_value=$LIBSN_LIBS
793
794 #
795 # Report the --help message.
796 #
797 if test "$ac_init_help" = "long"; then
798 # Omit some internal or obsolete options to make the list less imposing.
799 # This message is too long to be a string in the A/UX 3.1 sh.
800 cat <<_ACEOF
801 \`configure' configures this package to adapt to many kinds of systems.
802
803 Usage: $0 [OPTION]... [VAR=VALUE]...
804
805 To assign environment variables (e.g., CC, CFLAGS...), specify them as
806 VAR=VALUE. See below for descriptions of some of the useful variables.
807
808 Defaults for the options are specified in brackets.
809
810 Configuration:
811 -h, --help display this help and exit
812 --help=short display options specific to this package
813 --help=recursive display the short help of all the included packages
814 -V, --version display version information and exit
815 -q, --quiet, --silent do not print \`checking...' messages
816 --cache-file=FILE cache test results in FILE [disabled]
817 -C, --config-cache alias for \`--cache-file=config.cache'
818 -n, --no-create do not create output files
819 --srcdir=DIR find the sources in DIR [configure dir or \`..']
820
821 _ACEOF
822
823 cat <<_ACEOF
824 Installation directories:
825 --prefix=PREFIX install architecture-independent files in PREFIX
826 [$ac_default_prefix]
827 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
828 [PREFIX]
829
830 By default, \`make install' will install all the files in
831 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
832 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
833 for instance \`--prefix=\$HOME'.
834
835 For better control, use the options below.
836
837 Fine tuning of the installation directories:
838 --bindir=DIR user executables [EPREFIX/bin]
839 --sbindir=DIR system admin executables [EPREFIX/sbin]
840 --libexecdir=DIR program executables [EPREFIX/libexec]
841 --datadir=DIR read-only architecture-independent data [PREFIX/share]
842 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
843 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
844 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
845 --libdir=DIR object code libraries [EPREFIX/lib]
846 --includedir=DIR C header files [PREFIX/include]
847 --oldincludedir=DIR C header files for non-gcc [/usr/include]
848 --infodir=DIR info documentation [PREFIX/info]
849 --mandir=DIR man documentation [PREFIX/man]
850 _ACEOF
851
852 cat <<\_ACEOF
853
854 Program names:
855 --program-prefix=PREFIX prepend PREFIX to installed program names
856 --program-suffix=SUFFIX append SUFFIX to installed program names
857 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
858
859 X features:
860 --x-includes=DIR X include files are in DIR
861 --x-libraries=DIR X library files are in DIR
862 _ACEOF
863 fi
864
865 if test -n "$ac_init_help"; then
866
867 cat <<\_ACEOF
868
869 Optional Features:
870 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
871 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
872 --enable-shape enable support of the XShape extension default=yes
873 --enable-libsn include code for LIBSN default=no
874 --enable-xft Xft (antialias) support (default=yes)
875
876 Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-x use the X Window System
880 --with-imlib2-prefix=PFX Prefix where imlib2 is installed (optional)
881 --with-imlib2-exec-prefix=PFX Exec prefix where imlib2 is installed (optional)
882 --with-xft-prefix=path Prefix where Xft is installed (optional)
883 --with-pkg-exec-prefix=path Exec prefix where pkg-config is installed (optional)
884
885 Some influential environment variables:
886 CC C compiler command
887 CFLAGS C compiler flags
888 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
889 nonstandard directory <lib dir>
890 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
891 headers in a nonstandard directory <include dir>
892 CXX C++ compiler command
893 CXXFLAGS C++ compiler flags
894 CXXCPP C++ preprocessor
895 PKG_CONFIG path to pkg-config utility
896 LIBSN_CFLAGS
897 C compiler flags for LIBSN, overriding pkg-config
898 LIBSN_LIBS linker flags for LIBSN, overriding pkg-config
899
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
902
903 _ACEOF
904 fi
905
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
912
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
919 fi
920
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
936
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
941 *)
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *)
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
959 *)
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *)
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
975
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
990 fi
991 cd "$ac_popdir"
992 done
993 fi
994
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
998
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1004 fi
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1009
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1012
1013 $ $0 $@
1014
1015 _ACEOF
1016 {
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1021
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1030
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1038
1039 _ASUNAME
1040
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1043 do
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1048
1049 } >&5
1050
1051 cat >&5 <<_ACEOF
1052
1053
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1057
1058 _ACEOF
1059
1060
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1072 do
1073 for ac_arg
1074 do
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085 2)
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1098 ;;
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1101 fi
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1105 ;;
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1119 {
1120 echo
1121
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1129 {
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 ;;
1137 *)
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ;;
1141 esac;
1142 }
1143 echo
1144
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171 fi
1172
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1182 fi
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1190 ' 0
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1195
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1200
1201 # Predefined preprocessor variables.
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1226
1227
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 fi
1236 fi
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1243 fi
1244 done
1245
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1256 fi
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1261 fi
1262
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1282 *)
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1304 fi
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1312 fi
1313
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338 VERSION=0.7.5
1339 PACKAGE=idesk
1340
1341 ac_config_headers="$ac_config_headers config.h"
1342
1343 ac_config_commands="$ac_config_commands default-1"
1344
1345
1346 am__api_version="1.4"
1347 ac_aux_dir=
1348 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1349 if test -f $ac_dir/install-sh; then
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/install-sh -c"
1352 break
1353 elif test -f $ac_dir/install.sh; then
1354 ac_aux_dir=$ac_dir
1355 ac_install_sh="$ac_aux_dir/install.sh -c"
1356 break
1357 elif test -f $ac_dir/shtool; then
1358 ac_aux_dir=$ac_dir
1359 ac_install_sh="$ac_aux_dir/shtool install -c"
1360 break
1361 fi
1362 done
1363 if test -z "$ac_aux_dir"; then
1364 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1365 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1366 { (exit 1); exit 1; }; }
1367 fi
1368 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1369 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1370 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1371
1372 # Find a good install program. We prefer a C program (faster),
1373 # so one script is as good as another. But avoid the broken or
1374 # incompatible versions:
1375 # SysV /etc/install, /usr/sbin/install
1376 # SunOS /usr/etc/install
1377 # IRIX /sbin/install
1378 # AIX /bin/install
1379 # AmigaOS /C/install, which installs bootblocks on floppy discs
1380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1383 # OS/2's system install, which has a completely different semantic
1384 # ./install, which can be erroneously created by make from ./install.sh.
1385 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1386 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1387 if test -z "$INSTALL"; then
1388 if test "${ac_cv_path_install+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392 for as_dir in $PATH
1393 do
1394 IFS=$as_save_IFS
1395 test -z "$as_dir" && as_dir=.
1396 # Account for people who put trailing slashes in PATH elements.
1397 case $as_dir/ in
1398 ./ | .// | /cC/* | \
1399 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1400 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1401 /usr/ucb/* ) ;;
1402 *)
1403 # OSF1 and SCO ODT 3.0 have their own names for install.
1404 # Don't use installbsd from OSF since it installs stuff as root
1405 # by default.
1406 for ac_prog in ginstall scoinst install; do
1407 for ac_exec_ext in '' $ac_executable_extensions; do
1408 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1409 if test $ac_prog = install &&
1410 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1411 # AIX install. It has an incompatible calling convention.
1412 :
1413 elif test $ac_prog = install &&
1414 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1415 # program-specific install script used by HP pwplus--don't use.
1416 :
1417 else
1418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1419 break 3
1420 fi
1421 fi
1422 done
1423 done
1424 ;;
1425 esac
1426 done
1427
1428
1429 fi
1430 if test "${ac_cv_path_install+set}" = set; then
1431 INSTALL=$ac_cv_path_install
1432 else
1433 # As a last resort, use the slow shell script. We don't cache a
1434 # path for INSTALL within a source directory, because that will
1435 # break other packages using the cache if that directory is
1436 # removed, or if the path is relative.
1437 INSTALL=$ac_install_sh
1438 fi
1439 fi
1440 echo "$as_me:$LINENO: result: $INSTALL" >&5
1441 echo "${ECHO_T}$INSTALL" >&6
1442
1443 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1444 # It thinks the first close brace ends the variable substitution.
1445 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1446
1447 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1448
1449 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1450
1451 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1452 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1453 # Just in case
1454 sleep 1
1455 echo timestamp > conftestfile
1456 # Do `set' in a subshell so we don't clobber the current shell's
1457 # arguments. Must try -L first in case configure is actually a
1458 # symlink; some systems play weird games with the mod time of symlinks
1459 # (eg FreeBSD returns the mod time of the symlink's containing
1460 # directory).
1461 if (
1462 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1463 if test "$*" = "X"; then
1464 # -L didn't work.
1465 set X `ls -t $srcdir/configure conftestfile`
1466 fi
1467 if test "$*" != "X $srcdir/configure conftestfile" \
1468 && test "$*" != "X conftestfile $srcdir/configure"; then
1469
1470 # If neither matched, then we have a broken ls. This can happen
1471 # if, for instance, CONFIG_SHELL is bash and it inherits a
1472 # broken ls alias from the environment. This has actually
1473 # happened. Such a system could not be considered "sane".
1474 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1475 alias in your environment" >&5
1476 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1477 alias in your environment" >&2;}
1478 { (exit 1); exit 1; }; }
1479 fi
1480
1481 test "$2" = conftestfile
1482 )
1483 then
1484 # Ok.
1485 :
1486 else
1487 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1488 Check your system clock" >&5
1489 echo "$as_me: error: newly created file is older than distributed files!
1490 Check your system clock" >&2;}
1491 { (exit 1); exit 1; }; }
1492 fi
1493 rm -f conftest*
1494 echo "$as_me:$LINENO: result: yes" >&5
1495 echo "${ECHO_T}yes" >&6
1496 test "$program_prefix" != NONE &&
1497 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1498 # Use a double $ so make ignores it.
1499 test "$program_suffix" != NONE &&
1500 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1501 # Double any \ or $. echo might interpret backslashes.
1502 # By default was `s,x,x', remove it if useless.
1503 cat <<\_ACEOF >conftest.sed
1504 s/[\\$]/&&/g;s/;s,x,x,$//
1505 _ACEOF
1506 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1507 rm conftest.sed
1508
1509 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1510 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1511 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1512 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515 cat >conftest.make <<\_ACEOF
1516 all:
1517 @echo 'ac_maketemp="$(MAKE)"'
1518 _ACEOF
1519 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1520 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1521 if test -n "$ac_maketemp"; then
1522 eval ac_cv_prog_make_${ac_make}_set=yes
1523 else
1524 eval ac_cv_prog_make_${ac_make}_set=no
1525 fi
1526 rm -f conftest.make
1527 fi
1528 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1529 echo "$as_me:$LINENO: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1531 SET_MAKE=
1532 else
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1535 SET_MAKE="MAKE=${MAKE-make}"
1536 fi
1537
1538
1539 PACKAGE=$PACKAGE
1540
1541 VERSION="$VERSION"
1542
1543 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1544 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1545 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1546 { (exit 1); exit 1; }; }
1547 fi
1548
1549 cat >>confdefs.h <<_ACEOF
1550 #define PACKAGE "$PACKAGE"
1551 _ACEOF
1552
1553
1554 cat >>confdefs.h <<_ACEOF
1555 #define VERSION "$VERSION"
1556 _ACEOF
1557
1558
1559
1560 missing_dir=`cd $ac_aux_dir && pwd`
1561 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1562 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1563 # Run test in a subshell; some versions of sh will print an error if
1564 # an executable is not found, even if stderr is redirected.
1565 # Redirect stdin to placate older versions of autoconf. Sigh.
1566 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1567 ACLOCAL=aclocal-${am__api_version}
1568 echo "$as_me:$LINENO: result: found" >&5
1569 echo "${ECHO_T}found" >&6
1570 else
1571 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1572 echo "$as_me:$LINENO: result: missing" >&5
1573 echo "${ECHO_T}missing" >&6
1574 fi
1575
1576 echo "$as_me:$LINENO: checking for working autoconf" >&5
1577 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1578 # Run test in a subshell; some versions of sh will print an error if
1579 # an executable is not found, even if stderr is redirected.
1580 # Redirect stdin to placate older versions of autoconf. Sigh.
1581 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1582 AUTOCONF=autoconf
1583 echo "$as_me:$LINENO: result: found" >&5
1584 echo "${ECHO_T}found" >&6
1585 else
1586 AUTOCONF="$missing_dir/missing autoconf"
1587 echo "$as_me:$LINENO: result: missing" >&5
1588 echo "${ECHO_T}missing" >&6
1589 fi
1590
1591 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1592 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1593 # Run test in a subshell; some versions of sh will print an error if
1594 # an executable is not found, even if stderr is redirected.
1595 # Redirect stdin to placate older versions of autoconf. Sigh.
1596 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1597 AUTOMAKE=automake-${am__api_version}
1598 echo "$as_me:$LINENO: result: found" >&5
1599 echo "${ECHO_T}found" >&6
1600 else
1601 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1602 echo "$as_me:$LINENO: result: missing" >&5
1603 echo "${ECHO_T}missing" >&6
1604 fi
1605
1606 echo "$as_me:$LINENO: checking for working autoheader" >&5
1607 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1608 # Run test in a subshell; some versions of sh will print an error if
1609 # an executable is not found, even if stderr is redirected.
1610 # Redirect stdin to placate older versions of autoconf. Sigh.
1611 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1612 AUTOHEADER=autoheader
1613 echo "$as_me:$LINENO: result: found" >&5
1614 echo "${ECHO_T}found" >&6
1615 else
1616 AUTOHEADER="$missing_dir/missing autoheader"
1617 echo "$as_me:$LINENO: result: missing" >&5
1618 echo "${ECHO_T}missing" >&6
1619 fi
1620
1621 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1622 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1623 # Run test in a subshell; some versions of sh will print an error if
1624 # an executable is not found, even if stderr is redirected.
1625 # Redirect stdin to placate older versions of autoconf. Sigh.
1626 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1627 MAKEINFO=makeinfo
1628 echo "$as_me:$LINENO: result: found" >&5
1629 echo "${ECHO_T}found" >&6
1630 else
1631 MAKEINFO="$missing_dir/missing makeinfo"
1632 echo "$as_me:$LINENO: result: missing" >&5
1633 echo "${ECHO_T}missing" >&6
1634 fi
1635
1636
1637
1638 if test "x$prefix" = "xNONE"; then
1639 prefix="/usr/local"
1640 fi
1641 if test "x$exec_prefix" = "xNONE"; then
1642 exec_prefix=$prefix
1643 fi
1644
1645 ac_ext=c
1646 ac_cpp='$CPP $CPPFLAGS'
1647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1650 if test -n "$ac_tool_prefix"; then
1651 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1652 set dummy ${ac_tool_prefix}gcc; 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_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1660 else
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1663 do
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_CC="${ac_tool_prefix}gcc"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 break 2
1671 fi
1672 done
1673 done
1674
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686 fi
1687 if test -z "$ac_cv_prog_CC"; then
1688 ac_ct_CC=$CC
1689 # Extract the first word of "gcc", so it can be a program name with args.
1690 set dummy gcc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 if test -n "$ac_ct_CC"; then
1697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702 IFS=$as_save_IFS
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_ac_ct_CC="gcc"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 break 2
1709 fi
1710 done
1711 done
1712
1713 fi
1714 fi
1715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1716 if test -n "$ac_ct_CC"; then
1717 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1718 echo "${ECHO_T}$ac_ct_CC" >&6
1719 else
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 fi
1723
1724 CC=$ac_ct_CC
1725 else
1726 CC="$ac_cv_prog_CC"
1727 fi
1728
1729 if test -z "$CC"; then
1730 if test -n "$ac_tool_prefix"; then
1731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1732 set dummy ${ac_tool_prefix}cc; ac_word=$2
1733 echo "$as_me:$LINENO: checking for $ac_word" >&5
1734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735 if test "${ac_cv_prog_CC+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738 if test -n "$CC"; then
1739 ac_cv_prog_CC="$CC" # Let the user override the test.
1740 else
1741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 for as_dir in $PATH
1743 do
1744 IFS=$as_save_IFS
1745 test -z "$as_dir" && as_dir=.
1746 for ac_exec_ext in '' $ac_executable_extensions; do
1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748 ac_cv_prog_CC="${ac_tool_prefix}cc"
1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 break 2
1751 fi
1752 done
1753 done
1754
1755 fi
1756 fi
1757 CC=$ac_cv_prog_CC
1758 if test -n "$CC"; then
1759 echo "$as_me:$LINENO: result: $CC" >&5
1760 echo "${ECHO_T}$CC" >&6
1761 else
1762 echo "$as_me:$LINENO: result: no" >&5
1763 echo "${ECHO_T}no" >&6
1764 fi
1765
1766 fi
1767 if test -z "$ac_cv_prog_CC"; then
1768 ac_ct_CC=$CC
1769 # Extract the first word of "cc", so it can be a program name with args.
1770 set dummy cc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776 if test -n "$ac_ct_CC"; then
1777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1778 else
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_ac_ct_CC="cc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1789 fi
1790 done
1791 done
1792
1793 fi
1794 fi
1795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1796 if test -n "$ac_ct_CC"; then
1797 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1798 echo "${ECHO_T}$ac_ct_CC" >&6
1799 else
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1802 fi
1803
1804 CC=$ac_ct_CC
1805 else
1806 CC="$ac_cv_prog_CC"
1807 fi
1808
1809 fi
1810 if test -z "$CC"; then
1811 # Extract the first word of "cc", so it can be a program name with args.
1812 set dummy cc; ac_word=$2
1813 echo "$as_me:$LINENO: checking for $ac_word" >&5
1814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815 if test "${ac_cv_prog_CC+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818 if test -n "$CC"; then
1819 ac_cv_prog_CC="$CC" # Let the user override the test.
1820 else
1821 ac_prog_rejected=no
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1824 do
1825 IFS=$as_save_IFS
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1830 ac_prog_rejected=yes
1831 continue
1832 fi
1833 ac_cv_prog_CC="cc"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 break 2
1836 fi
1837 done
1838 done
1839
1840 if test $ac_prog_rejected = yes; then
1841 # We found a bogon in the path, so make sure we never use it.
1842 set dummy $ac_cv_prog_CC
1843 shift
1844 if test $# != 0; then
1845 # We chose a different compiler from the bogus one.
1846 # However, it has the same basename, so the bogon will be chosen
1847 # first if we set CC to just the basename; use the full file name.
1848 shift
1849 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1850 fi
1851 fi
1852 fi
1853 fi
1854 CC=$ac_cv_prog_CC
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1858 else
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1861 fi
1862
1863 fi
1864 if test -z "$CC"; then
1865 if test -n "$ac_tool_prefix"; then
1866 for ac_prog in cl
1867 do
1868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875 if test -n "$CC"; then
1876 ac_cv_prog_CC="$CC" # Let the user override the test.
1877 else
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881 IFS=$as_save_IFS
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887 break 2
1888 fi
1889 done
1890 done
1891
1892 fi
1893 fi
1894 CC=$ac_cv_prog_CC
1895 if test -n "$CC"; then
1896 echo "$as_me:$LINENO: result: $CC" >&5
1897 echo "${ECHO_T}$CC" >&6
1898 else
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 fi
1902
1903 test -n "$CC" && break
1904 done
1905 fi
1906 if test -z "$CC"; then
1907 ac_ct_CC=$CC
1908 for ac_prog in cl
1909 do
1910 # Extract the first word of "$ac_prog", so it can be a program name with args.
1911 set dummy $ac_prog; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 if test -n "$ac_ct_CC"; then
1918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1922 do
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_ac_ct_CC="$ac_prog"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 break 2
1930 fi
1931 done
1932 done
1933
1934 fi
1935 fi
1936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6
1940 else
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943 fi
1944
1945 test -n "$ac_ct_CC" && break
1946 done
1947
1948 CC=$ac_ct_CC
1949 fi
1950
1951 fi
1952
1953
1954 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: no acceptable C compiler found in \$PATH
1957 See \`config.log' for more details." >&2;}
1958 { (exit 1); exit 1; }; }
1959
1960 # Provide some information about the compiler.
1961 echo "$as_me:$LINENO:" \
1962 "checking for C compiler version" >&5
1963 ac_compiler=`set X $ac_compile; echo $2`
1964 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1965 (eval $ac_compiler --version </dev/null >&5) 2>&5
1966 ac_status=$?
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); }
1969 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1970 (eval $ac_compiler -v </dev/null >&5) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }
1974 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1975 (eval $ac_compiler -V </dev/null >&5) 2>&5
1976 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }
1979
1980 cat >conftest.$ac_ext <<_ACEOF
1981 /* confdefs.h. */
1982 _ACEOF
1983 cat confdefs.h >>conftest.$ac_ext
1984 cat >>conftest.$ac_ext <<_ACEOF
1985 /* end confdefs.h. */
1986
1987 int
1988 main ()
1989 {
1990
1991 ;
1992 return 0;
1993 }
1994 _ACEOF
1995 ac_clean_files_save=$ac_clean_files
1996 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1997 # Try to create an executable without -o first, disregard a.out.
1998 # It will help us diagnose broken compilers, and finding out an intuition
1999 # of exeext.
2000 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2001 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2002 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2003 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2004 (eval $ac_link_default) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; then
2008 # Find the output, starting from the most likely. This scheme is
2009 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2010 # resort.
2011
2012 # Be careful to initialize this variable, since it used to be cached.
2013 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2014 ac_cv_exeext=
2015 # b.out is created by i960 compilers.
2016 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2017 do
2018 test -f "$ac_file" || continue
2019 case $ac_file in
2020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2021 ;;
2022 conftest.$ac_ext )
2023 # This is the source file.
2024 ;;
2025 [ab].out )
2026 # We found the default executable, but exeext='' is most
2027 # certainly right.
2028 break;;
2029 *.* )
2030 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2031 # FIXME: I believe we export ac_cv_exeext for Libtool,
2032 # but it would be cool to find out if it's true. Does anybody
2033 # maintain Libtool? --akim.
2034 export ac_cv_exeext
2035 break;;
2036 * )
2037 break;;
2038 esac
2039 done
2040 else
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: C compiler cannot create executables
2047 See \`config.log' for more details." >&2;}
2048 { (exit 77); exit 77; }; }
2049 fi
2050
2051 ac_exeext=$ac_cv_exeext
2052 echo "$as_me:$LINENO: result: $ac_file" >&5
2053 echo "${ECHO_T}$ac_file" >&6
2054
2055 # Check the compiler produces executables we can run. If not, either
2056 # the compiler is broken, or we cross compile.
2057 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2058 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2059 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2060 # If not cross compiling, check that we can run a simple program.
2061 if test "$cross_compiling" != yes; then
2062 if { ac_try='./$ac_file'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2068 cross_compiling=no
2069 else
2070 if test "$cross_compiling" = maybe; then
2071 cross_compiling=yes
2072 else
2073 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2074 If you meant to cross compile, use \`--host'.
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: cannot run C compiled programs.
2077 If you meant to cross compile, use \`--host'.
2078 See \`config.log' for more details." >&2;}
2079 { (exit 1); exit 1; }; }
2080 fi
2081 fi
2082 fi
2083 echo "$as_me:$LINENO: result: yes" >&5
2084 echo "${ECHO_T}yes" >&6
2085
2086 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2087 ac_clean_files=$ac_clean_files_save
2088 # Check the compiler produces executables we can run. If not, either
2089 # the compiler is broken, or we cross compile.
2090 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2091 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2092 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2093 echo "${ECHO_T}$cross_compiling" >&6
2094
2095 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2096 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2098 (eval $ac_link) 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; then
2102 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2103 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2104 # work properly (i.e., refer to `conftest.exe'), while it won't with
2105 # `rm'.
2106 for ac_file in conftest.exe conftest conftest.*; do
2107 test -f "$ac_file" || continue
2108 case $ac_file in
2109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2110 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2111 export ac_cv_exeext
2112 break;;
2113 * ) break;;
2114 esac
2115 done
2116 else
2117 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2118 See \`config.log' for more details." >&5
2119 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2120 See \`config.log' for more details." >&2;}
2121 { (exit 1); exit 1; }; }
2122 fi
2123
2124 rm -f conftest$ac_cv_exeext
2125 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2126 echo "${ECHO_T}$ac_cv_exeext" >&6
2127
2128 rm -f conftest.$ac_ext
2129 EXEEXT=$ac_cv_exeext
2130 ac_exeext=$EXEEXT
2131 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2132 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2133 if test "${ac_cv_objext+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 cat >conftest.$ac_ext <<_ACEOF
2137 /* confdefs.h. */
2138 _ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h. */
2142
2143 int
2144 main ()
2145 {
2146
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 rm -f conftest.o conftest.obj
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; then
2157 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2158 case $ac_file in
2159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2160 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2161 break;;
2162 esac
2163 done
2164 else
2165 echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2169 See \`config.log' for more details." >&5
2170 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2171 See \`config.log' for more details." >&2;}
2172 { (exit 1); exit 1; }; }
2173 fi
2174
2175 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2176 fi
2177 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2178 echo "${ECHO_T}$ac_cv_objext" >&6
2179 OBJEXT=$ac_cv_objext
2180 ac_objext=$OBJEXT
2181 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2182 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2183 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 cat >conftest.$ac_ext <<_ACEOF
2187 /* confdefs.h. */
2188 _ACEOF
2189 cat confdefs.h >>conftest.$ac_ext
2190 cat >>conftest.$ac_ext <<_ACEOF
2191 /* end confdefs.h. */
2192
2193 int
2194 main ()
2195 {
2196 #ifndef __GNUC__
2197 choke me
2198 #endif
2199
2200 ;
2201 return 0;
2202 }
2203 _ACEOF
2204 rm -f conftest.$ac_objext
2205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206 (eval $ac_compile) 2>conftest.er1
2207 ac_status=$?
2208 grep -v '^ *+' conftest.er1 >conftest.err
2209 rm -f conftest.er1
2210 cat conftest.err >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); } &&
2213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; } &&
2219 { ac_try='test -s conftest.$ac_objext'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 (eval $ac_try) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2225 ac_compiler_gnu=yes
2226 else
2227 echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2229
2230 ac_compiler_gnu=no
2231 fi
2232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2234
2235 fi
2236 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2237 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2238 GCC=`test $ac_compiler_gnu = yes && echo yes`
2239 ac_test_CFLAGS=${CFLAGS+set}
2240 ac_save_CFLAGS=$CFLAGS
2241 CFLAGS="-g"
2242 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2243 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2244 if test "${ac_cv_prog_cc_g+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 cat >conftest.$ac_ext <<_ACEOF
2248 /* confdefs.h. */
2249 _ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2253
2254 int
2255 main ()
2256 {
2257
2258 ;
2259 return 0;
2260 }
2261 _ACEOF
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>conftest.er1
2265 ac_status=$?
2266 grep -v '^ *+' conftest.er1 >conftest.err
2267 rm -f conftest.er1
2268 cat conftest.err >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2283 ac_cv_prog_cc_g=yes
2284 else
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 ac_cv_prog_cc_g=no
2289 fi
2290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291 fi
2292 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2293 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2294 if test "$ac_test_CFLAGS" = set; then
2295 CFLAGS=$ac_save_CFLAGS
2296 elif test $ac_cv_prog_cc_g = yes; then
2297 if test "$GCC" = yes; then
2298 CFLAGS="-g -O2"
2299 else
2300 CFLAGS="-g"
2301 fi
2302 else
2303 if test "$GCC" = yes; then
2304 CFLAGS="-O2"
2305 else
2306 CFLAGS=
2307 fi
2308 fi
2309 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2310 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2311 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314 ac_cv_prog_cc_stdc=no
2315 ac_save_CC=$CC
2316 cat >conftest.$ac_ext <<_ACEOF
2317 /* confdefs.h. */
2318 _ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2322 #include <stdarg.h>
2323 #include <stdio.h>
2324 #include <sys/types.h>
2325 #include <sys/stat.h>
2326 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2327 struct buf { int x; };
2328 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2329 static char *e (p, i)
2330 char **p;
2331 int i;
2332 {
2333 return p[i];
2334 }
2335 static char *f (char * (*g) (char **, int), char **p, ...)
2336 {
2337 char *s;
2338 va_list v;
2339 va_start (v,p);
2340 s = g (p, va_arg (v,int));
2341 va_end (v);
2342 return s;
2343 }
2344
2345 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2346 function prototypes and stuff, but not '\xHH' hex character constants.
2347 These don't provoke an error unfortunately, instead are silently treated
2348 as 'x'. The following induces an error, until -std1 is added to get
2349 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2350 array size at least. It's necessary to write '\x00'==0 to get something
2351 that's true only with -std1. */
2352 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2353
2354 int test (int i, double x);
2355 struct s1 {int (*f) (int a);};
2356 struct s2 {int (*f) (double a);};
2357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2358 int argc;
2359 char **argv;
2360 int
2361 main ()
2362 {
2363 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2364 ;
2365 return 0;
2366 }
2367 _ACEOF
2368 # Don't try gcc -ansi; that turns off useful extensions and
2369 # breaks some systems' header files.
2370 # AIX -qlanglvl=ansi
2371 # Ultrix and OSF/1 -std1
2372 # HP-UX 10.20 and later -Ae
2373 # HP-UX older versions -Aa -D_HPUX_SOURCE
2374 # SVR4 -Xc -D__EXTENSIONS__
2375 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2376 do
2377 CC="$ac_save_CC $ac_arg"
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>conftest.er1
2381 ac_status=$?
2382 grep -v '^ *+' conftest.er1 >conftest.err
2383 rm -f conftest.er1
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 (eval $ac_try) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2399 ac_cv_prog_cc_stdc=$ac_arg
2400 break
2401 else
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 fi
2406 rm -f conftest.err conftest.$ac_objext
2407 done
2408 rm -f conftest.$ac_ext conftest.$ac_objext
2409 CC=$ac_save_CC
2410
2411 fi
2412
2413 case "x$ac_cv_prog_cc_stdc" in
2414 x|xno)
2415 echo "$as_me:$LINENO: result: none needed" >&5
2416 echo "${ECHO_T}none needed" >&6 ;;
2417 *)
2418 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2419 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2420 CC="$CC $ac_cv_prog_cc_stdc" ;;
2421 esac
2422
2423 # Some people use a C++ compiler to compile C. Since we use `exit',
2424 # in C++ we need to declare it. In case someone uses the same compiler
2425 # for both compiling C and C++ we need to have the C++ compiler decide
2426 # the declaration of exit, since it's the most demanding environment.
2427 cat >conftest.$ac_ext <<_ACEOF
2428 #ifndef __cplusplus
2429 choke me
2430 #endif
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2435 ac_status=$?
2436 grep -v '^ *+' conftest.er1 >conftest.err
2437 rm -f conftest.er1
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; } &&
2447 { ac_try='test -s conftest.$ac_objext'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2453 for ac_declaration in \
2454 '' \
2455 'extern "C" void std::exit (int) throw (); using std::exit;' \
2456 'extern "C" void std::exit (int); using std::exit;' \
2457 'extern "C" void exit (int) throw ();' \
2458 'extern "C" void exit (int);' \
2459 'void exit (int);'
2460 do
2461 cat >conftest.$ac_ext <<_ACEOF
2462 /* confdefs.h. */
2463 _ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h. */
2467 $ac_declaration
2468 #include <stdlib.h>
2469 int
2470 main ()
2471 {
2472 exit (42);
2473 ;
2474 return 0;
2475 }
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>conftest.er1
2480 ac_status=$?
2481 grep -v '^ *+' conftest.er1 >conftest.err
2482 rm -f conftest.er1
2483 cat conftest.err >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; } &&
2492 { ac_try='test -s conftest.$ac_objext'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 (eval $ac_try) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2498 :
2499 else
2500 echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2502
2503 continue
2504 fi
2505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2506 cat >conftest.$ac_ext <<_ACEOF
2507 /* confdefs.h. */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2512 $ac_declaration
2513 int
2514 main ()
2515 {
2516 exit (42);
2517 ;
2518 return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>conftest.er1
2524 ac_status=$?
2525 grep -v '^ *+' conftest.er1 >conftest.err
2526 rm -f conftest.er1
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 break
2543 else
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 fi
2548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549 done
2550 rm -f conftest*
2551 if test -n "$ac_declaration"; then
2552 echo '#ifdef __cplusplus' >>confdefs.h
2553 echo $ac_declaration >>confdefs.h
2554 echo '#endif' >>confdefs.h
2555 fi
2556
2557 else
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561 fi
2562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569
2570
2571 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2572 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2573 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576 ac_check_lib_save_LIBS=$LIBS
2577 LIBS="-lcposix $LIBS"
2578 cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h. */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2584
2585 /* Override any gcc2 internal prototype to avoid an error. */
2586 #ifdef __cplusplus
2587 extern "C"
2588 #endif
2589 /* We use char because int might match the return type of a gcc2
2590 builtin and then its argument prototype would still apply. */
2591 char strerror ();
2592 int
2593 main ()
2594 {
2595 strerror ();
2596 ;
2597 return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext conftest$ac_exeext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2602 (eval $ac_link) 2>conftest.er1
2603 ac_status=$?
2604 grep -v '^ *+' conftest.er1 >conftest.err
2605 rm -f conftest.er1
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest$ac_exeext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 ac_cv_lib_cposix_strerror=yes
2622 else
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 ac_cv_lib_cposix_strerror=no
2627 fi
2628 rm -f conftest.err conftest.$ac_objext \
2629 conftest$ac_exeext conftest.$ac_ext
2630 LIBS=$ac_check_lib_save_LIBS
2631 fi
2632 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2633 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2634 if test $ac_cv_lib_cposix_strerror = yes; then
2635 LIBS="$LIBS -lcposix"
2636 fi
2637
2638
2639
2640 ac_ext=cc
2641 ac_cpp='$CXXCPP $CPPFLAGS'
2642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2645
2646
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2655 echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2657 if test "${ac_cv_prog_CC+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674 done
2675 done
2676
2677 fi
2678 fi
2679 CC=$ac_cv_prog_CC
2680 if test -n "$CC"; then
2681 echo "$as_me:$LINENO: result: $CC" >&5
2682 echo "${ECHO_T}$CC" >&6
2683 else
2684 echo "$as_me:$LINENO: result: no" >&5
2685 echo "${ECHO_T}no" >&6
2686 fi
2687
2688 fi
2689 if test -z "$ac_cv_prog_CC"; then
2690 ac_ct_CC=$CC
2691 # Extract the first word of "gcc", so it can be a program name with args.
2692 set dummy gcc; ac_word=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$ac_ct_CC"; then
2699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_ac_ct_CC="gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712 done
2713 done
2714
2715 fi
2716 fi
2717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2718 if test -n "$ac_ct_CC"; then
2719 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2720 echo "${ECHO_T}$ac_ct_CC" >&6
2721 else
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2724 fi
2725
2726 CC=$ac_ct_CC
2727 else
2728 CC="$ac_cv_prog_CC"
2729 fi
2730
2731 if test -z "$CC"; then
2732 if test -n "$ac_tool_prefix"; then
2733 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2734 set dummy ${ac_tool_prefix}cc; ac_word=$2
2735 echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2737 if test "${ac_cv_prog_CC+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740 if test -n "$CC"; then
2741 ac_cv_prog_CC="$CC" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750 ac_cv_prog_CC="${ac_tool_prefix}cc"
2751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754 done
2755 done
2756
2757 fi
2758 fi
2759 CC=$ac_cv_prog_CC
2760 if test -n "$CC"; then
2761 echo "$as_me:$LINENO: result: $CC" >&5
2762 echo "${ECHO_T}$CC" >&6
2763 else
2764 echo "$as_me:$LINENO: result: no" >&5
2765 echo "${ECHO_T}no" >&6
2766 fi
2767
2768 fi
2769 if test -z "$ac_cv_prog_CC"; then
2770 ac_ct_CC=$CC
2771 # Extract the first word of "cc", so it can be a program name with args.
2772 set dummy cc; ac_word=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$ac_ct_CC"; then
2779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_ac_ct_CC="cc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794
2795 fi
2796 fi
2797 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2798 if test -n "$ac_ct_CC"; then
2799 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2800 echo "${ECHO_T}$ac_ct_CC" >&6
2801 else
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2804 fi
2805
2806 CC=$ac_ct_CC
2807 else
2808 CC="$ac_cv_prog_CC"
2809 fi
2810
2811 fi
2812 if test -z "$CC"; then
2813 # Extract the first word of "cc", so it can be a program name with args.
2814 set dummy cc; ac_word=$2
2815 echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817 if test "${ac_cv_prog_CC+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2822 else
2823 ac_prog_rejected=no
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2832 ac_prog_rejected=yes
2833 continue
2834 fi
2835 ac_cv_prog_CC="cc"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841
2842 if test $ac_prog_rejected = yes; then
2843 # We found a bogon in the path, so make sure we never use it.
2844 set dummy $ac_cv_prog_CC
2845 shift
2846 if test $# != 0; then
2847 # We chose a different compiler from the bogus one.
2848 # However, it has the same basename, so the bogon will be chosen
2849 # first if we set CC to just the basename; use the full file name.
2850 shift
2851 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2852 fi
2853 fi
2854 fi
2855 fi
2856 CC=$ac_cv_prog_CC
2857 if test -n "$CC"; then
2858 echo "$as_me:$LINENO: result: $CC" >&5
2859 echo "${ECHO_T}$CC" >&6
2860 else
2861 echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6
2863 fi
2864
2865 fi
2866 if test -z "$CC"; then
2867 if test -n "$ac_tool_prefix"; then
2868 for ac_prog in cl
2869 do
2870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2872 echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874 if test "${ac_cv_prog_CC+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 echo "$as_me:$LINENO: result: $CC" >&5
2899 echo "${ECHO_T}$CC" >&6
2900 else
2901 echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6
2903 fi
2904
2905 test -n "$CC" && break
2906 done
2907 fi
2908 if test -z "$CC"; then
2909 ac_ct_CC=$CC
2910 for ac_prog in cl
2911 do
2912 # Extract the first word of "$ac_prog", so it can be a program name with args.
2913 set dummy $ac_prog; ac_word=$2
2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 if test -n "$ac_ct_CC"; then
2920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_CC="$ac_prog"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935
2936 fi
2937 fi
2938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939 if test -n "$ac_ct_CC"; then
2940 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2941 echo "${ECHO_T}$ac_ct_CC" >&6
2942 else
2943 echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2945 fi
2946
2947 test -n "$ac_ct_CC" && break
2948 done
2949
2950 CC=$ac_ct_CC
2951 fi
2952
2953 fi
2954
2955
2956 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2957 See \`config.log' for more details." >&5
2958 echo "$as_me: error: no acceptable C compiler found in \$PATH
2959 See \`config.log' for more details." >&2;}
2960 { (exit 1); exit 1; }; }
2961
2962 # Provide some information about the compiler.
2963 echo "$as_me:$LINENO:" \
2964 "checking for C compiler version" >&5
2965 ac_compiler=`set X $ac_compile; echo $2`
2966 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2967 (eval $ac_compiler --version </dev/null >&5) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }
2971 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2972 (eval $ac_compiler -v </dev/null >&5) 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }
2976 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2977 (eval $ac_compiler -V </dev/null >&5) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }
2981
2982 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987 cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h. */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2993
2994 int
2995 main ()
2996 {
2997 #ifndef __GNUC__
2998 choke me
2999 #endif
3000
3001 ;
3002 return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007 (eval $ac_compile) 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016 (eval $ac_try) 2>&5
3017 ac_status=$?
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; } &&
3020 { ac_try='test -s conftest.$ac_objext'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3026 ac_compiler_gnu=yes
3027 else
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031 ac_compiler_gnu=no
3032 fi
3033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3034 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3035
3036 fi
3037 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3038 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3039 GCC=`test $ac_compiler_gnu = yes && echo yes`
3040 ac_test_CFLAGS=${CFLAGS+set}
3041 ac_save_CFLAGS=$CFLAGS
3042 CFLAGS="-g"
3043 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3044 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3045 if test "${ac_cv_prog_cc_g+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 else
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054
3055 int
3056 main ()
3057 {
3058
3059 ;
3060 return 0;
3061 }
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3065 (eval $ac_compile) 2>conftest.er1
3066 ac_status=$?
3067 grep -v '^ *+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } &&
3072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 (eval $ac_try) 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3084 ac_cv_prog_cc_g=yes
3085 else
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 ac_cv_prog_cc_g=no
3090 fi
3091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092 fi
3093 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3094 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3095 if test "$ac_test_CFLAGS" = set; then
3096 CFLAGS=$ac_save_CFLAGS
3097 elif test $ac_cv_prog_cc_g = yes; then
3098 if test "$GCC" = yes; then
3099 CFLAGS="-g -O2"
3100 else
3101 CFLAGS="-g"
3102 fi
3103 else
3104 if test "$GCC" = yes; then
3105 CFLAGS="-O2"
3106 else
3107 CFLAGS=
3108 fi
3109 fi
3110 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3111 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3112 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 ac_cv_prog_cc_stdc=no
3116 ac_save_CC=$CC
3117 cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h. */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3123 #include <stdarg.h>
3124 #include <stdio.h>
3125 #include <sys/types.h>
3126 #include <sys/stat.h>
3127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3128 struct buf { int x; };
3129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3130 static char *e (p, i)
3131 char **p;
3132 int i;
3133 {
3134 return p[i];
3135 }
3136 static char *f (char * (*g) (char **, int), char **p, ...)
3137 {
3138 char *s;
3139 va_list v;
3140 va_start (v,p);
3141 s = g (p, va_arg (v,int));
3142 va_end (v);
3143 return s;
3144 }
3145
3146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3147 function prototypes and stuff, but not '\xHH' hex character constants.
3148 These don't provoke an error unfortunately, instead are silently treated
3149 as 'x'. The following induces an error, until -std1 is added to get
3150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3151 array size at least. It's necessary to write '\x00'==0 to get something
3152 that's true only with -std1. */
3153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3154
3155 int test (int i, double x);
3156 struct s1 {int (*f) (int a);};
3157 struct s2 {int (*f) (double a);};
3158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3159 int argc;
3160 char **argv;
3161 int
3162 main ()
3163 {
3164 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3165 ;
3166 return 0;
3167 }
3168 _ACEOF
3169 # Don't try gcc -ansi; that turns off useful extensions and
3170 # breaks some systems' header files.
3171 # AIX -qlanglvl=ansi
3172 # Ultrix and OSF/1 -std1
3173 # HP-UX 10.20 and later -Ae
3174 # HP-UX older versions -Aa -D_HPUX_SOURCE
3175 # SVR4 -Xc -D__EXTENSIONS__
3176 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3177 do
3178 CC="$ac_save_CC $ac_arg"
3179 rm -f conftest.$ac_objext
3180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3181 (eval $ac_compile) 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 ac_cv_prog_cc_stdc=$ac_arg
3201 break
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 fi
3207 rm -f conftest.err conftest.$ac_objext
3208 done
3209 rm -f conftest.$ac_ext conftest.$ac_objext
3210 CC=$ac_save_CC
3211
3212 fi
3213
3214 case "x$ac_cv_prog_cc_stdc" in
3215 x|xno)
3216 echo "$as_me:$LINENO: result: none needed" >&5
3217 echo "${ECHO_T}none needed" >&6 ;;
3218 *)
3219 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3220 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3221 CC="$CC $ac_cv_prog_cc_stdc" ;;
3222 esac
3223
3224 # Some people use a C++ compiler to compile C. Since we use `exit',
3225 # in C++ we need to declare it. In case someone uses the same compiler
3226 # for both compiling C and C++ we need to have the C++ compiler decide
3227 # the declaration of exit, since it's the most demanding environment.
3228 cat >conftest.$ac_ext <<_ACEOF
3229 #ifndef __cplusplus
3230 choke me
3231 #endif
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 for ac_declaration in \
3255 '' \
3256 'extern "C" void std::exit (int) throw (); using std::exit;' \
3257 'extern "C" void std::exit (int); using std::exit;' \
3258 'extern "C" void exit (int) throw ();' \
3259 'extern "C" void exit (int);' \
3260 'void exit (int);'
3261 do
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h. */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3268 $ac_declaration
3269 #include <stdlib.h>
3270 int
3271 main ()
3272 {
3273 exit (42);
3274 ;
3275 return 0;
3276 }
3277 _ACEOF
3278 rm -f conftest.$ac_objext
3279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3280 (eval $ac_compile) 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 :
3300 else
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 continue
3305 fi
3306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 $ac_declaration
3314 int
3315 main ()
3316 {
3317 exit (42);
3318 ;
3319 return 0;
3320 }
3321 _ACEOF
3322 rm -f conftest.$ac_objext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324 (eval $ac_compile) 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; } &&
3337 { ac_try='test -s conftest.$ac_objext'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 (eval $ac_try) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3343 break
3344 else
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3347
3348 fi
3349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3350 done
3351 rm -f conftest*
3352 if test -n "$ac_declaration"; then
3353 echo '#ifdef __cplusplus' >>confdefs.h
3354 echo $ac_declaration >>confdefs.h
3355 echo '#endif' >>confdefs.h
3356 fi
3357
3358 else
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 fi
3363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3364 ac_ext=cc
3365 ac_cpp='$CXXCPP $CPPFLAGS'
3366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3369
3370 ac_ext=cc
3371 ac_cpp='$CXXCPP $CPPFLAGS'
3372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3375 if test -n "$ac_tool_prefix"; then
3376 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3377 do
3378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_prog_CXX+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 if test -n "$CXX"; then
3386 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3398 fi
3399 done
3400 done
3401
3402 fi
3403 fi
3404 CXX=$ac_cv_prog_CXX
3405 if test -n "$CXX"; then
3406 echo "$as_me:$LINENO: result: $CXX" >&5
3407 echo "${ECHO_T}$CXX" >&6
3408 else
3409 echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3411 fi
3412
3413 test -n "$CXX" && break
3414 done
3415 fi
3416 if test -z "$CXX"; then
3417 ac_ct_CXX=$CXX
3418 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3419 do
3420 # Extract the first word of "$ac_prog", so it can be a program name with args.
3421 set dummy $ac_prog; ac_word=$2
3422 echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427 if test -n "$ac_ct_CXX"; then
3428 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_ac_ct_CXX="$ac_prog"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443
3444 fi
3445 fi
3446 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3447 if test -n "$ac_ct_CXX"; then
3448 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3449 echo "${ECHO_T}$ac_ct_CXX" >&6
3450 else
3451 echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6
3453 fi
3454
3455 test -n "$ac_ct_CXX" && break
3456 done
3457 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3458
3459 CXX=$ac_ct_CXX
3460 fi
3461
3462
3463 # Provide some information about the compiler.
3464 echo "$as_me:$LINENO:" \
3465 "checking for C++ compiler version" >&5
3466 ac_compiler=`set X $ac_compile; echo $2`
3467 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3468 (eval $ac_compiler --version </dev/null >&5) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }
3472 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3473 (eval $ac_compiler -v </dev/null >&5) 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }
3477 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3478 (eval $ac_compiler -V </dev/null >&5) 2>&5
3479 ac_status=$?
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }
3482
3483 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3484 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3485 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h. */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494
3495 int
3496 main ()
3497 {
3498 #ifndef __GNUC__
3499 choke me
3500 #endif
3501
3502 ;
3503 return 0;
3504 }
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_compiler_gnu=yes
3528 else
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 ac_compiler_gnu=no
3533 fi
3534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3535 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3536
3537 fi
3538 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3539 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3540 GXX=`test $ac_compiler_gnu = yes && echo yes`
3541 ac_test_CXXFLAGS=${CXXFLAGS+set}
3542 ac_save_CXXFLAGS=$CXXFLAGS
3543 CXXFLAGS="-g"
3544 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3545 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3546 if test "${ac_cv_prog_cxx_g+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555
3556 int
3557 main ()
3558 {
3559
3560 ;
3561 return 0;
3562 }
3563 _ACEOF
3564 rm -f conftest.$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 (eval $ac_try) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; } &&
3579 { ac_try='test -s conftest.$ac_objext'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 (eval $ac_try) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; }; then
3585 ac_cv_prog_cxx_g=yes
3586 else
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590 ac_cv_prog_cxx_g=no
3591 fi
3592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3593 fi
3594 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3595 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3596 if test "$ac_test_CXXFLAGS" = set; then
3597 CXXFLAGS=$ac_save_CXXFLAGS
3598 elif test $ac_cv_prog_cxx_g = yes; then
3599 if test "$GXX" = yes; then
3600 CXXFLAGS="-g -O2"
3601 else
3602 CXXFLAGS="-g"
3603 fi
3604 else
3605 if test "$GXX" = yes; then
3606 CXXFLAGS="-O2"
3607 else
3608 CXXFLAGS=
3609 fi
3610 fi
3611 for ac_declaration in \
3612 '' \
3613 'extern "C" void std::exit (int) throw (); using std::exit;' \
3614 'extern "C" void std::exit (int); using std::exit;' \
3615 'extern "C" void exit (int) throw ();' \
3616 'extern "C" void exit (int);' \
3617 'void exit (int);'
3618 do
3619 cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h. */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3625 $ac_declaration
3626 #include <stdlib.h>
3627 int
3628 main ()
3629 {
3630 exit (42);
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 rm -f conftest.$ac_objext
3636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637 (eval $ac_compile) 2>conftest.er1
3638 ac_status=$?
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } &&
3644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; } &&
3650 { ac_try='test -s conftest.$ac_objext'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3656 :
3657 else
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 continue
3662 fi
3663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3664 cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h. */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3670 $ac_declaration
3671 int
3672 main ()
3673 {
3674 exit (42);
3675 ;
3676 return 0;
3677 }
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 break
3701 else
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 fi
3706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3707 done
3708 rm -f conftest*
3709 if test -n "$ac_declaration"; then
3710 echo '#ifdef __cplusplus' >>confdefs.h
3711 echo $ac_declaration >>confdefs.h
3712 echo '#endif' >>confdefs.h
3713 fi
3714
3715 ac_ext=cc
3716 ac_cpp='$CXXCPP $CPPFLAGS'
3717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3720
3721 # Find a good install program. We prefer a C program (faster),
3722 # so one script is as good as another. But avoid the broken or
3723 # incompatible versions:
3724 # SysV /etc/install, /usr/sbin/install
3725 # SunOS /usr/etc/install
3726 # IRIX /sbin/install
3727 # AIX /bin/install
3728 # AmigaOS /C/install, which installs bootblocks on floppy discs
3729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3732 # OS/2's system install, which has a completely different semantic
3733 # ./install, which can be erroneously created by make from ./install.sh.
3734 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3735 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3736 if test -z "$INSTALL"; then
3737 if test "${ac_cv_path_install+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 # Account for people who put trailing slashes in PATH elements.
3746 case $as_dir/ in
3747 ./ | .// | /cC/* | \
3748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3749 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3750 /usr/ucb/* ) ;;
3751 *)
3752 # OSF1 and SCO ODT 3.0 have their own names for install.
3753 # Don't use installbsd from OSF since it installs stuff as root
3754 # by default.
3755 for ac_prog in ginstall scoinst install; do
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3758 if test $ac_prog = install &&
3759 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3760 # AIX install. It has an incompatible calling convention.
3761 :
3762 elif test $ac_prog = install &&
3763 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3764 # program-specific install script used by HP pwplus--don't use.
3765 :
3766 else
3767 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3768 break 3
3769 fi
3770 fi
3771 done
3772 done
3773 ;;
3774 esac
3775 done
3776
3777
3778 fi
3779 if test "${ac_cv_path_install+set}" = set; then
3780 INSTALL=$ac_cv_path_install
3781 else
3782 # As a last resort, use the slow shell script. We don't cache a
3783 # path for INSTALL within a source directory, because that will
3784 # break other packages using the cache if that directory is
3785 # removed, or if the path is relative.
3786 INSTALL=$ac_install_sh
3787 fi
3788 fi
3789 echo "$as_me:$LINENO: result: $INSTALL" >&5
3790 echo "${ECHO_T}$INSTALL" >&6
3791
3792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3793 # It thinks the first close brace ends the variable substitution.
3794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3795
3796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3797
3798 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3799
3800
3801
3802
3803
3804 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3805 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3806 if test "${am_cv_prog_cc_stdc+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 am_cv_prog_cc_stdc=no
3810 ac_save_CC="$CC"
3811 # Don't try gcc -ansi; that turns off useful extensions and
3812 # breaks some systems' header files.
3813 # AIX -qlanglvl=ansi
3814 # Ultrix and OSF/1 -std1
3815 # HP-UX -Aa -D_HPUX_SOURCE
3816 # SVR4 -Xc -D__EXTENSIONS__
3817 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3818 do
3819 CC="$ac_save_CC $ac_arg"
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 #include <stdarg.h>
3827 #include <stdio.h>
3828 #include <sys/types.h>
3829 #include <sys/stat.h>
3830 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3831 struct buf { int x; };
3832 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3833 static char *e (p, i)
3834 char **p;
3835 int i;
3836 {
3837 return p[i];
3838 }
3839 static char *f (char * (*g) (char **, int), char **p, ...)
3840 {
3841 char *s;
3842 va_list v;
3843 va_start (v,p);
3844 s = g (p, va_arg (v,int));
3845 va_end (v);
3846 return s;
3847 }
3848 int test (int i, double x);
3849 struct s1 {int (*f) (int a);};
3850 struct s2 {int (*f) (double a);};
3851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3852 int argc;
3853 char **argv;
3854
3855 int
3856 main ()
3857 {
3858
3859 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3860
3861 ;
3862 return 0;
3863 }
3864 _ACEOF
3865 rm -f conftest.$ac_objext
3866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3867 (eval $ac_compile) 2>conftest.er1
3868 ac_status=$?
3869 grep -v '^ *+' conftest.er1 >conftest.err
3870 rm -f conftest.er1
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } &&
3874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; } &&
3880 { ac_try='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 (eval $ac_try) 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 am_cv_prog_cc_stdc="$ac_arg"; break
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891 fi
3892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3893 done
3894 CC="$ac_save_CC"
3895
3896 fi
3897
3898 if test -z "$am_cv_prog_cc_stdc"; then
3899 echo "$as_me:$LINENO: result: none needed" >&5
3900 echo "${ECHO_T}none needed" >&6
3901 else
3902 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3903 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3904 fi
3905 case "x$am_cv_prog_cc_stdc" in
3906 x|xno) ;;
3907 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3908 esac
3909
3910 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3911 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3912 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3913 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 cat >conftest.make <<\_ACEOF
3917 all:
3918 @echo 'ac_maketemp="$(MAKE)"'
3919 _ACEOF
3920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3921 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3922 if test -n "$ac_maketemp"; then
3923 eval ac_cv_prog_make_${ac_make}_set=yes
3924 else
3925 eval ac_cv_prog_make_${ac_make}_set=no
3926 fi
3927 rm -f conftest.make
3928 fi
3929 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3930 echo "$as_me:$LINENO: result: yes" >&5
3931 echo "${ECHO_T}yes" >&6
3932 SET_MAKE=
3933 else
3934 echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3936 SET_MAKE="MAKE=${MAKE-make}"
3937 fi
3938
3939
3940 ac_ext=cc
3941 ac_cpp='$CXXCPP $CPPFLAGS'
3942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3945 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3946 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3947 if test -z "$CXXCPP"; then
3948 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951 # Double quotes because CXXCPP needs to be expanded
3952 for CXXCPP in "$CXX -E" "/lib/cpp"
3953 do
3954 ac_preproc_ok=false
3955 for ac_cxx_preproc_warn_flag in '' yes
3956 do
3957 # Use a header file that comes with gcc, so configuring glibc
3958 # with a fresh cross-compiler works.
3959 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3960 # <limits.h> exists even on freestanding compilers.
3961 # On the NeXT, cc -E runs the code through the compiler's parser,
3962 # not just through cpp. "Syntax error" is here to catch this case.
3963 cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h. */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3969 #ifdef __STDC__
3970 # include <limits.h>
3971 #else
3972 # include <assert.h>
3973 #endif
3974 Syntax error
3975 _ACEOF
3976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } >/dev/null; then
3984 if test -s conftest.err; then
3985 ac_cpp_err=$ac_cxx_preproc_warn_flag
3986 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3987 else
3988 ac_cpp_err=
3989 fi
3990 else
3991 ac_cpp_err=yes
3992 fi
3993 if test -z "$ac_cpp_err"; then
3994 :
3995 else
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3998
3999 # Broken: fails on valid input.
4000 continue
4001 fi
4002 rm -f conftest.err conftest.$ac_ext
4003
4004 # OK, works on sane cases. Now check whether non-existent headers
4005 # can be detected and how.
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 #include <ac_nonexistent.h>
4013 _ACEOF
4014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } >/dev/null; then
4022 if test -s conftest.err; then
4023 ac_cpp_err=$ac_cxx_preproc_warn_flag
4024 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4025 else
4026 ac_cpp_err=
4027 fi
4028 else
4029 ac_cpp_err=yes
4030 fi
4031 if test -z "$ac_cpp_err"; then
4032 # Broken: success on invalid input.
4033 continue
4034 else
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038 # Passes both tests.
4039 ac_preproc_ok=:
4040 break
4041 fi
4042 rm -f conftest.err conftest.$ac_ext
4043
4044 done
4045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4046 rm -f conftest.err conftest.$ac_ext
4047 if $ac_preproc_ok; then
4048 break
4049 fi
4050
4051 done
4052 ac_cv_prog_CXXCPP=$CXXCPP
4053
4054 fi
4055 CXXCPP=$ac_cv_prog_CXXCPP
4056 else
4057 ac_cv_prog_CXXCPP=$CXXCPP
4058 fi
4059 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4060 echo "${ECHO_T}$CXXCPP" >&6
4061 ac_preproc_ok=false
4062 for ac_cxx_preproc_warn_flag in '' yes
4063 do
4064 # Use a header file that comes with gcc, so configuring glibc
4065 # with a fresh cross-compiler works.
4066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4067 # <limits.h> exists even on freestanding compilers.
4068 # On the NeXT, cc -E runs the code through the compiler's parser,
4069 # not just through cpp. "Syntax error" is here to catch this case.
4070 cat >conftest.$ac_ext <<_ACEOF
4071 /* confdefs.h. */
4072 _ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4076 #ifdef __STDC__
4077 # include <limits.h>
4078 #else
4079 # include <assert.h>
4080 #endif
4081 Syntax error
4082 _ACEOF
4083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } >/dev/null; then
4091 if test -s conftest.err; then
4092 ac_cpp_err=$ac_cxx_preproc_warn_flag
4093 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4094 else
4095 ac_cpp_err=
4096 fi
4097 else
4098 ac_cpp_err=yes
4099 fi
4100 if test -z "$ac_cpp_err"; then
4101 :
4102 else
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 # Broken: fails on valid input.
4107 continue
4108 fi
4109 rm -f conftest.err conftest.$ac_ext
4110
4111 # OK, works on sane cases. Now check whether non-existent headers
4112 # can be detected and how.
4113 cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h. */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4119 #include <ac_nonexistent.h>
4120 _ACEOF
4121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4123 ac_status=$?
4124 grep -v '^ *+' conftest.er1 >conftest.err
4125 rm -f conftest.er1
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } >/dev/null; then
4129 if test -s conftest.err; then
4130 ac_cpp_err=$ac_cxx_preproc_warn_flag
4131 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4132 else
4133 ac_cpp_err=
4134 fi
4135 else
4136 ac_cpp_err=yes
4137 fi
4138 if test -z "$ac_cpp_err"; then
4139 # Broken: success on invalid input.
4140 continue
4141 else
4142 echo "$as_me: failed program was:" >&5
4143 sed 's/^/| /' conftest.$ac_ext >&5
4144
4145 # Passes both tests.
4146 ac_preproc_ok=:
4147 break
4148 fi
4149 rm -f conftest.err conftest.$ac_ext
4150
4151 done
4152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4153 rm -f conftest.err conftest.$ac_ext
4154 if $ac_preproc_ok; then
4155 :
4156 else
4157 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4158 See \`config.log' for more details." >&5
4159 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4160 See \`config.log' for more details." >&2;}
4161 { (exit 1); exit 1; }; }
4162 fi
4163
4164 ac_ext=cc
4165 ac_cpp='$CXXCPP $CPPFLAGS'
4166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4169
4170
4171 echo "$as_me:$LINENO: checking for egrep" >&5
4172 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4173 if test "${ac_cv_prog_egrep+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4177 then ac_cv_prog_egrep='grep -E'
4178 else ac_cv_prog_egrep='egrep'
4179 fi
4180 fi
4181 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4182 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4183 EGREP=$ac_cv_prog_egrep
4184
4185
4186 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4187 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4188 if test "${ac_cv_header_stdc+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191 cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h. */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4197 #include <stdlib.h>
4198 #include <stdarg.h>
4199 #include <string.h>
4200 #include <float.h>
4201
4202 int
4203 main ()
4204 {
4205
4206 ;
4207 return 0;
4208 }
4209 _ACEOF
4210 rm -f conftest.$ac_objext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4212 (eval $ac_compile) 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 (eval $ac_try) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; } &&
4225 { ac_try='test -s conftest.$ac_objext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 ac_cv_header_stdc=yes
4232 else
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 ac_cv_header_stdc=no
4237 fi
4238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4239
4240 if test $ac_cv_header_stdc = yes; then
4241 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4242 cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h. */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 #include <string.h>
4249
4250 _ACEOF
4251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4252 $EGREP "memchr" >/dev/null 2>&1; then
4253 :
4254 else
4255 ac_cv_header_stdc=no
4256 fi
4257 rm -f conftest*
4258
4259 fi
4260
4261 if test $ac_cv_header_stdc = yes; then
4262 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4263 cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #include <stdlib.h>
4270
4271 _ACEOF
4272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4273 $EGREP "free" >/dev/null 2>&1; then
4274 :
4275 else
4276 ac_cv_header_stdc=no
4277 fi
4278 rm -f conftest*
4279
4280 fi
4281
4282 if test $ac_cv_header_stdc = yes; then
4283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4284 if test "$cross_compiling" = yes; then
4285 :
4286 else
4287 cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h. */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 #include <ctype.h>
4294 #if ((' ' & 0x0FF) == 0x020)
4295 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4296 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4297 #else
4298 # define ISLOWER(c) \
4299 (('a' <= (c) && (c) <= 'i') \
4300 || ('j' <= (c) && (c) <= 'r') \
4301 || ('s' <= (c) && (c) <= 'z'))
4302 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4303 #endif
4304
4305 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4306 int
4307 main ()
4308 {
4309 int i;
4310 for (i = 0; i < 256; i++)
4311 if (XOR (islower (i), ISLOWER (i))
4312 || toupper (i) != TOUPPER (i))
4313 exit(2);
4314 exit (0);
4315 }
4316 _ACEOF
4317 rm -f conftest$ac_exeext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4319 (eval $ac_link) 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 (eval $ac_try) 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 :
4329 else
4330 echo "$as_me: program exited with status $ac_status" >&5
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4333
4334 ( exit $ac_status )
4335 ac_cv_header_stdc=no
4336 fi
4337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4338 fi
4339 fi
4340 fi
4341 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4342 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4343 if test $ac_cv_header_stdc = yes; then
4344
4345 cat >>confdefs.h <<\_ACEOF
4346 #define STDC_HEADERS 1
4347 _ACEOF
4348
4349 fi
4350
4351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4362 inttypes.h stdint.h unistd.h
4363 do
4364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4365 echo "$as_me:$LINENO: checking for $ac_header" >&5
4366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370 cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h. */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 $ac_includes_default
4377
4378 #include <$ac_header>
4379 _ACEOF
4380 rm -f conftest.$ac_objext
4381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382 (eval $ac_compile) 2>conftest.er1
4383 ac_status=$?
4384 grep -v '^ *+' conftest.er1 >conftest.err
4385 rm -f conftest.er1
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 (eval $ac_try) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; } &&
4395 { ac_try='test -s conftest.$ac_objext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 eval "$as_ac_Header=yes"
4402 else
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406 eval "$as_ac_Header=no"
4407 fi
4408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4409 fi
4410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4413 cat >>confdefs.h <<_ACEOF
4414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4415 _ACEOF
4416
4417 fi
4418
4419 done
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429 for ac_header in string.h unistd.h dirent.h stdlib.h sys/time.h time.h sys/wait.h
4430 do
4431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4433 echo "$as_me:$LINENO: checking for $ac_header" >&5
4434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 fi
4438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4440 else
4441 # Is the header compilable?
4442 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h. */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 $ac_includes_default
4451 #include <$ac_header>
4452 _ACEOF
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>conftest.er1
4456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 (eval $ac_try) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; } &&
4468 { ac_try='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 ac_header_compiler=yes
4475 else
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479 ac_header_compiler=no
4480 fi
4481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4483 echo "${ECHO_T}$ac_header_compiler" >&6
4484
4485 # Is the header present?
4486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4488 cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 #include <$ac_header>
4495 _ACEOF
4496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4498 ac_status=$?
4499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } >/dev/null; then
4504 if test -s conftest.err; then
4505 ac_cpp_err=$ac_cxx_preproc_warn_flag
4506 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4507 else
4508 ac_cpp_err=
4509 fi
4510 else
4511 ac_cpp_err=yes
4512 fi
4513 if test -z "$ac_cpp_err"; then
4514 ac_header_preproc=yes
4515 else
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519 ac_header_preproc=no
4520 fi
4521 rm -f conftest.err conftest.$ac_ext
4522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4523 echo "${ECHO_T}$ac_header_preproc" >&6
4524
4525 # So? What about this header?
4526 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4527 yes:no: )
4528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4532 ac_header_preproc=yes
4533 ;;
4534 no:yes:* )
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4547 (
4548 cat <<\_ASBOX
4549 ## ------------------------------------------ ##
4550 ## Report this to the AC_PACKAGE_NAME lists. ##
4551 ## ------------------------------------------ ##
4552 _ASBOX
4553 ) |
4554 sed "s/^/$as_me: WARNING: /" >&2
4555 ;;
4556 esac
4557 echo "$as_me:$LINENO: checking for $ac_header" >&5
4558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 eval "$as_ac_Header=\$ac_header_preproc"
4563 fi
4564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4566
4567 fi
4568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4569 cat >>confdefs.h <<_ACEOF
4570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571 _ACEOF
4572
4573 fi
4574
4575 done
4576
4577
4578
4579 for ac_header in sstream
4580 do
4581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4583 echo "$as_me:$LINENO: checking for $ac_header" >&5
4584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 fi
4588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4590 else
4591 # Is the header compilable?
4592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 $ac_includes_default
4601 #include <$ac_header>
4602 _ACEOF
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>conftest.er1
4606 ac_status=$?
4607 grep -v '^ *+' conftest.er1 >conftest.err
4608 rm -f conftest.er1
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } &&
4612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 (eval $ac_try) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_header_compiler=yes
4625 else
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 ac_header_compiler=no
4630 fi
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4633 echo "${ECHO_T}$ac_header_compiler" >&6
4634
4635 # Is the header present?
4636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4638 cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h. */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 #include <$ac_header>
4645 _ACEOF
4646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } >/dev/null; then
4654 if test -s conftest.err; then
4655 ac_cpp_err=$ac_cxx_preproc_warn_flag
4656 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4657 else
4658 ac_cpp_err=
4659 fi
4660 else
4661 ac_cpp_err=yes
4662 fi
4663 if test -z "$ac_cpp_err"; then
4664 ac_header_preproc=yes
4665 else
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669 ac_header_preproc=no
4670 fi
4671 rm -f conftest.err conftest.$ac_ext
4672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4673 echo "${ECHO_T}$ac_header_preproc" >&6
4674
4675 # So? What about this header?
4676 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4677 yes:no: )
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4682 ac_header_preproc=yes
4683 ;;
4684 no:yes:* )
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4697 (
4698 cat <<\_ASBOX
4699 ## ------------------------------------------ ##
4700 ## Report this to the AC_PACKAGE_NAME lists. ##
4701 ## ------------------------------------------ ##
4702 _ASBOX
4703 ) |
4704 sed "s/^/$as_me: WARNING: /" >&2
4705 ;;
4706 esac
4707 echo "$as_me:$LINENO: checking for $ac_header" >&5
4708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712 eval "$as_ac_Header=\$ac_header_preproc"
4713 fi
4714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4716
4717 fi
4718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4719 cat >>confdefs.h <<_ACEOF
4720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4721 _ACEOF
4722
4723 else
4724
4725 for ac_header in strstream
4726 do
4727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4729 echo "$as_me:$LINENO: checking for $ac_header" >&5
4730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 fi
4734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4736 else
4737 # Is the header compilable?
4738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4740 cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h. */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 $ac_includes_default
4747 #include <$ac_header>
4748 _ACEOF
4749 rm -f conftest.$ac_objext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751 (eval $ac_compile) 2>conftest.er1
4752 ac_status=$?
4753 grep -v '^ *+' conftest.er1 >conftest.err
4754 rm -f conftest.er1
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } &&
4758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; } &&
4764 { ac_try='test -s conftest.$ac_objext'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 (eval $ac_try) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; }; then
4770 ac_header_compiler=yes
4771 else
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4774
4775 ac_header_compiler=no
4776 fi
4777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4779 echo "${ECHO_T}$ac_header_compiler" >&6
4780
4781 # Is the header present?
4782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <$ac_header>
4791 _ACEOF
4792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } >/dev/null; then
4800 if test -s conftest.err; then
4801 ac_cpp_err=$ac_cxx_preproc_warn_flag
4802 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4803 else
4804 ac_cpp_err=
4805 fi
4806 else
4807 ac_cpp_err=yes
4808 fi
4809 if test -z "$ac_cpp_err"; then
4810 ac_header_preproc=yes
4811 else
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_header_preproc=no
4816 fi
4817 rm -f conftest.err conftest.$ac_ext
4818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4819 echo "${ECHO_T}$ac_header_preproc" >&6
4820
4821 # So? What about this header?
4822 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4823 yes:no: )
4824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4828 ac_header_preproc=yes
4829 ;;
4830 no:yes:* )
4831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4843 (
4844 cat <<\_ASBOX
4845 ## ------------------------------------------ ##
4846 ## Report this to the AC_PACKAGE_NAME lists. ##
4847 ## ------------------------------------------ ##
4848 _ASBOX
4849 ) |
4850 sed "s/^/$as_me: WARNING: /" >&2
4851 ;;
4852 esac
4853 echo "$as_me:$LINENO: checking for $ac_header" >&5
4854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 eval "$as_ac_Header=\$ac_header_preproc"
4859 fi
4860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4862
4863 fi
4864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4865 cat >>confdefs.h <<_ACEOF
4866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4867 _ACEOF
4868
4869 else
4870 { { echo "$as_me:$LINENO: error: Your libstdc++ doesn't have the sstream, fstream or strstream classes" >&5
4871 echo "$as_me: error: Your libstdc++ doesn't have the sstream, fstream or strstream classes" >&2;}
4872 { (exit 1); exit 1; }; }
4873
4874 fi
4875
4876 done
4877
4878
4879 fi
4880
4881 done
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894 for ac_header in cassert cctype cerrno cmath cstdarg cstdio cstdlib cstring ctime
4895 do
4896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4898 echo "$as_me:$LINENO: checking for $ac_header" >&5
4899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 fi
4903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4905 else
4906 # Is the header compilable?
4907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4909 cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 $ac_includes_default
4916 #include <$ac_header>
4917 _ACEOF
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; } &&
4933 { ac_try='test -s conftest.$ac_objext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 (eval $ac_try) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 ac_header_compiler=yes
4940 else
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4943
4944 ac_header_compiler=no
4945 fi
4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4948 echo "${ECHO_T}$ac_header_compiler" >&6
4949
4950 # Is the header present?
4951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4953 cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h. */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #include <$ac_header>
4960 _ACEOF
4961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4963 ac_status=$?
4964 grep -v '^ *+' conftest.er1 >conftest.err
4965 rm -f conftest.er1
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } >/dev/null; then
4969 if test -s conftest.err; then
4970 ac_cpp_err=$ac_cxx_preproc_warn_flag
4971 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4972 else
4973 ac_cpp_err=
4974 fi
4975 else
4976 ac_cpp_err=yes
4977 fi
4978 if test -z "$ac_cpp_err"; then
4979 ac_header_preproc=yes
4980 else
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984 ac_header_preproc=no
4985 fi
4986 rm -f conftest.err conftest.$ac_ext
4987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4988 echo "${ECHO_T}$ac_header_preproc" >&6
4989
4990 # So? What about this header?
4991 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4992 yes:no: )
4993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4997 ac_header_preproc=yes
4998 ;;
4999 no:yes:* )
5000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5012 (
5013 cat <<\_ASBOX
5014 ## ------------------------------------------ ##
5015 ## Report this to the AC_PACKAGE_NAME lists. ##
5016 ## ------------------------------------------ ##
5017 _ASBOX
5018 ) |
5019 sed "s/^/$as_me: WARNING: /" >&2
5020 ;;
5021 esac
5022 echo "$as_me:$LINENO: checking for $ac_header" >&5
5023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027 eval "$as_ac_Header=\$ac_header_preproc"
5028 fi
5029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031
5032 fi
5033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5034 cat >>confdefs.h <<_ACEOF
5035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5036 _ACEOF
5037
5038 fi
5039
5040 done
5041
5042
5043 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5044 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5045 if test "${ac_cv_header_time+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 #include <sys/types.h>
5055 #include <sys/time.h>
5056 #include <time.h>
5057
5058 int
5059 main ()
5060 {
5061 if ((struct tm *) 0)
5062 return 0;
5063 ;
5064 return 0;
5065 }
5066 _ACEOF
5067 rm -f conftest.$ac_objext
5068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5069 (eval $ac_compile) 2>conftest.er1
5070 ac_status=$?
5071 grep -v '^ *+' conftest.er1 >conftest.err
5072 rm -f conftest.er1
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
5076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; } &&
5082 { ac_try='test -s conftest.$ac_objext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 ac_cv_header_time=yes
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 ac_cv_header_time=no
5094 fi
5095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096 fi
5097 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5098 echo "${ECHO_T}$ac_cv_header_time" >&6
5099 if test $ac_cv_header_time = yes; then
5100
5101 cat >>confdefs.h <<\_ACEOF
5102 #define TIME_WITH_SYS_TIME 1
5103 _ACEOF
5104
5105 fi
5106
5107
5108 echo "$as_me:$LINENO: checking for X" >&5
5109 echo $ECHO_N "checking for X... $ECHO_C" >&6
5110
5111 ac_path_x_has_been_run=yes
5112
5113 # Check whether --with-x or --without-x was given.
5114 if test "${with_x+set}" = set; then
5115 withval="$with_x"
5116
5117 fi;
5118 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5119 if test "x$with_x" = xno; then
5120 # The user explicitly disabled X.
5121 have_x=disabled
5122 else
5123 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5124 # Both variables are already set.
5125 have_x=yes
5126 else
5127 if test "${ac_cv_have_x+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130 # One or both of the vars are not set, and there is no cached value.
5131 ac_x_includes=no ac_x_libraries=no
5132 rm -fr conftest.dir
5133 if mkdir conftest.dir; then
5134 cd conftest.dir
5135 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5136 cat >Imakefile <<'_ACEOF'
5137 acfindx:
5138 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5139 _ACEOF
5140 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5141 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5142 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5143 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5144 for ac_extension in a so sl; do
5145 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5146 test -f $ac_im_libdir/libX11.$ac_extension; then
5147 ac_im_usrlibdir=$ac_im_libdir; break
5148 fi
5149 done
5150 # Screen out bogus values from the imake configuration. They are
5151 # bogus both because they are the default anyway, and because
5152 # using them would break gcc on systems where it needs fixed includes.
5153 case $ac_im_incroot in
5154 /usr/include) ;;
5155 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5156 esac
5157 case $ac_im_usrlibdir in
5158 /usr/lib | /lib) ;;
5159 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5160 esac
5161 fi
5162 cd ..
5163 rm -fr conftest.dir
5164 fi
5165
5166 # Standard set of common directories for X headers.
5167 # Check X11 before X11Rn because it is often a symlink to the current release.
5168 ac_x_header_dirs='
5169 /usr/X11/include
5170 /usr/X11R6/include
5171 /usr/X11R5/include
5172 /usr/X11R4/include
5173
5174 /usr/include/X11
5175 /usr/include/X11R6
5176 /usr/include/X11R5
5177 /usr/include/X11R4
5178
5179 /usr/local/X11/include
5180 /usr/local/X11R6/include
5181 /usr/local/X11R5/include
5182 /usr/local/X11R4/include
5183
5184 /usr/local/include/X11
5185 /usr/local/include/X11R6
5186 /usr/local/include/X11R5
5187 /usr/local/include/X11R4
5188
5189 /usr/X386/include
5190 /usr/x386/include
5191 /usr/XFree86/include/X11
5192
5193 /usr/include
5194 /usr/local/include
5195 /usr/unsupported/include
5196 /usr/athena/include
5197 /usr/local/x11r5/include
5198 /usr/lpp/Xamples/include
5199
5200 /usr/openwin/include
5201 /usr/openwin/share/include'
5202
5203 if test "$ac_x_includes" = no; then
5204 # Guess where to find include files, by looking for a specified header file.
5205 # First, try using that file with no special directory specified.
5206 cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h. */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5212 #include <X11/Xlib.h>
5213 _ACEOF
5214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5216 ac_status=$?
5217 grep -v '^ *+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } >/dev/null; then
5222 if test -s conftest.err; then
5223 ac_cpp_err=$ac_cxx_preproc_warn_flag
5224 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5225 else
5226 ac_cpp_err=
5227 fi
5228 else
5229 ac_cpp_err=yes
5230 fi
5231 if test -z "$ac_cpp_err"; then
5232 # We can compile using X headers with no special include directory.
5233 ac_x_includes=
5234 else
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5237
5238 for ac_dir in $ac_x_header_dirs; do
5239 if test -r "$ac_dir/X11/Xlib.h"; then
5240 ac_x_includes=$ac_dir
5241 break
5242 fi
5243 done
5244 fi
5245 rm -f conftest.err conftest.$ac_ext
5246 fi # $ac_x_includes = no
5247
5248 if test "$ac_x_libraries" = no; then
5249 # Check for the libraries.
5250 # See if we find them without any special options.
5251 # Don't add to $LIBS permanently.
5252 ac_save_LIBS=$LIBS
5253 LIBS="-lX11 $LIBS"
5254 cat >conftest.$ac_ext <<_ACEOF
5255 /* confdefs.h. */
5256 _ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h. */
5260 #include <X11/Xlib.h>
5261 int
5262 main ()
5263 {
5264 XOpenDisplay(NULL)
5265 ;
5266 return 0;
5267 }
5268 _ACEOF
5269 rm -f conftest.$ac_objext conftest$ac_exeext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5271 (eval $ac_link) 2>conftest.er1
5272 ac_status=$?
5273 grep -v '^ *+' conftest.er1 >conftest.err
5274 rm -f conftest.er1
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } &&
5278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; } &&
5284 { ac_try='test -s conftest$ac_exeext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 (eval $ac_try) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 LIBS=$ac_save_LIBS
5291 # We can link X programs with no special library path.
5292 ac_x_libraries=
5293 else
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 LIBS=$ac_save_LIBS
5298 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5299 do
5300 # Don't even attempt the hair of trying to link an X program!
5301 for ac_extension in a so sl; do
5302 if test -r $ac_dir/libX11.$ac_extension; then
5303 ac_x_libraries=$ac_dir
5304 break 2
5305 fi
5306 done
5307 done
5308 fi
5309 rm -f conftest.err conftest.$ac_objext \
5310 conftest$ac_exeext conftest.$ac_ext
5311 fi # $ac_x_libraries = no
5312
5313 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5314 # Didn't find X anywhere. Cache the known absence of X.
5315 ac_cv_have_x="have_x=no"
5316 else
5317 # Record where we found X for the cache.
5318 ac_cv_have_x="have_x=yes \
5319 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5320 fi
5321 fi
5322
5323 fi
5324 eval "$ac_cv_have_x"
5325 fi # $with_x != no
5326
5327 if test "$have_x" != yes; then
5328 echo "$as_me:$LINENO: result: $have_x" >&5
5329 echo "${ECHO_T}$have_x" >&6
5330 no_x=yes
5331 else
5332 # If each of the values was on the command line, it overrides each guess.
5333 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5334 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5335 # Update the cache value to reflect the command line values.
5336 ac_cv_have_x="have_x=yes \
5337 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5338 # It might be that x_includes is empty (headers are found in the
5339 # standard search path. Then output the corresponding message
5340 ac_out_x_includes=$x_includes
5341 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5342 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
5343 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
5344 fi
5345
5346
5347 if test "x$ac_path_x_has_been_run" != xyes; then
5348 echo "$as_me:$LINENO: checking for X" >&5
5349 echo $ECHO_N "checking for X... $ECHO_C" >&6
5350
5351 ac_path_x_has_been_run=yes
5352
5353 # Check whether --with-x or --without-x was given.
5354 if test "${with_x+set}" = set; then
5355 withval="$with_x"
5356
5357 fi;
5358 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5359 if test "x$with_x" = xno; then
5360 # The user explicitly disabled X.
5361 have_x=disabled
5362 else
5363 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5364 # Both variables are already set.
5365 have_x=yes
5366 else
5367 if test "${ac_cv_have_x+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370 # One or both of the vars are not set, and there is no cached value.
5371 ac_x_includes=no ac_x_libraries=no
5372 rm -fr conftest.dir
5373 if mkdir conftest.dir; then
5374 cd conftest.dir
5375 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5376 cat >Imakefile <<'_ACEOF'
5377 acfindx:
5378 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5379 _ACEOF
5380 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5381 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5382 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5383 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5384 for ac_extension in a so sl; do
5385 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5386 test -f $ac_im_libdir/libX11.$ac_extension; then
5387 ac_im_usrlibdir=$ac_im_libdir; break
5388 fi
5389 done
5390 # Screen out bogus values from the imake configuration. They are
5391 # bogus both because they are the default anyway, and because
5392 # using them would break gcc on systems where it needs fixed includes.
5393 case $ac_im_incroot in
5394 /usr/include) ;;
5395 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5396 esac
5397 case $ac_im_usrlibdir in
5398 /usr/lib | /lib) ;;
5399 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5400 esac
5401 fi
5402 cd ..
5403 rm -fr conftest.dir
5404 fi
5405
5406 # Standard set of common directories for X headers.
5407 # Check X11 before X11Rn because it is often a symlink to the current release.
5408 ac_x_header_dirs='
5409 /usr/X11/include
5410 /usr/X11R6/include
5411 /usr/X11R5/include
5412 /usr/X11R4/include
5413
5414 /usr/include/X11
5415 /usr/include/X11R6
5416 /usr/include/X11R5
5417 /usr/include/X11R4
5418
5419 /usr/local/X11/include
5420 /usr/local/X11R6/include
5421 /usr/local/X11R5/include
5422 /usr/local/X11R4/include
5423
5424 /usr/local/include/X11
5425 /usr/local/include/X11R6
5426 /usr/local/include/X11R5
5427 /usr/local/include/X11R4
5428
5429 /usr/X386/include
5430 /usr/x386/include
5431 /usr/XFree86/include/X11
5432
5433 /usr/include
5434 /usr/local/include
5435 /usr/unsupported/include
5436 /usr/athena/include
5437 /usr/local/x11r5/include
5438 /usr/lpp/Xamples/include
5439
5440 /usr/openwin/include
5441 /usr/openwin/share/include'
5442
5443 if test "$ac_x_includes" = no; then
5444 # Guess where to find include files, by looking for a specified header file.
5445 # First, try using that file with no special directory specified.
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h. */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 #include <X11/Xlib.h>
5453 _ACEOF
5454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5456 ac_status=$?
5457 grep -v '^ *+' conftest.er1 >conftest.err
5458 rm -f conftest.er1
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } >/dev/null; then
5462 if test -s conftest.err; then
5463 ac_cpp_err=$ac_cxx_preproc_warn_flag
5464 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5465 else
5466 ac_cpp_err=
5467 fi
5468 else
5469 ac_cpp_err=yes
5470 fi
5471 if test -z "$ac_cpp_err"; then
5472 # We can compile using X headers with no special include directory.
5473 ac_x_includes=
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5477
5478 for ac_dir in $ac_x_header_dirs; do
5479 if test -r "$ac_dir/X11/Xlib.h"; then
5480 ac_x_includes=$ac_dir
5481 break
5482 fi
5483 done
5484 fi
5485 rm -f conftest.err conftest.$ac_ext
5486 fi # $ac_x_includes = no
5487
5488 if test "$ac_x_libraries" = no; then
5489 # Check for the libraries.
5490 # See if we find them without any special options.
5491 # Don't add to $LIBS permanently.
5492 ac_save_LIBS=$LIBS
5493 LIBS="-lX11 $LIBS"
5494 cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h. */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 #include <X11/Xlib.h>
5501 int
5502 main ()
5503 {
5504 XrmInitialize ()
5505 ;
5506 return 0;
5507 }
5508 _ACEOF
5509 rm -f conftest.$ac_objext conftest$ac_exeext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5511 (eval $ac_link) 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 (eval $ac_try) 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; } &&
5524 { ac_try='test -s conftest$ac_exeext'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 (eval $ac_try) 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; }; then
5530 LIBS=$ac_save_LIBS
5531 # We can link X programs with no special library path.
5532 ac_x_libraries=
5533 else
5534 echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5536
5537 LIBS=$ac_save_LIBS
5538 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5539 do
5540 # Don't even attempt the hair of trying to link an X program!
5541 for ac_extension in a so sl; do
5542 if test -r $ac_dir/libX11.$ac_extension; then
5543 ac_x_libraries=$ac_dir
5544 break 2
5545 fi
5546 done
5547 done
5548 fi
5549 rm -f conftest.err conftest.$ac_objext \
5550 conftest$ac_exeext conftest.$ac_ext
5551 fi # $ac_x_libraries = no
5552
5553 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5554 # Didn't find X anywhere. Cache the known absence of X.
5555 ac_cv_have_x="have_x=no"
5556 else
5557 # Record where we found X for the cache.
5558 ac_cv_have_x="have_x=yes \
5559 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5560 fi
5561 fi
5562
5563 fi
5564 eval "$ac_cv_have_x"
5565 fi # $with_x != no
5566
5567 if test "$have_x" != yes; then
5568 echo "$as_me:$LINENO: result: $have_x" >&5
5569 echo "${ECHO_T}$have_x" >&6
5570 no_x=yes
5571 else
5572 # If each of the values was on the command line, it overrides each guess.
5573 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5574 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5575 # Update the cache value to reflect the command line values.
5576 ac_cv_have_x="have_x=yes \
5577 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5578 # It might be that x_includes is empty (headers are found in the
5579 # standard search path. Then output the corresponding message
5580 ac_out_x_includes=$x_includes
5581 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5582 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
5583 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
5584 fi
5585
5586 fi
5587 if test "$no_x" = yes; then
5588 # Not all programs may use this symbol, but it does not hurt to define it.
5589
5590 cat >>confdefs.h <<\_ACEOF
5591 #define X_DISPLAY_MISSING 1
5592 _ACEOF
5593
5594 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5595 else
5596 if test -n "$x_includes"; then
5597 X_CFLAGS="$X_CFLAGS -I$x_includes"
5598 fi
5599
5600 # It would also be nice to do this for all -L options, not just this one.
5601 if test -n "$x_libraries"; then
5602 X_LIBS="$X_LIBS -L$x_libraries"
5603 # For Solaris; some versions of Sun CC require a space after -R and
5604 # others require no space. Words are not sufficient . . . .
5605 case `(uname -sr) 2>/dev/null` in
5606 "SunOS 5"*)
5607 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5608 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5609 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5610 cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h. */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616
5617 int
5618 main ()
5619 {
5620
5621 ;
5622 return 0;
5623 }
5624 _ACEOF
5625 rm -f conftest.$ac_objext conftest$ac_exeext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5627 (eval $ac_link) 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 (eval $ac_try) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; } &&
5640 { ac_try='test -s conftest$ac_exeext'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; }; then
5646 ac_R_nospace=yes
5647 else
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651 ac_R_nospace=no
5652 fi
5653 rm -f conftest.err conftest.$ac_objext \
5654 conftest$ac_exeext conftest.$ac_ext
5655 if test $ac_R_nospace = yes; then
5656 echo "$as_me:$LINENO: result: no" >&5
5657 echo "${ECHO_T}no" >&6
5658 X_LIBS="$X_LIBS -R$x_libraries"
5659 else
5660 LIBS="$ac_xsave_LIBS -R $x_libraries"
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667
5668 int
5669 main ()
5670 {
5671
5672 ;
5673 return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext conftest$ac_exeext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678 (eval $ac_link) 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest$ac_exeext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 ac_R_space=yes
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5701
5702 ac_R_space=no
5703 fi
5704 rm -f conftest.err conftest.$ac_objext \
5705 conftest$ac_exeext conftest.$ac_ext
5706 if test $ac_R_space = yes; then
5707 echo "$as_me:$LINENO: result: yes" >&5
5708 echo "${ECHO_T}yes" >&6
5709 X_LIBS="$X_LIBS -R $x_libraries"
5710 else
5711 echo "$as_me:$LINENO: result: neither works" >&5
5712 echo "${ECHO_T}neither works" >&6
5713 fi
5714 fi
5715 LIBS=$ac_xsave_LIBS
5716 esac
5717 fi
5718
5719 # Check for system-dependent libraries X programs must link with.
5720 # Do this before checking for the system-independent R6 libraries
5721 # (-lICE), since we may need -lsocket or whatever for X linking.
5722
5723 if test "$ISC" = yes; then
5724 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5725 else
5726 # Martyn Johnson says this is needed for Ultrix, if the X
5727 # libraries were built with DECnet support. And Karl Berry says
5728 # the Alpha needs dnet_stub (dnet does not exist).
5729 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5730 cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h. */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736
5737 /* Override any gcc2 internal prototype to avoid an error. */
5738 #ifdef __cplusplus
5739 extern "C"
5740 #endif
5741 /* We use char because int might match the return type of a gcc2
5742 builtin and then its argument prototype would still apply. */
5743 char XOpenDisplay ();
5744 int
5745 main ()
5746 {
5747 XOpenDisplay ();
5748 ;
5749 return 0;
5750 }
5751 _ACEOF
5752 rm -f conftest.$ac_objext conftest$ac_exeext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754 (eval $ac_link) 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try='test -s conftest$ac_exeext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 :
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5779 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5780 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 ac_check_lib_save_LIBS=$LIBS
5784 LIBS="-ldnet $LIBS"
5785 cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791
5792 /* Override any gcc2 internal prototype to avoid an error. */
5793 #ifdef __cplusplus
5794 extern "C"
5795 #endif
5796 /* We use char because int might match the return type of a gcc2
5797 builtin and then its argument prototype would still apply. */
5798 char dnet_ntoa ();
5799 int
5800 main ()
5801 {
5802 dnet_ntoa ();
5803 ;
5804 return 0;
5805 }
5806 _ACEOF
5807 rm -f conftest.$ac_objext conftest$ac_exeext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809 (eval $ac_link) 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 (eval $ac_try) 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try='test -s conftest$ac_exeext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_cv_lib_dnet_dnet_ntoa=yes
5829 else
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833 ac_cv_lib_dnet_dnet_ntoa=no
5834 fi
5835 rm -f conftest.err conftest.$ac_objext \
5836 conftest$ac_exeext conftest.$ac_ext
5837 LIBS=$ac_check_lib_save_LIBS
5838 fi
5839 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5840 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5841 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5842 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5843 fi
5844
5845 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5846 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5847 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5848 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851 ac_check_lib_save_LIBS=$LIBS
5852 LIBS="-ldnet_stub $LIBS"
5853 cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h. */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5859
5860 /* Override any gcc2 internal prototype to avoid an error. */
5861 #ifdef __cplusplus
5862 extern "C"
5863 #endif
5864 /* We use char because int might match the return type of a gcc2
5865 builtin and then its argument prototype would still apply. */
5866 char dnet_ntoa ();
5867 int
5868 main ()
5869 {
5870 dnet_ntoa ();
5871 ;
5872 return 0;
5873 }
5874 _ACEOF
5875 rm -f conftest.$ac_objext conftest$ac_exeext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5877 (eval $ac_link) 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 (eval $ac_try) 2>&5
5887 ac_status=$?
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; } &&
5890 { ac_try='test -s conftest$ac_exeext'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 (eval $ac_try) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
5896 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5897 else
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901 ac_cv_lib_dnet_stub_dnet_ntoa=no
5902 fi
5903 rm -f conftest.err conftest.$ac_objext \
5904 conftest$ac_exeext conftest.$ac_ext
5905 LIBS=$ac_check_lib_save_LIBS
5906 fi
5907 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5908 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5909 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5910 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5911 fi
5912
5913 fi
5914 fi
5915 rm -f conftest.err conftest.$ac_objext \
5916 conftest$ac_exeext conftest.$ac_ext
5917 LIBS="$ac_xsave_LIBS"
5918
5919 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
5920 # to get the SysV transport functions.
5921 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5922 # needs -lnsl.
5923 # The nsl library prevents programs from opening the X display
5924 # on Irix 5.2, according to T.E. Dickey.
5925 # The functions gethostbyname, getservbyname, and inet_addr are
5926 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5927 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5928 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5929 if test "${ac_cv_func_gethostbyname+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932 cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h. */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5940 #define gethostbyname innocuous_gethostbyname
5941
5942 /* System header to define __stub macros and hopefully few prototypes,
5943 which can conflict with char gethostbyname (); below.
5944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5945 <limits.h> exists even on freestanding compilers. */
5946
5947 #ifdef __STDC__
5948 # include <limits.h>
5949 #else
5950 # include <assert.h>
5951 #endif
5952
5953 #undef gethostbyname
5954
5955 /* Override any gcc2 internal prototype to avoid an error. */
5956 #ifdef __cplusplus
5957 extern "C"
5958 {
5959 #endif
5960 /* We use char because int might match the return type of a gcc2
5961 builtin and then its argument prototype would still apply. */
5962 char gethostbyname ();
5963 /* The GNU C library defines this for functions which it implements
5964 to always fail with ENOSYS. Some functions are actually named
5965 something starting with __ and the normal name is an alias. */
5966 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5967 choke me
5968 #else
5969 char (*f) () = gethostbyname;
5970 #endif
5971 #ifdef __cplusplus
5972 }
5973 #endif
5974
5975 int
5976 main ()
5977 {
5978 return f != gethostbyname;
5979 ;
5980 return 0;
5981 }
5982 _ACEOF
5983 rm -f conftest.$ac_objext conftest$ac_exeext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5985 (eval $ac_link) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 (eval $ac_try) 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest$ac_exeext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 ac_cv_func_gethostbyname=yes
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 ac_cv_func_gethostbyname=no
6010 fi
6011 rm -f conftest.err conftest.$ac_objext \
6012 conftest$ac_exeext conftest.$ac_ext
6013 fi
6014 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6015 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6016
6017 if test $ac_cv_func_gethostbyname = no; then
6018 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6019 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6020 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023 ac_check_lib_save_LIBS=$LIBS
6024 LIBS="-lnsl $LIBS"
6025 cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h. */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031
6032 /* Override any gcc2 internal prototype to avoid an error. */
6033 #ifdef __cplusplus
6034 extern "C"
6035 #endif
6036 /* We use char because int might match the return type of a gcc2
6037 builtin and then its argument prototype would still apply. */
6038 char gethostbyname ();
6039 int
6040 main ()
6041 {
6042 gethostbyname ();
6043 ;
6044 return 0;
6045 }
6046 _ACEOF
6047 rm -f conftest.$ac_objext conftest$ac_exeext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6049 (eval $ac_link) 2>conftest.er1
6050 ac_status=$?
6051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try='test -s conftest$ac_exeext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_lib_nsl_gethostbyname=yes
6069 else
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073 ac_cv_lib_nsl_gethostbyname=no
6074 fi
6075 rm -f conftest.err conftest.$ac_objext \
6076 conftest$ac_exeext conftest.$ac_ext
6077 LIBS=$ac_check_lib_save_LIBS
6078 fi
6079 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6080 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6081 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6082 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6083 fi
6084
6085 if test $ac_cv_lib_nsl_gethostbyname = no; then
6086 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6087 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6088 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091 ac_check_lib_save_LIBS=$LIBS
6092 LIBS="-lbsd $LIBS"
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099
6100 /* Override any gcc2 internal prototype to avoid an error. */
6101 #ifdef __cplusplus
6102 extern "C"
6103 #endif
6104 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6106 char gethostbyname ();
6107 int
6108 main ()
6109 {
6110 gethostbyname ();
6111 ;
6112 return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117 (eval $ac_link) 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try='test -s conftest$ac_exeext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 ac_cv_lib_bsd_gethostbyname=yes
6137 else
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141 ac_cv_lib_bsd_gethostbyname=no
6142 fi
6143 rm -f conftest.err conftest.$ac_objext \
6144 conftest$ac_exeext conftest.$ac_ext
6145 LIBS=$ac_check_lib_save_LIBS
6146 fi
6147 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6148 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6149 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6150 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6151 fi
6152
6153 fi
6154 fi
6155
6156 # [email protected] says without -lsocket,
6157 # socket/setsockopt and other routines are undefined under SCO ODT
6158 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6159 # on later versions), says Simon Leinen: it contains gethostby*
6160 # variants that don't use the name server (or something). -lsocket
6161 # must be given before -lnsl if both are needed. We assume that
6162 # if connect needs -lnsl, so does gethostbyname.
6163 echo "$as_me:$LINENO: checking for connect" >&5
6164 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6165 if test "${ac_cv_func_connect+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h. */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6176 #define connect innocuous_connect
6177
6178 /* System header to define __stub macros and hopefully few prototypes,
6179 which can conflict with char connect (); below.
6180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6181 <limits.h> exists even on freestanding compilers. */
6182
6183 #ifdef __STDC__
6184 # include <limits.h>
6185 #else
6186 # include <assert.h>
6187 #endif
6188
6189 #undef connect
6190
6191 /* Override any gcc2 internal prototype to avoid an error. */
6192 #ifdef __cplusplus
6193 extern "C"
6194 {
6195 #endif
6196 /* We use char because int might match the return type of a gcc2
6197 builtin and then its argument prototype would still apply. */
6198 char connect ();
6199 /* The GNU C library defines this for functions which it implements
6200 to always fail with ENOSYS. Some functions are actually named
6201 something starting with __ and the normal name is an alias. */
6202 #if defined (__stub_connect) || defined (__stub___connect)
6203 choke me
6204 #else
6205 char (*f) () = connect;
6206 #endif
6207 #ifdef __cplusplus
6208 }
6209 #endif
6210
6211 int
6212 main ()
6213 {
6214 return f != connect;
6215 ;
6216 return 0;
6217 }
6218 _ACEOF
6219 rm -f conftest.$ac_objext conftest$ac_exeext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6221 (eval $ac_link) 2>conftest.er1
6222 ac_status=$?
6223 grep -v '^ *+' conftest.er1 >conftest.err
6224 rm -f conftest.er1
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; } &&
6234 { ac_try='test -s conftest$ac_exeext'
6235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 (eval $ac_try) 2>&5
6237 ac_status=$?
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; }; then
6240 ac_cv_func_connect=yes
6241 else
6242 echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245 ac_cv_func_connect=no
6246 fi
6247 rm -f conftest.err conftest.$ac_objext \
6248 conftest$ac_exeext conftest.$ac_ext
6249 fi
6250 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6251 echo "${ECHO_T}$ac_cv_func_connect" >&6
6252
6253 if test $ac_cv_func_connect = no; then
6254 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6255 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6256 if test "${ac_cv_lib_socket_connect+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259 ac_check_lib_save_LIBS=$LIBS
6260 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 #ifdef __cplusplus
6270 extern "C"
6271 #endif
6272 /* We use char because int might match the return type of a gcc2
6273 builtin and then its argument prototype would still apply. */
6274 char connect ();
6275 int
6276 main ()
6277 {
6278 connect ();
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>conftest.er1
6286 ac_status=$?
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest$ac_exeext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 ac_cv_lib_socket_connect=yes
6305 else
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309 ac_cv_lib_socket_connect=no
6310 fi
6311 rm -f conftest.err conftest.$ac_objext \
6312 conftest$ac_exeext conftest.$ac_ext
6313 LIBS=$ac_check_lib_save_LIBS
6314 fi
6315 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6316 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6317 if test $ac_cv_lib_socket_connect = yes; then
6318 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6319 fi
6320
6321 fi
6322
6323 # Guillermo Gomez says -lposix is necessary on A/UX.
6324 echo "$as_me:$LINENO: checking for remove" >&5
6325 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6326 if test "${ac_cv_func_remove+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329 cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h. */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6337 #define remove innocuous_remove
6338
6339 /* System header to define __stub macros and hopefully few prototypes,
6340 which can conflict with char remove (); below.
6341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6342 <limits.h> exists even on freestanding compilers. */
6343
6344 #ifdef __STDC__
6345 # include <limits.h>
6346 #else
6347 # include <assert.h>
6348 #endif
6349
6350 #undef remove
6351
6352 /* Override any gcc2 internal prototype to avoid an error. */
6353 #ifdef __cplusplus
6354 extern "C"
6355 {
6356 #endif
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6359 char remove ();
6360 /* The GNU C library defines this for functions which it implements
6361 to always fail with ENOSYS. Some functions are actually named
6362 something starting with __ and the normal name is an alias. */
6363 #if defined (__stub_remove) || defined (__stub___remove)
6364 choke me
6365 #else
6366 char (*f) () = remove;
6367 #endif
6368 #ifdef __cplusplus
6369 }
6370 #endif
6371
6372 int
6373 main ()
6374 {
6375 return f != remove;
6376 ;
6377 return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382 (eval $ac_link) 2>conftest.er1
6383 ac_status=$?
6384 grep -v '^ *+' conftest.er1 >conftest.err
6385 rm -f conftest.er1
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } &&
6389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 (eval $ac_try) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; } &&
6395 { ac_try='test -s conftest$ac_exeext'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 (eval $ac_try) 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6401 ac_cv_func_remove=yes
6402 else
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6405
6406 ac_cv_func_remove=no
6407 fi
6408 rm -f conftest.err conftest.$ac_objext \
6409 conftest$ac_exeext conftest.$ac_ext
6410 fi
6411 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6412 echo "${ECHO_T}$ac_cv_func_remove" >&6
6413
6414 if test $ac_cv_func_remove = no; then
6415 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6416 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6417 if test "${ac_cv_lib_posix_remove+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420 ac_check_lib_save_LIBS=$LIBS
6421 LIBS="-lposix $LIBS"
6422 cat >conftest.$ac_ext <<_ACEOF
6423 /* confdefs.h. */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428
6429 /* Override any gcc2 internal prototype to avoid an error. */
6430 #ifdef __cplusplus
6431 extern "C"
6432 #endif
6433 /* We use char because int might match the return type of a gcc2
6434 builtin and then its argument prototype would still apply. */
6435 char remove ();
6436 int
6437 main ()
6438 {
6439 remove ();
6440 ;
6441 return 0;
6442 }
6443 _ACEOF
6444 rm -f conftest.$ac_objext conftest$ac_exeext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446 (eval $ac_link) 2>conftest.er1
6447 ac_status=$?
6448 grep -v '^ *+' conftest.er1 >conftest.err
6449 rm -f conftest.er1
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 (eval $ac_try) 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; } &&
6459 { ac_try='test -s conftest$ac_exeext'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 (eval $ac_try) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6465 ac_cv_lib_posix_remove=yes
6466 else
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6469
6470 ac_cv_lib_posix_remove=no
6471 fi
6472 rm -f conftest.err conftest.$ac_objext \
6473 conftest$ac_exeext conftest.$ac_ext
6474 LIBS=$ac_check_lib_save_LIBS
6475 fi
6476 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6477 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6478 if test $ac_cv_lib_posix_remove = yes; then
6479 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6480 fi
6481
6482 fi
6483
6484 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6485 echo "$as_me:$LINENO: checking for shmat" >&5
6486 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6487 if test "${ac_cv_func_shmat+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490 cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h. */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6498 #define shmat innocuous_shmat
6499
6500 /* System header to define __stub macros and hopefully few prototypes,
6501 which can conflict with char shmat (); below.
6502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6503 <limits.h> exists even on freestanding compilers. */
6504
6505 #ifdef __STDC__
6506 # include <limits.h>
6507 #else
6508 # include <assert.h>
6509 #endif
6510
6511 #undef shmat
6512
6513 /* Override any gcc2 internal prototype to avoid an error. */
6514 #ifdef __cplusplus
6515 extern "C"
6516 {
6517 #endif
6518 /* We use char because int might match the return type of a gcc2
6519 builtin and then its argument prototype would still apply. */
6520 char shmat ();
6521 /* The GNU C library defines this for functions which it implements
6522 to always fail with ENOSYS. Some functions are actually named
6523 something starting with __ and the normal name is an alias. */
6524 #if defined (__stub_shmat) || defined (__stub___shmat)
6525 choke me
6526 #else
6527 char (*f) () = shmat;
6528 #endif
6529 #ifdef __cplusplus
6530 }
6531 #endif
6532
6533 int
6534 main ()
6535 {
6536 return f != shmat;
6537 ;
6538 return 0;
6539 }
6540 _ACEOF
6541 rm -f conftest.$ac_objext conftest$ac_exeext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543 (eval $ac_link) 2>conftest.er1
6544 ac_status=$?
6545 grep -v '^ *+' conftest.er1 >conftest.err
6546 rm -f conftest.er1
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } &&
6550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest$ac_exeext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_cv_func_shmat=yes
6563 else
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6566
6567 ac_cv_func_shmat=no
6568 fi
6569 rm -f conftest.err conftest.$ac_objext \
6570 conftest$ac_exeext conftest.$ac_ext
6571 fi
6572 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6573 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6574
6575 if test $ac_cv_func_shmat = no; then
6576 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6577 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6578 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581 ac_check_lib_save_LIBS=$LIBS
6582 LIBS="-lipc $LIBS"
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h. */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589
6590 /* Override any gcc2 internal prototype to avoid an error. */
6591 #ifdef __cplusplus
6592 extern "C"
6593 #endif
6594 /* We use char because int might match the return type of a gcc2
6595 builtin and then its argument prototype would still apply. */
6596 char shmat ();
6597 int
6598 main ()
6599 {
6600 shmat ();
6601 ;
6602 return 0;
6603 }
6604 _ACEOF
6605 rm -f conftest.$ac_objext conftest$ac_exeext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6607 (eval $ac_link) 2>conftest.er1
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try='test -s conftest$ac_exeext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_lib_ipc_shmat=yes
6627 else
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 ac_cv_lib_ipc_shmat=no
6632 fi
6633 rm -f conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6635 LIBS=$ac_check_lib_save_LIBS
6636 fi
6637 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6638 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6639 if test $ac_cv_lib_ipc_shmat = yes; then
6640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6641 fi
6642
6643 fi
6644 fi
6645
6646 # Check for libraries that X11R6 Xt/Xaw programs need.
6647 ac_save_LDFLAGS=$LDFLAGS
6648 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6649 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6650 # check for ICE first), but we must link in the order -lSM -lICE or
6651 # we get undefined symbols. So assume we have SM if we have ICE.
6652 # These have to be linked with before -lX11, unlike the other
6653 # libraries we check for below, so use a different variable.
6654 # John Interrante, Karl Berry
6655 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6656 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6657 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660 ac_check_lib_save_LIBS=$LIBS
6661 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6662 cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h. */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668
6669 /* Override any gcc2 internal prototype to avoid an error. */
6670 #ifdef __cplusplus
6671 extern "C"
6672 #endif
6673 /* We use char because int might match the return type of a gcc2
6674 builtin and then its argument prototype would still apply. */
6675 char IceConnectionNumber ();
6676 int
6677 main ()
6678 {
6679 IceConnectionNumber ();
6680 ;
6681 return 0;
6682 }
6683 _ACEOF
6684 rm -f conftest.$ac_objext conftest$ac_exeext
6685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6686 (eval $ac_link) 2>conftest.er1
6687 ac_status=$?
6688 grep -v '^ *+' conftest.er1 >conftest.err
6689 rm -f conftest.er1
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; } &&
6699 { ac_try='test -s conftest$ac_exeext'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6705 ac_cv_lib_ICE_IceConnectionNumber=yes
6706 else
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6709
6710 ac_cv_lib_ICE_IceConnectionNumber=no
6711 fi
6712 rm -f conftest.err conftest.$ac_objext \
6713 conftest$ac_exeext conftest.$ac_ext
6714 LIBS=$ac_check_lib_save_LIBS
6715 fi
6716 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6717 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6718 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6719 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6720 fi
6721
6722 LDFLAGS=$ac_save_LDFLAGS
6723
6724 fi
6725
6726
6727 test x$no_x = "xyes" && { { echo "$as_me:$LINENO: error: Idesk requires the X Window System libraries and headers." >&5
6728 echo "$as_me: error: Idesk requires the X Window System libraries and headers." >&2;}
6729 { (exit 1); exit 1; }; }
6730
6731 test x$x_includes = "x" && x_includes="/usr/include"
6732 test x$x_libraries = "x" && x_libraries="/usr/lib"
6733
6734 CFLAGS="$CFLAGS $X_CFLAGS"
6735 CXXFLAGS="$CXXFLAGS $X_CFLAGS"
6736 LIBS="$LIBS $X_LIBS"
6737 LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS"
6738
6739 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
6740 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
6741 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744 ac_check_lib_save_LIBS=$LIBS
6745 LIBS="-lX11 $LIBS"
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752
6753 /* Override any gcc2 internal prototype to avoid an error. */
6754 #ifdef __cplusplus
6755 extern "C"
6756 #endif
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6759 char XOpenDisplay ();
6760 int
6761 main ()
6762 {
6763 XOpenDisplay ();
6764 ;
6765 return 0;
6766 }
6767 _ACEOF
6768 rm -f conftest.$ac_objext conftest$ac_exeext
6769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 (eval $ac_try) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; } &&
6783 { ac_try='test -s conftest$ac_exeext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_cv_lib_X11_XOpenDisplay=yes
6790 else
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6793
6794 ac_cv_lib_X11_XOpenDisplay=no
6795 fi
6796 rm -f conftest.err conftest.$ac_objext \
6797 conftest$ac_exeext conftest.$ac_ext
6798 LIBS=$ac_check_lib_save_LIBS
6799 fi
6800 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6801 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
6802 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6803 LIBS="$LIBS -lX11"
6804 else
6805
6806 echo "ERROR: You need libX11 to build Idesk. Verify that you have libX11.a or";
6807 echo " libX11.so installed and that it is located in the X libraries";
6808 { { echo "$as_me:$LINENO: error: Fatal: libX11 not found." >&5
6809 echo "$as_me: error: Fatal: libX11 not found." >&2;}
6810 { (exit 1); exit 1; }; }
6811 fi
6812
6813
6814 LIBS="$LIBS $X_EXTRA_LIBS"
6815
6816 SHAPE=""
6817 echo "$as_me:$LINENO: checking whether to build support for the XShape extension" >&5
6818 echo $ECHO_N "checking whether to build support for the XShape extension... $ECHO_C" >&6
6819 # Check whether --enable-shape or --disable-shape was given.
6820 if test "${enable_shape+set}" = set; then
6821 enableval="$enable_shape"
6822
6823 fi;
6824
6825 : ${enableval="yes"}
6826 if test x$enableval = "xyes"; then
6827 echo "$as_me:$LINENO: result: yes" >&5
6828 echo "${ECHO_T}yes" >&6
6829 echo "$as_me:$LINENO: checking for XShapeCombineShape in -lXext" >&5
6830 echo $ECHO_N "checking for XShapeCombineShape in -lXext... $ECHO_C" >&6
6831 if test "${ac_cv_lib_Xext_XShapeCombineShape+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834 ac_check_lib_save_LIBS=$LIBS
6835 LIBS="-lXext $LIBS"
6836 cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h. */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842
6843 /* Override any gcc2 internal prototype to avoid an error. */
6844 #ifdef __cplusplus
6845 extern "C"
6846 #endif
6847 /* We use char because int might match the return type of a gcc2
6848 builtin and then its argument prototype would still apply. */
6849 char XShapeCombineShape ();
6850 int
6851 main ()
6852 {
6853 XShapeCombineShape ();
6854 ;
6855 return 0;
6856 }
6857 _ACEOF
6858 rm -f conftest.$ac_objext conftest$ac_exeext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6860 (eval $ac_link) 2>conftest.er1
6861 ac_status=$?
6862 grep -v '^ *+' conftest.er1 >conftest.err
6863 rm -f conftest.er1
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
6867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 (eval $ac_try) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; } &&
6873 { ac_try='test -s conftest$ac_exeext'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 (eval $ac_try) 2>&5
6876 ac_status=$?
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
6879 ac_cv_lib_Xext_XShapeCombineShape=yes
6880 else
6881 echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6883
6884 ac_cv_lib_Xext_XShapeCombineShape=no
6885 fi
6886 rm -f conftest.err conftest.$ac_objext \
6887 conftest$ac_exeext conftest.$ac_ext
6888 LIBS=$ac_check_lib_save_LIBS
6889 fi
6890 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineShape" >&5
6891 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineShape" >&6
6892 if test $ac_cv_lib_Xext_XShapeCombineShape = yes; then
6893 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
6894 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
6895 cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h. */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 #include <X11/Xlib.h>
6902 #include <X11/Xutil.h>
6903 #include <X11/extensions/shape.h>
6904
6905 int
6906 main ()
6907 {
6908 long foo = ShapeSet
6909 ;
6910 return 0;
6911 }
6912 _ACEOF
6913 rm -f conftest.$ac_objext conftest$ac_exeext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6915 (eval $ac_link) 2>conftest.er1
6916 ac_status=$?
6917 grep -v '^ *+' conftest.er1 >conftest.err
6918 rm -f conftest.er1
6919 cat conftest.err >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } &&
6922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 (eval $ac_try) 2>&5
6925 ac_status=$?
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; } &&
6928 { ac_try='test -s conftest$ac_exeext'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 (eval $ac_try) 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 echo "$as_me:$LINENO: result: yes" >&5
6935 echo "${ECHO_T}yes" >&6
6936 SHAPE="-DSHAPE"; Xext_lib="-lXext"
6937 else
6938 echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6940
6941 echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6
6943
6944 fi
6945 rm -f conftest.err conftest.$ac_objext \
6946 conftest$ac_exeext conftest.$ac_ext
6947
6948 fi
6949
6950 else
6951 echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6
6953 fi
6954
6955 CXXFLAGS="$CXXFLAGS $SHAPE"
6956 LIBS="$LIBS $Xext_lib"
6957
6958
6959
6960
6961 # Check whether --with-imlib2-prefix or --without-imlib2-prefix was given.
6962 if test "${with_imlib2_prefix+set}" = set; then
6963 withval="$with_imlib2_prefix"
6964 imlib2_config_prefix="$withval"
6965 else
6966 imlib2_config_prefix=""
6967 fi;
6968
6969 # Check whether --with-imlib2-exec-prefix or --without-imlib2-exec-prefix was given.
6970 if test "${with_imlib2_exec_prefix+set}" = set; then
6971 withval="$with_imlib2_exec_prefix"
6972 imlib2_config_exec_prefix="$withval"
6973 else
6974 imlib2_config_exec_prefix=""
6975 fi;
6976
6977 if test x$imlib2_config_exec_prefix != x ; then
6978 imlib2_config_args="$imlib2_config_args --exec-prefix=$imlib2_config_exec_prefix"
6979 if test x${IMLIB2_CONFIG+set} != xset ; then
6980 IMLIB2_CONFIG=$imlib2_config_exec_prefix/bin/imlib2-config
6981 fi
6982 fi
6983 if test x$imlib2_config_prefix != x ; then
6984 imlib2_config_args="$imlib2_config_args --prefix=$imlib2_config_prefix"
6985 if test x${IMLIB2_CONFIG+set} != xset ; then
6986 IMLIB2_CONFIG=$imlib2_config_prefix/bin/imlib2-config
6987 fi
6988 fi
6989
6990 # Extract the first word of "imlib2-config", so it can be a program name with args.
6991 set dummy imlib2-config; ac_word=$2
6992 echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6994 if test "${ac_cv_path_IMLIB2_CONFIG+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 case $IMLIB2_CONFIG in
6998 [\\/]* | ?:[\\/]*)
6999 ac_cv_path_IMLIB2_CONFIG="$IMLIB2_CONFIG" # Let the user override the test with a path.
7000 ;;
7001 *)
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_path_IMLIB2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013 done
7014 done
7015
7016 test -z "$ac_cv_path_IMLIB2_CONFIG" && ac_cv_path_IMLIB2_CONFIG="no"
7017 ;;
7018 esac
7019 fi
7020 IMLIB2_CONFIG=$ac_cv_path_IMLIB2_CONFIG
7021
7022 if test -n "$IMLIB2_CONFIG"; then
7023 echo "$as_me:$LINENO: result: $IMLIB2_CONFIG" >&5
7024 echo "${ECHO_T}$IMLIB2_CONFIG" >&6
7025 else
7026 echo "$as_me:$LINENO: result: no" >&5
7027 echo "${ECHO_T}no" >&6
7028 fi
7029
7030 echo "$as_me:$LINENO: checking for imlib2" >&5
7031 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6
7032 no_imlib2=""
7033 if test "$IMLIB2_CONFIG" = "no" ; then
7034 no_imlib2=yes
7035 else
7036 IMLIB2_CFLAGS="`$IMLIB2_CONFIG $imlib2_config_args --cflags`"
7037 IMLIB2_LIBS="`$IMLIB2_CONFIG $imlib2_config_args --libs`"
7038
7039 fi
7040 if test "x$no_imlib2" = x ; then
7041 echo "$as_me:$LINENO: result: yes" >&5
7042 echo "${ECHO_T}yes" >&6
7043
7044
7045
7046 else
7047 echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6
7049 if test "$IMLIB2_CONFIG" = "no" ; then
7050 echo "*** The imlib2-config script installed by imlib2 could not be found"
7051 echo "*** If imlib2 was installed in PREFIX, make sure PREFIX/bin is in"
7052 echo "*** your path, or set the IMLIB2_CONFIG environment variable to the"
7053 echo "*** full path to imlib2-config."
7054 fi
7055 IMLIB2_CFLAGS=""
7056 IMLIB2_LIBS=""
7057 { { echo "$as_me:$LINENO: error: Cannot find imlib2: Is imlib2-config in the path?
7058 You need Imlib2 to build Idesk. Verify that you have Imlib2-dev" >&5
7059 echo "$as_me: error: Cannot find imlib2: Is imlib2-config in the path?
7060 You need Imlib2 to build Idesk. Verify that you have Imlib2-dev" >&2;}
7061 { (exit 1); exit 1; }; }
7062 fi
7063
7064
7065
7066
7067
7068
7069
7070 IMLIB_LIBS=`imlib2-config --libs`
7071 IMLIB_CFLAGS=`imlib2-config --cflags`
7072
7073
7074
7075 CXXFLAGS="$CXXFLAGS $IMLIB_CXXFLAGS"
7076 LIBS="$LIBS $IMLIB_LIBS"
7077
7078
7079 STARTUP=""
7080 echo "$as_me:$LINENO: checking whether to include Startup Notification " >&5
7081 echo $ECHO_N "checking whether to include Startup Notification ... $ECHO_C" >&6
7082 # Check whether --enable-libsn or --disable-libsn was given.
7083 if test "${enable_libsn+set}" = set; then
7084 enableval="$enable_libsn"
7085
7086 fi;
7087
7088 if test -n "$enable_libsn"; then
7089
7090
7091 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7092 if test -n "$ac_tool_prefix"; then
7093 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7095 echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7097 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 case $PKG_CONFIG in
7101 [\\/]* | ?:[\\/]*)
7102 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7103 ;;
7104 *)
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116 done
7117 done
7118
7119 ;;
7120 esac
7121 fi
7122 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7123
7124 if test -n "$PKG_CONFIG"; then
7125 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7126 echo "${ECHO_T}$PKG_CONFIG" >&6
7127 else
7128 echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6
7130 fi
7131
7132 fi
7133 if test -z "$ac_cv_path_PKG_CONFIG"; then
7134 ac_pt_PKG_CONFIG=$PKG_CONFIG
7135 # Extract the first word of "pkg-config", so it can be a program name with args.
7136 set dummy pkg-config; ac_word=$2
7137 echo "$as_me:$LINENO: checking for $ac_word" >&5
7138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7139 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142 case $ac_pt_PKG_CONFIG in
7143 [\\/]* | ?:[\\/]*)
7144 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7145 ;;
7146 *)
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158 done
7159 done
7160
7161 ;;
7162 esac
7163 fi
7164 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7165
7166 if test -n "$ac_pt_PKG_CONFIG"; then
7167 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7168 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
7169 else
7170 echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6
7172 fi
7173
7174 PKG_CONFIG=$ac_pt_PKG_CONFIG
7175 else
7176 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7177 fi
7178
7179 fi
7180 if test -n "$PKG_CONFIG"; then
7181 _pkg_min_version=0.9.0
7182 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7183 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
7184 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7185 echo "$as_me:$LINENO: result: yes" >&5
7186 echo "${ECHO_T}yes" >&6
7187 else
7188 echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7190 PKG_CONFIG=""
7191 fi
7192
7193 fi
7194
7195 pkg_failed=no
7196 echo "$as_me:$LINENO: checking for LIBSN" >&5
7197 echo $ECHO_N "checking for LIBSN... $ECHO_C" >&6
7198
7199 if test -n "$PKG_CONFIG"; then
7200 if test -n "$PKG_CONFIG" && \
7201 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libstartup-notification-1.0 >= 0.5\"") >&5
7202 ($PKG_CONFIG --exists --print-errors "libstartup-notification-1.0 >= 0.5") 2>&5
7203 ac_status=$?
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; then
7206 pkg_cv_LIBSN_CFLAGS=`$PKG_CONFIG --cflags "libstartup-notification-1.0 >= 0.5" 2>/dev/null`
7207 else
7208 pkg_failed=yes
7209 fi
7210 else
7211 pkg_failed=untried
7212 fi
7213 if test -n "$PKG_CONFIG"; then
7214 if test -n "$PKG_CONFIG" && \
7215 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libstartup-notification-1.0 >= 0.5\"") >&5
7216 ($PKG_CONFIG --exists --print-errors "libstartup-notification-1.0 >= 0.5") 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; then
7220 pkg_cv_LIBSN_LIBS=`$PKG_CONFIG --libs "libstartup-notification-1.0 >= 0.5" 2>/dev/null`
7221 else
7222 pkg_failed=yes
7223 fi
7224 else
7225 pkg_failed=untried
7226 fi
7227
7228 if test $pkg_failed = yes; then
7229 LIBSN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libstartup-notification-1.0 >= 0.5"`
7230 # Put the nasty error message in config.log where it belongs
7231 echo "$LIBSN_PKG_ERRORS" 1>&5
7232
7233 { { echo "$as_me:$LINENO: error: Package requirements (libstartup-notification-1.0 >= 0.5) were not met.
7234 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7235 installed software in a non-standard prefix.
7236
7237 Alternatively you may set the LIBSN_CFLAGS and LIBSN_LIBS environment variables
7238 to avoid the need to call pkg-config. See the pkg-config man page for
7239 more details." >&5
7240 echo "$as_me: error: Package requirements (libstartup-notification-1.0 >= 0.5) were not met.
7241 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7242 installed software in a non-standard prefix.
7243
7244 Alternatively you may set the LIBSN_CFLAGS and LIBSN_LIBS environment variables
7245 to avoid the need to call pkg-config. See the pkg-config man page for
7246 more details." >&2;}
7247 { (exit 1); exit 1; }; }
7248 elif test $pkg_failed = untried; then
7249 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7250 is in your PATH or set the PKG_CONFIG environment variable to the full
7251 path to pkg-config.
7252
7253 Alternatively you may set the LIBSN_CFLAGS and LIBSN_LIBS environment variables
7254 to avoid the need to call pkg-config. See the pkg-config man page for
7255 more details.
7256
7257 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
7258 See \`config.log' for more details." >&5
7259 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7260 is in your PATH or set the PKG_CONFIG environment variable to the full
7261 path to pkg-config.
7262
7263 Alternatively you may set the LIBSN_CFLAGS and LIBSN_LIBS environment variables
7264 to avoid the need to call pkg-config. See the pkg-config man page for
7265 more details.
7266
7267 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
7268 See \`config.log' for more details." >&2;}
7269 { (exit 1); exit 1; }; }
7270 else
7271 LIBSN_CFLAGS=$pkg_cv_LIBSN_CFLAGS
7272 LIBSN_LIBS=$pkg_cv_LIBSN_LIBS
7273 echo "$as_me:$LINENO: result: yes" >&5
7274 echo "${ECHO_T}yes" >&6
7275 :
7276 fi
7277 echo "$as_me:$LINENO: result: yes" >&5
7278 echo "${ECHO_T}yes" >&6
7279 STARTUP="-DHAVE_STARTUP_NOTIFICATION -DSN_API_NOT_YET_FROZEN=1",
7280 else
7281 echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6
7283 fi
7284
7285
7286
7287 if test x$LIBSN = xtrue; then
7288 HAVE_STARTUP_NOTIFICATION_TRUE=
7289 HAVE_STARTUP_NOTIFICATION_FALSE='#'
7290 else
7291 HAVE_STARTUP_NOTIFICATION_TRUE='#'
7292 HAVE_STARTUP_NOTIFICATION_FALSE=
7293 fi
7294
7295
7296
7297 CXXFLAGS="$CXXFLAGS $LIBSN_CFLAGS $STARTUP"
7298 LIBS="$LIBS $LIBSN_LIBS"
7299
7300
7301 echo "$as_me:$LINENO: checking whether to have Xft support" >&5
7302 echo $ECHO_N "checking whether to have Xft support... $ECHO_C" >&6
7303
7304
7305 # Check whether --with-xft-prefix or --without-xft-prefix was given.
7306 if test "${with_xft_prefix+set}" = set; then
7307 withval="$with_xft_prefix"
7308 xft_prefix="$withval"
7309 else
7310 xft_prefix=""
7311 fi;
7312
7313 # Check whether --with-pkg-exec-prefix or --without-pkg-exec-prefix was given.
7314 if test "${with_pkg_exec_prefix+set}" = set; then
7315 withval="$with_pkg_exec_prefix"
7316 pkg_exec_prefix="$withval"
7317 else
7318 pkg_exec_prefix=""
7319 fi;
7320 # Check whether --enable-xft or --disable-xft was given.
7321 if test "${enable_xft+set}" = set; then
7322 enableval="$enable_xft"
7323 if test "x$enableval" = "xyes"; then
7324 TRY_XFT=yes
7325 else
7326 TRY_XFT=no
7327 fi
7328
7329 else
7330 TRY_XFT=yes
7331
7332 fi;
7333
7334 if test "x$TRY_XFT" = "xyes"; then
7335 echo "$as_me:$LINENO: result: yes" >&5
7336 echo "${ECHO_T}yes" >&6
7337
7338 if test x$pkg_exec_prefix != x ; then
7339 xft_args="$xft_args --exec-prefix=$pkg_exec_prefix"
7340 if test x${PKG_CONFIG+set} != xset ; then
7341 PKG_CONFIG=$pkg_exec_prefix/bin/pkg-config
7342 fi
7343 fi
7344
7345 if test x$xft_prefix != x ; then
7346 xft_args="$xft_args --prefix=$xft_prefix"
7347 if test x${PKG_CONFIG+set} != xset ; then
7348 PKG_CONFIG=$xft_prefix/bin/pkg-config
7349 fi
7350 fi
7351
7352 # Extract the first word of "pkg-config", so it can be a program name with args.
7353 set dummy pkg-config; ac_word=$2
7354 echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7356 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359 case $PKG_CONFIG in
7360 [\\/]* | ?:[\\/]*)
7361 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7362 ;;
7363 *)
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375 done
7376 done
7377
7378 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7379 ;;
7380 esac
7381 fi
7382 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7383
7384 if test -n "$PKG_CONFIG"; then
7385 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7386 echo "${ECHO_T}$PKG_CONFIG" >&6
7387 else
7388 echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390 fi
7391
7392 if test "x$PKG_CONFIG" = "xno" ; then
7393 # xft2 failed: try xft1
7394
7395 echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
7396 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
7397 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 else
7400 ac_check_lib_save_LIBS=$LIBS
7401 LIBS="-lXft $LIBS"
7402 cat >conftest.$ac_ext <<_ACEOF
7403 /* confdefs.h. */
7404 _ACEOF
7405 cat confdefs.h >>conftest.$ac_ext
7406 cat >>conftest.$ac_ext <<_ACEOF
7407 /* end confdefs.h. */
7408
7409 /* Override any gcc2 internal prototype to avoid an error. */
7410 #ifdef __cplusplus
7411 extern "C"
7412 #endif
7413 /* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7415 char XftFontOpen ();
7416 int
7417 main ()
7418 {
7419 XftFontOpen ();
7420 ;
7421 return 0;
7422 }
7423 _ACEOF
7424 rm -f conftest.$ac_objext conftest$ac_exeext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426 (eval $ac_link) 2>conftest.er1
7427 ac_status=$?
7428 grep -v '^ *+' conftest.er1 >conftest.err
7429 rm -f conftest.er1
7430 cat conftest.err >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } &&
7433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 (eval $ac_try) 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; } &&
7439 { ac_try='test -s conftest$ac_exeext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 (eval $ac_try) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445 ac_cv_lib_Xft_XftFontOpen=yes
7446 else
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7449
7450 ac_cv_lib_Xft_XftFontOpen=no
7451 fi
7452 rm -f conftest.err conftest.$ac_objext \
7453 conftest$ac_exeext conftest.$ac_ext
7454 LIBS=$ac_check_lib_save_LIBS
7455 fi
7456 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
7457 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
7458 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
7459 XFT_LIBS="-lXft"
7460 XFT=true
7461 else
7462 XFT=false
7463
7464 echo "$as_me:$LINENO: result: Cant find Xft libraries! Disabling Xft" >&5
7465 echo "${ECHO_T}Cant find Xft libraries! Disabling Xft" >&6
7466
7467 fi
7468
7469
7470
7471 else
7472 XFT_CFLAGS=`$PKG_CONFIG $xftconf_args --cflags xft`
7473 XFT_LIBS=`$PKG_CONFIG $xftconf_args --libs xft`
7474 XFT=true
7475 fi
7476
7477
7478 else
7479 echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6
7481 XFT=false
7482
7483 fi
7484
7485 CFLAGS="$CFLAGS $XFT_CFLAGS"
7486 CXXFLAGS="$CXXFLAGS $XFT_CFLAGS"
7487 LIBS="$LIBS $XFT_LIBS"
7488
7489
7490
7491 if test "x$XFT" = "xtrue" ; then
7492 cat >conftest.$ac_ext <<_ACEOF
7493 /* confdefs.h. */
7494 _ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7498
7499 #include <X11/Xft/Xft.h>
7500
7501 int
7502 main ()
7503 {
7504 XftFontClose(0, 0); return 1;
7505 ;
7506 return 0;
7507 }
7508 _ACEOF
7509 rm -f conftest.$ac_objext conftest$ac_exeext
7510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7511 (eval $ac_link) 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } &&
7518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 (eval $ac_try) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; } &&
7524 { ac_try='test -s conftest$ac_exeext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 (eval $ac_try) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530
7531
7532
7533 cat >>confdefs.h <<\_ACEOF
7534 #define USE_XFT 1
7535 _ACEOF
7536
7537 echo "$as_me:$LINENO: checking Xft UTF-8 support" >&5
7538 echo $ECHO_N "checking Xft UTF-8 support... $ECHO_C" >&6
7539 cat >conftest.$ac_ext <<_ACEOF
7540 /* confdefs.h. */
7541 _ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545
7546 #include <X11/Xft/Xft.h>
7547
7548 int
7549 main ()
7550 {
7551 XftDrawStringUtf8(0, 0, 0, 0, 0, 0, 0); return 0;
7552 ;
7553 return 0;
7554 }
7555 _ACEOF
7556 rm -f conftest.$ac_objext conftest$ac_exeext
7557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7558 (eval $ac_link) 2>conftest.er1
7559 ac_status=$?
7560 grep -v '^ *+' conftest.er1 >conftest.err
7561 rm -f conftest.er1
7562 cat conftest.err >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } &&
7565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 (eval $ac_try) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; } &&
7571 { ac_try='test -s conftest$ac_exeext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577
7578 cat >>confdefs.h <<\_ACEOF
7579 #define HAVE_XFT_UTF8_STRING 1
7580 _ACEOF
7581
7582 echo "$as_me:$LINENO: result: yes" >&5
7583 echo "${ECHO_T}yes" >&6
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588 echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7590
7591 fi
7592 rm -f conftest.err conftest.$ac_objext \
7593 conftest$ac_exeext conftest.$ac_ext
7594
7595 else
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599 echo "$as_me:$LINENO: result: Could not link with Xft. Install Xft if you want support for it." >&5
7600 echo "${ECHO_T}Could not link with Xft. Install Xft if you want support for it." >&6
7601 XFT=false
7602
7603 fi
7604 rm -f conftest.err conftest.$ac_objext \
7605 conftest$ac_exeext conftest.$ac_ext
7606 fi
7607
7608
7609
7610 if test x$XFT = xtrue; then
7611 XFT_TRUE=
7612 XFT_FALSE='#'
7613 else
7614 XFT_TRUE='#'
7615 XFT_FALSE=
7616 fi
7617
7618 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7619 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7620 if test "${ac_cv_type_signal+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623 cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h. */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 #include <sys/types.h>
7630 #include <signal.h>
7631 #ifdef signal
7632 # undef signal
7633 #endif
7634 #ifdef __cplusplus
7635 extern "C" void (*signal (int, void (*)(int)))(int);
7636 #else
7637 void (*signal ()) ();
7638 #endif
7639
7640 int
7641 main ()
7642 {
7643 int i;
7644 ;
7645 return 0;
7646 }
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 (eval $ac_try) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; } &&
7663 { ac_try='test -s conftest.$ac_objext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 ac_cv_type_signal=void
7670 else
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674 ac_cv_type_signal=int
7675 fi
7676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7677 fi
7678 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7679 echo "${ECHO_T}$ac_cv_type_signal" >&6
7680
7681 cat >>confdefs.h <<_ACEOF
7682 #define RETSIGTYPE $ac_cv_type_signal
7683 _ACEOF
7684
7685
7686
7687
7688 DEFAULT_PREFIX="$prefix"
7689
7690
7691 echo "$as_me:$LINENO: result: " >&5
7692 echo "${ECHO_T}" >&6
7693 echo "$as_me:$LINENO: result: $PACKAGE version $VERSION configured successfully." >&5
7694 echo "${ECHO_T} $PACKAGE version $VERSION configured successfully." >&6
7695 echo "$as_me:$LINENO: result: " >&5
7696 echo "${ECHO_T}" >&6
7697 echo "$as_me:$LINENO: result: Using '$prefix' for installation." >&5
7698 echo "${ECHO_T}Using '$prefix' for installation." >&6
7699 echo "$as_me:$LINENO: result: Using '$CXX' for C++ compiler." >&5
7700 echo "${ECHO_T}Using '$CXX' for C++ compiler." >&6
7701 echo "$as_me:$LINENO: result: Building with '$CXXFLAGS' for C++ compiler flags." >&5
7702 echo "${ECHO_T}Building with '$CXXFLAGS' for C++ compiler flags." >&6
7703 echo "$as_me:$LINENO: result: Building with '$LIBS' for linker flags." >&5
7704 echo "${ECHO_T}Building with '$LIBS' for linker flags." >&6
7705 echo "$as_me:$LINENO: result: " >&5
7706 echo "${ECHO_T}" >&6
7707
7708
7709 ac_config_files="$ac_config_files Makefile src/Makefile"
7710 cat >confcache <<\_ACEOF
7711 # This file is a shell script that caches the results of configure
7712 # tests run on this system so they can be shared between configure
7713 # scripts and configure runs, see configure's option --config-cache.
7714 # It is not useful on other systems. If it contains results you don't
7715 # want to keep, you may remove or edit it.
7716 #
7717 # config.status only pays attention to the cache file if you give it
7718 # the --recheck option to rerun configure.
7719 #
7720 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7721 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7722 # following values.
7723
7724 _ACEOF
7725
7726 # The following way of writing the cache mishandles newlines in values,
7727 # but we know of no workaround that is simple, portable, and efficient.
7728 # So, don't put newlines in cache variables' values.
7729 # Ultrix sh set writes to stderr and can't be redirected directly,
7730 # and sets the high bit in the cache file unless we assign to the vars.
7731 {
7732 (set) 2>&1 |
7733 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7734 *ac_space=\ *)
7735 # `set' does not quote correctly, so add quotes (double-quote
7736 # substitution turns \\\\ into \\, and sed turns \\ into \).
7737 sed -n \
7738 "s/'/'\\\\''/g;
7739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7740 ;;
7741 *)
7742 # `set' quotes correctly as required by POSIX, so do not add quotes.
7743 sed -n \
7744 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7745 ;;
7746 esac;
7747 } |
7748 sed '
7749 t clear
7750 : clear
7751 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7752 t end
7753 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7754 : end' >>confcache
7755 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7756 if test -w $cache_file; then
7757 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7758 cat confcache >$cache_file
7759 else
7760 echo "not updating unwritable cache $cache_file"
7761 fi
7762 fi
7763 rm -f confcache
7764
7765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7766 # Let make expand exec_prefix.
7767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7768
7769 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7770 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7771 # trailing colons and then remove the whole line if VPATH becomes empty
7772 # (actually we leave an empty line to preserve line numbers).
7773 if test "x$srcdir" = x.; then
7774 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7775 s/:*\$(srcdir):*/:/;
7776 s/:*\${srcdir}:*/:/;
7777 s/:*@srcdir@:*/:/;
7778 s/^\([^=]*=[ ]*\):*/\1/;
7779 s/:*$//;
7780 s/^[^=]*=[ ]*$//;
7781 }'
7782 fi
7783
7784 DEFS=-DHAVE_CONFIG_H
7785
7786 ac_libobjs=
7787 ac_ltlibobjs=
7788 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7789 # 1. Remove the extension, and $U if already installed.
7790 ac_i=`echo "$ac_i" |
7791 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7792 # 2. Add them.
7793 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7794 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7795 done
7796 LIBOBJS=$ac_libobjs
7797
7798 LTLIBOBJS=$ac_ltlibobjs
7799
7800
7801
7802 : ${CONFIG_STATUS=./config.status}
7803 ac_clean_files_save=$ac_clean_files
7804 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7805 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7806 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7807 cat >$CONFIG_STATUS <<_ACEOF
7808 #! $SHELL
7809 # Generated by $as_me.
7810 # Run this file to recreate the current configuration.
7811 # Compiler output produced by configure, useful for debugging
7812 # configure, is in config.log if it exists.
7813
7814 debug=false
7815 ac_cs_recheck=false
7816 ac_cs_silent=false
7817 SHELL=\${CONFIG_SHELL-$SHELL}
7818 _ACEOF
7819
7820 cat >>$CONFIG_STATUS <<\_ACEOF
7821 ## --------------------- ##
7822 ## M4sh Initialization. ##
7823 ## --------------------- ##
7824
7825 # Be Bourne compatible
7826 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7827 emulate sh
7828 NULLCMD=:
7829 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7830 # is contrary to our usage. Disable this feature.
7831 alias -g '${1+"$@"}'='"$@"'
7832 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7833 set -o posix
7834 fi
7835 DUALCASE=1; export DUALCASE # for MKS sh
7836
7837 # Support unset when possible.
7838 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7839 as_unset=unset
7840 else
7841 as_unset=false
7842 fi
7843
7844
7845 # Work around bugs in pre-3.0 UWIN ksh.
7846 $as_unset ENV MAIL MAILPATH
7847 PS1='$ '
7848 PS2='> '
7849 PS4='+ '
7850
7851 # NLS nuisances.
7852 for as_var in \
7853 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7854 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7855 LC_TELEPHONE LC_TIME
7856 do
7857 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7858 eval $as_var=C; export $as_var
7859 else
7860 $as_unset $as_var
7861 fi
7862 done
7863
7864 # Required to use basename.
7865 if expr a : '\(a\)' >/dev/null 2>&1; then
7866 as_expr=expr
7867 else
7868 as_expr=false
7869 fi
7870
7871 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7872 as_basename=basename
7873 else
7874 as_basename=false
7875 fi
7876
7877
7878 # Name of the executable.
7879 as_me=`$as_basename "$0" ||
7880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7881 X"$0" : 'X\(//\)$' \| \
7882 X"$0" : 'X\(/\)$' \| \
7883 . : '\(.\)' 2>/dev/null ||
7884 echo X/"$0" |
7885 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7886 /^X\/\(\/\/\)$/{ s//\1/; q; }
7887 /^X\/\(\/\).*/{ s//\1/; q; }
7888 s/.*/./; q'`
7889
7890
7891 # PATH needs CR, and LINENO needs CR and PATH.
7892 # Avoid depending upon Character Ranges.
7893 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7894 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7895 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7896 as_cr_digits='0123456789'
7897 as_cr_alnum=$as_cr_Letters$as_cr_digits
7898
7899 # The user is always right.
7900 if test "${PATH_SEPARATOR+set}" != set; then
7901 echo "#! /bin/sh" >conf$$.sh
7902 echo "exit 0" >>conf$$.sh
7903 chmod +x conf$$.sh
7904 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7905 PATH_SEPARATOR=';'
7906 else
7907 PATH_SEPARATOR=:
7908 fi
7909 rm -f conf$$.sh
7910 fi
7911
7912
7913 as_lineno_1=$LINENO
7914 as_lineno_2=$LINENO
7915 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7916 test "x$as_lineno_1" != "x$as_lineno_2" &&
7917 test "x$as_lineno_3" = "x$as_lineno_2" || {
7918 # Find who we are. Look in the path if we contain no path at all
7919 # relative or not.
7920 case $0 in
7921 *[\\/]* ) as_myself=$0 ;;
7922 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7928 done
7929
7930 ;;
7931 esac
7932 # We did not find ourselves, most probably we were run as `sh COMMAND'
7933 # in which case we are not to be found in the path.
7934 if test "x$as_myself" = x; then
7935 as_myself=$0
7936 fi
7937 if test ! -f "$as_myself"; then
7938 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7939 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7940 { (exit 1); exit 1; }; }
7941 fi
7942 case $CONFIG_SHELL in
7943 '')
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7946 do
7947 IFS=$as_save_IFS
7948 test -z "$as_dir" && as_dir=.
7949 for as_base in sh bash ksh sh5; do
7950 case $as_dir in
7951 /*)
7952 if ("$as_dir/$as_base" -c '
7953 as_lineno_1=$LINENO
7954 as_lineno_2=$LINENO
7955 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7956 test "x$as_lineno_1" != "x$as_lineno_2" &&
7957 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7958 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7959 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7960 CONFIG_SHELL=$as_dir/$as_base
7961 export CONFIG_SHELL
7962 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7963 fi;;
7964 esac
7965 done
7966 done
7967 ;;
7968 esac
7969
7970 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7971 # uniformly replaced by the line number. The first 'sed' inserts a
7972 # line-number line before each line; the second 'sed' does the real
7973 # work. The second script uses 'N' to pair each line-number line
7974 # with the numbered line, and appends trailing '-' during
7975 # substitution so that $LINENO is not a special case at line end.
7976 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7977 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7978 sed '=' <$as_myself |
7979 sed '
7980 N
7981 s,$,-,
7982 : loop
7983 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7984 t loop
7985 s,-$,,
7986 s,^['$as_cr_digits']*\n,,
7987 ' >$as_me.lineno &&
7988 chmod +x $as_me.lineno ||
7989 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7990 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7991 { (exit 1); exit 1; }; }
7992
7993 # Don't try to exec as it changes $[0], causing all sort of problems
7994 # (the dirname of $[0] is not the place where we might find the
7995 # original and so on. Autoconf is especially sensible to this).
7996 . ./$as_me.lineno
7997 # Exit status is that of the last command.
7998 exit
7999 }
8000
8001
8002 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8003 *c*,-n*) ECHO_N= ECHO_C='
8004 ' ECHO_T=' ' ;;
8005 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8006 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8007 esac
8008
8009 if expr a : '\(a\)' >/dev/null 2>&1; then
8010 as_expr=expr
8011 else
8012 as_expr=false
8013 fi
8014
8015 rm -f conf$$ conf$$.exe conf$$.file
8016 echo >conf$$.file
8017 if ln -s conf$$.file conf$$ 2>/dev/null; then
8018 # We could just check for DJGPP; but this test a) works b) is more generic
8019 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8020 if test -f conf$$.exe; then
8021 # Don't use ln at all; we don't have any links
8022 as_ln_s='cp -p'
8023 else
8024 as_ln_s='ln -s'
8025 fi
8026 elif ln conf$$.file conf$$ 2>/dev/null; then
8027 as_ln_s=ln
8028 else
8029 as_ln_s='cp -p'
8030 fi
8031 rm -f conf$$ conf$$.exe conf$$.file
8032
8033 if mkdir -p . 2>/dev/null; then
8034 as_mkdir_p=:
8035 else
8036 test -d ./-p && rmdir ./-p
8037 as_mkdir_p=false
8038 fi
8039
8040 as_executable_p="test -f"
8041
8042 # Sed expression to map a string onto a valid CPP name.
8043 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8044
8045 # Sed expression to map a string onto a valid variable name.
8046 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8047
8048
8049 # IFS
8050 # We need space, tab and new line, in precisely that order.
8051 as_nl='
8052 '
8053 IFS=" $as_nl"
8054
8055 # CDPATH.
8056 $as_unset CDPATH
8057
8058 exec 6>&1
8059
8060 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8061 # report actual input values of CONFIG_FILES etc. instead of their
8062 # values after options handling. Logging --version etc. is OK.
8063 exec 5>>config.log
8064 {
8065 echo
8066 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8067 ## Running $as_me. ##
8068 _ASBOX
8069 } >&5
8070 cat >&5 <<_CSEOF
8071
8072 This file was extended by $as_me, which was
8073 generated by GNU Autoconf 2.59. Invocation command line was
8074
8075 CONFIG_FILES = $CONFIG_FILES
8076 CONFIG_HEADERS = $CONFIG_HEADERS
8077 CONFIG_LINKS = $CONFIG_LINKS
8078 CONFIG_COMMANDS = $CONFIG_COMMANDS
8079 $ $0 $@
8080
8081 _CSEOF
8082 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8083 echo >&5
8084 _ACEOF
8085
8086 # Files that config.status was made for.
8087 if test -n "$ac_config_files"; then
8088 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8089 fi
8090
8091 if test -n "$ac_config_headers"; then
8092 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8093 fi
8094
8095 if test -n "$ac_config_links"; then
8096 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8097 fi
8098
8099 if test -n "$ac_config_commands"; then
8100 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8101 fi
8102
8103 cat >>$CONFIG_STATUS <<\_ACEOF
8104
8105 ac_cs_usage="\
8106 \`$as_me' instantiates files from templates according to the
8107 current configuration.
8108
8109 Usage: $0 [OPTIONS] [FILE]...
8110
8111 -h, --help print this help, then exit
8112 -V, --version print version number, then exit
8113 -q, --quiet do not print progress messages
8114 -d, --debug don't remove temporary files
8115 --recheck update $as_me by reconfiguring in the same conditions
8116 --file=FILE[:TEMPLATE]
8117 instantiate the configuration file FILE
8118 --header=FILE[:TEMPLATE]
8119 instantiate the configuration header FILE
8120
8121 Configuration files:
8122 $config_files
8123
8124 Configuration headers:
8125 $config_headers
8126
8127 Configuration commands:
8128 $config_commands
8129
8130 Report bugs to <[email protected]>."
8131 _ACEOF
8132
8133 cat >>$CONFIG_STATUS <<_ACEOF
8134 ac_cs_version="\\
8135 config.status
8136 configured by $0, generated by GNU Autoconf 2.59,
8137 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8138
8139 Copyright (C) 2003 Free Software Foundation, Inc.
8140 This config.status script is free software; the Free Software Foundation
8141 gives unlimited permission to copy, distribute and modify it."
8142 srcdir=$srcdir
8143 INSTALL="$INSTALL"
8144 _ACEOF
8145
8146 cat >>$CONFIG_STATUS <<\_ACEOF
8147 # If no file are specified by the user, then we need to provide default
8148 # value. By we need to know if files were specified by the user.
8149 ac_need_defaults=:
8150 while test $# != 0
8151 do
8152 case $1 in
8153 --*=*)
8154 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8155 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8156 ac_shift=:
8157 ;;
8158 -*)
8159 ac_option=$1
8160 ac_optarg=$2
8161 ac_shift=shift
8162 ;;
8163 *) # This is not an option, so the user has probably given explicit
8164 # arguments.
8165 ac_option=$1
8166 ac_need_defaults=false;;
8167 esac
8168
8169 case $ac_option in
8170 # Handling of the options.
8171 _ACEOF
8172 cat >>$CONFIG_STATUS <<\_ACEOF
8173 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8174 ac_cs_recheck=: ;;
8175 --version | --vers* | -V )
8176 echo "$ac_cs_version"; exit 0 ;;
8177 --he | --h)
8178 # Conflict between --help and --header
8179 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8180 Try \`$0 --help' for more information." >&5
8181 echo "$as_me: error: ambiguous option: $1
8182 Try \`$0 --help' for more information." >&2;}
8183 { (exit 1); exit 1; }; };;
8184 --help | --hel | -h )
8185 echo "$ac_cs_usage"; exit 0 ;;
8186 --debug | --d* | -d )
8187 debug=: ;;
8188 --file | --fil | --fi | --f )
8189 $ac_shift
8190 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8191 ac_need_defaults=false;;
8192 --header | --heade | --head | --hea )
8193 $ac_shift
8194 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8195 ac_need_defaults=false;;
8196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8197 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8198 ac_cs_silent=: ;;
8199
8200 # This is an error.
8201 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8202 Try \`$0 --help' for more information." >&5
8203 echo "$as_me: error: unrecognized option: $1
8204 Try \`$0 --help' for more information." >&2;}
8205 { (exit 1); exit 1; }; } ;;
8206
8207 *) ac_config_targets="$ac_config_targets $1" ;;
8208
8209 esac
8210 shift
8211 done
8212
8213 ac_configure_extra_args=
8214
8215 if $ac_cs_silent; then
8216 exec 6>/dev/null
8217 ac_configure_extra_args="$ac_configure_extra_args --silent"
8218 fi
8219
8220 _ACEOF
8221 cat >>$CONFIG_STATUS <<_ACEOF
8222 if \$ac_cs_recheck; then
8223 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8224 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8225 fi
8226
8227 _ACEOF
8228
8229 cat >>$CONFIG_STATUS <<_ACEOF
8230 #
8231 # INIT-COMMANDS section.
8232 #
8233
8234
8235
8236 _ACEOF
8237
8238
8239
8240 cat >>$CONFIG_STATUS <<\_ACEOF
8241 for ac_config_target in $ac_config_targets
8242 do
8243 case "$ac_config_target" in
8244 # Handling of arguments.
8245 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8246 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8247 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8248 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8249 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8250 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8251 { (exit 1); exit 1; }; };;
8252 esac
8253 done
8254
8255 # If the user did not use the arguments to specify the items to instantiate,
8256 # then the envvar interface is used. Set only those that are not.
8257 # We use the long form for the default assignment because of an extremely
8258 # bizarre bug on SunOS 4.1.3.
8259 if $ac_need_defaults; then
8260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8262 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8263 fi
8264
8265 # Have a temporary directory for convenience. Make it in the build tree
8266 # simply because there is no reason to put it here, and in addition,
8267 # creating and moving files from /tmp can sometimes cause problems.
8268 # Create a temporary directory, and hook for its removal unless debugging.
8269 $debug ||
8270 {
8271 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8272 trap '{ (exit 1); exit 1; }' 1 2 13 15
8273 }
8274
8275 # Create a (secure) tmp directory for tmp files.
8276
8277 {
8278 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8279 test -n "$tmp" && test -d "$tmp"
8280 } ||
8281 {
8282 tmp=./confstat$$-$RANDOM
8283 (umask 077 && mkdir $tmp)
8284 } ||
8285 {
8286 echo "$me: cannot create a temporary directory in ." >&2
8287 { (exit 1); exit 1; }
8288 }
8289
8290 _ACEOF
8291
8292 cat >>$CONFIG_STATUS <<_ACEOF
8293
8294 #
8295 # CONFIG_FILES section.
8296 #
8297
8298 # No need to generate the scripts if there are no CONFIG_FILES.
8299 # This happens for instance when ./config.status config.h
8300 if test -n "\$CONFIG_FILES"; then
8301 # Protect against being on the right side of a sed subst in config.status.
8302 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8303 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8304 s,@SHELL@,$SHELL,;t t
8305 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8306 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8307 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8308 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8309 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8310 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8311 s,@exec_prefix@,$exec_prefix,;t t
8312 s,@prefix@,$prefix,;t t
8313 s,@program_transform_name@,$program_transform_name,;t t
8314 s,@bindir@,$bindir,;t t
8315 s,@sbindir@,$sbindir,;t t
8316 s,@libexecdir@,$libexecdir,;t t
8317 s,@datadir@,$datadir,;t t
8318 s,@sysconfdir@,$sysconfdir,;t t
8319 s,@sharedstatedir@,$sharedstatedir,;t t
8320 s,@localstatedir@,$localstatedir,;t t
8321 s,@libdir@,$libdir,;t t
8322 s,@includedir@,$includedir,;t t
8323 s,@oldincludedir@,$oldincludedir,;t t
8324 s,@infodir@,$infodir,;t t
8325 s,@mandir@,$mandir,;t t
8326 s,@build_alias@,$build_alias,;t t
8327 s,@host_alias@,$host_alias,;t t
8328 s,@target_alias@,$target_alias,;t t
8329 s,@DEFS@,$DEFS,;t t
8330 s,@ECHO_C@,$ECHO_C,;t t
8331 s,@ECHO_N@,$ECHO_N,;t t
8332 s,@ECHO_T@,$ECHO_T,;t t
8333 s,@LIBS@,$LIBS,;t t
8334 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8335 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8336 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8337 s,@PACKAGE@,$PACKAGE,;t t
8338 s,@VERSION@,$VERSION,;t t
8339 s,@ACLOCAL@,$ACLOCAL,;t t
8340 s,@AUTOCONF@,$AUTOCONF,;t t
8341 s,@AUTOMAKE@,$AUTOMAKE,;t t
8342 s,@AUTOHEADER@,$AUTOHEADER,;t t
8343 s,@MAKEINFO@,$MAKEINFO,;t t
8344 s,@SET_MAKE@,$SET_MAKE,;t t
8345 s,@CC@,$CC,;t t
8346 s,@CFLAGS@,$CFLAGS,;t t
8347 s,@LDFLAGS@,$LDFLAGS,;t t
8348 s,@CPPFLAGS@,$CPPFLAGS,;t t
8349 s,@ac_ct_CC@,$ac_ct_CC,;t t
8350 s,@EXEEXT@,$EXEEXT,;t t
8351 s,@OBJEXT@,$OBJEXT,;t t
8352 s,@CXX@,$CXX,;t t
8353 s,@CXXFLAGS@,$CXXFLAGS,;t t
8354 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8355 s,@CXXCPP@,$CXXCPP,;t t
8356 s,@EGREP@,$EGREP,;t t
8357 s,@X_CFLAGS@,$X_CFLAGS,;t t
8358 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
8359 s,@X_LIBS@,$X_LIBS,;t t
8360 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
8361 s,@SHAPE@,$SHAPE,;t t
8362 s,@IMLIB2_CONFIG@,$IMLIB2_CONFIG,;t t
8363 s,@IMLIB_LIBS@,$IMLIB_LIBS,;t t
8364 s,@IMLIB_CXXFLAGS@,$IMLIB_CXXFLAGS,;t t
8365 s,@IMLIB2_CFLAGS@,$IMLIB2_CFLAGS,;t t
8366 s,@IMLIB2_LIBS@,$IMLIB2_LIBS,;t t
8367 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
8368 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
8369 s,@LIBSN_CFLAGS@,$LIBSN_CFLAGS,;t t
8370 s,@LIBSN_LIBS@,$LIBSN_LIBS,;t t
8371 s,@HAVE_STARTUP_NOTIFICATION_TRUE@,$HAVE_STARTUP_NOTIFICATION_TRUE,;t t
8372 s,@HAVE_STARTUP_NOTIFICATION_FALSE@,$HAVE_STARTUP_NOTIFICATION_FALSE,;t t
8373 s,@STARTUP@,$STARTUP,;t t
8374 s,@XFT_TRUE@,$XFT_TRUE,;t t
8375 s,@XFT_FALSE@,$XFT_FALSE,;t t
8376 s,@DEFAULT_PREFIX@,$DEFAULT_PREFIX,;t t
8377 s,@LIBOBJS@,$LIBOBJS,;t t
8378 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8379 CEOF
8380
8381 _ACEOF
8382
8383 cat >>$CONFIG_STATUS <<\_ACEOF
8384 # Split the substitutions into bite-sized pieces for seds with
8385 # small command number limits, like on Digital OSF/1 and HP-UX.
8386 ac_max_sed_lines=48
8387 ac_sed_frag=1 # Number of current file.
8388 ac_beg=1 # First line for current file.
8389 ac_end=$ac_max_sed_lines # Line after last line for current file.
8390 ac_more_lines=:
8391 ac_sed_cmds=
8392 while $ac_more_lines; do
8393 if test $ac_beg -gt 1; then
8394 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8395 else
8396 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8397 fi
8398 if test ! -s $tmp/subs.frag; then
8399 ac_more_lines=false
8400 else
8401 # The purpose of the label and of the branching condition is to
8402 # speed up the sed processing (if there are no `@' at all, there
8403 # is no need to browse any of the substitutions).
8404 # These are the two extra sed commands mentioned above.
8405 (echo ':t
8406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8407 if test -z "$ac_sed_cmds"; then
8408 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8409 else
8410 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8411 fi
8412 ac_sed_frag=`expr $ac_sed_frag + 1`
8413 ac_beg=$ac_end
8414 ac_end=`expr $ac_end + $ac_max_sed_lines`
8415 fi
8416 done
8417 if test -z "$ac_sed_cmds"; then
8418 ac_sed_cmds=cat
8419 fi
8420 fi # test -n "$CONFIG_FILES"
8421
8422 _ACEOF
8423 cat >>$CONFIG_STATUS <<\_ACEOF
8424 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8426 case $ac_file in
8427 - | *:- | *:-:* ) # input from stdin
8428 cat >$tmp/stdin
8429 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8431 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8433 * ) ac_file_in=$ac_file.in ;;
8434 esac
8435
8436 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8437 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8439 X"$ac_file" : 'X\(//\)[^/]' \| \
8440 X"$ac_file" : 'X\(//\)$' \| \
8441 X"$ac_file" : 'X\(/\)' \| \
8442 . : '\(.\)' 2>/dev/null ||
8443 echo X"$ac_file" |
8444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8446 /^X\(\/\/\)$/{ s//\1/; q; }
8447 /^X\(\/\).*/{ s//\1/; q; }
8448 s/.*/./; q'`
8449 { if $as_mkdir_p; then
8450 mkdir -p "$ac_dir"
8451 else
8452 as_dir="$ac_dir"
8453 as_dirs=
8454 while test ! -d "$as_dir"; do
8455 as_dirs="$as_dir $as_dirs"
8456 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8458 X"$as_dir" : 'X\(//\)[^/]' \| \
8459 X"$as_dir" : 'X\(//\)$' \| \
8460 X"$as_dir" : 'X\(/\)' \| \
8461 . : '\(.\)' 2>/dev/null ||
8462 echo X"$as_dir" |
8463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8465 /^X\(\/\/\)$/{ s//\1/; q; }
8466 /^X\(\/\).*/{ s//\1/; q; }
8467 s/.*/./; q'`
8468 done
8469 test ! -n "$as_dirs" || mkdir $as_dirs
8470 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8471 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8472 { (exit 1); exit 1; }; }; }
8473
8474 ac_builddir=.
8475
8476 if test "$ac_dir" != .; then
8477 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8478 # A "../" for each directory in $ac_dir_suffix.
8479 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8480 else
8481 ac_dir_suffix= ac_top_builddir=
8482 fi
8483
8484 case $srcdir in
8485 .) # No --srcdir option. We are building in place.
8486 ac_srcdir=.
8487 if test -z "$ac_top_builddir"; then
8488 ac_top_srcdir=.
8489 else
8490 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8491 fi ;;
8492 [\\/]* | ?:[\\/]* ) # Absolute path.
8493 ac_srcdir=$srcdir$ac_dir_suffix;
8494 ac_top_srcdir=$srcdir ;;
8495 *) # Relative path.
8496 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8497 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8498 esac
8499
8500 # Do not use `cd foo && pwd` to compute absolute paths, because
8501 # the directories may not exist.
8502 case `pwd` in
8503 .) ac_abs_builddir="$ac_dir";;
8504 *)
8505 case "$ac_dir" in
8506 .) ac_abs_builddir=`pwd`;;
8507 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8508 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8509 esac;;
8510 esac
8511 case $ac_abs_builddir in
8512 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8513 *)
8514 case ${ac_top_builddir}. in
8515 .) ac_abs_top_builddir=$ac_abs_builddir;;
8516 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8517 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8518 esac;;
8519 esac
8520 case $ac_abs_builddir in
8521 .) ac_abs_srcdir=$ac_srcdir;;
8522 *)
8523 case $ac_srcdir in
8524 .) ac_abs_srcdir=$ac_abs_builddir;;
8525 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8526 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8527 esac;;
8528 esac
8529 case $ac_abs_builddir in
8530 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8531 *)
8532 case $ac_top_srcdir in
8533 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8534 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8535 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8536 esac;;
8537 esac
8538
8539
8540 case $INSTALL in
8541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8542 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8543 esac
8544
8545 # Let's still pretend it is `configure' which instantiates (i.e., don't
8546 # use $as_me), people would be surprised to read:
8547 # /* config.h. Generated by config.status. */
8548 if test x"$ac_file" = x-; then
8549 configure_input=
8550 else
8551 configure_input="$ac_file. "
8552 fi
8553 configure_input=$configure_input"Generated from `echo $ac_file_in |
8554 sed 's,.*/,,'` by configure."
8555
8556 # First look for the input files in the build tree, otherwise in the
8557 # src tree.
8558 ac_file_inputs=`IFS=:
8559 for f in $ac_file_in; do
8560 case $f in
8561 -) echo $tmp/stdin ;;
8562 [\\/$]*)
8563 # Absolute (can't be DOS-style, as IFS=:)
8564 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8565 echo "$as_me: error: cannot find input file: $f" >&2;}
8566 { (exit 1); exit 1; }; }
8567 echo "$f";;
8568 *) # Relative
8569 if test -f "$f"; then
8570 # Build tree
8571 echo "$f"
8572 elif test -f "$srcdir/$f"; then
8573 # Source tree
8574 echo "$srcdir/$f"
8575 else
8576 # /dev/null tree
8577 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8578 echo "$as_me: error: cannot find input file: $f" >&2;}
8579 { (exit 1); exit 1; }; }
8580 fi;;
8581 esac
8582 done` || { (exit 1); exit 1; }
8583
8584 if test x"$ac_file" != x-; then
8585 { echo "$as_me:$LINENO: creating $ac_file" >&5
8586 echo "$as_me: creating $ac_file" >&6;}
8587 rm -f "$ac_file"
8588 fi
8589 _ACEOF
8590 cat >>$CONFIG_STATUS <<_ACEOF
8591 sed "$ac_vpsub
8592 $extrasub
8593 _ACEOF
8594 cat >>$CONFIG_STATUS <<\_ACEOF
8595 :t
8596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8597 s,@configure_input@,$configure_input,;t t
8598 s,@srcdir@,$ac_srcdir,;t t
8599 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8600 s,@top_srcdir@,$ac_top_srcdir,;t t
8601 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8602 s,@builddir@,$ac_builddir,;t t
8603 s,@abs_builddir@,$ac_abs_builddir,;t t
8604 s,@top_builddir@,$ac_top_builddir,;t t
8605 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8606 s,@INSTALL@,$ac_INSTALL,;t t
8607 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8608 rm -f $tmp/stdin
8609 if test x"$ac_file" != x-; then
8610 mv $tmp/out $ac_file
8611 else
8612 cat $tmp/out
8613 rm -f $tmp/out
8614 fi
8615
8616 done
8617 _ACEOF
8618 cat >>$CONFIG_STATUS <<\_ACEOF
8619
8620 #
8621 # CONFIG_HEADER section.
8622 #
8623
8624 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8625 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8626 #
8627 # ac_d sets the value in "#define NAME VALUE" lines.
8628 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8629 ac_dB='[ ].*$,\1#\2'
8630 ac_dC=' '
8631 ac_dD=',;t'
8632 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8633 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8634 ac_uB='$,\1#\2define\3'
8635 ac_uC=' '
8636 ac_uD=',;t'
8637
8638 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8639 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8640 case $ac_file in
8641 - | *:- | *:-:* ) # input from stdin
8642 cat >$tmp/stdin
8643 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8644 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8645 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8646 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8647 * ) ac_file_in=$ac_file.in ;;
8648 esac
8649
8650 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8651 echo "$as_me: creating $ac_file" >&6;}
8652
8653 # First look for the input files in the build tree, otherwise in the
8654 # src tree.
8655 ac_file_inputs=`IFS=:
8656 for f in $ac_file_in; do
8657 case $f in
8658 -) echo $tmp/stdin ;;
8659 [\\/$]*)
8660 # Absolute (can't be DOS-style, as IFS=:)
8661 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8662 echo "$as_me: error: cannot find input file: $f" >&2;}
8663 { (exit 1); exit 1; }; }
8664 # Do quote $f, to prevent DOS paths from being IFS'd.
8665 echo "$f";;
8666 *) # Relative
8667 if test -f "$f"; then
8668 # Build tree
8669 echo "$f"
8670 elif test -f "$srcdir/$f"; then
8671 # Source tree
8672 echo "$srcdir/$f"
8673 else
8674 # /dev/null tree
8675 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8676 echo "$as_me: error: cannot find input file: $f" >&2;}
8677 { (exit 1); exit 1; }; }
8678 fi;;
8679 esac
8680 done` || { (exit 1); exit 1; }
8681 # Remove the trailing spaces.
8682 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8683
8684 _ACEOF
8685
8686 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8687 # `conftest.undefs', that substitutes the proper values into
8688 # config.h.in to produce config.h. The first handles `#define'
8689 # templates, and the second `#undef' templates.
8690 # And first: Protect against being on the right side of a sed subst in
8691 # config.status. Protect against being in an unquoted here document
8692 # in config.status.
8693 rm -f conftest.defines conftest.undefs
8694 # Using a here document instead of a string reduces the quoting nightmare.
8695 # Putting comments in sed scripts is not portable.
8696 #
8697 # `end' is used to avoid that the second main sed command (meant for
8698 # 0-ary CPP macros) applies to n-ary macro definitions.
8699 # See the Autoconf documentation for `clear'.
8700 cat >confdef2sed.sed <<\_ACEOF
8701 s/[\\&,]/\\&/g
8702 s,[\\$`],\\&,g
8703 t clear
8704 : clear
8705 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8706 t end
8707 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8708 : end
8709 _ACEOF
8710 # If some macros were called several times there might be several times
8711 # the same #defines, which is useless. Nevertheless, we may not want to
8712 # sort them, since we want the *last* AC-DEFINE to be honored.
8713 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8714 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8715 rm -f confdef2sed.sed
8716
8717 # This sed command replaces #undef with comments. This is necessary, for
8718 # example, in the case of _POSIX_SOURCE, which is predefined and required
8719 # on some systems where configure will not decide to define it.
8720 cat >>conftest.undefs <<\_ACEOF
8721 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8722 _ACEOF
8723
8724 # Break up conftest.defines because some shells have a limit on the size
8725 # of here documents, and old seds have small limits too (100 cmds).
8726 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8727 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8728 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8729 echo ' :' >>$CONFIG_STATUS
8730 rm -f conftest.tail
8731 while grep . conftest.defines >/dev/null
8732 do
8733 # Write a limited-size here document to $tmp/defines.sed.
8734 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8735 # Speed up: don't consider the non `#define' lines.
8736 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8737 # Work around the forget-to-reset-the-flag bug.
8738 echo 't clr' >>$CONFIG_STATUS
8739 echo ': clr' >>$CONFIG_STATUS
8740 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8741 echo 'CEOF
8742 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8743 rm -f $tmp/in
8744 mv $tmp/out $tmp/in
8745 ' >>$CONFIG_STATUS
8746 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8747 rm -f conftest.defines
8748 mv conftest.tail conftest.defines
8749 done
8750 rm -f conftest.defines
8751 echo ' fi # grep' >>$CONFIG_STATUS
8752 echo >>$CONFIG_STATUS
8753
8754 # Break up conftest.undefs because some shells have a limit on the size
8755 # of here documents, and old seds have small limits too (100 cmds).
8756 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8757 rm -f conftest.tail
8758 while grep . conftest.undefs >/dev/null
8759 do
8760 # Write a limited-size here document to $tmp/undefs.sed.
8761 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8762 # Speed up: don't consider the non `#undef'
8763 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8764 # Work around the forget-to-reset-the-flag bug.
8765 echo 't clr' >>$CONFIG_STATUS
8766 echo ': clr' >>$CONFIG_STATUS
8767 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8768 echo 'CEOF
8769 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8770 rm -f $tmp/in
8771 mv $tmp/out $tmp/in
8772 ' >>$CONFIG_STATUS
8773 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8774 rm -f conftest.undefs
8775 mv conftest.tail conftest.undefs
8776 done
8777 rm -f conftest.undefs
8778
8779 cat >>$CONFIG_STATUS <<\_ACEOF
8780 # Let's still pretend it is `configure' which instantiates (i.e., don't
8781 # use $as_me), people would be surprised to read:
8782 # /* config.h. Generated by config.status. */
8783 if test x"$ac_file" = x-; then
8784 echo "/* Generated by configure. */" >$tmp/config.h
8785 else
8786 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8787 fi
8788 cat $tmp/in >>$tmp/config.h
8789 rm -f $tmp/in
8790 if test x"$ac_file" != x-; then
8791 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8792 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8793 echo "$as_me: $ac_file is unchanged" >&6;}
8794 else
8795 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8796 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8797 X"$ac_file" : 'X\(//\)[^/]' \| \
8798 X"$ac_file" : 'X\(//\)$' \| \
8799 X"$ac_file" : 'X\(/\)' \| \
8800 . : '\(.\)' 2>/dev/null ||
8801 echo X"$ac_file" |
8802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8803 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8804 /^X\(\/\/\)$/{ s//\1/; q; }
8805 /^X\(\/\).*/{ s//\1/; q; }
8806 s/.*/./; q'`
8807 { if $as_mkdir_p; then
8808 mkdir -p "$ac_dir"
8809 else
8810 as_dir="$ac_dir"
8811 as_dirs=
8812 while test ! -d "$as_dir"; do
8813 as_dirs="$as_dir $as_dirs"
8814 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8816 X"$as_dir" : 'X\(//\)[^/]' \| \
8817 X"$as_dir" : 'X\(//\)$' \| \
8818 X"$as_dir" : 'X\(/\)' \| \
8819 . : '\(.\)' 2>/dev/null ||
8820 echo X"$as_dir" |
8821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8823 /^X\(\/\/\)$/{ s//\1/; q; }
8824 /^X\(\/\).*/{ s//\1/; q; }
8825 s/.*/./; q'`
8826 done
8827 test ! -n "$as_dirs" || mkdir $as_dirs
8828 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8829 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8830 { (exit 1); exit 1; }; }; }
8831
8832 rm -f $ac_file
8833 mv $tmp/config.h $ac_file
8834 fi
8835 else
8836 cat $tmp/config.h
8837 rm -f $tmp/config.h
8838 fi
8839 done
8840 _ACEOF
8841 cat >>$CONFIG_STATUS <<\_ACEOF
8842
8843 #
8844 # CONFIG_COMMANDS section.
8845 #
8846 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8847 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8848 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8849 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8850 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8851 X"$ac_dest" : 'X\(//\)[^/]' \| \
8852 X"$ac_dest" : 'X\(//\)$' \| \
8853 X"$ac_dest" : 'X\(/\)' \| \
8854 . : '\(.\)' 2>/dev/null ||
8855 echo X"$ac_dest" |
8856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8858 /^X\(\/\/\)$/{ s//\1/; q; }
8859 /^X\(\/\).*/{ s//\1/; q; }
8860 s/.*/./; q'`
8861 { if $as_mkdir_p; then
8862 mkdir -p "$ac_dir"
8863 else
8864 as_dir="$ac_dir"
8865 as_dirs=
8866 while test ! -d "$as_dir"; do
8867 as_dirs="$as_dir $as_dirs"
8868 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8870 X"$as_dir" : 'X\(//\)[^/]' \| \
8871 X"$as_dir" : 'X\(//\)$' \| \
8872 X"$as_dir" : 'X\(/\)' \| \
8873 . : '\(.\)' 2>/dev/null ||
8874 echo X"$as_dir" |
8875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8877 /^X\(\/\/\)$/{ s//\1/; q; }
8878 /^X\(\/\).*/{ s//\1/; q; }
8879 s/.*/./; q'`
8880 done
8881 test ! -n "$as_dirs" || mkdir $as_dirs
8882 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8883 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8884 { (exit 1); exit 1; }; }; }
8885
8886 ac_builddir=.
8887
8888 if test "$ac_dir" != .; then
8889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8890 # A "../" for each directory in $ac_dir_suffix.
8891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8892 else
8893 ac_dir_suffix= ac_top_builddir=
8894 fi
8895
8896 case $srcdir in
8897 .) # No --srcdir option. We are building in place.
8898 ac_srcdir=.
8899 if test -z "$ac_top_builddir"; then
8900 ac_top_srcdir=.
8901 else
8902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8903 fi ;;
8904 [\\/]* | ?:[\\/]* ) # Absolute path.
8905 ac_srcdir=$srcdir$ac_dir_suffix;
8906 ac_top_srcdir=$srcdir ;;
8907 *) # Relative path.
8908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8910 esac
8911
8912 # Do not use `cd foo && pwd` to compute absolute paths, because
8913 # the directories may not exist.
8914 case `pwd` in
8915 .) ac_abs_builddir="$ac_dir";;
8916 *)
8917 case "$ac_dir" in
8918 .) ac_abs_builddir=`pwd`;;
8919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8920 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8921 esac;;
8922 esac
8923 case $ac_abs_builddir in
8924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8925 *)
8926 case ${ac_top_builddir}. in
8927 .) ac_abs_top_builddir=$ac_abs_builddir;;
8928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8930 esac;;
8931 esac
8932 case $ac_abs_builddir in
8933 .) ac_abs_srcdir=$ac_srcdir;;
8934 *)
8935 case $ac_srcdir in
8936 .) ac_abs_srcdir=$ac_abs_builddir;;
8937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8939 esac;;
8940 esac
8941 case $ac_abs_builddir in
8942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8943 *)
8944 case $ac_top_srcdir in
8945 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8948 esac;;
8949 esac
8950
8951
8952 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8953 echo "$as_me: executing $ac_dest commands" >&6;}
8954 case $ac_dest in
8955 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
8956 esac
8957 done
8958 _ACEOF
8959
8960 cat >>$CONFIG_STATUS <<\_ACEOF
8961
8962 { (exit 0); exit 0; }
8963 _ACEOF
8964 chmod +x $CONFIG_STATUS
8965 ac_clean_files=$ac_clean_files_save
8966
8967
8968 # configure is writing to config.log, and then calls config.status.
8969 # config.status does its own redirection, appending to config.log.
8970 # Unfortunately, on DOS this fails, as config.log is still kept open
8971 # by configure, so config.status won't be able to write to it; its
8972 # output is simply discarded. So we exec the FD to /dev/null,
8973 # effectively closing config.log, so it can be properly (re)opened and
8974 # appended to by config.status. When coming back to configure, we
8975 # need to make the FD available again.
8976 if test "$no_create" != yes; then
8977 ac_cs_success=:
8978 ac_config_status_args=
8979 test "$silent" = yes &&
8980 ac_config_status_args="$ac_config_status_args --quiet"
8981 exec 5>/dev/null
8982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8983 exec 5>>config.log
8984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8985 # would make configure fail if this is the last instruction.
8986 $ac_cs_success || { (exit 1); exit 1; }
8987 fi
8988