wmbiff: Use unsigned data type for port number.
[dockapps.git] / wmradio / configure
blobf09eb29724b6cce7a560a1b55a2b18ac41ce256c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="wmradio.c"
274 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TARGETS HAVE_XOSD LIBXOSD_CONFIG LIBXOSD_CFLAGS LIBXOSD_LIBS PKG_CONFIG PANEL_LIBS PANEL_CFLAGS LIBOBJS LTLIBOBJS'
275 ac_subst_files=''
277 # Initialize some variables set by options.
278 ac_init_help=
279 ac_init_version=false
280 # The variables have the same names as the options, with
281 # dashes changed to underlines.
282 cache_file=/dev/null
283 exec_prefix=NONE
284 no_create=
285 no_recursion=
286 prefix=NONE
287 program_prefix=NONE
288 program_suffix=NONE
289 program_transform_name=s,x,x,
290 silent=
291 site=
292 srcdir=
293 verbose=
294 x_includes=NONE
295 x_libraries=NONE
297 # Installation directory options.
298 # These are left unexpanded so users can "make install exec_prefix=/foo"
299 # and all the variables that are supposed to be based on exec_prefix
300 # by default will actually change.
301 # Use braces instead of parens because sh, perl, etc. also accept them.
302 bindir='${exec_prefix}/bin'
303 sbindir='${exec_prefix}/sbin'
304 libexecdir='${exec_prefix}/libexec'
305 datadir='${prefix}/share'
306 sysconfdir='${prefix}/etc'
307 sharedstatedir='${prefix}/com'
308 localstatedir='${prefix}/var'
309 libdir='${exec_prefix}/lib'
310 includedir='${prefix}/include'
311 oldincludedir='/usr/include'
312 infodir='${prefix}/info'
313 mandir='${prefix}/man'
315 ac_prev=
316 for ac_option
318 # If the previous option needs an argument, assign it.
319 if test -n "$ac_prev"; then
320 eval "$ac_prev=\$ac_option"
321 ac_prev=
322 continue
325 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327 # Accept the important Cygnus configure options, so we can diagnose typos.
329 case $ac_option in
331 -bindir | --bindir | --bindi | --bind | --bin | --bi)
332 ac_prev=bindir ;;
333 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
334 bindir=$ac_optarg ;;
336 -build | --build | --buil | --bui | --bu)
337 ac_prev=build_alias ;;
338 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339 build_alias=$ac_optarg ;;
341 -cache-file | --cache-file | --cache-fil | --cache-fi \
342 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
343 ac_prev=cache_file ;;
344 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
345 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
346 cache_file=$ac_optarg ;;
348 --config-cache | -C)
349 cache_file=config.cache ;;
351 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
352 ac_prev=datadir ;;
353 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354 | --da=*)
355 datadir=$ac_optarg ;;
357 -disable-* | --disable-*)
358 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
359 # Reject names that are not valid shell variable names.
360 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
361 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
362 { (exit 1); exit 1; }; }
363 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364 eval "enable_$ac_feature=no" ;;
366 -enable-* | --enable-*)
367 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
368 # Reject names that are not valid shell variable names.
369 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371 { (exit 1); exit 1; }; }
372 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373 case $ac_option in
374 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375 *) ac_optarg=yes ;;
376 esac
377 eval "enable_$ac_feature='$ac_optarg'" ;;
379 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
380 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
381 | --exec | --exe | --ex)
382 ac_prev=exec_prefix ;;
383 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
384 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
385 | --exec=* | --exe=* | --ex=*)
386 exec_prefix=$ac_optarg ;;
388 -gas | --gas | --ga | --g)
389 # Obsolete; use --with-gas.
390 with_gas=yes ;;
392 -help | --help | --hel | --he | -h)
393 ac_init_help=long ;;
394 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
395 ac_init_help=recursive ;;
396 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
397 ac_init_help=short ;;
399 -host | --host | --hos | --ho)
400 ac_prev=host_alias ;;
401 -host=* | --host=* | --hos=* | --ho=*)
402 host_alias=$ac_optarg ;;
404 -includedir | --includedir | --includedi | --included | --include \
405 | --includ | --inclu | --incl | --inc)
406 ac_prev=includedir ;;
407 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
408 | --includ=* | --inclu=* | --incl=* | --inc=*)
409 includedir=$ac_optarg ;;
411 -infodir | --infodir | --infodi | --infod | --info | --inf)
412 ac_prev=infodir ;;
413 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414 infodir=$ac_optarg ;;
416 -libdir | --libdir | --libdi | --libd)
417 ac_prev=libdir ;;
418 -libdir=* | --libdir=* | --libdi=* | --libd=*)
419 libdir=$ac_optarg ;;
421 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
422 | --libexe | --libex | --libe)
423 ac_prev=libexecdir ;;
424 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
425 | --libexe=* | --libex=* | --libe=*)
426 libexecdir=$ac_optarg ;;
428 -localstatedir | --localstatedir | --localstatedi | --localstated \
429 | --localstate | --localstat | --localsta | --localst \
430 | --locals | --local | --loca | --loc | --lo)
431 ac_prev=localstatedir ;;
432 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
435 localstatedir=$ac_optarg ;;
437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
438 ac_prev=mandir ;;
439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
440 mandir=$ac_optarg ;;
442 -nfp | --nfp | --nf)
443 # Obsolete; use --without-fp.
444 with_fp=no ;;
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c | -n)
448 no_create=yes ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
452 no_recursion=yes ;;
454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
456 | --oldin | --oldi | --old | --ol | --o)
457 ac_prev=oldincludedir ;;
458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
461 oldincludedir=$ac_optarg ;;
463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
464 ac_prev=prefix ;;
465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
466 prefix=$ac_optarg ;;
468 -program-prefix | --program-prefix | --program-prefi | --program-pref \
469 | --program-pre | --program-pr | --program-p)
470 ac_prev=program_prefix ;;
471 -program-prefix=* | --program-prefix=* | --program-prefi=* \
472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
473 program_prefix=$ac_optarg ;;
475 -program-suffix | --program-suffix | --program-suffi | --program-suff \
476 | --program-suf | --program-su | --program-s)
477 ac_prev=program_suffix ;;
478 -program-suffix=* | --program-suffix=* | --program-suffi=* \
479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
480 program_suffix=$ac_optarg ;;
482 -program-transform-name | --program-transform-name \
483 | --program-transform-nam | --program-transform-na \
484 | --program-transform-n | --program-transform- \
485 | --program-transform | --program-transfor \
486 | --program-transfo | --program-transf \
487 | --program-trans | --program-tran \
488 | --progr-tra | --program-tr | --program-t)
489 ac_prev=program_transform_name ;;
490 -program-transform-name=* | --program-transform-name=* \
491 | --program-transform-nam=* | --program-transform-na=* \
492 | --program-transform-n=* | --program-transform-=* \
493 | --program-transform=* | --program-transfor=* \
494 | --program-transfo=* | --program-transf=* \
495 | --program-trans=* | --program-tran=* \
496 | --progr-tra=* | --program-tr=* | --program-t=*)
497 program_transform_name=$ac_optarg ;;
499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500 | -silent | --silent | --silen | --sile | --sil)
501 silent=yes ;;
503 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
504 ac_prev=sbindir ;;
505 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
506 | --sbi=* | --sb=*)
507 sbindir=$ac_optarg ;;
509 -sharedstatedir | --sharedstatedir | --sharedstatedi \
510 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511 | --sharedst | --shareds | --shared | --share | --shar \
512 | --sha | --sh)
513 ac_prev=sharedstatedir ;;
514 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
517 | --sha=* | --sh=*)
518 sharedstatedir=$ac_optarg ;;
520 -site | --site | --sit)
521 ac_prev=site ;;
522 -site=* | --site=* | --sit=*)
523 site=$ac_optarg ;;
525 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
526 ac_prev=srcdir ;;
527 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
528 srcdir=$ac_optarg ;;
530 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
531 | --syscon | --sysco | --sysc | --sys | --sy)
532 ac_prev=sysconfdir ;;
533 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
534 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
535 sysconfdir=$ac_optarg ;;
537 -target | --target | --targe | --targ | --tar | --ta | --t)
538 ac_prev=target_alias ;;
539 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
540 target_alias=$ac_optarg ;;
542 -v | -verbose | --verbose | --verbos | --verbo | --verb)
543 verbose=yes ;;
545 -version | --version | --versio | --versi | --vers | -V)
546 ac_init_version=: ;;
548 -with-* | --with-*)
549 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid package name: $ac_package" >&2
553 { (exit 1); exit 1; }; }
554 ac_package=`echo $ac_package| sed 's/-/_/g'`
555 case $ac_option in
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557 *) ac_optarg=yes ;;
558 esac
559 eval "with_$ac_package='$ac_optarg'" ;;
561 -without-* | --without-*)
562 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid package name: $ac_package" >&2
566 { (exit 1); exit 1; }; }
567 ac_package=`echo $ac_package | sed 's/-/_/g'`
568 eval "with_$ac_package=no" ;;
570 --x)
571 # Obsolete; use --with-x.
572 with_x=yes ;;
574 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
575 | --x-incl | --x-inc | --x-in | --x-i)
576 ac_prev=x_includes ;;
577 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
578 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
579 x_includes=$ac_optarg ;;
581 -x-libraries | --x-libraries | --x-librarie | --x-librari \
582 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
583 ac_prev=x_libraries ;;
584 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
585 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
586 x_libraries=$ac_optarg ;;
588 -*) { echo "$as_me: error: unrecognized option: $ac_option
589 Try \`$0 --help' for more information." >&2
590 { (exit 1); exit 1; }; }
593 *=*)
594 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
595 # Reject names that are not valid shell variable names.
596 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
597 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
598 { (exit 1); exit 1; }; }
599 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600 eval "$ac_envvar='$ac_optarg'"
601 export $ac_envvar ;;
604 # FIXME: should be removed in autoconf 3.0.
605 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
606 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
607 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
608 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 esac
612 done
614 if test -n "$ac_prev"; then
615 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
616 { echo "$as_me: error: missing argument to $ac_option" >&2
617 { (exit 1); exit 1; }; }
620 # Be sure to have absolute paths.
621 for ac_var in exec_prefix prefix
623 eval ac_val=$`echo $ac_var`
624 case $ac_val in
625 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627 { (exit 1); exit 1; }; };;
628 esac
629 done
631 # Be sure to have absolute paths.
632 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633 localstatedir libdir includedir oldincludedir infodir mandir
635 eval ac_val=$`echo $ac_var`
636 case $ac_val in
637 [\\/$]* | ?:[\\/]* ) ;;
638 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639 { (exit 1); exit 1; }; };;
640 esac
641 done
643 # There might be people who depend on the old broken behavior: `$host'
644 # used to hold the argument of --host etc.
645 # FIXME: To remove some day.
646 build=$build_alias
647 host=$host_alias
648 target=$target_alias
650 # FIXME: To remove some day.
651 if test "x$host_alias" != x; then
652 if test "x$build_alias" = x; then
653 cross_compiling=maybe
654 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
655 If a cross compiler is detected then cross compile mode will be used." >&2
656 elif test "x$build_alias" != "x$host_alias"; then
657 cross_compiling=yes
661 ac_tool_prefix=
662 test -n "$host_alias" && ac_tool_prefix=$host_alias-
664 test "$silent" = yes && exec 6>/dev/null
667 # Find the source files, if location was not specified.
668 if test -z "$srcdir"; then
669 ac_srcdir_defaulted=yes
670 # Try the directory containing this script, then its parent.
671 ac_confdir=`(dirname "$0") 2>/dev/null ||
672 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673 X"$0" : 'X\(//\)[^/]' \| \
674 X"$0" : 'X\(//\)$' \| \
675 X"$0" : 'X\(/\)' \| \
676 . : '\(.\)' 2>/dev/null ||
677 echo X"$0" |
678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680 /^X\(\/\/\)$/{ s//\1/; q; }
681 /^X\(\/\).*/{ s//\1/; q; }
682 s/.*/./; q'`
683 srcdir=$ac_confdir
684 if test ! -r $srcdir/$ac_unique_file; then
685 srcdir=..
687 else
688 ac_srcdir_defaulted=no
690 if test ! -r $srcdir/$ac_unique_file; then
691 if test "$ac_srcdir_defaulted" = yes; then
692 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
693 { (exit 1); exit 1; }; }
694 else
695 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
696 { (exit 1); exit 1; }; }
699 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701 { (exit 1); exit 1; }; }
702 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703 ac_env_build_alias_set=${build_alias+set}
704 ac_env_build_alias_value=$build_alias
705 ac_cv_env_build_alias_set=${build_alias+set}
706 ac_cv_env_build_alias_value=$build_alias
707 ac_env_host_alias_set=${host_alias+set}
708 ac_env_host_alias_value=$host_alias
709 ac_cv_env_host_alias_set=${host_alias+set}
710 ac_cv_env_host_alias_value=$host_alias
711 ac_env_target_alias_set=${target_alias+set}
712 ac_env_target_alias_value=$target_alias
713 ac_cv_env_target_alias_set=${target_alias+set}
714 ac_cv_env_target_alias_value=$target_alias
715 ac_env_CC_set=${CC+set}
716 ac_env_CC_value=$CC
717 ac_cv_env_CC_set=${CC+set}
718 ac_cv_env_CC_value=$CC
719 ac_env_CFLAGS_set=${CFLAGS+set}
720 ac_env_CFLAGS_value=$CFLAGS
721 ac_cv_env_CFLAGS_set=${CFLAGS+set}
722 ac_cv_env_CFLAGS_value=$CFLAGS
723 ac_env_LDFLAGS_set=${LDFLAGS+set}
724 ac_env_LDFLAGS_value=$LDFLAGS
725 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_cv_env_LDFLAGS_value=$LDFLAGS
727 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
728 ac_env_CPPFLAGS_value=$CPPFLAGS
729 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
731 ac_env_CPP_set=${CPP+set}
732 ac_env_CPP_value=$CPP
733 ac_cv_env_CPP_set=${CPP+set}
734 ac_cv_env_CPP_value=$CPP
737 # Report the --help message.
739 if test "$ac_init_help" = "long"; then
740 # Omit some internal or obsolete options to make the list less imposing.
741 # This message is too long to be a string in the A/UX 3.1 sh.
742 cat <<_ACEOF
743 \`configure' configures this package to adapt to many kinds of systems.
745 Usage: $0 [OPTION]... [VAR=VALUE]...
747 To assign environment variables (e.g., CC, CFLAGS...), specify them as
748 VAR=VALUE. See below for descriptions of some of the useful variables.
750 Defaults for the options are specified in brackets.
752 Configuration:
753 -h, --help display this help and exit
754 --help=short display options specific to this package
755 --help=recursive display the short help of all the included packages
756 -V, --version display version information and exit
757 -q, --quiet, --silent do not print \`checking...' messages
758 --cache-file=FILE cache test results in FILE [disabled]
759 -C, --config-cache alias for \`--cache-file=config.cache'
760 -n, --no-create do not create output files
761 --srcdir=DIR find the sources in DIR [configure dir or \`..']
763 _ACEOF
765 cat <<_ACEOF
766 Installation directories:
767 --prefix=PREFIX install architecture-independent files in PREFIX
768 [$ac_default_prefix]
769 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
770 [PREFIX]
772 By default, \`make install' will install all the files in
773 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
774 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
775 for instance \`--prefix=\$HOME'.
777 For better control, use the options below.
779 Fine tuning of the installation directories:
780 --bindir=DIR user executables [EPREFIX/bin]
781 --sbindir=DIR system admin executables [EPREFIX/sbin]
782 --libexecdir=DIR program executables [EPREFIX/libexec]
783 --datadir=DIR read-only architecture-independent data [PREFIX/share]
784 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
785 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
786 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
787 --libdir=DIR object code libraries [EPREFIX/lib]
788 --includedir=DIR C header files [PREFIX/include]
789 --oldincludedir=DIR C header files for non-gcc [/usr/include]
790 --infodir=DIR info documentation [PREFIX/info]
791 --mandir=DIR man documentation [PREFIX/man]
792 _ACEOF
794 cat <<\_ACEOF
796 X features:
797 --x-includes=DIR X include files are in DIR
798 --x-libraries=DIR X library files are in DIR
799 _ACEOF
802 if test -n "$ac_init_help"; then
804 cat <<\_ACEOF
806 Optional Features:
807 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
808 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
809 --enable-libxosd use libxosd library (default yes)
810 --enable-gnome create gnome applet too (default yes)
812 Optional Packages:
813 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
814 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
815 --with-x use the X Window System
816 --with-xosd-config=LIBXOSD_CONFIG
817 Location of xosd-config
819 Some influential environment variables:
820 CC C compiler command
821 CFLAGS C compiler flags
822 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
823 nonstandard directory <lib dir>
824 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
825 headers in a nonstandard directory <include dir>
826 CPP C preprocessor
828 Use these variables to override the choices made by `configure' or to help
829 it to find libraries and programs with nonstandard names/locations.
831 _ACEOF
834 if test "$ac_init_help" = "recursive"; then
835 # If there are subdirs, report their specific --help.
836 ac_popdir=`pwd`
837 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
838 test -d $ac_dir || continue
839 ac_builddir=.
841 if test "$ac_dir" != .; then
842 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
843 # A "../" for each directory in $ac_dir_suffix.
844 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
845 else
846 ac_dir_suffix= ac_top_builddir=
849 case $srcdir in
850 .) # No --srcdir option. We are building in place.
851 ac_srcdir=.
852 if test -z "$ac_top_builddir"; then
853 ac_top_srcdir=.
854 else
855 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
856 fi ;;
857 [\\/]* | ?:[\\/]* ) # Absolute path.
858 ac_srcdir=$srcdir$ac_dir_suffix;
859 ac_top_srcdir=$srcdir ;;
860 *) # Relative path.
861 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
862 ac_top_srcdir=$ac_top_builddir$srcdir ;;
863 esac
864 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
865 # absolute.
866 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
867 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
868 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
869 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
871 cd $ac_dir
872 # Check for guested configure; otherwise get Cygnus style configure.
873 if test -f $ac_srcdir/configure.gnu; then
874 echo
875 $SHELL $ac_srcdir/configure.gnu --help=recursive
876 elif test -f $ac_srcdir/configure; then
877 echo
878 $SHELL $ac_srcdir/configure --help=recursive
879 elif test -f $ac_srcdir/configure.ac ||
880 test -f $ac_srcdir/configure.in; then
881 echo
882 $ac_configure --help
883 else
884 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
886 cd $ac_popdir
887 done
890 test -n "$ac_init_help" && exit 0
891 if $ac_init_version; then
892 cat <<\_ACEOF
894 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
895 Free Software Foundation, Inc.
896 This configure script is free software; the Free Software Foundation
897 gives unlimited permission to copy, distribute and modify it.
898 _ACEOF
899 exit 0
901 exec 5>config.log
902 cat >&5 <<_ACEOF
903 This file contains any messages produced by compilers while
904 running configure, to aid debugging if configure makes a mistake.
906 It was created by $as_me, which was
907 generated by GNU Autoconf 2.57. Invocation command line was
909 $ $0 $@
911 _ACEOF
913 cat <<_ASUNAME
914 ## --------- ##
915 ## Platform. ##
916 ## --------- ##
918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
925 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
927 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
928 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
930 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
931 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
932 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
933 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
935 _ASUNAME
937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
938 for as_dir in $PATH
940 IFS=$as_save_IFS
941 test -z "$as_dir" && as_dir=.
942 echo "PATH: $as_dir"
943 done
945 } >&5
947 cat >&5 <<_ACEOF
950 ## ----------- ##
951 ## Core tests. ##
952 ## ----------- ##
954 _ACEOF
957 # Keep a trace of the command line.
958 # Strip out --no-create and --no-recursion so they do not pile up.
959 # Strip out --silent because we don't want to record it for future runs.
960 # Also quote any args containing shell meta-characters.
961 # Make two passes to allow for proper duplicate-argument suppression.
962 ac_configure_args=
963 ac_configure_args0=
964 ac_configure_args1=
965 ac_sep=
966 ac_must_keep_next=false
967 for ac_pass in 1 2
969 for ac_arg
971 case $ac_arg in
972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
974 | -silent | --silent | --silen | --sile | --sil)
975 continue ;;
976 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
977 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
978 esac
979 case $ac_pass in
980 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
982 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
983 if test $ac_must_keep_next = true; then
984 ac_must_keep_next=false # Got value, back to normal.
985 else
986 case $ac_arg in
987 *=* | --config-cache | -C | -disable-* | --disable-* \
988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
990 | -with-* | --with-* | -without-* | --without-* | --x)
991 case "$ac_configure_args0 " in
992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
993 esac
995 -* ) ac_must_keep_next=true ;;
996 esac
998 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
999 # Get rid of the leading space.
1000 ac_sep=" "
1002 esac
1003 done
1004 done
1005 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1006 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1008 # When interrupted or exit'd, cleanup temporary files, and complete
1009 # config.log. We remove comments because anyway the quotes in there
1010 # would cause problems or look ugly.
1011 # WARNING: Be sure not to use single quotes in there, as some shells,
1012 # such as our DU 5.0 friend, will then `close' the trap.
1013 trap 'exit_status=$?
1014 # Save into config.log some information that might help in debugging.
1016 echo
1018 cat <<\_ASBOX
1019 ## ---------------- ##
1020 ## Cache variables. ##
1021 ## ---------------- ##
1022 _ASBOX
1023 echo
1024 # The following way of writing the cache mishandles newlines in values,
1026 (set) 2>&1 |
1027 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1028 *ac_space=\ *)
1029 sed -n \
1030 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1034 sed -n \
1035 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1037 esac;
1039 echo
1041 cat <<\_ASBOX
1042 ## ----------------- ##
1043 ## Output variables. ##
1044 ## ----------------- ##
1045 _ASBOX
1046 echo
1047 for ac_var in $ac_subst_vars
1049 eval ac_val=$`echo $ac_var`
1050 echo "$ac_var='"'"'$ac_val'"'"'"
1051 done | sort
1052 echo
1054 if test -n "$ac_subst_files"; then
1055 cat <<\_ASBOX
1056 ## ------------- ##
1057 ## Output files. ##
1058 ## ------------- ##
1059 _ASBOX
1060 echo
1061 for ac_var in $ac_subst_files
1063 eval ac_val=$`echo $ac_var`
1064 echo "$ac_var='"'"'$ac_val'"'"'"
1065 done | sort
1066 echo
1069 if test -s confdefs.h; then
1070 cat <<\_ASBOX
1071 ## ----------- ##
1072 ## confdefs.h. ##
1073 ## ----------- ##
1074 _ASBOX
1075 echo
1076 sed "/^$/d" confdefs.h | sort
1077 echo
1079 test "$ac_signal" != 0 &&
1080 echo "$as_me: caught signal $ac_signal"
1081 echo "$as_me: exit $exit_status"
1082 } >&5
1083 rm -f core core.* *.core &&
1084 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1085 exit $exit_status
1087 for ac_signal in 1 2 13 15; do
1088 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1089 done
1090 ac_signal=0
1092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1093 rm -rf conftest* confdefs.h
1094 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1095 echo >confdefs.h
1097 # Predefined preprocessor variables.
1099 cat >>confdefs.h <<_ACEOF
1100 #define PACKAGE_NAME "$PACKAGE_NAME"
1101 _ACEOF
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1106 _ACEOF
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1111 _ACEOF
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_STRING "$PACKAGE_STRING"
1116 _ACEOF
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1121 _ACEOF
1124 # Let the site file select an alternate cache file if it wants to.
1125 # Prefer explicitly selected file to automatically selected ones.
1126 if test -z "$CONFIG_SITE"; then
1127 if test "x$prefix" != xNONE; then
1128 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1129 else
1130 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1133 for ac_site_file in $CONFIG_SITE; do
1134 if test -r "$ac_site_file"; then
1135 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1136 echo "$as_me: loading site script $ac_site_file" >&6;}
1137 sed 's/^/| /' "$ac_site_file" >&5
1138 . "$ac_site_file"
1140 done
1142 if test -r "$cache_file"; then
1143 # Some versions of bash will fail to source /dev/null (special
1144 # files actually), so we avoid doing that.
1145 if test -f "$cache_file"; then
1146 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1147 echo "$as_me: loading cache $cache_file" >&6;}
1148 case $cache_file in
1149 [\\/]* | ?:[\\/]* ) . $cache_file;;
1150 *) . ./$cache_file;;
1151 esac
1153 else
1154 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1155 echo "$as_me: creating cache $cache_file" >&6;}
1156 >$cache_file
1159 # Check that the precious variables saved in the cache have kept the same
1160 # value.
1161 ac_cache_corrupted=false
1162 for ac_var in `(set) 2>&1 |
1163 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1165 eval ac_new_set=\$ac_env_${ac_var}_set
1166 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1167 eval ac_new_val="\$ac_env_${ac_var}_value"
1168 case $ac_old_set,$ac_new_set in
1169 set,)
1170 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1171 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1172 ac_cache_corrupted=: ;;
1173 ,set)
1174 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1175 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1176 ac_cache_corrupted=: ;;
1177 ,);;
1179 if test "x$ac_old_val" != "x$ac_new_val"; then
1180 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1181 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1182 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1183 echo "$as_me: former value: $ac_old_val" >&2;}
1184 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1185 echo "$as_me: current value: $ac_new_val" >&2;}
1186 ac_cache_corrupted=:
1187 fi;;
1188 esac
1189 # Pass precious variables to config.status.
1190 if test "$ac_new_set" = set; then
1191 case $ac_new_val in
1192 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1193 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1194 *) ac_arg=$ac_var=$ac_new_val ;;
1195 esac
1196 case " $ac_configure_args " in
1197 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1198 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1199 esac
1201 done
1202 if $ac_cache_corrupted; then
1203 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1204 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1205 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1206 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1207 { (exit 1); exit 1; }; }
1210 ac_ext=c
1211 ac_cpp='$CPP $CPPFLAGS'
1212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1235 # Check whether --enable-libxosd or --disable-libxosd was given.
1236 if test "${enable_libxosd+set}" = set; then
1237 enableval="$enable_libxosd"
1239 else
1240 enable_libxosd="yes"
1243 # Check whether --enable-gnome or --disable-gnome was given.
1244 if test "${enable_gnome+set}" = set; then
1245 enableval="$enable_gnome"
1247 else
1248 enable_gnome="yes"
1251 ac_ext=c
1252 ac_cpp='$CPP $CPPFLAGS'
1253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256 if test -n "$ac_tool_prefix"; then
1257 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1258 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1259 echo "$as_me:$LINENO: checking for $ac_word" >&5
1260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1261 if test "${ac_cv_prog_CC+set}" = set; then
1262 echo $ECHO_N "(cached) $ECHO_C" >&6
1263 else
1264 if test -n "$CC"; then
1265 ac_cv_prog_CC="$CC" # Let the user override the test.
1266 else
1267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1268 for as_dir in $PATH
1270 IFS=$as_save_IFS
1271 test -z "$as_dir" && as_dir=.
1272 for ac_exec_ext in '' $ac_executable_extensions; do
1273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1274 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1276 break 2
1278 done
1279 done
1283 CC=$ac_cv_prog_CC
1284 if test -n "$CC"; then
1285 echo "$as_me:$LINENO: result: $CC" >&5
1286 echo "${ECHO_T}$CC" >&6
1287 else
1288 echo "$as_me:$LINENO: result: no" >&5
1289 echo "${ECHO_T}no" >&6
1293 if test -z "$ac_cv_prog_CC"; then
1294 ac_ct_CC=$CC
1295 # Extract the first word of "gcc", so it can be a program name with args.
1296 set dummy gcc; ac_word=$2
1297 echo "$as_me:$LINENO: checking for $ac_word" >&5
1298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1299 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1300 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 else
1302 if test -n "$ac_ct_CC"; then
1303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1304 else
1305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1306 for as_dir in $PATH
1308 IFS=$as_save_IFS
1309 test -z "$as_dir" && as_dir=.
1310 for ac_exec_ext in '' $ac_executable_extensions; do
1311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1312 ac_cv_prog_ac_ct_CC="gcc"
1313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1314 break 2
1316 done
1317 done
1321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1322 if test -n "$ac_ct_CC"; then
1323 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1324 echo "${ECHO_T}$ac_ct_CC" >&6
1325 else
1326 echo "$as_me:$LINENO: result: no" >&5
1327 echo "${ECHO_T}no" >&6
1330 CC=$ac_ct_CC
1331 else
1332 CC="$ac_cv_prog_CC"
1335 if test -z "$CC"; then
1336 if test -n "$ac_tool_prefix"; then
1337 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1338 set dummy ${ac_tool_prefix}cc; ac_word=$2
1339 echo "$as_me:$LINENO: checking for $ac_word" >&5
1340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1341 if test "${ac_cv_prog_CC+set}" = set; then
1342 echo $ECHO_N "(cached) $ECHO_C" >&6
1343 else
1344 if test -n "$CC"; then
1345 ac_cv_prog_CC="$CC" # Let the user override the test.
1346 else
1347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1348 for as_dir in $PATH
1350 IFS=$as_save_IFS
1351 test -z "$as_dir" && as_dir=.
1352 for ac_exec_ext in '' $ac_executable_extensions; do
1353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1354 ac_cv_prog_CC="${ac_tool_prefix}cc"
1355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1356 break 2
1358 done
1359 done
1363 CC=$ac_cv_prog_CC
1364 if test -n "$CC"; then
1365 echo "$as_me:$LINENO: result: $CC" >&5
1366 echo "${ECHO_T}$CC" >&6
1367 else
1368 echo "$as_me:$LINENO: result: no" >&5
1369 echo "${ECHO_T}no" >&6
1373 if test -z "$ac_cv_prog_CC"; then
1374 ac_ct_CC=$CC
1375 # Extract the first word of "cc", so it can be a program name with args.
1376 set dummy cc; ac_word=$2
1377 echo "$as_me:$LINENO: checking for $ac_word" >&5
1378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1379 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382 if test -n "$ac_ct_CC"; then
1383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1384 else
1385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 for as_dir in $PATH
1388 IFS=$as_save_IFS
1389 test -z "$as_dir" && as_dir=.
1390 for ac_exec_ext in '' $ac_executable_extensions; do
1391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1392 ac_cv_prog_ac_ct_CC="cc"
1393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1394 break 2
1396 done
1397 done
1401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1402 if test -n "$ac_ct_CC"; then
1403 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1404 echo "${ECHO_T}$ac_ct_CC" >&6
1405 else
1406 echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1410 CC=$ac_ct_CC
1411 else
1412 CC="$ac_cv_prog_CC"
1416 if test -z "$CC"; then
1417 # Extract the first word of "cc", so it can be a program name with args.
1418 set dummy cc; ac_word=$2
1419 echo "$as_me:$LINENO: checking for $ac_word" >&5
1420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421 if test "${ac_cv_prog_CC+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424 if test -n "$CC"; then
1425 ac_cv_prog_CC="$CC" # Let the user override the test.
1426 else
1427 ac_prog_rejected=no
1428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 for as_dir in $PATH
1431 IFS=$as_save_IFS
1432 test -z "$as_dir" && as_dir=.
1433 for ac_exec_ext in '' $ac_executable_extensions; do
1434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1436 ac_prog_rejected=yes
1437 continue
1439 ac_cv_prog_CC="cc"
1440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1441 break 2
1443 done
1444 done
1446 if test $ac_prog_rejected = yes; then
1447 # We found a bogon in the path, so make sure we never use it.
1448 set dummy $ac_cv_prog_CC
1449 shift
1450 if test $# != 0; then
1451 # We chose a different compiler from the bogus one.
1452 # However, it has the same basename, so the bogon will be chosen
1453 # first if we set CC to just the basename; use the full file name.
1454 shift
1455 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1460 CC=$ac_cv_prog_CC
1461 if test -n "$CC"; then
1462 echo "$as_me:$LINENO: result: $CC" >&5
1463 echo "${ECHO_T}$CC" >&6
1464 else
1465 echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1470 if test -z "$CC"; then
1471 if test -n "$ac_tool_prefix"; then
1472 for ac_prog in cl
1474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481 if test -n "$CC"; then
1482 ac_cv_prog_CC="$CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1495 done
1496 done
1500 CC=$ac_cv_prog_CC
1501 if test -n "$CC"; then
1502 echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1509 test -n "$CC" && break
1510 done
1512 if test -z "$CC"; then
1513 ac_ct_CC=$CC
1514 for ac_prog in cl
1516 # Extract the first word of "$ac_prog", so it can be a program name with args.
1517 set dummy $ac_prog; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$ac_ct_CC"; then
1524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_ac_ct_CC="$ac_prog"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1537 done
1538 done
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1551 test -n "$ac_ct_CC" && break
1552 done
1554 CC=$ac_ct_CC
1560 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1561 See \`config.log' for more details." >&5
1562 echo "$as_me: error: no acceptable C compiler found in \$PATH
1563 See \`config.log' for more details." >&2;}
1564 { (exit 1); exit 1; }; }
1566 # Provide some information about the compiler.
1567 echo "$as_me:$LINENO:" \
1568 "checking for C compiler version" >&5
1569 ac_compiler=`set X $ac_compile; echo $2`
1570 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1571 (eval $ac_compiler --version </dev/null >&5) 2>&5
1572 ac_status=$?
1573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1574 (exit $ac_status); }
1575 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1576 (eval $ac_compiler -v </dev/null >&5) 2>&5
1577 ac_status=$?
1578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1579 (exit $ac_status); }
1580 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1581 (eval $ac_compiler -V </dev/null >&5) 2>&5
1582 ac_status=$?
1583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1584 (exit $ac_status); }
1586 cat >conftest.$ac_ext <<_ACEOF
1587 #line $LINENO "configure"
1588 /* confdefs.h. */
1589 _ACEOF
1590 cat confdefs.h >>conftest.$ac_ext
1591 cat >>conftest.$ac_ext <<_ACEOF
1592 /* end confdefs.h. */
1595 main ()
1599 return 0;
1601 _ACEOF
1602 ac_clean_files_save=$ac_clean_files
1603 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1604 # Try to create an executable without -o first, disregard a.out.
1605 # It will help us diagnose broken compilers, and finding out an intuition
1606 # of exeext.
1607 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1608 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1609 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1610 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1611 (eval $ac_link_default) 2>&5
1612 ac_status=$?
1613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1614 (exit $ac_status); }; then
1615 # Find the output, starting from the most likely. This scheme is
1616 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1617 # resort.
1619 # Be careful to initialize this variable, since it used to be cached.
1620 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1621 ac_cv_exeext=
1622 # b.out is created by i960 compilers.
1623 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1625 test -f "$ac_file" || continue
1626 case $ac_file in
1627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1629 conftest.$ac_ext )
1630 # This is the source file.
1632 [ab].out )
1633 # We found the default executable, but exeext='' is most
1634 # certainly right.
1635 break;;
1636 *.* )
1637 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1638 # FIXME: I believe we export ac_cv_exeext for Libtool,
1639 # but it would be cool to find out if it's true. Does anybody
1640 # maintain Libtool? --akim.
1641 export ac_cv_exeext
1642 break;;
1644 break;;
1645 esac
1646 done
1647 else
1648 echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1651 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1652 See \`config.log' for more details." >&5
1653 echo "$as_me: error: C compiler cannot create executables
1654 See \`config.log' for more details." >&2;}
1655 { (exit 77); exit 77; }; }
1658 ac_exeext=$ac_cv_exeext
1659 echo "$as_me:$LINENO: result: $ac_file" >&5
1660 echo "${ECHO_T}$ac_file" >&6
1662 # Check the compiler produces executables we can run. If not, either
1663 # the compiler is broken, or we cross compile.
1664 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1665 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1666 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1667 # If not cross compiling, check that we can run a simple program.
1668 if test "$cross_compiling" != yes; then
1669 if { ac_try='./$ac_file'
1670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1671 (eval $ac_try) 2>&5
1672 ac_status=$?
1673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1674 (exit $ac_status); }; }; then
1675 cross_compiling=no
1676 else
1677 if test "$cross_compiling" = maybe; then
1678 cross_compiling=yes
1679 else
1680 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1681 If you meant to cross compile, use \`--host'.
1682 See \`config.log' for more details." >&5
1683 echo "$as_me: error: cannot run C compiled programs.
1684 If you meant to cross compile, use \`--host'.
1685 See \`config.log' for more details." >&2;}
1686 { (exit 1); exit 1; }; }
1690 echo "$as_me:$LINENO: result: yes" >&5
1691 echo "${ECHO_T}yes" >&6
1693 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1694 ac_clean_files=$ac_clean_files_save
1695 # Check the compiler produces executables we can run. If not, either
1696 # the compiler is broken, or we cross compile.
1697 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1698 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1699 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1700 echo "${ECHO_T}$cross_compiling" >&6
1702 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1703 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1705 (eval $ac_link) 2>&5
1706 ac_status=$?
1707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708 (exit $ac_status); }; then
1709 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1710 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1711 # work properly (i.e., refer to `conftest.exe'), while it won't with
1712 # `rm'.
1713 for ac_file in conftest.exe conftest conftest.*; do
1714 test -f "$ac_file" || continue
1715 case $ac_file in
1716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1717 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1718 export ac_cv_exeext
1719 break;;
1720 * ) break;;
1721 esac
1722 done
1723 else
1724 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1725 See \`config.log' for more details." >&5
1726 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1727 See \`config.log' for more details." >&2;}
1728 { (exit 1); exit 1; }; }
1731 rm -f conftest$ac_cv_exeext
1732 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1733 echo "${ECHO_T}$ac_cv_exeext" >&6
1735 rm -f conftest.$ac_ext
1736 EXEEXT=$ac_cv_exeext
1737 ac_exeext=$EXEEXT
1738 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1739 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1740 if test "${ac_cv_objext+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 else
1743 cat >conftest.$ac_ext <<_ACEOF
1744 #line $LINENO "configure"
1745 /* confdefs.h. */
1746 _ACEOF
1747 cat confdefs.h >>conftest.$ac_ext
1748 cat >>conftest.$ac_ext <<_ACEOF
1749 /* end confdefs.h. */
1752 main ()
1756 return 0;
1758 _ACEOF
1759 rm -f conftest.o conftest.obj
1760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1761 (eval $ac_compile) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }; then
1765 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1766 case $ac_file in
1767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1768 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1769 break;;
1770 esac
1771 done
1772 else
1773 echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1777 See \`config.log' for more details." >&5
1778 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1779 See \`config.log' for more details." >&2;}
1780 { (exit 1); exit 1; }; }
1783 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1785 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1786 echo "${ECHO_T}$ac_cv_objext" >&6
1787 OBJEXT=$ac_cv_objext
1788 ac_objext=$OBJEXT
1789 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1790 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1791 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794 cat >conftest.$ac_ext <<_ACEOF
1795 #line $LINENO "configure"
1796 /* confdefs.h. */
1797 _ACEOF
1798 cat confdefs.h >>conftest.$ac_ext
1799 cat >>conftest.$ac_ext <<_ACEOF
1800 /* end confdefs.h. */
1803 main ()
1805 #ifndef __GNUC__
1806 choke me
1807 #endif
1810 return 0;
1812 _ACEOF
1813 rm -f conftest.$ac_objext
1814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1815 (eval $ac_compile) 2>&5
1816 ac_status=$?
1817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818 (exit $ac_status); } &&
1819 { ac_try='test -s conftest.$ac_objext'
1820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1821 (eval $ac_try) 2>&5
1822 ac_status=$?
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }; }; then
1825 ac_compiler_gnu=yes
1826 else
1827 echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 ac_compiler_gnu=no
1832 rm -f conftest.$ac_objext conftest.$ac_ext
1833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1836 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1837 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1838 GCC=`test $ac_compiler_gnu = yes && echo yes`
1839 ac_test_CFLAGS=${CFLAGS+set}
1840 ac_save_CFLAGS=$CFLAGS
1841 CFLAGS="-g"
1842 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1843 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1844 if test "${ac_cv_prog_cc_g+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line $LINENO "configure"
1849 /* confdefs.h. */
1850 _ACEOF
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h. */
1856 main ()
1860 return 0;
1862 _ACEOF
1863 rm -f conftest.$ac_objext
1864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1865 (eval $ac_compile) 2>&5
1866 ac_status=$?
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); } &&
1869 { ac_try='test -s conftest.$ac_objext'
1870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1871 (eval $ac_try) 2>&5
1872 ac_status=$?
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }; }; then
1875 ac_cv_prog_cc_g=yes
1876 else
1877 echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_cv_prog_cc_g=no
1882 rm -f conftest.$ac_objext conftest.$ac_ext
1884 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1885 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1886 if test "$ac_test_CFLAGS" = set; then
1887 CFLAGS=$ac_save_CFLAGS
1888 elif test $ac_cv_prog_cc_g = yes; then
1889 if test "$GCC" = yes; then
1890 CFLAGS="-g -O2"
1891 else
1892 CFLAGS="-g"
1894 else
1895 if test "$GCC" = yes; then
1896 CFLAGS="-O2"
1897 else
1898 CFLAGS=
1901 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1902 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1903 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906 ac_cv_prog_cc_stdc=no
1907 ac_save_CC=$CC
1908 cat >conftest.$ac_ext <<_ACEOF
1909 #line $LINENO "configure"
1910 /* confdefs.h. */
1911 _ACEOF
1912 cat confdefs.h >>conftest.$ac_ext
1913 cat >>conftest.$ac_ext <<_ACEOF
1914 /* end confdefs.h. */
1915 #include <stdarg.h>
1916 #include <stdio.h>
1917 #include <sys/types.h>
1918 #include <sys/stat.h>
1919 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1920 struct buf { int x; };
1921 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1922 static char *e (p, i)
1923 char **p;
1924 int i;
1926 return p[i];
1928 static char *f (char * (*g) (char **, int), char **p, ...)
1930 char *s;
1931 va_list v;
1932 va_start (v,p);
1933 s = g (p, va_arg (v,int));
1934 va_end (v);
1935 return s;
1937 int test (int i, double x);
1938 struct s1 {int (*f) (int a);};
1939 struct s2 {int (*f) (double a);};
1940 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1941 int argc;
1942 char **argv;
1944 main ()
1946 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1948 return 0;
1950 _ACEOF
1951 # Don't try gcc -ansi; that turns off useful extensions and
1952 # breaks some systems' header files.
1953 # AIX -qlanglvl=ansi
1954 # Ultrix and OSF/1 -std1
1955 # HP-UX 10.20 and later -Ae
1956 # HP-UX older versions -Aa -D_HPUX_SOURCE
1957 # SVR4 -Xc -D__EXTENSIONS__
1958 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1960 CC="$ac_save_CC $ac_arg"
1961 rm -f conftest.$ac_objext
1962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); } &&
1967 { ac_try='test -s conftest.$ac_objext'
1968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1969 (eval $ac_try) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
1973 ac_cv_prog_cc_stdc=$ac_arg
1974 break
1975 else
1976 echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1980 rm -f conftest.$ac_objext
1981 done
1982 rm -f conftest.$ac_ext conftest.$ac_objext
1983 CC=$ac_save_CC
1987 case "x$ac_cv_prog_cc_stdc" in
1988 x|xno)
1989 echo "$as_me:$LINENO: result: none needed" >&5
1990 echo "${ECHO_T}none needed" >&6 ;;
1992 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1993 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1994 CC="$CC $ac_cv_prog_cc_stdc" ;;
1995 esac
1997 # Some people use a C++ compiler to compile C. Since we use `exit',
1998 # in C++ we need to declare it. In case someone uses the same compiler
1999 # for both compiling C and C++ we need to have the C++ compiler decide
2000 # the declaration of exit, since it's the most demanding environment.
2001 cat >conftest.$ac_ext <<_ACEOF
2002 #ifndef __cplusplus
2003 choke me
2004 #endif
2005 _ACEOF
2006 rm -f conftest.$ac_objext
2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); } &&
2012 { ac_try='test -s conftest.$ac_objext'
2013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 (eval $ac_try) 2>&5
2015 ac_status=$?
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }; }; then
2018 for ac_declaration in \
2020 '#include <stdlib.h>' \
2021 'extern "C" void std::exit (int) throw (); using std::exit;' \
2022 'extern "C" void std::exit (int); using std::exit;' \
2023 'extern "C" void exit (int) throw ();' \
2024 'extern "C" void exit (int);' \
2025 'void exit (int);'
2027 cat >conftest.$ac_ext <<_ACEOF
2028 #line $LINENO "configure"
2029 /* confdefs.h. */
2030 _ACEOF
2031 cat confdefs.h >>conftest.$ac_ext
2032 cat >>conftest.$ac_ext <<_ACEOF
2033 /* end confdefs.h. */
2034 #include <stdlib.h>
2035 $ac_declaration
2037 main ()
2039 exit (42);
2041 return 0;
2043 _ACEOF
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>&5
2047 ac_status=$?
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); } &&
2050 { ac_try='test -s conftest.$ac_objext'
2051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052 (eval $ac_try) 2>&5
2053 ac_status=$?
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; }; then
2057 else
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2061 continue
2063 rm -f conftest.$ac_objext conftest.$ac_ext
2064 cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2066 /* confdefs.h. */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h. */
2071 $ac_declaration
2073 main ()
2075 exit (42);
2077 return 0;
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>&5
2083 ac_status=$?
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -s conftest.$ac_objext'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 (eval $ac_try) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; }; then
2092 break
2093 else
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2098 rm -f conftest.$ac_objext conftest.$ac_ext
2099 done
2100 rm -f conftest*
2101 if test -n "$ac_declaration"; then
2102 echo '#ifdef __cplusplus' >>confdefs.h
2103 echo $ac_declaration >>confdefs.h
2104 echo '#endif' >>confdefs.h
2107 else
2108 echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2112 rm -f conftest.$ac_objext conftest.$ac_ext
2113 ac_ext=c
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2120 ac_ext=c
2121 ac_cpp='$CPP $CPPFLAGS'
2122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2125 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2126 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2127 # On Suns, sometimes $CPP names a directory.
2128 if test -n "$CPP" && test -d "$CPP"; then
2129 CPP=
2131 if test -z "$CPP"; then
2132 if test "${ac_cv_prog_CPP+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135 # Double quotes because CPP needs to be expanded
2136 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2138 ac_preproc_ok=false
2139 for ac_c_preproc_warn_flag in '' yes
2141 # Use a header file that comes with gcc, so configuring glibc
2142 # with a fresh cross-compiler works.
2143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2144 # <limits.h> exists even on freestanding compilers.
2145 # On the NeXT, cc -E runs the code through the compiler's parser,
2146 # not just through cpp. "Syntax error" is here to catch this case.
2147 cat >conftest.$ac_ext <<_ACEOF
2148 #line $LINENO "configure"
2149 /* confdefs.h. */
2150 _ACEOF
2151 cat confdefs.h >>conftest.$ac_ext
2152 cat >>conftest.$ac_ext <<_ACEOF
2153 /* end confdefs.h. */
2154 #ifdef __STDC__
2155 # include <limits.h>
2156 #else
2157 # include <assert.h>
2158 #endif
2159 Syntax error
2160 _ACEOF
2161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2163 ac_status=$?
2164 grep -v '^ *+' conftest.er1 >conftest.err
2165 rm -f conftest.er1
2166 cat conftest.err >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); } >/dev/null; then
2169 if test -s conftest.err; then
2170 ac_cpp_err=$ac_c_preproc_warn_flag
2171 else
2172 ac_cpp_err=
2174 else
2175 ac_cpp_err=yes
2177 if test -z "$ac_cpp_err"; then
2179 else
2180 echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.$ac_ext >&5
2183 # Broken: fails on valid input.
2184 continue
2186 rm -f conftest.err conftest.$ac_ext
2188 # OK, works on sane cases. Now check whether non-existent headers
2189 # can be detected and how.
2190 cat >conftest.$ac_ext <<_ACEOF
2191 #line $LINENO "configure"
2192 /* confdefs.h. */
2193 _ACEOF
2194 cat confdefs.h >>conftest.$ac_ext
2195 cat >>conftest.$ac_ext <<_ACEOF
2196 /* end confdefs.h. */
2197 #include <ac_nonexistent.h>
2198 _ACEOF
2199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2201 ac_status=$?
2202 grep -v '^ *+' conftest.er1 >conftest.err
2203 rm -f conftest.er1
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } >/dev/null; then
2207 if test -s conftest.err; then
2208 ac_cpp_err=$ac_c_preproc_warn_flag
2209 else
2210 ac_cpp_err=
2212 else
2213 ac_cpp_err=yes
2215 if test -z "$ac_cpp_err"; then
2216 # Broken: success on invalid input.
2217 continue
2218 else
2219 echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2222 # Passes both tests.
2223 ac_preproc_ok=:
2224 break
2226 rm -f conftest.err conftest.$ac_ext
2228 done
2229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2230 rm -f conftest.err conftest.$ac_ext
2231 if $ac_preproc_ok; then
2232 break
2235 done
2236 ac_cv_prog_CPP=$CPP
2239 CPP=$ac_cv_prog_CPP
2240 else
2241 ac_cv_prog_CPP=$CPP
2243 echo "$as_me:$LINENO: result: $CPP" >&5
2244 echo "${ECHO_T}$CPP" >&6
2245 ac_preproc_ok=false
2246 for ac_c_preproc_warn_flag in '' yes
2248 # Use a header file that comes with gcc, so configuring glibc
2249 # with a fresh cross-compiler works.
2250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2251 # <limits.h> exists even on freestanding compilers.
2252 # On the NeXT, cc -E runs the code through the compiler's parser,
2253 # not just through cpp. "Syntax error" is here to catch this case.
2254 cat >conftest.$ac_ext <<_ACEOF
2255 #line $LINENO "configure"
2256 /* confdefs.h. */
2257 _ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2261 #ifdef __STDC__
2262 # include <limits.h>
2263 #else
2264 # include <assert.h>
2265 #endif
2266 Syntax error
2267 _ACEOF
2268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2270 ac_status=$?
2271 grep -v '^ *+' conftest.er1 >conftest.err
2272 rm -f conftest.er1
2273 cat conftest.err >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } >/dev/null; then
2276 if test -s conftest.err; then
2277 ac_cpp_err=$ac_c_preproc_warn_flag
2278 else
2279 ac_cpp_err=
2281 else
2282 ac_cpp_err=yes
2284 if test -z "$ac_cpp_err"; then
2286 else
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2290 # Broken: fails on valid input.
2291 continue
2293 rm -f conftest.err conftest.$ac_ext
2295 # OK, works on sane cases. Now check whether non-existent headers
2296 # can be detected and how.
2297 cat >conftest.$ac_ext <<_ACEOF
2298 #line $LINENO "configure"
2299 /* confdefs.h. */
2300 _ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2304 #include <ac_nonexistent.h>
2305 _ACEOF
2306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2308 ac_status=$?
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } >/dev/null; then
2314 if test -s conftest.err; then
2315 ac_cpp_err=$ac_c_preproc_warn_flag
2316 else
2317 ac_cpp_err=
2319 else
2320 ac_cpp_err=yes
2322 if test -z "$ac_cpp_err"; then
2323 # Broken: success on invalid input.
2324 continue
2325 else
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2329 # Passes both tests.
2330 ac_preproc_ok=:
2331 break
2333 rm -f conftest.err conftest.$ac_ext
2335 done
2336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2337 rm -f conftest.err conftest.$ac_ext
2338 if $ac_preproc_ok; then
2340 else
2341 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2342 See \`config.log' for more details." >&5
2343 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2344 See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355 echo "$as_me:$LINENO: checking for X" >&5
2356 echo $ECHO_N "checking for X... $ECHO_C" >&6
2359 # Check whether --with-x or --without-x was given.
2360 if test "${with_x+set}" = set; then
2361 withval="$with_x"
2364 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2365 if test "x$with_x" = xno; then
2366 # The user explicitly disabled X.
2367 have_x=disabled
2368 else
2369 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2370 # Both variables are already set.
2371 have_x=yes
2372 else
2373 if test "${ac_cv_have_x+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376 # One or both of the vars are not set, and there is no cached value.
2377 ac_x_includes=no ac_x_libraries=no
2378 rm -fr conftest.dir
2379 if mkdir conftest.dir; then
2380 cd conftest.dir
2381 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2382 cat >Imakefile <<'_ACEOF'
2383 acfindx:
2384 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2385 _ACEOF
2386 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2387 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2388 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2389 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2390 for ac_extension in a so sl; do
2391 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2392 test -f $ac_im_libdir/libX11.$ac_extension; then
2393 ac_im_usrlibdir=$ac_im_libdir; break
2395 done
2396 # Screen out bogus values from the imake configuration. They are
2397 # bogus both because they are the default anyway, and because
2398 # using them would break gcc on systems where it needs fixed includes.
2399 case $ac_im_incroot in
2400 /usr/include) ;;
2401 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2402 esac
2403 case $ac_im_usrlibdir in
2404 /usr/lib | /lib) ;;
2405 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2406 esac
2408 cd ..
2409 rm -fr conftest.dir
2412 # Standard set of common directories for X headers.
2413 # Check X11 before X11Rn because it is often a symlink to the current release.
2414 ac_x_header_dirs='
2415 /usr/X11/include
2416 /usr/X11R6/include
2417 /usr/X11R5/include
2418 /usr/X11R4/include
2420 /usr/include/X11
2421 /usr/include/X11R6
2422 /usr/include/X11R5
2423 /usr/include/X11R4
2425 /usr/local/X11/include
2426 /usr/local/X11R6/include
2427 /usr/local/X11R5/include
2428 /usr/local/X11R4/include
2430 /usr/local/include/X11
2431 /usr/local/include/X11R6
2432 /usr/local/include/X11R5
2433 /usr/local/include/X11R4
2435 /usr/X386/include
2436 /usr/x386/include
2437 /usr/XFree86/include/X11
2439 /usr/include
2440 /usr/local/include
2441 /usr/unsupported/include
2442 /usr/athena/include
2443 /usr/local/x11r5/include
2444 /usr/lpp/Xamples/include
2446 /usr/openwin/include
2447 /usr/openwin/share/include'
2449 if test "$ac_x_includes" = no; then
2450 # Guess where to find include files, by looking for Intrinsic.h.
2451 # First, try using that file with no special directory specified.
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line $LINENO "configure"
2454 /* confdefs.h. */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2459 #include <X11/Intrinsic.h>
2460 _ACEOF
2461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2463 ac_status=$?
2464 grep -v '^ *+' conftest.er1 >conftest.err
2465 rm -f conftest.er1
2466 cat conftest.err >&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); } >/dev/null; then
2469 if test -s conftest.err; then
2470 ac_cpp_err=$ac_c_preproc_warn_flag
2471 else
2472 ac_cpp_err=
2474 else
2475 ac_cpp_err=yes
2477 if test -z "$ac_cpp_err"; then
2478 # We can compile using X headers with no special include directory.
2479 ac_x_includes=
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2484 for ac_dir in $ac_x_header_dirs; do
2485 if test -r "$ac_dir/X11/Intrinsic.h"; then
2486 ac_x_includes=$ac_dir
2487 break
2489 done
2491 rm -f conftest.err conftest.$ac_ext
2492 fi # $ac_x_includes = no
2494 if test "$ac_x_libraries" = no; then
2495 # Check for the libraries.
2496 # See if we find them without any special options.
2497 # Don't add to $LIBS permanently.
2498 ac_save_LIBS=$LIBS
2499 LIBS="-lXt $LIBS"
2500 cat >conftest.$ac_ext <<_ACEOF
2501 #line $LINENO "configure"
2502 /* confdefs.h. */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2507 #include <X11/Intrinsic.h>
2509 main ()
2511 XtMalloc (0)
2513 return 0;
2515 _ACEOF
2516 rm -f conftest.$ac_objext conftest$ac_exeext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2518 (eval $ac_link) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -s conftest$ac_exeext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 LIBS=$ac_save_LIBS
2529 # We can link X programs with no special library path.
2530 ac_x_libraries=
2531 else
2532 echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2535 LIBS=$ac_save_LIBS
2536 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2538 # Don't even attempt the hair of trying to link an X program!
2539 for ac_extension in a so sl; do
2540 if test -r $ac_dir/libXt.$ac_extension; then
2541 ac_x_libraries=$ac_dir
2542 break 2
2544 done
2545 done
2547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2548 fi # $ac_x_libraries = no
2550 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2551 # Didn't find X anywhere. Cache the known absence of X.
2552 ac_cv_have_x="have_x=no"
2553 else
2554 # Record where we found X for the cache.
2555 ac_cv_have_x="have_x=yes \
2556 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2561 eval "$ac_cv_have_x"
2562 fi # $with_x != no
2564 if test "$have_x" != yes; then
2565 echo "$as_me:$LINENO: result: $have_x" >&5
2566 echo "${ECHO_T}$have_x" >&6
2567 no_x=yes
2568 else
2569 # If each of the values was on the command line, it overrides each guess.
2570 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2571 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2572 # Update the cache value to reflect the command line values.
2573 ac_cv_have_x="have_x=yes \
2574 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2575 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2576 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2579 if test "$no_x" = yes; then
2580 # Not all programs may use this symbol, but it does not hurt to define it.
2582 cat >>confdefs.h <<\_ACEOF
2583 #define X_DISPLAY_MISSING 1
2584 _ACEOF
2586 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2587 else
2588 if test -n "$x_includes"; then
2589 X_CFLAGS="$X_CFLAGS -I$x_includes"
2592 # It would also be nice to do this for all -L options, not just this one.
2593 if test -n "$x_libraries"; then
2594 X_LIBS="$X_LIBS -L$x_libraries"
2595 # For Solaris; some versions of Sun CC require a space after -R and
2596 # others require no space. Words are not sufficient . . . .
2597 case `(uname -sr) 2>/dev/null` in
2598 "SunOS 5"*)
2599 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2600 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2601 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2602 cat >conftest.$ac_ext <<_ACEOF
2603 #line $LINENO "configure"
2604 /* confdefs.h. */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2611 main ()
2615 return 0;
2617 _ACEOF
2618 rm -f conftest.$ac_objext conftest$ac_exeext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620 (eval $ac_link) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -s conftest$ac_exeext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 ac_R_nospace=yes
2631 else
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2635 ac_R_nospace=no
2637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2638 if test $ac_R_nospace = yes; then
2639 echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6
2641 X_LIBS="$X_LIBS -R$x_libraries"
2642 else
2643 LIBS="$ac_xsave_LIBS -R $x_libraries"
2644 cat >conftest.$ac_ext <<_ACEOF
2645 #line $LINENO "configure"
2646 /* confdefs.h. */
2647 _ACEOF
2648 cat confdefs.h >>conftest.$ac_ext
2649 cat >>conftest.$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2653 main ()
2657 return 0;
2659 _ACEOF
2660 rm -f conftest.$ac_objext conftest$ac_exeext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2662 (eval $ac_link) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -s conftest$ac_exeext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 ac_R_space=yes
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2677 ac_R_space=no
2679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2680 if test $ac_R_space = yes; then
2681 echo "$as_me:$LINENO: result: yes" >&5
2682 echo "${ECHO_T}yes" >&6
2683 X_LIBS="$X_LIBS -R $x_libraries"
2684 else
2685 echo "$as_me:$LINENO: result: neither works" >&5
2686 echo "${ECHO_T}neither works" >&6
2689 LIBS=$ac_xsave_LIBS
2690 esac
2693 # Check for system-dependent libraries X programs must link with.
2694 # Do this before checking for the system-independent R6 libraries
2695 # (-lICE), since we may need -lsocket or whatever for X linking.
2697 if test "$ISC" = yes; then
2698 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2699 else
2700 # Martyn Johnson says this is needed for Ultrix, if the X
2701 # libraries were built with DECnet support. And Karl Berry says
2702 # the Alpha needs dnet_stub (dnet does not exist).
2703 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2704 cat >conftest.$ac_ext <<_ACEOF
2705 #line $LINENO "configure"
2706 /* confdefs.h. */
2707 _ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h. */
2712 /* Override any gcc2 internal prototype to avoid an error. */
2713 #ifdef __cplusplus
2714 extern "C"
2715 #endif
2716 /* We use char because int might match the return type of a gcc2
2717 builtin and then its argument prototype would still apply. */
2718 char XOpenDisplay ();
2720 main ()
2722 XOpenDisplay ();
2724 return 0;
2726 _ACEOF
2727 rm -f conftest.$ac_objext conftest$ac_exeext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2729 (eval $ac_link) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -s conftest$ac_exeext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2740 else
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2744 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2745 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2746 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749 ac_check_lib_save_LIBS=$LIBS
2750 LIBS="-ldnet $LIBS"
2751 cat >conftest.$ac_ext <<_ACEOF
2752 #line $LINENO "configure"
2753 /* confdefs.h. */
2754 _ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2759 /* Override any gcc2 internal prototype to avoid an error. */
2760 #ifdef __cplusplus
2761 extern "C"
2762 #endif
2763 /* We use char because int might match the return type of a gcc2
2764 builtin and then its argument prototype would still apply. */
2765 char dnet_ntoa ();
2767 main ()
2769 dnet_ntoa ();
2771 return 0;
2773 _ACEOF
2774 rm -f conftest.$ac_objext conftest$ac_exeext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2776 (eval $ac_link) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -s conftest$ac_exeext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 ac_cv_lib_dnet_dnet_ntoa=yes
2787 else
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2791 ac_cv_lib_dnet_dnet_ntoa=no
2793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2794 LIBS=$ac_check_lib_save_LIBS
2796 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2797 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2798 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2799 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2802 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2803 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2804 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2805 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808 ac_check_lib_save_LIBS=$LIBS
2809 LIBS="-ldnet_stub $LIBS"
2810 cat >conftest.$ac_ext <<_ACEOF
2811 #line $LINENO "configure"
2812 /* confdefs.h. */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2818 /* Override any gcc2 internal prototype to avoid an error. */
2819 #ifdef __cplusplus
2820 extern "C"
2821 #endif
2822 /* We use char because int might match the return type of a gcc2
2823 builtin and then its argument prototype would still apply. */
2824 char dnet_ntoa ();
2826 main ()
2828 dnet_ntoa ();
2830 return 0;
2832 _ACEOF
2833 rm -f conftest.$ac_objext conftest$ac_exeext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835 (eval $ac_link) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } &&
2839 { ac_try='test -s conftest$ac_exeext'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2845 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 ac_cv_lib_dnet_stub_dnet_ntoa=no
2852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2853 LIBS=$ac_check_lib_save_LIBS
2855 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2856 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2857 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2858 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2864 LIBS="$ac_xsave_LIBS"
2866 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2867 # to get the SysV transport functions.
2868 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2869 # needs -lnsl.
2870 # The nsl library prevents programs from opening the X display
2871 # on Irix 5.2, according to T.E. Dickey.
2872 # The functions gethostbyname, getservbyname, and inet_addr are
2873 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2874 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2875 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2876 if test "${ac_cv_func_gethostbyname+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 cat >conftest.$ac_ext <<_ACEOF
2880 #line $LINENO "configure"
2881 /* confdefs.h. */
2882 _ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2886 /* System header to define __stub macros and hopefully few prototypes,
2887 which can conflict with char gethostbyname (); below.
2888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2889 <limits.h> exists even on freestanding compilers. */
2890 #ifdef __STDC__
2891 # include <limits.h>
2892 #else
2893 # include <assert.h>
2894 #endif
2895 /* Override any gcc2 internal prototype to avoid an error. */
2896 #ifdef __cplusplus
2897 extern "C"
2899 #endif
2900 /* We use char because int might match the return type of a gcc2
2901 builtin and then its argument prototype would still apply. */
2902 char gethostbyname ();
2903 /* The GNU C library defines this for functions which it implements
2904 to always fail with ENOSYS. Some functions are actually named
2905 something starting with __ and the normal name is an alias. */
2906 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2907 choke me
2908 #else
2909 char (*f) () = gethostbyname;
2910 #endif
2911 #ifdef __cplusplus
2913 #endif
2916 main ()
2918 return f != gethostbyname;
2920 return 0;
2922 _ACEOF
2923 rm -f conftest.$ac_objext conftest$ac_exeext
2924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2925 (eval $ac_link) 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -s conftest$ac_exeext'
2930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 (eval $ac_try) 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; }; then
2935 ac_cv_func_gethostbyname=yes
2936 else
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 ac_cv_func_gethostbyname=no
2942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2944 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2945 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2947 if test $ac_cv_func_gethostbyname = no; then
2948 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2949 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2950 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953 ac_check_lib_save_LIBS=$LIBS
2954 LIBS="-lnsl $LIBS"
2955 cat >conftest.$ac_ext <<_ACEOF
2956 #line $LINENO "configure"
2957 /* confdefs.h. */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2963 /* Override any gcc2 internal prototype to avoid an error. */
2964 #ifdef __cplusplus
2965 extern "C"
2966 #endif
2967 /* We use char because int might match the return type of a gcc2
2968 builtin and then its argument prototype would still apply. */
2969 char gethostbyname ();
2971 main ()
2973 gethostbyname ();
2975 return 0;
2977 _ACEOF
2978 rm -f conftest.$ac_objext conftest$ac_exeext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2980 (eval $ac_link) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -s conftest$ac_exeext'
2985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 (eval $ac_try) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; }; then
2990 ac_cv_lib_nsl_gethostbyname=yes
2991 else
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2995 ac_cv_lib_nsl_gethostbyname=no
2997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2998 LIBS=$ac_check_lib_save_LIBS
3000 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3001 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3002 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3003 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3006 if test $ac_cv_lib_nsl_gethostbyname = no; then
3007 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3008 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3009 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012 ac_check_lib_save_LIBS=$LIBS
3013 LIBS="-lbsd $LIBS"
3014 cat >conftest.$ac_ext <<_ACEOF
3015 #line $LINENO "configure"
3016 /* confdefs.h. */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3022 /* Override any gcc2 internal prototype to avoid an error. */
3023 #ifdef __cplusplus
3024 extern "C"
3025 #endif
3026 /* We use char because int might match the return type of a gcc2
3027 builtin and then its argument prototype would still apply. */
3028 char gethostbyname ();
3030 main ()
3032 gethostbyname ();
3034 return 0;
3036 _ACEOF
3037 rm -f conftest.$ac_objext conftest$ac_exeext
3038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3039 (eval $ac_link) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } &&
3043 { ac_try='test -s conftest$ac_exeext'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 (eval $ac_try) 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3049 ac_cv_lib_bsd_gethostbyname=yes
3050 else
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 ac_cv_lib_bsd_gethostbyname=no
3056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3057 LIBS=$ac_check_lib_save_LIBS
3059 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3060 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3061 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3068 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3069 # socket/setsockopt and other routines are undefined under SCO ODT
3070 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3071 # on later versions), says Simon Leinen: it contains gethostby*
3072 # variants that don't use the name server (or something). -lsocket
3073 # must be given before -lnsl if both are needed. We assume that
3074 # if connect needs -lnsl, so does gethostbyname.
3075 echo "$as_me:$LINENO: checking for connect" >&5
3076 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3077 if test "${ac_cv_func_connect+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080 cat >conftest.$ac_ext <<_ACEOF
3081 #line $LINENO "configure"
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 /* System header to define __stub macros and hopefully few prototypes,
3088 which can conflict with char connect (); below.
3089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3090 <limits.h> exists even on freestanding compilers. */
3091 #ifdef __STDC__
3092 # include <limits.h>
3093 #else
3094 # include <assert.h>
3095 #endif
3096 /* Override any gcc2 internal prototype to avoid an error. */
3097 #ifdef __cplusplus
3098 extern "C"
3100 #endif
3101 /* We use char because int might match the return type of a gcc2
3102 builtin and then its argument prototype would still apply. */
3103 char connect ();
3104 /* The GNU C library defines this for functions which it implements
3105 to always fail with ENOSYS. Some functions are actually named
3106 something starting with __ and the normal name is an alias. */
3107 #if defined (__stub_connect) || defined (__stub___connect)
3108 choke me
3109 #else
3110 char (*f) () = connect;
3111 #endif
3112 #ifdef __cplusplus
3114 #endif
3117 main ()
3119 return f != connect;
3121 return 0;
3123 _ACEOF
3124 rm -f conftest.$ac_objext conftest$ac_exeext
3125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3126 (eval $ac_link) 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -s conftest$ac_exeext'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132 (eval $ac_try) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; }; then
3136 ac_cv_func_connect=yes
3137 else
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3141 ac_cv_func_connect=no
3143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3145 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3146 echo "${ECHO_T}$ac_cv_func_connect" >&6
3148 if test $ac_cv_func_connect = no; then
3149 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3150 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3151 if test "${ac_cv_lib_socket_connect+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154 ac_check_lib_save_LIBS=$LIBS
3155 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3156 cat >conftest.$ac_ext <<_ACEOF
3157 #line $LINENO "configure"
3158 /* confdefs.h. */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3164 /* Override any gcc2 internal prototype to avoid an error. */
3165 #ifdef __cplusplus
3166 extern "C"
3167 #endif
3168 /* We use char because int might match the return type of a gcc2
3169 builtin and then its argument prototype would still apply. */
3170 char connect ();
3172 main ()
3174 connect ();
3176 return 0;
3178 _ACEOF
3179 rm -f conftest.$ac_objext conftest$ac_exeext
3180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3181 (eval $ac_link) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -s conftest$ac_exeext'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_lib_socket_connect=yes
3192 else
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 ac_cv_lib_socket_connect=no
3198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3199 LIBS=$ac_check_lib_save_LIBS
3201 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3202 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3203 if test $ac_cv_lib_socket_connect = yes; then
3204 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3209 # Guillermo Gomez says -lposix is necessary on A/UX.
3210 echo "$as_me:$LINENO: checking for remove" >&5
3211 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3212 if test "${ac_cv_func_remove+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215 cat >conftest.$ac_ext <<_ACEOF
3216 #line $LINENO "configure"
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3222 /* System header to define __stub macros and hopefully few prototypes,
3223 which can conflict with char remove (); below.
3224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3225 <limits.h> exists even on freestanding compilers. */
3226 #ifdef __STDC__
3227 # include <limits.h>
3228 #else
3229 # include <assert.h>
3230 #endif
3231 /* Override any gcc2 internal prototype to avoid an error. */
3232 #ifdef __cplusplus
3233 extern "C"
3235 #endif
3236 /* We use char because int might match the return type of a gcc2
3237 builtin and then its argument prototype would still apply. */
3238 char remove ();
3239 /* The GNU C library defines this for functions which it implements
3240 to always fail with ENOSYS. Some functions are actually named
3241 something starting with __ and the normal name is an alias. */
3242 #if defined (__stub_remove) || defined (__stub___remove)
3243 choke me
3244 #else
3245 char (*f) () = remove;
3246 #endif
3247 #ifdef __cplusplus
3249 #endif
3252 main ()
3254 return f != remove;
3256 return 0;
3258 _ACEOF
3259 rm -f conftest.$ac_objext conftest$ac_exeext
3260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3261 (eval $ac_link) 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try='test -s conftest$ac_exeext'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; }; then
3271 ac_cv_func_remove=yes
3272 else
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 ac_cv_func_remove=no
3278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3280 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3281 echo "${ECHO_T}$ac_cv_func_remove" >&6
3283 if test $ac_cv_func_remove = no; then
3284 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3285 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3286 if test "${ac_cv_lib_posix_remove+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289 ac_check_lib_save_LIBS=$LIBS
3290 LIBS="-lposix $LIBS"
3291 cat >conftest.$ac_ext <<_ACEOF
3292 #line $LINENO "configure"
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3299 /* Override any gcc2 internal prototype to avoid an error. */
3300 #ifdef __cplusplus
3301 extern "C"
3302 #endif
3303 /* We use char because int might match the return type of a gcc2
3304 builtin and then its argument prototype would still apply. */
3305 char remove ();
3307 main ()
3309 remove ();
3311 return 0;
3313 _ACEOF
3314 rm -f conftest.$ac_objext conftest$ac_exeext
3315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3316 (eval $ac_link) 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } &&
3320 { ac_try='test -s conftest$ac_exeext'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322 (eval $ac_try) 2>&5
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3326 ac_cv_lib_posix_remove=yes
3327 else
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 ac_cv_lib_posix_remove=no
3333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3334 LIBS=$ac_check_lib_save_LIBS
3336 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3337 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3338 if test $ac_cv_lib_posix_remove = yes; then
3339 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3344 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3345 echo "$as_me:$LINENO: checking for shmat" >&5
3346 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3347 if test "${ac_cv_func_shmat+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350 cat >conftest.$ac_ext <<_ACEOF
3351 #line $LINENO "configure"
3352 /* confdefs.h. */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3357 /* System header to define __stub macros and hopefully few prototypes,
3358 which can conflict with char shmat (); below.
3359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360 <limits.h> exists even on freestanding compilers. */
3361 #ifdef __STDC__
3362 # include <limits.h>
3363 #else
3364 # include <assert.h>
3365 #endif
3366 /* Override any gcc2 internal prototype to avoid an error. */
3367 #ifdef __cplusplus
3368 extern "C"
3370 #endif
3371 /* We use char because int might match the return type of a gcc2
3372 builtin and then its argument prototype would still apply. */
3373 char shmat ();
3374 /* The GNU C library defines this for functions which it implements
3375 to always fail with ENOSYS. Some functions are actually named
3376 something starting with __ and the normal name is an alias. */
3377 #if defined (__stub_shmat) || defined (__stub___shmat)
3378 choke me
3379 #else
3380 char (*f) () = shmat;
3381 #endif
3382 #ifdef __cplusplus
3384 #endif
3387 main ()
3389 return f != shmat;
3391 return 0;
3393 _ACEOF
3394 rm -f conftest.$ac_objext conftest$ac_exeext
3395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3396 (eval $ac_link) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -s conftest$ac_exeext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_cv_func_shmat=yes
3407 else
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 ac_cv_func_shmat=no
3413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3415 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3416 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3418 if test $ac_cv_func_shmat = no; then
3419 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3420 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3421 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 ac_check_lib_save_LIBS=$LIBS
3425 LIBS="-lipc $LIBS"
3426 cat >conftest.$ac_ext <<_ACEOF
3427 #line $LINENO "configure"
3428 /* confdefs.h. */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3434 /* Override any gcc2 internal prototype to avoid an error. */
3435 #ifdef __cplusplus
3436 extern "C"
3437 #endif
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3440 char shmat ();
3442 main ()
3444 shmat ();
3446 return 0;
3448 _ACEOF
3449 rm -f conftest.$ac_objext conftest$ac_exeext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3451 (eval $ac_link) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } &&
3455 { ac_try='test -s conftest$ac_exeext'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3461 ac_cv_lib_ipc_shmat=yes
3462 else
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 ac_cv_lib_ipc_shmat=no
3468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3469 LIBS=$ac_check_lib_save_LIBS
3471 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3472 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3473 if test $ac_cv_lib_ipc_shmat = yes; then
3474 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3480 # Check for libraries that X11R6 Xt/Xaw programs need.
3481 ac_save_LDFLAGS=$LDFLAGS
3482 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3483 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3484 # check for ICE first), but we must link in the order -lSM -lICE or
3485 # we get undefined symbols. So assume we have SM if we have ICE.
3486 # These have to be linked with before -lX11, unlike the other
3487 # libraries we check for below, so use a different variable.
3488 # John Interrante, Karl Berry
3489 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3490 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3491 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494 ac_check_lib_save_LIBS=$LIBS
3495 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3496 cat >conftest.$ac_ext <<_ACEOF
3497 #line $LINENO "configure"
3498 /* confdefs.h. */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3504 /* Override any gcc2 internal prototype to avoid an error. */
3505 #ifdef __cplusplus
3506 extern "C"
3507 #endif
3508 /* We use char because int might match the return type of a gcc2
3509 builtin and then its argument prototype would still apply. */
3510 char IceConnectionNumber ();
3512 main ()
3514 IceConnectionNumber ();
3516 return 0;
3518 _ACEOF
3519 rm -f conftest.$ac_objext conftest$ac_exeext
3520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3521 (eval $ac_link) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } &&
3525 { ac_try='test -s conftest$ac_exeext'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; }; then
3531 ac_cv_lib_ICE_IceConnectionNumber=yes
3532 else
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3536 ac_cv_lib_ICE_IceConnectionNumber=no
3538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3539 LIBS=$ac_check_lib_save_LIBS
3541 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3542 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3543 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3544 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3547 LDFLAGS=$ac_save_LDFLAGS
3552 TARGETS="wmradio xwmradio"
3556 HAVE_XOSD="undef "
3558 if test "$enable_libxosd" = "yes"; then
3560 # Check whether --with-xosd-config or --without-xosd-config was given.
3561 if test "${with_xosd_config+set}" = set; then
3562 withval="$with_xosd_config"
3563 LIBXOSD_CONFIG="$withval"
3566 # Extract the first word of "xosd-config", so it can be a program name with args.
3567 set dummy xosd-config; ac_word=$2
3568 echo "$as_me:$LINENO: checking for $ac_word" >&5
3569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570 if test "${ac_cv_path_LIBXOSD_CONFIG+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573 case $LIBXOSD_CONFIG in
3574 [\\/]* | ?:[\\/]*)
3575 ac_cv_path_LIBXOSD_CONFIG="$LIBXOSD_CONFIG" # Let the user override the test with a path.
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_path_LIBXOSD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 break 2
3589 done
3590 done
3592 test -z "$ac_cv_path_LIBXOSD_CONFIG" && ac_cv_path_LIBXOSD_CONFIG="no"
3594 esac
3596 LIBXOSD_CONFIG=$ac_cv_path_LIBXOSD_CONFIG
3598 if test -n "$LIBXOSD_CONFIG"; then
3599 echo "$as_me:$LINENO: result: $LIBXOSD_CONFIG" >&5
3600 echo "${ECHO_T}$LIBXOSD_CONFIG" >&6
3601 else
3602 echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6
3606 echo "$as_me:$LINENO: checking for libxosd" >&5
3607 echo $ECHO_N "checking for libxosd... $ECHO_C" >&6
3608 if test "$LIBXOSD_CONFIG" = "no"; then
3609 echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3611 { { echo "$as_me:$LINENO: error: Can't find libxosd" >&5
3612 echo "$as_me: error: Can't find libxosd" >&2;}
3613 { (exit 1); exit 1; }; }
3614 else
3615 LIBXOSD_CFLAGS=`$LIBXOSD_CONFIG --cflags`
3616 LIBXOSD_LIBS=`$LIBXOSD_CONFIG --libs`
3617 echo "$as_me:$LINENO: result: yes" >&5
3618 echo "${ECHO_T}yes" >&6
3619 HAVE_XOSD="define"
3626 PANEL_LIBS=""
3627 PANEL_CFLAGS=""
3628 if test "$enable_gnome" = "yes" ; then
3629 # Extract the first word of "pkg-config ", so it can be a program name with args.
3630 set dummy pkg-config ; ac_word=$2
3631 echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636 case $PKG_CONFIG in
3637 [\\/]* | ?:[\\/]*)
3638 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3652 done
3653 done
3656 esac
3658 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3660 if test -n "$PKG_CONFIG"; then
3661 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3662 echo "${ECHO_T}$PKG_CONFIG" >&6
3663 else
3664 echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3668 if test "$PKG_CONFIG" = "" ; then
3669 { { echo "$as_me:$LINENO: error: pgk-config not found" >&5
3670 echo "$as_me: error: pgk-config not found" >&2;}
3671 { (exit 1); exit 1; }; }
3673 TARGETS="$TARGETS gwmradio"
3674 PANEL_LIBS="`$PKG_CONFIG --libs libpanelapplet-2.0`"
3675 PANEL_CFLAGS="`$PKG_CONFIG --cflags libpanelapplet-2.0`"
3680 if test "x${prefix}" = "xNONE"; then
3681 cat >>confdefs.h <<_ACEOF
3682 #define LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
3683 _ACEOF
3685 else
3686 cat >>confdefs.h <<_ACEOF
3687 #define LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
3688 _ACEOF
3692 ac_config_files="$ac_config_files Makefile config.h config/wmradio-config.py"
3693 cat >confcache <<\_ACEOF
3694 # This file is a shell script that caches the results of configure
3695 # tests run on this system so they can be shared between configure
3696 # scripts and configure runs, see configure's option --config-cache.
3697 # It is not useful on other systems. If it contains results you don't
3698 # want to keep, you may remove or edit it.
3700 # config.status only pays attention to the cache file if you give it
3701 # the --recheck option to rerun configure.
3703 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3705 # following values.
3707 _ACEOF
3709 # The following way of writing the cache mishandles newlines in values,
3710 # but we know of no workaround that is simple, portable, and efficient.
3711 # So, don't put newlines in cache variables' values.
3712 # Ultrix sh set writes to stderr and can't be redirected directly,
3713 # and sets the high bit in the cache file unless we assign to the vars.
3715 (set) 2>&1 |
3716 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3717 *ac_space=\ *)
3718 # `set' does not quote correctly, so add quotes (double-quote
3719 # substitution turns \\\\ into \\, and sed turns \\ into \).
3720 sed -n \
3721 "s/'/'\\\\''/g;
3722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3725 # `set' quotes correctly as required by POSIX, so do not add quotes.
3726 sed -n \
3727 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3729 esac;
3731 sed '
3732 t clear
3733 : clear
3734 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3735 t end
3736 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3737 : end' >>confcache
3738 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3739 if test -w $cache_file; then
3740 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3741 cat confcache >$cache_file
3742 else
3743 echo "not updating unwritable cache $cache_file"
3746 rm -f confcache
3748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3749 # Let make expand exec_prefix.
3750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3752 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3753 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3754 # trailing colons and then remove the whole line if VPATH becomes empty
3755 # (actually we leave an empty line to preserve line numbers).
3756 if test "x$srcdir" = x.; then
3757 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3758 s/:*\$(srcdir):*/:/;
3759 s/:*\${srcdir}:*/:/;
3760 s/:*@srcdir@:*/:/;
3761 s/^\([^=]*=[ ]*\):*/\1/;
3762 s/:*$//;
3763 s/^[^=]*=[ ]*$//;
3767 # Transform confdefs.h into DEFS.
3768 # Protect against shell expansion while executing Makefile rules.
3769 # Protect against Makefile macro expansion.
3771 # If the first sed substitution is executed (which looks for macros that
3772 # take arguments), then we branch to the quote section. Otherwise,
3773 # look for a macro that doesn't take arguments.
3774 cat >confdef2opt.sed <<\_ACEOF
3775 t clear
3776 : clear
3777 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3778 t quote
3779 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3780 t quote
3782 : quote
3783 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3784 s,\[,\\&,g
3785 s,\],\\&,g
3786 s,\$,$$,g
3788 _ACEOF
3789 # We use echo to avoid assuming a particular line-breaking character.
3790 # The extra dot is to prevent the shell from consuming trailing
3791 # line-breaks from the sub-command output. A line-break within
3792 # single-quotes doesn't work because, if this script is created in a
3793 # platform that uses two characters for line-breaks (e.g., DOS), tr
3794 # would break.
3795 ac_LF_and_DOT=`echo; echo .`
3796 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3797 rm -f confdef2opt.sed
3800 ac_libobjs=
3801 ac_ltlibobjs=
3802 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3803 # 1. Remove the extension, and $U if already installed.
3804 ac_i=`echo "$ac_i" |
3805 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3806 # 2. Add them.
3807 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3808 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3809 done
3810 LIBOBJS=$ac_libobjs
3812 LTLIBOBJS=$ac_ltlibobjs
3816 : ${CONFIG_STATUS=./config.status}
3817 ac_clean_files_save=$ac_clean_files
3818 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3819 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3820 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3821 cat >$CONFIG_STATUS <<_ACEOF
3822 #! $SHELL
3823 # Generated by $as_me.
3824 # Run this file to recreate the current configuration.
3825 # Compiler output produced by configure, useful for debugging
3826 # configure, is in config.log if it exists.
3828 debug=false
3829 ac_cs_recheck=false
3830 ac_cs_silent=false
3831 SHELL=\${CONFIG_SHELL-$SHELL}
3832 _ACEOF
3834 cat >>$CONFIG_STATUS <<\_ACEOF
3835 ## --------------------- ##
3836 ## M4sh Initialization. ##
3837 ## --------------------- ##
3839 # Be Bourne compatible
3840 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3841 emulate sh
3842 NULLCMD=:
3843 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3844 # is contrary to our usage. Disable this feature.
3845 alias -g '${1+"$@"}'='"$@"'
3846 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3847 set -o posix
3850 # Support unset when possible.
3851 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3852 as_unset=unset
3853 else
3854 as_unset=false
3858 # Work around bugs in pre-3.0 UWIN ksh.
3859 $as_unset ENV MAIL MAILPATH
3860 PS1='$ '
3861 PS2='> '
3862 PS4='+ '
3864 # NLS nuisances.
3865 for as_var in \
3866 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3867 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3868 LC_TELEPHONE LC_TIME
3870 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3871 eval $as_var=C; export $as_var
3872 else
3873 $as_unset $as_var
3875 done
3877 # Required to use basename.
3878 if expr a : '\(a\)' >/dev/null 2>&1; then
3879 as_expr=expr
3880 else
3881 as_expr=false
3884 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3885 as_basename=basename
3886 else
3887 as_basename=false
3891 # Name of the executable.
3892 as_me=`$as_basename "$0" ||
3893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3894 X"$0" : 'X\(//\)$' \| \
3895 X"$0" : 'X\(/\)$' \| \
3896 . : '\(.\)' 2>/dev/null ||
3897 echo X/"$0" |
3898 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3899 /^X\/\(\/\/\)$/{ s//\1/; q; }
3900 /^X\/\(\/\).*/{ s//\1/; q; }
3901 s/.*/./; q'`
3904 # PATH needs CR, and LINENO needs CR and PATH.
3905 # Avoid depending upon Character Ranges.
3906 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3907 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3908 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3909 as_cr_digits='0123456789'
3910 as_cr_alnum=$as_cr_Letters$as_cr_digits
3912 # The user is always right.
3913 if test "${PATH_SEPARATOR+set}" != set; then
3914 echo "#! /bin/sh" >conf$$.sh
3915 echo "exit 0" >>conf$$.sh
3916 chmod +x conf$$.sh
3917 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3918 PATH_SEPARATOR=';'
3919 else
3920 PATH_SEPARATOR=:
3922 rm -f conf$$.sh
3926 as_lineno_1=$LINENO
3927 as_lineno_2=$LINENO
3928 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3929 test "x$as_lineno_1" != "x$as_lineno_2" &&
3930 test "x$as_lineno_3" = "x$as_lineno_2" || {
3931 # Find who we are. Look in the path if we contain no path at all
3932 # relative or not.
3933 case $0 in
3934 *[\\/]* ) as_myself=$0 ;;
3935 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3941 done
3944 esac
3945 # We did not find ourselves, most probably we were run as `sh COMMAND'
3946 # in which case we are not to be found in the path.
3947 if test "x$as_myself" = x; then
3948 as_myself=$0
3950 if test ! -f "$as_myself"; then
3951 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3952 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3953 { (exit 1); exit 1; }; }
3955 case $CONFIG_SHELL in
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for as_base in sh bash ksh sh5; do
3963 case $as_dir in
3965 if ("$as_dir/$as_base" -c '
3966 as_lineno_1=$LINENO
3967 as_lineno_2=$LINENO
3968 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3969 test "x$as_lineno_1" != "x$as_lineno_2" &&
3970 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3971 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3972 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3973 CONFIG_SHELL=$as_dir/$as_base
3974 export CONFIG_SHELL
3975 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3976 fi;;
3977 esac
3978 done
3979 done
3981 esac
3983 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3984 # uniformly replaced by the line number. The first 'sed' inserts a
3985 # line-number line before each line; the second 'sed' does the real
3986 # work. The second script uses 'N' to pair each line-number line
3987 # with the numbered line, and appends trailing '-' during
3988 # substitution so that $LINENO is not a special case at line end.
3989 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3990 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3991 sed '=' <$as_myself |
3992 sed '
3994 s,$,-,
3995 : loop
3996 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3997 t loop
3998 s,-$,,
3999 s,^['$as_cr_digits']*\n,,
4000 ' >$as_me.lineno &&
4001 chmod +x $as_me.lineno ||
4002 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4003 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4004 { (exit 1); exit 1; }; }
4006 # Don't try to exec as it changes $[0], causing all sort of problems
4007 # (the dirname of $[0] is not the place where we might find the
4008 # original and so on. Autoconf is especially sensible to this).
4009 . ./$as_me.lineno
4010 # Exit status is that of the last command.
4011 exit
4015 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4016 *c*,-n*) ECHO_N= ECHO_C='
4017 ' ECHO_T=' ' ;;
4018 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4019 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4020 esac
4022 if expr a : '\(a\)' >/dev/null 2>&1; then
4023 as_expr=expr
4024 else
4025 as_expr=false
4028 rm -f conf$$ conf$$.exe conf$$.file
4029 echo >conf$$.file
4030 if ln -s conf$$.file conf$$ 2>/dev/null; then
4031 # We could just check for DJGPP; but this test a) works b) is more generic
4032 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4033 if test -f conf$$.exe; then
4034 # Don't use ln at all; we don't have any links
4035 as_ln_s='cp -p'
4036 else
4037 as_ln_s='ln -s'
4039 elif ln conf$$.file conf$$ 2>/dev/null; then
4040 as_ln_s=ln
4041 else
4042 as_ln_s='cp -p'
4044 rm -f conf$$ conf$$.exe conf$$.file
4046 if mkdir -p . 2>/dev/null; then
4047 as_mkdir_p=:
4048 else
4049 as_mkdir_p=false
4052 as_executable_p="test -f"
4054 # Sed expression to map a string onto a valid CPP name.
4055 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4057 # Sed expression to map a string onto a valid variable name.
4058 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4061 # IFS
4062 # We need space, tab and new line, in precisely that order.
4063 as_nl='
4065 IFS=" $as_nl"
4067 # CDPATH.
4068 $as_unset CDPATH
4070 exec 6>&1
4072 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4073 # report actual input values of CONFIG_FILES etc. instead of their
4074 # values after options handling. Logging --version etc. is OK.
4075 exec 5>>config.log
4077 echo
4078 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4079 ## Running $as_me. ##
4080 _ASBOX
4081 } >&5
4082 cat >&5 <<_CSEOF
4084 This file was extended by $as_me, which was
4085 generated by GNU Autoconf 2.57. Invocation command line was
4087 CONFIG_FILES = $CONFIG_FILES
4088 CONFIG_HEADERS = $CONFIG_HEADERS
4089 CONFIG_LINKS = $CONFIG_LINKS
4090 CONFIG_COMMANDS = $CONFIG_COMMANDS
4091 $ $0 $@
4093 _CSEOF
4094 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4095 echo >&5
4096 _ACEOF
4098 # Files that config.status was made for.
4099 if test -n "$ac_config_files"; then
4100 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4103 if test -n "$ac_config_headers"; then
4104 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4107 if test -n "$ac_config_links"; then
4108 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4111 if test -n "$ac_config_commands"; then
4112 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4115 cat >>$CONFIG_STATUS <<\_ACEOF
4117 ac_cs_usage="\
4118 \`$as_me' instantiates files from templates according to the
4119 current configuration.
4121 Usage: $0 [OPTIONS] [FILE]...
4123 -h, --help print this help, then exit
4124 -V, --version print version number, then exit
4125 -q, --quiet do not print progress messages
4126 -d, --debug don't remove temporary files
4127 --recheck update $as_me by reconfiguring in the same conditions
4128 --file=FILE[:TEMPLATE]
4129 instantiate the configuration file FILE
4131 Configuration files:
4132 $config_files
4134 Report bugs to <bug-autoconf@gnu.org>."
4135 _ACEOF
4137 cat >>$CONFIG_STATUS <<_ACEOF
4138 ac_cs_version="\\
4139 config.status
4140 configured by $0, generated by GNU Autoconf 2.57,
4141 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4143 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4144 Free Software Foundation, Inc.
4145 This config.status script is free software; the Free Software Foundation
4146 gives unlimited permission to copy, distribute and modify it."
4147 srcdir=$srcdir
4148 _ACEOF
4150 cat >>$CONFIG_STATUS <<\_ACEOF
4151 # If no file are specified by the user, then we need to provide default
4152 # value. By we need to know if files were specified by the user.
4153 ac_need_defaults=:
4154 while test $# != 0
4156 case $1 in
4157 --*=*)
4158 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4159 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4160 ac_shift=:
4163 ac_option=$1
4164 ac_optarg=$2
4165 ac_shift=shift
4167 *) # This is not an option, so the user has probably given explicit
4168 # arguments.
4169 ac_option=$1
4170 ac_need_defaults=false;;
4171 esac
4173 case $ac_option in
4174 # Handling of the options.
4175 _ACEOF
4176 cat >>$CONFIG_STATUS <<\_ACEOF
4177 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4178 ac_cs_recheck=: ;;
4179 --version | --vers* | -V )
4180 echo "$ac_cs_version"; exit 0 ;;
4181 --he | --h)
4182 # Conflict between --help and --header
4183 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4184 Try \`$0 --help' for more information." >&5
4185 echo "$as_me: error: ambiguous option: $1
4186 Try \`$0 --help' for more information." >&2;}
4187 { (exit 1); exit 1; }; };;
4188 --help | --hel | -h )
4189 echo "$ac_cs_usage"; exit 0 ;;
4190 --debug | --d* | -d )
4191 debug=: ;;
4192 --file | --fil | --fi | --f )
4193 $ac_shift
4194 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4195 ac_need_defaults=false;;
4196 --header | --heade | --head | --hea )
4197 $ac_shift
4198 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4199 ac_need_defaults=false;;
4200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4201 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4202 ac_cs_silent=: ;;
4204 # This is an error.
4205 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4206 Try \`$0 --help' for more information." >&5
4207 echo "$as_me: error: unrecognized option: $1
4208 Try \`$0 --help' for more information." >&2;}
4209 { (exit 1); exit 1; }; } ;;
4211 *) ac_config_targets="$ac_config_targets $1" ;;
4213 esac
4214 shift
4215 done
4217 ac_configure_extra_args=
4219 if $ac_cs_silent; then
4220 exec 6>/dev/null
4221 ac_configure_extra_args="$ac_configure_extra_args --silent"
4224 _ACEOF
4225 cat >>$CONFIG_STATUS <<_ACEOF
4226 if \$ac_cs_recheck; then
4227 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4228 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4231 _ACEOF
4237 cat >>$CONFIG_STATUS <<\_ACEOF
4238 for ac_config_target in $ac_config_targets
4240 case "$ac_config_target" in
4241 # Handling of arguments.
4242 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4243 "config.h" ) CONFIG_FILES="$CONFIG_FILES config.h" ;;
4244 "config/wmradio-config.py" ) CONFIG_FILES="$CONFIG_FILES config/wmradio-config.py" ;;
4245 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4246 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4247 { (exit 1); exit 1; }; };;
4248 esac
4249 done
4251 # If the user did not use the arguments to specify the items to instantiate,
4252 # then the envvar interface is used. Set only those that are not.
4253 # We use the long form for the default assignment because of an extremely
4254 # bizarre bug on SunOS 4.1.3.
4255 if $ac_need_defaults; then
4256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4259 # Have a temporary directory for convenience. Make it in the build tree
4260 # simply because there is no reason to put it here, and in addition,
4261 # creating and moving files from /tmp can sometimes cause problems.
4262 # Create a temporary directory, and hook for its removal unless debugging.
4263 $debug ||
4265 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4266 trap '{ (exit 1); exit 1; }' 1 2 13 15
4269 # Create a (secure) tmp directory for tmp files.
4272 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4273 test -n "$tmp" && test -d "$tmp"
4274 } ||
4276 tmp=./confstat$$-$RANDOM
4277 (umask 077 && mkdir $tmp)
4278 } ||
4280 echo "$me: cannot create a temporary directory in ." >&2
4281 { (exit 1); exit 1; }
4284 _ACEOF
4286 cat >>$CONFIG_STATUS <<_ACEOF
4289 # CONFIG_FILES section.
4292 # No need to generate the scripts if there are no CONFIG_FILES.
4293 # This happens for instance when ./config.status config.h
4294 if test -n "\$CONFIG_FILES"; then
4295 # Protect against being on the right side of a sed subst in config.status.
4296 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4297 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4298 s,@SHELL@,$SHELL,;t t
4299 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4300 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4301 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4302 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4303 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4304 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4305 s,@exec_prefix@,$exec_prefix,;t t
4306 s,@prefix@,$prefix,;t t
4307 s,@program_transform_name@,$program_transform_name,;t t
4308 s,@bindir@,$bindir,;t t
4309 s,@sbindir@,$sbindir,;t t
4310 s,@libexecdir@,$libexecdir,;t t
4311 s,@datadir@,$datadir,;t t
4312 s,@sysconfdir@,$sysconfdir,;t t
4313 s,@sharedstatedir@,$sharedstatedir,;t t
4314 s,@localstatedir@,$localstatedir,;t t
4315 s,@libdir@,$libdir,;t t
4316 s,@includedir@,$includedir,;t t
4317 s,@oldincludedir@,$oldincludedir,;t t
4318 s,@infodir@,$infodir,;t t
4319 s,@mandir@,$mandir,;t t
4320 s,@build_alias@,$build_alias,;t t
4321 s,@host_alias@,$host_alias,;t t
4322 s,@target_alias@,$target_alias,;t t
4323 s,@DEFS@,$DEFS,;t t
4324 s,@ECHO_C@,$ECHO_C,;t t
4325 s,@ECHO_N@,$ECHO_N,;t t
4326 s,@ECHO_T@,$ECHO_T,;t t
4327 s,@LIBS@,$LIBS,;t t
4328 s,@CC@,$CC,;t t
4329 s,@CFLAGS@,$CFLAGS,;t t
4330 s,@LDFLAGS@,$LDFLAGS,;t t
4331 s,@CPPFLAGS@,$CPPFLAGS,;t t
4332 s,@ac_ct_CC@,$ac_ct_CC,;t t
4333 s,@EXEEXT@,$EXEEXT,;t t
4334 s,@OBJEXT@,$OBJEXT,;t t
4335 s,@CPP@,$CPP,;t t
4336 s,@X_CFLAGS@,$X_CFLAGS,;t t
4337 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
4338 s,@X_LIBS@,$X_LIBS,;t t
4339 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
4340 s,@TARGETS@,$TARGETS,;t t
4341 s,@HAVE_XOSD@,$HAVE_XOSD,;t t
4342 s,@LIBXOSD_CONFIG@,$LIBXOSD_CONFIG,;t t
4343 s,@LIBXOSD_CFLAGS@,$LIBXOSD_CFLAGS,;t t
4344 s,@LIBXOSD_LIBS@,$LIBXOSD_LIBS,;t t
4345 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
4346 s,@PANEL_LIBS@,$PANEL_LIBS,;t t
4347 s,@PANEL_CFLAGS@,$PANEL_CFLAGS,;t t
4348 s,@LIBOBJS@,$LIBOBJS,;t t
4349 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4350 CEOF
4352 _ACEOF
4354 cat >>$CONFIG_STATUS <<\_ACEOF
4355 # Split the substitutions into bite-sized pieces for seds with
4356 # small command number limits, like on Digital OSF/1 and HP-UX.
4357 ac_max_sed_lines=48
4358 ac_sed_frag=1 # Number of current file.
4359 ac_beg=1 # First line for current file.
4360 ac_end=$ac_max_sed_lines # Line after last line for current file.
4361 ac_more_lines=:
4362 ac_sed_cmds=
4363 while $ac_more_lines; do
4364 if test $ac_beg -gt 1; then
4365 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4366 else
4367 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4369 if test ! -s $tmp/subs.frag; then
4370 ac_more_lines=false
4371 else
4372 # The purpose of the label and of the branching condition is to
4373 # speed up the sed processing (if there are no `@' at all, there
4374 # is no need to browse any of the substitutions).
4375 # These are the two extra sed commands mentioned above.
4376 (echo ':t
4377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4378 if test -z "$ac_sed_cmds"; then
4379 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4380 else
4381 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4383 ac_sed_frag=`expr $ac_sed_frag + 1`
4384 ac_beg=$ac_end
4385 ac_end=`expr $ac_end + $ac_max_sed_lines`
4387 done
4388 if test -z "$ac_sed_cmds"; then
4389 ac_sed_cmds=cat
4391 fi # test -n "$CONFIG_FILES"
4393 _ACEOF
4394 cat >>$CONFIG_STATUS <<\_ACEOF
4395 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4397 case $ac_file in
4398 - | *:- | *:-:* ) # input from stdin
4399 cat >$tmp/stdin
4400 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4402 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4403 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4404 * ) ac_file_in=$ac_file.in ;;
4405 esac
4407 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4408 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4409 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4410 X"$ac_file" : 'X\(//\)[^/]' \| \
4411 X"$ac_file" : 'X\(//\)$' \| \
4412 X"$ac_file" : 'X\(/\)' \| \
4413 . : '\(.\)' 2>/dev/null ||
4414 echo X"$ac_file" |
4415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4417 /^X\(\/\/\)$/{ s//\1/; q; }
4418 /^X\(\/\).*/{ s//\1/; q; }
4419 s/.*/./; q'`
4420 { if $as_mkdir_p; then
4421 mkdir -p "$ac_dir"
4422 else
4423 as_dir="$ac_dir"
4424 as_dirs=
4425 while test ! -d "$as_dir"; do
4426 as_dirs="$as_dir $as_dirs"
4427 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4429 X"$as_dir" : 'X\(//\)[^/]' \| \
4430 X"$as_dir" : 'X\(//\)$' \| \
4431 X"$as_dir" : 'X\(/\)' \| \
4432 . : '\(.\)' 2>/dev/null ||
4433 echo X"$as_dir" |
4434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4436 /^X\(\/\/\)$/{ s//\1/; q; }
4437 /^X\(\/\).*/{ s//\1/; q; }
4438 s/.*/./; q'`
4439 done
4440 test ! -n "$as_dirs" || mkdir $as_dirs
4441 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4442 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4443 { (exit 1); exit 1; }; }; }
4445 ac_builddir=.
4447 if test "$ac_dir" != .; then
4448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4449 # A "../" for each directory in $ac_dir_suffix.
4450 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4451 else
4452 ac_dir_suffix= ac_top_builddir=
4455 case $srcdir in
4456 .) # No --srcdir option. We are building in place.
4457 ac_srcdir=.
4458 if test -z "$ac_top_builddir"; then
4459 ac_top_srcdir=.
4460 else
4461 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4462 fi ;;
4463 [\\/]* | ?:[\\/]* ) # Absolute path.
4464 ac_srcdir=$srcdir$ac_dir_suffix;
4465 ac_top_srcdir=$srcdir ;;
4466 *) # Relative path.
4467 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4468 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4469 esac
4470 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4471 # absolute.
4472 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4473 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4474 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4475 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4479 if test x"$ac_file" != x-; then
4480 { echo "$as_me:$LINENO: creating $ac_file" >&5
4481 echo "$as_me: creating $ac_file" >&6;}
4482 rm -f "$ac_file"
4484 # Let's still pretend it is `configure' which instantiates (i.e., don't
4485 # use $as_me), people would be surprised to read:
4486 # /* config.h. Generated by config.status. */
4487 if test x"$ac_file" = x-; then
4488 configure_input=
4489 else
4490 configure_input="$ac_file. "
4492 configure_input=$configure_input"Generated from `echo $ac_file_in |
4493 sed 's,.*/,,'` by configure."
4495 # First look for the input files in the build tree, otherwise in the
4496 # src tree.
4497 ac_file_inputs=`IFS=:
4498 for f in $ac_file_in; do
4499 case $f in
4500 -) echo $tmp/stdin ;;
4501 [\\/$]*)
4502 # Absolute (can't be DOS-style, as IFS=:)
4503 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4504 echo "$as_me: error: cannot find input file: $f" >&2;}
4505 { (exit 1); exit 1; }; }
4506 echo $f;;
4507 *) # Relative
4508 if test -f "$f"; then
4509 # Build tree
4510 echo $f
4511 elif test -f "$srcdir/$f"; then
4512 # Source tree
4513 echo $srcdir/$f
4514 else
4515 # /dev/null tree
4516 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4517 echo "$as_me: error: cannot find input file: $f" >&2;}
4518 { (exit 1); exit 1; }; }
4519 fi;;
4520 esac
4521 done` || { (exit 1); exit 1; }
4522 _ACEOF
4523 cat >>$CONFIG_STATUS <<_ACEOF
4524 sed "$ac_vpsub
4525 $extrasub
4526 _ACEOF
4527 cat >>$CONFIG_STATUS <<\_ACEOF
4529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4530 s,@configure_input@,$configure_input,;t t
4531 s,@srcdir@,$ac_srcdir,;t t
4532 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4533 s,@top_srcdir@,$ac_top_srcdir,;t t
4534 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4535 s,@builddir@,$ac_builddir,;t t
4536 s,@abs_builddir@,$ac_abs_builddir,;t t
4537 s,@top_builddir@,$ac_top_builddir,;t t
4538 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4539 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4540 rm -f $tmp/stdin
4541 if test x"$ac_file" != x-; then
4542 mv $tmp/out $ac_file
4543 else
4544 cat $tmp/out
4545 rm -f $tmp/out
4548 done
4549 _ACEOF
4551 cat >>$CONFIG_STATUS <<\_ACEOF
4553 { (exit 0); exit 0; }
4554 _ACEOF
4555 chmod +x $CONFIG_STATUS
4556 ac_clean_files=$ac_clean_files_save
4559 # configure is writing to config.log, and then calls config.status.
4560 # config.status does its own redirection, appending to config.log.
4561 # Unfortunately, on DOS this fails, as config.log is still kept open
4562 # by configure, so config.status won't be able to write to it; its
4563 # output is simply discarded. So we exec the FD to /dev/null,
4564 # effectively closing config.log, so it can be properly (re)opened and
4565 # appended to by config.status. When coming back to configure, we
4566 # need to make the FD available again.
4567 if test "$no_create" != yes; then
4568 ac_cs_success=:
4569 ac_config_status_args=
4570 test "$silent" = yes &&
4571 ac_config_status_args="$ac_config_status_args --quiet"
4572 exec 5>/dev/null
4573 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4574 exec 5>>config.log
4575 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4576 # would make configure fail if this is the last instruction.
4577 $ac_cs_success || { (exit 1); exit 1; }