Debian Codegraph @

configure

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-rplayd-user=USER"
16 ac_help="$ac_help
17 --enable-rplayd-group=GROUP"
18
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
22 build=NONE
23 cache_file=./config.cache
24 exec_prefix=NONE
25 host=NONE
26 no_create=
27 nonopt=NONE
28 no_recursion=
29 prefix=NONE
30 program_prefix=NONE
31 program_suffix=NONE
32 program_transform_name=s,x,x,
33 silent=
34 site=
35 srcdir=
36 target=NONE
37 verbose=
38 x_includes=NONE
39 x_libraries=NONE
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
52
53 # Initialize some other variables.
54 subdirs=
55 MFLAGS= MAKEFLAGS=
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
58 ac_max_here_lines=12
59
60 ac_prev=
61 for ac_option
62 do
63
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
67 ac_prev=
68 continue
69 fi
70
71 case "$ac_option" in
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73 *) ac_optarg= ;;
74 esac
75
76 # Accept the important Cygnus configure options, so we can diagnose typos.
77
78 case "$ac_option" in
79
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
81 ac_prev=bindir ;;
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
84
85 -build | --build | --buil | --bui | --bu)
86 ac_prev=build ;;
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88 build="$ac_optarg" ;;
89
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92 ac_prev=cache_file ;;
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
96
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98 ac_prev=datadir ;;
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100 | --da=*)
101 datadir="$ac_optarg" ;;
102
103 -disable-* | --disable-*)
104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108 fi
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
111
112 -enable-* | --enable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 fi
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 case "$ac_option" in
120 *=*) ;;
121 *) ac_optarg=yes ;;
122 esac
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
124
125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127 | --exec | --exe | --ex)
128 ac_prev=exec_prefix ;;
129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131 | --exec=* | --exe=* | --ex=*)
132 exec_prefix="$ac_optarg" ;;
133
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
136 with_gas=yes ;;
137
138 -help | --help | --hel | --he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
141 cat << EOF
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
144 Configuration:
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
152 [$ac_default_prefix]
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
154 [same as prefix]
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
159 [PREFIX/share]
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
162 [PREFIX/com]
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
174 EOF
175 cat << EOF
176 Host type:
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
187 EOF
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
190 fi
191 exit 0 ;;
192
193 -host | --host | --hos | --ho)
194 ac_prev=host ;;
195 -host=* | --host=* | --hos=* | --ho=*)
196 host="$ac_optarg" ;;
197
198 -includedir | --includedir | --includedi | --included | --include \
199 | --includ | --inclu | --incl | --inc)
200 ac_prev=includedir ;;
201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202 | --includ=* | --inclu=* | --incl=* | --inc=*)
203 includedir="$ac_optarg" ;;
204
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
206 ac_prev=infodir ;;
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
209
210 -libdir | --libdir | --libdi | --libd)
211 ac_prev=libdir ;;
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
214
215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216 | --libexe | --libex | --libe)
217 ac_prev=libexecdir ;;
218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219 | --libexe=* | --libex=* | --libe=*)
220 libexecdir="$ac_optarg" ;;
221
222 -localstatedir | --localstatedir | --localstatedi | --localstated \
223 | --localstate | --localstat | --localsta | --localst \
224 | --locals | --local | --loca | --loc | --lo)
225 ac_prev=localstatedir ;;
226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229 localstatedir="$ac_optarg" ;;
230
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232 ac_prev=mandir ;;
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
235
236 -nfp | --nfp | --nf)
237 # Obsolete; use --without-fp.
238 with_fp=no ;;
239
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241 | --no-cr | --no-c)
242 no_create=yes ;;
243
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246 no_recursion=yes ;;
247
248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250 | --oldin | --oldi | --old | --ol | --o)
251 ac_prev=oldincludedir ;;
252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255 oldincludedir="$ac_optarg" ;;
256
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258 ac_prev=prefix ;;
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
261
262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
263 | --program-pre | --program-pr | --program-p)
264 ac_prev=program_prefix ;;
265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267 program_prefix="$ac_optarg" ;;
268
269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
270 | --program-suf | --program-su | --program-s)
271 ac_prev=program_suffix ;;
272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274 program_suffix="$ac_optarg" ;;
275
276 -program-transform-name | --program-transform-name \
277 | --program-transform-nam | --program-transform-na \
278 | --program-transform-n | --program-transform- \
279 | --program-transform | --program-transfor \
280 | --program-transfo | --program-transf \
281 | --program-trans | --program-tran \
282 | --progr-tra | --program-tr | --program-t)
283 ac_prev=program_transform_name ;;
284 -program-transform-name=* | --program-transform-name=* \
285 | --program-transform-nam=* | --program-transform-na=* \
286 | --program-transform-n=* | --program-transform-=* \
287 | --program-transform=* | --program-transfor=* \
288 | --program-transfo=* | --program-transf=* \
289 | --program-trans=* | --program-tran=* \
290 | --progr-tra=* | --program-tr=* | --program-t=*)
291 program_transform_name="$ac_optarg" ;;
292
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
295 silent=yes ;;
296
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298 ac_prev=sbindir ;;
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300 | --sbi=* | --sb=*)
301 sbindir="$ac_optarg" ;;
302
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
306 | --sha | --sh)
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311 | --sha=* | --sh=*)
312 sharedstatedir="$ac_optarg" ;;
313
314 -site | --site | --sit)
315 ac_prev=site ;;
316 -site=* | --site=* | --sit=*)
317 site="$ac_optarg" ;;
318
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320 ac_prev=srcdir ;;
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
323
324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325 | --syscon | --sysco | --sysc | --sys | --sy)
326 ac_prev=sysconfdir ;;
327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329 sysconfdir="$ac_optarg" ;;
330
331 -target | --target | --targe | --targ | --tar | --ta | --t)
332 ac_prev=target ;;
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
335
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
337 verbose=yes ;;
338
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.13"
341 exit 0 ;;
342
343 -with-* | --with-*)
344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348 fi
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
350 case "$ac_option" in
351 *=*) ;;
352 *) ac_optarg=yes ;;
353 esac
354 eval "with_${ac_package}='$ac_optarg'" ;;
355
356 -without-* | --without-*)
357 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 fi
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
364
365 --x)
366 # Obsolete; use --with-x.
367 with_x=yes ;;
368
369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370 | --x-incl | --x-inc | --x-in | --x-i)
371 ac_prev=x_includes ;;
372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374 x_includes="$ac_optarg" ;;
375
376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378 ac_prev=x_libraries ;;
379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381 x_libraries="$ac_optarg" ;;
382
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384 ;;
385
386 *)
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
389 fi
390 if test "x$nonopt" != xNONE; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
392 fi
393 nonopt="$ac_option"
394 ;;
395
396 esac
397 done
398
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 fi
402
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404
405 # File descriptor usage:
406 # 0 standard input
407 # 1 file creation
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
414 exec 6>/dev/null
415 else
416 exec 6>&1
417 fi
418 exec 5>./config.log
419
420 echo "\
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
423 " 1>&5
424
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
427 ac_configure_args=
428 for ac_arg
429 do
430 case "$ac_arg" in
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c) ;;
433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438 esac
439 done
440
441 # NLS nuisances.
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
450
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 echo > confdefs.h
455
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=rplayd/rplayd.c
459
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
464 ac_prog=$0
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467 srcdir=$ac_confdir
468 if test ! -r $srcdir/$ac_unique_file; then
469 srcdir=..
470 fi
471 else
472 ac_srcdir_defaulted=no
473 fi
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477 else
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 fi
480 fi
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487 else
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 fi
490 fi
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
494 . "$ac_site_file"
495 fi
496 done
497
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
500 . $cache_file
501 else
502 echo "creating cache $cache_file"
503 > $cache_file
504 fi
505
506 ac_ext=c
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
512
513 ac_exeext=
514 ac_objext=o
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
518 ac_n= ac_c='
519 ' ac_t=' '
520 else
521 ac_n=-n ac_c= ac_t=
522 fi
523 else
524 ac_n= ac_c='\c' ac_t=
525 fi
526
527
528
529
•530 BUILD_TARGETS="include lib adpcm"
531
532
533 export srcdir
534 RPLAY_VERSION=`$srcdir/version`
535
536 echo configuring rplay version $RPLAY_VERSION
537
538 cat >> confdefs.h <<EOF
539 #define RPLAY_VERSION "$RPLAY_VERSION"
540 EOF
541
542
543 # We want these before the checks, so the checks can modify their values.
544 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
545
546 # Extract the first word of "gcc", so it can be a program name with args.
547 set dummy gcc; ac_word=$2
548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•549 echo "configure:550: checking for $ac_word" >&5
550 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
551 echo $ac_n "(cached) $ac_c" 1>&6
552 else
553 if test -n "$CC"; then
554 ac_cv_prog_CC="$CC" # Let the user override the test.
555 else
556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
557 ac_dummy="$PATH"
558 for ac_dir in $ac_dummy; do
559 test -z "$ac_dir" && ac_dir=.
560 if test -f $ac_dir/$ac_word; then
561 ac_cv_prog_CC="gcc"
562 break
563 fi
564 done
565 IFS="$ac_save_ifs"
566 fi
567 fi
568 CC="$ac_cv_prog_CC"
569 if test -n "$CC"; then
570 echo "$ac_t""$CC" 1>&6
571 else
572 echo "$ac_t""no" 1>&6
573 fi
574
575 if test -z "$CC"; then
576 # Extract the first word of "cc", so it can be a program name with args.
577 set dummy cc; ac_word=$2
578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•579 echo "configure:580: checking for $ac_word" >&5
580 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
581 echo $ac_n "(cached) $ac_c" 1>&6
582 else
583 if test -n "$CC"; then
584 ac_cv_prog_CC="$CC" # Let the user override the test.
585 else
586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
587 ac_prog_rejected=no
588 ac_dummy="$PATH"
589 for ac_dir in $ac_dummy; do
590 test -z "$ac_dir" && ac_dir=.
591 if test -f $ac_dir/$ac_word; then
592 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
593 ac_prog_rejected=yes
594 continue
595 fi
596 ac_cv_prog_CC="cc"
597 break
598 fi
599 done
600 IFS="$ac_save_ifs"
601 if test $ac_prog_rejected = yes; then
602 # We found a bogon in the path, so make sure we never use it.
603 set dummy $ac_cv_prog_CC
604 shift
605 if test $# -gt 0; then
606 # We chose a different compiler from the bogus one.
607 # However, it has the same basename, so the bogon will be chosen
608 # first if we set CC to just the basename; use the full file name.
609 shift
610 set dummy "$ac_dir/$ac_word" "$@"
611 shift
612 ac_cv_prog_CC="$@"
613 fi
614 fi
615 fi
616 fi
617 CC="$ac_cv_prog_CC"
618 if test -n "$CC"; then
619 echo "$ac_t""$CC" 1>&6
620 else
621 echo "$ac_t""no" 1>&6
622 fi
623
624 if test -z "$CC"; then
625 case "`uname -s`" in
626 *win32* | *WIN32*)
627 # Extract the first word of "cl", so it can be a program name with args.
628 set dummy cl; ac_word=$2
629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•630 echo "configure:631: checking for $ac_word" >&5
631 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
632 echo $ac_n "(cached) $ac_c" 1>&6
633 else
634 if test -n "$CC"; then
635 ac_cv_prog_CC="$CC" # Let the user override the test.
636 else
637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
638 ac_dummy="$PATH"
639 for ac_dir in $ac_dummy; do
640 test -z "$ac_dir" && ac_dir=.
641 if test -f $ac_dir/$ac_word; then
642 ac_cv_prog_CC="cl"
643 break
644 fi
645 done
646 IFS="$ac_save_ifs"
647 fi
648 fi
649 CC="$ac_cv_prog_CC"
650 if test -n "$CC"; then
651 echo "$ac_t""$CC" 1>&6
652 else
653 echo "$ac_t""no" 1>&6
654 fi
655 ;;
656 esac
657 fi
658 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
659 fi
660
661 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
•662 echo "configure:663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
663
664 ac_ext=c
665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
666 ac_cpp='$CPP $CPPFLAGS'
667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
669 cross_compiling=$ac_cv_prog_cc_cross
670
671 cat > conftest.$ac_ext << EOF
672
•673 #line 674 "configure"
674 #include "confdefs.h"
675
676 main(){return(0);}
677 EOF
•678 if { (eval echo configure:679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
679 ac_cv_prog_cc_works=yes
680 # If we can't run a trivial program, we are probably using a cross compiler.
681 if (./conftest; exit) 2>/dev/null; then
682 ac_cv_prog_cc_cross=no
683 else
684 ac_cv_prog_cc_cross=yes
685 fi
686 else
687 echo "configure: failed program was:" >&5
688 cat conftest.$ac_ext >&5
689 ac_cv_prog_cc_works=no
690 fi
691 rm -fr conftest*
692 ac_ext=c
693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
694 ac_cpp='$CPP $CPPFLAGS'
695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
697 cross_compiling=$ac_cv_prog_cc_cross
698
699 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
700 if test $ac_cv_prog_cc_works = no; then
701 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
702 fi
703 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
•704 echo "configure:705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
705 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
706 cross_compiling=$ac_cv_prog_cc_cross
707
708 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
•709 echo "configure:710: checking whether we are using GNU C" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
712 else
713 cat > conftest.c <<EOF
714 #ifdef __GNUC__
715 yes;
716 #endif
717 EOF
•718 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
719 ac_cv_prog_gcc=yes
720 else
721 ac_cv_prog_gcc=no
722 fi
723 fi
724
725 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
726
727 if test $ac_cv_prog_gcc = yes; then
728 GCC=yes
729 else
730 GCC=
731 fi
732
733 ac_test_CFLAGS="${CFLAGS+set}"
734 ac_save_CFLAGS="$CFLAGS"
735 CFLAGS=
736 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
•737 echo "configure:738: checking whether ${CC-cc} accepts -g" >&5
738 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&6
740 else
741 echo 'void f(){}' > conftest.c
742 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
743 ac_cv_prog_cc_g=yes
744 else
745 ac_cv_prog_cc_g=no
746 fi
747 rm -f conftest*
748
749 fi
750
751 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
752 if test "$ac_test_CFLAGS" = set; then
753 CFLAGS="$ac_save_CFLAGS"
754 elif test $ac_cv_prog_cc_g = yes; then
755 if test "$GCC" = yes; then
756 CFLAGS="-g -O2"
757 else
758 CFLAGS="-g"
759 fi
760 else
761 if test "$GCC" = yes; then
762 CFLAGS="-O2"
763 else
764 CFLAGS=
765 fi
766 fi
767
768
769 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
770 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
771
772
773 # Check whether --enable-rplayd-user or --disable-rplayd-user was given.
774 if test "${enable_rplayd_user+set}" = set; then
775 enableval="$enable_rplayd_user"
776 RPLAYD_USER=$enableval
777 fi
778
779 # Check whether --enable-rplayd-group or --disable-rplayd-group was given.
780 if test "${enable_rplayd_group+set}" = set; then
781 enableval="$enable_rplayd_group"
782 RPLAYD_GROUP=$enableval
783 fi
784
785 if test -n "$RPLAYD_USER"
786 then
787 cat >> confdefs.h <<EOF
788 #define RPLAYD_USER "$RPLAYD_USER"
789 EOF
790
791 fi
792 if test -n "$RPLAYD_GROUP"
793 then
794 cat >> confdefs.h <<EOF
795 #define RPLAYD_GROUP "$RPLAYD_GROUP"
796 EOF
797
798 fi
799
800
801 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
•802 echo "configure:803: checking for POSIXized ISC" >&5
803 if test -d /etc/conf/kconfig.d &&
804 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
805 then
806 echo "$ac_t""yes" 1>&6
807 ISC=yes # If later tests want to check for ISC.
808 cat >> confdefs.h <<\EOF
809 #define _POSIX_SOURCE 1
810 EOF
811
812 if test "$GCC" = yes; then
813 CC="$CC -posix"
814 else
815 CC="$CC -Xp"
816 fi
817 else
818 echo "$ac_t""no" 1>&6
819 ISC=
820 fi
821
822 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
•823 echo "configure:824: checking how to run the C preprocessor" >&5
824 # On Suns, sometimes $CPP names a directory.
825 if test -n "$CPP" && test -d "$CPP"; then
826 CPP=
827 fi
828 if test -z "$CPP"; then
829 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
831 else
832 # This must be in double quotes, not single quotes, because CPP may get
833 # substituted into the Makefile and "${CC-cc}" will confuse make.
834 CPP="${CC-cc} -E"
835 # On the NeXT, cc -E runs the code through the compiler's parser,
836 # not just through cpp.
837 cat > conftest.$ac_ext <<EOF
•838 #line 839 "configure"
839 #include "confdefs.h"
840 #include <assert.h>
841 Syntax Error
842 EOF
843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
•844 { (eval echo configure:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
846 if test -z "$ac_err"; then
847 :
848 else
849 echo "$ac_err" >&5
850 echo "configure: failed program was:" >&5
851 cat conftest.$ac_ext >&5
852 rm -rf conftest*
853 CPP="${CC-cc} -E -traditional-cpp"
854 cat > conftest.$ac_ext <<EOF
•855 #line 856 "configure"
856 #include "confdefs.h"
857 #include <assert.h>
858 Syntax Error
859 EOF
860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
•861 { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
863 if test -z "$ac_err"; then
864 :
865 else
866 echo "$ac_err" >&5
867 echo "configure: failed program was:" >&5
868 cat conftest.$ac_ext >&5
869 rm -rf conftest*
870 CPP="${CC-cc} -nologo -E"
871 cat > conftest.$ac_ext <<EOF
•872 #line 873 "configure"
873 #include "confdefs.h"
874 #include <assert.h>
875 Syntax Error
876 EOF
877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
•878 { (eval echo configure:879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
880 if test -z "$ac_err"; then
881 :
882 else
883 echo "$ac_err" >&5
884 echo "configure: failed program was:" >&5
885 cat conftest.$ac_ext >&5
886 rm -rf conftest*
887 CPP=/lib/cpp
888 fi
889 rm -f conftest*
890 fi
891 rm -f conftest*
892 fi
893 rm -f conftest*
894 ac_cv_prog_CPP="$CPP"
895 fi
896 CPP="$ac_cv_prog_CPP"
897 else
898 ac_cv_prog_CPP="$CPP"
899 fi
900 echo "$ac_t""$CPP" 1>&6
901
902 ac_aux_dir=
903 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
904 if test -f $ac_dir/install-sh; then
905 ac_aux_dir=$ac_dir
906 ac_install_sh="$ac_aux_dir/install-sh -c"
907 break
908 elif test -f $ac_dir/install.sh; then
909 ac_aux_dir=$ac_dir
910 ac_install_sh="$ac_aux_dir/install.sh -c"
911 break
912 fi
913 done
914 if test -z "$ac_aux_dir"; then
915 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
916 fi
917 ac_config_guess=$ac_aux_dir/config.guess
918 ac_config_sub=$ac_aux_dir/config.sub
919 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
920
921 # Find a good install program. We prefer a C program (faster),
922 # so one script is as good as another. But avoid the broken or
923 # incompatible versions:
924 # SysV /etc/install, /usr/sbin/install
925 # SunOS /usr/etc/install
926 # IRIX /sbin/install
927 # AIX /bin/install
928 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
931 # ./install, which can be erroneously created by make from ./install.sh.
932 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
•933 echo "configure:934: checking for a BSD compatible install" >&5
934 if test -z "$INSTALL"; then
935 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
937 else
938 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
939 for ac_dir in $PATH; do
940 # Account for people who put trailing slashes in PATH elements.
941 case "$ac_dir/" in
942 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
943 *)
944 # OSF1 and SCO ODT 3.0 have their own names for install.
945 # Don't use installbsd from OSF since it installs stuff as root
946 # by default.
947 for ac_prog in ginstall scoinst install; do
948 if test -f $ac_dir/$ac_prog; then
949 if test $ac_prog = install &&
950 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
951 # AIX install. It has an incompatible calling convention.
952 :
953 else
954 ac_cv_path_install="$ac_dir/$ac_prog -c"
955 break 2
956 fi
957 fi
958 done
959 ;;
960 esac
961 done
962 IFS="$ac_save_IFS"
963
964 fi
965 if test "${ac_cv_path_install+set}" = set; then
966 INSTALL="$ac_cv_path_install"
967 else
968 # As a last resort, use the slow shell script. We don't cache a
969 # path for INSTALL within a source directory, because that will
970 # break other packages using the cache if that directory is
971 # removed, or if the path is relative.
972 INSTALL="$ac_install_sh"
973 fi
974 fi
975 echo "$ac_t""$INSTALL" 1>&6
976
977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
978 # It thinks the first close brace ends the variable substitution.
979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
980
981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
982
983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
984
985 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
•986 echo "configure:987: checking whether ln -s works" >&5
987 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989 else
990 rm -f conftestdata
991 if ln -s X conftestdata 2>/dev/null
992 then
993 rm -f conftestdata
994 ac_cv_prog_LN_S="ln -s"
995 else
996 ac_cv_prog_LN_S=ln
997 fi
998 fi
999 LN_S="$ac_cv_prog_LN_S"
1000 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1001 echo "$ac_t""yes" 1>&6
1002 else
1003 echo "$ac_t""no" 1>&6
1004 fi
1005
1006 # Extract the first word of "ranlib", so it can be a program name with args.
1007 set dummy ranlib; ac_word=$2
1008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•1009 echo "configure:1010: checking for $ac_word" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1012 else
1013 if test -n "$RANLIB"; then
1014 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1015 else
1016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1017 ac_dummy="$PATH"
1018 for ac_dir in $ac_dummy; do
1019 test -z "$ac_dir" && ac_dir=.
1020 if test -f $ac_dir/$ac_word; then
1021 ac_cv_prog_RANLIB="ranlib"
1022 break
1023 fi
1024 done
1025 IFS="$ac_save_ifs"
1026 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1027 fi
1028 fi
1029 RANLIB="$ac_cv_prog_RANLIB"
1030 if test -n "$RANLIB"; then
1031 echo "$ac_t""$RANLIB" 1>&6
1032 else
1033 echo "$ac_t""no" 1>&6
1034 fi
1035
1036 for ac_prog in etags
1037 do
1038 # Extract the first word of "$ac_prog", so it can be a program name with args.
1039 set dummy $ac_prog; ac_word=$2
1040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•1041 echo "configure:1042: checking for $ac_word" >&5
1042 if eval "test \"`echo '$''{'ac_cv_prog_ETAGS'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1044 else
1045 if test -n "$ETAGS"; then
1046 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
1047 else
1048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1049 ac_dummy="$PATH"
1050 for ac_dir in $ac_dummy; do
1051 test -z "$ac_dir" && ac_dir=.
1052 if test -f $ac_dir/$ac_word; then
1053 ac_cv_prog_ETAGS="$ac_prog"
1054 break
1055 fi
1056 done
1057 IFS="$ac_save_ifs"
1058 fi
1059 fi
1060 ETAGS="$ac_cv_prog_ETAGS"
1061 if test -n "$ETAGS"; then
1062 echo "$ac_t""$ETAGS" 1>&6
1063 else
1064 echo "$ac_t""no" 1>&6
1065 fi
1066
1067 test -n "$ETAGS" && break
1068 done
1069 test -n "$ETAGS" || ETAGS="true"
1070
1071 for ac_prog in makedepend
1072 do
1073 # Extract the first word of "$ac_prog", so it can be a program name with args.
1074 set dummy $ac_prog; ac_word=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_MAKEDEPEND'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1079 else
1080 if test -n "$MAKEDEPEND"; then
1081 ac_cv_prog_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test.
1082 else
1083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1084 ac_dummy="$PATH"
1085 for ac_dir in $ac_dummy; do
1086 test -z "$ac_dir" && ac_dir=.
1087 if test -f $ac_dir/$ac_word; then
1088 ac_cv_prog_MAKEDEPEND="$ac_prog"
1089 break
1090 fi
1091 done
1092 IFS="$ac_save_ifs"
1093 fi
1094 fi
1095 MAKEDEPEND="$ac_cv_prog_MAKEDEPEND"
1096 if test -n "$MAKEDEPEND"; then
1097 echo "$ac_t""$MAKEDEPEND" 1>&6
1098 else
1099 echo "$ac_t""no" 1>&6
1100 fi
1101
1102 test -n "$MAKEDEPEND" && break
1103 done
1104 test -n "$MAKEDEPEND" || MAKEDEPEND="true"
1105
1106 for ac_prog in makeinfo
1107 do
1108 # Extract the first word of "$ac_prog", so it can be a program name with args.
1109 set dummy $ac_prog; ac_word=$2
1110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•1111 echo "configure:1112: checking for $ac_word" >&5
1112 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1114 else
1115 if test -n "$MAKEINFO"; then
1116 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1117 else
1118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1119 ac_dummy="$PATH"
1120 for ac_dir in $ac_dummy; do
1121 test -z "$ac_dir" && ac_dir=.
1122 if test -f $ac_dir/$ac_word; then
1123 ac_cv_prog_MAKEINFO="$ac_prog"
1124 break
1125 fi
1126 done
1127 IFS="$ac_save_ifs"
1128 fi
1129 fi
1130 MAKEINFO="$ac_cv_prog_MAKEINFO"
1131 if test -n "$MAKEINFO"; then
1132 echo "$ac_t""$MAKEINFO" 1>&6
1133 else
1134 echo "$ac_t""no" 1>&6
1135 fi
1136
1137 test -n "$MAKEINFO" && break
1138 done
1139 test -n "$MAKEINFO" || MAKEINFO="true"
1140
1141 for ac_prog in texi2dvi
1142 do
1143 # Extract the first word of "$ac_prog", so it can be a program name with args.
1144 set dummy $ac_prog; ac_word=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1149 else
1150 if test -n "$TEXI2DVI"; then
1151 ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
1152 else
1153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1154 ac_dummy="$PATH"
1155 for ac_dir in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir=.
1157 if test -f $ac_dir/$ac_word; then
1158 ac_cv_prog_TEXI2DVI="$ac_prog"
1159 break
1160 fi
1161 done
1162 IFS="$ac_save_ifs"
1163 fi
1164 fi
1165 TEXI2DVI="$ac_cv_prog_TEXI2DVI"
1166 if test -n "$TEXI2DVI"; then
1167 echo "$ac_t""$TEXI2DVI" 1>&6
1168 else
1169 echo "$ac_t""no" 1>&6
1170 fi
1171
1172 test -n "$TEXI2DVI" && break
1173 done
1174 test -n "$TEXI2DVI" || TEXI2DVI="true"
1175
1176 for ac_prog in texi2html
1177 do
1178 # Extract the first word of "$ac_prog", so it can be a program name with args.
1179 set dummy $ac_prog; ac_word=$2
1180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•1181 echo "configure:1182: checking for $ac_word" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1184 else
1185 if test -n "$TEXI2HTML"; then
1186 ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
1187 else
1188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1189 ac_dummy="$PATH"
1190 for ac_dir in $ac_dummy; do
1191 test -z "$ac_dir" && ac_dir=.
1192 if test -f $ac_dir/$ac_word; then
1193 ac_cv_prog_TEXI2HTML="$ac_prog"
1194 break
1195 fi
1196 done
1197 IFS="$ac_save_ifs"
1198 fi
1199 fi
1200 TEXI2HTML="$ac_cv_prog_TEXI2HTML"
1201 if test -n "$TEXI2HTML"; then
1202 echo "$ac_t""$TEXI2HTML" 1>&6
1203 else
1204 echo "$ac_t""no" 1>&6
1205 fi
1206
1207 test -n "$TEXI2HTML" && break
1208 done
1209 test -n "$TEXI2HTML" || TEXI2HTML="true"
1210
1211 for ac_prog in dvips
1212 do
1213 # Extract the first word of "$ac_prog", so it can be a program name with args.
1214 set dummy $ac_prog; ac_word=$2
1215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•1216 echo "configure:1217: checking for $ac_word" >&5
1217 if eval "test \"`echo '$''{'ac_cv_prog_DVIPS'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1219 else
1220 if test -n "$DVIPS"; then
1221 ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
1222 else
1223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1224 ac_dummy="$PATH"
1225 for ac_dir in $ac_dummy; do
1226 test -z "$ac_dir" && ac_dir=.
1227 if test -f $ac_dir/$ac_word; then
1228 ac_cv_prog_DVIPS="$ac_prog"
1229 break
1230 fi
1231 done
1232 IFS="$ac_save_ifs"
1233 fi
1234 fi
1235 DVIPS="$ac_cv_prog_DVIPS"
1236 if test -n "$DVIPS"; then
1237 echo "$ac_t""$DVIPS" 1>&6
1238 else
1239 echo "$ac_t""no" 1>&6
1240 fi
1241
1242 test -n "$DVIPS" && break
1243 done
1244 test -n "$DVIPS" || DVIPS="true"
1245
1246
1247 ac_header_dirent=no
1248 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1249 do
1250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1251 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
•1252 echo "configure:1253: checking for $ac_hdr that defines DIR" >&5
1253 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1255 else
1256 cat > conftest.$ac_ext <<EOF
•1257 #line 1258 "configure"
1258 #include "confdefs.h"
1259 #include <sys/types.h>
1260 #include <$ac_hdr>
1261 int main() {
1262 DIR *dirp = 0;
1263 ; return 0; }
1264 EOF
•1265 if { (eval echo configure:1266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1266 rm -rf conftest*
1267 eval "ac_cv_header_dirent_$ac_safe=yes"
1268 else
1269 echo "configure: failed program was:" >&5
1270 cat conftest.$ac_ext >&5
1271 rm -rf conftest*
1272 eval "ac_cv_header_dirent_$ac_safe=no"
1273 fi
1274 rm -f conftest*
1275 fi
1276 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1277 echo "$ac_t""yes" 1>&6
1278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1279 cat >> confdefs.h <<EOF
1280 #define $ac_tr_hdr 1
1281 EOF
1282 ac_header_dirent=$ac_hdr; break
1283 else
1284 echo "$ac_t""no" 1>&6
1285 fi
1286 done
1287 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1288 if test $ac_header_dirent = dirent.h; then
1289 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
•1290 echo "configure:1291: checking for opendir in -ldir" >&5
1291 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1294 else
1295 ac_save_LIBS="$LIBS"
1296 LIBS="-ldir $LIBS"
1297 cat > conftest.$ac_ext <<EOF
•1298 #line 1299 "configure"
1299 #include "confdefs.h"
1300 /* Override any gcc2 internal prototype to avoid an error. */
1301 /* We use char because int might match the return type of a gcc2
1302 builtin and then its argument prototype would still apply. */
1303 char opendir();
1304
1305 int main() {
1306 opendir()
1307 ; return 0; }
1308 EOF
•1309 if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1310 rm -rf conftest*
1311 eval "ac_cv_lib_$ac_lib_var=yes"
1312 else
1313 echo "configure: failed program was:" >&5
1314 cat conftest.$ac_ext >&5
1315 rm -rf conftest*
1316 eval "ac_cv_lib_$ac_lib_var=no"
1317 fi
1318 rm -f conftest*
1319 LIBS="$ac_save_LIBS"
1320
1321 fi
1322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1323 echo "$ac_t""yes" 1>&6
1324 LIBS="$LIBS -ldir"
1325 else
1326 echo "$ac_t""no" 1>&6
1327 fi
1328
1329 else
1330 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
•1331 echo "configure:1332: checking for opendir in -lx" >&5
1332 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335 else
1336 ac_save_LIBS="$LIBS"
1337 LIBS="-lx $LIBS"
1338 cat > conftest.$ac_ext <<EOF
•1339 #line 1340 "configure"
1340 #include "confdefs.h"
1341 /* Override any gcc2 internal prototype to avoid an error. */
1342 /* We use char because int might match the return type of a gcc2
1343 builtin and then its argument prototype would still apply. */
1344 char opendir();
1345
1346 int main() {
1347 opendir()
1348 ; return 0; }
1349 EOF
•1350 if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1351 rm -rf conftest*
1352 eval "ac_cv_lib_$ac_lib_var=yes"
1353 else
1354 echo "configure: failed program was:" >&5
1355 cat conftest.$ac_ext >&5
1356 rm -rf conftest*
1357 eval "ac_cv_lib_$ac_lib_var=no"
1358 fi
1359 rm -f conftest*
1360 LIBS="$ac_save_LIBS"
1361
1362 fi
1363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1364 echo "$ac_t""yes" 1>&6
1365 LIBS="$LIBS -lx"
1366 else
1367 echo "$ac_t""no" 1>&6
1368 fi
1369
1370 fi
1371
1372 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
•1373 echo "configure:1374: checking for ANSI C header files" >&5
1374 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1376 else
1377 cat > conftest.$ac_ext <<EOF
•1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 #include <stdlib.h>
1381 #include <stdarg.h>
1382 #include <string.h>
1383 #include <float.h>
1384 EOF
1385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
•1386 { (eval echo configure:1387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1388 if test -z "$ac_err"; then
1389 rm -rf conftest*
1390 ac_cv_header_stdc=yes
1391 else
1392 echo "$ac_err" >&5
1393 echo "configure: failed program was:" >&5
1394 cat conftest.$ac_ext >&5
1395 rm -rf conftest*
1396 ac_cv_header_stdc=no
1397 fi
1398 rm -f conftest*
1399
1400 if test $ac_cv_header_stdc = yes; then
1401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1402 cat > conftest.$ac_ext <<EOF
•1403 #line 1404 "configure"
1404 #include "confdefs.h"
1405 #include <string.h>
1406 EOF
1407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1408 egrep "memchr" >/dev/null 2>&1; then
1409 :
1410 else
1411 rm -rf conftest*
1412 ac_cv_header_stdc=no
1413 fi
1414 rm -f conftest*
1415
1416 fi
1417
1418 if test $ac_cv_header_stdc = yes; then
1419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1420 cat > conftest.$ac_ext <<EOF
•1421 #line 1422 "configure"
1422 #include "confdefs.h"
1423 #include <stdlib.h>
1424 EOF
1425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1426 egrep "free" >/dev/null 2>&1; then
1427 :
1428 else
1429 rm -rf conftest*
1430 ac_cv_header_stdc=no
1431 fi
1432 rm -f conftest*
1433
1434 fi
1435
1436 if test $ac_cv_header_stdc = yes; then
1437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1438 if test "$cross_compiling" = yes; then
1439 :
1440 else
1441 cat > conftest.$ac_ext <<EOF
•1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444 #include <ctype.h>
1445 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1446 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1447 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1448 int main () { int i; for (i = 0; i < 256; i++)
1449 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1450 exit (0); }
1451
1452 EOF
•1453 if { (eval echo configure:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1454 then
1455 :
1456 else
1457 echo "configure: failed program was:" >&5
1458 cat conftest.$ac_ext >&5
1459 rm -fr conftest*
1460 ac_cv_header_stdc=no
1461 fi
1462 rm -fr conftest*
1463 fi
1464
1465 fi
1466 fi
1467
1468 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1469 if test $ac_cv_header_stdc = yes; then
1470 cat >> confdefs.h <<\EOF
1471 #define STDC_HEADERS 1
1472 EOF
1473
1474 fi
1475
1476 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
•1477 echo "configure:1478: checking whether time.h and sys/time.h may both be included" >&5
1478 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1480 else
1481 cat > conftest.$ac_ext <<EOF
•1482 #line 1483 "configure"
1483 #include "confdefs.h"
1484 #include <sys/types.h>
1485 #include <sys/time.h>
1486 #include <time.h>
1487 int main() {
1488 struct tm *tp;
1489 ; return 0; }
1490 EOF
•1491 if { (eval echo configure:1492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1492 rm -rf conftest*
1493 ac_cv_header_time=yes
1494 else
1495 echo "configure: failed program was:" >&5
1496 cat conftest.$ac_ext >&5
1497 rm -rf conftest*
1498 ac_cv_header_time=no
1499 fi
1500 rm -f conftest*
1501 fi
1502
1503 echo "$ac_t""$ac_cv_header_time" 1>&6
1504 if test $ac_cv_header_time = yes; then
1505 cat >> confdefs.h <<\EOF
1506 #define TIME_WITH_SYS_TIME 1
1507 EOF
1508
1509 fi
1510
•1511 for ac_hdr in fcntl.h sys/file.h sys/ioctl.h sys/time.h stdlib.h unistd.h memory.h string.h strings.h utime.h limits.h gsm.h gsm/gsm.h regex.h rxposix.h rx/rxposix.h
1512 do
1513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
•1515 echo "configure:1516: checking for $ac_hdr" >&5
1516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1518 else
1519 cat > conftest.$ac_ext <<EOF
•1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 #include <$ac_hdr>
1523 EOF
1524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
•1525 { (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1527 if test -z "$ac_err"; then
1528 rm -rf conftest*
1529 eval "ac_cv_header_$ac_safe=yes"
1530 else
1531 echo "$ac_err" >&5
1532 echo "configure: failed program was:" >&5
1533 cat conftest.$ac_ext >&5
1534 rm -rf conftest*
1535 eval "ac_cv_header_$ac_safe=no"
1536 fi
1537 rm -f conftest*
1538 fi
1539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1540 echo "$ac_t""yes" 1>&6
1541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1542 cat >> confdefs.h <<EOF
1543 #define $ac_tr_hdr 1
1544 EOF
1545
1546 else
1547 echo "$ac_t""no" 1>&6
1548 fi
1549 done
1550
1551 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
•1552 echo "configure:1553: checking for sys/wait.h that is POSIX.1 compatible" >&5
1553 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1555 else
1556 cat > conftest.$ac_ext <<EOF
•1557 #line 1558 "configure"
1558 #include "confdefs.h"
1559 #include <sys/types.h>
1560 #include <sys/wait.h>
1561 #ifndef WEXITSTATUS
1562 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1563 #endif
1564 #ifndef WIFEXITED
1565 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1566 #endif
1567 int main() {
1568 int s;
1569 wait (&s);
1570 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1571 ; return 0; }
1572 EOF
•1573 if { (eval echo configure:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1574 rm -rf conftest*
1575 ac_cv_header_sys_wait_h=yes
1576 else
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1579 rm -rf conftest*
1580 ac_cv_header_sys_wait_h=no
1581 fi
1582 rm -f conftest*
1583 fi
1584
1585 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1586 if test $ac_cv_header_sys_wait_h = yes; then
1587 cat >> confdefs.h <<\EOF
1588 #define HAVE_SYS_WAIT_H 1
1589 EOF
1590
1591 fi
1592
1593
1594 echo $ac_n "checking for working const""... $ac_c" 1>&6
•1595 echo "configure:1596: checking for working const" >&5
1596 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1598 else
1599 cat > conftest.$ac_ext <<EOF
•1600 #line 1601 "configure"
1601 #include "confdefs.h"
1602
1603 int main() {
1604
1605 /* Ultrix mips cc rejects this. */
1606 typedef int charset[2]; const charset x;
1607 /* SunOS 4.1.1 cc rejects this. */
1608 char const *const *ccp;
1609 char **p;
1610 /* NEC SVR4.0.2 mips cc rejects this. */
1611 struct point {int x, y;};
1612 static struct point const zero = {0,0};
1613 /* AIX XL C 1.02.0.0 rejects this.
1614 It does not let you subtract one const X* pointer from another in an arm
1615 of an if-expression whose if-part is not a constant expression */
1616 const char *g = "string";
1617 ccp = &g + (g ? g-g : 0);
1618 /* HPUX 7.0 cc rejects these. */
1619 ++ccp;
1620 p = (char**) ccp;
1621 ccp = (char const *const *) p;
1622 { /* SCO 3.2v4 cc rejects this. */
1623 char *t;
1624 char const *s = 0 ? (char *) 0 : (char const *) 0;
1625
1626 *t++ = 0;
1627 }
1628 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1629 int x[] = {25, 17};
1630 const int *foo = &x[0];
1631 ++foo;
1632 }
1633 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1634 typedef const int *iptr;
1635 iptr p = 0;
1636 ++p;
1637 }
1638 { /* AIX XL C 1.02.0.0 rejects this saying
1639 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1640 struct s { int j; const int *ap[3]; };
1641 struct s *b; b->j = 5;
1642 }
1643 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1644 const int foo = 10;
1645 }
1646
1647 ; return 0; }
1648 EOF
•1649 if { (eval echo configure:1650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1650 rm -rf conftest*
1651 ac_cv_c_const=yes
1652 else
1653 echo "configure: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1655 rm -rf conftest*
1656 ac_cv_c_const=no
1657 fi
1658 rm -f conftest*
1659 fi
1660
1661 echo "$ac_t""$ac_cv_c_const" 1>&6
1662 if test $ac_cv_c_const = no; then
1663 cat >> confdefs.h <<\EOF
1664 #define const
1665 EOF
1666
1667 fi
1668
1669 echo $ac_n "checking for size_t""... $ac_c" 1>&6
•1670 echo "configure:1671: checking for size_t" >&5
1671 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1673 else
1674 cat > conftest.$ac_ext <<EOF
•1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 #include <sys/types.h>
1678 #if STDC_HEADERS
1679 #include <stdlib.h>
1680 #include <stddef.h>
1681 #endif
1682 EOF
1683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1684 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1685 rm -rf conftest*
1686 ac_cv_type_size_t=yes
1687 else
1688 rm -rf conftest*
1689 ac_cv_type_size_t=no
1690 fi
1691 rm -f conftest*
1692
1693 fi
1694 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1695 if test $ac_cv_type_size_t = no; then
1696 cat >> confdefs.h <<\EOF
1697 #define size_t unsigned
1698 EOF
1699
1700 fi
1701
1702
1703 for ac_hdr in unistd.h
1704 do
1705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
•1707 echo "configure:1708: checking for $ac_hdr" >&5
1708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1710 else
1711 cat > conftest.$ac_ext <<EOF
•1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 #include <$ac_hdr>
1715 EOF
1716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
•1717 { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1719 if test -z "$ac_err"; then
1720 rm -rf conftest*
1721 eval "ac_cv_header_$ac_safe=yes"
1722 else
1723 echo "$ac_err" >&5
1724 echo "configure: failed program was:" >&5
1725 cat conftest.$ac_ext >&5
1726 rm -rf conftest*
1727 eval "ac_cv_header_$ac_safe=no"
1728 fi
1729 rm -f conftest*
1730 fi
1731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1732 echo "$ac_t""yes" 1>&6
1733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1734 cat >> confdefs.h <<EOF
1735 #define $ac_tr_hdr 1
1736 EOF
1737
1738 else
1739 echo "$ac_t""no" 1>&6
1740 fi
1741 done
1742
1743 for ac_func in getpagesize
1744 do
1745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
•1746 echo "configure:1747: checking for $ac_func" >&5
1747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1749 else
1750 cat > conftest.$ac_ext <<EOF
•1751 #line 1752 "configure"
1752 #include "confdefs.h"
1753 /* System header to define __stub macros and hopefully few prototypes,
1754 which can conflict with char $ac_func(); below. */
1755 #include <assert.h>
1756 /* Override any gcc2 internal prototype to avoid an error. */
1757 /* We use char because int might match the return type of a gcc2
1758 builtin and then its argument prototype would still apply. */
1759 char $ac_func();
1760
1761 int main() {
1762
1763 /* The GNU C library defines this for functions which it implements
1764 to always fail with ENOSYS. Some functions are actually named
1765 something starting with __ and the normal name is an alias. */
1766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1767 choke me
1768 #else
1769 $ac_func();
1770 #endif
1771
1772 ; return 0; }
1773 EOF
•1774 if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1775 rm -rf conftest*
1776 eval "ac_cv_func_$ac_func=yes"
1777 else
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1780 rm -rf conftest*
1781 eval "ac_cv_func_$ac_func=no"
1782 fi
1783 rm -f conftest*
1784 fi
1785
1786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1787 echo "$ac_t""yes" 1>&6
1788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1789 cat >> confdefs.h <<EOF
1790 #define $ac_tr_func 1
1791 EOF
1792
1793 else
1794 echo "$ac_t""no" 1>&6
1795 fi
1796 done
1797
1798 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
•1799 echo "configure:1800: checking for working mmap" >&5
1800 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802 else
1803 if test "$cross_compiling" = yes; then
1804 ac_cv_func_mmap_fixed_mapped=no
1805 else
1806 cat > conftest.$ac_ext <<EOF
•1807 #line 1808 "configure"
1808 #include "confdefs.h"
1809
1810 /* Thanks to Mike Haertel and Jim Avera for this test.
1811 Here is a matrix of mmap possibilities:
1812 mmap private not fixed
1813 mmap private fixed at somewhere currently unmapped
1814 mmap private fixed at somewhere already mapped
1815 mmap shared not fixed
1816 mmap shared fixed at somewhere currently unmapped
1817 mmap shared fixed at somewhere already mapped
1818 For private mappings, we should verify that changes cannot be read()
1819 back from the file, nor mmap's back from the file at a different
1820 address. (There have been systems where private was not correctly
1821 implemented like the infamous i386 svr4.0, and systems where the
1822 VM page cache was not coherent with the filesystem buffer cache
1823 like early versions of FreeBSD and possibly contemporary NetBSD.)
1824 For shared mappings, we should conversely verify that changes get
1825 propogated back to all the places they're supposed to be.
1826
1827 Grep wants private fixed already mapped.
1828 The main things grep needs to know about mmap are:
1829 * does it exist and is it safe to write into the mmap'd area
1830 * how to use it (BSD variants) */
1831 #include <sys/types.h>
1832 #include <fcntl.h>
1833 #include <sys/mman.h>
1834
1835 /* This mess was copied from the GNU getpagesize.h. */
1836 #ifndef HAVE_GETPAGESIZE
1837 # ifdef HAVE_UNISTD_H
1838 # include <unistd.h>
1839 # endif
1840
1841 /* Assume that all systems that can run configure have sys/param.h. */
1842 # ifndef HAVE_SYS_PARAM_H
1843 # define HAVE_SYS_PARAM_H 1
1844 # endif
1845
1846 # ifdef _SC_PAGESIZE
1847 # define getpagesize() sysconf(_SC_PAGESIZE)
1848 # else /* no _SC_PAGESIZE */
1849 # ifdef HAVE_SYS_PARAM_H
1850 # include <sys/param.h>
1851 # ifdef EXEC_PAGESIZE
1852 # define getpagesize() EXEC_PAGESIZE
1853 # else /* no EXEC_PAGESIZE */
1854 # ifdef NBPG
1855 # define getpagesize() NBPG * CLSIZE
1856 # ifndef CLSIZE
1857 # define CLSIZE 1
1858 # endif /* no CLSIZE */
1859 # else /* no NBPG */
1860 # ifdef NBPC
1861 # define getpagesize() NBPC
1862 # else /* no NBPC */
1863 # ifdef PAGESIZE
1864 # define getpagesize() PAGESIZE
1865 # endif /* PAGESIZE */
1866 # endif /* no NBPC */
1867 # endif /* no NBPG */
1868 # endif /* no EXEC_PAGESIZE */
1869 # else /* no HAVE_SYS_PARAM_H */
1870 # define getpagesize() 8192 /* punt totally */
1871 # endif /* no HAVE_SYS_PARAM_H */
1872 # endif /* no _SC_PAGESIZE */
1873
1874 #endif /* no HAVE_GETPAGESIZE */
1875
1876 #ifdef __cplusplus
1877 extern "C" { void *malloc(unsigned); }
1878 #else
1879 char *malloc();
1880 #endif
1881
1882 int
1883 main()
1884 {
1885 char *data, *data2, *data3;
1886 int i, pagesize;
1887 int fd;
1888
1889 pagesize = getpagesize();
1890
1891 /*
1892 * First, make a file with some known garbage in it.
1893 */
1894 data = malloc(pagesize);
1895 if (!data)
1896 exit(1);
1897 for (i = 0; i < pagesize; ++i)
1898 *(data + i) = rand();
1899 umask(0);
1900 fd = creat("conftestmmap", 0600);
1901 if (fd < 0)
1902 exit(1);
1903 if (write(fd, data, pagesize) != pagesize)
1904 exit(1);
1905 close(fd);
1906
1907 /*
1908 * Next, try to mmap the file at a fixed address which
1909 * already has something else allocated at it. If we can,
1910 * also make sure that we see the same garbage.
1911 */
1912 fd = open("conftestmmap", O_RDWR);
1913 if (fd < 0)
1914 exit(1);
1915 data2 = malloc(2 * pagesize);
1916 if (!data2)
1917 exit(1);
1918 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1919 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1920 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1921 exit(1);
1922 for (i = 0; i < pagesize; ++i)
1923 if (*(data + i) != *(data2 + i))
1924 exit(1);
1925
1926 /*
1927 * Finally, make sure that changes to the mapped area
1928 * do not percolate back to the file as seen by read().
1929 * (This is a bug on some variants of i386 svr4.0.)
1930 */
1931 for (i = 0; i < pagesize; ++i)
1932 *(data2 + i) = *(data2 + i) + 1;
1933 data3 = malloc(pagesize);
1934 if (!data3)
1935 exit(1);
1936 if (read(fd, data3, pagesize) != pagesize)
1937 exit(1);
1938 for (i = 0; i < pagesize; ++i)
1939 if (*(data + i) != *(data3 + i))
1940 exit(1);
1941 close(fd);
1942 unlink("conftestmmap");
1943 exit(0);
1944 }
1945
1946 EOF
•1947 if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1948 then
1949 ac_cv_func_mmap_fixed_mapped=yes
1950 else
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1953 rm -fr conftest*
1954 ac_cv_func_mmap_fixed_mapped=no
1955 fi
1956 rm -fr conftest*
1957 fi
1958
1959 fi
1960
1961 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1962 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1963 cat >> confdefs.h <<\EOF
1964 #define HAVE_MMAP 1
1965 EOF
1966
1967 fi
1968
1969 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
•1970 echo "configure:1971: checking for 8-bit clean memcmp" >&5
1971 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1973 else
1974 if test "$cross_compiling" = yes; then
1975 ac_cv_func_memcmp_clean=no
1976 else
1977 cat > conftest.$ac_ext <<EOF
•1978 #line 1979 "configure"
1979 #include "confdefs.h"
1980
1981 main()
1982 {
1983 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1984 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1985 }
1986
1987 EOF
•1988 if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1989 then
1990 ac_cv_func_memcmp_clean=yes
1991 else
1992 echo "configure: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 rm -fr conftest*
1995 ac_cv_func_memcmp_clean=no
1996 fi
1997 rm -fr conftest*
1998 fi
1999
2000 fi
2001
2002 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2003 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2004
2005 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
•2006 echo "configure:2007: checking for vprintf" >&5
2007 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2008 echo $ac_n "(cached) $ac_c" 1>&6
2009 else
2010 cat > conftest.$ac_ext <<EOF
•2011 #line 2012 "configure"
2012 #include "confdefs.h"
2013 /* System header to define __stub macros and hopefully few prototypes,
2014 which can conflict with char vprintf(); below. */
2015 #include <assert.h>
2016 /* Override any gcc2 internal prototype to avoid an error. */
2017 /* We use char because int might match the return type of a gcc2
2018 builtin and then its argument prototype would still apply. */
2019 char vprintf();
2020
2021 int main() {
2022
2023 /* The GNU C library defines this for functions which it implements
2024 to always fail with ENOSYS. Some functions are actually named
2025 something starting with __ and the normal name is an alias. */
2026 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2027 choke me
2028 #else
2029 vprintf();
2030 #endif
2031
2032 ; return 0; }
2033 EOF
•2034 if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2035 rm -rf conftest*
2036 eval "ac_cv_func_vprintf=yes"
2037 else
2038 echo "configure: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2040 rm -rf conftest*
2041 eval "ac_cv_func_vprintf=no"
2042 fi
2043 rm -f conftest*
2044 fi
2045
2046 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2047 echo "$ac_t""yes" 1>&6
2048 cat >> confdefs.h <<\EOF
2049 #define HAVE_VPRINTF 1
2050 EOF
2051
2052 else
2053 echo "$ac_t""no" 1>&6
2054 fi
2055
2056 if test "$ac_cv_func_vprintf" != yes; then
2057 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
•2058 echo "configure:2059: checking for _doprnt" >&5
2059 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2061 else
2062 cat > conftest.$ac_ext <<EOF
•2063 #line 2064 "configure"
2064 #include "confdefs.h"
2065 /* System header to define __stub macros and hopefully few prototypes,
2066 which can conflict with char _doprnt(); below. */
2067 #include <assert.h>
2068 /* Override any gcc2 internal prototype to avoid an error. */
2069 /* We use char because int might match the return type of a gcc2
2070 builtin and then its argument prototype would still apply. */
2071 char _doprnt();
2072
2073 int main() {
2074
2075 /* The GNU C library defines this for functions which it implements
2076 to always fail with ENOSYS. Some functions are actually named
2077 something starting with __ and the normal name is an alias. */
2078 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2079 choke me
2080 #else
2081 _doprnt();
2082 #endif
2083
2084 ; return 0; }
2085 EOF
•2086 if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2087 rm -rf conftest*
2088 eval "ac_cv_func__doprnt=yes"
2089 else
2090 echo "configure: failed program was:" >&5
2091 cat conftest.$ac_ext >&5
2092 rm -rf conftest*
2093 eval "ac_cv_func__doprnt=no"
2094 fi
2095 rm -f conftest*
2096 fi
2097
2098 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2099 echo "$ac_t""yes" 1>&6
2100 cat >> confdefs.h <<\EOF
2101 #define HAVE_DOPRNT 1
2102 EOF
2103
2104 else
2105 echo "$ac_t""no" 1>&6
2106 fi
2107
2108 fi
2109
2110 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
•2111 echo "configure:2112: checking return type of signal handlers" >&5
2112 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2114 else
2115 cat > conftest.$ac_ext <<EOF
•2116 #line 2117 "configure"
2117 #include "confdefs.h"
2118 #include <sys/types.h>
2119 #include <signal.h>
2120 #ifdef signal
2121 #undef signal
2122 #endif
2123 #ifdef __cplusplus
2124 extern "C" void (*signal (int, void (*)(int)))(int);
2125 #else
2126 void (*signal ()) ();
2127 #endif
2128
2129 int main() {
2130 int i;
2131 ; return 0; }
2132 EOF
•2133 if { (eval echo configure:2134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2134 rm -rf conftest*
2135 ac_cv_type_signal=void
2136 else
2137 echo "configure: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2139 rm -rf conftest*
2140 ac_cv_type_signal=int
2141 fi
2142 rm -f conftest*
2143 fi
2144
2145 echo "$ac_t""$ac_cv_type_signal" 1>&6
2146 cat >> confdefs.h <<EOF
2147 #define RETSIGTYPE $ac_cv_type_signal
2148 EOF
2149
2150
2151 for ac_func in getcwd gethostname mkdir re_comp regcomp select snprintf socket strdup strerror strstr fstat fchmod fchown utime utimes memmove sigset vsnprintf waitpid random srandom
2152 do
2153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
•2154 echo "configure:2155: checking for $ac_func" >&5
2155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2157 else
2158 cat > conftest.$ac_ext <<EOF
•2159 #line 2160 "configure"
2160 #include "confdefs.h"
2161 /* System header to define __stub macros and hopefully few prototypes,
2162 which can conflict with char $ac_func(); below. */
2163 #include <assert.h>
2164 /* Override any gcc2 internal prototype to avoid an error. */
2165 /* We use char because int might match the return type of a gcc2
2166 builtin and then its argument prototype would still apply. */
2167 char $ac_func();
2168
2169 int main() {
2170
2171 /* The GNU C library defines this for functions which it implements
2172 to always fail with ENOSYS. Some functions are actually named
2173 something starting with __ and the normal name is an alias. */
2174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2175 choke me
2176 #else
2177 $ac_func();
2178 #endif
2179
2180 ; return 0; }
2181 EOF
•2182 if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2183 rm -rf conftest*
2184 eval "ac_cv_func_$ac_func=yes"
2185 else
2186 echo "configure: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2188 rm -rf conftest*
2189 eval "ac_cv_func_$ac_func=no"
2190 fi
2191 rm -f conftest*
2192 fi
2193
2194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2195 echo "$ac_t""yes" 1>&6
2196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2197 cat >> confdefs.h <<EOF
2198 #define $ac_tr_func 1
2199 EOF
2200
2201 else
2202 echo "$ac_t""no" 1>&6
2203 fi
2204 done
2205
2206 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
•2207 echo "configure:2208: checking for socket in -lsocket" >&5
2208 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2211 else
2212 ac_save_LIBS="$LIBS"
2213 LIBS="-lsocket $LIBS"
2214 cat > conftest.$ac_ext <<EOF
•2215 #line 2216 "configure"
2216 #include "confdefs.h"
2217 /* Override any gcc2 internal prototype to avoid an error. */
2218 /* We use char because int might match the return type of a gcc2
2219 builtin and then its argument prototype would still apply. */
2220 char socket();
2221
2222 int main() {
2223 socket()
2224 ; return 0; }
2225 EOF
•2226 if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2227 rm -rf conftest*
2228 eval "ac_cv_lib_$ac_lib_var=yes"
2229 else
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2232 rm -rf conftest*
2233 eval "ac_cv_lib_$ac_lib_var=no"
2234 fi
2235 rm -f conftest*
2236 LIBS="$ac_save_LIBS"
2237
2238 fi
2239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2240 echo "$ac_t""yes" 1>&6
2241 LIBS="$LIBS -lsocket"
2242 else
2243 echo "$ac_t""no" 1>&6
2244 fi
2245
2246 echo $ac_n "checking for t_accept in -lnsl""... $ac_c" 1>&6
•2247 echo "configure:2248: checking for t_accept in -lnsl" >&5
2248 ac_lib_var=`echo nsl'_'t_accept | sed 'y%./+-%__p_%'`
2249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2251 else
2252 ac_save_LIBS="$LIBS"
2253 LIBS="-lnsl $LIBS"
2254 cat > conftest.$ac_ext <<EOF
•2255 #line 2256 "configure"
2256 #include "confdefs.h"
2257 /* Override any gcc2 internal prototype to avoid an error. */
2258 /* We use char because int might match the return type of a gcc2
2259 builtin and then its argument prototype would still apply. */
2260 char t_accept();
2261
2262 int main() {
2263 t_accept()
2264 ; return 0; }
2265 EOF
•2266 if { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2267 rm -rf conftest*
2268 eval "ac_cv_lib_$ac_lib_var=yes"
2269 else
2270 echo "configure: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2272 rm -rf conftest*
2273 eval "ac_cv_lib_$ac_lib_var=no"
2274 fi
2275 rm -f conftest*
2276 LIBS="$ac_save_LIBS"
2277
2278 fi
2279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2280 echo "$ac_t""yes" 1>&6
2281 LIBS="$LIBS -lnsl"
2282 else
2283 echo "$ac_t""no" 1>&6
2284 fi
2285
2286
2287 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
•2288 echo "configure:2289: checking for readline in -lreadline" >&5
2289 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2292 else
2293 ac_save_LIBS="$LIBS"
2294 LIBS="-lreadline $LIBS"
2295 cat > conftest.$ac_ext <<EOF
•2296 #line 2297 "configure"
2297 #include "confdefs.h"
2298 /* Override any gcc2 internal prototype to avoid an error. */
2299 /* We use char because int might match the return type of a gcc2
2300 builtin and then its argument prototype would still apply. */
2301 char readline();
2302
2303 int main() {
2304 readline()
2305 ; return 0; }
2306 EOF
•2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2308 rm -rf conftest*
2309 eval "ac_cv_lib_$ac_lib_var=yes"
2310 else
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2313 rm -rf conftest*
2314 eval "ac_cv_lib_$ac_lib_var=no"
2315 fi
2316 rm -f conftest*
2317 LIBS="$ac_save_LIBS"
2318
2319 fi
2320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2321 echo "$ac_t""yes" 1>&6
•2322 cat >> confdefs.h <<\EOF
2323 #define HAVE_LIBREADLINE 1
2324 EOF
2325 RL_LIBS="-lreadline"
2326 else
2327 echo "$ac_t""no" 1>&6
2328 fi
2329
2330
2331
2332 echo $ac_n "checking for gsm_decode in -lgsm""... $ac_c" 1>&6
•2333 echo "configure:2334: checking for gsm_decode in -lgsm" >&5
2334 ac_lib_var=`echo gsm'_'gsm_decode | sed 'y%./+-%__p_%'`
2335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2337 else
2338 ac_save_LIBS="$LIBS"
2339 LIBS="-lgsm $LIBS"
2340 cat > conftest.$ac_ext <<EOF
•2341 #line 2342 "configure"
2342 #include "confdefs.h"
2343 /* Override any gcc2 internal prototype to avoid an error. */
2344 /* We use char because int might match the return type of a gcc2
2345 builtin and then its argument prototype would still apply. */
2346 char gsm_decode();
2347
2348 int main() {
2349 gsm_decode()
2350 ; return 0; }
2351 EOF
•2352 if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2353 rm -rf conftest*
2354 eval "ac_cv_lib_$ac_lib_var=yes"
2355 else
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 rm -rf conftest*
2359 eval "ac_cv_lib_$ac_lib_var=no"
2360 fi
2361 rm -f conftest*
2362 LIBS="$ac_save_LIBS"
2363
2364 fi
2365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2366 echo "$ac_t""yes" 1>&6
•2367 GSM_LIBS="-lgsm"; GSM_INCS=""
2368 else
2369 echo "$ac_t""no" 1>&6
•2370
2371 GSM_LIBS="-L../gsm -lgsm"; GSM_INCS="-I\${srcdir}/../gsm"
2372 BUILD_TARGETS="$BUILD_TARGETS gsm"
2373
2374 fi
2375
•2376
2377
2378
2379 for ac_func in regcomp
2380 do
2381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_func" >&5
2383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2385 else
•2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 /* System header to define __stub macros and hopefully few prototypes,
2390 which can conflict with char $ac_func(); below. */
2391 #include <assert.h>
2392 /* Override any gcc2 internal prototype to avoid an error. */
2393 /* We use char because int might match the return type of a gcc2
2394 builtin and then its argument prototype would still apply. */
2395 char $ac_func();
2396
•2397 int main() {
2398
•2399 /* The GNU C library defines this for functions which it implements
2400 to always fail with ENOSYS. Some functions are actually named
2401 something starting with __ and the normal name is an alias. */
2402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2403 choke me
2404 #else
2405 $ac_func();
2406 #endif
2407
•2408 ; return 0; }
2409 EOF
2410 if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2411 rm -rf conftest*
2412 eval "ac_cv_func_$ac_func=yes"
2413 else
2414 echo "configure: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2416 rm -rf conftest*
2417 eval "ac_cv_func_$ac_func=no"
2418 fi
2419 rm -f conftest*
2420 fi
2421
2422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2423 echo "$ac_t""yes" 1>&6
2424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2425 cat >> confdefs.h <<EOF
2426 #define $ac_tr_func 1
2427 EOF
2428
2429 else
2430 echo "$ac_t""no" 1>&6
2431 echo $ac_n "checking for regcomp in -lrx""... $ac_c" 1>&6
2432 echo "configure:2433: checking for regcomp in -lrx" >&5
2433 ac_lib_var=`echo rx'_'regcomp | sed 'y%./+-%__p_%'`
2434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2436 else
2437 ac_save_LIBS="$LIBS"
2438 LIBS="-lrx $LIBS"
2439 cat > conftest.$ac_ext <<EOF
•2440 #line 2441 "configure"
2441 #include "confdefs.h"
2442 /* Override any gcc2 internal prototype to avoid an error. */
2443 /* We use char because int might match the return type of a gcc2
2444 builtin and then its argument prototype would still apply. */
•2445 char regcomp();
2446
2447 int main() {
•2448 regcomp()
2449 ; return 0; }
2450 EOF
•2451 if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2452 rm -rf conftest*
2453 eval "ac_cv_lib_$ac_lib_var=yes"
2454 else
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2457 rm -rf conftest*
2458 eval "ac_cv_lib_$ac_lib_var=no"
2459 fi
2460 rm -f conftest*
2461 LIBS="$ac_save_LIBS"
2462
2463 fi
2464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2465 echo "$ac_t""yes" 1>&6
•2466 RX_LIBS="-lrx"; RX_INCS=""
2467 else
2468 echo "$ac_t""no" 1>&6
•2469
2470 RX_LIBS="-L../rx -lrx"; RX_INCS="-I\${srcdir}/../rx"
2471 BUILD_TARGETS="$BUILD_TARGETS rx"
2472 subdirs="rx"
2473 s%@subdirs@%$subdirs%g
2474
2475
2476 fi
2477
•2478
2479 fi
•2480 done
2481
2482
2483
2484
2485 RPLAY_TOP=`pwd`
2486
2487
2488 if test -n "$target" -a "$target" != "NONE"; then
2489 RPLAY_TARGET=$target
2490 echo "using specified $RPLAY_TARGET configuration"
2491 fi
2492
2493 if test -z "$RPLAY_TARGET"; then
2494 echo $ac_n "checking for sun""... $ac_c" 1>&6
•2495 echo "configure:2496: checking for sun" >&5
2496 cat > conftest.$ac_ext <<EOF
•2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499
2500 #ifdef sun
2501 yes
2502 #endif
2503
2504 EOF
2505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2506 egrep "yes" >/dev/null 2>&1; then
2507 rm -rf conftest*
2508 is_sun=yes
2509 else
2510 rm -rf conftest*
2511 is_sun=no
2512 fi
2513 rm -f conftest*
2514
2515 echo "$ac_t""$is_sun" 1>&6
2516 if test $is_sun = "yes"; then
2517 RPLAY_TARGET="sun"
2518 fi
2519 if test "$RPLAY_TARGET"; then
2520 echo $ac_n "checking for solaris""... $ac_c" 1>&6
•2521 echo "configure:2522: checking for solaris" >&5
2522 if test ! -f /vmunix; then
2523 is_solaris=yes
2524 RPLAY_TARGET="solaris"
2525 else
2526 is_solaris=no
2527 fi
2528 echo "$ac_t""$is_solaris" 1>&6
2529 fi
2530 fi
2531
2532 if test -z "$RPLAY_TARGET"; then
2533 echo $ac_n "checking for linux""... $ac_c" 1>&6
•2534 echo "configure:2535: checking for linux" >&5
2535 cat > conftest.$ac_ext <<EOF
•2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538
2539 #ifdef linux
2540 yes
2541 #endif
2542
2543 EOF
2544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2545 egrep "yes" >/dev/null 2>&1; then
2546 rm -rf conftest*
2547 is_linux=yes
2548 else
2549 rm -rf conftest*
2550 is_linux=no
2551 fi
2552 rm -f conftest*
2553
2554 echo "$ac_t""$is_linux" 1>&6
2555 if test $is_linux = "yes"; then
2556 RPLAY_TARGET="oss"
2557 fi
2558 fi
2559
2560 if test -z "$RPLAY_TARGET"; then
2561 echo $ac_n "checking for hpux""... $ac_c" 1>&6
•2562 echo "configure:2563: checking for hpux" >&5
2563 cat > conftest.$ac_ext <<EOF
•2564 #line 2565 "configure"
2565 #include "confdefs.h"
2566
2567 #ifdef __hpux
2568 yes
2569 #endif
2570
2571 EOF
2572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2573 egrep "yes" >/dev/null 2>&1; then
2574 rm -rf conftest*
2575 is_hpux=yes
2576 else
2577 rm -rf conftest*
2578 is_hpux=no
2579 fi
2580 rm -f conftest*
2581
2582 echo "$ac_t""$is_hpux" 1>&6
2583 if test $is_hpux = "yes"; then
2584 RPLAY_TARGET="hpux"
2585 fi
2586 fi
2587
2588 if test -z "$RPLAY_TARGET"; then
2589 echo $ac_n "checking for sgi""... $ac_c" 1>&6
•2590 echo "configure:2591: checking for sgi" >&5
2591 cat > conftest.$ac_ext <<EOF
•2592 #line 2593 "configure"
2593 #include "confdefs.h"
2594
2595 #ifdef sgi
2596 yes
2597 #endif
2598
2599 EOF
2600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2601 egrep "yes" >/dev/null 2>&1; then
2602 rm -rf conftest*
2603 is_sgi=yes
2604 else
2605 rm -rf conftest*
2606 is_sgi=no
2607 fi
2608 rm -f conftest*
2609
2610 echo "$ac_t""$is_sgi" 1>&6
2611 if test $is_sgi = "yes"; then
2612 RPLAY_TARGET="sgi"
2613 echo $ac_n "checking for multimedia development kit""... $ac_c" 1>&6
•2614 echo "configure:2615: checking for multimedia development kit" >&5
2615 for ac_hdr in audio.h
2616 do
2617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
•2619 echo "configure:2620: checking for $ac_hdr" >&5
2620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2622 else
2623 cat > conftest.$ac_ext <<EOF
•2624 #line 2625 "configure"
2625 #include "confdefs.h"
2626 #include <$ac_hdr>
2627 EOF
2628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
•2629 { (eval echo configure:2630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2631 if test -z "$ac_err"; then
2632 rm -rf conftest*
2633 eval "ac_cv_header_$ac_safe=yes"
2634 else
2635 echo "$ac_err" >&5
2636 echo "configure: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2638 rm -rf conftest*
2639 eval "ac_cv_header_$ac_safe=no"
2640 fi
2641 rm -f conftest*
2642 fi
2643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2644 echo "$ac_t""yes" 1>&6
2645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2646 cat >> confdefs.h <<EOF
2647 #define $ac_tr_hdr 1
2648 EOF
2649
2650 else
2651 echo "$ac_t""no" 1>&6
2652 fi
2653 done
2654
2655 if test $ac_cv_header_audio_h = "no"; then
2656 echo 'The multimedia development kit was not found.'
2657 echo 'Please read the README.sgi file.'
2658 exit -1
2659 fi
2660 fi
2661 fi
2662
2663 if test -z "$RPLAY_TARGET"; then
2664 echo $ac_n "checking for FreeBSD""... $ac_c" 1>&6
•2665 echo "configure:2666: checking for FreeBSD" >&5
2666 cat > conftest.$ac_ext <<EOF
•2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669
•2670 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
2671 yes
2672 #endif
2673
2674 EOF
2675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2676 egrep "yes" >/dev/null 2>&1; then
2677 rm -rf conftest*
2678 is_freebsd=yes
2679 else
2680 rm -rf conftest*
2681 is_freebsd=no
2682 fi
2683 rm -f conftest*
2684
2685 echo "$ac_t""$is_freebsd" 1>&6
2686 if test $is_freebsd = "yes"; then
2687 RPLAY_TARGET="FreeBSD"
2688 fi
2689 fi
2690
2691
2692 if test -z "$RPLAY_TARGET"; then
2693 echo 'Sorry, I could not figure out what type of system you have.'
•2694 echo 'Will try the generic configuration.'
2695 sleep 5
2696 RPLAY_TARGET="generic"
2697 fi
2698
2699 echo "using $RPLAY_TARGET configuration"
2700
2701
2702
2703
2704 if test $RPLAY_TARGET = "solaris"; then
2705 cat >> confdefs.h <<\EOF
2706 #define SVR4 1
2707 EOF
2708
2709 fi
2710
2711
2712 if test $RPLAY_TARGET = "sgi"; then
2713 LIBS="$LIBS -laudio"
2714 fi
2715
2716
2717 BUILD_TARGETS="$BUILD_TARGETS librplay rplayd rplay rptp doc"
2718
•2719 case "$RPLAY_TARGET" in
2720 oss|FreeBSD|generic) BUILD_TARGETS="$BUILD_TARGETS devrplay";;
2721 esac
2722
2723
2724
2725 trap '' 1 2 15
2726 cat > confcache <<\EOF
2727 # This file is a shell script that caches the results of configure
2728 # tests run on this system so they can be shared between configure
2729 # scripts and configure runs. It is not useful on other systems.
2730 # If it contains results you don't want to keep, you may remove or edit it.
2731 #
2732 # By default, configure uses ./config.cache as the cache file,
2733 # creating it if it does not exist already. You can give configure
2734 # the --cache-file=FILE option to use a different cache file; that is
2735 # what configure does when it calls configure scripts in
2736 # subdirectories, so they share the cache.
2737 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2738 # config.status only pays attention to the cache file if you give it the
2739 # --recheck option to rerun configure.
2740 #
2741 EOF
2742 # The following way of writing the cache mishandles newlines in values,
2743 # but we know of no workaround that is simple, portable, and efficient.
2744 # So, don't put newlines in cache variables' values.
2745 # Ultrix sh set writes to stderr and can't be redirected directly,
2746 # and sets the high bit in the cache file unless we assign to the vars.
2747 (set) 2>&1 |
2748 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2749 *ac_space=\ *)
2750 # `set' does not quote correctly, so add quotes (double-quote substitution
2751 # turns \\\\ into \\, and sed turns \\ into \).
2752 sed -n \
2753 -e "s/'/'\\\\''/g" \
2754 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2755 ;;
2756 *)
2757 # `set' quotes correctly as required by POSIX, so do not add quotes.
2758 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2759 ;;
2760 esac >> confcache
2761 if cmp -s $cache_file confcache; then
2762 :
2763 else
2764 if test -w $cache_file; then
2765 echo "updating cache $cache_file"
2766 cat confcache > $cache_file
2767 else
2768 echo "not updating unwritable cache $cache_file"
2769 fi
2770 fi
2771 rm -f confcache
2772
2773 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2774
2775 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2776 # Let make expand exec_prefix.
2777 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2778
2779 # Any assignment to VPATH causes Sun make to only execute
2780 # the first set of double-colon rules, so remove it if not needed.
2781 # If there is a colon in the path, we need to keep it.
2782 if test "x$srcdir" = x.; then
2783 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2784 fi
2785
2786 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2787
2788 DEFS=-DHAVE_CONFIG_H
2789
2790 # Without the "./", some shells look in PATH for config.status.
2791 : ${CONFIG_STATUS=./config.status}
2792
2793 echo creating $CONFIG_STATUS
2794 rm -f $CONFIG_STATUS
2795 cat > $CONFIG_STATUS <<EOF
2796 #! /bin/sh
2797 # Generated automatically by configure.
2798 # Run this file to recreate the current configuration.
2799 # This directory was configured as follows,
2800 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2801 #
2802 # $0 $ac_configure_args
2803 #
2804 # Compiler output produced by configure, useful for debugging
2805 # configure, is in ./config.log if it exists.
2806
2807 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2808 for ac_option
2809 do
2810 case "\$ac_option" in
2811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2812 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2813 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2814 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2815 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2816 exit 0 ;;
2817 -help | --help | --hel | --he | --h)
2818 echo "\$ac_cs_usage"; exit 0 ;;
2819 *) echo "\$ac_cs_usage"; exit 1 ;;
2820 esac
2821 done
2822
2823 ac_given_srcdir=$srcdir
2824 ac_given_INSTALL="$INSTALL"
2825
2826 trap 'rm -fr `echo "Makefile.config Makefile include/Makefile lib/Makefile adpcm/Makefile gsm/Makefile librplay/Makefile rplayd/Makefile rplay/Makefile rptp/Makefile doc/Makefile devrplay/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2827 EOF
2828 cat >> $CONFIG_STATUS <<EOF
2829
2830 # Protect against being on the right side of a sed subst in config.status.
2831 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2832 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2833 $ac_vpsub
2834 $extrasub
2835 s%@SHELL@%$SHELL%g
2836 s%@CFLAGS@%$CFLAGS%g
2837 s%@CPPFLAGS@%$CPPFLAGS%g
2838 s%@CXXFLAGS@%$CXXFLAGS%g
2839 s%@FFLAGS@%$FFLAGS%g
2840 s%@DEFS@%$DEFS%g
2841 s%@LDFLAGS@%$LDFLAGS%g
2842 s%@LIBS@%$LIBS%g
2843 s%@exec_prefix@%$exec_prefix%g
2844 s%@prefix@%$prefix%g
2845 s%@program_transform_name@%$program_transform_name%g
2846 s%@bindir@%$bindir%g
2847 s%@sbindir@%$sbindir%g
2848 s%@libexecdir@%$libexecdir%g
2849 s%@datadir@%$datadir%g
2850 s%@sysconfdir@%$sysconfdir%g
2851 s%@sharedstatedir@%$sharedstatedir%g
2852 s%@localstatedir@%$localstatedir%g
2853 s%@libdir@%$libdir%g
2854 s%@includedir@%$includedir%g
2855 s%@oldincludedir@%$oldincludedir%g
2856 s%@infodir@%$infodir%g
2857 s%@mandir@%$mandir%g
2858 s%@RPLAY_VERSION@%$RPLAY_VERSION%g
2859 s%@CC@%$CC%g
2860 s%@CPP@%$CPP%g
2861 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2862 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2863 s%@INSTALL_DATA@%$INSTALL_DATA%g
2864 s%@LN_S@%$LN_S%g
2865 s%@RANLIB@%$RANLIB%g
2866 s%@ETAGS@%$ETAGS%g
2867 s%@MAKEDEPEND@%$MAKEDEPEND%g
2868 s%@MAKEINFO@%$MAKEINFO%g
2869 s%@TEXI2DVI@%$TEXI2DVI%g
2870 s%@TEXI2HTML@%$TEXI2HTML%g
2871 s%@DVIPS@%$DVIPS%g
2872 s%@LIBOBJS@%$LIBOBJS%g
2873 s%@RL_LIBS@%$RL_LIBS%g
2874 s%@GSM_LIBS@%$GSM_LIBS%g
2875 s%@GSM_INCS@%$GSM_INCS%g
2876 s%@RX_LIBS@%$RX_LIBS%g
2877 s%@RX_INCS@%$RX_INCS%g
2878 s%@RPLAY_TOP@%$RPLAY_TOP%g
2879 s%@RPLAY_TARGET@%$RPLAY_TARGET%g
2880 s%@BUILD_TARGETS@%$BUILD_TARGETS%g
2881
2882 CEOF
2883 EOF
2884
2885 cat >> $CONFIG_STATUS <<\EOF
2886
2887 # Split the substitutions into bite-sized pieces for seds with
2888 # small command number limits, like on Digital OSF/1 and HP-UX.
2889 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2890 ac_file=1 # Number of current file.
2891 ac_beg=1 # First line for current file.
2892 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2893 ac_more_lines=:
2894 ac_sed_cmds=""
2895 while $ac_more_lines; do
2896 if test $ac_beg -gt 1; then
2897 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2898 else
2899 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2900 fi
2901 if test ! -s conftest.s$ac_file; then
2902 ac_more_lines=false
2903 rm -f conftest.s$ac_file
2904 else
2905 if test -z "$ac_sed_cmds"; then
2906 ac_sed_cmds="sed -f conftest.s$ac_file"
2907 else
2908 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2909 fi
2910 ac_file=`expr $ac_file + 1`
2911 ac_beg=$ac_end
2912 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2913 fi
2914 done
2915 if test -z "$ac_sed_cmds"; then
2916 ac_sed_cmds=cat
2917 fi
2918 EOF
2919
2920 cat >> $CONFIG_STATUS <<EOF
2921
2922 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile include/Makefile lib/Makefile adpcm/Makefile gsm/Makefile librplay/Makefile rplayd/Makefile rplay/Makefile rptp/Makefile doc/Makefile devrplay/Makefile"}
2923 EOF
2924 cat >> $CONFIG_STATUS <<\EOF
2925 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2926 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2927 case "$ac_file" in
2928 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2929 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2930 *) ac_file_in="${ac_file}.in" ;;
2931 esac
2932
2933 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2934
2935 # Remove last slash and all that follows it. Not all systems have dirname.
2936 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2937 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2938 # The file is in a subdirectory.
2939 test ! -d "$ac_dir" && mkdir "$ac_dir"
2940 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2941 # A "../" for each directory in $ac_dir_suffix.
2942 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2943 else
2944 ac_dir_suffix= ac_dots=
2945 fi
2946
2947 case "$ac_given_srcdir" in
2948 .) srcdir=.
2949 if test -z "$ac_dots"; then top_srcdir=.
2950 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2951 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2952 *) # Relative path.
2953 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2954 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2955 esac
2956
2957 case "$ac_given_INSTALL" in
2958 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2959 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2960 esac
2961
2962 echo creating "$ac_file"
2963 rm -f "$ac_file"
2964 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2965 case "$ac_file" in
2966 *Makefile*) ac_comsub="1i\\
2967 # $configure_input" ;;
2968 *) ac_comsub= ;;
2969 esac
2970
2971 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2972 sed -e "$ac_comsub
2973 s%@configure_input@%$configure_input%g
2974 s%@srcdir@%$srcdir%g
2975 s%@top_srcdir@%$top_srcdir%g
2976 s%@INSTALL@%$INSTALL%g
2977 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2978 fi; done
2979 rm -f conftest.s*
2980
2981 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2982 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2983 #
2984 # ac_d sets the value in "#define NAME VALUE" lines.
2985 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2986 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2987 ac_dC='\3'
2988 ac_dD='%g'
2989 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2990 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2991 ac_uB='\([ ]\)%\1#\2define\3'
2992 ac_uC=' '
2993 ac_uD='\4%g'
2994 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2995 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2996 ac_eB='$%\1#\2define\3'
2997 ac_eC=' '
2998 ac_eD='%g'
2999
3000 if test "${CONFIG_HEADERS+set}" != set; then
3001 EOF
3002 cat >> $CONFIG_STATUS <<EOF
3003 CONFIG_HEADERS="include/config.h"
3004 EOF
3005 cat >> $CONFIG_STATUS <<\EOF
3006 fi
3007 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3008 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3009 case "$ac_file" in
3010 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3011 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3012 *) ac_file_in="${ac_file}.in" ;;
3013 esac
3014
3015 echo creating $ac_file
3016
3017 rm -f conftest.frag conftest.in conftest.out
3018 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3019 cat $ac_file_inputs > conftest.in
3020
3021 EOF
3022
3023 # Transform confdefs.h into a sed script conftest.vals that substitutes
3024 # the proper values into config.h.in to produce config.h. And first:
3025 # Protect against being on the right side of a sed subst in config.status.
3026 # Protect against being in an unquoted here document in config.status.
3027 rm -f conftest.vals
3028 cat > conftest.hdr <<\EOF
3029 s/[\\&%]/\\&/g
3030 s%[\\$`]%\\&%g
3031 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3032 s%ac_d%ac_u%gp
3033 s%ac_u%ac_e%gp
3034 EOF
3035 sed -n -f conftest.hdr confdefs.h > conftest.vals
3036 rm -f conftest.hdr
3037
3038 # This sed command replaces #undef with comments. This is necessary, for
3039 # example, in the case of _POSIX_SOURCE, which is predefined and required
3040 # on some systems where configure will not decide to define it.
3041 cat >> conftest.vals <<\EOF
3042 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3043 EOF
3044
3045 # Break up conftest.vals because some shells have a limit on
3046 # the size of here documents, and old seds have small limits too.
3047
3048 rm -f conftest.tail
3049 while :
3050 do
3051 ac_lines=`grep -c . conftest.vals`
3052 # grep -c gives empty output for an empty file on some AIX systems.
3053 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3054 # Write a limited-size here document to conftest.frag.
3055 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3056 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3057 echo 'CEOF
3058 sed -f conftest.frag conftest.in > conftest.out
3059 rm -f conftest.in
3060 mv conftest.out conftest.in
3061 ' >> $CONFIG_STATUS
3062 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3063 rm -f conftest.vals
3064 mv conftest.tail conftest.vals
3065 done
3066 rm -f conftest.vals
3067
3068 cat >> $CONFIG_STATUS <<\EOF
3069 rm -f conftest.frag conftest.h
3070 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3071 cat conftest.in >> conftest.h
3072 rm -f conftest.in
3073 if cmp -s $ac_file conftest.h 2>/dev/null; then
3074 echo "$ac_file is unchanged"
3075 rm -f conftest.h
3076 else
3077 # Remove last slash and all that follows it. Not all systems have dirname.
3078 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3079 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3080 # The file is in a subdirectory.
3081 test ! -d "$ac_dir" && mkdir "$ac_dir"
3082 fi
3083 rm -f $ac_file
3084 mv conftest.h $ac_file
3085 fi
3086 fi; done
3087
3088 EOF
3089
3090 cat >> $CONFIG_STATUS <<EOF
3091 ac_sources="rplayd/audio/audio_${RPLAY_TARGET}.c rplayd/audio/audio_${RPLAY_TARGET}.h"
3092 ac_dests="rplayd/audio.c rplayd/audio.h"
3093 EOF
3094
3095 cat >> $CONFIG_STATUS <<\EOF
3096 srcdir=$ac_given_srcdir
3097 while test -n "$ac_sources"; do
3098 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3099 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3100
3101 echo "linking $srcdir/$ac_source to $ac_dest"
3102
3103 if test ! -r $srcdir/$ac_source; then
3104 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3105 fi
3106 rm -f $ac_dest
3107
3108 # Make relative symlinks.
3109 # Remove last slash and all that follows it. Not all systems have dirname.
3110 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3111 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3112 # The dest file is in a subdirectory.
3113 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3114 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3115 # A "../" for each directory in $ac_dest_dir_suffix.
3116 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3117 else
3118 ac_dest_dir_suffix= ac_dots=
3119 fi
3120
3121 case "$srcdir" in
3122 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3123 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3124 esac
3125
3126 # Make a symlink if possible; otherwise try a hard link.
3127 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3128 ln $srcdir/$ac_source $ac_dest; then :
3129 else
3130 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3131 fi
3132 done
3133 EOF
3134 cat >> $CONFIG_STATUS <<EOF
3135
3136 EOF
3137 cat >> $CONFIG_STATUS <<\EOF
3138
3139 exit 0
3140 EOF
3141 chmod +x $CONFIG_STATUS
3142 rm -fr confdefs* $ac_clean_files
3143 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3144
3145 if test "$no_recursion" != yes; then
3146
3147 # Remove --cache-file and --srcdir arguments so they do not pile up.
3148 ac_sub_configure_args=
3149 ac_prev=
3150 for ac_arg in $ac_configure_args; do
3151 if test -n "$ac_prev"; then
3152 ac_prev=
3153 continue
3154 fi
3155 case "$ac_arg" in
3156 -cache-file | --cache-file | --cache-fil | --cache-fi \
3157 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3158 ac_prev=cache_file ;;
3159 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3160 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3161 ;;
3162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3163 ac_prev=srcdir ;;
3164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3165 ;;
3166 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3167 esac
3168 done
3169
3170 for ac_config_dir in rx; do
3171
3172 # Do not complain, so a configure script can configure whichever
3173 # parts of a large source tree are present.
3174 if test ! -d $srcdir/$ac_config_dir; then
3175 continue
3176 fi
3177
3178 echo configuring in $ac_config_dir
3179
3180 case "$srcdir" in
3181 .) ;;
3182 *)
3183 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3184 else
3185 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3186 fi
3187 ;;
3188 esac
3189
3190 ac_popdir=`pwd`
3191 cd $ac_config_dir
3192
3193 # A "../" for each directory in /$ac_config_dir.
3194 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3195
3196 case "$srcdir" in
3197 .) # No --srcdir option. We are building in place.
3198 ac_sub_srcdir=$srcdir ;;
3199 /*) # Absolute path.
3200 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3201 *) # Relative path.
3202 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3203 esac
3204
3205 # Check for guested configure; otherwise get Cygnus style configure.
3206 if test -f $ac_sub_srcdir/configure; then
3207 ac_sub_configure=$ac_sub_srcdir/configure
3208 elif test -f $ac_sub_srcdir/configure.in; then
3209 ac_sub_configure=$ac_configure
3210 else
3211 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3212 ac_sub_configure=
3213 fi
3214
3215 # The recursion is here.
3216 if test -n "$ac_sub_configure"; then
3217
3218 # Make the cache file name correct relative to the subdirectory.
3219 case "$cache_file" in
3220 /*) ac_sub_cache_file=$cache_file ;;
3221 *) # Relative path.
3222 ac_sub_cache_file="$ac_dots$cache_file" ;;
3223 esac
3224 case "$ac_given_INSTALL" in
3225 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3226 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3227 esac
3228
3229 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3230 # The eval makes quoting arguments work.
3231 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3232 then :
3233 else
3234 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3235 fi
3236 fi
3237
•3238 cd "$ac_popdir"
3239 done
3240 fi
3241