Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
14 case X$UNAME in
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
17 esac
18 PATH_SEPARATOR=$lt_cv_sys_path_separator
19 fi
20
21
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
24
25 case X$ECHO in
26 X*--fallback-echo)
27 # Remove one level of quotation (which was required for Make).
28 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
29 ;;
30 esac
31
32 echo=${ECHO-echo}
33 if test "X$1" = X--no-reexec; then
34 # Discard the --no-reexec flag, and continue.
35 shift
36 elif test "X$1" = X--fallback-echo; then
37 # Avoid inline document here, it may be left over
38 :
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40 # Yippee, $echo works!
41 :
42 else
43 # Restart under the correct shell.
44 exec $SHELL "$0" --no-reexec ${1+"$@"}
45 fi
46
47 if test "X$1" = X--fallback-echo; then
48 # used as fallback echo
49 shift
50 cat <<EOF
51
52 EOF
53 exit 0
54 fi
55
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 # if CDPATH is set.
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66 echo_test_string="`eval $cmd`" &&
67 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
68 then
69 break
70 fi
71 done
72 fi
73
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76 test "X$echo_testing_string" = "X$echo_test_string"; then
77 :
78 else
79 # The Solaris, AIX, and Digital Unix default echo programs unquote
80 # backslashes. This makes it impossible to quote backslashes using
81 # echo "$something" | sed 's/\\/\\\\/g'
82 #
83 # So, first we look for a working echo in the user's PATH.
84
85 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86 for dir in $PATH /usr/ucb; do
87 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90 test "X$echo_testing_string" = "X$echo_test_string"; then
91 echo="$dir/echo"
92 break
93 fi
94 done
95 IFS="$save_ifs"
96
97 if test "X$echo" = Xecho; then
98 # We didn't find a better echo, so look for alternatives.
99 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101 test "X$echo_testing_string" = "X$echo_test_string"; then
102 # This shell has a builtin print -r that does the trick.
103 echo='print -r'
104 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105 test "X$CONFIG_SHELL" != X/bin/ksh; then
106 # If we have ksh, try running configure again with it.
107 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108 export ORIGINAL_CONFIG_SHELL
109 CONFIG_SHELL=/bin/ksh
110 export CONFIG_SHELL
111 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
112 else
113 # Try using printf.
114 echo='printf %s\n'
115 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117 test "X$echo_testing_string" = "X$echo_test_string"; then
118 # Cool, printf works
119 :
120 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121 test "X$echo_testing_string" = 'X\t' &&
122 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123 test "X$echo_testing_string" = "X$echo_test_string"; then
124 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125 export CONFIG_SHELL
126 SHELL="$CONFIG_SHELL"
127 export SHELL
128 echo="$CONFIG_SHELL $0 --fallback-echo"
129 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130 test "X$echo_testing_string" = 'X\t' &&
131 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132 test "X$echo_testing_string" = "X$echo_test_string"; then
133 echo="$CONFIG_SHELL $0 --fallback-echo"
134 else
135 # maybe with a smaller string...
136 prev=:
137
138 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
140 then
141 break
142 fi
143 prev="$cmd"
144 done
145
146 if test "$prev" != 'sed 50q "$0"'; then
147 echo_test_string=`eval $prev`
148 export echo_test_string
149 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150 else
151 # Oops. We lost completely, so just stick with echo.
152 echo=echo
153 fi
154 fi
155 fi
156 fi
157 fi
158 fi
159
160 # Copy echo and quote the copy suitably for passing to libtool from
161 # the Makefile, instead of quoting the original, which is used later.
162 ECHO=$echo
163 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165 fi
166
167
168
169 if expr a : '\(a\)' >/dev/null 2>&1; then
170 as_expr=expr
171 else
172 as_expr=false
173 fi
174
175
176 ## --------------------- ##
177 ## M4sh Initialization. ##
178 ## --------------------- ##
179
180 # Be Bourne compatible
181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
182 emulate sh
183 NULLCMD=:
184 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
185 set -o posix
186 fi
187
188 # NLS nuisances.
189 # Support unset when possible.
190 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
191 as_unset=unset
192 else
193 as_unset=false
194 fi
195
196 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
197 { $as_unset LANG || test "${LANG+set}" != set; } ||
198 { LANG=C; export LANG; }
199 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
200 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
201 { LC_ALL=C; export LC_ALL; }
202 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
203 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
204 { LC_TIME=C; export LC_TIME; }
205 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
206 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
207 { LC_CTYPE=C; export LC_CTYPE; }
208 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
209 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
210 { LANGUAGE=C; export LANGUAGE; }
211 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
212 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
213 { LC_COLLATE=C; export LC_COLLATE; }
214 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
215 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
216 { LC_NUMERIC=C; export LC_NUMERIC; }
217 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
218 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
219 { LC_MESSAGES=C; export LC_MESSAGES; }
220
221
222 # Name of the executable.
223 as_me=`(basename "$0") 2>/dev/null ||
224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
225 X"$0" : 'X\(//\)$' \| \
226 X"$0" : 'X\(/\)$' \| \
227 . : '\(.\)' 2>/dev/null ||
228 echo X/"$0" |
229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
230 /^X\/\(\/\/\)$/{ s//\1/; q; }
231 /^X\/\(\/\).*/{ s//\1/; q; }
232 s/.*/./; q'`
233
234 # PATH needs CR, and LINENO needs CR and PATH.
235 # Avoid depending upon Character Ranges.
236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239 as_cr_digits='0123456789'
240 as_cr_alnum=$as_cr_Letters$as_cr_digits
241
242 # The user is always right.
243 if test "${PATH_SEPARATOR+set}" != set; then
244 echo "#! /bin/sh" >conftest.sh
245 echo "exit 0" >>conftest.sh
246 chmod +x conftest.sh
247 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
248 PATH_SEPARATOR=';'
249 else
250 PATH_SEPARATOR=:
251 fi
252 rm -f conftest.sh
253 fi
254
255
256 as_lineno_1=$LINENO
257 as_lineno_2=$LINENO
258 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
259 test "x$as_lineno_1" != "x$as_lineno_2" &&
260 test "x$as_lineno_3" = "x$as_lineno_2" || {
261 # Find who we are. Look in the path if we contain no path at all
262 # relative or not.
263 case $0 in
264 *[\\/]* ) as_myself=$0 ;;
265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
266 for as_dir in $PATH
267 do
268 IFS=$as_save_IFS
269 test -z "$as_dir" && as_dir=.
270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
271 done
272
273 ;;
274 esac
275 # We did not find ourselves, most probably we were run as `sh COMMAND'
276 # in which case we are not to be found in the path.
277 if test "x$as_myself" = x; then
278 as_myself=$0
279 fi
280 if test ! -f "$as_myself"; then
281 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
282 { (exit 1); exit 1; }; }
283 fi
284 case $CONFIG_SHELL in
285 '')
286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
288 do
289 IFS=$as_save_IFS
290 test -z "$as_dir" && as_dir=.
291 for as_base in sh bash ksh sh5; do
292 case $as_dir in
293 /*)
294 if ("$as_dir/$as_base" -c '
295 as_lineno_1=$LINENO
296 as_lineno_2=$LINENO
297 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
298 test "x$as_lineno_1" != "x$as_lineno_2" &&
299 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
300 CONFIG_SHELL=$as_dir/$as_base
301 export CONFIG_SHELL
302 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
303 fi;;
304 esac
305 done
306 done
307 ;;
308 esac
309
310 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
311 # uniformly replaced by the line number. The first 'sed' inserts a
312 # line-number line before each line; the second 'sed' does the real
313 # work. The second script uses 'N' to pair each line-number line
314 # with the numbered line, and appends trailing '-' during
315 # substitution so that $LINENO is not a special case at line end.
316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
317 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
318 sed '=' <$as_myself |
319 sed '
320 N
321 s,$,-,
322 : loop
323 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
324 t loop
325 s,-$,,
326 s,^['$as_cr_digits']*\n,,
327 ' >$as_me.lineno &&
328 chmod +x $as_me.lineno ||
329 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
330 { (exit 1); exit 1; }; }
331
332 # Don't try to exec as it changes $[0], causing all sort of problems
333 # (the dirname of $[0] is not the place where we might find the
334 # original and so on. Autoconf is especially sensible to this).
335 . ./$as_me.lineno
336 # Exit status is that of the last command.
337 exit
338 }
339
340
341 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
342 *c*,-n*) ECHO_N= ECHO_C='
343 ' ECHO_T=' ' ;;
344 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
345 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
346 esac
347
348 if expr a : '\(a\)' >/dev/null 2>&1; then
349 as_expr=expr
350 else
351 as_expr=false
352 fi
353
354 rm -f conf$$ conf$$.exe conf$$.file
355 echo >conf$$.file
356 if ln -s conf$$.file conf$$ 2>/dev/null; then
357 # We could just check for DJGPP; but this test a) works b) is more generic
358 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
359 if test -f conf$$.exe; then
360 # Don't use ln at all; we don't have any links
361 as_ln_s='cp -p'
362 else
363 as_ln_s='ln -s'
364 fi
365 elif ln conf$$.file conf$$ 2>/dev/null; then
366 as_ln_s=ln
367 else
368 as_ln_s='cp -p'
369 fi
370 rm -f conf$$ conf$$.exe conf$$.file
371
372 as_executable_p="test -f"
373
374 # Sed expression to map a string onto a valid CPP name.
375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
376
377 # Sed expression to map a string onto a valid variable name.
378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
379
380
381 # IFS
382 # We need space, tab and new line, in precisely that order.
383 as_nl='
384 '
385 IFS=" $as_nl"
386
387 # CDPATH.
388 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
389
390
391 # Name of the host.
392 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
393 # so uname gets run too.
394 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
395
396 exec 6>&1
397
398 #
399 # Initializations.
400 #
401 ac_default_prefix=/usr/local
402 cross_compiling=no
403 subdirs=
404 MFLAGS=
405 MAKEFLAGS=
406 SHELL=${CONFIG_SHELL-/bin/sh}
407
408 # Maximum number of lines to put in a shell here document.
409 # This variable seems obsolete. It should probably be removed, and
410 # only ac_max_sed_lines should be used.
411 : ${ac_max_here_lines=38}
412
413 # Identity of this package.
414 PACKAGE_NAME=
415 PACKAGE_TARNAME=
416 PACKAGE_VERSION=
417 PACKAGE_STRING=
418 PACKAGE_BUGREPORT=
419
420 ac_unique_file="Makefile.in"
421 # Factoring default headers for most tests.
422 ac_includes_default="\
423 #include <stdio.h>
424 #if HAVE_SYS_TYPES_H
425 # include <sys/types.h>
426 #endif
427 #if HAVE_SYS_STAT_H
428 # include <sys/stat.h>
429 #endif
430 #if STDC_HEADERS
431 # include <stdlib.h>
432 # include <stddef.h>
433 #else
434 # if HAVE_STDLIB_H
435 # include <stdlib.h>
436 # endif
437 #endif
438 #if HAVE_STRING_H
439 # if !STDC_HEADERS && HAVE_MEMORY_H
440 # include <memory.h>
441 # endif
442 # include <string.h>
443 #endif
444 #if HAVE_STRINGS_H
445 # include <strings.h>
446 #endif
447 #if HAVE_INTTYPES_H
448 # include <inttypes.h>
449 #else
450 # if HAVE_STDINT_H
451 # include <stdint.h>
452 # endif
453 #endif
454 #if HAVE_UNISTD_H
455 # include <unistd.h>
456 #endif"
457
458 ac_default_prefix=/usr/local
459
460 # Initialize some variables set by options.
461 ac_init_help=
462 ac_init_version=false
463 # The variables have the same names as the options, with
464 # dashes changed to underlines.
465 cache_file=/dev/null
466 exec_prefix=NONE
467 no_create=
468 no_recursion=
469 prefix=NONE
470 program_prefix=NONE
471 program_suffix=NONE
472 program_transform_name=s,x,x,
473 silent=
474 site=
475 srcdir=
476 verbose=
477 x_includes=NONE
478 x_libraries=NONE
479
480 # Installation directory options.
481 # These are left unexpanded so users can "make install exec_prefix=/foo"
482 # and all the variables that are supposed to be based on exec_prefix
483 # by default will actually change.
484 # Use braces instead of parens because sh, perl, etc. also accept them.
485 bindir='${exec_prefix}/bin'
486 sbindir='${exec_prefix}/sbin'
487 libexecdir='${exec_prefix}/libexec'
488 datadir='${prefix}/share'
489 sysconfdir='${prefix}/etc'
490 sharedstatedir='${prefix}/com'
491 localstatedir='${prefix}/var'
492 libdir='${exec_prefix}/lib'
493 includedir='${prefix}/include'
494 oldincludedir='/usr/include'
495 infodir='${prefix}/info'
496 mandir='${prefix}/man'
497
498 ac_prev=
499 for ac_option
500 do
501 # If the previous option needs an argument, assign it.
502 if test -n "$ac_prev"; then
503 eval "$ac_prev=\$ac_option"
504 ac_prev=
505 continue
506 fi
507
508 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
509
510 # Accept the important Cygnus configure options, so we can diagnose typos.
511
512 case $ac_option in
513
514 -bindir | --bindir | --bindi | --bind | --bin | --bi)
515 ac_prev=bindir ;;
516 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
517 bindir=$ac_optarg ;;
518
519 -build | --build | --buil | --bui | --bu)
520 ac_prev=build_alias ;;
521 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
522 build_alias=$ac_optarg ;;
523
524 -cache-file | --cache-file | --cache-fil | --cache-fi \
525 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
526 ac_prev=cache_file ;;
527 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
528 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
529 cache_file=$ac_optarg ;;
530
531 --config-cache | -C)
532 cache_file=config.cache ;;
533
534 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
535 ac_prev=datadir ;;
536 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
537 | --da=*)
538 datadir=$ac_optarg ;;
539
540 -disable-* | --disable-*)
541 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
542 # Reject names that are not valid shell variable names.
543 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
544 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
545 { (exit 1); exit 1; }; }
546 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
547 eval "enable_$ac_feature=no" ;;
548
549 -enable-* | --enable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "enable_$ac_feature='$ac_optarg'" ;;
561
562 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
563 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
564 | --exec | --exe | --ex)
565 ac_prev=exec_prefix ;;
566 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
567 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
568 | --exec=* | --exe=* | --ex=*)
569 exec_prefix=$ac_optarg ;;
570
571 -gas | --gas | --ga | --g)
572 # Obsolete; use --with-gas.
573 with_gas=yes ;;
574
575 -help | --help | --hel | --he | -h)
576 ac_init_help=long ;;
577 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
578 ac_init_help=recursive ;;
579 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
580 ac_init_help=short ;;
581
582 -host | --host | --hos | --ho)
583 ac_prev=host_alias ;;
584 -host=* | --host=* | --hos=* | --ho=*)
585 host_alias=$ac_optarg ;;
586
587 -includedir | --includedir | --includedi | --included | --include \
588 | --includ | --inclu | --incl | --inc)
589 ac_prev=includedir ;;
590 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
591 | --includ=* | --inclu=* | --incl=* | --inc=*)
592 includedir=$ac_optarg ;;
593
594 -infodir | --infodir | --infodi | --infod | --info | --inf)
595 ac_prev=infodir ;;
596 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
597 infodir=$ac_optarg ;;
598
599 -libdir | --libdir | --libdi | --libd)
600 ac_prev=libdir ;;
601 -libdir=* | --libdir=* | --libdi=* | --libd=*)
602 libdir=$ac_optarg ;;
603
604 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
605 | --libexe | --libex | --libe)
606 ac_prev=libexecdir ;;
607 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
608 | --libexe=* | --libex=* | --libe=*)
609 libexecdir=$ac_optarg ;;
610
611 -localstatedir | --localstatedir | --localstatedi | --localstated \
612 | --localstate | --localstat | --localsta | --localst \
613 | --locals | --local | --loca | --loc | --lo)
614 ac_prev=localstatedir ;;
615 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
616 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
617 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
618 localstatedir=$ac_optarg ;;
619
620 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
621 ac_prev=mandir ;;
622 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
623 mandir=$ac_optarg ;;
624
625 -nfp | --nfp | --nf)
626 # Obsolete; use --without-fp.
627 with_fp=no ;;
628
629 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
630 | --no-cr | --no-c | -n)
631 no_create=yes ;;
632
633 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
634 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
635 no_recursion=yes ;;
636
637 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
638 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
639 | --oldin | --oldi | --old | --ol | --o)
640 ac_prev=oldincludedir ;;
641 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
642 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
643 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
644 oldincludedir=$ac_optarg ;;
645
646 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
647 ac_prev=prefix ;;
648 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
649 prefix=$ac_optarg ;;
650
651 -program-prefix | --program-prefix | --program-prefi | --program-pref \
652 | --program-pre | --program-pr | --program-p)
653 ac_prev=program_prefix ;;
654 -program-prefix=* | --program-prefix=* | --program-prefi=* \
655 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
656 program_prefix=$ac_optarg ;;
657
658 -program-suffix | --program-suffix | --program-suffi | --program-suff \
659 | --program-suf | --program-su | --program-s)
660 ac_prev=program_suffix ;;
661 -program-suffix=* | --program-suffix=* | --program-suffi=* \
662 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
663 program_suffix=$ac_optarg ;;
664
665 -program-transform-name | --program-transform-name \
666 | --program-transform-nam | --program-transform-na \
667 | --program-transform-n | --program-transform- \
668 | --program-transform | --program-transfor \
669 | --program-transfo | --program-transf \
670 | --program-trans | --program-tran \
671 | --progr-tra | --program-tr | --program-t)
672 ac_prev=program_transform_name ;;
673 -program-transform-name=* | --program-transform-name=* \
674 | --program-transform-nam=* | --program-transform-na=* \
675 | --program-transform-n=* | --program-transform-=* \
676 | --program-transform=* | --program-transfor=* \
677 | --program-transfo=* | --program-transf=* \
678 | --program-trans=* | --program-tran=* \
679 | --progr-tra=* | --program-tr=* | --program-t=*)
680 program_transform_name=$ac_optarg ;;
681
682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
683 | -silent | --silent | --silen | --sile | --sil)
684 silent=yes ;;
685
686 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
687 ac_prev=sbindir ;;
688 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
689 | --sbi=* | --sb=*)
690 sbindir=$ac_optarg ;;
691
692 -sharedstatedir | --sharedstatedir | --sharedstatedi \
693 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
694 | --sharedst | --shareds | --shared | --share | --shar \
695 | --sha | --sh)
696 ac_prev=sharedstatedir ;;
697 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
698 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
699 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
700 | --sha=* | --sh=*)
701 sharedstatedir=$ac_optarg ;;
702
703 -site | --site | --sit)
704 ac_prev=site ;;
705 -site=* | --site=* | --sit=*)
706 site=$ac_optarg ;;
707
708 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
709 ac_prev=srcdir ;;
710 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
711 srcdir=$ac_optarg ;;
712
713 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
714 | --syscon | --sysco | --sysc | --sys | --sy)
715 ac_prev=sysconfdir ;;
716 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
717 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
718 sysconfdir=$ac_optarg ;;
719
720 -target | --target | --targe | --targ | --tar | --ta | --t)
721 ac_prev=target_alias ;;
722 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
723 target_alias=$ac_optarg ;;
724
725 -v | -verbose | --verbose | --verbos | --verbo | --verb)
726 verbose=yes ;;
727
728 -version | --version | --versio | --versi | --vers | -V)
729 ac_init_version=: ;;
730
731 -with-* | --with-*)
732 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
733 # Reject names that are not valid shell variable names.
734 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
735 { echo "$as_me: error: invalid package name: $ac_package" >&2
736 { (exit 1); exit 1; }; }
737 ac_package=`echo $ac_package| sed 's/-/_/g'`
738 case $ac_option in
739 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
740 *) ac_optarg=yes ;;
741 esac
742 eval "with_$ac_package='$ac_optarg'" ;;
743
744 -without-* | --without-*)
745 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package | sed 's/-/_/g'`
751 eval "with_$ac_package=no" ;;
752
753 --x)
754 # Obsolete; use --with-x.
755 with_x=yes ;;
756
757 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
758 | --x-incl | --x-inc | --x-in | --x-i)
759 ac_prev=x_includes ;;
760 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
761 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
762 x_includes=$ac_optarg ;;
763
764 -x-libraries | --x-libraries | --x-librarie | --x-librari \
765 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
766 ac_prev=x_libraries ;;
767 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
768 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
769 x_libraries=$ac_optarg ;;
770
771 -*) { echo "$as_me: error: unrecognized option: $ac_option
772 Try \`$0 --help' for more information." >&2
773 { (exit 1); exit 1; }; }
774 ;;
775
776 *=*)
777 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
778 # Reject names that are not valid shell variable names.
779 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
780 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
781 { (exit 1); exit 1; }; }
782 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
783 eval "$ac_envvar='$ac_optarg'"
784 export $ac_envvar ;;
785
786 *)
787 # FIXME: should be removed in autoconf 3.0.
788 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
789 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
790 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
791 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
792 ;;
793
794 esac
795 done
796
797 if test -n "$ac_prev"; then
798 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
799 { echo "$as_me: error: missing argument to $ac_option" >&2
800 { (exit 1); exit 1; }; }
801 fi
802
803 # Be sure to have absolute paths.
804 for ac_var in exec_prefix prefix
805 do
806 eval ac_val=$`echo $ac_var`
807 case $ac_val in
808 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
809 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
810 { (exit 1); exit 1; }; };;
811 esac
812 done
813
814 # Be sure to have absolute paths.
815 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
816 localstatedir libdir includedir oldincludedir infodir mandir
817 do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824 done
825
826 # There might be people who depend on the old broken behavior: `$host'
827 # used to hold the argument of --host etc.
828 # FIXME: To remove some day.
829 build=$build_alias
830 host=$host_alias
831 target=$target_alias
832
833 # FIXME: To remove some day.
834 if test "x$host_alias" != x; then
835 if test "x$build_alias" = x; then
836 cross_compiling=maybe
837 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
838 If a cross compiler is detected then cross compile mode will be used." >&2
839 elif test "x$build_alias" != "x$host_alias"; then
840 cross_compiling=yes
841 fi
842 fi
843
844 ac_tool_prefix=
845 test -n "$host_alias" && ac_tool_prefix=$host_alias-
846
847 test "$silent" = yes && exec 6>/dev/null
848
849
850 # Find the source files, if location was not specified.
851 if test -z "$srcdir"; then
852 ac_srcdir_defaulted=yes
853 # Try the directory containing this script, then its parent.
854 ac_confdir=`(dirname "$0") 2>/dev/null ||
855 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
856 X"$0" : 'X\(//\)[^/]' \| \
857 X"$0" : 'X\(//\)$' \| \
858 X"$0" : 'X\(/\)' \| \
859 . : '\(.\)' 2>/dev/null ||
860 echo X"$0" |
861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
863 /^X\(\/\/\)$/{ s//\1/; q; }
864 /^X\(\/\).*/{ s//\1/; q; }
865 s/.*/./; q'`
866 srcdir=$ac_confdir
867 if test ! -r $srcdir/$ac_unique_file; then
868 srcdir=..
869 fi
870 else
871 ac_srcdir_defaulted=no
872 fi
873 if test ! -r $srcdir/$ac_unique_file; then
874 if test "$ac_srcdir_defaulted" = yes; then
875 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
876 { (exit 1); exit 1; }; }
877 else
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
879 { (exit 1); exit 1; }; }
880 fi
881 fi
882 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
883 ac_env_build_alias_set=${build_alias+set}
884 ac_env_build_alias_value=$build_alias
885 ac_cv_env_build_alias_set=${build_alias+set}
886 ac_cv_env_build_alias_value=$build_alias
887 ac_env_host_alias_set=${host_alias+set}
888 ac_env_host_alias_value=$host_alias
889 ac_cv_env_host_alias_set=${host_alias+set}
890 ac_cv_env_host_alias_value=$host_alias
891 ac_env_target_alias_set=${target_alias+set}
892 ac_env_target_alias_value=$target_alias
893 ac_cv_env_target_alias_set=${target_alias+set}
894 ac_cv_env_target_alias_value=$target_alias
895 ac_env_CC_set=${CC+set}
896 ac_env_CC_value=$CC
897 ac_cv_env_CC_set=${CC+set}
898 ac_cv_env_CC_value=$CC
899 ac_env_CFLAGS_set=${CFLAGS+set}
900 ac_env_CFLAGS_value=$CFLAGS
901 ac_cv_env_CFLAGS_set=${CFLAGS+set}
902 ac_cv_env_CFLAGS_value=$CFLAGS
903 ac_env_LDFLAGS_set=${LDFLAGS+set}
904 ac_env_LDFLAGS_value=$LDFLAGS
905 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
906 ac_cv_env_LDFLAGS_value=$LDFLAGS
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CPP_set=${CPP+set}
912 ac_env_CPP_value=$CPP
913 ac_cv_env_CPP_set=${CPP+set}
914 ac_cv_env_CPP_value=$CPP
915
916 #
917 # Report the --help message.
918 #
919 if test "$ac_init_help" = "long"; then
920 # Omit some internal or obsolete options to make the list less imposing.
921 # This message is too long to be a string in the A/UX 3.1 sh.
922 cat <<_ACEOF
923 \`configure' configures this package to adapt to many kinds of systems.
924
925 Usage: $0 [OPTION]... [VAR=VALUE]...
926
927 To assign environment variables (e.g., CC, CFLAGS...), specify them as
928 VAR=VALUE. See below for descriptions of some of the useful variables.
929
930 Defaults for the options are specified in brackets.
931
932 Configuration:
933 -h, --help display this help and exit
934 --help=short display options specific to this package
935 --help=recursive display the short help of all the included packages
936 -V, --version display version information and exit
937 -q, --quiet, --silent do not print \`checking...' messages
938 --cache-file=FILE cache test results in FILE [disabled]
939 -C, --config-cache alias for \`--cache-file=config.cache'
940 -n, --no-create do not create output files
941 --srcdir=DIR find the sources in DIR [configure dir or \`..']
942
943 _ACEOF
944
945 cat <<_ACEOF
946 Installation directories:
947 --prefix=PREFIX install architecture-independent files in PREFIX
948 [$ac_default_prefix]
949 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
950 [PREFIX]
951
952 By default, \`make install' will install all the files in
953 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
954 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
955 for instance \`--prefix=\$HOME'.
956
957 For better control, use the options below.
958
959 Fine tuning of the installation directories:
960 --bindir=DIR user executables [EPREFIX/bin]
961 --sbindir=DIR system admin executables [EPREFIX/sbin]
962 --libexecdir=DIR program executables [EPREFIX/libexec]
963 --datadir=DIR read-only architecture-independent data [PREFIX/share]
964 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
965 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
966 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
967 --libdir=DIR object code libraries [EPREFIX/lib]
968 --includedir=DIR C header files [PREFIX/include]
969 --oldincludedir=DIR C header files for non-gcc [/usr/include]
970 --infodir=DIR info documentation [PREFIX/info]
971 --mandir=DIR man documentation [PREFIX/man]
972 _ACEOF
973
974 cat <<\_ACEOF
975
976 System types:
977 --build=BUILD configure for building on BUILD [guessed]
978 --host=HOST cross-compile to build programs to run on HOST [BUILD]
979 --target=TARGET configure for building compilers for TARGET [HOST]
980 _ACEOF
981 fi
982
983 if test -n "$ac_init_help"; then
984
985 cat <<\_ACEOF
986
987 Optional Features:
988 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
989 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
990 --enable-shared=PKGS build shared libraries default=no
991 --enable-static=PKGS build static libraries default=yes
992 --enable-fast-install=PKGS optimize for fast installation default=yes
993 --disable-libtool-lock avoid locking (might break parallel builds)
994 --disable-snmp disable snmp support
995 --disable-foomatic disable foomatic support
996 --disable-strip disable stripping binaries by default
997 --disable-gscheck disable checking GhostScript for security flaw
998 --enable-nls use Native Language Support
999 --disable-rpath do not hardcode runtime library paths
1000
1001 Optional Packages:
1002 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1003 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1004 --with-copts OBSOLETE - use CFLAGS=..., see configure --help
1005 --with-ccopts OBSOLETE - use CPPFLAGS=..., see configure --help
1006 --with-ldopts OBSOLETE - use LDFLAGS=..., see configure --help
1007 --with-localedir=PATH specify locale information directory
1008 --with-gnu-ld assume the C compiler uses GNU ld default=no
1009 --with-pic try to use only PIC/non-PIC objects default=use both
1010 --with-ifhp_conf=path ifhp.conf config file (default \${sysconfdir}/ifhp.conf)
1011 --with-foomatic-rip=PATH path to foomatic-rip
1012 --with-pagesize=SIZE default page size (default letter)
1013 --with-filterdir=DIR filter directory (default \${libexecdir}/filters)
1014 --with-fontdir=DIR font directory (default \${libexecdir}/filters/fonts)
1015 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1016 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1017 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1018 --without-libintl-prefix don't search for libintl in includedir and libdir
1019
1020 Some influential environment variables:
1021 CC C compiler command
1022 CFLAGS C compiler flags
1023 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1024 nonstandard directory <lib dir>
1025 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1026 headers in a nonstandard directory <include dir>
1027 CPP C preprocessor
1028
1029 Use these variables to override the choices made by `configure' or to help
1030 it to find libraries and programs with nonstandard names/locations.
1031
1032 _ACEOF
1033 fi
1034
1035 if test "$ac_init_help" = "recursive"; then
1036 # If there are subdirs, report their specific --help.
1037 ac_popdir=`pwd`
1038 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1039 test -d $ac_dir || continue
1040 ac_builddir=.
1041
1042 if test "$ac_dir" != .; then
1043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1044 # A "../" for each directory in $ac_dir_suffix.
1045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1046 else
1047 ac_dir_suffix= ac_top_builddir=
1048 fi
1049
1050 case $srcdir in
1051 .) # No --srcdir option. We are building in place.
1052 ac_srcdir=.
1053 if test -z "$ac_top_builddir"; then
1054 ac_top_srcdir=.
1055 else
1056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1057 fi ;;
1058 [\\/]* | ?:[\\/]* ) # Absolute path.
1059 ac_srcdir=$srcdir$ac_dir_suffix;
1060 ac_top_srcdir=$srcdir ;;
1061 *) # Relative path.
1062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1064 esac
1065 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1066 # absolute.
1067 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1068 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1069 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1070 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1071
1072 cd $ac_dir
1073 # Check for guested configure; otherwise get Cygnus style configure.
1074 if test -f $ac_srcdir/configure.gnu; then
1075 echo
1076 $SHELL $ac_srcdir/configure.gnu --help=recursive
1077 elif test -f $ac_srcdir/configure; then
1078 echo
1079 $SHELL $ac_srcdir/configure --help=recursive
1080 elif test -f $ac_srcdir/configure.ac ||
1081 test -f $ac_srcdir/configure.in; then
1082 echo
1083 $ac_configure --help
1084 else
1085 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1086 fi
1087 cd $ac_popdir
1088 done
1089 fi
1090
1091 test -n "$ac_init_help" && exit 0
1092 if $ac_init_version; then
1093 cat <<\_ACEOF
1094
1095 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1096 Free Software Foundation, Inc.
1097 This configure script is free software; the Free Software Foundation
1098 gives unlimited permission to copy, distribute and modify it.
1099 _ACEOF
1100 exit 0
1101 fi
1102 exec 5>config.log
1103 cat >&5 <<_ACEOF
1104 This file contains any messages produced by compilers while
1105 running configure, to aid debugging if configure makes a mistake.
1106
1107 It was created by $as_me, which was
1108 generated by GNU Autoconf 2.53. Invocation command line was
1109
1110 $ $0 $@
1111
1112 _ACEOF
1113 {
1114 cat <<_ASUNAME
1115 ## --------- ##
1116 ## Platform. ##
1117 ## --------- ##
1118
1119 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1120 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1121 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1122 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1123 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1124
1125 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1126 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1127
1128 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1129 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1130 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1131 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1132 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1133 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1134 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1135
1136 _ASUNAME
1137
1138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1139 for as_dir in $PATH
1140 do
1141 IFS=$as_save_IFS
1142 test -z "$as_dir" && as_dir=.
1143 echo "PATH: $as_dir"
1144 done
1145
1146 } >&5
1147
1148 cat >&5 <<_ACEOF
1149
1150
1151 ## ----------- ##
1152 ## Core tests. ##
1153 ## ----------- ##
1154
1155 _ACEOF
1156
1157
1158 # Keep a trace of the command line.
1159 # Strip out --no-create and --no-recursion so they do not pile up.
1160 # Also quote any args containing shell meta-characters.
1161 ac_configure_args=
1162 ac_sep=
1163 for ac_arg
1164 do
1165 case $ac_arg in
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n ) continue ;;
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 continue ;;
1171 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1172 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1173 esac
1174 case " $ac_configure_args " in
1175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1176 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1177 ac_sep=" " ;;
1178 esac
1179 # Get rid of the leading space.
1180 done
1181
1182 # When interrupted or exit'd, cleanup temporary files, and complete
1183 # config.log. We remove comments because anyway the quotes in there
1184 # would cause problems or look ugly.
1185 # WARNING: Be sure not to use single quotes in there, as some shells,
1186 # such as our DU 5.0 friend, will then `close' the trap.
1187 trap 'exit_status=$?
1188 # Save into config.log some information that might help in debugging.
1189 {
1190 echo
1191 cat <<\_ASBOX
1192 ## ---------------- ##
1193 ## Cache variables. ##
1194 ## ---------------- ##
1195 _ASBOX
1196 echo
1197 # The following way of writing the cache mishandles newlines in values,
1198 {
1199 (set) 2>&1 |
1200 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1201 *ac_space=\ *)
1202 sed -n \
1203 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1205 ;;
1206 *)
1207 sed -n \
1208 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1209 ;;
1210 esac;
1211 }
1212 echo
1213 if test -s confdefs.h; then
1214 cat <<\_ASBOX
1215 ## ----------- ##
1216 ## confdefs.h. ##
1217 ## ----------- ##
1218 _ASBOX
1219 echo
1220 sed "/^$/d" confdefs.h
1221 echo
1222 fi
1223 test "$ac_signal" != 0 &&
1224 echo "$as_me: caught signal $ac_signal"
1225 echo "$as_me: exit $exit_status"
1226 } >&5
1227 rm -f core core.* *.core &&
1228 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1229 exit $exit_status
1230 ' 0
1231 for ac_signal in 1 2 13 15; do
1232 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1233 done
1234 ac_signal=0
1235
1236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1237 rm -rf conftest* confdefs.h
1238 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1239 echo >confdefs.h
1240
1241 # Predefined preprocessor variables.
1242
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_NAME "$PACKAGE_NAME"
1245 _ACEOF
1246
1247
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1250 _ACEOF
1251
1252
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1255 _ACEOF
1256
1257
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_STRING "$PACKAGE_STRING"
1260 _ACEOF
1261
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1265 _ACEOF
1266
1267
1268 # Let the site file select an alternate cache file if it wants to.
1269 # Prefer explicitly selected file to automatically selected ones.
1270 if test -z "$CONFIG_SITE"; then
1271 if test "x$prefix" != xNONE; then
1272 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1273 else
1274 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1275 fi
1276 fi
1277 for ac_site_file in $CONFIG_SITE; do
1278 if test -r "$ac_site_file"; then
1279 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1280 echo "$as_me: loading site script $ac_site_file" >&6;}
1281 sed 's/^/| /' "$ac_site_file" >&5
1282 . "$ac_site_file"
1283 fi
1284 done
1285
1286 if test -r "$cache_file"; then
1287 # Some versions of bash will fail to source /dev/null (special
1288 # files actually), so we avoid doing that.
1289 if test -f "$cache_file"; then
1290 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1291 echo "$as_me: loading cache $cache_file" >&6;}
1292 case $cache_file in
1293 [\\/]* | ?:[\\/]* ) . $cache_file;;
1294 *) . ./$cache_file;;
1295 esac
1296 fi
1297 else
1298 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1299 echo "$as_me: creating cache $cache_file" >&6;}
1300 >$cache_file
1301 fi
1302
1303 # Check that the precious variables saved in the cache have kept the same
1304 # value.
1305 ac_cache_corrupted=false
1306 for ac_var in `(set) 2>&1 |
1307 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1308 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1309 eval ac_new_set=\$ac_env_${ac_var}_set
1310 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1311 eval ac_new_val="\$ac_env_${ac_var}_value"
1312 case $ac_old_set,$ac_new_set in
1313 set,)
1314 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1315 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1316 ac_cache_corrupted=: ;;
1317 ,set)
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1321 ,);;
1322 *)
1323 if test "x$ac_old_val" != "x$ac_new_val"; then
1324 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1325 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1326 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1327 echo "$as_me: former value: $ac_old_val" >&2;}
1328 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1329 echo "$as_me: current value: $ac_new_val" >&2;}
1330 ac_cache_corrupted=:
1331 fi;;
1332 esac
1333 # Pass precious variables to config.status.
1334 if test "$ac_new_set" = set; then
1335 case $ac_new_val in
1336 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1337 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1338 *) ac_arg=$ac_var=$ac_new_val ;;
1339 esac
1340 case " $ac_configure_args " in
1341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1342 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1343 esac
1344 fi
1345 done
1346 if $ac_cache_corrupted; then
1347 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1348 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1349 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1350 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1351 { (exit 1); exit 1; }; }
1352 fi
1353
1354 ac_ext=c
1355 ac_cpp='$CPP $CPPFLAGS'
1356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378 PACKAGE=ifhp
1379 VERSION=3.5.20
1380
1381 ac_aux_dir=
1382 for ac_dir in . $srcdir/.; do
1383 if test -f $ac_dir/install-sh; then
1384 ac_aux_dir=$ac_dir
1385 ac_install_sh="$ac_aux_dir/install-sh -c"
1386 break
1387 elif test -f $ac_dir/install.sh; then
1388 ac_aux_dir=$ac_dir
1389 ac_install_sh="$ac_aux_dir/install.sh -c"
1390 break
1391 elif test -f $ac_dir/shtool; then
1392 ac_aux_dir=$ac_dir
1393 ac_install_sh="$ac_aux_dir/shtool install -c"
1394 break
1395 fi
1396 done
1397 if test -z "$ac_aux_dir"; then
1398 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1399 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1400 { (exit 1); exit 1; }; }
1401 fi
1402 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1403 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1404 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1405
1406 # Make sure we can run config.sub.
1407 $ac_config_sub sun4 >/dev/null 2>&1 ||
1408 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1409 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1410 { (exit 1); exit 1; }; }
1411
1412 echo "$as_me:$LINENO: checking build system type" >&5
1413 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1414 if test "${ac_cv_build+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 else
1417 ac_cv_build_alias=$build_alias
1418 test -z "$ac_cv_build_alias" &&
1419 ac_cv_build_alias=`$ac_config_guess`
1420 test -z "$ac_cv_build_alias" &&
1421 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1422 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1423 { (exit 1); exit 1; }; }
1424 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1426 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1427 { (exit 1); exit 1; }; }
1428
1429 fi
1430 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1431 echo "${ECHO_T}$ac_cv_build" >&6
1432 build=$ac_cv_build
1433 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1434 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1435 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1436
1437
1438 echo "$as_me:$LINENO: checking host system type" >&5
1439 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1440 if test "${ac_cv_host+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443 ac_cv_host_alias=$host_alias
1444 test -z "$ac_cv_host_alias" &&
1445 ac_cv_host_alias=$ac_cv_build_alias
1446 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1450
1451 fi
1452 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1453 echo "${ECHO_T}$ac_cv_host" >&6
1454 host=$ac_cv_host
1455 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458
1459
1460 echo "$as_me:$LINENO: checking target system type" >&5
1461 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1462 if test "${ac_cv_target+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465 ac_cv_target_alias=$target_alias
1466 test "x$ac_cv_target_alias" = "x" &&
1467 ac_cv_target_alias=$ac_cv_host_alias
1468 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1472
1473 fi
1474 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1475 echo "${ECHO_T}$ac_cv_target" >&6
1476 target=$ac_cv_target
1477 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480
1481
1482 # The aliases save the names the user supplied, while $host etc.
1483 # will get canonicalized.
1484 test -n "$target_alias" &&
1485 test "$program_prefix$program_suffix$program_transform_name" = \
1486 NONENONEs,x,x, &&
1487 program_prefix=${target_alias}-
1488 ac_config_headers="$ac_config_headers config.h"
1489
1490
1491
1492 cat >>confdefs.h <<_ACEOF
1493 #define PACKAGE "$PACKAGE"
1494 _ACEOF
1495
1496
1497 cat >>confdefs.h <<_ACEOF
1498 #define VERSION "$VERSION"
1499 _ACEOF
1500
1501
1502
1503 ALL_LINGUAS="fr"
1504
1505 ac_ext=c
1506 ac_cpp='$CPP $CPPFLAGS'
1507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1512 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 break 2
1531 fi
1532 done
1533 done
1534
1535 fi
1536 fi
1537 CC=$ac_cv_prog_CC
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1541 else
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546 fi
1547 if test -z "$ac_cv_prog_CC"; then
1548 ac_ct_CC=$CC
1549 # Extract the first word of "gcc", so it can be a program name with args.
1550 set dummy gcc; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 if test -n "$ac_ct_CC"; then
1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_CC="gcc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 break 2
1569 fi
1570 done
1571 done
1572
1573 fi
1574 fi
1575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1579 else
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1582 fi
1583
1584 CC=$ac_ct_CC
1585 else
1586 CC="$ac_cv_prog_CC"
1587 fi
1588
1589 if test -z "$CC"; then
1590 if test -n "$ac_tool_prefix"; then
1591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1592 set dummy ${ac_tool_prefix}cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 else
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_CC="${ac_tool_prefix}cc"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 break 2
1611 fi
1612 done
1613 done
1614
1615 fi
1616 fi
1617 CC=$ac_cv_prog_CC
1618 if test -n "$CC"; then
1619 echo "$as_me:$LINENO: result: $CC" >&5
1620 echo "${ECHO_T}$CC" >&6
1621 else
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1624 fi
1625
1626 fi
1627 if test -z "$ac_cv_prog_CC"; then
1628 ac_ct_CC=$CC
1629 # Extract the first word of "cc", so it can be a program name with args.
1630 set dummy cc; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636 if test -n "$ac_ct_CC"; then
1637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1638 else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 for as_dir in $PATH
1641 do
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_ac_ct_CC="cc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 break 2
1649 fi
1650 done
1651 done
1652
1653 fi
1654 fi
1655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656 if test -n "$ac_ct_CC"; then
1657 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1658 echo "${ECHO_T}$ac_ct_CC" >&6
1659 else
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1662 fi
1663
1664 CC=$ac_ct_CC
1665 else
1666 CC="$ac_cv_prog_CC"
1667 fi
1668
1669 fi
1670 if test -z "$CC"; then
1671 # Extract the first word of "cc", so it can be a program name with args.
1672 set dummy cc; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678 if test -n "$CC"; then
1679 ac_cv_prog_CC="$CC" # Let the user override the test.
1680 else
1681 ac_prog_rejected=no
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1684 do
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1690 ac_prog_rejected=yes
1691 continue
1692 fi
1693 ac_cv_prog_CC="cc"
1694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695 break 2
1696 fi
1697 done
1698 done
1699
1700 if test $ac_prog_rejected = yes; then
1701 # We found a bogon in the path, so make sure we never use it.
1702 set dummy $ac_cv_prog_CC
1703 shift
1704 if test $# != 0; then
1705 # We chose a different compiler from the bogus one.
1706 # However, it has the same basename, so the bogon will be chosen
1707 # first if we set CC to just the basename; use the full file name.
1708 shift
1709 set dummy "$as_dir/$ac_word" ${1+"$@"}
1710 shift
1711 ac_cv_prog_CC="$@"
1712 fi
1713 fi
1714 fi
1715 fi
1716 CC=$ac_cv_prog_CC
1717 if test -n "$CC"; then
1718 echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1720 else
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725 fi
1726 if test -z "$CC"; then
1727 if test -n "$ac_tool_prefix"; then
1728 for ac_prog in cl
1729 do
1730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737 if test -n "$CC"; then
1738 ac_cv_prog_CC="$CC" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743 IFS=$as_save_IFS
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 break 2
1750 fi
1751 done
1752 done
1753
1754 fi
1755 fi
1756 CC=$ac_cv_prog_CC
1757 if test -n "$CC"; then
1758 echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1760 else
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1763 fi
1764
1765 test -n "$CC" && break
1766 done
1767 fi
1768 if test -z "$CC"; then
1769 ac_ct_CC=$CC
1770 for ac_prog in cl
1771 do
1772 # Extract the first word of "$ac_prog", so it can be a program name with args.
1773 set dummy $ac_prog; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779 if test -n "$ac_ct_CC"; then
1780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1781 else
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1784 do
1785 IFS=$as_save_IFS
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_ac_ct_CC="$ac_prog"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 break 2
1792 fi
1793 done
1794 done
1795
1796 fi
1797 fi
1798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1799 if test -n "$ac_ct_CC"; then
1800 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1801 echo "${ECHO_T}$ac_ct_CC" >&6
1802 else
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805 fi
1806
1807 test -n "$ac_ct_CC" && break
1808 done
1809
1810 CC=$ac_ct_CC
1811 fi
1812
1813 fi
1814
1815
1816 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1817 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1818 { (exit 1); exit 1; }; }
1819
1820 # Provide some information about the compiler.
1821 echo "$as_me:$LINENO:" \
1822 "checking for C compiler version" >&5
1823 ac_compiler=`set X $ac_compile; echo $2`
1824 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1825 (eval $ac_compiler --version </dev/null >&5) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1830 (eval $ac_compiler -v </dev/null >&5) 2>&5
1831 ac_status=$?
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1835 (eval $ac_compiler -V </dev/null >&5) 2>&5
1836 ac_status=$?
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }
1839
1840 cat >conftest.$ac_ext <<_ACEOF
1841 #line $LINENO "configure"
1842 #include "confdefs.h"
1843
1844 #ifdef F77_DUMMY_MAIN
1845 # ifdef __cplusplus
1846 extern "C"
1847 # endif
1848 int F77_DUMMY_MAIN() { return 1; }
1849 #endif
1850 int
1851 main ()
1852 {
1853
1854 ;
1855 return 0;
1856 }
1857 _ACEOF
1858 ac_clean_files_save=$ac_clean_files
1859 ac_clean_files="$ac_clean_files a.out a.exe"
1860 # Try to create an executable without -o first, disregard a.out.
1861 # It will help us diagnose broken compilers, and finding out an intuition
1862 # of exeext.
1863 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1864 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1865 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1866 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1867 (eval $ac_link_default) 2>&5
1868 ac_status=$?
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); }; then
1871 # Find the output, starting from the most likely. This scheme is
1872 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1873 # resort.
1874
1875 # Be careful to initialize this variable, since it used to be cached.
1876 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1877 ac_cv_exeext=
1878 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1879 ls a.out conftest 2>/dev/null;
1880 ls a.* conftest.* 2>/dev/null`; do
1881 case $ac_file in
1882 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1883 a.out ) # We found the default executable, but exeext='' is most
1884 # certainly right.
1885 break;;
1886 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1887 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1888 export ac_cv_exeext
1889 break;;
1890 * ) break;;
1891 esac
1892 done
1893 else
1894 echo "$as_me: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1896 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1897 echo "$as_me: error: C compiler cannot create executables" >&2;}
1898 { (exit 77); exit 77; }; }
1899 fi
1900
1901 ac_exeext=$ac_cv_exeext
1902 echo "$as_me:$LINENO: result: $ac_file" >&5
1903 echo "${ECHO_T}$ac_file" >&6
1904
1905 # Check the compiler produces executables we can run. If not, either
1906 # the compiler is broken, or we cross compile.
1907 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1908 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1909 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1910 # If not cross compiling, check that we can run a simple program.
1911 if test "$cross_compiling" != yes; then
1912 if { ac_try='./$ac_file'
1913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1914 (eval $ac_try) 2>&5
1915 ac_status=$?
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); }; }; then
1918 cross_compiling=no
1919 else
1920 if test "$cross_compiling" = maybe; then
1921 cross_compiling=yes
1922 else
1923 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1924 If you meant to cross compile, use \`--host'." >&5
1925 echo "$as_me: error: cannot run C compiled programs.
1926 If you meant to cross compile, use \`--host'." >&2;}
1927 { (exit 1); exit 1; }; }
1928 fi
1929 fi
1930 fi
1931 echo "$as_me:$LINENO: result: yes" >&5
1932 echo "${ECHO_T}yes" >&6
1933
1934 rm -f a.out a.exe conftest$ac_cv_exeext
1935 ac_clean_files=$ac_clean_files_save
1936 # Check the compiler produces executables we can run. If not, either
1937 # the compiler is broken, or we cross compile.
1938 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1939 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1940 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1941 echo "${ECHO_T}$cross_compiling" >&6
1942
1943 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1944 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1946 (eval $ac_link) 2>&5
1947 ac_status=$?
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }; then
1950 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1951 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1952 # work properly (i.e., refer to `conftest.exe'), while it won't with
1953 # `rm'.
1954 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1955 case $ac_file in
1956 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1957 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1958 export ac_cv_exeext
1959 break;;
1960 * ) break;;
1961 esac
1962 done
1963 else
1964 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1965 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1966 { (exit 1); exit 1; }; }
1967 fi
1968
1969 rm -f conftest$ac_cv_exeext
1970 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1971 echo "${ECHO_T}$ac_cv_exeext" >&6
1972
1973 rm -f conftest.$ac_ext
1974 EXEEXT=$ac_cv_exeext
1975 ac_exeext=$EXEEXT
1976 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1977 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1978 if test "${ac_cv_objext+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981 cat >conftest.$ac_ext <<_ACEOF
1982 #line $LINENO "configure"
1983 #include "confdefs.h"
1984
1985 #ifdef F77_DUMMY_MAIN
1986 # ifdef __cplusplus
1987 extern "C"
1988 # endif
1989 int F77_DUMMY_MAIN() { return 1; }
1990 #endif
1991 int
1992 main ()
1993 {
1994
1995 ;
1996 return 0;
1997 }
1998 _ACEOF
1999 rm -f conftest.o conftest.obj
2000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2001 (eval $ac_compile) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; then
2005 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2006 case $ac_file in
2007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2008 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2009 break;;
2010 esac
2011 done
2012 else
2013 echo "$as_me: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2015 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2016 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2017 { (exit 1); exit 1; }; }
2018 fi
2019
2020 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2021 fi
2022 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2023 echo "${ECHO_T}$ac_cv_objext" >&6
2024 OBJEXT=$ac_cv_objext
2025 ac_objext=$OBJEXT
2026 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2027 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2028 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 cat >conftest.$ac_ext <<_ACEOF
2032 #line $LINENO "configure"
2033 #include "confdefs.h"
2034
2035 #ifdef F77_DUMMY_MAIN
2036 # ifdef __cplusplus
2037 extern "C"
2038 # endif
2039 int F77_DUMMY_MAIN() { return 1; }
2040 #endif
2041 int
2042 main ()
2043 {
2044 #ifndef __GNUC__
2045 choke me
2046 #endif
2047
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2064 ac_compiler_gnu=yes
2065 else
2066 echo "$as_me: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2068 ac_compiler_gnu=no
2069 fi
2070 rm -f conftest.$ac_objext conftest.$ac_ext
2071 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2072
2073 fi
2074 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2075 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2076 GCC=`test $ac_compiler_gnu = yes && echo yes`
2077 ac_test_CFLAGS=${CFLAGS+set}
2078 ac_save_CFLAGS=$CFLAGS
2079 CFLAGS="-g"
2080 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2081 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2082 if test "${ac_cv_prog_cc_g+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085 cat >conftest.$ac_ext <<_ACEOF
2086 #line $LINENO "configure"
2087 #include "confdefs.h"
2088
2089 #ifdef F77_DUMMY_MAIN
2090 # ifdef __cplusplus
2091 extern "C"
2092 # endif
2093 int F77_DUMMY_MAIN() { return 1; }
2094 #endif
2095 int
2096 main ()
2097 {
2098
2099 ;
2100 return 0;
2101 }
2102 _ACEOF
2103 rm -f conftest.$ac_objext
2104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105 (eval $ac_compile) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); } &&
2109 { ac_try='test -s conftest.$ac_objext'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 (eval $ac_try) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2115 ac_cv_prog_cc_g=yes
2116 else
2117 echo "$as_me: failed program was:" >&5
2118 cat conftest.$ac_ext >&5
2119 ac_cv_prog_cc_g=no
2120 fi
2121 rm -f conftest.$ac_objext conftest.$ac_ext
2122 fi
2123 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2124 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2125 if test "$ac_test_CFLAGS" = set; then
2126 CFLAGS=$ac_save_CFLAGS
2127 elif test $ac_cv_prog_cc_g = yes; then
2128 if test "$GCC" = yes; then
2129 CFLAGS="-g -O2"
2130 else
2131 CFLAGS="-g"
2132 fi
2133 else
2134 if test "$GCC" = yes; then
2135 CFLAGS="-O2"
2136 else
2137 CFLAGS=
2138 fi
2139 fi
2140 # Some people use a C++ compiler to compile C. Since we use `exit',
2141 # in C++ we need to declare it. In case someone uses the same compiler
2142 # for both compiling C and C++ we need to have the C++ compiler decide
2143 # the declaration of exit, since it's the most demanding environment.
2144 cat >conftest.$ac_ext <<_ACEOF
2145 #ifndef __cplusplus
2146 choke me
2147 #endif
2148 _ACEOF
2149 rm -f conftest.$ac_objext
2150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151 (eval $ac_compile) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 for ac_declaration in \
2162 ''\
2163 '#include <stdlib.h>' \
2164 'extern "C" void std::exit (int) throw (); using std::exit;' \
2165 'extern "C" void std::exit (int); using std::exit;' \
2166 'extern "C" void exit (int) throw ();' \
2167 'extern "C" void exit (int);' \
2168 'void exit (int);'
2169 do
2170 cat >conftest.$ac_ext <<_ACEOF
2171 #line $LINENO "configure"
2172 #include "confdefs.h"
2173 #include <stdlib.h>
2174 $ac_declaration
2175 #ifdef F77_DUMMY_MAIN
2176 # ifdef __cplusplus
2177 extern "C"
2178 # endif
2179 int F77_DUMMY_MAIN() { return 1; }
2180 #endif
2181 int
2182 main ()
2183 {
2184 exit (42);
2185 ;
2186 return 0;
2187 }
2188 _ACEOF
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2201 :
2202 else
2203 echo "$as_me: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 continue
2206 fi
2207 rm -f conftest.$ac_objext conftest.$ac_ext
2208 cat >conftest.$ac_ext <<_ACEOF
2209 #line $LINENO "configure"
2210 #include "confdefs.h"
2211 $ac_declaration
2212 #ifdef F77_DUMMY_MAIN
2213 # ifdef __cplusplus
2214 extern "C"
2215 # endif
2216 int F77_DUMMY_MAIN() { return 1; }
2217 #endif
2218 int
2219 main ()
2220 {
2221 exit (42);
2222 ;
2223 return 0;
2224 }
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 break
2239 else
2240 echo "$as_me: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2242 fi
2243 rm -f conftest.$ac_objext conftest.$ac_ext
2244 done
2245 rm -f conftest*
2246 if test -n "$ac_declaration"; then
2247 echo '#ifdef __cplusplus' >>confdefs.h
2248 echo $ac_declaration >>confdefs.h
2249 echo '#endif' >>confdefs.h
2250 fi
2251
2252 else
2253 echo "$as_me: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2255 fi
2256 rm -f conftest.$ac_objext conftest.$ac_ext
2257 ac_ext=c
2258 ac_cpp='$CPP $CPPFLAGS'
2259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262
2263
2264 ac_ext=c
2265 ac_cpp='$CPP $CPPFLAGS'
2266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2269 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2270 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2271 # On Suns, sometimes $CPP names a directory.
2272 if test -n "$CPP" && test -d "$CPP"; then
2273 CPP=
2274 fi
2275 if test -z "$CPP"; then
2276 if test "${ac_cv_prog_CPP+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 # Double quotes because CPP needs to be expanded
2280 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2281 do
2282 ac_preproc_ok=false
2283 for ac_c_preproc_warn_flag in '' yes
2284 do
2285 # Use a header file that comes with gcc, so configuring glibc
2286 # with a fresh cross-compiler works.
2287 # On the NeXT, cc -E runs the code through the compiler's parser,
2288 # not just through cpp. "Syntax error" is here to catch this case.
2289 cat >conftest.$ac_ext <<_ACEOF
2290 #line $LINENO "configure"
2291 #include "confdefs.h"
2292 #include <assert.h>
2293 Syntax error
2294 _ACEOF
2295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2297 ac_status=$?
2298 egrep -v '^ *\+' conftest.er1 >conftest.err
2299 rm -f conftest.er1
2300 cat conftest.err >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } >/dev/null; then
2303 if test -s conftest.err; then
2304 ac_cpp_err=$ac_c_preproc_warn_flag
2305 else
2306 ac_cpp_err=
2307 fi
2308 else
2309 ac_cpp_err=yes
2310 fi
2311 if test -z "$ac_cpp_err"; then
2312 :
2313 else
2314 echo "$as_me: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 # Broken: fails on valid input.
2317 continue
2318 fi
2319 rm -f conftest.err conftest.$ac_ext
2320
2321 # OK, works on sane cases. Now check whether non-existent headers
2322 # can be detected and how.
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 #include "confdefs.h"
2326 #include <ac_nonexistent.h>
2327 _ACEOF
2328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2330 ac_status=$?
2331 egrep -v '^ *\+' conftest.er1 >conftest.err
2332 rm -f conftest.er1
2333 cat conftest.err >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } >/dev/null; then
2336 if test -s conftest.err; then
2337 ac_cpp_err=$ac_c_preproc_warn_flag
2338 else
2339 ac_cpp_err=
2340 fi
2341 else
2342 ac_cpp_err=yes
2343 fi
2344 if test -z "$ac_cpp_err"; then
2345 # Broken: success on invalid input.
2346 continue
2347 else
2348 echo "$as_me: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2350 # Passes both tests.
2351 ac_preproc_ok=:
2352 break
2353 fi
2354 rm -f conftest.err conftest.$ac_ext
2355
2356 done
2357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2358 rm -f conftest.err conftest.$ac_ext
2359 if $ac_preproc_ok; then
2360 break
2361 fi
2362
2363 done
2364 ac_cv_prog_CPP=$CPP
2365
2366 fi
2367 CPP=$ac_cv_prog_CPP
2368 else
2369 ac_cv_prog_CPP=$CPP
2370 fi
2371 echo "$as_me:$LINENO: result: $CPP" >&5
2372 echo "${ECHO_T}$CPP" >&6
2373 ac_preproc_ok=false
2374 for ac_c_preproc_warn_flag in '' yes
2375 do
2376 # Use a header file that comes with gcc, so configuring glibc
2377 # with a fresh cross-compiler works.
2378 # On the NeXT, cc -E runs the code through the compiler's parser,
2379 # not just through cpp. "Syntax error" is here to catch this case.
2380 cat >conftest.$ac_ext <<_ACEOF
2381 #line $LINENO "configure"
2382 #include "confdefs.h"
2383 #include <assert.h>
2384 Syntax error
2385 _ACEOF
2386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2388 ac_status=$?
2389 egrep -v '^ *\+' conftest.er1 >conftest.err
2390 rm -f conftest.er1
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } >/dev/null; then
2394 if test -s conftest.err; then
2395 ac_cpp_err=$ac_c_preproc_warn_flag
2396 else
2397 ac_cpp_err=
2398 fi
2399 else
2400 ac_cpp_err=yes
2401 fi
2402 if test -z "$ac_cpp_err"; then
2403 :
2404 else
2405 echo "$as_me: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2407 # Broken: fails on valid input.
2408 continue
2409 fi
2410 rm -f conftest.err conftest.$ac_ext
2411
2412 # OK, works on sane cases. Now check whether non-existent headers
2413 # can be detected and how.
2414 cat >conftest.$ac_ext <<_ACEOF
2415 #line $LINENO "configure"
2416 #include "confdefs.h"
2417 #include <ac_nonexistent.h>
2418 _ACEOF
2419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2421 ac_status=$?
2422 egrep -v '^ *\+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } >/dev/null; then
2427 if test -s conftest.err; then
2428 ac_cpp_err=$ac_c_preproc_warn_flag
2429 else
2430 ac_cpp_err=
2431 fi
2432 else
2433 ac_cpp_err=yes
2434 fi
2435 if test -z "$ac_cpp_err"; then
2436 # Broken: success on invalid input.
2437 continue
2438 else
2439 echo "$as_me: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2441 # Passes both tests.
2442 ac_preproc_ok=:
2443 break
2444 fi
2445 rm -f conftest.err conftest.$ac_ext
2446
2447 done
2448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2449 rm -f conftest.err conftest.$ac_ext
2450 if $ac_preproc_ok; then
2451 :
2452 else
2453 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2454 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2455 { (exit 1); exit 1; }; }
2456 fi
2457
2458 ac_ext=c
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463
2464
2465
2466 echo "$as_me:$LINENO: checking for AIX" >&5
2467 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2468 cat >conftest.$ac_ext <<_ACEOF
2469 #line $LINENO "configure"
2470 #include "confdefs.h"
2471 #ifdef _AIX
2472 yes
2473 #endif
2474
2475 _ACEOF
2476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2477 egrep "yes" >/dev/null 2>&1; then
2478 echo "$as_me:$LINENO: result: yes" >&5
2479 echo "${ECHO_T}yes" >&6
2480 cat >>confdefs.h <<\_ACEOF
2481 #define _ALL_SOURCE 1
2482 _ACEOF
2483
2484 else
2485 echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6
2487 fi
2488 rm -f conftest*
2489
2490
2491
2492 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2493 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2494 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497 ac_check_lib_save_LIBS=$LIBS
2498 LIBS="-lcposix $LIBS"
2499 cat >conftest.$ac_ext <<_ACEOF
2500 #line $LINENO "configure"
2501 #include "confdefs.h"
2502
2503 /* Override any gcc2 internal prototype to avoid an error. */
2504 #ifdef __cplusplus
2505 extern "C"
2506 #endif
2507 /* We use char because int might match the return type of a gcc2
2508 builtin and then its argument prototype would still apply. */
2509 char strerror ();
2510 #ifdef F77_DUMMY_MAIN
2511 # ifdef __cplusplus
2512 extern "C"
2513 # endif
2514 int F77_DUMMY_MAIN() { return 1; }
2515 #endif
2516 int
2517 main ()
2518 {
2519 strerror ();
2520 ;
2521 return 0;
2522 }
2523 _ACEOF
2524 rm -f conftest.$ac_objext conftest$ac_exeext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2526 (eval $ac_link) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest$ac_exeext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 ac_cv_lib_cposix_strerror=yes
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 cat conftest.$ac_ext >&5
2540 ac_cv_lib_cposix_strerror=no
2541 fi
2542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2543 LIBS=$ac_check_lib_save_LIBS
2544 fi
2545 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2546 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2547 if test $ac_cv_lib_cposix_strerror = yes; then
2548 LIBS="$LIBS -lcposix"
2549 fi
2550
2551
2552
2553 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2554 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2555 if test "${ac_cv_header_stdc+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558 cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 #include "confdefs.h"
2561 #include <stdlib.h>
2562 #include <stdarg.h>
2563 #include <string.h>
2564 #include <float.h>
2565
2566 _ACEOF
2567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2569 ac_status=$?
2570 egrep -v '^ *\+' conftest.er1 >conftest.err
2571 rm -f conftest.er1
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } >/dev/null; then
2575 if test -s conftest.err; then
2576 ac_cpp_err=$ac_c_preproc_warn_flag
2577 else
2578 ac_cpp_err=
2579 fi
2580 else
2581 ac_cpp_err=yes
2582 fi
2583 if test -z "$ac_cpp_err"; then
2584 ac_cv_header_stdc=yes
2585 else
2586 echo "$as_me: failed program was:" >&5
2587 cat conftest.$ac_ext >&5
2588 ac_cv_header_stdc=no
2589 fi
2590 rm -f conftest.err conftest.$ac_ext
2591
2592 if test $ac_cv_header_stdc = yes; then
2593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2594 cat >conftest.$ac_ext <<_ACEOF
2595 #line $LINENO "configure"
2596 #include "confdefs.h"
2597 #include <string.h>
2598
2599 _ACEOF
2600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2601 egrep "memchr" >/dev/null 2>&1; then
2602 :
2603 else
2604 ac_cv_header_stdc=no
2605 fi
2606 rm -f conftest*
2607
2608 fi
2609
2610 if test $ac_cv_header_stdc = yes; then
2611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2612 cat >conftest.$ac_ext <<_ACEOF
2613 #line $LINENO "configure"
2614 #include "confdefs.h"
2615 #include <stdlib.h>
2616
2617 _ACEOF
2618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2619 egrep "free" >/dev/null 2>&1; then
2620 :
2621 else
2622 ac_cv_header_stdc=no
2623 fi
2624 rm -f conftest*
2625
2626 fi
2627
2628 if test $ac_cv_header_stdc = yes; then
2629 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2630 if test "$cross_compiling" = yes; then
2631 :
2632 else
2633 cat >conftest.$ac_ext <<_ACEOF
2634 #line $LINENO "configure"
2635 #include "confdefs.h"
2636 #include <ctype.h>
2637 #if ((' ' & 0x0FF) == 0x020)
2638 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2639 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2640 #else
2641 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2642 || ('j' <= (c) && (c) <= 'r') \
2643 || ('s' <= (c) && (c) <= 'z'))
2644 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2645 #endif
2646
2647 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2648 int
2649 main ()
2650 {
2651 int i;
2652 for (i = 0; i < 256; i++)
2653 if (XOR (islower (i), ISLOWER (i))
2654 || toupper (i) != TOUPPER (i))
2655 exit(2);
2656 exit (0);
2657 }
2658 _ACEOF
2659 rm -f conftest$ac_exeext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2661 (eval $ac_link) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 (eval $ac_try) 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2670 :
2671 else
2672 echo "$as_me: program exited with status $ac_status" >&5
2673 echo "$as_me: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2675 ( exit $ac_status )
2676 ac_cv_header_stdc=no
2677 fi
2678 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2679 fi
2680 fi
2681 fi
2682 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2683 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2684 if test $ac_cv_header_stdc = yes; then
2685
2686 cat >>confdefs.h <<\_ACEOF
2687 #define STDC_HEADERS 1
2688 _ACEOF
2689
2690 fi
2691
2692 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2703 inttypes.h stdint.h unistd.h
2704 do
2705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2706 echo "$as_me:$LINENO: checking for $ac_header" >&5
2707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 cat >conftest.$ac_ext <<_ACEOF
2712 #line $LINENO "configure"
2713 #include "confdefs.h"
2714 $ac_includes_default
2715
2716 #include <$ac_header>
2717 _ACEOF
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 (eval $ac_try) 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2730 eval "$as_ac_Header=yes"
2731 else
2732 echo "$as_me: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2734 eval "$as_ac_Header=no"
2735 fi
2736 rm -f conftest.$ac_objext conftest.$ac_ext
2737 fi
2738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2741 cat >>confdefs.h <<_ACEOF
2742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2743 _ACEOF
2744
2745 fi
2746
2747 done
2748
2749
2750 if test "${ac_cv_header_minix_config_h+set}" = set; then
2751 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2752 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2753 if test "${ac_cv_header_minix_config_h+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 fi
2756 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2757 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2758 else
2759 # Is the header compilable?
2760 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2761 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2762 cat >conftest.$ac_ext <<_ACEOF
2763 #line $LINENO "configure"
2764 #include "confdefs.h"
2765 $ac_includes_default
2766 #include <minix/config.h>
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>&5
2771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -s conftest.$ac_objext'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 ac_header_compiler=yes
2781 else
2782 echo "$as_me: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2784 ac_header_compiler=no
2785 fi
2786 rm -f conftest.$ac_objext conftest.$ac_ext
2787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2788 echo "${ECHO_T}$ac_header_compiler" >&6
2789
2790 # Is the header present?
2791 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2792 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2793 cat >conftest.$ac_ext <<_ACEOF
2794 #line $LINENO "configure"
2795 #include "confdefs.h"
2796 #include <minix/config.h>
2797 _ACEOF
2798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2800 ac_status=$?
2801 egrep -v '^ *\+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } >/dev/null; then
2806 if test -s conftest.err; then
2807 ac_cpp_err=$ac_c_preproc_warn_flag
2808 else
2809 ac_cpp_err=
2810 fi
2811 else
2812 ac_cpp_err=yes
2813 fi
2814 if test -z "$ac_cpp_err"; then
2815 ac_header_preproc=yes
2816 else
2817 echo "$as_me: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2819 ac_header_preproc=no
2820 fi
2821 rm -f conftest.err conftest.$ac_ext
2822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2823 echo "${ECHO_T}$ac_header_preproc" >&6
2824
2825 # So? What about this header?
2826 case $ac_header_compiler:$ac_header_preproc in
2827 yes:no )
2828 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2829 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2830 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2831 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2832 no:yes )
2833 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
2834 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
2835 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2836 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2837 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2838 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2839 esac
2840 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2841 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2842 if test "${ac_cv_header_minix_config_h+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845 ac_cv_header_minix_config_h=$ac_header_preproc
2846 fi
2847 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2848 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2849
2850 fi
2851 if test $ac_cv_header_minix_config_h = yes; then
2852 MINIX=yes
2853 else
2854 MINIX=
2855 fi
2856
2857
2858 if test "$MINIX" = yes; then
2859
2860 cat >>confdefs.h <<\_ACEOF
2861 #define _POSIX_SOURCE 1
2862 _ACEOF
2863
2864
2865 cat >>confdefs.h <<\_ACEOF
2866 #define _POSIX_1_SOURCE 2
2867 _ACEOF
2868
2869
2870 cat >>confdefs.h <<\_ACEOF
2871 #define _MINIX 1
2872 _ACEOF
2873
2874 fi
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887 for ac_prog in gawk mawk nawk awk
2888 do
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893 if test "${ac_cv_prog_AWK+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896 if test -n "$AWK"; then
2897 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_AWK="$ac_prog"
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912
2913 fi
2914 fi
2915 AWK=$ac_cv_prog_AWK
2916 if test -n "$AWK"; then
2917 echo "$as_me:$LINENO: result: $AWK" >&5
2918 echo "${ECHO_T}$AWK" >&6
2919 else
2920 echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6
2922 fi
2923
2924 test -n "$AWK" && break
2925 done
2926
2927
2928 # Extract the first word of "perl", so it can be a program name with args.
2929 set dummy perl; ac_word=$2
2930 echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2932 if test "${ac_cv_path_PERL+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935 case $PERL in
2936 [\\/]* | ?:[\\/]*)
2937 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2938 ;;
2939 *)
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951 done
2952 done
2953
2954 ;;
2955 esac
2956 fi
2957 PERL=$ac_cv_path_PERL
2958
2959 if test -n "$PERL"; then
2960 echo "$as_me:$LINENO: result: $PERL" >&5
2961 echo "${ECHO_T}$PERL" >&6
2962 else
2963 echo "$as_me:$LINENO: result: no" >&5
2964 echo "${ECHO_T}no" >&6
2965 fi
2966
2967
2968
2969 # Check whether --with-ccopts or --without-ccopts was given.
2970 if test "${with_ccopts+set}" = set; then
2971 withval="$with_ccopts"
2972 { { echo "$as_me:$LINENO: error: --with-ccopts OBSOLETE - use CFLAGS=... see configure --help" >&5
2973 echo "$as_me: error: --with-ccopts OBSOLETE - use CFLAGS=... see configure --help" >&2;}
2974 { (exit 1); exit 1; }; }
2975
2976 fi;
2977
2978 # Check whether --with-ccpopts or --without-ccpopts was given.
2979 if test "${with_ccpopts+set}" = set; then
2980 withval="$with_ccpopts"
2981 { { echo "$as_me:$LINENO: error: --with-cppopts OBSOLETE - use CPPFLAGS=... see configure --help" >&5
2982 echo "$as_me: error: --with-cppopts OBSOLETE - use CPPFLAGS=... see configure --help" >&2;}
2983 { (exit 1); exit 1; }; }
2984
2985 fi;
2986
2987 # Check whether --with-ldopts or --without-ldopts was given.
2988 if test "${with_ldopts+set}" = set; then
2989 withval="$with_ldopts"
2990 { { echo "$as_me:$LINENO: error: --with-ldopts OBSOLETE - use LDFLAGS=... see configure --help" >&5
2991 echo "$as_me: error: --with-ldopts OBSOLETE - use LDFLAGS=... see configure --help" >&2;}
2992 { (exit 1); exit 1; }; }
2993
2994 fi;
2995 if test -z "$LOCALEDIR" ; then
2996 LOCALEDIR='$(prefix)/share/locale'
2997 fi;
2998
2999
3000
3001 # Check whether --with-localedir or --without-localedir was given.
3002 if test "${with_localedir+set}" = set; then
3003 withval="$with_localedir"
3004 echo "$as_me:$LINENO: result: LOCALEDIR is $withval" >&5
3005 echo "${ECHO_T}LOCALEDIR is $withval" >&6
3006 LOCALEDIR="$withval"
3007 else
3008 LOCALEDIR="$LOCALEDIR"
3009 echo "$as_me:$LINENO: result: LOCALEDIR defaults to $LOCALEDIR" >&5
3010 echo "${ECHO_T}LOCALEDIR defaults to $LOCALEDIR" >&6
3011
3012 fi;
3013 # Check whether --enable-shared or --disable-shared was given.
3014 if test "${enable_shared+set}" = set; then
3015 enableval="$enable_shared"
3016 p=${PACKAGE-default}
3017 case $enableval in
3018 yes) enable_shared=yes ;;
3019 no) enable_shared=no ;;
3020 *)
3021 enable_shared=no
3022 # Look at the argument we got. We use all the common list separators.
3023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3024 for pkg in $enableval; do
3025 if test "X$pkg" = "X$p"; then
3026 enable_shared=yes
3027 fi
3028 done
3029 IFS="$ac_save_ifs"
3030 ;;
3031 esac
3032 else
3033 enable_shared=no
3034 fi;
3035 # Check whether --enable-static or --disable-static was given.
3036 if test "${enable_static+set}" = set; then
3037 enableval="$enable_static"
3038 p=${PACKAGE-default}
3039 case $enableval in
3040 yes) enable_static=yes ;;
3041 no) enable_static=no ;;
3042 *)
3043 enable_static=no
3044 # Look at the argument we got. We use all the common list separators.
3045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3046 for pkg in $enableval; do
3047 if test "X$pkg" = "X$p"; then
3048 enable_static=yes
3049 fi
3050 done
3051 IFS="$ac_save_ifs"
3052 ;;
3053 esac
3054 else
3055 enable_static=yes
3056 fi;
3057 # Check whether --enable-fast-install or --disable-fast-install was given.
3058 if test "${enable_fast_install+set}" = set; then
3059 enableval="$enable_fast_install"
3060 p=${PACKAGE-default}
3061 case $enableval in
3062 yes) enable_fast_install=yes ;;
3063 no) enable_fast_install=no ;;
3064 *)
3065 enable_fast_install=no
3066 # Look at the argument we got. We use all the common list separators.
3067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3068 for pkg in $enableval; do
3069 if test "X$pkg" = "X$p"; then
3070 enable_fast_install=yes
3071 fi
3072 done
3073 IFS="$ac_save_ifs"
3074 ;;
3075 esac
3076 else
3077 enable_fast_install=yes
3078 fi;
3079 # Find the correct PATH separator. Usually this is `:', but
3080 # DJGPP uses `;' like DOS.
3081 if test "X${PATH_SEPARATOR+set}" != Xset; then
3082 UNAME=${UNAME-`uname 2>/dev/null`}
3083 case X$UNAME in
3084 *-DOS) lt_cv_sys_path_separator=';' ;;
3085 *) lt_cv_sys_path_separator=':' ;;
3086 esac
3087 PATH_SEPARATOR=$lt_cv_sys_path_separator
3088 fi
3089
3090
3091 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3092 if test "${with_gnu_ld+set}" = set; then
3093 withval="$with_gnu_ld"
3094 test "$withval" = no || with_gnu_ld=yes
3095 else
3096 with_gnu_ld=no
3097 fi;
3098 ac_prog=ld
3099 if test "$GCC" = yes; then
3100 # Check if gcc -print-prog-name=ld gives a path.
3101 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3102 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3103 case $host in
3104 *-*-mingw*)
3105 # gcc leaves a trailing carriage return which upsets mingw
3106 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3107 *)
3108 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3109 esac
3110 case $ac_prog in
3111 # Accept absolute paths.
3112 [\\/]* | [A-Za-z]:[\\/]*)
3113 re_direlt='/[^/][^/]*/\.\./'
3114 # Canonicalize the path of ld
3115 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3116 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3117 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3118 done
3119 test -z "$LD" && LD="$ac_prog"
3120 ;;
3121 "")
3122 # If it fails, then pretend we aren't using GCC.
3123 ac_prog=ld
3124 ;;
3125 *)
3126 # If it is relative, then search for the first ld in PATH.
3127 with_gnu_ld=unknown
3128 ;;
3129 esac
3130 elif test "$with_gnu_ld" = yes; then
3131 echo "$as_me:$LINENO: checking for GNU ld" >&5
3132 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3133 else
3134 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3135 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3136 fi
3137 if test "${lt_cv_path_LD+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140 if test -z "$LD"; then
3141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3142 for ac_dir in $PATH; do
3143 test -z "$ac_dir" && ac_dir=.
3144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3145 lt_cv_path_LD="$ac_dir/$ac_prog"
3146 # Check to see if the program is GNU ld. I'd rather use --version,
3147 # but apparently some GNU ld's only accept -v.
3148 # Break only if it was the GNU/non-GNU ld that we prefer.
3149 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3150 test "$with_gnu_ld" != no && break
3151 else
3152 test "$with_gnu_ld" != yes && break
3153 fi
3154 fi
3155 done
3156 IFS="$ac_save_ifs"
3157 else
3158 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3159 fi
3160 fi
3161
3162 LD="$lt_cv_path_LD"
3163 if test -n "$LD"; then
3164 echo "$as_me:$LINENO: result: $LD" >&5
3165 echo "${ECHO_T}$LD" >&6
3166 else
3167 echo "$as_me:$LINENO: result: no" >&5
3168 echo "${ECHO_T}no" >&6
3169 fi
3170 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3171 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3172 { (exit 1); exit 1; }; }
3173 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3174 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3175 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3179 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3180 lt_cv_prog_gnu_ld=yes
3181 else
3182 lt_cv_prog_gnu_ld=no
3183 fi
3184 fi
3185 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3186 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3187 with_gnu_ld=$lt_cv_prog_gnu_ld
3188
3189
3190 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3191 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3192 if test "${lt_cv_ld_reload_flag+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195 lt_cv_ld_reload_flag='-r'
3196 fi
3197 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3198 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3199 reload_flag=$lt_cv_ld_reload_flag
3200 test -n "$reload_flag" && reload_flag=" $reload_flag"
3201
3202 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3203 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3204 if test "${lt_cv_path_NM+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207 if test -n "$NM"; then
3208 # Let the user override the test.
3209 lt_cv_path_NM="$NM"
3210 else
3211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3212 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3213 test -z "$ac_dir" && ac_dir=.
3214 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3215 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3216 # Check to see if the nm accepts a BSD-compat flag.
3217 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3218 # nm: unknown option "B" ignored
3219 # Tru64's nm complains that /dev/null is an invalid object file
3220 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3221 lt_cv_path_NM="$tmp_nm -B"
3222 break
3223 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3224 lt_cv_path_NM="$tmp_nm -p"
3225 break
3226 else
3227 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3228 continue # so that we can try to find one that supports BSD flags
3229 fi
3230 fi
3231 done
3232 IFS="$ac_save_ifs"
3233 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3234 fi
3235 fi
3236
3237 NM="$lt_cv_path_NM"
3238 echo "$as_me:$LINENO: result: $NM" >&5
3239 echo "${ECHO_T}$NM" >&6
3240
3241 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3242 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3243 if test "${lt_cv_path_SED+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 # Loop through the user's path and test for sed and gsed.
3247 # Then use that list of sed's as ones to test for truncation.
3248 as_executable_p="test -f"
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_prog in sed gsed; do
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3257 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3258 fi
3259 done
3260 done
3261 done
3262
3263 # Create a temporary directory, and hook for its removal unless debugging.
3264 $debug ||
3265 {
3266 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3267 trap '{ (exit 1); exit 1; }' 1 2 13 15
3268 }
3269
3270 # Create a (secure) tmp directory for tmp files.
3271 : ${TMPDIR=/tmp}
3272 {
3273 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3274 test -n "$tmp" && test -d "$tmp"
3275 } ||
3276 {
3277 tmp=$TMPDIR/sed$$-$RANDOM
3278 (umask 077 && mkdir $tmp)
3279 } ||
3280 {
3281 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3282 { (exit 1); exit 1; }
3283 }
3284 _max=0
3285 _count=0
3286 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3287 # along with /bin/sed that truncates output.
3288 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3289 test ! -f ${_sed} && break
3290 cat /dev/null > "$tmp/sed.in"
3291 _count=0
3292 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3293 # Check for GNU sed and select it if it is found.
3294 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3295 lt_cv_path_SED=${_sed}
3296 break
3297 fi
3298 while true; do
3299 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3300 mv "$tmp/sed.tmp" "$tmp/sed.in"
3301 cp "$tmp/sed.in" "$tmp/sed.nl"
3302 echo >>"$tmp/sed.nl"
3303 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3304 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3305 # 40000 chars as input seems more than enough
3306 test $_count -gt 10 && break
3307 _count=`expr $_count + 1`
3308 if test $_count -gt $_max; then
3309 _max=$_count
3310 lt_cv_path_SED=$_sed
3311 fi
3312 done
3313 done
3314 rm -rf "$tmp"
3315
3316 fi
3317
3318 if test "X$SED" != "X"; then
3319 lt_cv_path_SED=$SED
3320 else
3321 SED=$lt_cv_path_SED
3322 fi
3323 echo "$as_me:$LINENO: result: $SED" >&5
3324 echo "${ECHO_T}$SED" >&6
3325
3326 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3327 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3328 LN_S=$as_ln_s
3329 if test "$LN_S" = "ln -s"; then
3330 echo "$as_me:$LINENO: result: yes" >&5
3331 echo "${ECHO_T}yes" >&6
3332 else
3333 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3334 echo "${ECHO_T}no, using $LN_S" >&6
3335 fi
3336
3337 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3338 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3339 if test "${lt_cv_deplibs_check_method+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 lt_cv_file_magic_cmd='$MAGIC_CMD'
3343 lt_cv_file_magic_test_file=
3344 lt_cv_deplibs_check_method='unknown'
3345 # Need to set the preceding variable on all platforms that support
3346 # interlibrary dependencies.
3347 # 'none' -- dependencies not supported.
3348 # `unknown' -- same as none, but documents that we really don't know.
3349 # 'pass_all' -- all dependencies passed with no checks.
3350 # 'test_compile' -- check by making test program.
3351 # 'file_magic [[regex]]' -- check by looking for files in library path
3352 # which responds to the $file_magic_cmd with a given egrep regex.
3353 # If you have `file' or equivalent on your system and you're not sure
3354 # whether `pass_all' will *always* work, you probably want this one.
3355
3356 case $host_os in
3357 aix4* | aix5*)
3358 lt_cv_deplibs_check_method=pass_all
3359 ;;
3360
3361 beos*)
3362 lt_cv_deplibs_check_method=pass_all
3363 ;;
3364
3365 bsdi4*)
3366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3367 lt_cv_file_magic_cmd='/usr/bin/file -L'
3368 lt_cv_file_magic_test_file=/shlib/libc.so
3369 ;;
3370
3371 cygwin* | mingw* | pw32*)
3372 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3373 lt_cv_file_magic_cmd='$OBJDUMP -f'
3374 ;;
3375
3376 darwin* | rhapsody*)
3377 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3378 lt_cv_file_magic_cmd='/usr/bin/file -L'
3379 case "$host_os" in
3380 rhapsody* | darwin1.[012])
3381 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3382 ;;
3383 *) # Darwin 1.3 on
3384 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3385 ;;
3386 esac
3387 ;;
3388
3389 freebsd*)
3390 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3391 case $host_cpu in
3392 i*86 )
3393 # Not sure whether the presence of OpenBSD here was a mistake.
3394 # Let's accept both of them until this is cleared up.
3395 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3396 lt_cv_file_magic_cmd=/usr/bin/file
3397 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3398 ;;
3399 esac
3400 else
3401 lt_cv_deplibs_check_method=pass_all
3402 fi
3403 ;;
3404
3405 gnu*)
3406 lt_cv_deplibs_check_method=pass_all
3407 ;;
3408
3409 hpux10.20*|hpux11*)
3410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3411 lt_cv_file_magic_cmd=/usr/bin/file
3412 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3413 ;;
3414
3415 irix5* | irix6* | nonstopux*)
3416 case $host_os in
3417 irix5* | nonstopux*)
3418 # this will be overridden with pass_all, but let us keep it just in case
3419 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3420 ;;
3421 *)
3422 case $LD in
3423 *-32|*"-32 ") libmagic=32-bit;;
3424 *-n32|*"-n32 ") libmagic=N32;;
3425 *-64|*"-64 ") libmagic=64-bit;;
3426 *) libmagic=never-match;;
3427 esac
3428 # this will be overridden with pass_all, but let us keep it just in case
3429 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3430 ;;
3431 esac
3432 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3433 lt_cv_deplibs_check_method=pass_all
3434 ;;
3435
3436 # This must be Linux ELF.
3437 linux-gnu*)
3438 case $host_cpu in
3439 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3440 lt_cv_deplibs_check_method=pass_all ;;
3441 *)
3442 # glibc up to 2.1.1 does not perform some relocations on ARM
3443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3444 esac
3445 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3446 ;;
3447
3448 netbsd*)
3449 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3450 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3451 else
3452 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3453 fi
3454 ;;
3455
3456 newos6*)
3457 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3458 lt_cv_file_magic_cmd=/usr/bin/file
3459 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3460 ;;
3461
3462 openbsd*)
3463 lt_cv_file_magic_cmd=/usr/bin/file
3464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3465 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3467 else
3468 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3469 fi
3470 ;;
3471
3472 osf3* | osf4* | osf5*)
3473 # this will be overridden with pass_all, but let us keep it just in case
3474 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3475 lt_cv_file_magic_test_file=/shlib/libc.so
3476 lt_cv_deplibs_check_method=pass_all
3477 ;;
3478
3479 sco3.2v5*)
3480 lt_cv_deplibs_check_method=pass_all
3481 ;;
3482
3483 solaris*)
3484 lt_cv_deplibs_check_method=pass_all
3485 lt_cv_file_magic_test_file=/lib/libc.so
3486 ;;
3487
3488 sysv5uw[78]* | sysv4*uw2*)
3489 lt_cv_deplibs_check_method=pass_all
3490 ;;
3491
3492 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3493 case $host_vendor in
3494 motorola)
3495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3497 ;;
3498 ncr)
3499 lt_cv_deplibs_check_method=pass_all
3500 ;;
3501 sequent)
3502 lt_cv_file_magic_cmd='/bin/file'
3503 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3504 ;;
3505 sni)
3506 lt_cv_file_magic_cmd='/bin/file'
3507 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3508 lt_cv_file_magic_test_file=/lib/libc.so
3509 ;;
3510 siemens)
3511 lt_cv_deplibs_check_method=pass_all
3512 ;;
3513 esac
3514 ;;
3515 esac
3516
3517 fi
3518 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3519 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3520 file_magic_cmd=$lt_cv_file_magic_cmd
3521 deplibs_check_method=$lt_cv_deplibs_check_method
3522
3523
3524
3525
3526
3527
3528
3529 # Check for command to grab the raw symbol name followed by C symbol from nm.
3530 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3531 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3532 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535
3536 # These are sane defaults that work on at least a few old systems.
3537 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3538
3539 # Character class describing NM global symbol codes.
3540 symcode='[BCDEGRST]'
3541
3542 # Regexp to match symbols that can be accessed directly from C.
3543 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3544
3545 # Transform the above into a raw symbol and a C symbol.
3546 symxfrm='\1 \2\3 \3'
3547
3548 # Transform an extracted symbol line into a proper C declaration
3549 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3550
3551 # Transform an extracted symbol line into symbol name and symbol address
3552 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3553
3554 # Define system-specific variables.
3555 case $host_os in
3556 aix*)
3557 symcode='[BCDT]'
3558 ;;
3559 cygwin* | mingw* | pw32*)
3560 symcode='[ABCDGISTW]'
3561 ;;
3562 hpux*) # Its linker distinguishes data from code symbols
3563 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3564 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3565 ;;
3566 irix* | nonstopux*)
3567 symcode='[BCDEGRST]'
3568 ;;
3569 osf*)
3570 symcode='[BCDEGQRST]'
3571 ;;
3572 solaris* | sysv5*)
3573 symcode='[BDT]'
3574 ;;
3575 sysv4)
3576 symcode='[DFNSTU]'
3577 ;;
3578 esac
3579
3580 # Handle CRLF in mingw tool chain
3581 opt_cr=
3582 case $host_os in
3583 mingw*)
3584 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3585 ;;
3586 esac
3587
3588 # If we're using GNU nm, then use its standard symbol codes.
3589 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3590 symcode='[ABCDGISTW]'
3591 fi
3592
3593 # Try without a prefix undercore, then with it.
3594 for ac_symprfx in "" "_"; do
3595
3596 # Write the raw and C identifiers.
3597 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3598
3599 # Check to see that the pipe works correctly.
3600 pipe_works=no
3601 rm -f conftest*
3602 cat > conftest.$ac_ext <<EOF
3603 #ifdef __cplusplus
3604 extern "C" {
3605 #endif
3606 char nm_test_var;
3607 void nm_test_func(){}
3608 #ifdef __cplusplus
3609 }
3610 #endif
3611 int main(){nm_test_var='a';nm_test_func();return(0);}
3612 EOF
3613
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; then
3619 # Now try to grab the symbols.
3620 nlist=conftest.nm
3621 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3622 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } && test -s "$nlist"; then
3626 # Try sorting and uniquifying the output.
3627 if sort "$nlist" | uniq > "$nlist"T; then
3628 mv -f "$nlist"T "$nlist"
3629 else
3630 rm -f "$nlist"T
3631 fi
3632
3633 # Make sure that we snagged all the symbols we need.
3634 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3635 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3636 cat <<EOF > conftest.$ac_ext
3637 #ifdef __cplusplus
3638 extern "C" {
3639 #endif
3640
3641 EOF
3642 # Now generate the symbol file.
3643 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3644
3645 cat <<EOF >> conftest.$ac_ext
3646 #if defined (__STDC__) && __STDC__
3647 # define lt_ptr void *
3648 #else
3649 # define lt_ptr char *
3650 # define const
3651 #endif
3652
3653 /* The mapping between symbol names and symbols. */
3654 const struct {
3655 const char *name;
3656 lt_ptr address;
3657 }
3658 lt_preloaded_symbols[] =
3659 {
3660 EOF
3661 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3662 cat <<\EOF >> conftest.$ac_ext
3663 {0, (lt_ptr) 0}
3664 };
3665
3666 #ifdef __cplusplus
3667 }
3668 #endif
3669 EOF
3670 # Now try linking the two files.
3671 mv conftest.$ac_objext conftstm.$ac_objext
3672 save_LIBS="$LIBS"
3673 save_CFLAGS="$CFLAGS"
3674 LIBS="conftstm.$ac_objext"
3675 CFLAGS="$CFLAGS$no_builtin_flag"
3676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3677 (eval $ac_link) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } && test -s conftest$ac_exeext; then
3681 pipe_works=yes
3682 fi
3683 LIBS="$save_LIBS"
3684 CFLAGS="$save_CFLAGS"
3685 else
3686 echo "cannot find nm_test_func in $nlist" >&5
3687 fi
3688 else
3689 echo "cannot find nm_test_var in $nlist" >&5
3690 fi
3691 else
3692 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3693 fi
3694 else
3695 echo "$progname: failed program was:" >&5
3696 cat conftest.$ac_ext >&5
3697 fi
3698 rm -f conftest* conftst*
3699
3700 # Do not use the global_symbol_pipe unless it works.
3701 if test "$pipe_works" = yes; then
3702 break
3703 else
3704 lt_cv_sys_global_symbol_pipe=
3705 fi
3706 done
3707
3708 fi
3709
3710 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3711 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3712 global_symbol_to_cdecl=
3713 global_symbol_to_c_name_address=
3714 else
3715 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3716 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3717 fi
3718 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3719 then
3720 echo "$as_me:$LINENO: result: failed" >&5
3721 echo "${ECHO_T}failed" >&6
3722 else
3723 echo "$as_me:$LINENO: result: ok" >&5
3724 echo "${ECHO_T}ok" >&6
3725 fi
3726
3727
3728 for ac_header in dlfcn.h
3729 do
3730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3732 echo "$as_me:$LINENO: checking for $ac_header" >&5
3733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 fi
3737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3739 else
3740 # Is the header compilable?
3741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3743 cat >conftest.$ac_ext <<_ACEOF
3744 #line $LINENO "configure"
3745 #include "confdefs.h"
3746 $ac_includes_default
3747 #include <$ac_header>
3748 _ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 { ac_try='test -s conftest.$ac_objext'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 ac_header_compiler=yes
3762 else
3763 echo "$as_me: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3765 ac_header_compiler=no
3766 fi
3767 rm -f conftest.$ac_objext conftest.$ac_ext
3768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3769 echo "${ECHO_T}$ac_header_compiler" >&6
3770
3771 # Is the header present?
3772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3774 cat >conftest.$ac_ext <<_ACEOF
3775 #line $LINENO "configure"
3776 #include "confdefs.h"
3777 #include <$ac_header>
3778 _ACEOF
3779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3781 ac_status=$?
3782 egrep -v '^ *\+' conftest.er1 >conftest.err
3783 rm -f conftest.er1
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } >/dev/null; then
3787 if test -s conftest.err; then
3788 ac_cpp_err=$ac_c_preproc_warn_flag
3789 else
3790 ac_cpp_err=
3791 fi
3792 else
3793 ac_cpp_err=yes
3794 fi
3795 if test -z "$ac_cpp_err"; then
3796 ac_header_preproc=yes
3797 else
3798 echo "$as_me: failed program was:" >&5
3799 cat conftest.$ac_ext >&5
3800 ac_header_preproc=no
3801 fi
3802 rm -f conftest.err conftest.$ac_ext
3803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3804 echo "${ECHO_T}$ac_header_preproc" >&6
3805
3806 # So? What about this header?
3807 case $ac_header_compiler:$ac_header_preproc in
3808 yes:no )
3809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3813 no:yes )
3814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3820 esac
3821 echo "$as_me:$LINENO: checking for $ac_header" >&5
3822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826 eval "$as_ac_Header=$ac_header_preproc"
3827 fi
3828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3830
3831 fi
3832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3833 cat >>confdefs.h <<_ACEOF
3834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3835 _ACEOF
3836
3837 fi
3838
3839 done
3840
3841
3842
3843
3844
3845
3846 # Only perform the check for file, if the check method requires it
3847 case $deplibs_check_method in
3848 file_magic*)
3849 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3850 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3851 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3852 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855 case $MAGIC_CMD in
3856 /*)
3857 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3858 ;;
3859 ?:/*)
3860 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3861 ;;
3862 *)
3863 ac_save_MAGIC_CMD="$MAGIC_CMD"
3864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3865 ac_dummy="/usr/bin:$PATH"
3866 for ac_dir in $ac_dummy; do
3867 test -z "$ac_dir" && ac_dir=.
3868 if test -f $ac_dir/${ac_tool_prefix}file; then
3869 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3870 if test -n "$file_magic_test_file"; then
3871 case $deplibs_check_method in
3872 "file_magic "*)
3873 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3875 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3876 egrep "$file_magic_regex" > /dev/null; then
3877 :
3878 else
3879 cat <<EOF 1>&2
3880
3881 *** Warning: the command libtool uses to detect shared libraries,
3882 *** $file_magic_cmd, produces output that libtool cannot recognize.
3883 *** The result is that libtool may fail to recognize shared libraries
3884 *** as such. This will affect the creation of libtool libraries that
3885 *** depend on shared libraries, but programs linked with such libtool
3886 *** libraries will work regardless of this problem. Nevertheless, you
3887 *** may want to report the problem to your system manager and/or to
3888 *** [email protected]
3889
3890 EOF
3891 fi ;;
3892 esac
3893 fi
3894 break
3895 fi
3896 done
3897 IFS="$ac_save_ifs"
3898 MAGIC_CMD="$ac_save_MAGIC_CMD"
3899 ;;
3900 esac
3901 fi
3902
3903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3904 if test -n "$MAGIC_CMD"; then
3905 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3906 echo "${ECHO_T}$MAGIC_CMD" >&6
3907 else
3908 echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6
3910 fi
3911
3912 if test -z "$lt_cv_path_MAGIC_CMD"; then
3913 if test -n "$ac_tool_prefix"; then
3914 echo "$as_me:$LINENO: checking for file" >&5
3915 echo $ECHO_N "checking for file... $ECHO_C" >&6
3916 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 case $MAGIC_CMD in
3920 /*)
3921 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3922 ;;
3923 ?:/*)
3924 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3925 ;;
3926 *)
3927 ac_save_MAGIC_CMD="$MAGIC_CMD"
3928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3929 ac_dummy="/usr/bin:$PATH"
3930 for ac_dir in $ac_dummy; do
3931 test -z "$ac_dir" && ac_dir=.
3932 if test -f $ac_dir/file; then
3933 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3934 if test -n "$file_magic_test_file"; then
3935 case $deplibs_check_method in
3936 "file_magic "*)
3937 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3938 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3939 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3940 egrep "$file_magic_regex" > /dev/null; then
3941 :
3942 else
3943 cat <<EOF 1>&2
3944
3945 *** Warning: the command libtool uses to detect shared libraries,
3946 *** $file_magic_cmd, produces output that libtool cannot recognize.
3947 *** The result is that libtool may fail to recognize shared libraries
3948 *** as such. This will affect the creation of libtool libraries that
3949 *** depend on shared libraries, but programs linked with such libtool
3950 *** libraries will work regardless of this problem. Nevertheless, you
3951 *** may want to report the problem to your system manager and/or to
3952 *** [email protected]
3953
3954 EOF
3955 fi ;;
3956 esac
3957 fi
3958 break
3959 fi
3960 done
3961 IFS="$ac_save_ifs"
3962 MAGIC_CMD="$ac_save_MAGIC_CMD"
3963 ;;
3964 esac
3965 fi
3966
3967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3968 if test -n "$MAGIC_CMD"; then
3969 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3970 echo "${ECHO_T}$MAGIC_CMD" >&6
3971 else
3972 echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6
3974 fi
3975
3976 else
3977 MAGIC_CMD=:
3978 fi
3979 fi
3980
3981 fi
3982 ;;
3983 esac
3984
3985 if test -n "$ac_tool_prefix"; then
3986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3988 echo "$as_me:$LINENO: checking for $ac_word" >&5
3989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3990 if test "${ac_cv_prog_RANLIB+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 if test -n "$RANLIB"; then
3994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4006 fi
4007 done
4008 done
4009
4010 fi
4011 fi
4012 RANLIB=$ac_cv_prog_RANLIB
4013 if test -n "$RANLIB"; then
4014 echo "$as_me:$LINENO: result: $RANLIB" >&5
4015 echo "${ECHO_T}$RANLIB" >&6
4016 else
4017 echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6
4019 fi
4020
4021 fi
4022 if test -z "$ac_cv_prog_RANLIB"; then
4023 ac_ct_RANLIB=$RANLIB
4024 # Extract the first word of "ranlib", so it can be a program name with args.
4025 set dummy ranlib; ac_word=$2
4026 echo "$as_me:$LINENO: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 if test -n "$ac_ct_RANLIB"; then
4032 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4036 do
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_ac_ct_RANLIB="ranlib"
4042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4044 fi
4045 done
4046 done
4047
4048 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4049 fi
4050 fi
4051 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4052 if test -n "$ac_ct_RANLIB"; then
4053 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4054 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4055 else
4056 echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4058 fi
4059
4060 RANLIB=$ac_ct_RANLIB
4061 else
4062 RANLIB="$ac_cv_prog_RANLIB"
4063 fi
4064
4065 if test -n "$ac_tool_prefix"; then
4066 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4067 set dummy ${ac_tool_prefix}strip; ac_word=$2
4068 echo "$as_me:$LINENO: checking for $ac_word" >&5
4069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070 if test "${ac_cv_prog_STRIP+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073 if test -n "$STRIP"; then
4074 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 break 2
4086 fi
4087 done
4088 done
4089
4090 fi
4091 fi
4092 STRIP=$ac_cv_prog_STRIP
4093 if test -n "$STRIP"; then
4094 echo "$as_me:$LINENO: result: $STRIP" >&5
4095 echo "${ECHO_T}$STRIP" >&6
4096 else
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4099 fi
4100
4101 fi
4102 if test -z "$ac_cv_prog_STRIP"; then
4103 ac_ct_STRIP=$STRIP
4104 # Extract the first word of "strip", so it can be a program name with args.
4105 set dummy strip; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 if test -n "$ac_ct_STRIP"; then
4112 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_ac_ct_STRIP="strip"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 break 2
4124 fi
4125 done
4126 done
4127
4128 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4129 fi
4130 fi
4131 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4132 if test -n "$ac_ct_STRIP"; then
4133 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4134 echo "${ECHO_T}$ac_ct_STRIP" >&6
4135 else
4136 echo "$as_me:$LINENO: result: no" >&5
4137 echo "${ECHO_T}no" >&6
4138 fi
4139
4140 STRIP=$ac_ct_STRIP
4141 else
4142 STRIP="$ac_cv_prog_STRIP"
4143 fi
4144
4145
4146 enable_dlopen=no
4147 enable_win32_dll=no
4148
4149 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4150 if test "${enable_libtool_lock+set}" = set; then
4151 enableval="$enable_libtool_lock"
4152
4153 fi;
4154 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4155
4156 # Some flags need to be propagated to the compiler or linker for good
4157 # libtool support.
4158 case $host in
4159 *-*-irix6*)
4160 # Find out which ABI we are using.
4161 echo '#line 4161 "configure"' > conftest.$ac_ext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; then
4167 case `/usr/bin/file conftest.$ac_objext` in
4168 *32-bit*)
4169 LD="${LD-ld} -32"
4170 ;;
4171 *N32*)
4172 LD="${LD-ld} -n32"
4173 ;;
4174 *64-bit*)
4175 LD="${LD-ld} -64"
4176 ;;
4177 esac
4178 fi
4179 rm -rf conftest*
4180 ;;
4181
4182 *-*-sco3.2v5*)
4183 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4184 SAVE_CFLAGS="$CFLAGS"
4185 CFLAGS="$CFLAGS -belf"
4186 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4187 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4188 if test "${lt_cv_cc_needs_belf+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191
4192
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
4199 cat >conftest.$ac_ext <<_ACEOF
4200 #line $LINENO "configure"
4201 #include "confdefs.h"
4202
4203 #ifdef F77_DUMMY_MAIN
4204 # ifdef __cplusplus
4205 extern "C"
4206 # endif
4207 int F77_DUMMY_MAIN() { return 1; }
4208 #endif
4209 int
4210 main ()
4211 {
4212
4213 ;
4214 return 0;
4215 }
4216 _ACEOF
4217 rm -f conftest.$ac_objext conftest$ac_exeext
4218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4219 (eval $ac_link) 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } &&
4223 { ac_try='test -s conftest$ac_exeext'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 (eval $ac_try) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; }; then
4229 lt_cv_cc_needs_belf=yes
4230 else
4231 echo "$as_me: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4233 lt_cv_cc_needs_belf=no
4234 fi
4235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4236 ac_ext=c
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
4242 fi
4243 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4244 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4245 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4246 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4247 CFLAGS="$SAVE_CFLAGS"
4248 fi
4249 ;;
4250
4251
4252 esac
4253
4254 # Sed substitution that helps us do robust quoting. It backslashifies
4255 # metacharacters that are still active within double-quoted strings.
4256 Xsed='sed -e s/^X//'
4257 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4258
4259 # Same as above, but do not quote variable references.
4260 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4261
4262 # Sed substitution to delay expansion of an escaped shell variable in a
4263 # double_quote_subst'ed string.
4264 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4265
4266 # Constants:
4267 rm="rm -f"
4268
4269 # Global variables:
4270 default_ofile=libtool
4271 can_build_shared=yes
4272
4273 # All known linkers require a `.a' archive for static linking (except M$VC,
4274 # which needs '.lib').
4275 libext=a
4276 ltmain="$ac_aux_dir/ltmain.sh"
4277 ofile="$default_ofile"
4278 with_gnu_ld="$lt_cv_prog_gnu_ld"
4279 need_locks="$enable_libtool_lock"
4280
4281 old_CC="$CC"
4282 old_CFLAGS="$CFLAGS"
4283
4284 # Set sane defaults for various variables
4285 test -z "$AR" && AR=ar
4286 test -z "$AR_FLAGS" && AR_FLAGS=cru
4287 test -z "$AS" && AS=as
4288 test -z "$CC" && CC=cc
4289 test -z "$DLLTOOL" && DLLTOOL=dlltool
4290 test -z "$LD" && LD=ld
4291 test -z "$LN_S" && LN_S="ln -s"
4292 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4293 test -z "$NM" && NM=nm
4294 test -z "$OBJDUMP" && OBJDUMP=objdump
4295 test -z "$RANLIB" && RANLIB=:
4296 test -z "$STRIP" && STRIP=:
4297 test -z "$ac_objext" && ac_objext=o
4298
4299 if test x"$host" != x"$build"; then
4300 ac_tool_prefix=${host_alias}-
4301 else
4302 ac_tool_prefix=
4303 fi
4304
4305 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4306 case $host_os in
4307 linux-gnu*) ;;
4308 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4309 esac
4310
4311 case $host_os in
4312 aix3*)
4313 # AIX sometimes has problems with the GCC collect2 program. For some
4314 # reason, if we set the COLLECT_NAMES environment variable, the problems
4315 # vanish in a puff of smoke.
4316 if test "X${COLLECT_NAMES+set}" != Xset; then
4317 COLLECT_NAMES=
4318 export COLLECT_NAMES
4319 fi
4320 ;;
4321 esac
4322
4323 # Determine commands to create old-style static archives.
4324 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4325 old_postinstall_cmds='chmod 644 $oldlib'
4326 old_postuninstall_cmds=
4327
4328 if test -n "$RANLIB"; then
4329 case $host_os in
4330 openbsd*)
4331 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4332 ;;
4333 *)
4334 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4335 ;;
4336 esac
4337 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4338 fi
4339
4340 # Allow CC to be a program name with arguments.
4341 set dummy $CC
4342 compiler="$2"
4343
4344 ## FIXME: this should be a separate macro
4345 ##
4346 echo "$as_me:$LINENO: checking for objdir" >&5
4347 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4348 rm -f .libs 2>/dev/null
4349 mkdir .libs 2>/dev/null
4350 if test -d .libs; then
4351 objdir=.libs
4352 else
4353 # MS-DOS does not allow filenames that begin with a dot.
4354 objdir=_libs
4355 fi
4356 rmdir .libs 2>/dev/null
4357 echo "$as_me:$LINENO: result: $objdir" >&5
4358 echo "${ECHO_T}$objdir" >&6
4359 ##
4360 ## END FIXME
4361
4362
4363 ## FIXME: this should be a separate macro
4364 ##
4365
4366 # Check whether --with-pic or --without-pic was given.
4367 if test "${with_pic+set}" = set; then
4368 withval="$with_pic"
4369 pic_mode="$withval"
4370 else
4371 pic_mode=default
4372 fi;
4373 test -z "$pic_mode" && pic_mode=default
4374
4375 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4376 # in isolation, and that seeing it set (from the cache) indicates that
4377 # the associated values are set (in the cache) correctly too.
4378 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4379 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4380 if test "${lt_cv_prog_cc_pic+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383 lt_cv_prog_cc_pic=
4384 lt_cv_prog_cc_shlib=
4385 lt_cv_prog_cc_wl=
4386 lt_cv_prog_cc_static=
4387 lt_cv_prog_cc_no_builtin=
4388 lt_cv_prog_cc_can_build_shared=$can_build_shared
4389
4390 if test "$GCC" = yes; then
4391 lt_cv_prog_cc_wl='-Wl,'
4392 lt_cv_prog_cc_static='-static'
4393
4394 case $host_os in
4395 aix*)
4396 # Below there is a dirty hack to force normal static linking with -ldl
4397 # The problem is because libdl dynamically linked with both libc and
4398 # libC (AIX C++ library), which obviously doesn't included in libraries
4399 # list by gcc. This cause undefined symbols with -static flags.
4400 # This hack allows C programs to be linked with "-static -ldl", but
4401 # not sure about C++ programs.
4402 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4403 ;;
4404 amigaos*)
4405 # FIXME: we need at least 68020 code to build shared libraries, but
4406 # adding the `-m68020' flag to GCC prevents building anything better,
4407 # like `-m68040'.
4408 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4409 ;;
4410 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4411 # PIC is the default for these OSes.
4412 ;;
4413 darwin* | rhapsody*)
4414 # PIC is the default on this platform
4415 # Common symbols not allowed in MH_DYLIB files
4416 lt_cv_prog_cc_pic='-fno-common'
4417 ;;
4418 cygwin* | mingw* | pw32* | os2*)
4419 # This hack is so that the source file can tell whether it is being
4420 # built for inclusion in a dll (and should export symbols for example).
4421 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4422 ;;
4423 sysv4*MP*)
4424 if test -d /usr/nec; then
4425 lt_cv_prog_cc_pic=-Kconform_pic
4426 fi
4427 ;;
4428 *)
4429 lt_cv_prog_cc_pic='-fPIC'
4430 ;;
4431 esac
4432 else
4433 # PORTME Check for PIC flags for the system compiler.
4434 case $host_os in
4435 aix3* | aix4* | aix5*)
4436 lt_cv_prog_cc_wl='-Wl,'
4437 # All AIX code is PIC.
4438 if test "$host_cpu" = ia64; then
4439 # AIX 5 now supports IA64 processor
4440 lt_cv_prog_cc_static='-Bstatic'
4441 else
4442 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4443 fi
4444 ;;
4445
4446 hpux9* | hpux10* | hpux11*)
4447 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4448 lt_cv_prog_cc_wl='-Wl,'
4449 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4450 lt_cv_prog_cc_pic='+Z'
4451 ;;
4452
4453 irix5* | irix6* | nonstopux*)
4454 lt_cv_prog_cc_wl='-Wl,'
4455 lt_cv_prog_cc_static='-non_shared'
4456 # PIC (with -KPIC) is the default.
4457 ;;
4458
4459 cygwin* | mingw* | pw32* | os2*)
4460 # This hack is so that the source file can tell whether it is being
4461 # built for inclusion in a dll (and should export symbols for example).
4462 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4463 ;;
4464
4465 newsos6)
4466 lt_cv_prog_cc_pic='-KPIC'
4467 lt_cv_prog_cc_static='-Bstatic'
4468 ;;
4469
4470 osf3* | osf4* | osf5*)
4471 # All OSF/1 code is PIC.
4472 lt_cv_prog_cc_wl='-Wl,'
4473 lt_cv_prog_cc_static='-non_shared'
4474 ;;
4475
4476 sco3.2v5*)
4477 lt_cv_prog_cc_pic='-Kpic'
4478 lt_cv_prog_cc_static='-dn'
4479 lt_cv_prog_cc_shlib='-belf'
4480 ;;
4481
4482 solaris*)
4483 lt_cv_prog_cc_pic='-KPIC'
4484 lt_cv_prog_cc_static='-Bstatic'
4485 lt_cv_prog_cc_wl='-Wl,'
4486 ;;
4487
4488 sunos4*)
4489 lt_cv_prog_cc_pic='-PIC'
4490 lt_cv_prog_cc_static='-Bstatic'
4491 lt_cv_prog_cc_wl='-Qoption ld '
4492 ;;
4493
4494 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4495 lt_cv_prog_cc_pic='-KPIC'
4496 lt_cv_prog_cc_static='-Bstatic'
4497 lt_cv_prog_cc_wl='-Wl,'
4498 ;;
4499
4500 uts4*)
4501 lt_cv_prog_cc_pic='-pic'
4502 lt_cv_prog_cc_static='-Bstatic'
4503 ;;
4504
4505 sysv4*MP*)
4506 if test -d /usr/nec ;then
4507 lt_cv_prog_cc_pic='-Kconform_pic'
4508 lt_cv_prog_cc_static='-Bstatic'
4509 fi
4510 ;;
4511
4512 *)
4513 lt_cv_prog_cc_can_build_shared=no
4514 ;;
4515 esac
4516 fi
4517
4518 fi
4519
4520 if test -z "$lt_cv_prog_cc_pic"; then
4521 echo "$as_me:$LINENO: result: none" >&5
4522 echo "${ECHO_T}none" >&6
4523 else
4524 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4525 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4526
4527 # Check to make sure the pic_flag actually works.
4528 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4529 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4530 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 save_CFLAGS="$CFLAGS"
4534 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4535 cat >conftest.$ac_ext <<_ACEOF
4536 #line $LINENO "configure"
4537 #include "confdefs.h"
4538
4539 #ifdef F77_DUMMY_MAIN
4540 # ifdef __cplusplus
4541 extern "C"
4542 # endif
4543 int F77_DUMMY_MAIN() { return 1; }
4544 #endif
4545 int
4546 main ()
4547 {
4548
4549 ;
4550 return 0;
4551 }
4552 _ACEOF
4553 rm -f conftest.$ac_objext
4554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4555 (eval $ac_compile) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 case $host_os in
4566 hpux9* | hpux10* | hpux11*)
4567 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4568 # they create non-PIC objects. So, if there were any warnings, we
4569 # assume that PIC is not supported.
4570 if test -s conftest.err; then
4571 lt_cv_prog_cc_pic_works=no
4572 else
4573 lt_cv_prog_cc_pic_works=yes
4574 fi
4575 ;;
4576 *)
4577 lt_cv_prog_cc_pic_works=yes
4578 ;;
4579 esac
4580
4581 else
4582 echo "$as_me: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4584 lt_cv_prog_cc_pic_works=no
4585
4586 fi
4587 rm -f conftest.$ac_objext conftest.$ac_ext
4588 CFLAGS="$save_CFLAGS"
4589
4590 fi
4591
4592
4593 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4594 lt_cv_prog_cc_pic=
4595 lt_cv_prog_cc_can_build_shared=no
4596 else
4597 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4598 fi
4599
4600 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4601 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4602 fi
4603 ##
4604 ## END FIXME
4605
4606 # Check for any special shared library compilation flags.
4607 if test -n "$lt_cv_prog_cc_shlib"; then
4608 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4609 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4610 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4611 else
4612 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4613 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4614 lt_cv_prog_cc_can_build_shared=no
4615 fi
4616 fi
4617
4618 ## FIXME: this should be a separate macro
4619 ##
4620 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4621 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4622 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 lt_cv_prog_cc_static_works=no
4626 save_LDFLAGS="$LDFLAGS"
4627 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4628 cat >conftest.$ac_ext <<_ACEOF
4629 #line $LINENO "configure"
4630 #include "confdefs.h"
4631
4632 #ifdef F77_DUMMY_MAIN
4633 # ifdef __cplusplus
4634 extern "C"
4635 # endif
4636 int F77_DUMMY_MAIN() { return 1; }
4637 #endif
4638 int
4639 main ()
4640 {
4641
4642 ;
4643 return 0;
4644 }
4645 _ACEOF
4646 rm -f conftest.$ac_objext conftest$ac_exeext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4648 (eval $ac_link) 2>&5
4649 ac_status=$?
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try='test -s conftest$ac_exeext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 (eval $ac_try) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 lt_cv_prog_cc_static_works=yes
4659 else
4660 echo "$as_me: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
4662 fi
4663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4664 LDFLAGS="$save_LDFLAGS"
4665
4666 fi
4667
4668
4669 # Belt *and* braces to stop my trousers falling down:
4670 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4671 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4672 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4673
4674 pic_flag="$lt_cv_prog_cc_pic"
4675 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4676 wl="$lt_cv_prog_cc_wl"
4677 link_static_flag="$lt_cv_prog_cc_static"
4678 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4679 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4680 ##
4681 ## END FIXME
4682
4683
4684 ## FIXME: this should be a separate macro
4685 ##
4686 # Check to see if options -o and -c are simultaneously supported by compiler
4687 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4688 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4689 if test "${lt_cv_compiler_c_o+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692
4693 $rm -r conftest 2>/dev/null
4694 mkdir conftest
4695 cd conftest
4696 echo "int some_variable = 0;" > conftest.$ac_ext
4697 mkdir out
4698 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4699 # that will create temporary files in the current directory regardless of
4700 # the output directory. Thus, making CWD read-only will cause this test
4701 # to fail, enabling locking or at least warning the user not to do parallel
4702 # builds.
4703 chmod -w .
4704 save_CFLAGS="$CFLAGS"
4705 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4706 compiler_c_o=no
4707 if { (eval echo configure:4707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4708 # The compiler can only warn and ignore the option if not recognized
4709 # So say no if there are warnings
4710 if test -s out/conftest.err; then
4711 lt_cv_compiler_c_o=no
4712 else
4713 lt_cv_compiler_c_o=yes
4714 fi
4715 else
4716 # Append any errors to the config.log.
4717 cat out/conftest.err 1>&5
4718 lt_cv_compiler_c_o=no
4719 fi
4720 CFLAGS="$save_CFLAGS"
4721 chmod u+w .
4722 $rm conftest* out/*
4723 rmdir out
4724 cd ..
4725 rmdir conftest
4726 $rm -r conftest 2>/dev/null
4727
4728 fi
4729
4730 compiler_c_o=$lt_cv_compiler_c_o
4731 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4732 echo "${ECHO_T}$compiler_c_o" >&6
4733
4734 if test x"$compiler_c_o" = x"yes"; then
4735 # Check to see if we can write to a .lo
4736 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4737 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4738 if test "${lt_cv_compiler_o_lo+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741
4742 lt_cv_compiler_o_lo=no
4743 save_CFLAGS="$CFLAGS"
4744 CFLAGS="$CFLAGS -c -o conftest.lo"
4745 save_objext="$ac_objext"
4746 ac_objext=lo
4747 cat >conftest.$ac_ext <<_ACEOF
4748 #line $LINENO "configure"
4749 #include "confdefs.h"
4750
4751 #ifdef F77_DUMMY_MAIN
4752 # ifdef __cplusplus
4753 extern "C"
4754 # endif
4755 int F77_DUMMY_MAIN() { return 1; }
4756 #endif
4757 int
4758 main ()
4759 {
4760 int some_variable = 0;
4761 ;
4762 return 0;
4763 }
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try='test -s conftest.$ac_objext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 (eval $ac_try) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 # The compiler can only warn and ignore the option if not recognized
4778 # So say no if there are warnings
4779 if test -s conftest.err; then
4780 lt_cv_compiler_o_lo=no
4781 else
4782 lt_cv_compiler_o_lo=yes
4783 fi
4784
4785 else
4786 echo "$as_me: failed program was:" >&5
4787 cat conftest.$ac_ext >&5
4788 fi
4789 rm -f conftest.$ac_objext conftest.$ac_ext
4790 ac_objext="$save_objext"
4791 CFLAGS="$save_CFLAGS"
4792
4793 fi
4794
4795 compiler_o_lo=$lt_cv_compiler_o_lo
4796 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4797 echo "${ECHO_T}$compiler_o_lo" >&6
4798 else
4799 compiler_o_lo=no
4800 fi
4801 ##
4802 ## END FIXME
4803
4804 ## FIXME: this should be a separate macro
4805 ##
4806 # Check to see if we can do hard links to lock some files if needed
4807 hard_links="nottested"
4808 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4809 # do not overwrite the value of need_locks provided by the user
4810 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4811 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4812 hard_links=yes
4813 $rm conftest*
4814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4815 touch conftest.a
4816 ln conftest.a conftest.b 2>&5 || hard_links=no
4817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4818 echo "$as_me:$LINENO: result: $hard_links" >&5
4819 echo "${ECHO_T}$hard_links" >&6
4820 if test "$hard_links" = no; then
4821 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4822 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4823 need_locks=warn
4824 fi
4825 else
4826 need_locks=no
4827 fi
4828 ##
4829 ## END FIXME
4830
4831 ## FIXME: this should be a separate macro
4832 ##
4833 if test "$GCC" = yes; then
4834 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4835 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4836 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4837 echo "int some_variable = 0;" > conftest.$ac_ext
4838 save_CFLAGS="$CFLAGS"
4839 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4840 compiler_rtti_exceptions=no
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4843 #include "confdefs.h"
4844
4845 #ifdef F77_DUMMY_MAIN
4846 # ifdef __cplusplus
4847 extern "C"
4848 # endif
4849 int F77_DUMMY_MAIN() { return 1; }
4850 #endif
4851 int
4852 main ()
4853 {
4854 int some_variable = 0;
4855 ;
4856 return 0;
4857 }
4858 _ACEOF
4859 rm -f conftest.$ac_objext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861 (eval $ac_compile) 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -s conftest.$ac_objext'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4871 # The compiler can only warn and ignore the option if not recognized
4872 # So say no if there are warnings
4873 if test -s conftest.err; then
4874 compiler_rtti_exceptions=no
4875 else
4876 compiler_rtti_exceptions=yes
4877 fi
4878
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 cat conftest.$ac_ext >&5
4882 fi
4883 rm -f conftest.$ac_objext conftest.$ac_ext
4884 CFLAGS="$save_CFLAGS"
4885 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4886 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4887
4888 if test "$compiler_rtti_exceptions" = "yes"; then
4889 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4890 else
4891 no_builtin_flag=' -fno-builtin'
4892 fi
4893 fi
4894 ##
4895 ## END FIXME
4896
4897 ## FIXME: this should be a separate macro
4898 ##
4899 # See if the linker supports building shared libraries.
4900 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4901 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4902
4903 allow_undefined_flag=
4904 no_undefined_flag=
4905 need_lib_prefix=unknown
4906 need_version=unknown
4907 # when you set need_version to no, make sure it does not cause -set_version
4908 # flags to be left without arguments
4909 archive_cmds=
4910 archive_expsym_cmds=
4911 old_archive_from_new_cmds=
4912 old_archive_from_expsyms_cmds=
4913 export_dynamic_flag_spec=
4914 whole_archive_flag_spec=
4915 thread_safe_flag_spec=
4916 hardcode_into_libs=no
4917 hardcode_libdir_flag_spec=
4918 hardcode_libdir_separator=
4919 hardcode_direct=no
4920 hardcode_minus_L=no
4921 hardcode_shlibpath_var=unsupported
4922 runpath_var=
4923 link_all_deplibs=unknown
4924 always_export_symbols=no
4925 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4926 # include_expsyms should be a list of space-separated symbols to be *always*
4927 # included in the symbol list
4928 include_expsyms=
4929 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4930 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4931 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4932 # as well as any symbol that contains `d'.
4933 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4934 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4935 # platforms (ab)use it in PIC code, but their linkers get confused if
4936 # the symbol is explicitly referenced. Since portable code cannot
4937 # rely on this symbol name, it's probably fine to never include it in
4938 # preloaded symbol tables.
4939 extract_expsyms_cmds=
4940
4941 case $host_os in
4942 cygwin* | mingw* | pw32*)
4943 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4944 # When not using gcc, we currently assume that we are using
4945 # Microsoft Visual C++.
4946 if test "$GCC" != yes; then
4947 with_gnu_ld=no
4948 fi
4949 ;;
4950 openbsd*)
4951 with_gnu_ld=no
4952 ;;
4953 esac
4954
4955 ld_shlibs=yes
4956 if test "$with_gnu_ld" = yes; then
4957 # If archive_cmds runs LD, not CC, wlarc should be empty
4958 wlarc='${wl}'
4959
4960 # See if GNU ld supports shared libraries.
4961 case $host_os in
4962 aix3* | aix4* | aix5*)
4963 # On AIX, the GNU linker is very broken
4964 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4965 ld_shlibs=no
4966 cat <<EOF 1>&2
4967
4968 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4969 *** to be unable to reliably create shared libraries on AIX.
4970 *** Therefore, libtool is disabling shared libraries support. If you
4971 *** really care for shared libraries, you may want to modify your PATH
4972 *** so that a non-GNU linker is found, and then restart.
4973
4974 EOF
4975 ;;
4976
4977 amigaos*)
4978 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4979 hardcode_libdir_flag_spec='-L$libdir'
4980 hardcode_minus_L=yes
4981
4982 # Samuel A. Falvo II <[email protected]> reports
4983 # that the semantics of dynamic libraries on AmigaOS, at least up
4984 # to version 4, is to share data among multiple programs linked
4985 # with the same dynamic library. Since this doesn't match the
4986 # behavior of shared libraries on other platforms, we can use
4987 # them.
4988 ld_shlibs=no
4989 ;;
4990
4991 beos*)
4992 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4993 allow_undefined_flag=unsupported
4994 # Joseph Beckenbach <[email protected]> says some releases of gcc
4995 # support --undefined. This deserves some investigation. FIXME
4996 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4997 else
4998 ld_shlibs=no
4999 fi
5000 ;;
5001
5002 cygwin* | mingw* | pw32*)
5003 # hardcode_libdir_flag_spec is actually meaningless, as there is
5004 # no search path for DLLs.
5005 hardcode_libdir_flag_spec='-L$libdir'
5006 allow_undefined_flag=unsupported
5007 always_export_symbols=yes
5008
5009 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5010 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5011 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5012 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5013 else $CC -o impgen impgen.c ; fi)~
5014 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5015
5016 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5017
5018 # cygwin and mingw dlls have different entry points and sets of symbols
5019 # to exclude.
5020 # FIXME: what about values for MSVC?
5021 dll_entry=__cygwin_dll_entry@12
5022 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5023 case $host_os in
5024 mingw*)
5025 # mingw values
5026 dll_entry=_DllMainCRTStartup@12
5027 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5028 ;;
5029 esac
5030
5031 # mingw and cygwin differ, and it's simplest to just exclude the union
5032 # of the two symbol sets.
5033 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5034
5035 # recent cygwin and mingw systems supply a stub DllMain which the user
5036 # can override, but on older systems we have to supply one (in ltdll.c)
5037 if test "x$lt_cv_need_dllmain" = "xyes"; then
5038 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5039 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5040 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5041 else
5042 ltdll_obj=
5043 ltdll_cmds=
5044 fi
5045
5046 # Extract the symbol export list from an `--export-all' def file,
5047 # then regenerate the def file from the symbol export list, so that
5048 # the compiled dll only exports the symbol export list.
5049 # Be careful not to strip the DATA tag left be newer dlltools.
5050 export_symbols_cmds="$ltdll_cmds"'
5051 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5052 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5053
5054 # If the export-symbols file already is a .def file (1st line
5055 # is EXPORTS), use it as is.
5056 # If DATA tags from a recent dlltool are present, honour them!
5057 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5058 cp $export_symbols $output_objdir/$soname-def;
5059 else
5060 echo EXPORTS > $output_objdir/$soname-def;
5061 _lt_hint=1;
5062 cat $export_symbols | while read symbol; do
5063 set dummy \$symbol;
5064 case \$# in
5065 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5066 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5067 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5068 esac;
5069 _lt_hint=`expr 1 + \$_lt_hint`;
5070 done;
5071 fi~
5072 '"$ltdll_cmds"'
5073 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5074 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5075 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5076 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5077 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5078 ;;
5079
5080 netbsd*)
5081 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5082 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5083 wlarc=
5084 else
5085 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5086 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5087 fi
5088 ;;
5089
5090 solaris* | sysv5*)
5091 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5092 ld_shlibs=no
5093 cat <<EOF 1>&2
5094
5095 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5096 *** create shared libraries on Solaris systems. Therefore, libtool
5097 *** is disabling shared libraries support. We urge you to upgrade GNU
5098 *** binutils to release 2.9.1 or newer. Another option is to modify
5099 *** your PATH or compiler configuration so that the native linker is
5100 *** used, and then restart.
5101
5102 EOF
5103 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5105 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5106 else
5107 ld_shlibs=no
5108 fi
5109 ;;
5110
5111 sunos4*)
5112 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5113 wlarc=
5114 hardcode_direct=yes
5115 hardcode_shlibpath_var=no
5116 ;;
5117
5118 *)
5119 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5122 else
5123 ld_shlibs=no
5124 fi
5125 ;;
5126 esac
5127
5128 if test "$ld_shlibs" = yes; then
5129 runpath_var=LD_RUN_PATH
5130 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5131 export_dynamic_flag_spec='${wl}--export-dynamic'
5132 case $host_os in
5133 cygwin* | mingw* | pw32*)
5134 # dlltool doesn't understand --whole-archive et. al.
5135 whole_archive_flag_spec=
5136 ;;
5137 *)
5138 # ancient GNU ld didn't support --whole-archive et. al.
5139 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5140 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5141 else
5142 whole_archive_flag_spec=
5143 fi
5144 ;;
5145 esac
5146 fi
5147 else
5148 # PORTME fill in a description of your system's linker (not GNU ld)
5149 case $host_os in
5150 aix3*)
5151 allow_undefined_flag=unsupported
5152 always_export_symbols=yes
5153 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5154 # Note: this linker hardcodes the directories in LIBPATH if there
5155 # are no directories specified by -L.
5156 hardcode_minus_L=yes
5157 if test "$GCC" = yes && test -z "$link_static_flag"; then
5158 # Neither direct hardcoding nor static linking is supported with a
5159 # broken collect2.
5160 hardcode_direct=unsupported
5161 fi
5162 ;;
5163
5164 aix4* | aix5*)
5165 if test "$host_cpu" = ia64; then
5166 # On IA64, the linker does run time linking by default, so we don't
5167 # have to do anything special.
5168 aix_use_runtimelinking=no
5169 exp_sym_flag='-Bexport'
5170 no_entry_flag=""
5171 else
5172 aix_use_runtimelinking=no
5173
5174 # Test if we are trying to use run time linking or normal
5175 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5176 # need to do runtime linking.
5177 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5178 for ld_flag in $LDFLAGS; do
5179 case $ld_flag in
5180 *-brtl*)
5181 aix_use_runtimelinking=yes
5182 break
5183 ;;
5184 esac
5185 done
5186 esac
5187
5188 exp_sym_flag='-bexport'
5189 no_entry_flag='-bnoentry'
5190 fi
5191
5192 # When large executables or shared objects are built, AIX ld can
5193 # have problems creating the table of contents. If linking a library
5194 # or program results in "error TOC overflow" add -mminimal-toc to
5195 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5196 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5197
5198 hardcode_direct=yes
5199 archive_cmds=''
5200 hardcode_libdir_separator=':'
5201 if test "$GCC" = yes; then
5202 case $host_os in aix4.[012]|aix4.[012].*)
5203 collect2name=`${CC} -print-prog-name=collect2`
5204 if test -f "$collect2name" && \
5205 strings "$collect2name" | grep resolve_lib_name >/dev/null
5206 then
5207 # We have reworked collect2
5208 hardcode_direct=yes
5209 else
5210 # We have old collect2
5211 hardcode_direct=unsupported
5212 # It fails to find uninstalled libraries when the uninstalled
5213 # path is not listed in the libpath. Setting hardcode_minus_L
5214 # to unsupported forces relinking
5215 hardcode_minus_L=yes
5216 hardcode_libdir_flag_spec='-L$libdir'
5217 hardcode_libdir_separator=
5218 fi
5219 esac
5220
5221 shared_flag='-shared'
5222 else
5223 # not using gcc
5224 if test "$host_cpu" = ia64; then
5225 shared_flag='${wl}-G'
5226 else
5227 if test "$aix_use_runtimelinking" = yes; then
5228 shared_flag='${wl}-G'
5229 else
5230 shared_flag='${wl}-bM:SRE'
5231 fi
5232 fi
5233 fi
5234
5235 # It seems that -bexpall can do strange things, so it is better to
5236 # generate a list of symbols to export.
5237 always_export_symbols=yes
5238 if test "$aix_use_runtimelinking" = yes; then
5239 # Warning - without using the other runtime loading flags (-brtl),
5240 # -berok will link without error, but may produce a broken library.
5241 allow_undefined_flag='-berok'
5242 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5243 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5244 else
5245 if test "$host_cpu" = ia64; then
5246 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5247 allow_undefined_flag="-z nodefs"
5248 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5249 else
5250 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5251 # Warning - without using the other run time loading flags,
5252 # -berok will link without error, but may produce a broken library.
5253 allow_undefined_flag='${wl}-berok'
5254 # This is a bit strange, but is similar to how AIX traditionally builds
5255 # it's shared libraries.
5256 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5257 fi
5258 fi
5259 ;;
5260
5261 amigaos*)
5262 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5263 hardcode_libdir_flag_spec='-L$libdir'
5264 hardcode_minus_L=yes
5265 # see comment about different semantics on the GNU ld section
5266 ld_shlibs=no
5267 ;;
5268
5269 cygwin* | mingw* | pw32*)
5270 # When not using gcc, we currently assume that we are using
5271 # Microsoft Visual C++.
5272 # hardcode_libdir_flag_spec is actually meaningless, as there is
5273 # no search path for DLLs.
5274 hardcode_libdir_flag_spec=' '
5275 allow_undefined_flag=unsupported
5276 # Tell ltmain to make .lib files, not .a files.
5277 libext=lib
5278 # FIXME: Setting linknames here is a bad hack.
5279 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5280 # The linker will automatically build a .lib file if we build a DLL.
5281 old_archive_from_new_cmds='true'
5282 # FIXME: Should let the user specify the lib program.
5283 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5284 fix_srcfile_path='`cygpath -w "$srcfile"`'
5285 ;;
5286
5287 darwin* | rhapsody*)
5288 case "$host_os" in
5289 rhapsody* | darwin1.[012])
5290 allow_undefined_flag='-undefined suppress'
5291 ;;
5292 *) # Darwin 1.3 on
5293 allow_undefined_flag='-flat_namespace -undefined suppress'
5294 ;;
5295 esac
5296 # FIXME: Relying on posixy $() will cause problems for
5297 # cross-compilation, but unfortunately the echo tests do not
5298 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5299 # `"' quotes if we put them in here... so don't!
5300 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5301 # We need to add '_' to the symbols in $export_symbols first
5302 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5303 hardcode_direct=yes
5304 hardcode_shlibpath_var=no
5305 whole_archive_flag_spec='-all_load $convenience'
5306 ;;
5307
5308 freebsd1*)
5309 ld_shlibs=no
5310 ;;
5311
5312 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5313 # support. Future versions do this automatically, but an explicit c++rt0.o
5314 # does not break anything, and helps significantly (at the cost of a little
5315 # extra space).
5316 freebsd2.2*)
5317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5318 hardcode_libdir_flag_spec='-R$libdir'
5319 hardcode_direct=yes
5320 hardcode_shlibpath_var=no
5321 ;;
5322
5323 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5324 freebsd2*)
5325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5326 hardcode_direct=yes
5327 hardcode_minus_L=yes
5328 hardcode_shlibpath_var=no
5329 ;;
5330
5331 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5332 freebsd*)
5333 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5334 hardcode_libdir_flag_spec='-R$libdir'
5335 hardcode_direct=yes
5336 hardcode_shlibpath_var=no
5337 ;;
5338
5339 hpux9* | hpux10* | hpux11*)
5340 case $host_os in
5341 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5342 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5343 esac
5344 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5345 hardcode_libdir_separator=:
5346 hardcode_direct=yes
5347 hardcode_minus_L=yes # Not in the search PATH, but as the default
5348 # location of the library.
5349 export_dynamic_flag_spec='${wl}-E'
5350 ;;
5351
5352 irix5* | irix6* | nonstopux*)
5353 if test "$GCC" = yes; then
5354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5356 else
5357 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5358 hardcode_libdir_flag_spec='-rpath $libdir'
5359 fi
5360 hardcode_libdir_separator=:
5361 link_all_deplibs=yes
5362 ;;
5363
5364 netbsd*)
5365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5366 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5367 else
5368 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5369 fi
5370 hardcode_libdir_flag_spec='-R$libdir'
5371 hardcode_direct=yes
5372 hardcode_shlibpath_var=no
5373 ;;
5374
5375 newsos6)
5376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5377 hardcode_direct=yes
5378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5379 hardcode_libdir_separator=:
5380 hardcode_shlibpath_var=no
5381 ;;
5382
5383 openbsd*)
5384 hardcode_direct=yes
5385 hardcode_shlibpath_var=no
5386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5387 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5388 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5389 export_dynamic_flag_spec='${wl}-E'
5390 else
5391 case "$host_os" in
5392 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5394 hardcode_libdir_flag_spec='-R$libdir'
5395 ;;
5396 *)
5397 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5398 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5399 ;;
5400 esac
5401 fi
5402 ;;
5403
5404 os2*)
5405 hardcode_libdir_flag_spec='-L$libdir'
5406 hardcode_minus_L=yes
5407 allow_undefined_flag=unsupported
5408 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5409 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5410 ;;
5411
5412 osf3*)
5413 if test "$GCC" = yes; then
5414 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5415 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5416 else
5417 allow_undefined_flag=' -expect_unresolved \*'
5418 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5419 fi
5420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5421 hardcode_libdir_separator=:
5422 ;;
5423
5424 osf4* | osf5*) # as osf3* with the addition of -msym flag
5425 if test "$GCC" = yes; then
5426 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5427 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5429 else
5430 allow_undefined_flag=' -expect_unresolved \*'
5431 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5432 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5433 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5434
5435 #Both c and cxx compiler support -rpath directly
5436 hardcode_libdir_flag_spec='-rpath $libdir'
5437 fi
5438 hardcode_libdir_separator=:
5439 ;;
5440
5441 sco3.2v5*)
5442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5443 hardcode_shlibpath_var=no
5444 runpath_var=LD_RUN_PATH
5445 hardcode_runpath_var=yes
5446 export_dynamic_flag_spec='${wl}-Bexport'
5447 ;;
5448
5449 solaris*)
5450 # gcc --version < 3.0 without binutils cannot create self contained
5451 # shared libraries reliably, requiring libgcc.a to resolve some of
5452 # the object symbols generated in some cases. Libraries that use
5453 # assert need libgcc.a to resolve __eprintf, for example. Linking
5454 # a copy of libgcc.a into every shared library to guarantee resolving
5455 # such symbols causes other problems: According to Tim Van Holder
5456 # <[email protected]>, C++ libraries end up with a separate
5457 # (to the application) exception stack for one thing.
5458 no_undefined_flag=' -z defs'
5459 if test "$GCC" = yes; then
5460 case `$CC --version 2>/dev/null` in
5461 [12].*)
5462 cat <<EOF 1>&2
5463
5464 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5465 *** create self contained shared libraries on Solaris systems, without
5466 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5467 *** -no-undefined support, which will at least allow you to build shared
5468 *** libraries. However, you may find that when you link such libraries
5469 *** into an application without using GCC, you have to manually add
5470 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5471 *** upgrade to a newer version of GCC. Another option is to rebuild your
5472 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5473
5474 EOF
5475 no_undefined_flag=
5476 ;;
5477 esac
5478 fi
5479 # $CC -shared without GNU ld will not create a library from C++
5480 # object files and a static libstdc++, better avoid it by now
5481 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5482 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5483 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5484 hardcode_libdir_flag_spec='-R$libdir'
5485 hardcode_shlibpath_var=no
5486 case $host_os in
5487 solaris2.[0-5] | solaris2.[0-5].*) ;;
5488 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5489 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5490 esac
5491 link_all_deplibs=yes
5492 ;;
5493
5494 sunos4*)
5495 if test "x$host_vendor" = xsequent; then
5496 # Use $CC to link under sequent, because it throws in some extra .o
5497 # files that make .init and .fini sections work.
5498 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5499 else
5500 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5501 fi
5502 hardcode_libdir_flag_spec='-L$libdir'
5503 hardcode_direct=yes
5504 hardcode_minus_L=yes
5505 hardcode_shlibpath_var=no
5506 ;;
5507
5508 sysv4)
5509 case $host_vendor in
5510 sni)
5511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5512 hardcode_direct=yes # is this really true???
5513 ;;
5514 siemens)
5515 ## LD is ld it makes a PLAMLIB
5516 ## CC just makes a GrossModule.
5517 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5518 reload_cmds='$CC -r -o $output$reload_objs'
5519 hardcode_direct=no
5520 ;;
5521 motorola)
5522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5523 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5524 ;;
5525 esac
5526 runpath_var='LD_RUN_PATH'
5527 hardcode_shlibpath_var=no
5528 ;;
5529
5530 sysv4.3*)
5531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5532 hardcode_shlibpath_var=no
5533 export_dynamic_flag_spec='-Bexport'
5534 ;;
5535
5536 sysv5*)
5537 no_undefined_flag=' -z text'
5538 # $CC -shared without GNU ld will not create a library from C++
5539 # object files and a static libstdc++, better avoid it by now
5540 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5541 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5542 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5543 hardcode_libdir_flag_spec=
5544 hardcode_shlibpath_var=no
5545 runpath_var='LD_RUN_PATH'
5546 ;;
5547
5548 uts4*)
5549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5550 hardcode_libdir_flag_spec='-L$libdir'
5551 hardcode_shlibpath_var=no
5552 ;;
5553
5554 dgux*)
5555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5556 hardcode_libdir_flag_spec='-L$libdir'
5557 hardcode_shlibpath_var=no
5558 ;;
5559
5560 sysv4*MP*)
5561 if test -d /usr/nec; then
5562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5563 hardcode_shlibpath_var=no
5564 runpath_var=LD_RUN_PATH
5565 hardcode_runpath_var=yes
5566 ld_shlibs=yes
5567 fi
5568 ;;
5569
5570 sysv4.2uw2*)
5571 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5572 hardcode_direct=yes
5573 hardcode_minus_L=no
5574 hardcode_shlibpath_var=no
5575 hardcode_runpath_var=yes
5576 runpath_var=LD_RUN_PATH
5577 ;;
5578
5579 sysv5uw7* | unixware7*)
5580 no_undefined_flag='${wl}-z ${wl}text'
5581 if test "$GCC" = yes; then
5582 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5583 else
5584 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5585 fi
5586 runpath_var='LD_RUN_PATH'
5587 hardcode_shlibpath_var=no
5588 ;;
5589
5590 *)
5591 ld_shlibs=no
5592 ;;
5593 esac
5594 fi
5595 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5596 echo "${ECHO_T}$ld_shlibs" >&6
5597 test "$ld_shlibs" = no && can_build_shared=no
5598 ##
5599 ## END FIXME
5600
5601 ## FIXME: this should be a separate macro
5602 ##
5603 # Check hardcoding attributes.
5604 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5605 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5606 hardcode_action=
5607 if test -n "$hardcode_libdir_flag_spec" || \
5608 test -n "$runpath_var"; then
5609
5610 # We can hardcode non-existant directories.
5611 if test "$hardcode_direct" != no &&
5612 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5613 # have to relink, otherwise we might link with an installed library
5614 # when we should be linking with a yet-to-be-installed one
5615 ## test "$hardcode_shlibpath_var" != no &&
5616 test "$hardcode_minus_L" != no; then
5617 # Linking always hardcodes the temporary library directory.
5618 hardcode_action=relink
5619 else
5620 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5621 hardcode_action=immediate
5622 fi
5623 else
5624 # We cannot hardcode anything, or else we can only hardcode existing
5625 # directories.
5626 hardcode_action=unsupported
5627 fi
5628 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5629 echo "${ECHO_T}$hardcode_action" >&6
5630 ##
5631 ## END FIXME
5632
5633 ## FIXME: this should be a separate macro
5634 ##
5635 striplib=
5636 old_striplib=
5637 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5638 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5639 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5640 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5641 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5642 echo "$as_me:$LINENO: result: yes" >&5
5643 echo "${ECHO_T}yes" >&6
5644 else
5645 echo "$as_me:$LINENO: result: no" >&5
5646 echo "${ECHO_T}no" >&6
5647 fi
5648 ##
5649 ## END FIXME
5650
5651 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5652 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5653
5654 ## FIXME: this should be a separate macro
5655 ##
5656 # PORTME Fill in your ld.so characteristics
5657 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5658 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5659 library_names_spec=
5660 libname_spec='lib$name'
5661 soname_spec=
5662 postinstall_cmds=
5663 postuninstall_cmds=
5664 finish_cmds=
5665 finish_eval=
5666 shlibpath_var=
5667 shlibpath_overrides_runpath=unknown
5668 version_type=none
5669 dynamic_linker="$host_os ld.so"
5670 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5671 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5672
5673 case $host_os in
5674 aix3*)
5675 version_type=linux
5676 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5677 shlibpath_var=LIBPATH
5678
5679 # AIX has no versioning support, so we append a major version to the name.
5680 soname_spec='${libname}${release}.so$major'
5681 ;;
5682
5683 aix4* | aix5*)
5684 version_type=linux
5685 need_lib_prefix=no
5686 need_version=no
5687 hardcode_into_libs=yes
5688 if test "$host_cpu" = ia64; then
5689 # AIX 5 supports IA64
5690 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5691 shlibpath_var=LD_LIBRARY_PATH
5692 else
5693 # With GCC up to 2.95.x, collect2 would create an import file
5694 # for dependence libraries. The import file would start with
5695 # the line `#! .'. This would cause the generated library to
5696 # depend on `.', always an invalid library. This was fixed in
5697 # development snapshots of GCC prior to 3.0.
5698 case $host_os in
5699 aix4 | aix4.[01] | aix4.[01].*)
5700 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5701 echo ' yes '
5702 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5703 :
5704 else
5705 can_build_shared=no
5706 fi
5707 ;;
5708 esac
5709 # AIX (on Power*) has no versioning support, so currently we can
5710 # not hardcode correct soname into executable. Probably we can
5711 # add versioning support to collect2, so additional links can
5712 # be useful in future.
5713 if test "$aix_use_runtimelinking" = yes; then
5714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5715 # instead of lib<name>.a to let people know that these are not
5716 # typical AIX shared libraries.
5717 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5718 else
5719 # We preserve .a as extension for shared libraries through AIX4.2
5720 # and later when we are not doing run time linking.
5721 library_names_spec='${libname}${release}.a $libname.a'
5722 soname_spec='${libname}${release}.so$major'
5723 fi
5724 shlibpath_var=LIBPATH
5725 fi
5726 hardcode_into_libs=yes
5727 ;;
5728
5729 amigaos*)
5730 library_names_spec='$libname.ixlibrary $libname.a'
5731 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5732 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5733 ;;
5734
5735 beos*)
5736 library_names_spec='${libname}.so'
5737 dynamic_linker="$host_os ld.so"
5738 shlibpath_var=LIBRARY_PATH
5739 ;;
5740
5741 bsdi4*)
5742 version_type=linux
5743 need_version=no
5744 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5745 soname_spec='${libname}${release}.so$major'
5746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5747 shlibpath_var=LD_LIBRARY_PATH
5748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5750 export_dynamic_flag_spec=-rdynamic
5751 # the default ld.so.conf also contains /usr/contrib/lib and
5752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5753 # libtool to hard-code these into programs
5754 ;;
5755
5756 cygwin* | mingw* | pw32*)
5757 version_type=windows
5758 need_version=no
5759 need_lib_prefix=no
5760 case $GCC,$host_os in
5761 yes,cygwin*)
5762 library_names_spec='$libname.dll.a'
5763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5764 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5765 dldir=$destdir/`dirname \$dlpath`~
5766 test -d \$dldir || mkdir -p \$dldir~
5767 $install_prog .libs/$dlname \$dldir/$dlname'
5768 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5769 dlpath=$dir/\$dldll~
5770 $rm \$dlpath'
5771 ;;
5772 yes,mingw*)
5773 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5774 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5775 ;;
5776 yes,pw32*)
5777 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5778 ;;
5779 *)
5780 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5781 ;;
5782 esac
5783 dynamic_linker='Win32 ld.exe'
5784 # FIXME: first we should search . and the directory the executable is in
5785 shlibpath_var=PATH
5786 ;;
5787
5788 darwin* | rhapsody*)
5789 dynamic_linker="$host_os dyld"
5790 version_type=darwin
5791 need_lib_prefix=no
5792 need_version=no
5793 # FIXME: Relying on posixy $() will cause problems for
5794 # cross-compilation, but unfortunately the echo tests do not
5795 # yet detect zsh echo's removal of \ escapes.
5796 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5797 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5798 shlibpath_overrides_runpath=yes
5799 shlibpath_var=DYLD_LIBRARY_PATH
5800 ;;
5801
5802 freebsd1*)
5803 dynamic_linker=no
5804 ;;
5805
5806 freebsd*)
5807 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5808 version_type=freebsd-$objformat
5809 case $version_type in
5810 freebsd-elf*)
5811 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5812 need_version=no
5813 need_lib_prefix=no
5814 ;;
5815 freebsd-*)
5816 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5817 need_version=yes
5818 ;;
5819 esac
5820 shlibpath_var=LD_LIBRARY_PATH
5821 case $host_os in
5822 freebsd2*)
5823 shlibpath_overrides_runpath=yes
5824 ;;
5825 *)
5826 shlibpath_overrides_runpath=no
5827 hardcode_into_libs=yes
5828 ;;
5829 esac
5830 ;;
5831
5832 gnu*)
5833 version_type=linux
5834 need_lib_prefix=no
5835 need_version=no
5836 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5837 soname_spec='${libname}${release}.so$major'
5838 shlibpath_var=LD_LIBRARY_PATH
5839 hardcode_into_libs=yes
5840 ;;
5841
5842 hpux9* | hpux10* | hpux11*)
5843 # Give a soname corresponding to the major version so that dld.sl refuses to
5844 # link against other versions.
5845 dynamic_linker="$host_os dld.sl"
5846 version_type=sunos
5847 need_lib_prefix=no
5848 need_version=no
5849 shlibpath_var=SHLIB_PATH
5850 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5851 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5852 soname_spec='${libname}${release}.sl$major'
5853 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5854 postinstall_cmds='chmod 555 $lib'
5855 ;;
5856
5857 irix5* | irix6* | nonstopux*)
5858 case $host_os in
5859 nonstopux*) version_type=nonstopux ;;
5860 *) version_type=irix ;;
5861 esac
5862 need_lib_prefix=no
5863 need_version=no
5864 soname_spec='${libname}${release}.so$major'
5865 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5866 case $host_os in
5867 irix5* | nonstopux*)
5868 libsuff= shlibsuff=
5869 ;;
5870 *)
5871 case $LD in # libtool.m4 will add one of these switches to LD
5872 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5873 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5874 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5875 *) libsuff= shlibsuff= libmagic=never-match;;
5876 esac
5877 ;;
5878 esac
5879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5880 shlibpath_overrides_runpath=no
5881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5883 ;;
5884
5885 # No shared lib support for Linux oldld, aout, or coff.
5886 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5887 dynamic_linker=no
5888 ;;
5889
5890 # This must be Linux ELF.
5891 linux-gnu*)
5892 version_type=linux
5893 need_lib_prefix=no
5894 need_version=no
5895 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5896 soname_spec='${libname}${release}.so$major'
5897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5898 shlibpath_var=LD_LIBRARY_PATH
5899 shlibpath_overrides_runpath=no
5900 # This implies no fast_install, which is unacceptable.
5901 # Some rework will be needed to allow for fast_install
5902 # before this can be enabled.
5903 hardcode_into_libs=yes
5904
5905 # We used to test for /lib/ld.so.1 and disable shared libraries on
5906 # powerpc, because MkLinux only supported shared libraries with the
5907 # GNU dynamic linker. Since this was broken with cross compilers,
5908 # most powerpc-linux boxes support dynamic linking these days and
5909 # people can always --disable-shared, the test was removed, and we
5910 # assume the GNU/Linux dynamic linker is in use.
5911 dynamic_linker='GNU/Linux ld.so'
5912 ;;
5913
5914 netbsd*)
5915 version_type=sunos
5916 need_lib_prefix=no
5917 need_version=no
5918 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5919 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5921 dynamic_linker='NetBSD (a.out) ld.so'
5922 else
5923 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5924 soname_spec='${libname}${release}.so$major'
5925 dynamic_linker='NetBSD ld.elf_so'
5926 fi
5927 shlibpath_var=LD_LIBRARY_PATH
5928 shlibpath_overrides_runpath=yes
5929 hardcode_into_libs=yes
5930 ;;
5931
5932 newsos6)
5933 version_type=linux
5934 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5935 shlibpath_var=LD_LIBRARY_PATH
5936 shlibpath_overrides_runpath=yes
5937 ;;
5938
5939 openbsd*)
5940 version_type=sunos
5941 need_lib_prefix=no
5942 need_version=no
5943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5944 case "$host_os" in
5945 openbsd2.[89] | openbsd2.[89].*)
5946 shlibpath_overrides_runpath=no
5947 ;;
5948 *)
5949 shlibpath_overrides_runpath=yes
5950 ;;
5951 esac
5952 else
5953 shlibpath_overrides_runpath=yes
5954 fi
5955 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5957 shlibpath_var=LD_LIBRARY_PATH
5958 ;;
5959
5960 os2*)
5961 libname_spec='$name'
5962 need_lib_prefix=no
5963 library_names_spec='$libname.dll $libname.a'
5964 dynamic_linker='OS/2 ld.exe'
5965 shlibpath_var=LIBPATH
5966 ;;
5967
5968 osf3* | osf4* | osf5*)
5969 version_type=osf
5970 need_version=no
5971 soname_spec='${libname}${release}.so$major'
5972 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5973 shlibpath_var=LD_LIBRARY_PATH
5974 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5975 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5976 hardcode_into_libs=yes
5977 ;;
5978
5979 sco3.2v5*)
5980 version_type=osf
5981 soname_spec='${libname}${release}.so$major'
5982 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5983 shlibpath_var=LD_LIBRARY_PATH
5984 ;;
5985
5986 solaris*)
5987 version_type=linux
5988 need_lib_prefix=no
5989 need_version=no
5990 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5991 soname_spec='${libname}${release}.so$major'
5992 shlibpath_var=LD_LIBRARY_PATH
5993 shlibpath_overrides_runpath=yes
5994 hardcode_into_libs=yes
5995 # ldd complains unless libraries are executable
5996 postinstall_cmds='chmod +x $lib'
5997 ;;
5998
5999 sunos4*)
6000 version_type=sunos
6001 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6002 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6003 shlibpath_var=LD_LIBRARY_PATH
6004 shlibpath_overrides_runpath=yes
6005 if test "$with_gnu_ld" = yes; then
6006 need_lib_prefix=no
6007 fi
6008 need_version=yes
6009 ;;
6010
6011 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6012 version_type=linux
6013 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6014 soname_spec='${libname}${release}.so$major'
6015 shlibpath_var=LD_LIBRARY_PATH
6016 case $host_vendor in
6017 sni)
6018 shlibpath_overrides_runpath=no
6019 need_lib_prefix=no
6020 export_dynamic_flag_spec='${wl}-Blargedynsym'
6021 runpath_var=LD_RUN_PATH
6022 ;;
6023 siemens)
6024 need_lib_prefix=no
6025 ;;
6026 motorola)
6027 need_lib_prefix=no
6028 need_version=no
6029 shlibpath_overrides_runpath=no
6030 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6031 ;;
6032 esac
6033 ;;
6034
6035 uts4*)
6036 version_type=linux
6037 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6038 soname_spec='${libname}${release}.so$major'
6039 shlibpath_var=LD_LIBRARY_PATH
6040 ;;
6041
6042 dgux*)
6043 version_type=linux
6044 need_lib_prefix=no
6045 need_version=no
6046 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6047 soname_spec='${libname}${release}.so$major'
6048 shlibpath_var=LD_LIBRARY_PATH
6049 ;;
6050
6051 sysv4*MP*)
6052 if test -d /usr/nec ;then
6053 version_type=linux
6054 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6055 soname_spec='$libname.so.$major'
6056 shlibpath_var=LD_LIBRARY_PATH
6057 fi
6058 ;;
6059
6060 *)
6061 dynamic_linker=no
6062 ;;
6063 esac
6064 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6065 echo "${ECHO_T}$dynamic_linker" >&6
6066 test "$dynamic_linker" = no && can_build_shared=no
6067 ##
6068 ## END FIXME
6069
6070 ## FIXME: this should be a separate macro
6071 ##
6072 # Report the final consequences.
6073 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6074 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6075 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6076 echo "${ECHO_T}$can_build_shared" >&6
6077 ##
6078 ## END FIXME
6079
6080 ## FIXME: this should be a separate macro
6081 ##
6082 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6083 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6084 test "$can_build_shared" = "no" && enable_shared=no
6085
6086 # On AIX, shared libraries and static libraries use the same namespace, and
6087 # are all built from PIC.
6088 case "$host_os" in
6089 aix3*)
6090 test "$enable_shared" = yes && enable_static=no
6091 if test -n "$RANLIB"; then
6092 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6093 postinstall_cmds='$RANLIB $lib'
6094 fi
6095 ;;
6096
6097 aix4*)
6098 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6099 test "$enable_shared" = yes && enable_static=no
6100 fi
6101 ;;
6102 esac
6103 echo "$as_me:$LINENO: result: $enable_shared" >&5
6104 echo "${ECHO_T}$enable_shared" >&6
6105 ##
6106 ## END FIXME
6107
6108 ## FIXME: this should be a separate macro
6109 ##
6110 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6111 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6112 # Make sure either enable_shared or enable_static is yes.
6113 test "$enable_shared" = yes || enable_static=yes
6114 echo "$as_me:$LINENO: result: $enable_static" >&5
6115 echo "${ECHO_T}$enable_static" >&6
6116 ##
6117 ## END FIXME
6118
6119 if test "$hardcode_action" = relink; then
6120 # Fast installation is not supported
6121 enable_fast_install=no
6122 elif test "$shlibpath_overrides_runpath" = yes ||
6123 test "$enable_shared" = no; then
6124 # Fast installation is not necessary
6125 enable_fast_install=needless
6126 fi
6127
6128 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6129 if test "$GCC" = yes; then
6130 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6131 fi
6132
6133 if test "x$enable_dlopen" != xyes; then
6134 enable_dlopen=unknown
6135 enable_dlopen_self=unknown
6136 enable_dlopen_self_static=unknown
6137 else
6138 lt_cv_dlopen=no
6139 lt_cv_dlopen_libs=
6140
6141 case $host_os in
6142 beos*)
6143 lt_cv_dlopen="load_add_on"
6144 lt_cv_dlopen_libs=
6145 lt_cv_dlopen_self=yes
6146 ;;
6147
6148 cygwin* | mingw* | pw32*)
6149 lt_cv_dlopen="LoadLibrary"
6150 lt_cv_dlopen_libs=
6151 ;;
6152
6153 *)
6154 echo "$as_me:$LINENO: checking for shl_load" >&5
6155 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6156 if test "${ac_cv_func_shl_load+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 cat >conftest.$ac_ext <<_ACEOF
6160 #line $LINENO "configure"
6161 #include "confdefs.h"
6162 /* System header to define __stub macros and hopefully few prototypes,
6163 which can conflict with char shl_load (); below. */
6164 #include <assert.h>
6165 /* Override any gcc2 internal prototype to avoid an error. */
6166 #ifdef __cplusplus
6167 extern "C"
6168 #endif
6169 /* We use char because int might match the return type of a gcc2
6170 builtin and then its argument prototype would still apply. */
6171 char shl_load ();
6172 char (*f) ();
6173
6174 #ifdef F77_DUMMY_MAIN
6175 # ifdef __cplusplus
6176 extern "C"
6177 # endif
6178 int F77_DUMMY_MAIN() { return 1; }
6179 #endif
6180 int
6181 main ()
6182 {
6183 /* The GNU C library defines this for functions which it implements
6184 to always fail with ENOSYS. Some functions are actually named
6185 something starting with __ and the normal name is an alias. */
6186 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6187 choke me
6188 #else
6189 f = shl_load;
6190 #endif
6191
6192 ;
6193 return 0;
6194 }
6195 _ACEOF
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198 (eval $ac_link) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try='test -s conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_func_shl_load=yes
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 ac_cv_func_shl_load=no
6213 fi
6214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6215 fi
6216 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6217 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6218 if test $ac_cv_func_shl_load = yes; then
6219 lt_cv_dlopen="shl_load"
6220 else
6221 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6222 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6223 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226 ac_check_lib_save_LIBS=$LIBS
6227 LIBS="-ldld $LIBS"
6228 cat >conftest.$ac_ext <<_ACEOF
6229 #line $LINENO "configure"
6230 #include "confdefs.h"
6231
6232 /* Override any gcc2 internal prototype to avoid an error. */
6233 #ifdef __cplusplus
6234 extern "C"
6235 #endif
6236 /* We use char because int might match the return type of a gcc2
6237 builtin and then its argument prototype would still apply. */
6238 char shl_load ();
6239 #ifdef F77_DUMMY_MAIN
6240 # ifdef __cplusplus
6241 extern "C"
6242 # endif
6243 int F77_DUMMY_MAIN() { return 1; }
6244 #endif
6245 int
6246 main ()
6247 {
6248 shl_load ();
6249 ;
6250 return 0;
6251 }
6252 _ACEOF
6253 rm -f conftest.$ac_objext conftest$ac_exeext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255 (eval $ac_link) 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -s conftest$ac_exeext'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6265 ac_cv_lib_dld_shl_load=yes
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 cat conftest.$ac_ext >&5
6269 ac_cv_lib_dld_shl_load=no
6270 fi
6271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6272 LIBS=$ac_check_lib_save_LIBS
6273 fi
6274 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6275 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6276 if test $ac_cv_lib_dld_shl_load = yes; then
6277 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6278 else
6279 echo "$as_me:$LINENO: checking for dlopen" >&5
6280 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6281 if test "${ac_cv_func_dlopen+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284 cat >conftest.$ac_ext <<_ACEOF
6285 #line $LINENO "configure"
6286 #include "confdefs.h"
6287 /* System header to define __stub macros and hopefully few prototypes,
6288 which can conflict with char dlopen (); below. */
6289 #include <assert.h>
6290 /* Override any gcc2 internal prototype to avoid an error. */
6291 #ifdef __cplusplus
6292 extern "C"
6293 #endif
6294 /* We use char because int might match the return type of a gcc2
6295 builtin and then its argument prototype would still apply. */
6296 char dlopen ();
6297 char (*f) ();
6298
6299 #ifdef F77_DUMMY_MAIN
6300 # ifdef __cplusplus
6301 extern "C"
6302 # endif
6303 int F77_DUMMY_MAIN() { return 1; }
6304 #endif
6305 int
6306 main ()
6307 {
6308 /* The GNU C library defines this for functions which it implements
6309 to always fail with ENOSYS. Some functions are actually named
6310 something starting with __ and the normal name is an alias. */
6311 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6312 choke me
6313 #else
6314 f = dlopen;
6315 #endif
6316
6317 ;
6318 return 0;
6319 }
6320 _ACEOF
6321 rm -f conftest.$ac_objext conftest$ac_exeext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6323 (eval $ac_link) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -s conftest$ac_exeext'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 (eval $ac_try) 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
6333 ac_cv_func_dlopen=yes
6334 else
6335 echo "$as_me: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6337 ac_cv_func_dlopen=no
6338 fi
6339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6340 fi
6341 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6342 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6343 if test $ac_cv_func_dlopen = yes; then
6344 lt_cv_dlopen="dlopen"
6345 else
6346 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6347 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6348 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351 ac_check_lib_save_LIBS=$LIBS
6352 LIBS="-ldl $LIBS"
6353 cat >conftest.$ac_ext <<_ACEOF
6354 #line $LINENO "configure"
6355 #include "confdefs.h"
6356
6357 /* Override any gcc2 internal prototype to avoid an error. */
6358 #ifdef __cplusplus
6359 extern "C"
6360 #endif
6361 /* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6363 char dlopen ();
6364 #ifdef F77_DUMMY_MAIN
6365 # ifdef __cplusplus
6366 extern "C"
6367 # endif
6368 int F77_DUMMY_MAIN() { return 1; }
6369 #endif
6370 int
6371 main ()
6372 {
6373 dlopen ();
6374 ;
6375 return 0;
6376 }
6377 _ACEOF
6378 rm -f conftest.$ac_objext conftest$ac_exeext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6380 (eval $ac_link) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try='test -s conftest$ac_exeext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_cv_lib_dl_dlopen=yes
6391 else
6392 echo "$as_me: failed program was:" >&5
6393 cat conftest.$ac_ext >&5
6394 ac_cv_lib_dl_dlopen=no
6395 fi
6396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6397 LIBS=$ac_check_lib_save_LIBS
6398 fi
6399 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6400 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6401 if test $ac_cv_lib_dl_dlopen = yes; then
6402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6403 else
6404 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6405 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6406 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409 ac_check_lib_save_LIBS=$LIBS
6410 LIBS="-lsvld $LIBS"
6411 cat >conftest.$ac_ext <<_ACEOF
6412 #line $LINENO "configure"
6413 #include "confdefs.h"
6414
6415 /* Override any gcc2 internal prototype to avoid an error. */
6416 #ifdef __cplusplus
6417 extern "C"
6418 #endif
6419 /* We use char because int might match the return type of a gcc2
6420 builtin and then its argument prototype would still apply. */
6421 char dlopen ();
6422 #ifdef F77_DUMMY_MAIN
6423 # ifdef __cplusplus
6424 extern "C"
6425 # endif
6426 int F77_DUMMY_MAIN() { return 1; }
6427 #endif
6428 int
6429 main ()
6430 {
6431 dlopen ();
6432 ;
6433 return 0;
6434 }
6435 _ACEOF
6436 rm -f conftest.$ac_objext conftest$ac_exeext
6437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6438 (eval $ac_link) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try='test -s conftest$ac_exeext'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6448 ac_cv_lib_svld_dlopen=yes
6449 else
6450 echo "$as_me: failed program was:" >&5
6451 cat conftest.$ac_ext >&5
6452 ac_cv_lib_svld_dlopen=no
6453 fi
6454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6455 LIBS=$ac_check_lib_save_LIBS
6456 fi
6457 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6458 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6459 if test $ac_cv_lib_svld_dlopen = yes; then
6460 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6461 else
6462 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6463 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6464 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 ac_check_lib_save_LIBS=$LIBS
6468 LIBS="-ldld $LIBS"
6469 cat >conftest.$ac_ext <<_ACEOF
6470 #line $LINENO "configure"
6471 #include "confdefs.h"
6472
6473 /* Override any gcc2 internal prototype to avoid an error. */
6474 #ifdef __cplusplus
6475 extern "C"
6476 #endif
6477 /* We use char because int might match the return type of a gcc2
6478 builtin and then its argument prototype would still apply. */
6479 char dld_link ();
6480 #ifdef F77_DUMMY_MAIN
6481 # ifdef __cplusplus
6482 extern "C"
6483 # endif
6484 int F77_DUMMY_MAIN() { return 1; }
6485 #endif
6486 int
6487 main ()
6488 {
6489 dld_link ();
6490 ;
6491 return 0;
6492 }
6493 _ACEOF
6494 rm -f conftest.$ac_objext conftest$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496 (eval $ac_link) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } &&
6500 { ac_try='test -s conftest$ac_exeext'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6506 ac_cv_lib_dld_dld_link=yes
6507 else
6508 echo "$as_me: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6510 ac_cv_lib_dld_dld_link=no
6511 fi
6512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6513 LIBS=$ac_check_lib_save_LIBS
6514 fi
6515 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6516 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6517 if test $ac_cv_lib_dld_dld_link = yes; then
6518 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6519 fi
6520
6521
6522 fi
6523
6524
6525 fi
6526
6527
6528 fi
6529
6530
6531 fi
6532
6533
6534 fi
6535
6536 ;;
6537 esac
6538
6539 if test "x$lt_cv_dlopen" != xno; then
6540 enable_dlopen=yes
6541 else
6542 enable_dlopen=no
6543 fi
6544
6545 case $lt_cv_dlopen in
6546 dlopen)
6547 save_CPPFLAGS="$CPPFLAGS"
6548 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6549
6550 save_LDFLAGS="$LDFLAGS"
6551 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6552
6553 save_LIBS="$LIBS"
6554 LIBS="$lt_cv_dlopen_libs $LIBS"
6555
6556 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6557 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6558 if test "${lt_cv_dlopen_self+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561 if test "$cross_compiling" = yes; then :
6562 lt_cv_dlopen_self=cross
6563 else
6564 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6565 lt_status=$lt_dlunknown
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6567 "configure"
6568 #include "confdefs.h"
6569
6570 #if HAVE_DLFCN_H
6571 #include <dlfcn.h>
6572 #endif
6573
6574 #include <stdio.h>
6575
6576 #ifdef RTLD_GLOBAL
6577 # define LT_DLGLOBAL RTLD_GLOBAL
6578 #else
6579 # ifdef DL_GLOBAL
6580 # define LT_DLGLOBAL DL_GLOBAL
6581 # else
6582 # define LT_DLGLOBAL 0
6583 # endif
6584 #endif
6585
6586 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6587 find out it does not work in some platform. */
6588 #ifndef LT_DLLAZY_OR_NOW
6589 # ifdef RTLD_LAZY
6590 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6591 # else
6592 # ifdef DL_LAZY
6593 # define LT_DLLAZY_OR_NOW DL_LAZY
6594 # else
6595 # ifdef RTLD_NOW
6596 # define LT_DLLAZY_OR_NOW RTLD_NOW
6597 # else
6598 # ifdef DL_NOW
6599 # define LT_DLLAZY_OR_NOW DL_NOW
6600 # else
6601 # define LT_DLLAZY_OR_NOW 0
6602 # endif
6603 # endif
6604 # endif
6605 # endif
6606 #endif
6607
6608 #ifdef __cplusplus
6609 extern "C" void exit (int);
6610 #endif
6611
6612 void fnord() { int i=42;}
6613 int main ()
6614 {
6615 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6616 int status = $lt_dlunknown;
6617
6618 if (self)
6619 {
6620 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6621 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6622 /* dlclose (self); */
6623 }
6624
6625 exit (status);
6626 }
6627 EOF
6628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6629 (eval $ac_link) 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6633 (./conftest; exit; ) 2>/dev/null
6634 lt_status=$?
6635 case x$lt_status in
6636 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6637 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6638 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6639 esac
6640 else :
6641 # compilation failed
6642 lt_cv_dlopen_self=no
6643 fi
6644 fi
6645 rm -fr conftest*
6646
6647
6648 fi
6649 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6650 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6651
6652 if test "x$lt_cv_dlopen_self" = xyes; then
6653 LDFLAGS="$LDFLAGS $link_static_flag"
6654 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6655 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6656 if test "${lt_cv_dlopen_self_static+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659 if test "$cross_compiling" = yes; then :
6660 lt_cv_dlopen_self_static=cross
6661 else
6662 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6663 lt_status=$lt_dlunknown
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6665 "configure"
6666 #include "confdefs.h"
6667
6668 #if HAVE_DLFCN_H
6669 #include <dlfcn.h>
6670 #endif
6671
6672 #include <stdio.h>
6673
6674 #ifdef RTLD_GLOBAL
6675 # define LT_DLGLOBAL RTLD_GLOBAL
6676 #else
6677 # ifdef DL_GLOBAL
6678 # define LT_DLGLOBAL DL_GLOBAL
6679 # else
6680 # define LT_DLGLOBAL 0
6681 # endif
6682 #endif
6683
6684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6685 find out it does not work in some platform. */
6686 #ifndef LT_DLLAZY_OR_NOW
6687 # ifdef RTLD_LAZY
6688 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6689 # else
6690 # ifdef DL_LAZY
6691 # define LT_DLLAZY_OR_NOW DL_LAZY
6692 # else
6693 # ifdef RTLD_NOW
6694 # define LT_DLLAZY_OR_NOW RTLD_NOW
6695 # else
6696 # ifdef DL_NOW
6697 # define LT_DLLAZY_OR_NOW DL_NOW
6698 # else
6699 # define LT_DLLAZY_OR_NOW 0
6700 # endif
6701 # endif
6702 # endif
6703 # endif
6704 #endif
6705
6706 #ifdef __cplusplus
6707 extern "C" void exit (int);
6708 #endif
6709
6710 void fnord() { int i=42;}
6711 int main ()
6712 {
6713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6714 int status = $lt_dlunknown;
6715
6716 if (self)
6717 {
6718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6719 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6720 /* dlclose (self); */
6721 }
6722
6723 exit (status);
6724 }
6725 EOF
6726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 (eval $ac_link) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6731 (./conftest; exit; ) 2>/dev/null
6732 lt_status=$?
6733 case x$lt_status in
6734 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6735 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6736 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6737 esac
6738 else :
6739 # compilation failed
6740 lt_cv_dlopen_self_static=no
6741 fi
6742 fi
6743 rm -fr conftest*
6744
6745
6746 fi
6747 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6748 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6749 fi
6750
6751 CPPFLAGS="$save_CPPFLAGS"
6752 LDFLAGS="$save_LDFLAGS"
6753 LIBS="$save_LIBS"
6754 ;;
6755 esac
6756
6757 case $lt_cv_dlopen_self in
6758 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6759 *) enable_dlopen_self=unknown ;;
6760 esac
6761
6762 case $lt_cv_dlopen_self_static in
6763 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6764 *) enable_dlopen_self_static=unknown ;;
6765 esac
6766 fi
6767
6768
6769 ## FIXME: this should be a separate macro
6770 ##
6771 if test "$enable_shared" = yes && test "$GCC" = yes; then
6772 case $archive_cmds in
6773 *'~'*)
6774 # FIXME: we may have to deal with multi-command sequences.
6775 ;;
6776 '$CC '*)
6777 # Test whether the compiler implicitly links with -lc since on some
6778 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6779 # to ld, don't add -lc before -lgcc.
6780 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6781 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6782 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785 $rm conftest*
6786 echo 'static int dummy;' > conftest.$ac_ext
6787
6788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6789 (eval $ac_compile) 2>&5
6790 ac_status=$?
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; then
6793 soname=conftest
6794 lib=conftest
6795 libobjs=conftest.$ac_objext
6796 deplibs=
6797 wl=$lt_cv_prog_cc_wl
6798 compiler_flags=-v
6799 linker_flags=-v
6800 verstring=
6801 output_objdir=.
6802 libname=conftest
6803 save_allow_undefined_flag=$allow_undefined_flag
6804 allow_undefined_flag=
6805 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6806 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }
6810 then
6811 lt_cv_archive_cmds_need_lc=no
6812 else
6813 lt_cv_archive_cmds_need_lc=yes
6814 fi
6815 allow_undefined_flag=$save_allow_undefined_flag
6816 else
6817 cat conftest.err 1>&5
6818 fi
6819 fi
6820
6821 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6822 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6823 ;;
6824 esac
6825 fi
6826 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6827 ##
6828 ## END FIXME
6829
6830 ## FIXME: this should be a separate macro
6831 ##
6832 # The second clause should only fire when bootstrapping the
6833 # libtool distribution, otherwise you forgot to ship ltmain.sh
6834 # with your package, and you will get complaints that there are
6835 # no rules to generate ltmain.sh.
6836 if test -f "$ltmain"; then
6837 :
6838 else
6839 # If there is no Makefile yet, we rely on a make rule to execute
6840 # `config.status --recheck' to rerun these tests and create the
6841 # libtool script then.
6842 test -f Makefile && make "$ltmain"
6843 fi
6844
6845 if test -f "$ltmain"; then
6846 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6847 $rm -f "${ofile}T"
6848
6849 echo creating $ofile
6850
6851 # Now quote all the things that may contain metacharacters while being
6852 # careful not to overquote the AC_SUBSTed values. We take copies of the
6853 # variables and quote the copies for generation of the libtool script.
6854 for var in echo old_CC old_CFLAGS SED \
6855 AR AR_FLAGS CC LD LN_S NM SHELL \
6856 reload_flag reload_cmds wl \
6857 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6858 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6859 library_names_spec soname_spec \
6860 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6861 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6862 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6863 old_striplib striplib file_magic_cmd export_symbols_cmds \
6864 deplibs_check_method allow_undefined_flag no_undefined_flag \
6865 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6866 global_symbol_to_c_name_address \
6867 hardcode_libdir_flag_spec hardcode_libdir_separator \
6868 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6869 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6870
6871 case $var in
6872 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6873 old_postinstall_cmds | old_postuninstall_cmds | \
6874 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6875 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6876 postinstall_cmds | postuninstall_cmds | \
6877 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6878 # Double-quote double-evaled strings.
6879 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6880 ;;
6881 *)
6882 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6883 ;;
6884 esac
6885 done
6886
6887 cat <<__EOF__ > "${ofile}T"
6888 #! $SHELL
6889
6890 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6891 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6892 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6893 #
6894 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6895 # Originally by Gordon Matzigkeit <[email protected]>, 1996
6896 #
6897 # This program is free software; you can redistribute it and/or modify
6898 # it under the terms of the GNU General Public License as published by
6899 # the Free Software Foundation; either version 2 of the License, or
6900 # (at your option) any later version.
6901 #
6902 # This program is distributed in the hope that it will be useful, but
6903 # WITHOUT ANY WARRANTY; without even the implied warranty of
6904 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6905 # General Public License for more details.
6906 #
6907 # You should have received a copy of the GNU General Public License
6908 # along with this program; if not, write to the Free Software
6909 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6910 #
6911 # As a special exception to the GNU General Public License, if you
6912 # distribute this file as part of a program that contains a
6913 # configuration script generated by Autoconf, you may include it under
6914 # the same distribution terms that you use for the rest of that program.
6915
6916 # A sed that does not truncate output.
6917 SED=$lt_SED
6918
6919 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6920 Xsed="${SED} -e s/^X//"
6921
6922 # The HP-UX ksh and POSIX shell print the target directory to stdout
6923 # if CDPATH is set.
6924 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6925
6926 # ### BEGIN LIBTOOL CONFIG
6927
6928 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6929
6930 # Shell to use when invoking shell scripts.
6931 SHELL=$lt_SHELL
6932
6933 # Whether or not to build shared libraries.
6934 build_libtool_libs=$enable_shared
6935
6936 # Whether or not to build static libraries.
6937 build_old_libs=$enable_static
6938
6939 # Whether or not to add -lc for building shared libraries.
6940 build_libtool_need_lc=$need_lc
6941
6942 # Whether or not to optimize for fast installation.
6943 fast_install=$enable_fast_install
6944
6945 # The host system.
6946 host_alias=$host_alias
6947 host=$host
6948
6949 # An echo program that does not interpret backslashes.
6950 echo=$lt_echo
6951
6952 # The archiver.
6953 AR=$lt_AR
6954 AR_FLAGS=$lt_AR_FLAGS
6955
6956 # The default C compiler.
6957 CC=$lt_CC
6958
6959 # Is the compiler the GNU C compiler?
6960 with_gcc=$GCC
6961
6962 # The linker used to build libraries.
6963 LD=$lt_LD
6964
6965 # Whether we need hard or soft links.
6966 LN_S=$lt_LN_S
6967
6968 # A BSD-compatible nm program.
6969 NM=$lt_NM
6970
6971 # A symbol stripping program
6972 STRIP=$STRIP
6973
6974 # Used to examine libraries when file_magic_cmd begins "file"
6975 MAGIC_CMD=$MAGIC_CMD
6976
6977 # Used on cygwin: DLL creation program.
6978 DLLTOOL="$DLLTOOL"
6979
6980 # Used on cygwin: object dumper.
6981 OBJDUMP="$OBJDUMP"
6982
6983 # Used on cygwin: assembler.
6984 AS="$AS"
6985
6986 # The name of the directory that contains temporary libtool files.
6987 objdir=$objdir
6988
6989 # How to create reloadable object files.
6990 reload_flag=$lt_reload_flag
6991 reload_cmds=$lt_reload_cmds
6992
6993 # How to pass a linker flag through the compiler.
6994 wl=$lt_wl
6995
6996 # Object file suffix (normally "o").
6997 objext="$ac_objext"
6998
6999 # Old archive suffix (normally "a").
7000 libext="$libext"
7001
7002 # Executable file suffix (normally "").
7003 exeext="$exeext"
7004
7005 # Additional compiler flags for building library objects.
7006 pic_flag=$lt_pic_flag
7007 pic_mode=$pic_mode
7008
7009 # Does compiler simultaneously support -c and -o options?
7010 compiler_c_o=$lt_compiler_c_o
7011
7012 # Can we write directly to a .lo ?
7013 compiler_o_lo=$lt_compiler_o_lo
7014
7015 # Must we lock files when doing compilation ?
7016 need_locks=$lt_need_locks
7017
7018 # Do we need the lib prefix for modules?
7019 need_lib_prefix=$need_lib_prefix
7020
7021 # Do we need a version for libraries?
7022 need_version=$need_version
7023
7024 # Whether dlopen is supported.
7025 dlopen_support=$enable_dlopen
7026
7027 # Whether dlopen of programs is supported.
7028 dlopen_self=$enable_dlopen_self
7029
7030 # Whether dlopen of statically linked programs is supported.
7031 dlopen_self_static=$enable_dlopen_self_static
7032
7033 # Compiler flag to prevent dynamic linking.
7034 link_static_flag=$lt_link_static_flag
7035
7036 # Compiler flag to turn off builtin functions.
7037 no_builtin_flag=$lt_no_builtin_flag
7038
7039 # Compiler flag to allow reflexive dlopens.
7040 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7041
7042 # Compiler flag to generate shared objects directly from archives.
7043 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7044
7045 # Compiler flag to generate thread-safe objects.
7046 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7047
7048 # Library versioning type.
7049 version_type=$version_type
7050
7051 # Format of library name prefix.
7052 libname_spec=$lt_libname_spec
7053
7054 # List of archive names. First name is the real one, the rest are links.
7055 # The last name is the one that the linker finds with -lNAME.
7056 library_names_spec=$lt_library_names_spec
7057
7058 # The coded name of the library, if different from the real name.
7059 soname_spec=$lt_soname_spec
7060
7061 # Commands used to build and install an old-style archive.
7062 RANLIB=$lt_RANLIB
7063 old_archive_cmds=$lt_old_archive_cmds
7064 old_postinstall_cmds=$lt_old_postinstall_cmds
7065 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7066
7067 # Create an old-style archive from a shared archive.
7068 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7069
7070 # Create a temporary old-style archive to link instead of a shared archive.
7071 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7072
7073 # Commands used to build and install a shared archive.
7074 archive_cmds=$lt_archive_cmds
7075 archive_expsym_cmds=$lt_archive_expsym_cmds
7076 postinstall_cmds=$lt_postinstall_cmds
7077 postuninstall_cmds=$lt_postuninstall_cmds
7078
7079 # Commands to strip libraries.
7080 old_striplib=$lt_old_striplib
7081 striplib=$lt_striplib
7082
7083 # Method to check whether dependent libraries are shared objects.
7084 deplibs_check_method=$lt_deplibs_check_method
7085
7086 # Command to use when deplibs_check_method == file_magic.
7087 file_magic_cmd=$lt_file_magic_cmd
7088
7089 # Flag that allows shared libraries with undefined symbols to be built.
7090 allow_undefined_flag=$lt_allow_undefined_flag
7091
7092 # Flag that forces no undefined symbols.
7093 no_undefined_flag=$lt_no_undefined_flag
7094
7095 # Commands used to finish a libtool library installation in a directory.
7096 finish_cmds=$lt_finish_cmds
7097
7098 # Same as above, but a single script fragment to be evaled but not shown.
7099 finish_eval=$lt_finish_eval
7100
7101 # Take the output of nm and produce a listing of raw symbols and C names.
7102 global_symbol_pipe=$lt_global_symbol_pipe
7103
7104 # Transform the output of nm in a proper C declaration
7105 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7106
7107 # Transform the output of nm in a C name address pair
7108 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7109
7110 # This is the shared library runtime path variable.
7111 runpath_var=$runpath_var
7112
7113 # This is the shared library path variable.
7114 shlibpath_var=$shlibpath_var
7115
7116 # Is shlibpath searched before the hard-coded library search path?
7117 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7118
7119 # How to hardcode a shared library path into an executable.
7120 hardcode_action=$hardcode_action
7121
7122 # Whether we should hardcode library paths into libraries.
7123 hardcode_into_libs=$hardcode_into_libs
7124
7125 # Flag to hardcode \$libdir into a binary during linking.
7126 # This must work even if \$libdir does not exist.
7127 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7128
7129 # Whether we need a single -rpath flag with a separated argument.
7130 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7131
7132 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7133 # resulting binary.
7134 hardcode_direct=$hardcode_direct
7135
7136 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7137 # resulting binary.
7138 hardcode_minus_L=$hardcode_minus_L
7139
7140 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7141 # the resulting binary.
7142 hardcode_shlibpath_var=$hardcode_shlibpath_var
7143
7144 # Variables whose values should be saved in libtool wrapper scripts and
7145 # restored at relink time.
7146 variables_saved_for_relink="$variables_saved_for_relink"
7147
7148 # Whether libtool must link a program against all its dependency libraries.
7149 link_all_deplibs=$link_all_deplibs
7150
7151 # Compile-time system search path for libraries
7152 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7153
7154 # Run-time system search path for libraries
7155 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7156
7157 # Fix the shell variable \$srcfile for the compiler.
7158 fix_srcfile_path="$fix_srcfile_path"
7159
7160 # Set to yes if exported symbols are required.
7161 always_export_symbols=$always_export_symbols
7162
7163 # The commands to list exported symbols.
7164 export_symbols_cmds=$lt_export_symbols_cmds
7165
7166 # The commands to extract the exported symbol list from a shared archive.
7167 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7168
7169 # Symbols that should not be listed in the preloaded symbols.
7170 exclude_expsyms=$lt_exclude_expsyms
7171
7172 # Symbols that must always be exported.
7173 include_expsyms=$lt_include_expsyms
7174
7175 # ### END LIBTOOL CONFIG
7176
7177 __EOF__
7178
7179 case $host_os in
7180 aix3*)
7181 cat <<\EOF >> "${ofile}T"
7182
7183 # AIX sometimes has problems with the GCC collect2 program. For some
7184 # reason, if we set the COLLECT_NAMES environment variable, the problems
7185 # vanish in a puff of smoke.
7186 if test "X${COLLECT_NAMES+set}" != Xset; then
7187 COLLECT_NAMES=
7188 export COLLECT_NAMES
7189 fi
7190 EOF
7191 ;;
7192 esac
7193
7194 case $host_os in
7195 cygwin* | mingw* | pw32* | os2*)
7196 cat <<'EOF' >> "${ofile}T"
7197 # This is a source program that is used to create dlls on Windows
7198 # Don't remove nor modify the starting and closing comments
7199 # /* ltdll.c starts here */
7200 # #define WIN32_LEAN_AND_MEAN
7201 # #include <windows.h>
7202 # #undef WIN32_LEAN_AND_MEAN
7203 # #include <stdio.h>
7204 #
7205 # #ifndef __CYGWIN__
7206 # # ifdef __CYGWIN32__
7207 # # define __CYGWIN__ __CYGWIN32__
7208 # # endif
7209 # #endif
7210 #
7211 # #ifdef __cplusplus
7212 # extern "C" {
7213 # #endif
7214 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7215 # #ifdef __cplusplus
7216 # }
7217 # #endif
7218 #
7219 # #ifdef __CYGWIN__
7220 # #include <cygwin/cygwin_dll.h>
7221 # DECLARE_CYGWIN_DLL( DllMain );
7222 # #endif
7223 # HINSTANCE __hDllInstance_base;
7224 #
7225 # BOOL APIENTRY
7226 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7227 # {
7228 # __hDllInstance_base = hInst;
7229 # return TRUE;
7230 # }
7231 # /* ltdll.c ends here */
7232 # This is a source program that is used to create import libraries
7233 # on Windows for dlls which lack them. Don't remove nor modify the
7234 # starting and closing comments
7235 # /* impgen.c starts here */
7236 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7237 #
7238 # This file is part of GNU libtool.
7239 #
7240 # This program is free software; you can redistribute it and/or modify
7241 # it under the terms of the GNU General Public License as published by
7242 # the Free Software Foundation; either version 2 of the License, or
7243 # (at your option) any later version.
7244 #
7245 # This program is distributed in the hope that it will be useful,
7246 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7247 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7248 # GNU General Public License for more details.
7249 #
7250 # You should have received a copy of the GNU General Public License
7251 # along with this program; if not, write to the Free Software
7252 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7253 # */
7254 #
7255 # #include <stdio.h> /* for printf() */
7256 # #include <unistd.h> /* for open(), lseek(), read() */
7257 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7258 # #include <string.h> /* for strdup() */
7259 #
7260 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7261 # #ifndef O_BINARY
7262 # #define O_BINARY 0
7263 # #endif
7264 #
7265 # static unsigned int
7266 # pe_get16 (fd, offset)
7267 # int fd;
7268 # int offset;
7269 # {
7270 # unsigned char b[2];
7271 # lseek (fd, offset, SEEK_SET);
7272 # read (fd, b, 2);
7273 # return b[0] + (b[1]<<8);
7274 # }
7275 #
7276 # static unsigned int
7277 # pe_get32 (fd, offset)
7278 # int fd;
7279 # int offset;
7280 # {
7281 # unsigned char b[4];
7282 # lseek (fd, offset, SEEK_SET);
7283 # read (fd, b, 4);
7284 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7285 # }
7286 #
7287 # static unsigned int
7288 # pe_as32 (ptr)
7289 # void *ptr;
7290 # {
7291 # unsigned char *b = ptr;
7292 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7293 # }
7294 #
7295 # int
7296 # main (argc, argv)
7297 # int argc;
7298 # char *argv[];
7299 # {
7300 # int dll;
7301 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7302 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7303 # unsigned long name_rvas, nexp;
7304 # unsigned char *expdata, *erva;
7305 # char *filename, *dll_name;
7306 #
7307 # filename = argv[1];
7308 #
7309 # dll = open(filename, O_RDONLY|O_BINARY);
7310 # if (dll < 1)
7311 # return 1;
7312 #
7313 # dll_name = filename;
7314 #
7315 # for (i=0; filename[i]; i++)
7316 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7317 # dll_name = filename + i +1;
7318 #
7319 # pe_header_offset = pe_get32 (dll, 0x3c);
7320 # opthdr_ofs = pe_header_offset + 4 + 20;
7321 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7322 #
7323 # if (num_entries < 1) /* no exports */
7324 # return 1;
7325 #
7326 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7327 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7328 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7329 # secptr = (pe_header_offset + 4 + 20 +
7330 # pe_get16 (dll, pe_header_offset + 4 + 16));
7331 #
7332 # expptr = 0;
7333 # for (i = 0; i < nsections; i++)
7334 # {
7335 # char sname[8];
7336 # unsigned long secptr1 = secptr + 40 * i;
7337 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7338 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7339 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7340 # lseek(dll, secptr1, SEEK_SET);
7341 # read(dll, sname, 8);
7342 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7343 # {
7344 # expptr = fptr + (export_rva - vaddr);
7345 # if (export_rva + export_size > vaddr + vsize)
7346 # export_size = vsize - (export_rva - vaddr);
7347 # break;
7348 # }
7349 # }
7350 #
7351 # expdata = (unsigned char*)malloc(export_size);
7352 # lseek (dll, expptr, SEEK_SET);
7353 # read (dll, expdata, export_size);
7354 # erva = expdata - export_rva;
7355 #
7356 # nexp = pe_as32 (expdata+24);
7357 # name_rvas = pe_as32 (expdata+32);
7358 #
7359 # printf ("EXPORTS\n");
7360 # for (i = 0; i<nexp; i++)
7361 # {
7362 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7363 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7364 # }
7365 #
7366 # return 0;
7367 # }
7368 # /* impgen.c ends here */
7369
7370 EOF
7371 ;;
7372 esac
7373
7374 # We use sed instead of cat because bash on DJGPP gets confused if
7375 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7376 # text mode, it properly converts lines to CR/LF. This bash problem
7377 # is reportedly fixed, but why not run on old versions too?
7378 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7379
7380 mv -f "${ofile}T" "$ofile" || \
7381 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7382 chmod +x "$ofile"
7383 fi
7384 ##
7385 ## END FIXME
7386
7387
7388
7389
7390
7391 # This can be used to rebuild libtool when needed
7392 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7393
7394 # Always use our own libtool.
7395 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7396
7397 # Prevent multiple expansion
7398
7399
7400
7401
7402 v="cannot open";
7403 # Extract the first word of "file", so it can be a program name with args.
7404 set dummy file; ac_word=$2
7405 echo "$as_me:$LINENO: checking for $ac_word" >&5
7406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7407 if test "${ac_cv_path_FILEUTIL+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410 case $FILEUTIL in
7411 [\\/]* | ?:[\\/]*)
7412 ac_cv_path_FILEUTIL="$FILEUTIL" # Let the user override the test with a path.
7413 ;;
7414 *)
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 for as_dir in $PATH
7417 do
7418 IFS=$as_save_IFS
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7422 ac_cv_path_FILEUTIL="$as_dir/$ac_word$ac_exec_ext"
7423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 break 2
7425 fi
7426 done
7427 done
7428
7429 test -z "$ac_cv_path_FILEUTIL" && ac_cv_path_FILEUTIL="FILE_UTILITY_NOT_FOUND"
7430 ;;
7431 esac
7432 fi
7433 FILEUTIL=$ac_cv_path_FILEUTIL
7434
7435 if test -n "$FILEUTIL"; then
7436 echo "$as_me:$LINENO: result: $FILEUTIL" >&5
7437 echo "${ECHO_T}$FILEUTIL" >&6
7438 else
7439 echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7441 fi
7442 if test "$FILEUTIL" != "FILE_UTILITY_NOT_FOUND" ; then
7443 if ${FILEUTIL} - </etc/passwd 2>/dev/null ; then
7444 echo "the '${FILEUTIL} -' operates correctly";
7445 else
7446 echo "Please use a file utility that handles 'file - 'correctly";
7447 echo "You can obtain one from: ftp://ftp.astron.com/pub/file/";
7448 echo " or ftp://ftp.lprng.com/pub/LPRng/UNIXTOOLS/file/";
7449 echo "if necessary, use the FILEUTIL environment variable to specify the path"
7450 exit 1
7451 fi
7452 fi
7453 # Extract the first word of "gzip", so it can be a program name with args.
7454 set dummy gzip; ac_word=$2
7455 echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7457 if test "${ac_cv_path_GZIP+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460 case $GZIP in
7461 [\\/]* | ?:[\\/]*)
7462 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7463 ;;
7464 *)
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476 done
7477 done
7478
7479 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="GZIP_NOT_FOUND"
7480 ;;
7481 esac
7482 fi
7483 GZIP=$ac_cv_path_GZIP
7484
7485 if test -n "$GZIP"; then
7486 echo "$as_me:$LINENO: result: $GZIP" >&5
7487 echo "${ECHO_T}$GZIP" >&6
7488 else
7489 echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6
7491 fi
7492 # Extract the first word of "gs", so it can be a program name with args.
7493 set dummy gs; ac_word=$2
7494 echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7496 if test "${ac_cv_path_GS+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499 case $GS in
7500 [\\/]* | ?:[\\/]*)
7501 ac_cv_path_GS="$GS" # Let the user override the test with a path.
7502 ;;
7503 *)
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511 ac_cv_path_GS="$as_dir/$ac_word$ac_exec_ext"
7512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515 done
7516 done
7517
7518 test -z "$ac_cv_path_GS" && ac_cv_path_GS="GHOSTSCRIPT_NOT_FOUND"
7519 ;;
7520 esac
7521 fi
7522 GS=$ac_cv_path_GS
7523
7524 if test -n "$GS"; then
7525 echo "$as_me:$LINENO: result: $GS" >&5
7526 echo "${ECHO_T}$GS" >&6
7527 else
7528 echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7530 fi
7531 # Extract the first word of "a2ps", so it can be a program name with args.
7532 set dummy a2ps; ac_word=$2
7533 echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7535 if test "${ac_cv_path_A2PS+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538 case $A2PS in
7539 [\\/]* | ?:[\\/]*)
7540 ac_cv_path_A2PS="$A2PS" # Let the user override the test with a path.
7541 ;;
7542 *)
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_path_A2PS="$as_dir/$ac_word$ac_exec_ext"
7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554 done
7555 done
7556
7557 test -z "$ac_cv_path_A2PS" && ac_cv_path_A2PS="A2PS_NOT_FOUND"
7558 ;;
7559 esac
7560 fi
7561 A2PS=$ac_cv_path_A2PS
7562
7563 if test -n "$A2PS"; then
7564 echo "$as_me:$LINENO: result: $A2PS" >&5
7565 echo "${ECHO_T}$A2PS" >&6
7566 else
7567 echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6
7569 fi
7570 # Extract the first word of "cat", so it can be a program name with args.
7571 set dummy cat; ac_word=$2
7572 echo "$as_me:$LINENO: checking for $ac_word" >&5
7573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7574 if test "${ac_cv_path_CAT+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577 case $CAT in
7578 [\\/]* | ?:[\\/]*)
7579 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7580 ;;
7581 *)
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 break 2
7592 fi
7593 done
7594 done
7595
7596 test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="CAT_NOT_FOUND"
7597 ;;
7598 esac
7599 fi
7600 CAT=$ac_cv_path_CAT
7601
7602 if test -n "$CAT"; then
7603 echo "$as_me:$LINENO: result: $CAT" >&5
7604 echo "${ECHO_T}$CAT" >&6
7605 else
7606 echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6
7608 fi
7609
7610 echo "$as_me:$LINENO: checking directory where to install the ifhp.conf file" >&5
7611 echo $ECHO_N "checking directory where to install the ifhp.conf file... $ECHO_C" >&6
7612
7613 # Check whether --with-ifhp_conf or --without-ifhp_conf was given.
7614 if test "${with_ifhp_conf+set}" = set; then
7615 withval="$with_ifhp_conf"
7616 IFHP_CONF=$withval
7617 else
7618 IFHP_CONF=\${sysconfdir}/ifhp.conf
7619 fi;
7620 echo "$as_me:$LINENO: result: $IFHP_CONF" >&5
7621 echo "${ECHO_T}$IFHP_CONF" >&6
7622
7623
7624
7625
7626 echo "$as_me:$LINENO: checking use snmp" >&5
7627 echo $ECHO_N "checking use snmp... $ECHO_C" >&6
7628 # Check whether --enable-snmp or --disable-snmp was given.
7629 if test "${enable_snmp+set}" = set; then
7630 enableval="$enable_snmp"
7631
7632 if test "$enableval" = "yes" ; then
7633 SNMP="yes";
7634 else
7635 SNMP="no";
7636 fi
7637
7638 else
7639 SNMP="yes";
7640
7641 fi;
7642 echo "$as_me:$LINENO: result: $SNMP" >&5
7643 echo "${ECHO_T}$SNMP" >&6
7644
7645
7646 if test "$SNMP" = yes ; then
7647 if perl -MNet::SNMP -e exit ; then
7648 :
7649 else
7650 { { echo "$as_me:$LINENO: error:
7651 SNMP support enabled and the Net::SNMP module not installed.
7652 Get the NET-SNMP libraries from http://www.sourceforge.net
7653 Get the Net::SNMP perl modules from http://www.cpan.org
7654 " >&5
7655 echo "$as_me: error:
7656 SNMP support enabled and the Net::SNMP module not installed.
7657 Get the NET-SNMP libraries from http://www.sourceforge.net
7658 Get the Net::SNMP perl modules from http://www.cpan.org
7659 " >&2;}
7660 { (exit 1); exit 1; }; };
7661
7662 fi
7663 fi
7664
7665 echo "$as_me:$LINENO: checking foomatic-rip" >&5
7666 echo $ECHO_N "checking foomatic-rip... $ECHO_C" >&6
7667
7668 # Check whether --with-foomatic-rip or --without-foomatic-rip was given.
7669 if test "${with_foomatic_rip+set}" = set; then
7670 withval="$with_foomatic_rip"
7671 FOOMATIC_RIP=$withval
7672 else
7673 # Extract the first word of "foomatic-rip", so it can be a program name with args.
7674 set dummy foomatic-rip; ac_word=$2
7675 echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7677 if test "${ac_cv_path_FOOMATIC_RIP+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680 case $FOOMATIC_RIP in
7681 [\\/]* | ?:[\\/]*)
7682 ac_cv_path_FOOMATIC_RIP="$FOOMATIC_RIP" # Let the user override the test with a path.
7683 ;;
7684 *)
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_path_FOOMATIC_RIP="$as_dir/$ac_word$ac_exec_ext"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 break 2
7695 fi
7696 done
7697 done
7698
7699 ;;
7700 esac
7701 fi
7702 FOOMATIC_RIP=$ac_cv_path_FOOMATIC_RIP
7703
7704 if test -n "$FOOMATIC_RIP"; then
7705 echo "$as_me:$LINENO: result: $FOOMATIC_RIP" >&5
7706 echo "${ECHO_T}$FOOMATIC_RIP" >&6
7707 else
7708 echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6
7710 fi
7711
7712
7713 fi;
7714
7715
7716 echo "$as_me:$LINENO: checking use foomatic" >&5
7717 echo $ECHO_N "checking use foomatic... $ECHO_C" >&6
7718 # Check whether --enable-foomatic or --disable-foomatic was given.
7719 if test "${enable_foomatic+set}" = set; then
7720 enableval="$enable_foomatic"
7721
7722 if test "$enableval" = "yes" ; then
7723 FOOMATIC="1";
7724 else
7725 FOOMATIC="0";
7726 fi
7727
7728 else
7729 FOOMATIC="1";
7730
7731 fi;
7732 echo "$as_me:$LINENO: result: $FOOMATIC" >&5
7733 echo "${ECHO_T}$FOOMATIC" >&6
7734
7735
7736 if test "${FOOMATIC}" "!=" 0 -a "${FOOMATIC_RIP}" = "" ; then
7737 { { echo "$as_me:$LINENO: error:
7738 foomatic enabled and foomatic-rip not found
7739 Download foomatic-filters from:
7740 http://www.linuxprinting.org/download/foomatic
7741 " >&5
7742 echo "$as_me: error:
7743 foomatic enabled and foomatic-rip not found
7744 Download foomatic-filters from:
7745 http://www.linuxprinting.org/download/foomatic
7746 " >&2;}
7747 { (exit 1); exit 1; }; };
7748 fi
7749
7750 echo "$as_me:$LINENO: checking default page size" >&5
7751 echo $ECHO_N "checking default page size... $ECHO_C" >&6
7752
7753 # Check whether --with-pagesize or --without-pagesize was given.
7754 if test "${with_pagesize+set}" = set; then
7755 withval="$with_pagesize"
7756 PAGE_SIZE=$withval
7757 else
7758 PAGE_SIZE=letter
7759 fi;
7760 echo "$as_me:$LINENO: result: $PAGE_SIZE" >&5
7761 echo "${ECHO_T}$PAGE_SIZE" >&6
7762
7763
7764
7765 echo "$as_me:$LINENO: checking filter directory" >&5
7766 echo $ECHO_N "checking filter directory... $ECHO_C" >&6
7767
7768 # Check whether --with-filterdir or --without-filterdir was given.
7769 if test "${with_filterdir+set}" = set; then
7770 withval="$with_filterdir"
7771 FILTER_DIR=$withval
7772 else
7773 FILTER_DIR=\${libexecdir}/filters
7774 fi;
7775 echo "$as_me:$LINENO: result: $FILTER_DIR" >&5
7776 echo "${ECHO_T}$FILTER_DIR" >&6
7777
7778
7779 echo "$as_me:$LINENO: checking font directory" >&5
7780 echo $ECHO_N "checking font directory... $ECHO_C" >&6
7781
7782 # Check whether --with-fontdir or --without-fontdir was given.
7783 if test "${with_fontdir+set}" = set; then
7784 withval="$with_fontdir"
7785 FONT_DIR=$withval
7786 else
7787 FONT_DIR=\${libexecdir}/filters/fonts
7788 fi;
7789 echo "$as_me:$LINENO: result: $FONT_DIR" >&5
7790 echo "${ECHO_T}$FONT_DIR" >&6
7791
7792
7793 echo "$as_me:$LINENO: checking strip binaries" >&5
7794 echo $ECHO_N "checking strip binaries... $ECHO_C" >&6
7795 # Check whether --enable-strip or --disable-strip was given.
7796 if test "${enable_strip+set}" = set; then
7797 enableval="$enable_strip"
7798
7799 if test "$enableval" = "yes" ; then
7800 v=yes; STRIP_OPTION=" -s ";
7801 else
7802 v=no; STRIP_OPTION="";
7803 fi
7804
7805 else
7806
7807 v=yes; STRIP_OPTION=" -s ";
7808
7809
7810 fi;
7811 echo "$as_me:$LINENO: result: $v" >&5
7812 echo "${ECHO_T}$v" >&6
7813
7814
7815
7816 echo "$as_me:$LINENO: checking GhostScript check" >&5
7817 echo $ECHO_N "checking GhostScript check... $ECHO_C" >&6
7818 # Check whether --enable-gscheck or --disable-gscheck was given.
7819 if test "${enable_gscheck+set}" = set; then
7820 enableval="$enable_gscheck"
7821
7822 if test "$enableval" = "yes" ; then
7823 GSCHECK=yes;
7824 else
7825 GSCHECK=no;
7826 fi
7827
7828 else
7829
7830 GSCHECK=no;
7831
7832 fi;
7833 echo "$as_me:$LINENO: result: $GSCHECK" >&5
7834 echo "${ECHO_T}$GSCHECK" >&6
7835
7836
7837 if test "$GS" != "GHOSTSCRIPT_NOT_FOUND" -a "$GSCHECK" != "no" ; then
7838 echo "$as_me:$LINENO: checking GhostScript -dSAFER and -dPARANOIDSAFER option" >&5
7839 echo $ECHO_N "checking GhostScript -dSAFER and -dPARANOIDSAFER option... $ECHO_C" >&6
7840 if $GS -q -dBATCH -dNOPAUSE -dSAFER -dPARANOIDSAFER -sDEVICE=nullpage -sOutputFile=- $srcdir/gsQuit ; then
7841 if $GS -q -dBATCH -dNOPAUSE -dSAFER -dPARANOIDSAFER -sDEVICE=nullpage -sOutputFile=- $srcdir/gsTest 1>/dev/null 2>/dev/null ; then
7842 { echo "$as_me:$LINENO: WARNING:
7843 WARNING: '($GS) -dSAFER -dPARANOIDSAFER ' allows files to be read
7844 Please read README.GhostScriptSecurityProblem
7845 and fix your distribution of GhostScript
7846 OR use:
7847 configure --disable-gscheck
7848 " >&5
7849 echo "$as_me: WARNING:
7850 WARNING: '($GS) -dSAFER -dPARANOIDSAFER ' allows files to be read
7851 Please read README.GhostScriptSecurityProblem
7852 and fix your distribution of GhostScript
7853 OR use:
7854 configure --disable-gscheck
7855 " >&2;}
7856 echo "$as_me:$LINENO: result: GhostScript security hole found!" >&5
7857 echo "${ECHO_T}GhostScript security hole found!" >&6
7858 exit 1
7859 else
7860 echo "$as_me:$LINENO: result: no GhostScript security hole found" >&5
7861 echo "${ECHO_T}no GhostScript security hole found" >&6
7862 fi
7863 else
7864 echo "$as_me:$LINENO: result: Error with: $GS -q -dSAFER -dPARANOIDSAFER -sDEVICE=nullpage -sOutputFile=- " >&5
7865 echo "${ECHO_T}Error with: $GS -q -dSAFER -dPARANOIDSAFER -sDEVICE=nullpage -sOutputFile=- " >&6
7866 fi
7867 fi
7868
7869
7870 echo "$as_me:$LINENO: checking how to redirect GhostScript output to fd 3" >&5
7871 echo $ECHO_N "checking how to redirect GhostScript output to fd 3... $ECHO_C" >&6
7872 if test "$DEVFD3" = "" ; then
7873 v=`( if test -d /dev/fd ; then echo 3 >/dev/fd/3; fi) 2>/dev/null 3>&1 1>&2`
7874 if test "$v" != "" ; then
7875 DEVFD3=/dev/fd/3
7876 FD3=/dev/fd/3
7877 else
7878 DEVFD3="|$CAT >\&3"
7879 FD3="|$CAT >&3"
7880 fi
7881 rm -f gs_out
7882 gs -q -dBATCH -dNOPAUSE -dSAFER -dPARANOIDSAFER -sDEVICE=laserjet "-sOutputFile=${FD3}" ${srcdir}/gsPrint 3>gs_out
7883 if test "!" -s gs_out ; then
7884 { { echo "$as_me:$LINENO: error: \"ERROR - gs cannot handle -sOutputFile=$OUT\" " >&5
7885 echo "$as_me: error: \"ERROR - gs cannot handle -sOutputFile=$OUT\" " >&2;}
7886 { (exit 1); exit 1; }; };
7887 fi
7888 fi
7889 echo "$as_me:$LINENO: result: $DEVFD3" >&5
7890 echo "${ECHO_T}$DEVFD3" >&6
7891
7892
7893
7894 ac_ext=c
7895 ac_cpp='$CPP $CPPFLAGS'
7896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7899 if test -n "$ac_tool_prefix"; then
7900 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7902 echo "$as_me:$LINENO: checking for $ac_word" >&5
7903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7904 if test "${ac_cv_prog_CC+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907 if test -n "$CC"; then
7908 ac_cv_prog_CC="$CC" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921 done
7922 done
7923
7924 fi
7925 fi
7926 CC=$ac_cv_prog_CC
7927 if test -n "$CC"; then
7928 echo "$as_me:$LINENO: result: $CC" >&5
7929 echo "${ECHO_T}$CC" >&6
7930 else
7931 echo "$as_me:$LINENO: result: no" >&5
7932 echo "${ECHO_T}no" >&6
7933 fi
7934
7935 fi
7936 if test -z "$ac_cv_prog_CC"; then
7937 ac_ct_CC=$CC
7938 # Extract the first word of "gcc", so it can be a program name with args.
7939 set dummy gcc; ac_word=$2
7940 echo "$as_me:$LINENO: checking for $ac_word" >&5
7941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945 if test -n "$ac_ct_CC"; then
7946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7950 do
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955 ac_cv_prog_ac_ct_CC="gcc"
7956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 break 2
7958 fi
7959 done
7960 done
7961
7962 fi
7963 fi
7964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7965 if test -n "$ac_ct_CC"; then
7966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7967 echo "${ECHO_T}$ac_ct_CC" >&6
7968 else
7969 echo "$as_me:$LINENO: result: no" >&5
7970 echo "${ECHO_T}no" >&6
7971 fi
7972
7973 CC=$ac_ct_CC
7974 else
7975 CC="$ac_cv_prog_CC"
7976 fi
7977
7978 if test -z "$CC"; then
7979 if test -n "$ac_tool_prefix"; then
7980 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7981 set dummy ${ac_tool_prefix}cc; ac_word=$2
7982 echo "$as_me:$LINENO: checking for $ac_word" >&5
7983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7984 if test "${ac_cv_prog_CC+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987 if test -n "$CC"; then
7988 ac_cv_prog_CC="$CC" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7992 do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_CC="${ac_tool_prefix}cc"
7998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001 done
8002 done
8003
8004 fi
8005 fi
8006 CC=$ac_cv_prog_CC
8007 if test -n "$CC"; then
8008 echo "$as_me:$LINENO: result: $CC" >&5
8009 echo "${ECHO_T}$CC" >&6
8010 else
8011 echo "$as_me:$LINENO: result: no" >&5
8012 echo "${ECHO_T}no" >&6
8013 fi
8014
8015 fi
8016 if test -z "$ac_cv_prog_CC"; then
8017 ac_ct_CC=$CC
8018 # Extract the first word of "cc", so it can be a program name with args.
8019 set dummy cc; ac_word=$2
8020 echo "$as_me:$LINENO: checking for $ac_word" >&5
8021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025 if test -n "$ac_ct_CC"; then
8026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8027 else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8030 do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8035 ac_cv_prog_ac_ct_CC="cc"
8036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8038 fi
8039 done
8040 done
8041
8042 fi
8043 fi
8044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8045 if test -n "$ac_ct_CC"; then
8046 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8047 echo "${ECHO_T}$ac_ct_CC" >&6
8048 else
8049 echo "$as_me:$LINENO: result: no" >&5
8050 echo "${ECHO_T}no" >&6
8051 fi
8052
8053 CC=$ac_ct_CC
8054 else
8055 CC="$ac_cv_prog_CC"
8056 fi
8057
8058 fi
8059 if test -z "$CC"; then
8060 # Extract the first word of "cc", so it can be a program name with args.
8061 set dummy cc; ac_word=$2
8062 echo "$as_me:$LINENO: checking for $ac_word" >&5
8063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8064 if test "${ac_cv_prog_CC+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067 if test -n "$CC"; then
8068 ac_cv_prog_CC="$CC" # Let the user override the test.
8069 else
8070 ac_prog_rejected=no
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8073 do
8074 IFS=$as_save_IFS
8075 test -z "$as_dir" && as_dir=.
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8079 ac_prog_rejected=yes
8080 continue
8081 fi
8082 ac_cv_prog_CC="cc"
8083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088
8089 if test $ac_prog_rejected = yes; then
8090 # We found a bogon in the path, so make sure we never use it.
8091 set dummy $ac_cv_prog_CC
8092 shift
8093 if test $# != 0; then
8094 # We chose a different compiler from the bogus one.
8095 # However, it has the same basename, so the bogon will be chosen
8096 # first if we set CC to just the basename; use the full file name.
8097 shift
8098 set dummy "$as_dir/$ac_word" ${1+"$@"}
8099 shift
8100 ac_cv_prog_CC="$@"
8101 fi
8102 fi
8103 fi
8104 fi
8105 CC=$ac_cv_prog_CC
8106 if test -n "$CC"; then
8107 echo "$as_me:$LINENO: result: $CC" >&5
8108 echo "${ECHO_T}$CC" >&6
8109 else
8110 echo "$as_me:$LINENO: result: no" >&5
8111 echo "${ECHO_T}no" >&6
8112 fi
8113
8114 fi
8115 if test -z "$CC"; then
8116 if test -n "$ac_tool_prefix"; then
8117 for ac_prog in cl
8118 do
8119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8121 echo "$as_me:$LINENO: checking for $ac_word" >&5
8122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8123 if test "${ac_cv_prog_CC+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126 if test -n "$CC"; then
8127 ac_cv_prog_CC="$CC" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8139 fi
8140 done
8141 done
8142
8143 fi
8144 fi
8145 CC=$ac_cv_prog_CC
8146 if test -n "$CC"; then
8147 echo "$as_me:$LINENO: result: $CC" >&5
8148 echo "${ECHO_T}$CC" >&6
8149 else
8150 echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6
8152 fi
8153
8154 test -n "$CC" && break
8155 done
8156 fi
8157 if test -z "$CC"; then
8158 ac_ct_CC=$CC
8159 for ac_prog in cl
8160 do
8161 # Extract the first word of "$ac_prog", so it can be a program name with args.
8162 set dummy $ac_prog; ac_word=$2
8163 echo "$as_me:$LINENO: checking for $ac_word" >&5
8164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 else
8168 if test -n "$ac_ct_CC"; then
8169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8173 do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_ac_ct_CC="$ac_prog"
8179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182 done
8183 done
8184
8185 fi
8186 fi
8187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8188 if test -n "$ac_ct_CC"; then
8189 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8190 echo "${ECHO_T}$ac_ct_CC" >&6
8191 else
8192 echo "$as_me:$LINENO: result: no" >&5
8193 echo "${ECHO_T}no" >&6
8194 fi
8195
8196 test -n "$ac_ct_CC" && break
8197 done
8198
8199 CC=$ac_ct_CC
8200 fi
8201
8202 fi
8203
8204
8205 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
8206 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
8207 { (exit 1); exit 1; }; }
8208
8209 # Provide some information about the compiler.
8210 echo "$as_me:$LINENO:" \
8211 "checking for C compiler version" >&5
8212 ac_compiler=`set X $ac_compile; echo $2`
8213 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8214 (eval $ac_compiler --version </dev/null >&5) 2>&5
8215 ac_status=$?
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }
8218 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8219 (eval $ac_compiler -v </dev/null >&5) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }
8223 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8224 (eval $ac_compiler -V </dev/null >&5) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }
8228
8229 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
8230 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
8231 if test "${ac_cv_c_compiler_gnu+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234 cat >conftest.$ac_ext <<_ACEOF
8235 #line $LINENO "configure"
8236 #include "confdefs.h"
8237
8238 #ifdef F77_DUMMY_MAIN
8239 # ifdef __cplusplus
8240 extern "C"
8241 # endif
8242 int F77_DUMMY_MAIN() { return 1; }
8243 #endif
8244 int
8245 main ()
8246 {
8247 #ifndef __GNUC__
8248 choke me
8249 #endif
8250
8251 ;
8252 return 0;
8253 }
8254 _ACEOF
8255 rm -f conftest.$ac_objext
8256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8257 (eval $ac_compile) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } &&
8261 { ac_try='test -s conftest.$ac_objext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 (eval $ac_try) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 ac_compiler_gnu=yes
8268 else
8269 echo "$as_me: failed program was:" >&5
8270 cat conftest.$ac_ext >&5
8271 ac_compiler_gnu=no
8272 fi
8273 rm -f conftest.$ac_objext conftest.$ac_ext
8274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8275
8276 fi
8277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
8278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
8279 GCC=`test $ac_compiler_gnu = yes && echo yes`
8280 ac_test_CFLAGS=${CFLAGS+set}
8281 ac_save_CFLAGS=$CFLAGS
8282 CFLAGS="-g"
8283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
8284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
8285 if test "${ac_cv_prog_cc_g+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 cat >conftest.$ac_ext <<_ACEOF
8289 #line $LINENO "configure"
8290 #include "confdefs.h"
8291
8292 #ifdef F77_DUMMY_MAIN
8293 # ifdef __cplusplus
8294 extern "C"
8295 # endif
8296 int F77_DUMMY_MAIN() { return 1; }
8297 #endif
8298 int
8299 main ()
8300 {
8301
8302 ;
8303 return 0;
8304 }
8305 _ACEOF
8306 rm -f conftest.$ac_objext
8307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8308 (eval $ac_compile) 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -s conftest.$ac_objext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_cv_prog_cc_g=yes
8319 else
8320 echo "$as_me: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8322 ac_cv_prog_cc_g=no
8323 fi
8324 rm -f conftest.$ac_objext conftest.$ac_ext
8325 fi
8326 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
8327 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
8328 if test "$ac_test_CFLAGS" = set; then
8329 CFLAGS=$ac_save_CFLAGS
8330 elif test $ac_cv_prog_cc_g = yes; then
8331 if test "$GCC" = yes; then
8332 CFLAGS="-g -O2"
8333 else
8334 CFLAGS="-g"
8335 fi
8336 else
8337 if test "$GCC" = yes; then
8338 CFLAGS="-O2"
8339 else
8340 CFLAGS=
8341 fi
8342 fi
8343 # Some people use a C++ compiler to compile C. Since we use `exit',
8344 # in C++ we need to declare it. In case someone uses the same compiler
8345 # for both compiling C and C++ we need to have the C++ compiler decide
8346 # the declaration of exit, since it's the most demanding environment.
8347 cat >conftest.$ac_ext <<_ACEOF
8348 #ifndef __cplusplus
8349 choke me
8350 #endif
8351 _ACEOF
8352 rm -f conftest.$ac_objext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8354 (eval $ac_compile) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -s conftest.$ac_objext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 (eval $ac_try) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 for ac_declaration in \
8365 ''\
8366 '#include <stdlib.h>' \
8367 'extern "C" void std::exit (int) throw (); using std::exit;' \
8368 'extern "C" void std::exit (int); using std::exit;' \
8369 'extern "C" void exit (int) throw ();' \
8370 'extern "C" void exit (int);' \
8371 'void exit (int);'
8372 do
8373 cat >conftest.$ac_ext <<_ACEOF
8374 #line $LINENO "configure"
8375 #include "confdefs.h"
8376 #include <stdlib.h>
8377 $ac_declaration
8378 #ifdef F77_DUMMY_MAIN
8379 # ifdef __cplusplus
8380 extern "C"
8381 # endif
8382 int F77_DUMMY_MAIN() { return 1; }
8383 #endif
8384 int
8385 main ()
8386 {
8387 exit (42);
8388 ;
8389 return 0;
8390 }
8391 _ACEOF
8392 rm -f conftest.$ac_objext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8394 (eval $ac_compile) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try='test -s conftest.$ac_objext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 (eval $ac_try) 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 :
8405 else
8406 echo "$as_me: failed program was:" >&5
8407 cat conftest.$ac_ext >&5
8408 continue
8409 fi
8410 rm -f conftest.$ac_objext conftest.$ac_ext
8411 cat >conftest.$ac_ext <<_ACEOF
8412 #line $LINENO "configure"
8413 #include "confdefs.h"
8414 $ac_declaration
8415 #ifdef F77_DUMMY_MAIN
8416 # ifdef __cplusplus
8417 extern "C"
8418 # endif
8419 int F77_DUMMY_MAIN() { return 1; }
8420 #endif
8421 int
8422 main ()
8423 {
8424 exit (42);
8425 ;
8426 return 0;
8427 }
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8431 (eval $ac_compile) 2>&5
8432 ac_status=$?
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try='test -s conftest.$ac_objext'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 (eval $ac_try) 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
8441 break
8442 else
8443 echo "$as_me: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8445 fi
8446 rm -f conftest.$ac_objext conftest.$ac_ext
8447 done
8448 rm -f conftest*
8449 if test -n "$ac_declaration"; then
8450 echo '#ifdef __cplusplus' >>confdefs.h
8451 echo $ac_declaration >>confdefs.h
8452 echo '#endif' >>confdefs.h
8453 fi
8454
8455 else
8456 echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8458 fi
8459 rm -f conftest.$ac_objext conftest.$ac_ext
8460 ac_ext=c
8461 ac_cpp='$CPP $CPPFLAGS'
8462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8465
8466 ac_ext=c
8467 ac_cpp='$CPP $CPPFLAGS'
8468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8471 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
8472 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
8473 # On Suns, sometimes $CPP names a directory.
8474 if test -n "$CPP" && test -d "$CPP"; then
8475 CPP=
8476 fi
8477 if test -z "$CPP"; then
8478 if test "${ac_cv_prog_CPP+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481 # Double quotes because CPP needs to be expanded
8482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8483 do
8484 ac_preproc_ok=false
8485 for ac_c_preproc_warn_flag in '' yes
8486 do
8487 # Use a header file that comes with gcc, so configuring glibc
8488 # with a fresh cross-compiler works.
8489 # On the NeXT, cc -E runs the code through the compiler's parser,
8490 # not just through cpp. "Syntax error" is here to catch this case.
8491 cat >conftest.$ac_ext <<_ACEOF
8492 #line $LINENO "configure"
8493 #include "confdefs.h"
8494 #include <assert.h>
8495 Syntax error
8496 _ACEOF
8497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8499 ac_status=$?
8500 egrep -v '^ *\+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } >/dev/null; then
8505 if test -s conftest.err; then
8506 ac_cpp_err=$ac_c_preproc_warn_flag
8507 else
8508 ac_cpp_err=
8509 fi
8510 else
8511 ac_cpp_err=yes
8512 fi
8513 if test -z "$ac_cpp_err"; then
8514 :
8515 else
8516 echo "$as_me: failed program was:" >&5
8517 cat conftest.$ac_ext >&5
8518 # Broken: fails on valid input.
8519 continue
8520 fi
8521 rm -f conftest.err conftest.$ac_ext
8522
8523 # OK, works on sane cases. Now check whether non-existent headers
8524 # can be detected and how.
8525 cat >conftest.$ac_ext <<_ACEOF
8526 #line $LINENO "configure"
8527 #include "confdefs.h"
8528 #include <ac_nonexistent.h>
8529 _ACEOF
8530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8532 ac_status=$?
8533 egrep -v '^ *\+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } >/dev/null; then
8538 if test -s conftest.err; then
8539 ac_cpp_err=$ac_c_preproc_warn_flag
8540 else
8541 ac_cpp_err=
8542 fi
8543 else
8544 ac_cpp_err=yes
8545 fi
8546 if test -z "$ac_cpp_err"; then
8547 # Broken: success on invalid input.
8548 continue
8549 else
8550 echo "$as_me: failed program was:" >&5
8551 cat conftest.$ac_ext >&5
8552 # Passes both tests.
8553 ac_preproc_ok=:
8554 break
8555 fi
8556 rm -f conftest.err conftest.$ac_ext
8557
8558 done
8559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8560 rm -f conftest.err conftest.$ac_ext
8561 if $ac_preproc_ok; then
8562 break
8563 fi
8564
8565 done
8566 ac_cv_prog_CPP=$CPP
8567
8568 fi
8569 CPP=$ac_cv_prog_CPP
8570 else
8571 ac_cv_prog_CPP=$CPP
8572 fi
8573 echo "$as_me:$LINENO: result: $CPP" >&5
8574 echo "${ECHO_T}$CPP" >&6
8575 ac_preproc_ok=false
8576 for ac_c_preproc_warn_flag in '' yes
8577 do
8578 # Use a header file that comes with gcc, so configuring glibc
8579 # with a fresh cross-compiler works.
8580 # On the NeXT, cc -E runs the code through the compiler's parser,
8581 # not just through cpp. "Syntax error" is here to catch this case.
8582 cat >conftest.$ac_ext <<_ACEOF
8583 #line $LINENO "configure"
8584 #include "confdefs.h"
8585 #include <assert.h>
8586 Syntax error
8587 _ACEOF
8588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8590 ac_status=$?
8591 egrep -v '^ *\+' conftest.er1 >conftest.err
8592 rm -f conftest.er1
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } >/dev/null; then
8596 if test -s conftest.err; then
8597 ac_cpp_err=$ac_c_preproc_warn_flag
8598 else
8599 ac_cpp_err=
8600 fi
8601 else
8602 ac_cpp_err=yes
8603 fi
8604 if test -z "$ac_cpp_err"; then
8605 :
8606 else
8607 echo "$as_me: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8609 # Broken: fails on valid input.
8610 continue
8611 fi
8612 rm -f conftest.err conftest.$ac_ext
8613
8614 # OK, works on sane cases. Now check whether non-existent headers
8615 # can be detected and how.
8616 cat >conftest.$ac_ext <<_ACEOF
8617 #line $LINENO "configure"
8618 #include "confdefs.h"
8619 #include <ac_nonexistent.h>
8620 _ACEOF
8621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8623 ac_status=$?
8624 egrep -v '^ *\+' conftest.er1 >conftest.err
8625 rm -f conftest.er1
8626 cat conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } >/dev/null; then
8629 if test -s conftest.err; then
8630 ac_cpp_err=$ac_c_preproc_warn_flag
8631 else
8632 ac_cpp_err=
8633 fi
8634 else
8635 ac_cpp_err=yes
8636 fi
8637 if test -z "$ac_cpp_err"; then
8638 # Broken: success on invalid input.
8639 continue
8640 else
8641 echo "$as_me: failed program was:" >&5
8642 cat conftest.$ac_ext >&5
8643 # Passes both tests.
8644 ac_preproc_ok=:
8645 break
8646 fi
8647 rm -f conftest.err conftest.$ac_ext
8648
8649 done
8650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8651 rm -f conftest.err conftest.$ac_ext
8652 if $ac_preproc_ok; then
8653 :
8654 else
8655 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
8656 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
8657 { (exit 1); exit 1; }; }
8658 fi
8659
8660 ac_ext=c
8661 ac_cpp='$CPP $CPPFLAGS'
8662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8665
8666
8667 if test "$ac_cv_c_compiler_gnu" = yes; then
8668 cat >conftest.c <<EOF
8669 #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
8670 yes
8671 #endif
8672 EOF
8673 if ${CC-cc} -E conftest.c | egrep yes >/dev/null 2>&1; then
8674 gcc -v
8675 { echo "$as_me:$LINENO: WARNING:
8676 WARNING: gcc -O (version 2.4.5 and below) produces incorrect code
8677 for lpd.c and other large routines.
8678 " >&5
8679 echo "$as_me: WARNING:
8680 WARNING: gcc -O (version 2.4.5 and below) produces incorrect code
8681 for lpd.c and other large routines.
8682 " >&2;}
8683 fi;
8684 fi;
8685
8686 LDCC="$CC"
8687 echo "$as_me:$LINENO: result: using CPPFLAGS=\"${CPPFLAGS}\"" >&5
8688 echo "${ECHO_T}using CPPFLAGS=\"${CPPFLAGS}\"" >&6
8689
8690
8691 release=`uname -r 2>/dev/null; exit 0`;
8692 version=`echo $target_os | sed -e 's/[^0-9][^0-9]*//' -e 's/\./X/' -e 's/\.//g' -e 's/X/./' \
8693 | awk '{ v=$1+0; if( v > 0 ){ while( v < 100 || int(v) != v ){v = v * 10;}}; print v; }' `;
8694 if test "$version" -eq 0 ; then
8695 version=`echo $release | sed -e 's/-.*//' -e 's/\.//g' \
8696 | awk '{ v=$1+0; if( v > 0 ){ while( v < 100 || int(v) != v ){v = v * 10;}}; print v; }' `;
8697 fi
8698 osword=`echo $target_os | sed -e 's/[0-9].*//'`; export osword
8699 echo "$as_me:$LINENO: result: Target is $target, arch $target_cpu, os $target_os, release $release, version $version" >&5
8700 echo "${ECHO_T}Target is $target, arch $target_cpu, os $target_os, release $release, version $version" >&6
8701
8702
8703 cat >>confdefs.h <<_ACEOF
8704 #define ARCHITECTURE "$target_cpu"
8705 _ACEOF
8706
8707
8708 cat >>confdefs.h <<_ACEOF
8709 #define OSNAME "$osword"
8710 _ACEOF
8711
8712
8713 cat >>confdefs.h <<_ACEOF
8714 #define OSVERSION $version
8715 _ACEOF
8716
8717 ARCHITECTURE=$target_cpu
8718 OSNAME=$osword
8719 OSVERSION=$version
8720
8721
8722
8723
8724
8725
8726
8727 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8728 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8729 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732 ac_cv_prog_cc_stdc=no
8733 ac_save_CC=$CC
8734 cat >conftest.$ac_ext <<_ACEOF
8735 #line $LINENO "configure"
8736 #include "confdefs.h"
8737 #include <stdarg.h>
8738 #include <stdio.h>
8739 #include <sys/types.h>
8740 #include <sys/stat.h>
8741 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8742 struct buf { int x; };
8743 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8744 static char *e (p, i)
8745 char **p;
8746 int i;
8747 {
8748 return p[i];
8749 }
8750 static char *f (char * (*g) (char **, int), char **p, ...)
8751 {
8752 char *s;
8753 va_list v;
8754 va_start (v,p);
8755 s = g (p, va_arg (v,int));
8756 va_end (v);
8757 return s;
8758 }
8759 int test (int i, double x);
8760 struct s1 {int (*f) (int a);};
8761 struct s2 {int (*f) (double a);};
8762 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8763 int argc;
8764 char **argv;
8765 #ifdef F77_DUMMY_MAIN
8766 # ifdef __cplusplus
8767 extern "C"
8768 # endif
8769 int F77_DUMMY_MAIN() { return 1; }
8770 #endif
8771 int
8772 main ()
8773 {
8774 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8775 ;
8776 return 0;
8777 }
8778 _ACEOF
8779 # Don't try gcc -ansi; that turns off useful extensions and
8780 # breaks some systems' header files.
8781 # AIX -qlanglvl=ansi
8782 # Ultrix and OSF/1 -std1
8783 # HP-UX 10.20 and later -Ae
8784 # HP-UX older versions -Aa -D_HPUX_SOURCE
8785 # SVR4 -Xc -D__EXTENSIONS__
8786 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8787 do
8788 CC="$ac_save_CC $ac_arg"
8789 rm -f conftest.$ac_objext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791 (eval $ac_compile) 2>&5
8792 ac_status=$?
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } &&
8795 { ac_try='test -s conftest.$ac_objext'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 (eval $ac_try) 2>&5
8798 ac_status=$?
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; }; then
8801 ac_cv_prog_cc_stdc=$ac_arg
8802 break
8803 else
8804 echo "$as_me: failed program was:" >&5
8805 cat conftest.$ac_ext >&5
8806 fi
8807 rm -f conftest.$ac_objext
8808 done
8809 rm -f conftest.$ac_ext conftest.$ac_objext
8810 CC=$ac_save_CC
8811
8812 fi
8813
8814 case "x$ac_cv_prog_cc_stdc" in
8815 x|xno)
8816 echo "$as_me:$LINENO: result: none needed" >&5
8817 echo "${ECHO_T}none needed" >&6 ;;
8818 *)
8819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8820 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8821 CC="$CC $ac_cv_prog_cc_stdc" ;;
8822 esac
8823
8824 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8825 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8826 if test "${ac_cv_c_const+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829 cat >conftest.$ac_ext <<_ACEOF
8830 #line $LINENO "configure"
8831 #include "confdefs.h"
8832
8833 #ifdef F77_DUMMY_MAIN
8834 # ifdef __cplusplus
8835 extern "C"
8836 # endif
8837 int F77_DUMMY_MAIN() { return 1; }
8838 #endif
8839 int
8840 main ()
8841 {
8842 /* FIXME: Include the comments suggested by Paul. */
8843 #ifndef __cplusplus
8844 /* Ultrix mips cc rejects this. */
8845 typedef int charset[2];
8846 const charset x;
8847 /* SunOS 4.1.1 cc rejects this. */
8848 char const *const *ccp;
8849 char **p;
8850 /* NEC SVR4.0.2 mips cc rejects this. */
8851 struct point {int x, y;};
8852 static struct point const zero = {0,0};
8853 /* AIX XL C 1.02.0.0 rejects this.
8854 It does not let you subtract one const X* pointer from another in
8855 an arm of an if-expression whose if-part is not a constant
8856 expression */
8857 const char *g = "string";
8858 ccp = &g + (g ? g-g : 0);
8859 /* HPUX 7.0 cc rejects these. */
8860 ++ccp;
8861 p = (char**) ccp;
8862 ccp = (char const *const *) p;
8863 { /* SCO 3.2v4 cc rejects this. */
8864 char *t;
8865 char const *s = 0 ? (char *) 0 : (char const *) 0;
8866
8867 *t++ = 0;
8868 }
8869 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8870 int x[] = {25, 17};
8871 const int *foo = &x[0];
8872 ++foo;
8873 }
8874 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8875 typedef const int *iptr;
8876 iptr p = 0;
8877 ++p;
8878 }
8879 { /* AIX XL C 1.02.0.0 rejects this saying
8880 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8881 struct s { int j; const int *ap[3]; };
8882 struct s *b; b->j = 5;
8883 }
8884 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8885 const int foo = 10;
8886 }
8887 #endif
8888
8889 ;
8890 return 0;
8891 }
8892 _ACEOF
8893 rm -f conftest.$ac_objext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895 (eval $ac_compile) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -s conftest.$ac_objext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_c_const=yes
8906 else
8907 echo "$as_me: failed program was:" >&5
8908 cat conftest.$ac_ext >&5
8909 ac_cv_c_const=no
8910 fi
8911 rm -f conftest.$ac_objext conftest.$ac_ext
8912 fi
8913 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8914 echo "${ECHO_T}$ac_cv_c_const" >&6
8915 if test $ac_cv_c_const = no; then
8916
8917 cat >>confdefs.h <<\_ACEOF
8918 #define const
8919 _ACEOF
8920
8921 fi
8922
8923 echo "$as_me:$LINENO: checking for inline" >&5
8924 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8925 if test "${ac_cv_c_inline+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928 ac_cv_c_inline=no
8929 for ac_kw in inline __inline__ __inline; do
8930 cat >conftest.$ac_ext <<_ACEOF
8931 #line $LINENO "configure"
8932 #include "confdefs.h"
8933 #ifndef __cplusplus
8934 static $ac_kw int static_foo () {return 0; }
8935 $ac_kw int foo () {return 0; }
8936 #endif
8937
8938 _ACEOF
8939 rm -f conftest.$ac_objext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941 (eval $ac_compile) 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -s conftest.$ac_objext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_cv_c_inline=$ac_kw; break
8952 else
8953 echo "$as_me: failed program was:" >&5
8954 cat conftest.$ac_ext >&5
8955 fi
8956 rm -f conftest.$ac_objext conftest.$ac_ext
8957 done
8958
8959 fi
8960 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8961 echo "${ECHO_T}$ac_cv_c_inline" >&6
8962 case $ac_cv_c_inline in
8963 inline | yes) ;;
8964 no)
8965 cat >>confdefs.h <<\_ACEOF
8966 #define inline
8967 _ACEOF
8968 ;;
8969 *) cat >>confdefs.h <<_ACEOF
8970 #define inline $ac_cv_c_inline
8971 _ACEOF
8972 ;;
8973 esac
8974
8975
8976 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8977 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8978 if test "${ac_cv_header_stdc+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 else
8981 cat >conftest.$ac_ext <<_ACEOF
8982 #line $LINENO "configure"
8983 #include "confdefs.h"
8984 #include <stdlib.h>
8985 #include <stdarg.h>
8986 #include <string.h>
8987 #include <float.h>
8988
8989 _ACEOF
8990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8992 ac_status=$?
8993 egrep -v '^ *\+' conftest.er1 >conftest.err
8994 rm -f conftest.er1
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } >/dev/null; then
8998 if test -s conftest.err; then
8999 ac_cpp_err=$ac_c_preproc_warn_flag
9000 else
9001 ac_cpp_err=
9002 fi
9003 else
9004 ac_cpp_err=yes
9005 fi
9006 if test -z "$ac_cpp_err"; then
9007 ac_cv_header_stdc=yes
9008 else
9009 echo "$as_me: failed program was:" >&5
9010 cat conftest.$ac_ext >&5
9011 ac_cv_header_stdc=no
9012 fi
9013 rm -f conftest.err conftest.$ac_ext
9014
9015 if test $ac_cv_header_stdc = yes; then
9016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9017 cat >conftest.$ac_ext <<_ACEOF
9018 #line $LINENO "configure"
9019 #include "confdefs.h"
9020 #include <string.h>
9021
9022 _ACEOF
9023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9024 egrep "memchr" >/dev/null 2>&1; then
9025 :
9026 else
9027 ac_cv_header_stdc=no
9028 fi
9029 rm -f conftest*
9030
9031 fi
9032
9033 if test $ac_cv_header_stdc = yes; then
9034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9035 cat >conftest.$ac_ext <<_ACEOF
9036 #line $LINENO "configure"
9037 #include "confdefs.h"
9038 #include <stdlib.h>
9039
9040 _ACEOF
9041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9042 egrep "free" >/dev/null 2>&1; then
9043 :
9044 else
9045 ac_cv_header_stdc=no
9046 fi
9047 rm -f conftest*
9048
9049 fi
9050
9051 if test $ac_cv_header_stdc = yes; then
9052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9053 if test "$cross_compiling" = yes; then
9054 :
9055 else
9056 cat >conftest.$ac_ext <<_ACEOF
9057 #line $LINENO "configure"
9058 #include "confdefs.h"
9059 #include <ctype.h>
9060 #if ((' ' & 0x0FF) == 0x020)
9061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9063 #else
9064 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9065 || ('j' <= (c) && (c) <= 'r') \
9066 || ('s' <= (c) && (c) <= 'z'))
9067 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9068 #endif
9069
9070 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9071 int
9072 main ()
9073 {
9074 int i;
9075 for (i = 0; i < 256; i++)
9076 if (XOR (islower (i), ISLOWER (i))
9077 || toupper (i) != TOUPPER (i))
9078 exit(2);
9079 exit (0);
9080 }
9081 _ACEOF
9082 rm -f conftest$ac_exeext
9083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9084 (eval $ac_link) 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 (eval $ac_try) 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
9093 :
9094 else
9095 echo "$as_me: program exited with status $ac_status" >&5
9096 echo "$as_me: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9098 ( exit $ac_status )
9099 ac_cv_header_stdc=no
9100 fi
9101 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9102 fi
9103 fi
9104 fi
9105 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9106 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9107 if test $ac_cv_header_stdc = yes; then
9108
9109 cat >>confdefs.h <<\_ACEOF
9110 #define STDC_HEADERS 1
9111 _ACEOF
9112
9113 fi
9114
9115
9116
9117
9118
9119
9120 ac_header_dirent=no
9121 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9122 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9123 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9124 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 else
9128 cat >conftest.$ac_ext <<_ACEOF
9129 #line $LINENO "configure"
9130 #include "confdefs.h"
9131 #include <sys/types.h>
9132 #include <$ac_hdr>
9133
9134 #ifdef F77_DUMMY_MAIN
9135 # ifdef __cplusplus
9136 extern "C"
9137 # endif
9138 int F77_DUMMY_MAIN() { return 1; }
9139 #endif
9140 int
9141 main ()
9142 {
9143 if ((DIR *) 0)
9144 return 0;
9145 ;
9146 return 0;
9147 }
9148 _ACEOF
9149 rm -f conftest.$ac_objext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9151 (eval $ac_compile) 2>&5
9152 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } &&
9155 { ac_try='test -s conftest.$ac_objext'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 (eval $ac_try) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9161 eval "$as_ac_Header=yes"
9162 else
9163 echo "$as_me: failed program was:" >&5
9164 cat conftest.$ac_ext >&5
9165 eval "$as_ac_Header=no"
9166 fi
9167 rm -f conftest.$ac_objext conftest.$ac_ext
9168 fi
9169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9172 cat >>confdefs.h <<_ACEOF
9173 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9174 _ACEOF
9175
9176 ac_header_dirent=$ac_hdr; break
9177 fi
9178
9179 done
9180 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9181 if test $ac_header_dirent = dirent.h; then
9182 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9183 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9184 if test "${ac_cv_search_opendir+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187 ac_func_search_save_LIBS=$LIBS
9188 ac_cv_search_opendir=no
9189 cat >conftest.$ac_ext <<_ACEOF
9190 #line $LINENO "configure"
9191 #include "confdefs.h"
9192
9193 /* Override any gcc2 internal prototype to avoid an error. */
9194 #ifdef __cplusplus
9195 extern "C"
9196 #endif
9197 /* We use char because int might match the return type of a gcc2
9198 builtin and then its argument prototype would still apply. */
9199 char opendir ();
9200 #ifdef F77_DUMMY_MAIN
9201 # ifdef __cplusplus
9202 extern "C"
9203 # endif
9204 int F77_DUMMY_MAIN() { return 1; }
9205 #endif
9206 int
9207 main ()
9208 {
9209 opendir ();
9210 ;
9211 return 0;
9212 }
9213 _ACEOF
9214 rm -f conftest.$ac_objext conftest$ac_exeext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9216 (eval $ac_link) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -s conftest$ac_exeext'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 (eval $ac_try) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9226 ac_cv_search_opendir="none required"
9227 else
9228 echo "$as_me: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9230 fi
9231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9232 if test "$ac_cv_search_opendir" = no; then
9233 for ac_lib in dir; do
9234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9235 cat >conftest.$ac_ext <<_ACEOF
9236 #line $LINENO "configure"
9237 #include "confdefs.h"
9238
9239 /* Override any gcc2 internal prototype to avoid an error. */
9240 #ifdef __cplusplus
9241 extern "C"
9242 #endif
9243 /* We use char because int might match the return type of a gcc2
9244 builtin and then its argument prototype would still apply. */
9245 char opendir ();
9246 #ifdef F77_DUMMY_MAIN
9247 # ifdef __cplusplus
9248 extern "C"
9249 # endif
9250 int F77_DUMMY_MAIN() { return 1; }
9251 #endif
9252 int
9253 main ()
9254 {
9255 opendir ();
9256 ;
9257 return 0;
9258 }
9259 _ACEOF
9260 rm -f conftest.$ac_objext conftest$ac_exeext
9261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9262 (eval $ac_link) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_cv_search_opendir="-l$ac_lib"
9273 break
9274 else
9275 echo "$as_me: failed program was:" >&5
9276 cat conftest.$ac_ext >&5
9277 fi
9278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9279 done
9280 fi
9281 LIBS=$ac_func_search_save_LIBS
9282 fi
9283 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9284 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9285 if test "$ac_cv_search_opendir" != no; then
9286 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9287
9288 fi
9289
9290 else
9291 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9292 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9293 if test "${ac_cv_search_opendir+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 ac_func_search_save_LIBS=$LIBS
9297 ac_cv_search_opendir=no
9298 cat >conftest.$ac_ext <<_ACEOF
9299 #line $LINENO "configure"
9300 #include "confdefs.h"
9301
9302 /* Override any gcc2 internal prototype to avoid an error. */
9303 #ifdef __cplusplus
9304 extern "C"
9305 #endif
9306 /* We use char because int might match the return type of a gcc2
9307 builtin and then its argument prototype would still apply. */
9308 char opendir ();
9309 #ifdef F77_DUMMY_MAIN
9310 # ifdef __cplusplus
9311 extern "C"
9312 # endif
9313 int F77_DUMMY_MAIN() { return 1; }
9314 #endif
9315 int
9316 main ()
9317 {
9318 opendir ();
9319 ;
9320 return 0;
9321 }
9322 _ACEOF
9323 rm -f conftest.$ac_objext conftest$ac_exeext
9324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9325 (eval $ac_link) 2>&5
9326 ac_status=$?
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try='test -s conftest$ac_exeext'
9330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331 (eval $ac_try) 2>&5
9332 ac_status=$?
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; }; then
9335 ac_cv_search_opendir="none required"
9336 else
9337 echo "$as_me: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9339 fi
9340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9341 if test "$ac_cv_search_opendir" = no; then
9342 for ac_lib in x; do
9343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9344 cat >conftest.$ac_ext <<_ACEOF
9345 #line $LINENO "configure"
9346 #include "confdefs.h"
9347
9348 /* Override any gcc2 internal prototype to avoid an error. */
9349 #ifdef __cplusplus
9350 extern "C"
9351 #endif
9352 /* We use char because int might match the return type of a gcc2
9353 builtin and then its argument prototype would still apply. */
9354 char opendir ();
9355 #ifdef F77_DUMMY_MAIN
9356 # ifdef __cplusplus
9357 extern "C"
9358 # endif
9359 int F77_DUMMY_MAIN() { return 1; }
9360 #endif
9361 int
9362 main ()
9363 {
9364 opendir ();
9365 ;
9366 return 0;
9367 }
9368 _ACEOF
9369 rm -f conftest.$ac_objext conftest$ac_exeext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371 (eval $ac_link) 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -s conftest$ac_exeext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_cv_search_opendir="-l$ac_lib"
9382 break
9383 else
9384 echo "$as_me: failed program was:" >&5
9385 cat conftest.$ac_ext >&5
9386 fi
9387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9388 done
9389 fi
9390 LIBS=$ac_func_search_save_LIBS
9391 fi
9392 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9393 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9394 if test "$ac_cv_search_opendir" != no; then
9395 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9396
9397 fi
9398
9399 fi
9400
9401 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9402 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9403 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 else
9406 cat >conftest.$ac_ext <<_ACEOF
9407 #line $LINENO "configure"
9408 #include "confdefs.h"
9409 #include <sys/types.h>
9410 #include <sys/wait.h>
9411 #ifndef WEXITSTATUS
9412 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9413 #endif
9414 #ifndef WIFEXITED
9415 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9416 #endif
9417
9418 #ifdef F77_DUMMY_MAIN
9419 # ifdef __cplusplus
9420 extern "C"
9421 # endif
9422 int F77_DUMMY_MAIN() { return 1; }
9423 #endif
9424 int
9425 main ()
9426 {
9427 int s;
9428 wait (&s);
9429 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9430 ;
9431 return 0;
9432 }
9433 _ACEOF
9434 rm -f conftest.$ac_objext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9436 (eval $ac_compile) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -s conftest.$ac_objext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 ac_cv_header_sys_wait_h=yes
9447 else
9448 echo "$as_me: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9450 ac_cv_header_sys_wait_h=no
9451 fi
9452 rm -f conftest.$ac_objext conftest.$ac_ext
9453 fi
9454 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9455 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9456 if test $ac_cv_header_sys_wait_h = yes; then
9457
9458 cat >>confdefs.h <<\_ACEOF
9459 #define HAVE_SYS_WAIT_H 1
9460 _ACEOF
9461
9462 fi
9463
9464 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9465 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9466 if test "${ac_cv_header_time+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469 cat >conftest.$ac_ext <<_ACEOF
9470 #line $LINENO "configure"
9471 #include "confdefs.h"
9472 #include <sys/types.h>
9473 #include <sys/time.h>
9474 #include <time.h>
9475
9476 #ifdef F77_DUMMY_MAIN
9477 # ifdef __cplusplus
9478 extern "C"
9479 # endif
9480 int F77_DUMMY_MAIN() { return 1; }
9481 #endif
9482 int
9483 main ()
9484 {
9485 if ((struct tm *) 0)
9486 return 0;
9487 ;
9488 return 0;
9489 }
9490 _ACEOF
9491 rm -f conftest.$ac_objext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9493 (eval $ac_compile) 2>&5
9494 ac_status=$?
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -s conftest.$ac_objext'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 (eval $ac_try) 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_cv_header_time=yes
9504 else
9505 echo "$as_me: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9507 ac_cv_header_time=no
9508 fi
9509 rm -f conftest.$ac_objext conftest.$ac_ext
9510 fi
9511 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9512 echo "${ECHO_T}$ac_cv_header_time" >&6
9513 if test $ac_cv_header_time = yes; then
9514
9515 cat >>confdefs.h <<\_ACEOF
9516 #define TIME_WITH_SYS_TIME 1
9517 _ACEOF
9518
9519 fi
9520
9521
9522 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9523 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9524 if test "${ac_cv_type_signal+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 else
9527 cat >conftest.$ac_ext <<_ACEOF
9528 #line $LINENO "configure"
9529 #include "confdefs.h"
9530 #include <sys/types.h>
9531 #include <signal.h>
9532 #ifdef signal
9533 # undef signal
9534 #endif
9535 #ifdef __cplusplus
9536 extern "C" void (*signal (int, void (*)(int)))(int);
9537 #else
9538 void (*signal ()) ();
9539 #endif
9540
9541 #ifdef F77_DUMMY_MAIN
9542 # ifdef __cplusplus
9543 extern "C"
9544 # endif
9545 int F77_DUMMY_MAIN() { return 1; }
9546 #endif
9547 int
9548 main ()
9549 {
9550 int i;
9551 ;
9552 return 0;
9553 }
9554 _ACEOF
9555 rm -f conftest.$ac_objext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9557 (eval $ac_compile) 2>&5
9558 ac_status=$?
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } &&
9561 { ac_try='test -s conftest.$ac_objext'
9562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563 (eval $ac_try) 2>&5
9564 ac_status=$?
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
9567 ac_cv_type_signal=void
9568 else
9569 echo "$as_me: failed program was:" >&5
9570 cat conftest.$ac_ext >&5
9571 ac_cv_type_signal=int
9572 fi
9573 rm -f conftest.$ac_objext conftest.$ac_ext
9574 fi
9575 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9576 echo "${ECHO_T}$ac_cv_type_signal" >&6
9577
9578 cat >>confdefs.h <<_ACEOF
9579 #define RETSIGTYPE $ac_cv_type_signal
9580 _ACEOF
9581
9582
9583 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9584 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9585 if test "${ac_cv_type_uid_t+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 else
9588 cat >conftest.$ac_ext <<_ACEOF
9589 #line $LINENO "configure"
9590 #include "confdefs.h"
9591 #include <sys/types.h>
9592
9593 _ACEOF
9594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9595 egrep "uid_t" >/dev/null 2>&1; then
9596 ac_cv_type_uid_t=yes
9597 else
9598 ac_cv_type_uid_t=no
9599 fi
9600 rm -f conftest*
9601
9602 fi
9603 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9604 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9605 if test $ac_cv_type_uid_t = no; then
9606
9607 cat >>confdefs.h <<\_ACEOF
9608 #define uid_t int
9609 _ACEOF
9610
9611
9612 cat >>confdefs.h <<\_ACEOF
9613 #define gid_t int
9614 _ACEOF
9615
9616 fi
9617
9618 echo "$as_me:$LINENO: checking for size_t" >&5
9619 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9620 if test "${ac_cv_type_size_t+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623 cat >conftest.$ac_ext <<_ACEOF
9624 #line $LINENO "configure"
9625 #include "confdefs.h"
9626 $ac_includes_default
9627 #ifdef F77_DUMMY_MAIN
9628 # ifdef __cplusplus
9629 extern "C"
9630 # endif
9631 int F77_DUMMY_MAIN() { return 1; }
9632 #endif
9633 int
9634 main ()
9635 {
9636 if ((size_t *) 0)
9637 return 0;
9638 if (sizeof (size_t))
9639 return 0;
9640 ;
9641 return 0;
9642 }
9643 _ACEOF
9644 rm -f conftest.$ac_objext
9645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9646 (eval $ac_compile) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try='test -s conftest.$ac_objext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_cv_type_size_t=yes
9657 else
9658 echo "$as_me: failed program was:" >&5
9659 cat conftest.$ac_ext >&5
9660 ac_cv_type_size_t=no
9661 fi
9662 rm -f conftest.$ac_objext conftest.$ac_ext
9663 fi
9664 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9665 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9666 if test $ac_cv_type_size_t = yes; then
9667 :
9668 else
9669
9670 cat >>confdefs.h <<_ACEOF
9671 #define size_t unsigned
9672 _ACEOF
9673
9674 fi
9675
9676 echo "$as_me:$LINENO: checking for mode_t" >&5
9677 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
9678 if test "${ac_cv_type_mode_t+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 else
9681 cat >conftest.$ac_ext <<_ACEOF
9682 #line $LINENO "configure"
9683 #include "confdefs.h"
9684 $ac_includes_default
9685 #ifdef F77_DUMMY_MAIN
9686 # ifdef __cplusplus
9687 extern "C"
9688 # endif
9689 int F77_DUMMY_MAIN() { return 1; }
9690 #endif
9691 int
9692 main ()
9693 {
9694 if ((mode_t *) 0)
9695 return 0;
9696 if (sizeof (mode_t))
9697 return 0;
9698 ;
9699 return 0;
9700 }
9701 _ACEOF
9702 rm -f conftest.$ac_objext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9704 (eval $ac_compile) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } &&
9708 { ac_try='test -s conftest.$ac_objext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_cv_type_mode_t=yes
9715 else
9716 echo "$as_me: failed program was:" >&5
9717 cat conftest.$ac_ext >&5
9718 ac_cv_type_mode_t=no
9719 fi
9720 rm -f conftest.$ac_objext conftest.$ac_ext
9721 fi
9722 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
9723 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
9724 if test $ac_cv_type_mode_t = yes; then
9725 :
9726 else
9727
9728 cat >>confdefs.h <<_ACEOF
9729 #define mode_t int
9730 _ACEOF
9731
9732 fi
9733
9734 echo "$as_me:$LINENO: checking for off_t" >&5
9735 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9736 if test "${ac_cv_type_off_t+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 else
9739 cat >conftest.$ac_ext <<_ACEOF
9740 #line $LINENO "configure"
9741 #include "confdefs.h"
9742 $ac_includes_default
9743 #ifdef F77_DUMMY_MAIN
9744 # ifdef __cplusplus
9745 extern "C"
9746 # endif
9747 int F77_DUMMY_MAIN() { return 1; }
9748 #endif
9749 int
9750 main ()
9751 {
9752 if ((off_t *) 0)
9753 return 0;
9754 if (sizeof (off_t))
9755 return 0;
9756 ;
9757 return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762 (eval $ac_compile) 2>&5
9763 ac_status=$?
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -s conftest.$ac_objext'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 (eval $ac_try) 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_cv_type_off_t=yes
9773 else
9774 echo "$as_me: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 ac_cv_type_off_t=no
9777 fi
9778 rm -f conftest.$ac_objext conftest.$ac_ext
9779 fi
9780 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9781 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9782 if test $ac_cv_type_off_t = yes; then
9783 :
9784 else
9785
9786 cat >>confdefs.h <<_ACEOF
9787 #define off_t long
9788 _ACEOF
9789
9790 fi
9791
9792 echo "$as_me:$LINENO: checking for pid_t" >&5
9793 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9794 if test "${ac_cv_type_pid_t+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797 cat >conftest.$ac_ext <<_ACEOF
9798 #line $LINENO "configure"
9799 #include "confdefs.h"
9800 $ac_includes_default
9801 #ifdef F77_DUMMY_MAIN
9802 # ifdef __cplusplus
9803 extern "C"
9804 # endif
9805 int F77_DUMMY_MAIN() { return 1; }
9806 #endif
9807 int
9808 main ()
9809 {
9810 if ((pid_t *) 0)
9811 return 0;
9812 if (sizeof (pid_t))
9813 return 0;
9814 ;
9815 return 0;
9816 }
9817 _ACEOF
9818 rm -f conftest.$ac_objext
9819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9820 (eval $ac_compile) 2>&5
9821 ac_status=$?
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } &&
9824 { ac_try='test -s conftest.$ac_objext'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 (eval $ac_try) 2>&5
9827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; }; then
9830 ac_cv_type_pid_t=yes
9831 else
9832 echo "$as_me: failed program was:" >&5
9833 cat conftest.$ac_ext >&5
9834 ac_cv_type_pid_t=no
9835 fi
9836 rm -f conftest.$ac_objext conftest.$ac_ext
9837 fi
9838 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9839 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9840 if test $ac_cv_type_pid_t = yes; then
9841 :
9842 else
9843
9844 cat >>confdefs.h <<_ACEOF
9845 #define pid_t int
9846 _ACEOF
9847
9848 fi
9849
9850
9851 echo "$as_me:$LINENO: checking checking for long long" >&5
9852 echo $ECHO_N "checking checking for long long... $ECHO_C" >&6
9853 if test "${ac_cv_long_long+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856
9857 cat >conftest.$ac_ext <<_ACEOF
9858 #line $LINENO "configure"
9859 #include "confdefs.h"
9860
9861 #include <stdio.h>
9862 #include <sys/types.h>
9863
9864 #ifdef F77_DUMMY_MAIN
9865 # ifdef __cplusplus
9866 extern "C"
9867 # endif
9868 int F77_DUMMY_MAIN() { return 1; }
9869 #endif
9870 int
9871 main ()
9872 {
9873 printf("%d",sizeof(long long));
9874 ;
9875 return 0;
9876 }
9877 _ACEOF
9878 rm -f conftest.$ac_objext
9879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9880 (eval $ac_compile) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -s conftest.$ac_objext'
9885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 (eval $ac_try) 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; }; then
9890 ac_cv_long_long=yes
9891 else
9892 echo "$as_me: failed program was:" >&5
9893 cat conftest.$ac_ext >&5
9894 ac_cv_long_long=no
9895 fi
9896 rm -f conftest.$ac_objext conftest.$ac_ext
9897
9898 fi
9899 echo "$as_me:$LINENO: result: $ac_cv_long_long" >&5
9900 echo "${ECHO_T}$ac_cv_long_long" >&6
9901 if test $ac_cv_long_long = yes; then
9902
9903 cat >>confdefs.h <<\_ACEOF
9904 #define HAVE_LONG_LONG 1
9905 _ACEOF
9906
9907 fi
9908
9909 echo "$as_me:$LINENO: checking checking for long double" >&5
9910 echo $ECHO_N "checking checking for long double... $ECHO_C" >&6
9911 if test "${ac_cv_long_double+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914
9915 cat >conftest.$ac_ext <<_ACEOF
9916 #line $LINENO "configure"
9917 #include "confdefs.h"
9918
9919 #include <stdio.h>
9920 #include <sys/types.h>
9921
9922 #ifdef F77_DUMMY_MAIN
9923 # ifdef __cplusplus
9924 extern "C"
9925 # endif
9926 int F77_DUMMY_MAIN() { return 1; }
9927 #endif
9928 int
9929 main ()
9930 {
9931 printf("%d",sizeof(long double));
9932 ;
9933 return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9938 (eval $ac_compile) 2>&5
9939 ac_status=$?
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } &&
9942 { ac_try='test -s conftest.$ac_objext'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 (eval $ac_try) 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 ac_cv_long_double=yes
9949 else
9950 echo "$as_me: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9952 ac_cv_long_double=no
9953 fi
9954 rm -f conftest.$ac_objext conftest.$ac_ext
9955
9956 fi
9957 echo "$as_me:$LINENO: result: $ac_cv_long_double" >&5
9958 echo "${ECHO_T}$ac_cv_long_double" >&6
9959 if test $ac_cv_long_double = yes; then
9960
9961 cat >>confdefs.h <<\_ACEOF
9962 #define HAVE_LONG_DOUBLE 1
9963 _ACEOF
9964
9965 fi
9966
9967 echo "$as_me:$LINENO: checking checking for quad_t" >&5
9968 echo $ECHO_N "checking checking for quad_t... $ECHO_C" >&6
9969 if test "${ac_cv_quad_t+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972
9973 cat >conftest.$ac_ext <<_ACEOF
9974 #line $LINENO "configure"
9975 #include "confdefs.h"
9976
9977 #include <stdio.h>
9978 #include <sys/types.h>
9979
9980 #ifdef F77_DUMMY_MAIN
9981 # ifdef __cplusplus
9982 extern "C"
9983 # endif
9984 int F77_DUMMY_MAIN() { return 1; }
9985 #endif
9986 int
9987 main ()
9988 {
9989 printf("%d",sizeof(quad_t));
9990 ;
9991 return 0;
9992 }
9993 _ACEOF
9994 rm -f conftest.$ac_objext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9996 (eval $ac_compile) 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } &&
10000 { ac_try='test -s conftest.$ac_objext'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
10006 ac_cv_quad_t=yes
10007 else
10008 echo "$as_me: failed program was:" >&5
10009 cat conftest.$ac_ext >&5
10010 ac_cv_quad_t=no
10011 fi
10012 rm -f conftest.$ac_objext conftest.$ac_ext
10013
10014 fi
10015 echo "$as_me:$LINENO: result: $ac_cv_quad_t" >&5
10016 echo "${ECHO_T}$ac_cv_quad_t" >&6
10017 if test $ac_cv_quad_t = yes; then
10018
10019 cat >>confdefs.h <<\_ACEOF
10020 #define HAVE_QUAD_T 1
10021 _ACEOF
10022
10023 fi
10024
10025
10026 checklibs=
10027 case $target_os in
10028 *linux* )
10029 no_resolv_lib=yes;
10030 ;;
10031 *bsdi* )
10032 LDCC=shlicc
10033 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
10034 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
10035 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038 ac_check_lib_save_LIBS=$LIBS
10039 LIBS="-lutil $LIBS"
10040 cat >conftest.$ac_ext <<_ACEOF
10041 #line $LINENO "configure"
10042 #include "confdefs.h"
10043
10044 /* Override any gcc2 internal prototype to avoid an error. */
10045 #ifdef __cplusplus
10046 extern "C"
10047 #endif
10048 /* We use char because int might match the return type of a gcc2
10049 builtin and then its argument prototype would still apply. */
10050 char setproctitle ();
10051 #ifdef F77_DUMMY_MAIN
10052 # ifdef __cplusplus
10053 extern "C"
10054 # endif
10055 int F77_DUMMY_MAIN() { return 1; }
10056 #endif
10057 int
10058 main ()
10059 {
10060 setproctitle ();
10061 ;
10062 return 0;
10063 }
10064 _ACEOF
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067 (eval $ac_link) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_cv_lib_util_setproctitle=yes
10078 else
10079 echo "$as_me: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10081 ac_cv_lib_util_setproctitle=no
10082 fi
10083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10085 fi
10086 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
10087 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
10088 if test $ac_cv_lib_util_setproctitle = yes; then
10089 LIBS="-lutil $LIBS"
10090 fi
10091
10092 ;;
10093 *bsd* )
10094 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
10095 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
10096 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 else
10099 ac_check_lib_save_LIBS=$LIBS
10100 LIBS="-lutil $LIBS"
10101 cat >conftest.$ac_ext <<_ACEOF
10102 #line $LINENO "configure"
10103 #include "confdefs.h"
10104
10105 /* Override any gcc2 internal prototype to avoid an error. */
10106 #ifdef __cplusplus
10107 extern "C"
10108 #endif
10109 /* We use char because int might match the return type of a gcc2
10110 builtin and then its argument prototype would still apply. */
10111 char setproctitle ();
10112 #ifdef F77_DUMMY_MAIN
10113 # ifdef __cplusplus
10114 extern "C"
10115 # endif
10116 int F77_DUMMY_MAIN() { return 1; }
10117 #endif
10118 int
10119 main ()
10120 {
10121 setproctitle ();
10122 ;
10123 return 0;
10124 }
10125 _ACEOF
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10128 (eval $ac_link) 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try='test -s conftest$ac_exeext'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; }; then
10138 ac_cv_lib_util_setproctitle=yes
10139 else
10140 echo "$as_me: failed program was:" >&5
10141 cat conftest.$ac_ext >&5
10142 ac_cv_lib_util_setproctitle=no
10143 fi
10144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10145 LIBS=$ac_check_lib_save_LIBS
10146 fi
10147 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
10148 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
10149 if test $ac_cv_lib_util_setproctitle = yes; then
10150 LIBS="-lutil $LIBS"
10151 fi
10152
10153 ;;
10154 *unicos* )
10155 checklibs=no
10156 ;;
10157 *irix6* )
10158 checklibs=no
10159
10160 cat >>confdefs.h <<_ACEOF
10161 #define IRIX $version
10162 _ACEOF
10163
10164 ;;
10165 *irix5* )
10166 checklibs=no
10167
10168 cat >>confdefs.h <<\_ACEOF
10169 #define HAVE_BROKEN_TIOCEXCL 1
10170 _ACEOF
10171
10172
10173 cat >>confdefs.h <<\_ACEOF
10174 #define SVR4 1
10175 _ACEOF
10176
10177
10178 cat >>confdefs.h <<_ACEOF
10179 #define IRIX $version
10180 _ACEOF
10181
10182 ;;
10183 *irix* )
10184 checklibs=no
10185
10186 cat >>confdefs.h <<_ACEOF
10187 #define IRIX $version
10188 _ACEOF
10189
10190 ;;
10191 *solaris* )
10192
10193 cat >>confdefs.h <<\_ACEOF
10194 #define SVR4 1
10195 _ACEOF
10196
10197
10198 cat >>confdefs.h <<_ACEOF
10199 #define SOLARIS $version
10200 _ACEOF
10201
10202 no_resolv_lib=yes;
10203 ;;
10204 *hpux* )
10205
10206 cat >>confdefs.h <<\_ACEOF
10207 #define _HPUX_SOURCE 1
10208 _ACEOF
10209
10210 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE=1"
10211 CFLAGS="$CFLAGS -D_HPUX_SOURCE=1"
10212
10213 cat >>confdefs.h <<_ACEOF
10214 #define HPUX $version
10215 _ACEOF
10216
10217 ;;
10218 *sunos* )
10219
10220 cat >>confdefs.h <<_ACEOF
10221 #define SUNOS $version
10222 _ACEOF
10223
10224 ;;
10225 osf* )
10226
10227 cat >>confdefs.h <<_ACEOF
10228 #define DECALPHA $version
10229 _ACEOF
10230
10231 if test "$ac_cv_c_compiler_gnu" != yes; then
10232 CPPFLAGS="$CPPFLAGS -std";
10233 CFLAGS="$CFLAGS -std";
10234 else
10235 CPPFLAGS="$CPPFLAGS -DAES_SOURCE"
10236 CFLAGS="$CFLAGS -DAES_SOURCE"
10237 fi
10238 ;;
10239 *mips-sni* )
10240 ;;
10241 esac
10242
10243
10244
10245
10246
10247
10248
10249
10250 for ac_header in a_out.h aouthdr.h ar.h arpa/inet.h arpa/nameser.h assert.h
10251 do
10252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10254 echo "$as_me:$LINENO: checking for $ac_header" >&5
10255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 fi
10259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10261 else
10262 # Is the header compilable?
10263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10265 cat >conftest.$ac_ext <<_ACEOF
10266 #line $LINENO "configure"
10267 #include "confdefs.h"
10268 $ac_includes_default
10269 #include <$ac_header>
10270 _ACEOF
10271 rm -f conftest.$ac_objext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273 (eval $ac_compile) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } &&
10277 { ac_try='test -s conftest.$ac_objext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 ac_header_compiler=yes
10284 else
10285 echo "$as_me: failed program was:" >&5
10286 cat conftest.$ac_ext >&5
10287 ac_header_compiler=no
10288 fi
10289 rm -f conftest.$ac_objext conftest.$ac_ext
10290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10291 echo "${ECHO_T}$ac_header_compiler" >&6
10292
10293 # Is the header present?
10294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10296 cat >conftest.$ac_ext <<_ACEOF
10297 #line $LINENO "configure"
10298 #include "confdefs.h"
10299 #include <$ac_header>
10300 _ACEOF
10301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10303 ac_status=$?
10304 egrep -v '^ *\+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } >/dev/null; then
10309 if test -s conftest.err; then
10310 ac_cpp_err=$ac_c_preproc_warn_flag
10311 else
10312 ac_cpp_err=
10313 fi
10314 else
10315 ac_cpp_err=yes
10316 fi
10317 if test -z "$ac_cpp_err"; then
10318 ac_header_preproc=yes
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 cat conftest.$ac_ext >&5
10322 ac_header_preproc=no
10323 fi
10324 rm -f conftest.err conftest.$ac_ext
10325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10326 echo "${ECHO_T}$ac_header_preproc" >&6
10327
10328 # So? What about this header?
10329 case $ac_header_compiler:$ac_header_preproc in
10330 yes:no )
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10335 no:yes )
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10342 esac
10343 echo "$as_me:$LINENO: checking for $ac_header" >&5
10344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348 eval "$as_ac_Header=$ac_header_preproc"
10349 fi
10350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10352
10353 fi
10354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10355 cat >>confdefs.h <<_ACEOF
10356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10357 _ACEOF
10358
10359 fi
10360
10361 done
10362
10363
10364
10365
10366
10367
10368
10369 for ac_header in com_err.h compat.h ctype.h ctypes.h dirent.h errno.h
10370 do
10371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10373 echo "$as_me:$LINENO: checking for $ac_header" >&5
10374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 fi
10378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10380 else
10381 # Is the header compilable?
10382 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10384 cat >conftest.$ac_ext <<_ACEOF
10385 #line $LINENO "configure"
10386 #include "confdefs.h"
10387 $ac_includes_default
10388 #include <$ac_header>
10389 _ACEOF
10390 rm -f conftest.$ac_objext
10391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10392 (eval $ac_compile) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } &&
10396 { ac_try='test -s conftest.$ac_objext'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 ac_header_compiler=yes
10403 else
10404 echo "$as_me: failed program was:" >&5
10405 cat conftest.$ac_ext >&5
10406 ac_header_compiler=no
10407 fi
10408 rm -f conftest.$ac_objext conftest.$ac_ext
10409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10410 echo "${ECHO_T}$ac_header_compiler" >&6
10411
10412 # Is the header present?
10413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10415 cat >conftest.$ac_ext <<_ACEOF
10416 #line $LINENO "configure"
10417 #include "confdefs.h"
10418 #include <$ac_header>
10419 _ACEOF
10420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10422 ac_status=$?
10423 egrep -v '^ *\+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } >/dev/null; then
10428 if test -s conftest.err; then
10429 ac_cpp_err=$ac_c_preproc_warn_flag
10430 else
10431 ac_cpp_err=
10432 fi
10433 else
10434 ac_cpp_err=yes
10435 fi
10436 if test -z "$ac_cpp_err"; then
10437 ac_header_preproc=yes
10438 else
10439 echo "$as_me: failed program was:" >&5
10440 cat conftest.$ac_ext >&5
10441 ac_header_preproc=no
10442 fi
10443 rm -f conftest.err conftest.$ac_ext
10444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10445 echo "${ECHO_T}$ac_header_preproc" >&6
10446
10447 # So? What about this header?
10448 case $ac_header_compiler:$ac_header_preproc in
10449 yes:no )
10450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10454 no:yes )
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10461 esac
10462 echo "$as_me:$LINENO: checking for $ac_header" >&5
10463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 else
10467 eval "$as_ac_Header=$ac_header_preproc"
10468 fi
10469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10471
10472 fi
10473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10474 cat >>confdefs.h <<_ACEOF
10475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10476 _ACEOF
10477
10478 fi
10479
10480 done
10481
10482
10483
10484
10485
10486
10487
10488 for ac_header in exechdr.h fcntl.h filehdr.h grp.h limits.h locale.h
10489 do
10490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10492 echo "$as_me:$LINENO: checking for $ac_header" >&5
10493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 fi
10497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10499 else
10500 # Is the header compilable?
10501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10503 cat >conftest.$ac_ext <<_ACEOF
10504 #line $LINENO "configure"
10505 #include "confdefs.h"
10506 $ac_includes_default
10507 #include <$ac_header>
10508 _ACEOF
10509 rm -f conftest.$ac_objext
10510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10511 (eval $ac_compile) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_header_compiler=yes
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 cat conftest.$ac_ext >&5
10525 ac_header_compiler=no
10526 fi
10527 rm -f conftest.$ac_objext conftest.$ac_ext
10528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10529 echo "${ECHO_T}$ac_header_compiler" >&6
10530
10531 # Is the header present?
10532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10534 cat >conftest.$ac_ext <<_ACEOF
10535 #line $LINENO "configure"
10536 #include "confdefs.h"
10537 #include <$ac_header>
10538 _ACEOF
10539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10541 ac_status=$?
10542 egrep -v '^ *\+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } >/dev/null; then
10547 if test -s conftest.err; then
10548 ac_cpp_err=$ac_c_preproc_warn_flag
10549 else
10550 ac_cpp_err=
10551 fi
10552 else
10553 ac_cpp_err=yes
10554 fi
10555 if test -z "$ac_cpp_err"; then
10556 ac_header_preproc=yes
10557 else
10558 echo "$as_me: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10560 ac_header_preproc=no
10561 fi
10562 rm -f conftest.err conftest.$ac_ext
10563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10564 echo "${ECHO_T}$ac_header_preproc" >&6
10565
10566 # So? What about this header?
10567 case $ac_header_compiler:$ac_header_preproc in
10568 yes:no )
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10573 no:yes )
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10580 esac
10581 echo "$as_me:$LINENO: checking for $ac_header" >&5
10582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10585 else
10586 eval "$as_ac_Header=$ac_header_preproc"
10587 fi
10588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10590
10591 fi
10592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10593 cat >>confdefs.h <<_ACEOF
10594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10595 _ACEOF
10596
10597 fi
10598
10599 done
10600
10601
10602
10603
10604
10605
10606
10607 for ac_header in machine/vmparam.h malloc.h memory.h ndir.h netdb.h netinet/in.h
10608 do
10609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10611 echo "$as_me:$LINENO: checking for $ac_header" >&5
10612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 fi
10616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10618 else
10619 # Is the header compilable?
10620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10622 cat >conftest.$ac_ext <<_ACEOF
10623 #line $LINENO "configure"
10624 #include "confdefs.h"
10625 $ac_includes_default
10626 #include <$ac_header>
10627 _ACEOF
10628 rm -f conftest.$ac_objext
10629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10630 (eval $ac_compile) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } &&
10634 { ac_try='test -s conftest.$ac_objext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_header_compiler=yes
10641 else
10642 echo "$as_me: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10644 ac_header_compiler=no
10645 fi
10646 rm -f conftest.$ac_objext conftest.$ac_ext
10647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10648 echo "${ECHO_T}$ac_header_compiler" >&6
10649
10650 # Is the header present?
10651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10653 cat >conftest.$ac_ext <<_ACEOF
10654 #line $LINENO "configure"
10655 #include "confdefs.h"
10656 #include <$ac_header>
10657 _ACEOF
10658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10660 ac_status=$?
10661 egrep -v '^ *\+' conftest.er1 >conftest.err
10662 rm -f conftest.er1
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } >/dev/null; then
10666 if test -s conftest.err; then
10667 ac_cpp_err=$ac_c_preproc_warn_flag
10668 else
10669 ac_cpp_err=
10670 fi
10671 else
10672 ac_cpp_err=yes
10673 fi
10674 if test -z "$ac_cpp_err"; then
10675 ac_header_preproc=yes
10676 else
10677 echo "$as_me: failed program was:" >&5
10678 cat conftest.$ac_ext >&5
10679 ac_header_preproc=no
10680 fi
10681 rm -f conftest.err conftest.$ac_ext
10682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10683 echo "${ECHO_T}$ac_header_preproc" >&6
10684
10685 # So? What about this header?
10686 case $ac_header_compiler:$ac_header_preproc in
10687 yes:no )
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10692 no:yes )
10693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10699 esac
10700 echo "$as_me:$LINENO: checking for $ac_header" >&5
10701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 else
10705 eval "$as_ac_Header=$ac_header_preproc"
10706 fi
10707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10709
10710 fi
10711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10712 cat >>confdefs.h <<_ACEOF
10713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10714 _ACEOF
10715
10716 fi
10717
10718 done
10719
10720
10721
10722
10723
10724
10725
10726 for ac_header in nlist.h pwd.h reloc.h resolv.h select.h setjmp.h
10727 do
10728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10730 echo "$as_me:$LINENO: checking for $ac_header" >&5
10731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 fi
10735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10737 else
10738 # Is the header compilable?
10739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10741 cat >conftest.$ac_ext <<_ACEOF
10742 #line $LINENO "configure"
10743 #include "confdefs.h"
10744 $ac_includes_default
10745 #include <$ac_header>
10746 _ACEOF
10747 rm -f conftest.$ac_objext
10748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10749 (eval $ac_compile) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } &&
10753 { ac_try='test -s conftest.$ac_objext'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 ac_header_compiler=yes
10760 else
10761 echo "$as_me: failed program was:" >&5
10762 cat conftest.$ac_ext >&5
10763 ac_header_compiler=no
10764 fi
10765 rm -f conftest.$ac_objext conftest.$ac_ext
10766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10767 echo "${ECHO_T}$ac_header_compiler" >&6
10768
10769 # Is the header present?
10770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10772 cat >conftest.$ac_ext <<_ACEOF
10773 #line $LINENO "configure"
10774 #include "confdefs.h"
10775 #include <$ac_header>
10776 _ACEOF
10777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10779 ac_status=$?
10780 egrep -v '^ *\+' conftest.er1 >conftest.err
10781 rm -f conftest.er1
10782 cat conftest.err >&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } >/dev/null; then
10785 if test -s conftest.err; then
10786 ac_cpp_err=$ac_c_preproc_warn_flag
10787 else
10788 ac_cpp_err=
10789 fi
10790 else
10791 ac_cpp_err=yes
10792 fi
10793 if test -z "$ac_cpp_err"; then
10794 ac_header_preproc=yes
10795 else
10796 echo "$as_me: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10798 ac_header_preproc=no
10799 fi
10800 rm -f conftest.err conftest.$ac_ext
10801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10802 echo "${ECHO_T}$ac_header_preproc" >&6
10803
10804 # So? What about this header?
10805 case $ac_header_compiler:$ac_header_preproc in
10806 yes:no )
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10811 no:yes )
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10818 esac
10819 echo "$as_me:$LINENO: checking for $ac_header" >&5
10820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824 eval "$as_ac_Header=$ac_header_preproc"
10825 fi
10826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10828
10829 fi
10830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10831 cat >>confdefs.h <<_ACEOF
10832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10833 _ACEOF
10834
10835 fi
10836
10837 done
10838
10839
10840
10841
10842
10843
10844
10845 for ac_header in sgs.h sgtty.h signal.h stab.h stdarg.h stdio.h
10846 do
10847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10849 echo "$as_me:$LINENO: checking for $ac_header" >&5
10850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 fi
10854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10856 else
10857 # Is the header compilable?
10858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10860 cat >conftest.$ac_ext <<_ACEOF
10861 #line $LINENO "configure"
10862 #include "confdefs.h"
10863 $ac_includes_default
10864 #include <$ac_header>
10865 _ACEOF
10866 rm -f conftest.$ac_objext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868 (eval $ac_compile) 2>&5
10869 ac_status=$?
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } &&
10872 { ac_try='test -s conftest.$ac_objext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 ac_header_compiler=yes
10879 else
10880 echo "$as_me: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10882 ac_header_compiler=no
10883 fi
10884 rm -f conftest.$ac_objext conftest.$ac_ext
10885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10886 echo "${ECHO_T}$ac_header_compiler" >&6
10887
10888 # Is the header present?
10889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10891 cat >conftest.$ac_ext <<_ACEOF
10892 #line $LINENO "configure"
10893 #include "confdefs.h"
10894 #include <$ac_header>
10895 _ACEOF
10896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10898 ac_status=$?
10899 egrep -v '^ *\+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } >/dev/null; then
10904 if test -s conftest.err; then
10905 ac_cpp_err=$ac_c_preproc_warn_flag
10906 else
10907 ac_cpp_err=
10908 fi
10909 else
10910 ac_cpp_err=yes
10911 fi
10912 if test -z "$ac_cpp_err"; then
10913 ac_header_preproc=yes
10914 else
10915 echo "$as_me: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 ac_header_preproc=no
10918 fi
10919 rm -f conftest.err conftest.$ac_ext
10920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10921 echo "${ECHO_T}$ac_header_preproc" >&6
10922
10923 # So? What about this header?
10924 case $ac_header_compiler:$ac_header_preproc in
10925 yes:no )
10926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10930 no:yes )
10931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10937 esac
10938 echo "$as_me:$LINENO: checking for $ac_header" >&5
10939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943 eval "$as_ac_Header=$ac_header_preproc"
10944 fi
10945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10947
10948 fi
10949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10950 cat >>confdefs.h <<_ACEOF
10951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10952 _ACEOF
10953
10954 fi
10955
10956 done
10957
10958
10959
10960
10961
10962
10963
10964 for ac_header in stdlib.h string.h strings.h sys/dir.h sys/exec.h sys/exechdr.h
10965 do
10966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10968 echo "$as_me:$LINENO: checking for $ac_header" >&5
10969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 fi
10973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10975 else
10976 # Is the header compilable?
10977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10979 cat >conftest.$ac_ext <<_ACEOF
10980 #line $LINENO "configure"
10981 #include "confdefs.h"
10982 $ac_includes_default
10983 #include <$ac_header>
10984 _ACEOF
10985 rm -f conftest.$ac_objext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10987 (eval $ac_compile) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 { ac_try='test -s conftest.$ac_objext'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 ac_header_compiler=yes
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 cat conftest.$ac_ext >&5
11001 ac_header_compiler=no
11002 fi
11003 rm -f conftest.$ac_objext conftest.$ac_ext
11004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11005 echo "${ECHO_T}$ac_header_compiler" >&6
11006
11007 # Is the header present?
11008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11010 cat >conftest.$ac_ext <<_ACEOF
11011 #line $LINENO "configure"
11012 #include "confdefs.h"
11013 #include <$ac_header>
11014 _ACEOF
11015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11017 ac_status=$?
11018 egrep -v '^ *\+' conftest.er1 >conftest.err
11019 rm -f conftest.er1
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } >/dev/null; then
11023 if test -s conftest.err; then
11024 ac_cpp_err=$ac_c_preproc_warn_flag
11025 else
11026 ac_cpp_err=
11027 fi
11028 else
11029 ac_cpp_err=yes
11030 fi
11031 if test -z "$ac_cpp_err"; then
11032 ac_header_preproc=yes
11033 else
11034 echo "$as_me: failed program was:" >&5
11035 cat conftest.$ac_ext >&5
11036 ac_header_preproc=no
11037 fi
11038 rm -f conftest.err conftest.$ac_ext
11039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11040 echo "${ECHO_T}$ac_header_preproc" >&6
11041
11042 # So? What about this header?
11043 case $ac_header_compiler:$ac_header_preproc in
11044 yes:no )
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11049 no:yes )
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11056 esac
11057 echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062 eval "$as_ac_Header=$ac_header_preproc"
11063 fi
11064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11066
11067 fi
11068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11069 cat >>confdefs.h <<_ACEOF
11070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11071 _ACEOF
11072
11073 fi
11074
11075 done
11076
11077
11078
11079
11080
11081
11082
11083 for ac_header in sys/fcntl.h sys/file.h sys/ioctl.h sys/loader.h sys/mount.h sys/ndir.h
11084 do
11085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11087 echo "$as_me:$LINENO: checking for $ac_header" >&5
11088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 fi
11092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11094 else
11095 # Is the header compilable?
11096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11098 cat >conftest.$ac_ext <<_ACEOF
11099 #line $LINENO "configure"
11100 #include "confdefs.h"
11101 $ac_includes_default
11102 #include <$ac_header>
11103 _ACEOF
11104 rm -f conftest.$ac_objext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11106 (eval $ac_compile) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try='test -s conftest.$ac_objext'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11116 ac_header_compiler=yes
11117 else
11118 echo "$as_me: failed program was:" >&5
11119 cat conftest.$ac_ext >&5
11120 ac_header_compiler=no
11121 fi
11122 rm -f conftest.$ac_objext conftest.$ac_ext
11123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11124 echo "${ECHO_T}$ac_header_compiler" >&6
11125
11126 # Is the header present?
11127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11129 cat >conftest.$ac_ext <<_ACEOF
11130 #line $LINENO "configure"
11131 #include "confdefs.h"
11132 #include <$ac_header>
11133 _ACEOF
11134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11136 ac_status=$?
11137 egrep -v '^ *\+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } >/dev/null; then
11142 if test -s conftest.err; then
11143 ac_cpp_err=$ac_c_preproc_warn_flag
11144 else
11145 ac_cpp_err=
11146 fi
11147 else
11148 ac_cpp_err=yes
11149 fi
11150 if test -z "$ac_cpp_err"; then
11151 ac_header_preproc=yes
11152 else
11153 echo "$as_me: failed program was:" >&5
11154 cat conftest.$ac_ext >&5
11155 ac_header_preproc=no
11156 fi
11157 rm -f conftest.err conftest.$ac_ext
11158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11159 echo "${ECHO_T}$ac_header_preproc" >&6
11160
11161 # So? What about this header?
11162 case $ac_header_compiler:$ac_header_preproc in
11163 yes:no )
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11168 no:yes )
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11175 esac
11176 echo "$as_me:$LINENO: checking for $ac_header" >&5
11177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181 eval "$as_ac_Header=$ac_header_preproc"
11182 fi
11183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11185
11186 fi
11187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11188 cat >>confdefs.h <<_ACEOF
11189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11190 _ACEOF
11191
11192 fi
11193
11194 done
11195
11196
11197
11198
11199
11200
11201
11202 for ac_header in sys/param.h sys/pstat.h sys/resource.h sys/select.h sys/signal.h sys/socket.h
11203 do
11204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11206 echo "$as_me:$LINENO: checking for $ac_header" >&5
11207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 fi
11211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11213 else
11214 # Is the header compilable?
11215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11217 cat >conftest.$ac_ext <<_ACEOF
11218 #line $LINENO "configure"
11219 #include "confdefs.h"
11220 $ac_includes_default
11221 #include <$ac_header>
11222 _ACEOF
11223 rm -f conftest.$ac_objext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225 (eval $ac_compile) 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -s conftest.$ac_objext'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
11235 ac_header_compiler=yes
11236 else
11237 echo "$as_me: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11239 ac_header_compiler=no
11240 fi
11241 rm -f conftest.$ac_objext conftest.$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11243 echo "${ECHO_T}$ac_header_compiler" >&6
11244
11245 # Is the header present?
11246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11248 cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11250 #include "confdefs.h"
11251 #include <$ac_header>
11252 _ACEOF
11253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11255 ac_status=$?
11256 egrep -v '^ *\+' conftest.er1 >conftest.err
11257 rm -f conftest.er1
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } >/dev/null; then
11261 if test -s conftest.err; then
11262 ac_cpp_err=$ac_c_preproc_warn_flag
11263 else
11264 ac_cpp_err=
11265 fi
11266 else
11267 ac_cpp_err=yes
11268 fi
11269 if test -z "$ac_cpp_err"; then
11270 ac_header_preproc=yes
11271 else
11272 echo "$as_me: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11274 ac_header_preproc=no
11275 fi
11276 rm -f conftest.err conftest.$ac_ext
11277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11278 echo "${ECHO_T}$ac_header_preproc" >&6
11279
11280 # So? What about this header?
11281 case $ac_header_compiler:$ac_header_preproc in
11282 yes:no )
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11287 no:yes )
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11294 esac
11295 echo "$as_me:$LINENO: checking for $ac_header" >&5
11296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300 eval "$as_ac_Header=$ac_header_preproc"
11301 fi
11302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11304
11305 fi
11306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11309 _ACEOF
11310
11311 fi
11312
11313 done
11314
11315
11316
11317
11318
11319
11320
11321 for ac_header in sys/stat.h sys/statfs.h sys/statvfs.h sys/syslog.h sys/systeminfo.h sys/termio.h
11322 do
11323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11325 echo "$as_me:$LINENO: checking for $ac_header" >&5
11326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 fi
11330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11332 else
11333 # Is the header compilable?
11334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11336 cat >conftest.$ac_ext <<_ACEOF
11337 #line $LINENO "configure"
11338 #include "confdefs.h"
11339 $ac_includes_default
11340 #include <$ac_header>
11341 _ACEOF
11342 rm -f conftest.$ac_objext
11343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11344 (eval $ac_compile) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try='test -s conftest.$ac_objext'
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
11354 ac_header_compiler=yes
11355 else
11356 echo "$as_me: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11358 ac_header_compiler=no
11359 fi
11360 rm -f conftest.$ac_objext conftest.$ac_ext
11361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11362 echo "${ECHO_T}$ac_header_compiler" >&6
11363
11364 # Is the header present?
11365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11367 cat >conftest.$ac_ext <<_ACEOF
11368 #line $LINENO "configure"
11369 #include "confdefs.h"
11370 #include <$ac_header>
11371 _ACEOF
11372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11374 ac_status=$?
11375 egrep -v '^ *\+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } >/dev/null; then
11380 if test -s conftest.err; then
11381 ac_cpp_err=$ac_c_preproc_warn_flag
11382 else
11383 ac_cpp_err=
11384 fi
11385 else
11386 ac_cpp_err=yes
11387 fi
11388 if test -z "$ac_cpp_err"; then
11389 ac_header_preproc=yes
11390 else
11391 echo "$as_me: failed program was:" >&5
11392 cat conftest.$ac_ext >&5
11393 ac_header_preproc=no
11394 fi
11395 rm -f conftest.err conftest.$ac_ext
11396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11397 echo "${ECHO_T}$ac_header_preproc" >&6
11398
11399 # So? What about this header?
11400 case $ac_header_compiler:$ac_header_preproc in
11401 yes:no )
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11406 no:yes )
11407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11413 esac
11414 echo "$as_me:$LINENO: checking for $ac_header" >&5
11415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419 eval "$as_ac_Header=$ac_header_preproc"
11420 fi
11421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11423
11424 fi
11425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11428 _ACEOF
11429
11430 fi
11431
11432 done
11433
11434
11435
11436
11437
11438
11439
11440 for ac_header in sys/termiox.h sys/time.h sys/ttold.h sys/ttycom.h sys/types.h sys/utsname.h
11441 do
11442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11444 echo "$as_me:$LINENO: checking for $ac_header" >&5
11445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 fi
11449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11451 else
11452 # Is the header compilable?
11453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11455 cat >conftest.$ac_ext <<_ACEOF
11456 #line $LINENO "configure"
11457 #include "confdefs.h"
11458 $ac_includes_default
11459 #include <$ac_header>
11460 _ACEOF
11461 rm -f conftest.$ac_objext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11463 (eval $ac_compile) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } &&
11467 { ac_try='test -s conftest.$ac_objext'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11473 ac_header_compiler=yes
11474 else
11475 echo "$as_me: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11477 ac_header_compiler=no
11478 fi
11479 rm -f conftest.$ac_objext conftest.$ac_ext
11480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11481 echo "${ECHO_T}$ac_header_compiler" >&6
11482
11483 # Is the header present?
11484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11486 cat >conftest.$ac_ext <<_ACEOF
11487 #line $LINENO "configure"
11488 #include "confdefs.h"
11489 #include <$ac_header>
11490 _ACEOF
11491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11493 ac_status=$?
11494 egrep -v '^ *\+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } >/dev/null; then
11499 if test -s conftest.err; then
11500 ac_cpp_err=$ac_c_preproc_warn_flag
11501 else
11502 ac_cpp_err=
11503 fi
11504 else
11505 ac_cpp_err=yes
11506 fi
11507 if test -z "$ac_cpp_err"; then
11508 ac_header_preproc=yes
11509 else
11510 echo "$as_me: failed program was:" >&5
11511 cat conftest.$ac_ext >&5
11512 ac_header_preproc=no
11513 fi
11514 rm -f conftest.err conftest.$ac_ext
11515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11516 echo "${ECHO_T}$ac_header_preproc" >&6
11517
11518 # So? What about this header?
11519 case $ac_header_compiler:$ac_header_preproc in
11520 yes:no )
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11525 no:yes )
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11532 esac
11533 echo "$as_me:$LINENO: checking for $ac_header" >&5
11534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538 eval "$as_ac_Header=$ac_header_preproc"
11539 fi
11540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11542
11543 fi
11544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11545 cat >>confdefs.h <<_ACEOF
11546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11547 _ACEOF
11548
11549 fi
11550
11551 done
11552
11553
11554
11555
11556
11557
11558
11559 for ac_header in sys/vfs.h sys/wait.h syslog.h term.h termcap.h termio.h
11560 do
11561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11563 echo "$as_me:$LINENO: checking for $ac_header" >&5
11564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 fi
11568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11570 else
11571 # Is the header compilable?
11572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11574 cat >conftest.$ac_ext <<_ACEOF
11575 #line $LINENO "configure"
11576 #include "confdefs.h"
11577 $ac_includes_default
11578 #include <$ac_header>
11579 _ACEOF
11580 rm -f conftest.$ac_objext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11582 (eval $ac_compile) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try='test -s conftest.$ac_objext'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
11592 ac_header_compiler=yes
11593 else
11594 echo "$as_me: failed program was:" >&5
11595 cat conftest.$ac_ext >&5
11596 ac_header_compiler=no
11597 fi
11598 rm -f conftest.$ac_objext conftest.$ac_ext
11599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11600 echo "${ECHO_T}$ac_header_compiler" >&6
11601
11602 # Is the header present?
11603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11605 cat >conftest.$ac_ext <<_ACEOF
11606 #line $LINENO "configure"
11607 #include "confdefs.h"
11608 #include <$ac_header>
11609 _ACEOF
11610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11612 ac_status=$?
11613 egrep -v '^ *\+' conftest.er1 >conftest.err
11614 rm -f conftest.er1
11615 cat conftest.err >&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } >/dev/null; then
11618 if test -s conftest.err; then
11619 ac_cpp_err=$ac_c_preproc_warn_flag
11620 else
11621 ac_cpp_err=
11622 fi
11623 else
11624 ac_cpp_err=yes
11625 fi
11626 if test -z "$ac_cpp_err"; then
11627 ac_header_preproc=yes
11628 else
11629 echo "$as_me: failed program was:" >&5
11630 cat conftest.$ac_ext >&5
11631 ac_header_preproc=no
11632 fi
11633 rm -f conftest.err conftest.$ac_ext
11634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11635 echo "${ECHO_T}$ac_header_preproc" >&6
11636
11637 # So? What about this header?
11638 case $ac_header_compiler:$ac_header_preproc in
11639 yes:no )
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11644 no:yes )
11645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11651 esac
11652 echo "$as_me:$LINENO: checking for $ac_header" >&5
11653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657 eval "$as_ac_Header=$ac_header_preproc"
11658 fi
11659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11661
11662 fi
11663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11664 cat >>confdefs.h <<_ACEOF
11665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11666 _ACEOF
11667
11668 fi
11669
11670 done
11671
11672
11673
11674
11675
11676
11677
11678 for ac_header in termios.h time.h unistd.h utsname.h varargs.h vmparam.h
11679 do
11680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11682 echo "$as_me:$LINENO: checking for $ac_header" >&5
11683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 fi
11687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11689 else
11690 # Is the header compilable?
11691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11693 cat >conftest.$ac_ext <<_ACEOF
11694 #line $LINENO "configure"
11695 #include "confdefs.h"
11696 $ac_includes_default
11697 #include <$ac_header>
11698 _ACEOF
11699 rm -f conftest.$ac_objext
11700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11701 (eval $ac_compile) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
11705 { ac_try='test -s conftest.$ac_objext'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 ac_header_compiler=yes
11712 else
11713 echo "$as_me: failed program was:" >&5
11714 cat conftest.$ac_ext >&5
11715 ac_header_compiler=no
11716 fi
11717 rm -f conftest.$ac_objext conftest.$ac_ext
11718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11719 echo "${ECHO_T}$ac_header_compiler" >&6
11720
11721 # Is the header present?
11722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11724 cat >conftest.$ac_ext <<_ACEOF
11725 #line $LINENO "configure"
11726 #include "confdefs.h"
11727 #include <$ac_header>
11728 _ACEOF
11729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11731 ac_status=$?
11732 egrep -v '^ *\+' conftest.er1 >conftest.err
11733 rm -f conftest.er1
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } >/dev/null; then
11737 if test -s conftest.err; then
11738 ac_cpp_err=$ac_c_preproc_warn_flag
11739 else
11740 ac_cpp_err=
11741 fi
11742 else
11743 ac_cpp_err=yes
11744 fi
11745 if test -z "$ac_cpp_err"; then
11746 ac_header_preproc=yes
11747 else
11748 echo "$as_me: failed program was:" >&5
11749 cat conftest.$ac_ext >&5
11750 ac_header_preproc=no
11751 fi
11752 rm -f conftest.err conftest.$ac_ext
11753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11754 echo "${ECHO_T}$ac_header_preproc" >&6
11755
11756 # So? What about this header?
11757 case $ac_header_compiler:$ac_header_preproc in
11758 yes:no )
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11763 no:yes )
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11770 esac
11771 echo "$as_me:$LINENO: checking for $ac_header" >&5
11772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 else
11776 eval "$as_ac_Header=$ac_header_preproc"
11777 fi
11778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11780
11781 fi
11782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11783 cat >>confdefs.h <<_ACEOF
11784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11785 _ACEOF
11786
11787 fi
11788
11789 done
11790
11791
11792
11793
11794 if test -z "$checklibs"; then
11795 echo "$as_me:$LINENO: checking for getpwent in -lposix" >&5
11796 echo $ECHO_N "checking for getpwent in -lposix... $ECHO_C" >&6
11797 if test "${ac_cv_lib_posix_getpwent+set}" = set; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800 ac_check_lib_save_LIBS=$LIBS
11801 LIBS="-lposix $LIBS"
11802 cat >conftest.$ac_ext <<_ACEOF
11803 #line $LINENO "configure"
11804 #include "confdefs.h"
11805
11806 /* Override any gcc2 internal prototype to avoid an error. */
11807 #ifdef __cplusplus
11808 extern "C"
11809 #endif
11810 /* We use char because int might match the return type of a gcc2
11811 builtin and then its argument prototype would still apply. */
11812 char getpwent ();
11813 #ifdef F77_DUMMY_MAIN
11814 # ifdef __cplusplus
11815 extern "C"
11816 # endif
11817 int F77_DUMMY_MAIN() { return 1; }
11818 #endif
11819 int
11820 main ()
11821 {
11822 getpwent ();
11823 ;
11824 return 0;
11825 }
11826 _ACEOF
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11829 (eval $ac_link) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
11833 { ac_try='test -s conftest$ac_exeext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 ac_cv_lib_posix_getpwent=yes
11840 else
11841 echo "$as_me: failed program was:" >&5
11842 cat conftest.$ac_ext >&5
11843 ac_cv_lib_posix_getpwent=no
11844 fi
11845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11846 LIBS=$ac_check_lib_save_LIBS
11847 fi
11848 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_getpwent" >&5
11849 echo "${ECHO_T}$ac_cv_lib_posix_getpwent" >&6
11850 if test $ac_cv_lib_posix_getpwent = yes; then
11851 LIBS="$LIBS -lposix"
11852 fi
11853
11854
11855 echo "$as_me:$LINENO: checking for socket in -lsocket_s" >&5
11856 echo $ECHO_N "checking for socket in -lsocket_s... $ECHO_C" >&6
11857 if test "${ac_cv_lib_socket_s_socket+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860 ac_check_lib_save_LIBS=$LIBS
11861 LIBS="-lsocket_s -lnsl $LIBS"
11862 cat >conftest.$ac_ext <<_ACEOF
11863 #line $LINENO "configure"
11864 #include "confdefs.h"
11865
11866 /* Override any gcc2 internal prototype to avoid an error. */
11867 #ifdef __cplusplus
11868 extern "C"
11869 #endif
11870 /* We use char because int might match the return type of a gcc2
11871 builtin and then its argument prototype would still apply. */
11872 char socket ();
11873 #ifdef F77_DUMMY_MAIN
11874 # ifdef __cplusplus
11875 extern "C"
11876 # endif
11877 int F77_DUMMY_MAIN() { return 1; }
11878 #endif
11879 int
11880 main ()
11881 {
11882 socket ();
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 rm -f conftest.$ac_objext conftest$ac_exeext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_lib_socket_s_socket=yes
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11903 ac_cv_lib_socket_s_socket=no
11904 fi
11905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11906 LIBS=$ac_check_lib_save_LIBS
11907 fi
11908 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_s_socket" >&5
11909 echo "${ECHO_T}$ac_cv_lib_socket_s_socket" >&6
11910 if test $ac_cv_lib_socket_s_socket = yes; then
11911 LIBS="$LIBS -lsocket_s"; have_socket=1
11912 fi
11913
11914 if test -z "$have_socket"; then
11915 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11916 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11917 if test "${ac_cv_lib_socket_socket+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920 ac_check_lib_save_LIBS=$LIBS
11921 LIBS="-lsocket -lnsl $LIBS"
11922 cat >conftest.$ac_ext <<_ACEOF
11923 #line $LINENO "configure"
11924 #include "confdefs.h"
11925
11926 /* Override any gcc2 internal prototype to avoid an error. */
11927 #ifdef __cplusplus
11928 extern "C"
11929 #endif
11930 /* We use char because int might match the return type of a gcc2
11931 builtin and then its argument prototype would still apply. */
11932 char socket ();
11933 #ifdef F77_DUMMY_MAIN
11934 # ifdef __cplusplus
11935 extern "C"
11936 # endif
11937 int F77_DUMMY_MAIN() { return 1; }
11938 #endif
11939 int
11940 main ()
11941 {
11942 socket ();
11943 ;
11944 return 0;
11945 }
11946 _ACEOF
11947 rm -f conftest.$ac_objext conftest$ac_exeext
11948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11949 (eval $ac_link) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -s conftest$ac_exeext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 ac_cv_lib_socket_socket=yes
11960 else
11961 echo "$as_me: failed program was:" >&5
11962 cat conftest.$ac_ext >&5
11963 ac_cv_lib_socket_socket=no
11964 fi
11965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11966 LIBS=$ac_check_lib_save_LIBS
11967 fi
11968 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11969 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11970 if test $ac_cv_lib_socket_socket = yes; then
11971 LIBS="$LIBS -lsocket"
11972 fi
11973
11974 fi
11975
11976 cat >conftest.$ac_ext <<_ACEOF
11977 #line $LINENO "configure"
11978 #include "confdefs.h"
11979
11980 #ifdef F77_DUMMY_MAIN
11981 # ifdef __cplusplus
11982 extern "C"
11983 # endif
11984 int F77_DUMMY_MAIN() { return 1; }
11985 #endif
11986 int
11987 main ()
11988 {
11989 extern int gethostbyaddr; return (gethostbyaddr);
11990 ;
11991 return 0;
11992 }
11993 _ACEOF
11994 rm -f conftest.$ac_objext conftest$ac_exeext
11995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11996 (eval $ac_link) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } &&
12000 { ac_try='test -s conftest$ac_exeext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12006 have_gethost=1
12007 else
12008 echo "$as_me: failed program was:" >&5
12009 cat conftest.$ac_ext >&5
12010 fi
12011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12012 if test -z "$have_gethost" ; then
12013 h="you need additional libs for gethostbyaddr";
12014 else
12015 h="no additional libs for gethostbyaddr";
12016 fi
12017 echo "$as_me:$LINENO: result: $h" >&5
12018 echo "${ECHO_T}$h" >&6
12019 if test -z "$have_gethost" ; then
12020 echo "$as_me:$LINENO: checking for gethostbyaddr in -lnsl_s" >&5
12021 echo $ECHO_N "checking for gethostbyaddr in -lnsl_s... $ECHO_C" >&6
12022 if test "${ac_cv_lib_nsl_s_gethostbyaddr+set}" = set; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 else
12025 ac_check_lib_save_LIBS=$LIBS
12026 LIBS="-lnsl_s $LIBS"
12027 cat >conftest.$ac_ext <<_ACEOF
12028 #line $LINENO "configure"
12029 #include "confdefs.h"
12030
12031 /* Override any gcc2 internal prototype to avoid an error. */
12032 #ifdef __cplusplus
12033 extern "C"
12034 #endif
12035 /* We use char because int might match the return type of a gcc2
12036 builtin and then its argument prototype would still apply. */
12037 char gethostbyaddr ();
12038 #ifdef F77_DUMMY_MAIN
12039 # ifdef __cplusplus
12040 extern "C"
12041 # endif
12042 int F77_DUMMY_MAIN() { return 1; }
12043 #endif
12044 int
12045 main ()
12046 {
12047 gethostbyaddr ();
12048 ;
12049 return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext conftest$ac_exeext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054 (eval $ac_link) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } &&
12058 { ac_try='test -s conftest$ac_exeext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_lib_nsl_s_gethostbyaddr=yes
12065 else
12066 echo "$as_me: failed program was:" >&5
12067 cat conftest.$ac_ext >&5
12068 ac_cv_lib_nsl_s_gethostbyaddr=no
12069 fi
12070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12071 LIBS=$ac_check_lib_save_LIBS
12072 fi
12073 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_gethostbyaddr" >&5
12074 echo "${ECHO_T}$ac_cv_lib_nsl_s_gethostbyaddr" >&6
12075 if test $ac_cv_lib_nsl_s_gethostbyaddr = yes; then
12076 LIBS="$LIBS -lnsl_s"; have_gethost=1
12077 fi
12078
12079 fi
12080 if test -z "$have_gethost"; then
12081 echo "$as_me:$LINENO: checking for gethostbyaddr in -lnsl" >&5
12082 echo $ECHO_N "checking for gethostbyaddr in -lnsl... $ECHO_C" >&6
12083 if test "${ac_cv_lib_nsl_gethostbyaddr+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086 ac_check_lib_save_LIBS=$LIBS
12087 LIBS="-lnsl $LIBS"
12088 cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12090 #include "confdefs.h"
12091
12092 /* Override any gcc2 internal prototype to avoid an error. */
12093 #ifdef __cplusplus
12094 extern "C"
12095 #endif
12096 /* We use char because int might match the return type of a gcc2
12097 builtin and then its argument prototype would still apply. */
12098 char gethostbyaddr ();
12099 #ifdef F77_DUMMY_MAIN
12100 # ifdef __cplusplus
12101 extern "C"
12102 # endif
12103 int F77_DUMMY_MAIN() { return 1; }
12104 #endif
12105 int
12106 main ()
12107 {
12108 gethostbyaddr ();
12109 ;
12110 return 0;
12111 }
12112 _ACEOF
12113 rm -f conftest.$ac_objext conftest$ac_exeext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115 (eval $ac_link) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -s conftest$ac_exeext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 ac_cv_lib_nsl_gethostbyaddr=yes
12126 else
12127 echo "$as_me: failed program was:" >&5
12128 cat conftest.$ac_ext >&5
12129 ac_cv_lib_nsl_gethostbyaddr=no
12130 fi
12131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12132 LIBS=$ac_check_lib_save_LIBS
12133 fi
12134 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
12135 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyaddr" >&6
12136 if test $ac_cv_lib_nsl_gethostbyaddr = yes; then
12137 LIBS="$LIBS -lnsl"; have_gethost=1
12138 fi
12139
12140 fi
12141
12142 if test -z "$have_gethost"; then
12143 echo "$as_me:$LINENO: checking for gethostbyaddr in -lnet_s" >&5
12144 echo $ECHO_N "checking for gethostbyaddr in -lnet_s... $ECHO_C" >&6
12145 if test "${ac_cv_lib_net_s_gethostbyaddr+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148 ac_check_lib_save_LIBS=$LIBS
12149 LIBS="-lnet_s $LIBS"
12150 cat >conftest.$ac_ext <<_ACEOF
12151 #line $LINENO "configure"
12152 #include "confdefs.h"
12153
12154 /* Override any gcc2 internal prototype to avoid an error. */
12155 #ifdef __cplusplus
12156 extern "C"
12157 #endif
12158 /* We use char because int might match the return type of a gcc2
12159 builtin and then its argument prototype would still apply. */
12160 char gethostbyaddr ();
12161 #ifdef F77_DUMMY_MAIN
12162 # ifdef __cplusplus
12163 extern "C"
12164 # endif
12165 int F77_DUMMY_MAIN() { return 1; }
12166 #endif
12167 int
12168 main ()
12169 {
12170 gethostbyaddr ();
12171 ;
12172 return 0;
12173 }
12174 _ACEOF
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12177 (eval $ac_link) 2>&5
12178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try='test -s conftest$ac_exeext'
12182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12184 ac_status=$?
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; }; then
12187 ac_cv_lib_net_s_gethostbyaddr=yes
12188 else
12189 echo "$as_me: failed program was:" >&5
12190 cat conftest.$ac_ext >&5
12191 ac_cv_lib_net_s_gethostbyaddr=no
12192 fi
12193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12194 LIBS=$ac_check_lib_save_LIBS
12195 fi
12196 echo "$as_me:$LINENO: result: $ac_cv_lib_net_s_gethostbyaddr" >&5
12197 echo "${ECHO_T}$ac_cv_lib_net_s_gethostbyaddr" >&6
12198 if test $ac_cv_lib_net_s_gethostbyaddr = yes; then
12199 LIBS="$LIBS -lnet_s"; have_gethost=1
12200 fi
12201
12202 fi
12203 if test -z "$have_gethost"; then
12204 echo "$as_me:$LINENO: checking for gethostbyaddr in -lnet" >&5
12205 echo $ECHO_N "checking for gethostbyaddr in -lnet... $ECHO_C" >&6
12206 if test "${ac_cv_lib_net_gethostbyaddr+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 else
12209 ac_check_lib_save_LIBS=$LIBS
12210 LIBS="-lnet $LIBS"
12211 cat >conftest.$ac_ext <<_ACEOF
12212 #line $LINENO "configure"
12213 #include "confdefs.h"
12214
12215 /* Override any gcc2 internal prototype to avoid an error. */
12216 #ifdef __cplusplus
12217 extern "C"
12218 #endif
12219 /* We use char because int might match the return type of a gcc2
12220 builtin and then its argument prototype would still apply. */
12221 char gethostbyaddr ();
12222 #ifdef F77_DUMMY_MAIN
12223 # ifdef __cplusplus
12224 extern "C"
12225 # endif
12226 int F77_DUMMY_MAIN() { return 1; }
12227 #endif
12228 int
12229 main ()
12230 {
12231 gethostbyaddr ();
12232 ;
12233 return 0;
12234 }
12235 _ACEOF
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12238 (eval $ac_link) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -s conftest$ac_exeext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 ac_cv_lib_net_gethostbyaddr=yes
12249 else
12250 echo "$as_me: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12252 ac_cv_lib_net_gethostbyaddr=no
12253 fi
12254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12255 LIBS=$ac_check_lib_save_LIBS
12256 fi
12257 echo "$as_me:$LINENO: result: $ac_cv_lib_net_gethostbyaddr" >&5
12258 echo "${ECHO_T}$ac_cv_lib_net_gethostbyaddr" >&6
12259 if test $ac_cv_lib_net_gethostbyaddr = yes; then
12260 LIBS="$LIBS -lnet"; have_gethost=1
12261 fi
12262
12263 fi
12264
12265 if test -z "$no_resolv_lib"; then
12266 echo "$as_me:$LINENO: checking for inet_ntop" >&5
12267 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
12268 if test "${ac_cv_func_inet_ntop+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271 cat >conftest.$ac_ext <<_ACEOF
12272 #line $LINENO "configure"
12273 #include "confdefs.h"
12274 /* System header to define __stub macros and hopefully few prototypes,
12275 which can conflict with char inet_ntop (); below. */
12276 #include <assert.h>
12277 /* Override any gcc2 internal prototype to avoid an error. */
12278 #ifdef __cplusplus
12279 extern "C"
12280 #endif
12281 /* We use char because int might match the return type of a gcc2
12282 builtin and then its argument prototype would still apply. */
12283 char inet_ntop ();
12284 char (*f) ();
12285
12286 #ifdef F77_DUMMY_MAIN
12287 # ifdef __cplusplus
12288 extern "C"
12289 # endif
12290 int F77_DUMMY_MAIN() { return 1; }
12291 #endif
12292 int
12293 main ()
12294 {
12295 /* The GNU C library defines this for functions which it implements
12296 to always fail with ENOSYS. Some functions are actually named
12297 something starting with __ and the normal name is an alias. */
12298 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
12299 choke me
12300 #else
12301 f = inet_ntop;
12302 #endif
12303
12304 ;
12305 return 0;
12306 }
12307 _ACEOF
12308 rm -f conftest.$ac_objext conftest$ac_exeext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12310 (eval $ac_link) 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } &&
12314 { ac_try='test -s conftest$ac_exeext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_func_inet_ntop=yes
12321 else
12322 echo "$as_me: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12324 ac_cv_func_inet_ntop=no
12325 fi
12326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12327 fi
12328 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
12329 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
12330 if test $ac_cv_func_inet_ntop = yes; then
12331 name2=yes
12332 fi
12333
12334 if test -z "$name2" ; then
12335 echo "$as_me:$LINENO: checking for inet_ntop in -lresolv" >&5
12336 echo $ECHO_N "checking for inet_ntop in -lresolv... $ECHO_C" >&6
12337 if test "${ac_cv_lib_resolv_inet_ntop+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340 ac_check_lib_save_LIBS=$LIBS
12341 LIBS="-lresolv $LIBS"
12342 cat >conftest.$ac_ext <<_ACEOF
12343 #line $LINENO "configure"
12344 #include "confdefs.h"
12345
12346 /* Override any gcc2 internal prototype to avoid an error. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 /* We use char because int might match the return type of a gcc2
12351 builtin and then its argument prototype would still apply. */
12352 char inet_ntop ();
12353 #ifdef F77_DUMMY_MAIN
12354 # ifdef __cplusplus
12355 extern "C"
12356 # endif
12357 int F77_DUMMY_MAIN() { return 1; }
12358 #endif
12359 int
12360 main ()
12361 {
12362 inet_ntop ();
12363 ;
12364 return 0;
12365 }
12366 _ACEOF
12367 rm -f conftest.$ac_objext conftest$ac_exeext
12368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12369 (eval $ac_link) 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } &&
12373 { ac_try='test -s conftest$ac_exeext'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 ac_cv_lib_resolv_inet_ntop=yes
12380 else
12381 echo "$as_me: failed program was:" >&5
12382 cat conftest.$ac_ext >&5
12383 ac_cv_lib_resolv_inet_ntop=no
12384 fi
12385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12387 fi
12388 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_ntop" >&5
12389 echo "${ECHO_T}$ac_cv_lib_resolv_inet_ntop" >&6
12390 if test $ac_cv_lib_resolv_inet_ntop = yes; then
12391 LIBS="$LIBS -lresolv";name2=yes
12392 fi
12393
12394 fi;
12395 fi
12396 fi
12397
12398
12399
12400
12401
12402
12403
12404 for ac_func in _res cfsetispeed fcntl flock gethostbyname2 getdtablesize
12405 do
12406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12407 echo "$as_me:$LINENO: checking for $ac_func" >&5
12408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12409 if eval "test \"\${$as_ac_var+set}\" = set"; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 else
12412 cat >conftest.$ac_ext <<_ACEOF
12413 #line $LINENO "configure"
12414 #include "confdefs.h"
12415 /* System header to define __stub macros and hopefully few prototypes,
12416 which can conflict with char $ac_func (); below. */
12417 #include <assert.h>
12418 /* Override any gcc2 internal prototype to avoid an error. */
12419 #ifdef __cplusplus
12420 extern "C"
12421 #endif
12422 /* We use char because int might match the return type of a gcc2
12423 builtin and then its argument prototype would still apply. */
12424 char $ac_func ();
12425 char (*f) ();
12426
12427 #ifdef F77_DUMMY_MAIN
12428 # ifdef __cplusplus
12429 extern "C"
12430 # endif
12431 int F77_DUMMY_MAIN() { return 1; }
12432 #endif
12433 int
12434 main ()
12435 {
12436 /* The GNU C library defines this for functions which it implements
12437 to always fail with ENOSYS. Some functions are actually named
12438 something starting with __ and the normal name is an alias. */
12439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12440 choke me
12441 #else
12442 f = $ac_func;
12443 #endif
12444
12445 ;
12446 return 0;
12447 }
12448 _ACEOF
12449 rm -f conftest.$ac_objext conftest$ac_exeext
12450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12451 (eval $ac_link) 2>&5
12452 ac_status=$?
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -s conftest$ac_exeext'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 eval "$as_ac_var=yes"
12462 else
12463 echo "$as_me: failed program was:" >&5
12464 cat conftest.$ac_ext >&5
12465 eval "$as_ac_var=no"
12466 fi
12467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12468 fi
12469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12471 if test `eval echo '${'$as_ac_var'}'` = yes; then
12472 cat >>confdefs.h <<_ACEOF
12473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12474 _ACEOF
12475
12476 fi
12477 done
12478
12479
12480
12481
12482
12483
12484 for ac_func in gethostname getrlimit inet_aton inet_ntop inet_pton
12485 do
12486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12487 echo "$as_me:$LINENO: checking for $ac_func" >&5
12488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12489 if eval "test \"\${$as_ac_var+set}\" = set"; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492 cat >conftest.$ac_ext <<_ACEOF
12493 #line $LINENO "configure"
12494 #include "confdefs.h"
12495 /* System header to define __stub macros and hopefully few prototypes,
12496 which can conflict with char $ac_func (); below. */
12497 #include <assert.h>
12498 /* Override any gcc2 internal prototype to avoid an error. */
12499 #ifdef __cplusplus
12500 extern "C"
12501 #endif
12502 /* We use char because int might match the return type of a gcc2
12503 builtin and then its argument prototype would still apply. */
12504 char $ac_func ();
12505 char (*f) ();
12506
12507 #ifdef F77_DUMMY_MAIN
12508 # ifdef __cplusplus
12509 extern "C"
12510 # endif
12511 int F77_DUMMY_MAIN() { return 1; }
12512 #endif
12513 int
12514 main ()
12515 {
12516 /* The GNU C library defines this for functions which it implements
12517 to always fail with ENOSYS. Some functions are actually named
12518 something starting with __ and the normal name is an alias. */
12519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12520 choke me
12521 #else
12522 f = $ac_func;
12523 #endif
12524
12525 ;
12526 return 0;
12527 }
12528 _ACEOF
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12531 (eval $ac_link) 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
12535 { ac_try='test -s conftest$ac_exeext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 eval "$as_ac_var=yes"
12542 else
12543 echo "$as_me: failed program was:" >&5
12544 cat conftest.$ac_ext >&5
12545 eval "$as_ac_var=no"
12546 fi
12547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12548 fi
12549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12551 if test `eval echo '${'$as_ac_var'}'` = yes; then
12552 cat >>confdefs.h <<_ACEOF
12553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12554 _ACEOF
12555
12556 fi
12557 done
12558
12559
12560
12561
12562
12563 for ac_func in innetgr killpg lockf mkstemp
12564 do
12565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12566 echo "$as_me:$LINENO: checking for $ac_func" >&5
12567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12568 if eval "test \"\${$as_ac_var+set}\" = set"; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571 cat >conftest.$ac_ext <<_ACEOF
12572 #line $LINENO "configure"
12573 #include "confdefs.h"
12574 /* System header to define __stub macros and hopefully few prototypes,
12575 which can conflict with char $ac_func (); below. */
12576 #include <assert.h>
12577 /* Override any gcc2 internal prototype to avoid an error. */
12578 #ifdef __cplusplus
12579 extern "C"
12580 #endif
12581 /* We use char because int might match the return type of a gcc2
12582 builtin and then its argument prototype would still apply. */
12583 char $ac_func ();
12584 char (*f) ();
12585
12586 #ifdef F77_DUMMY_MAIN
12587 # ifdef __cplusplus
12588 extern "C"
12589 # endif
12590 int F77_DUMMY_MAIN() { return 1; }
12591 #endif
12592 int
12593 main ()
12594 {
12595 /* The GNU C library defines this for functions which it implements
12596 to always fail with ENOSYS. Some functions are actually named
12597 something starting with __ and the normal name is an alias. */
12598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12599 choke me
12600 #else
12601 f = $ac_func;
12602 #endif
12603
12604 ;
12605 return 0;
12606 }
12607 _ACEOF
12608 rm -f conftest.$ac_objext conftest$ac_exeext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12610 (eval $ac_link) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } &&
12614 { ac_try='test -s conftest$ac_exeext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 eval "$as_ac_var=yes"
12621 else
12622 echo "$as_me: failed program was:" >&5
12623 cat conftest.$ac_ext >&5
12624 eval "$as_ac_var=no"
12625 fi
12626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12627 fi
12628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12630 if test `eval echo '${'$as_ac_var'}'` = yes; then
12631 cat >>confdefs.h <<_ACEOF
12632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12633 _ACEOF
12634
12635 fi
12636 done
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650 for ac_func in mktemp openlog putenv random rand setenv seteuid setruid setlinebuf setlocale setpgid setproctitle
12651 do
12652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12653 echo "$as_me:$LINENO: checking for $ac_func" >&5
12654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12655 if eval "test \"\${$as_ac_var+set}\" = set"; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 else
12658 cat >conftest.$ac_ext <<_ACEOF
12659 #line $LINENO "configure"
12660 #include "confdefs.h"
12661 /* System header to define __stub macros and hopefully few prototypes,
12662 which can conflict with char $ac_func (); below. */
12663 #include <assert.h>
12664 /* Override any gcc2 internal prototype to avoid an error. */
12665 #ifdef __cplusplus
12666 extern "C"
12667 #endif
12668 /* We use char because int might match the return type of a gcc2
12669 builtin and then its argument prototype would still apply. */
12670 char $ac_func ();
12671 char (*f) ();
12672
12673 #ifdef F77_DUMMY_MAIN
12674 # ifdef __cplusplus
12675 extern "C"
12676 # endif
12677 int F77_DUMMY_MAIN() { return 1; }
12678 #endif
12679 int
12680 main ()
12681 {
12682 /* The GNU C library defines this for functions which it implements
12683 to always fail with ENOSYS. Some functions are actually named
12684 something starting with __ and the normal name is an alias. */
12685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12686 choke me
12687 #else
12688 f = $ac_func;
12689 #endif
12690
12691 ;
12692 return 0;
12693 }
12694 _ACEOF
12695 rm -f conftest.$ac_objext conftest$ac_exeext
12696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12697 (eval $ac_link) 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try='test -s conftest$ac_exeext'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; }; then
12707 eval "$as_ac_var=yes"
12708 else
12709 echo "$as_me: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12711 eval "$as_ac_var=no"
12712 fi
12713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12714 fi
12715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12716 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12717 if test `eval echo '${'$as_ac_var'}'` = yes; then
12718 cat >>confdefs.h <<_ACEOF
12719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12720 _ACEOF
12721
12722 fi
12723 done
12724
12725
12726
12727
12728
12729
12730 for ac_func in setresuid setreuid setsid setvbuf sigaction
12731 do
12732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12733 echo "$as_me:$LINENO: checking for $ac_func" >&5
12734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12735 if eval "test \"\${$as_ac_var+set}\" = set"; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 else
12738 cat >conftest.$ac_ext <<_ACEOF
12739 #line $LINENO "configure"
12740 #include "confdefs.h"
12741 /* System header to define __stub macros and hopefully few prototypes,
12742 which can conflict with char $ac_func (); below. */
12743 #include <assert.h>
12744 /* Override any gcc2 internal prototype to avoid an error. */
12745 #ifdef __cplusplus
12746 extern "C"
12747 #endif
12748 /* We use char because int might match the return type of a gcc2
12749 builtin and then its argument prototype would still apply. */
12750 char $ac_func ();
12751 char (*f) ();
12752
12753 #ifdef F77_DUMMY_MAIN
12754 # ifdef __cplusplus
12755 extern "C"
12756 # endif
12757 int F77_DUMMY_MAIN() { return 1; }
12758 #endif
12759 int
12760 main ()
12761 {
12762 /* The GNU C library defines this for functions which it implements
12763 to always fail with ENOSYS. Some functions are actually named
12764 something starting with __ and the normal name is an alias. */
12765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12766 choke me
12767 #else
12768 f = $ac_func;
12769 #endif
12770
12771 ;
12772 return 0;
12773 }
12774 _ACEOF
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777 (eval $ac_link) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } &&
12781 { ac_try='test -s conftest$ac_exeext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 eval "$as_ac_var=yes"
12788 else
12789 echo "$as_me: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12791 eval "$as_ac_var=no"
12792 fi
12793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12794 fi
12795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12797 if test `eval echo '${'$as_ac_var'}'` = yes; then
12798 cat >>confdefs.h <<_ACEOF
12799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12800 _ACEOF
12801
12802 fi
12803 done
12804
12805
12806
12807
12808
12809 for ac_func in sigprocmask siglongjmp socketpair strcasecmp
12810 do
12811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12812 echo "$as_me:$LINENO: checking for $ac_func" >&5
12813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12814 if eval "test \"\${$as_ac_var+set}\" = set"; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817 cat >conftest.$ac_ext <<_ACEOF
12818 #line $LINENO "configure"
12819 #include "confdefs.h"
12820 /* System header to define __stub macros and hopefully few prototypes,
12821 which can conflict with char $ac_func (); below. */
12822 #include <assert.h>
12823 /* Override any gcc2 internal prototype to avoid an error. */
12824 #ifdef __cplusplus
12825 extern "C"
12826 #endif
12827 /* We use char because int might match the return type of a gcc2
12828 builtin and then its argument prototype would still apply. */
12829 char $ac_func ();
12830 char (*f) ();
12831
12832 #ifdef F77_DUMMY_MAIN
12833 # ifdef __cplusplus
12834 extern "C"
12835 # endif
12836 int F77_DUMMY_MAIN() { return 1; }
12837 #endif
12838 int
12839 main ()
12840 {
12841 /* The GNU C library defines this for functions which it implements
12842 to always fail with ENOSYS. Some functions are actually named
12843 something starting with __ and the normal name is an alias. */
12844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12845 choke me
12846 #else
12847 f = $ac_func;
12848 #endif
12849
12850 ;
12851 return 0;
12852 }
12853 _ACEOF
12854 rm -f conftest.$ac_objext conftest$ac_exeext
12855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12856 (eval $ac_link) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -s conftest$ac_exeext'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 eval "$as_ac_var=yes"
12867 else
12868 echo "$as_me: failed program was:" >&5
12869 cat conftest.$ac_ext >&5
12870 eval "$as_ac_var=no"
12871 fi
12872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12873 fi
12874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12876 if test `eval echo '${'$as_ac_var'}'` = yes; then
12877 cat >>confdefs.h <<_ACEOF
12878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12879 _ACEOF
12880
12881 fi
12882 done
12883
12884
12885
12886
12887
12888
12889
12890 for ac_func in strchr strdup strerror strncasecmp sysconf sysinfo
12891 do
12892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12893 echo "$as_me:$LINENO: checking for $ac_func" >&5
12894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12895 if eval "test \"\${$as_ac_var+set}\" = set"; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898 cat >conftest.$ac_ext <<_ACEOF
12899 #line $LINENO "configure"
12900 #include "confdefs.h"
12901 /* System header to define __stub macros and hopefully few prototypes,
12902 which can conflict with char $ac_func (); below. */
12903 #include <assert.h>
12904 /* Override any gcc2 internal prototype to avoid an error. */
12905 #ifdef __cplusplus
12906 extern "C"
12907 #endif
12908 /* We use char because int might match the return type of a gcc2
12909 builtin and then its argument prototype would still apply. */
12910 char $ac_func ();
12911 char (*f) ();
12912
12913 #ifdef F77_DUMMY_MAIN
12914 # ifdef __cplusplus
12915 extern "C"
12916 # endif
12917 int F77_DUMMY_MAIN() { return 1; }
12918 #endif
12919 int
12920 main ()
12921 {
12922 /* The GNU C library defines this for functions which it implements
12923 to always fail with ENOSYS. Some functions are actually named
12924 something starting with __ and the normal name is an alias. */
12925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12926 choke me
12927 #else
12928 f = $ac_func;
12929 #endif
12930
12931 ;
12932 return 0;
12933 }
12934 _ACEOF
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12937 (eval $ac_link) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -s conftest$ac_exeext'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 eval "$as_ac_var=yes"
12948 else
12949 echo "$as_me: failed program was:" >&5
12950 cat conftest.$ac_ext >&5
12951 eval "$as_ac_var=no"
12952 fi
12953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12954 fi
12955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12957 if test `eval echo '${'$as_ac_var'}'` = yes; then
12958 cat >>confdefs.h <<_ACEOF
12959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12960 _ACEOF
12961
12962 fi
12963 done
12964
12965
12966
12967
12968
12969
12970
12971
12972 for ac_func in tcdrain tcflush tcsetattr uname unsetenv wait3 waitpid
12973 do
12974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12975 echo "$as_me:$LINENO: checking for $ac_func" >&5
12976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12977 if eval "test \"\${$as_ac_var+set}\" = set"; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 else
12980 cat >conftest.$ac_ext <<_ACEOF
12981 #line $LINENO "configure"
12982 #include "confdefs.h"
12983 /* System header to define __stub macros and hopefully few prototypes,
12984 which can conflict with char $ac_func (); below. */
12985 #include <assert.h>
12986 /* Override any gcc2 internal prototype to avoid an error. */
12987 #ifdef __cplusplus
12988 extern "C"
12989 #endif
12990 /* We use char because int might match the return type of a gcc2
12991 builtin and then its argument prototype would still apply. */
12992 char $ac_func ();
12993 char (*f) ();
12994
12995 #ifdef F77_DUMMY_MAIN
12996 # ifdef __cplusplus
12997 extern "C"
12998 # endif
12999 int F77_DUMMY_MAIN() { return 1; }
13000 #endif
13001 int
13002 main ()
13003 {
13004 /* The GNU C library defines this for functions which it implements
13005 to always fail with ENOSYS. Some functions are actually named
13006 something starting with __ and the normal name is an alias. */
13007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13008 choke me
13009 #else
13010 f = $ac_func;
13011 #endif
13012
13013 ;
13014 return 0;
13015 }
13016 _ACEOF
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } &&
13023 { ac_try='test -s conftest$ac_exeext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 eval "$as_ac_var=yes"
13030 else
13031 echo "$as_me: failed program was:" >&5
13032 cat conftest.$ac_ext >&5
13033 eval "$as_ac_var=no"
13034 fi
13035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13036 fi
13037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13039 if test `eval echo '${'$as_ac_var'}'` = yes; then
13040 cat >>confdefs.h <<_ACEOF
13041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13042 _ACEOF
13043
13044 fi
13045 done
13046
13047
13048 if test ! "$ac_cv_func_setreuid" = yes -a ! "$ac_cv_func_seteuid" = yes -a ! "$ac_cv_func_setresuid" = yes; then
13049 { echo "$as_me:$LINENO: WARNING: WARNING: missing setreuid(), seteuid(), and setresuid() " >&5
13050 echo "$as_me: WARNING: WARNING: missing setreuid(), seteuid(), and setresuid() " >&2;}
13051 fi
13052
13053
13054
13055 for ac_header in unistd.h vfork.h
13056 do
13057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13059 echo "$as_me:$LINENO: checking for $ac_header" >&5
13060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 fi
13064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13066 else
13067 # Is the header compilable?
13068 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13070 cat >conftest.$ac_ext <<_ACEOF
13071 #line $LINENO "configure"
13072 #include "confdefs.h"
13073 $ac_includes_default
13074 #include <$ac_header>
13075 _ACEOF
13076 rm -f conftest.$ac_objext
13077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13078 (eval $ac_compile) 2>&5
13079 ac_status=$?
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -s conftest.$ac_objext'
13083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084 (eval $ac_try) 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; }; then
13088 ac_header_compiler=yes
13089 else
13090 echo "$as_me: failed program was:" >&5
13091 cat conftest.$ac_ext >&5
13092 ac_header_compiler=no
13093 fi
13094 rm -f conftest.$ac_objext conftest.$ac_ext
13095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13096 echo "${ECHO_T}$ac_header_compiler" >&6
13097
13098 # Is the header present?
13099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13101 cat >conftest.$ac_ext <<_ACEOF
13102 #line $LINENO "configure"
13103 #include "confdefs.h"
13104 #include <$ac_header>
13105 _ACEOF
13106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13108 ac_status=$?
13109 egrep -v '^ *\+' conftest.er1 >conftest.err
13110 rm -f conftest.er1
13111 cat conftest.err >&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } >/dev/null; then
13114 if test -s conftest.err; then
13115 ac_cpp_err=$ac_c_preproc_warn_flag
13116 else
13117 ac_cpp_err=
13118 fi
13119 else
13120 ac_cpp_err=yes
13121 fi
13122 if test -z "$ac_cpp_err"; then
13123 ac_header_preproc=yes
13124 else
13125 echo "$as_me: failed program was:" >&5
13126 cat conftest.$ac_ext >&5
13127 ac_header_preproc=no
13128 fi
13129 rm -f conftest.err conftest.$ac_ext
13130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13131 echo "${ECHO_T}$ac_header_preproc" >&6
13132
13133 # So? What about this header?
13134 case $ac_header_compiler:$ac_header_preproc in
13135 yes:no )
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13140 no:yes )
13141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13147 esac
13148 echo "$as_me:$LINENO: checking for $ac_header" >&5
13149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 else
13153 eval "$as_ac_Header=$ac_header_preproc"
13154 fi
13155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13157
13158 fi
13159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13160 cat >>confdefs.h <<_ACEOF
13161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13162 _ACEOF
13163
13164 fi
13165
13166 done
13167
13168
13169
13170 for ac_func in fork vfork
13171 do
13172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13173 echo "$as_me:$LINENO: checking for $ac_func" >&5
13174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13175 if eval "test \"\${$as_ac_var+set}\" = set"; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 else
13178 cat >conftest.$ac_ext <<_ACEOF
13179 #line $LINENO "configure"
13180 #include "confdefs.h"
13181 /* System header to define __stub macros and hopefully few prototypes,
13182 which can conflict with char $ac_func (); below. */
13183 #include <assert.h>
13184 /* Override any gcc2 internal prototype to avoid an error. */
13185 #ifdef __cplusplus
13186 extern "C"
13187 #endif
13188 /* We use char because int might match the return type of a gcc2
13189 builtin and then its argument prototype would still apply. */
13190 char $ac_func ();
13191 char (*f) ();
13192
13193 #ifdef F77_DUMMY_MAIN
13194 # ifdef __cplusplus
13195 extern "C"
13196 # endif
13197 int F77_DUMMY_MAIN() { return 1; }
13198 #endif
13199 int
13200 main ()
13201 {
13202 /* The GNU C library defines this for functions which it implements
13203 to always fail with ENOSYS. Some functions are actually named
13204 something starting with __ and the normal name is an alias. */
13205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13206 choke me
13207 #else
13208 f = $ac_func;
13209 #endif
13210
13211 ;
13212 return 0;
13213 }
13214 _ACEOF
13215 rm -f conftest.$ac_objext conftest$ac_exeext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13217 (eval $ac_link) 2>&5
13218 ac_status=$?
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
13221 { ac_try='test -s conftest$ac_exeext'
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 eval "$as_ac_var=yes"
13228 else
13229 echo "$as_me: failed program was:" >&5
13230 cat conftest.$ac_ext >&5
13231 eval "$as_ac_var=no"
13232 fi
13233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13234 fi
13235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13237 if test `eval echo '${'$as_ac_var'}'` = yes; then
13238 cat >>confdefs.h <<_ACEOF
13239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13240 _ACEOF
13241
13242 fi
13243 done
13244
13245 ac_cv_func_fork_works=$ac_cv_func_fork
13246 if test "x$ac_cv_func_fork" = xyes; then
13247 echo "$as_me:$LINENO: checking for working fork" >&5
13248 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
13249 if test "${ac_cv_func_fork_works+set}" = set; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 else
13252 if test "$cross_compiling" = yes; then
13253 ac_cv_func_fork_works=cross
13254 else
13255 cat >conftest.$ac_ext <<_ACEOF
13256 /* By Ruediger Kuhlmann. */
13257 #include <sys/types.h>
13258 #if HAVE_UNISTD_H
13259 # include <unistd.h>
13260 #endif
13261 /* Some systems only have a dummy stub for fork() */
13262 int main ()
13263 {
13264 if (fork() < 0)
13265 exit (1);
13266 exit (0);
13267 }
13268 _ACEOF
13269 rm -f conftest$ac_exeext
13270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13271 (eval $ac_link) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 ac_cv_func_fork_works=yes
13281 else
13282 echo "$as_me: program exited with status $ac_status" >&5
13283 echo "$as_me: failed program was:" >&5
13284 cat conftest.$ac_ext >&5
13285 ( exit $ac_status )
13286 ac_cv_func_fork_works=no
13287 fi
13288 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13289 fi
13290 fi
13291 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
13292 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
13293
13294 fi
13295 if test "x$ac_cv_func_fork_works" = xcross; then
13296 case $host in
13297 *-*-amigaos* | *-*-msdosdjgpp*)
13298 # Override, as these systems have only a dummy fork() stub
13299 ac_cv_func_fork_works=no
13300 ;;
13301 *)
13302 ac_cv_func_fork_works=yes
13303 ;;
13304 esac
13305 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13306 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13307 fi
13308 ac_cv_func_vfork_works=$ac_cv_func_vfork
13309 if test "x$ac_cv_func_vfork" = xyes; then
13310 echo "$as_me:$LINENO: checking for working vfork" >&5
13311 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
13312 if test "${ac_cv_func_vfork_works+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 else
13315 if test "$cross_compiling" = yes; then
13316 ac_cv_func_vfork_works=cross
13317 else
13318 cat >conftest.$ac_ext <<_ACEOF
13319 #line $LINENO "configure"
13320 #include "confdefs.h"
13321 /* Thanks to Paul Eggert for this test. */
13322 #include <stdio.h>
13323 #include <sys/types.h>
13324 #include <sys/stat.h>
13325 #if HAVE_UNISTD_H
13326 # include <unistd.h>
13327 #endif
13328 #if HAVE_VFORK_H
13329 # include <vfork.h>
13330 #endif
13331 /* On some sparc systems, changes by the child to local and incoming
13332 argument registers are propagated back to the parent. The compiler
13333 is told about this with #include <vfork.h>, but some compilers
13334 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13335 static variable whose address is put into a register that is
13336 clobbered by the vfork. */
13337 static
13338 #ifdef __cplusplus
13339 sparc_address_test (int arg)
13340 # else
13341 sparc_address_test (arg) int arg;
13342 #endif
13343 {
13344 static pid_t child;
13345 if (!child) {
13346 child = vfork ();
13347 if (child < 0) {
13348 perror ("vfork");
13349 _exit(2);
13350 }
13351 if (!child) {
13352 arg = getpid();
13353 write(-1, "", 0);
13354 _exit (arg);
13355 }
13356 }
13357 }
13358
13359 int
13360 main ()
13361 {
13362 pid_t parent = getpid ();
13363 pid_t child;
13364
13365 sparc_address_test ();
13366
13367 child = vfork ();
13368
13369 if (child == 0) {
13370 /* Here is another test for sparc vfork register problems. This
13371 test uses lots of local variables, at least as many local
13372 variables as main has allocated so far including compiler
13373 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13374 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13375 reuse the register of parent for one of the local variables,
13376 since it will think that parent can't possibly be used any more
13377 in this routine. Assigning to the local variable will thus
13378 munge parent in the parent process. */
13379 pid_t
13380 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13381 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13382 /* Convince the compiler that p..p7 are live; otherwise, it might
13383 use the same hardware register for all 8 local variables. */
13384 if (p != p1 || p != p2 || p != p3 || p != p4
13385 || p != p5 || p != p6 || p != p7)
13386 _exit(1);
13387
13388 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13389 from child file descriptors. If the child closes a descriptor
13390 before it execs or exits, this munges the parent's descriptor
13391 as well. Test for this by closing stdout in the child. */
13392 _exit(close(fileno(stdout)) != 0);
13393 } else {
13394 int status;
13395 struct stat st;
13396
13397 while (wait(&status) != child)
13398 ;
13399 exit(
13400 /* Was there some problem with vforking? */
13401 child < 0
13402
13403 /* Did the child fail? (This shouldn't happen.) */
13404 || status
13405
13406 /* Did the vfork/compiler bug occur? */
13407 || parent != getpid()
13408
13409 /* Did the file descriptor bug occur? */
13410 || fstat(fileno(stdout), &st) != 0
13411 );
13412 }
13413 }
13414 _ACEOF
13415 rm -f conftest$ac_exeext
13416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13417 (eval $ac_link) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
13426 ac_cv_func_vfork_works=yes
13427 else
13428 echo "$as_me: program exited with status $ac_status" >&5
13429 echo "$as_me: failed program was:" >&5
13430 cat conftest.$ac_ext >&5
13431 ( exit $ac_status )
13432 ac_cv_func_vfork_works=no
13433 fi
13434 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13435 fi
13436 fi
13437 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
13438 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
13439
13440 fi;
13441 if test "x$ac_cv_func_fork_works" = xcross; then
13442 ac_cv_func_vfork_works=ac_cv_func_vfork
13443 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13444 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13445 fi
13446
13447 if test "x$ac_cv_func_vfork_works" = xyes; then
13448
13449 cat >>confdefs.h <<\_ACEOF
13450 #define HAVE_WORKING_VFORK 1
13451 _ACEOF
13452
13453 else
13454
13455 cat >>confdefs.h <<\_ACEOF
13456 #define vfork fork
13457 _ACEOF
13458
13459 fi
13460 if test "x$ac_cv_func_fork_works" = xyes; then
13461
13462 cat >>confdefs.h <<\_ACEOF
13463 #define HAVE_WORKING_FORK 1
13464 _ACEOF
13465
13466 fi
13467
13468
13469 for ac_func in vprintf
13470 do
13471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13472 echo "$as_me:$LINENO: checking for $ac_func" >&5
13473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13474 if eval "test \"\${$as_ac_var+set}\" = set"; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477 cat >conftest.$ac_ext <<_ACEOF
13478 #line $LINENO "configure"
13479 #include "confdefs.h"
13480 /* System header to define __stub macros and hopefully few prototypes,
13481 which can conflict with char $ac_func (); below. */
13482 #include <assert.h>
13483 /* Override any gcc2 internal prototype to avoid an error. */
13484 #ifdef __cplusplus
13485 extern "C"
13486 #endif
13487 /* We use char because int might match the return type of a gcc2
13488 builtin and then its argument prototype would still apply. */
13489 char $ac_func ();
13490 char (*f) ();
13491
13492 #ifdef F77_DUMMY_MAIN
13493 # ifdef __cplusplus
13494 extern "C"
13495 # endif
13496 int F77_DUMMY_MAIN() { return 1; }
13497 #endif
13498 int
13499 main ()
13500 {
13501 /* The GNU C library defines this for functions which it implements
13502 to always fail with ENOSYS. Some functions are actually named
13503 something starting with __ and the normal name is an alias. */
13504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13505 choke me
13506 #else
13507 f = $ac_func;
13508 #endif
13509
13510 ;
13511 return 0;
13512 }
13513 _ACEOF
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13516 (eval $ac_link) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } &&
13520 { ac_try='test -s conftest$ac_exeext'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
13526 eval "$as_ac_var=yes"
13527 else
13528 echo "$as_me: failed program was:" >&5
13529 cat conftest.$ac_ext >&5
13530 eval "$as_ac_var=no"
13531 fi
13532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13533 fi
13534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13536 if test `eval echo '${'$as_ac_var'}'` = yes; then
13537 cat >>confdefs.h <<_ACEOF
13538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13539 _ACEOF
13540
13541 echo "$as_me:$LINENO: checking for _doprnt" >&5
13542 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13543 if test "${ac_cv_func__doprnt+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13545 else
13546 cat >conftest.$ac_ext <<_ACEOF
13547 #line $LINENO "configure"
13548 #include "confdefs.h"
13549 /* System header to define __stub macros and hopefully few prototypes,
13550 which can conflict with char _doprnt (); below. */
13551 #include <assert.h>
13552 /* Override any gcc2 internal prototype to avoid an error. */
13553 #ifdef __cplusplus
13554 extern "C"
13555 #endif
13556 /* We use char because int might match the return type of a gcc2
13557 builtin and then its argument prototype would still apply. */
13558 char _doprnt ();
13559 char (*f) ();
13560
13561 #ifdef F77_DUMMY_MAIN
13562 # ifdef __cplusplus
13563 extern "C"
13564 # endif
13565 int F77_DUMMY_MAIN() { return 1; }
13566 #endif
13567 int
13568 main ()
13569 {
13570 /* The GNU C library defines this for functions which it implements
13571 to always fail with ENOSYS. Some functions are actually named
13572 something starting with __ and the normal name is an alias. */
13573 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13574 choke me
13575 #else
13576 f = _doprnt;
13577 #endif
13578
13579 ;
13580 return 0;
13581 }
13582 _ACEOF
13583 rm -f conftest.$ac_objext conftest$ac_exeext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13585 (eval $ac_link) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } &&
13589 { ac_try='test -s conftest$ac_exeext'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595 ac_cv_func__doprnt=yes
13596 else
13597 echo "$as_me: failed program was:" >&5
13598 cat conftest.$ac_ext >&5
13599 ac_cv_func__doprnt=no
13600 fi
13601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13602 fi
13603 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13604 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13605 if test $ac_cv_func__doprnt = yes; then
13606
13607 cat >>confdefs.h <<\_ACEOF
13608 #define HAVE_DOPRNT 1
13609 _ACEOF
13610
13611 fi
13612
13613 fi
13614 done
13615
13616
13617
13618
13619
13620 echo "$as_me:$LINENO: checking how to manipulate tty attributes" >&5
13621 echo $ECHO_N "checking how to manipulate tty attributes... $ECHO_C" >&6
13622 if test "${ac_cv_struct_term+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 else
13625
13626
13627 if test "$ac_cv_header_termios_h" = yes; then
13628 ac_cv_struct_term=termios
13629 fi
13630 if test "$ac_cv_header_sys_termios_h" = yes; then
13631 ac_cv_struct_term=termios
13632 fi
13633
13634 if test -z "$ac_cv_struct_term" ; then
13635 cat >conftest.$ac_ext <<_ACEOF
13636 #line $LINENO "configure"
13637 #include "confdefs.h"
13638
13639 #ifdef HAVE_TERMIO_H
13640 #include <termio.h>
13641 #endif
13642 #ifdef HAVE_SYS_TERMIO_H
13643 #include <sys/termio.h>
13644 #endif
13645 #ifdef F77_DUMMY_MAIN
13646 # ifdef __cplusplus
13647 extern "C"
13648 # endif
13649 int F77_DUMMY_MAIN() { return 1; }
13650 #endif
13651 int
13652 main ()
13653 {
13654 struct termio t;t.c_iflag = 0
13655 ;
13656 return 0;
13657 }
13658 _ACEOF
13659 rm -f conftest.$ac_objext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661 (eval $ac_compile) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } &&
13665 { ac_try='test -s conftest.$ac_objext'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13671 ac_cv_struct_term=termio
13672 else
13673 echo "$as_me: failed program was:" >&5
13674 cat conftest.$ac_ext >&5
13675 fi
13676 rm -f conftest.$ac_objext conftest.$ac_ext
13677 fi
13678
13679 if test -z "$ac_cv_struct_term" ; then
13680 cat >conftest.$ac_ext <<_ACEOF
13681 #line $LINENO "configure"
13682 #include "confdefs.h"
13683 #include <sgtty.h>
13684 #ifdef F77_DUMMY_MAIN
13685 # ifdef __cplusplus
13686 extern "C"
13687 # endif
13688 int F77_DUMMY_MAIN() { return 1; }
13689 #endif
13690 int
13691 main ()
13692 {
13693
13694 struct sgttyb s;s.sg_flags = 0
13695 ;
13696 return 0;
13697 }
13698 _ACEOF
13699 rm -f conftest.$ac_objext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701 (eval $ac_compile) 2>&5
13702 ac_status=$?
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -s conftest.$ac_objext'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 ac_cv_struct_term=sgttyb
13712 else
13713 echo "$as_me: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13715 fi
13716 rm -f conftest.$ac_objext conftest.$ac_ext
13717 fi
13718 if test -z "$ac_cv_struct_term" ; then
13719 ac_cv_struct_term=UNDEFINED
13720 fi
13721
13722 fi
13723 echo "$as_me:$LINENO: result: $ac_cv_struct_term" >&5
13724 echo "${ECHO_T}$ac_cv_struct_term" >&6
13725 if test "$ac_cv_struct_term" = "sgttyb"; then
13726
13727 cat >>confdefs.h <<\_ACEOF
13728 #define USE_SGTTYB 1
13729 _ACEOF
13730
13731
13732 cat >>confdefs.h <<\_ACEOF
13733 #define USE_STTY SGTTYB
13734 _ACEOF
13735
13736 fi
13737 if test "$ac_cv_struct_term" = "termio"; then
13738
13739 cat >>confdefs.h <<\_ACEOF
13740 #define USE_TERMIO 1
13741 _ACEOF
13742
13743
13744 cat >>confdefs.h <<\_ACEOF
13745 #define USE_STTY TERMIO
13746 _ACEOF
13747
13748 fi
13749 if test "$ac_cv_struct_term" = "termios"; then
13750
13751 cat >>confdefs.h <<\_ACEOF
13752 #define USE_TERMIOS 1
13753 _ACEOF
13754
13755
13756 cat >>confdefs.h <<\_ACEOF
13757 #define USE_STTY TERMIOS
13758 _ACEOF
13759
13760 if test "$ac_cv_header_sys_termiox_h" = yes; then
13761
13762 cat >>confdefs.h <<\_ACEOF
13763 #define USE_TERMIOX 1
13764 _ACEOF
13765
13766 fi
13767 fi
13768
13769
13770 echo "$as_me:$LINENO: checking checking for struct exec" >&5
13771 echo $ECHO_N "checking checking for struct exec... $ECHO_C" >&6
13772 if test "${ac_cv_struct_exec+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 else
13775
13776 ac_cv_struct_exec=no
13777 if test "$ac_cv_header_a_out_h" != no ; then
13778 cat >conftest.$ac_ext <<_ACEOF
13779 #line $LINENO "configure"
13780 #include "confdefs.h"
13781
13782 #include <sys/types.h>
13783 #include <a.out.h>
13784 #ifdef F77_DUMMY_MAIN
13785 # ifdef __cplusplus
13786 extern "C"
13787 # endif
13788 int F77_DUMMY_MAIN() { return 1; }
13789 #endif
13790 int
13791 main ()
13792 {
13793 struct exec b; b.a_text = 0
13794 ;
13795 return 0;
13796 }
13797 _ACEOF
13798 rm -f conftest.$ac_objext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800 (eval $ac_compile) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -s conftest.$ac_objext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810 ac_cv_struct_exec=yes
13811 else
13812 echo "$as_me: failed program was:" >&5
13813 cat conftest.$ac_ext >&5
13814 ac_cv_struct_exec=no
13815 fi
13816 rm -f conftest.$ac_objext conftest.$ac_ext
13817 fi
13818
13819 fi
13820 echo "$as_me:$LINENO: result: $ac_cv_struct_exec" >&5
13821 echo "${ECHO_T}$ac_cv_struct_exec" >&6
13822 if test "$ac_cv_struct_exec" = yes; then
13823
13824 cat >>confdefs.h <<\_ACEOF
13825 #define HAVE_STRUCT_EXEC 1
13826 _ACEOF
13827
13828 fi
13829
13830
13831
13832 echo "$as_me:$LINENO: checking checking for lseek prototype" >&5
13833 echo $ECHO_N "checking checking for lseek prototype... $ECHO_C" >&6
13834 if test "${ac_cv_lseek_proto+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 else
13837
13838 cat >conftest.$ac_ext <<_ACEOF
13839 #line $LINENO "configure"
13840 #include "confdefs.h"
13841
13842 #ifdef HAVE_CTYPES_H
13843 #include <ctypes.h>
13844 #endif
13845 #ifdef HAVE_SYS_TYPES_H
13846 #include <sys/types.h>
13847 #endif
13848 #ifdef HAVE_SYS_UNISTD_H
13849 #include <sys/unistd.h>
13850 #endif
13851
13852 #ifdef F77_DUMMY_MAIN
13853 # ifdef __cplusplus
13854 extern "C"
13855 # endif
13856 int F77_DUMMY_MAIN() { return 1; }
13857 #endif
13858 int
13859 main ()
13860 {
13861 off_t x; x = lseek(0,"test",SEEK_SET);
13862 ;
13863 return 0;
13864 }
13865 _ACEOF
13866 rm -f conftest.$ac_objext
13867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13868 (eval $ac_compile) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } &&
13872 { ac_try='test -s conftest.$ac_objext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878 ac_cv_lseek_proto=no
13879 else
13880 echo "$as_me: failed program was:" >&5
13881 cat conftest.$ac_ext >&5
13882 ac_cv_lseek_proto=yes
13883 fi
13884 rm -f conftest.$ac_objext conftest.$ac_ext
13885
13886 fi
13887 echo "$as_me:$LINENO: result: $ac_cv_lseek_proto" >&5
13888 echo "${ECHO_T}$ac_cv_lseek_proto" >&6
13889 if test "$ac_cv_lseek_proto" = yes; then
13890
13891 cat >>confdefs.h <<\_ACEOF
13892 #define HAVE_LSEEK_PROTO 1
13893 _ACEOF
13894
13895 fi
13896
13897
13898 echo "$as_me:$LINENO: checking how to get filesystem free space" >&5
13899 echo $ECHO_N "checking how to get filesystem free space... $ECHO_C" >&6
13900 if test "${ac_cv_struct_fstype+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903
13904 fstype=
13905
13906 if test "$ac_cv_func_statvfs" != no ; then #{
13907 cat >conftest.$ac_ext <<_ACEOF
13908 #line $LINENO "configure"
13909 #include "confdefs.h"
13910
13911 #ifdef HAVE_CTYPES_H
13912 #include <ctypes.h>
13913 #endif
13914 #include <sys/types.h>
13915 #include <sys/param.h>
13916 #ifdef HAVE_SYS_STATVFS_H
13917 # include <sys/statvfs.h>
13918 #endif
13919 #ifdef HAVE_SYS_STATFS_H
13920 # include <sys/statfs.h>
13921 #endif
13922
13923 #ifdef HAVE_SYS_MOUNT_H
13924 # include <sys/mount.h>
13925 #endif
13926 #ifdef HAVE_SYS_VFS_H
13927 # include <sys/vfs.h>
13928 #endif
13929 #ifdef F77_DUMMY_MAIN
13930 # ifdef __cplusplus
13931 extern "C"
13932 # endif
13933 int F77_DUMMY_MAIN() { return 1; }
13934 #endif
13935 int
13936 main ()
13937 {
13938 struct statvfs s; statvfs ("/", &s); return(s.f_bavail+s.f_bsize)
13939 ;
13940 return 0;
13941 }
13942 _ACEOF
13943 rm -f conftest.$ac_objext
13944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945 (eval $ac_compile) 2>&5
13946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
13949 { ac_try='test -s conftest.$ac_objext'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13952 ac_status=$?
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 fstype=statvfs
13956 else
13957 echo "$as_me: failed program was:" >&5
13958 cat conftest.$ac_ext >&5
13959 fi
13960 rm -f conftest.$ac_objext conftest.$ac_ext
13961 fi #}
13962
13963
13964 if test "$ac_cv_func_statfs" != no ; then #{
13965 if test -z "$fstype" ; then #{
13966 cat >conftest.$ac_ext <<_ACEOF
13967 #line $LINENO "configure"
13968 #include "confdefs.h"
13969
13970 #ifdef HAVE_CTYPES_H
13971 #include <ctypes.h>
13972 #endif
13973 #include <sys/types.h>
13974 #include <sys/param.h>
13975 #ifdef HAVE_SYS_STATFS_H
13976 # include <sys/statfs.h>
13977 #endif
13978
13979 #ifdef HAVE_SYS_STATVFS_H
13980 # include <sys/statvfs.h>
13981 #endif
13982 #ifdef HAVE_SYS_MOUNT_H
13983 # include <sys/mount.h>
13984 #endif
13985 #ifdef HAVE_SYS_VFS_H
13986 # include <sys/vfs.h>
13987 #endif
13988 #ifdef F77_DUMMY_MAIN
13989 # ifdef __cplusplus
13990 extern "C"
13991 # endif
13992 int F77_DUMMY_MAIN() { return 1; }
13993 #endif
13994 int
13995 main ()
13996 {
13997 struct fs_data s; return(s.fd_bfree+s.fd_bsize)
13998 ;
13999 return 0;
14000 }
14001 _ACEOF
14002 rm -f conftest.$ac_objext
14003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14004 (eval $ac_compile) 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } &&
14008 { ac_try='test -s conftest.$ac_objext'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 fstype=Ultrix-statfs
14015 else
14016 echo "$as_me: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14018 fi
14019 rm -f conftest.$ac_objext conftest.$ac_ext
14020 fi #}
14021
14022 if test -z "$fstype" ; then #{
14023 cat >conftest.$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14025 #include "confdefs.h"
14026
14027 #ifdef HAVE_CTYPES_H
14028 #include <ctypes.h>
14029 #endif
14030 #include <sys/types.h>
14031 #include <sys/param.h>
14032 #ifdef HAVE_SYS_STATFS_H
14033 #include <sys/statfs.h>
14034 #endif
14035 #ifdef HAVE_SYS_MOUNT_H
14036 #include <sys/mount.h>
14037 #endif
14038 #ifdef HAVE_SYS_VFS_H
14039 #include <sys/vfs.h>
14040 #endif
14041 #ifdef F77_DUMMY_MAIN
14042 # ifdef __cplusplus
14043 extern "C"
14044 # endif
14045 int F77_DUMMY_MAIN() { return 1; }
14046 #endif
14047 int
14048 main ()
14049 {
14050 struct statfs s; return(s.f_bavail+s.f_bsize)
14051 ;
14052 return 0;
14053 }
14054 _ACEOF
14055 rm -f conftest.$ac_objext
14056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14057 (eval $ac_compile) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
14061 { ac_try='test -s conftest.$ac_objext'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 fstype=statfs
14068 else
14069 echo "$as_me: failed program was:" >&5
14070 cat conftest.$ac_ext >&5
14071 fi
14072 rm -f conftest.$ac_objext conftest.$ac_ext
14073 fi # }
14074
14075 if test -z "$fstype" ; then # {
14076 cat >conftest.$ac_ext <<_ACEOF
14077 #line $LINENO "configure"
14078 #include "confdefs.h"
14079
14080 #ifdef HAVE_CTYPES_H
14081 #include <ctypes.h>
14082 #endif
14083 #include <sys/types.h>
14084 #include <sys/param.h>
14085 #ifdef HAVE_SYS_STATFS_H
14086 #include <sys/statfs.h>
14087 #endif
14088 #ifdef HAVE_SYS_MOUNT_H
14089 #include <sys/mount.h>
14090 #endif
14091 #ifdef HAVE_SYS_VFS_H
14092 #include <sys/vfs.h>
14093 #endif
14094 #ifdef F77_DUMMY_MAIN
14095 # ifdef __cplusplus
14096 extern "C"
14097 # endif
14098 int F77_DUMMY_MAIN() { return 1; }
14099 #endif
14100 int
14101 main ()
14102 {
14103 struct statfs s; return(s.f_bfree+s.f_bsize)
14104 ;
14105 return 0;
14106 }
14107 _ACEOF
14108 rm -f conftest.$ac_objext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14110 (eval $ac_compile) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -s conftest.$ac_objext'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 fstype=SVR3-statfs
14121 else
14122 echo "$as_me: failed program was:" >&5
14123 cat conftest.$ac_ext >&5
14124 fi
14125 rm -f conftest.$ac_objext conftest.$ac_ext
14126 fi # }
14127 fi # }
14128
14129 if test -z "$fstype" ; then
14130 echo "cannot find a valid statfs-like structure!"
14131 fstype=UNKNOWN
14132 fi
14133
14134 ac_cv_struct_fstype=$fstype
14135
14136
14137 fi
14138 echo "$as_me:$LINENO: result: $ac_cv_struct_fstype" >&5
14139 echo "${ECHO_T}$ac_cv_struct_fstype" >&6
14140
14141 if test "$ac_cv_struct_fstype" = SVR3-statfs; then
14142
14143 cat >>confdefs.h <<\_ACEOF
14144 #define USE_STATFS_TYPE SVR3_STATFS
14145 _ACEOF
14146
14147 fi
14148 if test "$ac_cv_struct_fstype" = Ultrix-statfs; then
14149
14150 cat >>confdefs.h <<\_ACEOF
14151 #define USE_STATFS_TYPE ULTRIX_STATFS
14152 _ACEOF
14153
14154 fi
14155 if test "$ac_cv_struct_fstype" = statfs; then
14156
14157 cat >>confdefs.h <<\_ACEOF
14158 #define USE_STATFS_TYPE STATFS
14159 _ACEOF
14160
14161 fi
14162 if test "$ac_cv_struct_fstype" = statvfs; then
14163
14164 cat >>confdefs.h <<\_ACEOF
14165 #define USE_STATFS_TYPE STATVFS
14166 _ACEOF
14167
14168 fi
14169
14170
14171 echo "$as_me:$LINENO: checking for errno" >&5
14172 echo $ECHO_N "checking for errno... $ECHO_C" >&6
14173 if test "${ac_cv_errno+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176
14177 cat >conftest.$ac_ext <<_ACEOF
14178 #line $LINENO "configure"
14179 #include "confdefs.h"
14180
14181 #ifdef F77_DUMMY_MAIN
14182 # ifdef __cplusplus
14183 extern "C"
14184 # endif
14185 int F77_DUMMY_MAIN() { return 1; }
14186 #endif
14187 int
14188 main ()
14189 {
14190 extern int errno; return (errno);
14191 ;
14192 return 0;
14193 }
14194 _ACEOF
14195 rm -f conftest.$ac_objext conftest$ac_exeext
14196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14197 (eval $ac_link) 2>&5
14198 ac_status=$?
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } &&
14201 { ac_try='test -s conftest$ac_exeext'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
14207 ac_cv_errno=yes
14208 else
14209 echo "$as_me: failed program was:" >&5
14210 cat conftest.$ac_ext >&5
14211 ac_cv_errno=no
14212 fi
14213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14214
14215 fi
14216 echo "$as_me:$LINENO: result: $ac_cv_errno" >&5
14217 echo "${ECHO_T}$ac_cv_errno" >&6
14218 if test "$ac_cv_errno" = yes; then
14219
14220 cat >>confdefs.h <<\_ACEOF
14221 #define HAVE_ERRNO 1
14222 _ACEOF
14223
14224 echo "$as_me:$LINENO: checking for errno declaration" >&5
14225 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
14226 if test "${ac_cv_decl_errno+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229
14230 cat >conftest.$ac_ext <<_ACEOF
14231 #line $LINENO "configure"
14232 #include "confdefs.h"
14233
14234 #include <stdio.h>
14235 #ifdef HAVE_STDLIB_H
14236 #include <stdlib.h>
14237 #endif
14238 #ifdef HAVE_UNISTD_H
14239 #include <unistd.h>
14240 #endif
14241 #ifdef HAVE_ERRNO_H
14242 #include <errno.h>
14243
14244 #ifdef F77_DUMMY_MAIN
14245 # ifdef __cplusplus
14246 extern "C"
14247 # endif
14248 int F77_DUMMY_MAIN() { return 1; }
14249 #endif
14250 int
14251 main ()
14252 {
14253 return(sys_nerr);
14254 ;
14255 return 0;
14256 }
14257 _ACEOF
14258 rm -f conftest.$ac_objext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 (eval $ac_compile) 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } &&
14264 { ac_try='test -s conftest.$ac_objext'
14265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14267 ac_status=$?
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; }; then
14270 ac_cv_decl_errno=yes
14271 else
14272 echo "$as_me: failed program was:" >&5
14273 cat conftest.$ac_ext >&5
14274 ac_cv_decl_errno=no
14275 fi
14276 rm -f conftest.$ac_objext conftest.$ac_ext
14277
14278 fi
14279 echo "$as_me:$LINENO: result: $ac_cv_decl_errno" >&5
14280 echo "${ECHO_T}$ac_cv_decl_errno" >&6
14281 if test "$ac_cv_decl_errno" = yes; then
14282
14283 cat >>confdefs.h <<\_ACEOF
14284 #define HAVE_DECL_ERRNO 1
14285 _ACEOF
14286
14287 fi;
14288 fi
14289
14290 echo "$as_me:$LINENO: checking for sys_nerr" >&5
14291 echo $ECHO_N "checking for sys_nerr... $ECHO_C" >&6
14292 if test "${ac_cv_sys_nerr+set}" = set; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 else
14295
14296 cat >conftest.$ac_ext <<_ACEOF
14297 #line $LINENO "configure"
14298 #include "confdefs.h"
14299
14300 #ifdef F77_DUMMY_MAIN
14301 # ifdef __cplusplus
14302 extern "C"
14303 # endif
14304 int F77_DUMMY_MAIN() { return 1; }
14305 #endif
14306 int
14307 main ()
14308 {
14309 extern int sys_nerr; return (sys_nerr);
14310 ;
14311 return 0;
14312 }
14313 _ACEOF
14314 rm -f conftest.$ac_objext conftest$ac_exeext
14315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14316 (eval $ac_link) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -s conftest$ac_exeext'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 ac_cv_sys_nerr=yes
14327 else
14328 echo "$as_me: failed program was:" >&5
14329 cat conftest.$ac_ext >&5
14330 ac_cv_sys_nerr=no
14331 fi
14332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14333
14334 fi
14335 echo "$as_me:$LINENO: result: $ac_cv_sys_nerr" >&5
14336 echo "${ECHO_T}$ac_cv_sys_nerr" >&6
14337 if test "$ac_cv_sys_nerr" = yes; then
14338
14339 cat >>confdefs.h <<\_ACEOF
14340 #define HAVE_SYS_NERR 1
14341 _ACEOF
14342
14343 echo "$as_me:$LINENO: checking for sys_nerr declaration" >&5
14344 echo $ECHO_N "checking for sys_nerr declaration... $ECHO_C" >&6
14345 if test "${ac_cv_decl_sys_nerr+set}" = set; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348
14349 cat >conftest.$ac_ext <<_ACEOF
14350 #line $LINENO "configure"
14351 #include "confdefs.h"
14352
14353 #include <stdio.h>
14354 #ifdef HAVE_STDLIB_H
14355 #include <stdlib.h>
14356 #endif
14357 #ifdef HAVE_UNISTD_H
14358 #include <unistd.h>
14359 #endif
14360 #ifdef F77_DUMMY_MAIN
14361 # ifdef __cplusplus
14362 extern "C"
14363 # endif
14364 int F77_DUMMY_MAIN() { return 1; }
14365 #endif
14366 int
14367 main ()
14368 {
14369 return(sys_nerr);
14370 ;
14371 return 0;
14372 }
14373 _ACEOF
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } &&
14380 { ac_try='test -s conftest.$ac_objext'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 ac_cv_decl_sys_nerr_def=yes
14387 else
14388 echo "$as_me: failed program was:" >&5
14389 cat conftest.$ac_ext >&5
14390 ac_cv_decl_sys_nerr_def=no
14391 fi
14392 rm -f conftest.$ac_objext conftest.$ac_ext
14393
14394 fi
14395 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_nerr" >&5
14396 echo "${ECHO_T}$ac_cv_decl_sys_nerr" >&6
14397 if test "$ac_cv_decl_sys_nerr" = yes; then
14398
14399 cat >>confdefs.h <<\_ACEOF
14400 #define HAVE_DECL_SYS_NERR 1
14401 _ACEOF
14402
14403 fi
14404 fi
14405
14406 echo "$as_me:$LINENO: checking for sys_errlist array" >&5
14407 echo $ECHO_N "checking for sys_errlist array... $ECHO_C" >&6
14408 if test "${ac_cv_sys_errlist+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14410 else
14411 cat >conftest.$ac_ext <<_ACEOF
14412 #line $LINENO "configure"
14413 #include "confdefs.h"
14414
14415 #ifdef F77_DUMMY_MAIN
14416 # ifdef __cplusplus
14417 extern "C"
14418 # endif
14419 int F77_DUMMY_MAIN() { return 1; }
14420 #endif
14421 int
14422 main ()
14423 {
14424 extern char *sys_errlist[];
14425 sys_errlist[0];
14426 ;
14427 return 0;
14428 }
14429 _ACEOF
14430 rm -f conftest.$ac_objext conftest$ac_exeext
14431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14432 (eval $ac_link) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -s conftest$ac_exeext'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14442 ac_cv_sys_errlist=yes
14443 else
14444 echo "$as_me: failed program was:" >&5
14445 cat conftest.$ac_ext >&5
14446 ac_cv_sys_errlist=no
14447 fi
14448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14449
14450 fi
14451 echo "$as_me:$LINENO: result: $ac_cv_sys_errlist" >&5
14452 echo "${ECHO_T}$ac_cv_sys_errlist" >&6
14453 if test "$ac_cv_sys_errlist" = yes; then
14454
14455 cat >>confdefs.h <<\_ACEOF
14456 #define HAVE_SYS_ERRLIST 1
14457 _ACEOF
14458
14459 echo "$as_me:$LINENO: checking for sys_errlist declaration" >&5
14460 echo $ECHO_N "checking for sys_errlist declaration... $ECHO_C" >&6
14461 if test "${ac_cv_sys_errlist_def+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464 cat >conftest.$ac_ext <<_ACEOF
14465 #line $LINENO "configure"
14466 #include "confdefs.h"
14467
14468 #include <stdio.h>
14469 #include <errno.h>
14470 #ifdef HAVE_STDLIB_H
14471 #include <stdlib.h>
14472 #endif
14473 #ifdef HAVE_UNISTD_H
14474 #include <unistd.h>
14475 #endif
14476 #ifdef F77_DUMMY_MAIN
14477 # ifdef __cplusplus
14478 extern "C"
14479 # endif
14480 int F77_DUMMY_MAIN() { return 1; }
14481 #endif
14482 int
14483 main ()
14484 {
14485 char *s = sys_errlist[0]; return(*s);
14486 ;
14487 return 0;
14488 }
14489 _ACEOF
14490 rm -f conftest.$ac_objext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492 (eval $ac_compile) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
14496 { ac_try='test -s conftest.$ac_objext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14502 ac_cv_decl_sys_errlist=yes
14503 else
14504 echo "$as_me: failed program was:" >&5
14505 cat conftest.$ac_ext >&5
14506 ac_cv_decl_sys_errlist=no
14507 fi
14508 rm -f conftest.$ac_objext conftest.$ac_ext
14509
14510 fi
14511 echo "$as_me:$LINENO: result: $ac_cv_sys_errlist_def" >&5
14512 echo "${ECHO_T}$ac_cv_sys_errlist_def" >&6
14513 if test "$ac_cv_decl_sys_errlist" = yes; then
14514
14515 cat >>confdefs.h <<\_ACEOF
14516 #define HAVE_DECL_SYS_ERRLIST 1
14517 _ACEOF
14518
14519 fi
14520 fi
14521
14522
14523 echo "$as_me:$LINENO: checking for setproctitle declaration" >&5
14524 echo $ECHO_N "checking for setproctitle declaration... $ECHO_C" >&6
14525 if test "${ac_cv_decl_setproctitle_def+set}" = set; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 else
14528 cat >conftest.$ac_ext <<_ACEOF
14529 #line $LINENO "configure"
14530 #include "confdefs.h"
14531
14532 #include <stdio.h>
14533 #ifdef HAVE_STDLIB_H
14534 #include <stdlib.h>
14535 #endif
14536 #ifdef HAVE_UNISTD_H
14537 #include <unistd.h>
14538 #endif
14539 #ifdef HAVE_ERRNO_H
14540 #include <errno.h>
14541 #endif
14542
14543 #ifdef F77_DUMMY_MAIN
14544 # ifdef __cplusplus
14545 extern "C"
14546 # endif
14547 int F77_DUMMY_MAIN() { return 1; }
14548 #endif
14549 int
14550 main ()
14551 {
14552 setproctitle(0);
14553 ;
14554 return 0;
14555 }
14556 _ACEOF
14557 rm -f conftest.$ac_objext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14559 (eval $ac_compile) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } &&
14563 { ac_try='test -s conftest.$ac_objext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 ac_cv_decl_setproctitle_def=no
14570 else
14571 echo "$as_me: failed program was:" >&5
14572 cat conftest.$ac_ext >&5
14573 ac_cv_decl_setproctitle_def=yes
14574 fi
14575 rm -f conftest.$ac_objext conftest.$ac_ext
14576
14577 fi
14578 echo "$as_me:$LINENO: result: $ac_cv_decl_setproctitle_def" >&5
14579 echo "${ECHO_T}$ac_cv_decl_setproctitle_def" >&6
14580 if test "$ac_cv_decl_setproctitle_def" = yes; then
14581
14582 cat >>confdefs.h <<\_ACEOF
14583 #define HAVE_SETPROCTITLE_DEF 1
14584 _ACEOF
14585
14586 fi
14587
14588
14589
14590 echo "$as_me:$LINENO: checking for sys_siglist declaration" >&5
14591 echo $ECHO_N "checking for sys_siglist declaration... $ECHO_C" >&6
14592 if test "${ac_cv_decl_sys_siglist_def+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 else
14595 cat >conftest.$ac_ext <<_ACEOF
14596 #line $LINENO "configure"
14597 #include "confdefs.h"
14598
14599 #include <stdio.h>
14600 #include <sys/types.h>
14601 #ifdef HAVE_STDLIB_H
14602 #include <stdlib.h>
14603 #endif
14604 #ifdef HAVE_UNISTD_H
14605 #include <unistd.h>
14606 #endif
14607 #include <signal.h>
14608 #ifdef F77_DUMMY_MAIN
14609 # ifdef __cplusplus
14610 extern "C"
14611 # endif
14612 int F77_DUMMY_MAIN() { return 1; }
14613 #endif
14614 int
14615 main ()
14616 {
14617 printf("%s",sys_siglist[0]);
14618 ;
14619 return 0;
14620 }
14621 _ACEOF
14622 rm -f conftest.$ac_objext
14623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14624 (eval $ac_compile) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } &&
14628 { ac_try='test -s conftest.$ac_objext'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }; then
14634 ac_cv_decl_sys_siglist_def=yes
14635 else
14636 echo "$as_me: failed program was:" >&5
14637 cat conftest.$ac_ext >&5
14638 ac_cv_decl_sys_siglist_def=no
14639 fi
14640 rm -f conftest.$ac_objext conftest.$ac_ext
14641
14642 fi
14643 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist_def" >&5
14644 echo "${ECHO_T}$ac_cv_decl_sys_siglist_def" >&6
14645 if test "$ac_cv_decl_sys_siglist_def" = yes; then
14646
14647 cat >>confdefs.h <<\_ACEOF
14648 #define HAVE_SYS_SIGLIST_DEF 1
14649 _ACEOF
14650
14651 ac_cv_sys_siglist=yes
14652 fi
14653
14654 echo "$as_me:$LINENO: checking for _sys_siglist declaration" >&5
14655 echo $ECHO_N "checking for _sys_siglist declaration... $ECHO_C" >&6
14656 if test "${ac_cv_decl__sys_siglist_def+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14658 else
14659 cat >conftest.$ac_ext <<_ACEOF
14660 #line $LINENO "configure"
14661 #include "confdefs.h"
14662
14663 #include <stdio.h>
14664 #include <sys/types.h>
14665 #ifdef HAVE_STDLIB_H
14666 #include <stdlib.h>
14667 #endif
14668 #ifdef HAVE_UNISTD_H
14669 #include <unistd.h>
14670 #endif
14671 #include <signal.h>
14672 #ifdef F77_DUMMY_MAIN
14673 # ifdef __cplusplus
14674 extern "C"
14675 # endif
14676 int F77_DUMMY_MAIN() { return 1; }
14677 #endif
14678 int
14679 main ()
14680 {
14681 printf("%s",_sys_siglist[0]);
14682 ;
14683 return 0;
14684 }
14685 _ACEOF
14686 rm -f conftest.$ac_objext
14687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14688 (eval $ac_compile) 2>&5
14689 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
14692 { ac_try='test -s conftest.$ac_objext'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698 ac_cv_decl__sys_siglist_def=yes
14699 else
14700 echo "$as_me: failed program was:" >&5
14701 cat conftest.$ac_ext >&5
14702 ac_cv_decl__sys_siglist_def=no
14703 fi
14704 rm -f conftest.$ac_objext conftest.$ac_ext
14705
14706 fi
14707 echo "$as_me:$LINENO: result: $ac_cv_decl__sys_siglist_def" >&5
14708 echo "${ECHO_T}$ac_cv_decl__sys_siglist_def" >&6
14709 if test "$ac_cv_decl__sys_siglist_def" = yes; then
14710
14711 cat >>confdefs.h <<\_ACEOF
14712 #define HAVE__SYS_SIGLIST_DEF 1
14713 _ACEOF
14714
14715 ac_cv__sys_siglist=yes
14716 fi
14717
14718 echo "$as_me:$LINENO: checking for sys_siglist array" >&5
14719 echo $ECHO_N "checking for sys_siglist array... $ECHO_C" >&6
14720 if test "${ac_cv_sys_siglist+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723 cat >conftest.$ac_ext <<_ACEOF
14724 #line $LINENO "configure"
14725 #include "confdefs.h"
14726
14727 #include <stdio.h>
14728 #ifdef F77_DUMMY_MAIN
14729 # ifdef __cplusplus
14730 extern "C"
14731 # endif
14732 int F77_DUMMY_MAIN() { return 1; }
14733 #endif
14734 int
14735 main ()
14736 {
14737 extern int sys_siglist; printf("%d",sys_siglist);
14738 ;
14739 return 0;
14740 }
14741 _ACEOF
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } &&
14748 { ac_try='test -s conftest$ac_exeext'
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then
14754 ac_cv_sys_siglist=yes
14755 else
14756 echo "$as_me: failed program was:" >&5
14757 cat conftest.$ac_ext >&5
14758 ac_cv_sys_siglist=no
14759 fi
14760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14761
14762 fi
14763 echo "$as_me:$LINENO: result: $ac_cv_sys_siglist" >&5
14764 echo "${ECHO_T}$ac_cv_sys_siglist" >&6
14765 if test "$ac_cv_sys_siglist" = yes; then
14766
14767 cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_SYS_SIGLIST 1
14769 _ACEOF
14770
14771 fi
14772
14773 echo "$as_me:$LINENO: checking for _sys_siglist array" >&5
14774 echo $ECHO_N "checking for _sys_siglist array... $ECHO_C" >&6
14775 if test "${ac_cv__sys_siglist+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778 cat >conftest.$ac_ext <<_ACEOF
14779 #line $LINENO "configure"
14780 #include "confdefs.h"
14781
14782 #include <stdio.h>
14783 #ifdef F77_DUMMY_MAIN
14784 # ifdef __cplusplus
14785 extern "C"
14786 # endif
14787 int F77_DUMMY_MAIN() { return 1; }
14788 #endif
14789 int
14790 main ()
14791 {
14792 extern int _sys_siglist; printf("%d",_sys_siglist);
14793 ;
14794 return 0;
14795 }
14796 _ACEOF
14797 rm -f conftest.$ac_objext conftest$ac_exeext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14799 (eval $ac_link) 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } &&
14803 { ac_try='test -s conftest$ac_exeext'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 ac_cv__sys_siglist=yes
14810 else
14811 echo "$as_me: failed program was:" >&5
14812 cat conftest.$ac_ext >&5
14813 ac_cv__sys_siglist=no
14814 fi
14815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14816
14817 fi
14818 echo "$as_me:$LINENO: result: $ac_cv__sys_siglist" >&5
14819 echo "${ECHO_T}$ac_cv__sys_siglist" >&6
14820 if test "$ac_cv__sys_siglist" = yes; then
14821
14822 cat >>confdefs.h <<\_ACEOF
14823 #define HAVE__SYS_SIGLIST 1
14824 _ACEOF
14825
14826 fi
14827
14828
14829
14830 echo "$as_me:$LINENO: checking for getprgp() or getpgrp(0) form" >&5
14831 echo $ECHO_N "checking for getprgp() or getpgrp(0) form... $ECHO_C" >&6
14832 if test "${ac_cv_func_getpgrp_0+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14834 else
14835 cat >conftest.$ac_ext <<_ACEOF
14836 #line $LINENO "configure"
14837 #include "confdefs.h"
14838
14839 #ifdef HAVE_CTYPES_H
14840 #include <ctypes.h>
14841 #endif
14842 #include <sys/types.h>
14843 #ifdef HAVE_UNISTD_H
14844 # include <unistd.h>
14845 #endif
14846 #ifdef F77_DUMMY_MAIN
14847 # ifdef __cplusplus
14848 extern "C"
14849 # endif
14850 int F77_DUMMY_MAIN() { return 1; }
14851 #endif
14852 int
14853 main ()
14854 {
14855 getpgrp(0);
14856 ;
14857 return 0;
14858 }
14859 _ACEOF
14860 rm -f conftest.$ac_objext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 ac_cv_func_getpgrp_0=getpgrp_0
14873 else
14874 echo "$as_me: failed program was:" >&5
14875 cat conftest.$ac_ext >&5
14876 ac_cv_func_getpgrp_0=getpgrp
14877 fi
14878 rm -f conftest.$ac_objext conftest.$ac_ext
14879
14880 fi
14881 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_0" >&5
14882 echo "${ECHO_T}$ac_cv_func_getpgrp_0" >&6
14883 if test "$ac_cv_func_getpgrp_0" = getpgrp_0; then
14884
14885 cat >>confdefs.h <<\_ACEOF
14886 #define HAVE_GETPGRP_0 0
14887 _ACEOF
14888
14889 else
14890
14891 cat >>confdefs.h <<\_ACEOF
14892 #define HAVE_GETPGRP_0 1
14893 _ACEOF
14894
14895 fi
14896
14897
14898 echo "$as_me:$LINENO: checking for setprgp form" >&5
14899 echo $ECHO_N "checking for setprgp form... $ECHO_C" >&6
14900 if test "${ac_cv_func_setpgrp_0+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14902 else
14903 cat >conftest.$ac_ext <<_ACEOF
14904 #line $LINENO "configure"
14905 #include "confdefs.h"
14906
14907 #ifdef HAVE_CTYPES_H
14908 #include <ctypes.h>
14909 #endif
14910 #ifdef HAVE_SYS_TYPES_H
14911 # include <sys/types.h>
14912 #endif
14913 #ifdef HAVE_UNISTD_H
14914 # include <unistd.h>
14915 #endif
14916
14917 #ifdef F77_DUMMY_MAIN
14918 # ifdef __cplusplus
14919 extern "C"
14920 # endif
14921 int F77_DUMMY_MAIN() { return 1; }
14922 #endif
14923 int
14924 main ()
14925 {
14926 setpgrp(0,0);
14927 ;
14928 return 0;
14929 }
14930 _ACEOF
14931 rm -f conftest.$ac_objext
14932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14933 (eval $ac_compile) 2>&5
14934 ac_status=$?
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } &&
14937 { ac_try='test -s conftest.$ac_objext'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_cv_func_setpgrp_0=setpgrp_0
14944 else
14945 echo "$as_me: failed program was:" >&5
14946 cat conftest.$ac_ext >&5
14947 ac_cv_func_setpgrp_0=setpgrp
14948 fi
14949 rm -f conftest.$ac_objext conftest.$ac_ext
14950
14951 fi
14952 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_0" >&5
14953 echo "${ECHO_T}$ac_cv_func_setpgrp_0" >&6
14954 if test "$ac_cv_func_setpgrp_0" = setpgrp_0; then
14955
14956 cat >>confdefs.h <<\_ACEOF
14957 #define HAVE_SETPGRP_0 1
14958 _ACEOF
14959
14960 fi
14961
14962
14963 echo "$as_me:$LINENO: checking for obsolete union wait compatibility" >&5
14964 echo $ECHO_N "checking for obsolete union wait compatibility... $ECHO_C" >&6
14965 if test "${ac_cv_unionwait+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968
14969 cat >conftest.$ac_ext <<_ACEOF
14970 #line $LINENO "configure"
14971 #include "confdefs.h"
14972
14973 #ifdef HAVE_CTYPES_H
14974 #include <ctypes.h>
14975 #endif
14976 #include <sys/types.h>
14977 #include <sys/wait.h>
14978 #ifdef F77_DUMMY_MAIN
14979 # ifdef __cplusplus
14980 extern "C"
14981 # endif
14982 int F77_DUMMY_MAIN() { return 1; }
14983 #endif
14984 int
14985 main ()
14986 {
14987 union wait x;WIFEXITED(x);
14988 ;
14989 return 0;
14990 }
14991 _ACEOF
14992 rm -f conftest.$ac_objext
14993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14994 (eval $ac_compile) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try='test -s conftest.$ac_objext'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; }; then
15004 ac_cv_unionwait=yes
15005 else
15006 echo "$as_me: failed program was:" >&5
15007 cat conftest.$ac_ext >&5
15008 ac_cv_unionwait=no
15009 fi
15010 rm -f conftest.$ac_objext conftest.$ac_ext
15011
15012 fi
15013 echo "$as_me:$LINENO: result: $ac_cv_unionwait" >&5
15014 echo "${ECHO_T}$ac_cv_unionwait" >&6
15015 if test "$ac_cv_unionwait" = yes; then
15016
15017 cat >>confdefs.h <<\_ACEOF
15018 #define HAVE_UNION_WAIT 1
15019 _ACEOF
15020
15021 fi
15022
15023 echo "$as_me:$LINENO: checking for gethostname declaration" >&5
15024 echo $ECHO_N "checking for gethostname declaration... $ECHO_C" >&6
15025 if test "${ac_cv_decl_gethostname_def+set}" = set; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 else
15028 cat >conftest.$ac_ext <<_ACEOF
15029 #line $LINENO "configure"
15030 #include "confdefs.h"
15031
15032 #ifdef HAVE_CTYPES_H
15033 #include <ctypes.h>
15034 #endif
15035 #ifdef HAVE_STDIO_H
15036 #include <stdio.h>
15037 #endif
15038 #ifdef HAVE_STDLIB_H
15039 #include <stdlib.h>
15040 #endif
15041 #ifdef HAVE_UNISTD_H
15042 #include <unistd.h>
15043 #endif
15044 #ifdef F77_DUMMY_MAIN
15045 # ifdef __cplusplus
15046 extern "C"
15047 # endif
15048 int F77_DUMMY_MAIN() { return 1; }
15049 #endif
15050 int
15051 main ()
15052 {
15053 gethostname(1);
15054 ;
15055 return 0;
15056 }
15057 _ACEOF
15058 rm -f conftest.$ac_objext
15059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15060 (eval $ac_compile) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
15064 { ac_try='test -s conftest.$ac_objext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 ac_cv_decl_gethostname_def=no
15071 else
15072 echo "$as_me: failed program was:" >&5
15073 cat conftest.$ac_ext >&5
15074 ac_cv_decl_gethostname_def=yes
15075 fi
15076 rm -f conftest.$ac_objext conftest.$ac_ext
15077
15078 fi
15079 echo "$as_me:$LINENO: result: $ac_cv_decl_gethostname_def" >&5
15080 echo "${ECHO_T}$ac_cv_decl_gethostname_def" >&6
15081 if test "$ac_cv_decl_gethostname_def" = yes; then
15082
15083 cat >>confdefs.h <<\_ACEOF
15084 #define HAVE_GETHOSTNAME_DEF 1
15085 _ACEOF
15086
15087 fi
15088
15089 echo "$as_me:$LINENO: checking for innetgr declaration" >&5
15090 echo $ECHO_N "checking for innetgr declaration... $ECHO_C" >&6
15091 if test "${ac_cv_decl_innetgr_def+set}" = set; then
15092 echo $ECHO_N "(cached) $ECHO_C" >&6
15093 else
15094 cat >conftest.$ac_ext <<_ACEOF
15095 #line $LINENO "configure"
15096 #include "confdefs.h"
15097
15098 #ifdef HAVE_CTYPES_H
15099 #include <ctypes.h>
15100 #endif
15101 #ifdef HAVE_STDIO_H
15102 #include <stdio.h>
15103 #endif
15104 #ifdef HAVE_STDLIB_H
15105 #include <stdlib.h>
15106 #endif
15107 #ifdef HAVE_UNISTD_H
15108 #include <unistd.h>
15109 #endif
15110 #ifdef HAVE_NETDB_H
15111 #include <netdb.h>
15112 #endif
15113 #ifdef F77_DUMMY_MAIN
15114 # ifdef __cplusplus
15115 extern "C"
15116 # endif
15117 int F77_DUMMY_MAIN() { return 1; }
15118 #endif
15119 int
15120 main ()
15121 {
15122 printf("%d", innetgr(1));
15123 ;
15124 return 0;
15125 }
15126 _ACEOF
15127 rm -f conftest.$ac_objext
15128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15129 (eval $ac_compile) 2>&5
15130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
15133 { ac_try='test -s conftest.$ac_objext'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15139 ac_cv_decl_innetgr_def=no
15140 else
15141 echo "$as_me: failed program was:" >&5
15142 cat conftest.$ac_ext >&5
15143 ac_cv_decl_innetgr_def=yes
15144 fi
15145 rm -f conftest.$ac_objext conftest.$ac_ext
15146
15147 fi
15148 echo "$as_me:$LINENO: result: $ac_cv_decl_innetgr_def" >&5
15149 echo "${ECHO_T}$ac_cv_decl_innetgr_def" >&6
15150 if test "$ac_cv_decl_innetgr_def" = yes; then
15151
15152 cat >>confdefs.h <<\_ACEOF
15153 #define HAVE_INNETGR_DEF 1
15154 _ACEOF
15155
15156 fi
15157
15158
15159 echo "$as_me:$LINENO: checking for openlog declaration" >&5
15160 echo $ECHO_N "checking for openlog declaration... $ECHO_C" >&6
15161 if test "${ac_cv_decl_openlog_def+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164 cat >conftest.$ac_ext <<_ACEOF
15165 #line $LINENO "configure"
15166 #include "confdefs.h"
15167
15168 #include <stdio.h>
15169 #ifdef HAVE_CTYPES_H
15170 #include <ctypes.h>
15171 #endif
15172 #ifdef HAVE_STDARG_H
15173 #include <stdarg.h>
15174 #endif
15175 #ifdef HAVE_SYSLOG_H
15176 #include <syslog.h>
15177 #endif
15178 #ifdef F77_DUMMY_MAIN
15179 # ifdef __cplusplus
15180 extern "C"
15181 # endif
15182 int F77_DUMMY_MAIN() { return 1; }
15183 #endif
15184 int
15185 main ()
15186 {
15187 printf("%d",openlog);
15188 ;
15189 return 0;
15190 }
15191 _ACEOF
15192 rm -f conftest.$ac_objext
15193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15194 (eval $ac_compile) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } &&
15198 { ac_try='test -s conftest.$ac_objext'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 ac_cv_decl_openlog_def=yes
15205 else
15206 echo "$as_me: failed program was:" >&5
15207 cat conftest.$ac_ext >&5
15208 ac_cv_decl_openlog_def=no
15209 fi
15210 rm -f conftest.$ac_objext conftest.$ac_ext
15211
15212 fi
15213 echo "$as_me:$LINENO: result: $ac_cv_decl_openlog_def" >&5
15214 echo "${ECHO_T}$ac_cv_decl_openlog_def" >&6
15215 if test "$ac_cv_decl_openlog_def" = yes; then
15216
15217 cat >>confdefs.h <<\_ACEOF
15218 #define HAVE_OPENLOG_DEF 1
15219 _ACEOF
15220
15221 fi
15222
15223
15224 echo "$as_me:$LINENO: checking for syslog declaration" >&5
15225 echo $ECHO_N "checking for syslog declaration... $ECHO_C" >&6
15226 if test "${ac_cv_decl_syslog_def+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15228 else
15229 cat >conftest.$ac_ext <<_ACEOF
15230 #line $LINENO "configure"
15231 #include "confdefs.h"
15232
15233 #include <stdio.h>
15234 #ifdef HAVE_STDARG_H
15235 #include <stdarg.h>
15236 #endif
15237 #ifdef HAVE_SYSLOG_H
15238 #include <syslog.h>
15239 #endif
15240 #ifdef F77_DUMMY_MAIN
15241 # ifdef __cplusplus
15242 extern "C"
15243 # endif
15244 int F77_DUMMY_MAIN() { return 1; }
15245 #endif
15246 int
15247 main ()
15248 {
15249 printf("%d",syslog);
15250 ;
15251 return 0;
15252 }
15253 _ACEOF
15254 rm -f conftest.$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256 (eval $ac_compile) 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try='test -s conftest.$ac_objext'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15266 ac_cv_decl_syslog_def=yes
15267 else
15268 echo "$as_me: failed program was:" >&5
15269 cat conftest.$ac_ext >&5
15270 ac_cv_decl_syslog_def=no
15271 fi
15272 rm -f conftest.$ac_objext conftest.$ac_ext
15273
15274 fi
15275 echo "$as_me:$LINENO: result: $ac_cv_decl_syslog_def" >&5
15276 echo "${ECHO_T}$ac_cv_decl_syslog_def" >&6
15277 if test "$ac_cv_decl_syslog_def" = yes; then
15278
15279 cat >>confdefs.h <<\_ACEOF
15280 #define HAVE_SYSLOG_DEF 1
15281 _ACEOF
15282
15283 fi
15284
15285
15286 echo "$as_me:$LINENO: checking for struct in6_addr declaration" >&5
15287 echo $ECHO_N "checking for struct in6_addr declaration... $ECHO_C" >&6
15288 if test "${ac_cv_decl_in6_addr_def+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291 cat >conftest.$ac_ext <<_ACEOF
15292 #line $LINENO "configure"
15293 #include "confdefs.h"
15294
15295 #ifdef HAVE_CTYPES_H
15296 #include <ctypes.h>
15297 #endif
15298 #include <sys/types.h>
15299 #include <sys/socket.h>
15300 #include <netinet/in.h>
15301 #ifdef F77_DUMMY_MAIN
15302 # ifdef __cplusplus
15303 extern "C"
15304 # endif
15305 int F77_DUMMY_MAIN() { return 1; }
15306 #endif
15307 int
15308 main ()
15309 {
15310 struct in6_addr v;
15311 ;
15312 return 0;
15313 }
15314 _ACEOF
15315 rm -f conftest.$ac_objext
15316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15317 (eval $ac_compile) 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 ac_cv_decl_in6_addr_def=yes
15328 else
15329 echo "$as_me: failed program was:" >&5
15330 cat conftest.$ac_ext >&5
15331 ac_cv_decl_in6_addr_def=no
15332 fi
15333 rm -f conftest.$ac_objext conftest.$ac_ext
15334
15335 fi
15336 echo "$as_me:$LINENO: result: $ac_cv_decl_in6_addr_def" >&5
15337 echo "${ECHO_T}$ac_cv_decl_in6_addr_def" >&6
15338 if test "$ac_cv_decl_in6_addr_def" = yes; then
15339
15340 cat >>confdefs.h <<\_ACEOF
15341 #define IN6_ADDR 1
15342 _ACEOF
15343
15344 fi
15345
15346
15347 echo "$as_me:$LINENO: checking for struct in_addr6 declaration (LINUX)" >&5
15348 echo $ECHO_N "checking for struct in_addr6 declaration (LINUX)... $ECHO_C" >&6
15349 if test "${ac_cv_decl_in_addr6_def+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352 cat >conftest.$ac_ext <<_ACEOF
15353 #line $LINENO "configure"
15354 #include "confdefs.h"
15355
15356 #ifdef HAVE_CTYPES_H
15357 #include <ctypes.h>
15358 #endif
15359 #include <sys/types.h>
15360 #include <sys/socket.h>
15361 #include <netinet/in.h>
15362 #ifdef F77_DUMMY_MAIN
15363 # ifdef __cplusplus
15364 extern "C"
15365 # endif
15366 int F77_DUMMY_MAIN() { return 1; }
15367 #endif
15368 int
15369 main ()
15370 {
15371 struct in_addr6 v;
15372 ;
15373 return 0;
15374 }
15375 _ACEOF
15376 rm -f conftest.$ac_objext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15378 (eval $ac_compile) 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } &&
15382 { ac_try='test -s conftest.$ac_objext'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
15388 ac_cv_decl_in_addr6_def=yes
15389 else
15390 echo "$as_me: failed program was:" >&5
15391 cat conftest.$ac_ext >&5
15392 ac_cv_decl_in_addr6_def=no
15393 fi
15394 rm -f conftest.$ac_objext conftest.$ac_ext
15395
15396 fi
15397 echo "$as_me:$LINENO: result: $ac_cv_decl_in_addr6_def" >&5
15398 echo "${ECHO_T}$ac_cv_decl_in_addr6_def" >&6
15399 if test "$ac_cv_decl_in_addr6_def" = yes; then
15400
15401 cat >>confdefs.h <<\_ACEOF
15402 #define IN_ADDR6 1
15403 _ACEOF
15404
15405 fi
15406
15407
15408
15409 echo "$as_me:$LINENO: checking for struct stat has st_mtimespec.tv_nsec" >&5
15410 echo $ECHO_N "checking for struct stat has st_mtimespec.tv_nsec... $ECHO_C" >&6
15411 if test "${ac_cv_decl_st_mtimespec_tv_nsec+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 else
15414 cat >conftest.$ac_ext <<_ACEOF
15415 #line $LINENO "configure"
15416 #include "confdefs.h"
15417
15418 #ifdef HAVE_CTYPES_H
15419 #include <ctypes.h>
15420 #endif
15421 #include <sys/types.h>
15422 #ifdef HAVE_SYS_TIME_H
15423 #include <sys/time.h>
15424 #endif
15425 #include <sys/stat.h>
15426 #ifdef F77_DUMMY_MAIN
15427 # ifdef __cplusplus
15428 extern "C"
15429 # endif
15430 int F77_DUMMY_MAIN() { return 1; }
15431 #endif
15432 int
15433 main ()
15434 {
15435 struct stat statb; statb.st_mtimespec.tv_nsec;
15436 ;
15437 return 0;
15438 }
15439 _ACEOF
15440 rm -f conftest.$ac_objext
15441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15442 (eval $ac_compile) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
15446 { ac_try='test -s conftest.$ac_objext'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; }; then
15452 ac_cv_decl_st_mtimespec_tv_nsec=yes
15453 else
15454 echo "$as_me: failed program was:" >&5
15455 cat conftest.$ac_ext >&5
15456 ac_cv_decl_st_mtimespec_tv_nsec=no
15457 fi
15458 rm -f conftest.$ac_objext conftest.$ac_ext
15459
15460 fi
15461 echo "$as_me:$LINENO: result: $ac_cv_decl_st_mtimespec_tv_nsec" >&5
15462 echo "${ECHO_T}$ac_cv_decl_st_mtimespec_tv_nsec" >&6
15463 if test "$ac_cv_decl_st_mtimespec_tv_nsec" = yes; then
15464
15465 cat >>confdefs.h <<_ACEOF
15466 #define ST_MTIMESPEC_TV_NSEC 1
15467 _ACEOF
15468
15469 fi
15470
15471 echo "$as_me:$LINENO: checking for struct stat has st_mtimensec" >&5
15472 echo $ECHO_N "checking for struct stat has st_mtimensec... $ECHO_C" >&6
15473 if test "${ac_cv_decl_st_mtimensec+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476 cat >conftest.$ac_ext <<_ACEOF
15477 #line $LINENO "configure"
15478 #include "confdefs.h"
15479
15480 #ifdef HAVE_CTYPES_H
15481 #include <ctypes.h>
15482 #endif
15483 #include <sys/types.h>
15484 #if defined(HAVE_SYS_TIME_H)
15485 #include <sys/time.h>
15486 #endif
15487 #include <sys/stat.h>
15488 #ifdef F77_DUMMY_MAIN
15489 # ifdef __cplusplus
15490 extern "C"
15491 # endif
15492 int F77_DUMMY_MAIN() { return 1; }
15493 #endif
15494 int
15495 main ()
15496 {
15497 struct stat statb; statb.st_mtimensec;
15498 ;
15499 return 0;
15500 }
15501 _ACEOF
15502 rm -f conftest.$ac_objext
15503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15504 (eval $ac_compile) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -s conftest.$ac_objext'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15511 ac_status=$?
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15514 ac_cv_decl_st_mtimensec=yes
15515 else
15516 echo "$as_me: failed program was:" >&5
15517 cat conftest.$ac_ext >&5
15518 ac_cv_decl_st_mtimensec=no
15519 fi
15520 rm -f conftest.$ac_objext conftest.$ac_ext
15521
15522 fi
15523 echo "$as_me:$LINENO: result: $ac_cv_decl_st_mtimensec" >&5
15524 echo "${ECHO_T}$ac_cv_decl_st_mtimensec" >&6
15525 if test "$ac_cv_decl_st_mtimensec" = yes; then
15526
15527 cat >>confdefs.h <<_ACEOF
15528 #define ST_MTIMENSEC 1
15529 _ACEOF
15530
15531 fi
15532
15533
15534 echo "$as_me:$LINENO: checking for strcasecmp definition" >&5
15535 echo $ECHO_N "checking for strcasecmp definition... $ECHO_C" >&6
15536 if test "${ac_cv_decl_strcasecmp+set}" = set; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 else
15539 cat >conftest.$ac_ext <<_ACEOF
15540 #line $LINENO "configure"
15541 #include "confdefs.h"
15542
15543 #ifdef HAVE_CTYPES_H
15544 #include <ctypes.h>
15545 #endif
15546 #if defined(HAVE_STDLIB_H)
15547 #include <stdlib.h>
15548 #endif
15549 #if defined(HAVE_STRING_H)
15550 #include <string.h>
15551 #endif
15552 #if defined(HAVE_STRINGS_H)
15553 #include <strings.h>
15554 #endif
15555
15556 #ifdef F77_DUMMY_MAIN
15557 # ifdef __cplusplus
15558 extern "C"
15559 # endif
15560 int F77_DUMMY_MAIN() { return 1; }
15561 #endif
15562 int
15563 main ()
15564 {
15565 strcasecmp(1)
15566 ;
15567 return 0;
15568 }
15569 _ACEOF
15570 rm -f conftest.$ac_objext
15571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15572 (eval $ac_compile) 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } &&
15576 { ac_try='test -s conftest.$ac_objext'
15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15579 ac_status=$?
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
15582 ac_cv_decl_strcasecmp=no
15583 else
15584 echo "$as_me: failed program was:" >&5
15585 cat conftest.$ac_ext >&5
15586 ac_cv_decl_strcasecmp=yes
15587 fi
15588 rm -f conftest.$ac_objext conftest.$ac_ext
15589
15590 fi
15591 echo "$as_me:$LINENO: result: $ac_cv_decl_strcasecmp" >&5
15592 echo "${ECHO_T}$ac_cv_decl_strcasecmp" >&6
15593 if test "$ac_cv_decl_strcasecmp" = yes; then
15594
15595 cat >>confdefs.h <<_ACEOF
15596 #define HAVE_STRCASECMP_DEF 1
15597 _ACEOF
15598
15599 fi
15600
15601
15602 echo "$as_me:$LINENO: checking for flock definition" >&5
15603 echo $ECHO_N "checking for flock definition... $ECHO_C" >&6
15604 if test "${ac_cv_decl_flock+set}" = set; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15606 else
15607 cat >conftest.$ac_ext <<_ACEOF
15608 #line $LINENO "configure"
15609 #include "confdefs.h"
15610
15611 #ifdef HAVE_CTYPES_H
15612 #include <ctypes.h>
15613 #endif
15614 #if defined(HAVE_STDLIB_H)
15615 #include <stdlib.h>
15616 #endif
15617 #if defined(HAVE_SYS_FILE_H)
15618 #include <sys/file.h>
15619 #endif
15620 #if defined(HAVE_FCNTL_H)
15621 #include <fcntl.h>
15622 #endif
15623
15624 #ifdef F77_DUMMY_MAIN
15625 # ifdef __cplusplus
15626 extern "C"
15627 # endif
15628 int F77_DUMMY_MAIN() { return 1; }
15629 #endif
15630 int
15631 main ()
15632 {
15633 flock(1)
15634 ;
15635 return 0;
15636 }
15637 _ACEOF
15638 rm -f conftest.$ac_objext
15639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640 (eval $ac_compile) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try='test -s conftest.$ac_objext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 ac_cv_decl_flock=no
15651 else
15652 echo "$as_me: failed program was:" >&5
15653 cat conftest.$ac_ext >&5
15654 ac_cv_decl_flock=yes
15655 fi
15656 rm -f conftest.$ac_objext conftest.$ac_ext
15657
15658 fi
15659 echo "$as_me:$LINENO: result: $ac_cv_decl_flock" >&5
15660 echo "${ECHO_T}$ac_cv_decl_flock" >&6
15661 if test "$ac_cv_decl_flock" = yes; then
15662
15663 cat >>confdefs.h <<_ACEOF
15664 #define HAVE_FLOCK_DEF 1
15665 _ACEOF
15666
15667 fi
15668
15669
15670 # Find a good install program. We prefer a C program (faster),
15671 # so one script is as good as another. But avoid the broken or
15672 # incompatible versions:
15673 # SysV /etc/install, /usr/sbin/install
15674 # SunOS /usr/etc/install
15675 # IRIX /sbin/install
15676 # AIX /bin/install
15677 # AmigaOS /C/install, which installs bootblocks on floppy discs
15678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15681 # ./install, which can be erroneously created by make from ./install.sh.
15682 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15683 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15684 if test -z "$INSTALL"; then
15685 if test "${ac_cv_path_install+set}" = set; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15687 else
15688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15689 for as_dir in $PATH
15690 do
15691 IFS=$as_save_IFS
15692 test -z "$as_dir" && as_dir=.
15693 # Account for people who put trailing slashes in PATH elements.
15694 case $as_dir/ in
15695 ./ | .// | /cC/* | \
15696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15697 /usr/ucb/* ) ;;
15698 *)
15699 # OSF1 and SCO ODT 3.0 have their own names for install.
15700 # Don't use installbsd from OSF since it installs stuff as root
15701 # by default.
15702 for ac_prog in ginstall scoinst install; do
15703 for ac_exec_ext in '' $ac_executable_extensions; do
15704 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15705 if test $ac_prog = install &&
15706 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15707 # AIX install. It has an incompatible calling convention.
15708 :
15709 elif test $ac_prog = install &&
15710 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15711 # program-specific install script used by HP pwplus--don't use.
15712 :
15713 else
15714 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15715 break 3
15716 fi
15717 fi
15718 done
15719 done
15720 ;;
15721 esac
15722 done
15723
15724
15725 fi
15726 if test "${ac_cv_path_install+set}" = set; then
15727 INSTALL=$ac_cv_path_install
15728 else
15729 # As a last resort, use the slow shell script. We don't cache a
15730 # path for INSTALL within a source directory, because that will
15731 # break other packages using the cache if that directory is
15732 # removed, or if the path is relative.
15733 INSTALL=$ac_install_sh
15734 fi
15735 fi
15736 echo "$as_me:$LINENO: result: $INSTALL" >&5
15737 echo "${ECHO_T}$INSTALL" >&6
15738
15739 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15740 # It thinks the first close brace ends the variable substitution.
15741 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15742
15743 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15744
15745 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15746
15747 # Extract the first word of "auxman", so it can be a program name with args.
15748 set dummy auxman; ac_word=$2
15749 echo "$as_me:$LINENO: checking for $ac_word" >&5
15750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15751 if test "${ac_cv_prog_INSTALL_MAN+set}" = set; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 else
15754 if test -n "$INSTALL_MAN"; then
15755 ac_cv_prog_INSTALL_MAN="$INSTALL_MAN" # Let the user override the test.
15756 else
15757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15759 do
15760 IFS=$as_save_IFS
15761 test -z "$as_dir" && as_dir=.
15762 for ac_exec_ext in '' $ac_executable_extensions; do
15763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15764 ac_cv_prog_INSTALL_MAN="auxman"
15765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15766 break 2
15767 fi
15768 done
15769 done
15770
15771 test -z "$ac_cv_prog_INSTALL_MAN" && ac_cv_prog_INSTALL_MAN="$INSTALL -m 644"
15772 fi
15773 fi
15774 INSTALL_MAN=$ac_cv_prog_INSTALL_MAN
15775 if test -n "$INSTALL_MAN"; then
15776 echo "$as_me:$LINENO: result: $INSTALL_MAN" >&5
15777 echo "${ECHO_T}$INSTALL_MAN" >&6
15778 else
15779 echo "$as_me:$LINENO: result: no" >&5
15780 echo "${ECHO_T}no" >&6
15781 fi
15782
15783
15784 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
15785 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
15786 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
15787 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
15788 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 else
15790 cat >conftest.make <<\_ACEOF
15791 all:
15792 @echo 'ac_maketemp="${MAKE}"'
15793 _ACEOF
15794 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15795 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
15796 if test -n "$ac_maketemp"; then
15797 eval ac_cv_prog_make_${ac_make}_set=yes
15798 else
15799 eval ac_cv_prog_make_${ac_make}_set=no
15800 fi
15801 rm -f conftest.make
15802 fi
15803 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
15804 echo "$as_me:$LINENO: result: yes" >&5
15805 echo "${ECHO_T}yes" >&6
15806 SET_MAKE=
15807 else
15808 echo "$as_me:$LINENO: result: no" >&5
15809 echo "${ECHO_T}no" >&6
15810 SET_MAKE="MAKE=${MAKE-make}"
15811 fi
15812
15813
15814 echo "$as_me:$LINENO: checking for shell" >&5
15815 echo $ECHO_N "checking for shell... $ECHO_C" >&6
15816 SHELL=/bin/sh
15817 echo "$as_me:$LINENO: result: using $SHELL (FORCED)" >&5
15818 echo "${ECHO_T}using $SHELL (FORCED)" >&6
15819
15820
15821
15822 MKINSTALLDIRS=
15823 if test -n "$ac_aux_dir"; then
15824 case "$ac_aux_dir" in
15825 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15826 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15827 esac
15828 fi
15829 if test -z "$MKINSTALLDIRS"; then
15830 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15831 fi
15832
15833
15834
15835 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
15836 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
15837 # Check whether --enable-nls or --disable-nls was given.
15838 if test "${enable_nls+set}" = set; then
15839 enableval="$enable_nls"
15840 USE_NLS=$enableval
15841 else
15842 USE_NLS=no
15843 fi;
15844 echo "$as_me:$LINENO: result: $USE_NLS" >&5
15845 echo "${ECHO_T}$USE_NLS" >&6
15846
15847
15848
15849
15850
15851
15852 # Prepare PATH_SEPARATOR.
15853 # The user is always right.
15854 if test "${PATH_SEPARATOR+set}" != set; then
15855 echo "#! /bin/sh" >conf$$.sh
15856 echo "exit 0" >>conf$$.sh
15857 chmod +x conf$$.sh
15858 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15859 PATH_SEPARATOR=';'
15860 else
15861 PATH_SEPARATOR=:
15862 fi
15863 rm -f conf$$.sh
15864 fi
15865
15866 # Find out how to test for executable files. Don't use a zero-byte file,
15867 # as systems may use methods other than mode bits to determine executability.
15868 cat >conf$$.file <<_ASEOF
15869 #! /bin/sh
15870 exit 0
15871 _ASEOF
15872 chmod +x conf$$.file
15873 if test -x conf$$.file >/dev/null 2>&1; then
15874 ac_executable_p="test -x"
15875 else
15876 ac_executable_p="test -f"
15877 fi
15878 rm -f conf$$.file
15879
15880 # Extract the first word of "msgfmt", so it can be a program name with args.
15881 set dummy msgfmt; ac_word=$2
15882 echo "$as_me:$LINENO: checking for $ac_word" >&5
15883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15884 if test "${ac_cv_path_MSGFMT+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887 case "$MSGFMT" in
15888 [\\/]* | ?:[\\/]*)
15889 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15890 ;;
15891 *)
15892 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15893 for ac_dir in $PATH; do
15894 IFS="$ac_save_IFS"
15895 test -z "$ac_dir" && ac_dir=.
15896 for ac_exec_ext in '' $ac_executable_extensions; do
15897 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15898 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15899 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15900 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15901 break 2
15902 fi
15903 fi
15904 done
15905 done
15906 IFS="$ac_save_IFS"
15907 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15908 ;;
15909 esac
15910 fi
15911 MSGFMT="$ac_cv_path_MSGFMT"
15912 if test "$MSGFMT" != ":"; then
15913 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15914 echo "${ECHO_T}$MSGFMT" >&6
15915 else
15916 echo "$as_me:$LINENO: result: no" >&5
15917 echo "${ECHO_T}no" >&6
15918 fi
15919
15920 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15921 set dummy gmsgfmt; ac_word=$2
15922 echo "$as_me:$LINENO: checking for $ac_word" >&5
15923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15924 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15927 case $GMSGFMT in
15928 [\\/]* | ?:[\\/]*)
15929 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15930 ;;
15931 *)
15932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15933 for as_dir in $PATH
15934 do
15935 IFS=$as_save_IFS
15936 test -z "$as_dir" && as_dir=.
15937 for ac_exec_ext in '' $ac_executable_extensions; do
15938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15939 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15941 break 2
15942 fi
15943 done
15944 done
15945
15946 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15947 ;;
15948 esac
15949 fi
15950 GMSGFMT=$ac_cv_path_GMSGFMT
15951
15952 if test -n "$GMSGFMT"; then
15953 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15954 echo "${ECHO_T}$GMSGFMT" >&6
15955 else
15956 echo "$as_me:$LINENO: result: no" >&5
15957 echo "${ECHO_T}no" >&6
15958 fi
15959
15960
15961
15962 # Prepare PATH_SEPARATOR.
15963 # The user is always right.
15964 if test "${PATH_SEPARATOR+set}" != set; then
15965 echo "#! /bin/sh" >conf$$.sh
15966 echo "exit 0" >>conf$$.sh
15967 chmod +x conf$$.sh
15968 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15969 PATH_SEPARATOR=';'
15970 else
15971 PATH_SEPARATOR=:
15972 fi
15973 rm -f conf$$.sh
15974 fi
15975
15976 # Find out how to test for executable files. Don't use a zero-byte file,
15977 # as systems may use methods other than mode bits to determine executability.
15978 cat >conf$$.file <<_ASEOF
15979 #! /bin/sh
15980 exit 0
15981 _ASEOF
15982 chmod +x conf$$.file
15983 if test -x conf$$.file >/dev/null 2>&1; then
15984 ac_executable_p="test -x"
15985 else
15986 ac_executable_p="test -f"
15987 fi
15988 rm -f conf$$.file
15989
15990 # Extract the first word of "xgettext", so it can be a program name with args.
15991 set dummy xgettext; ac_word=$2
15992 echo "$as_me:$LINENO: checking for $ac_word" >&5
15993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15994 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 else
15997 case "$XGETTEXT" in
15998 [\\/]* | ?:[\\/]*)
15999 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16000 ;;
16001 *)
16002 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16003 for ac_dir in $PATH; do
16004 IFS="$ac_save_IFS"
16005 test -z "$ac_dir" && ac_dir=.
16006 for ac_exec_ext in '' $ac_executable_extensions; do
16007 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16008 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16009 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16010 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16011 break 2
16012 fi
16013 fi
16014 done
16015 done
16016 IFS="$ac_save_IFS"
16017 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16018 ;;
16019 esac
16020 fi
16021 XGETTEXT="$ac_cv_path_XGETTEXT"
16022 if test "$XGETTEXT" != ":"; then
16023 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16024 echo "${ECHO_T}$XGETTEXT" >&6
16025 else
16026 echo "$as_me:$LINENO: result: no" >&5
16027 echo "${ECHO_T}no" >&6
16028 fi
16029
16030 rm -f messages.po
16031
16032
16033 # Prepare PATH_SEPARATOR.
16034 # The user is always right.
16035 if test "${PATH_SEPARATOR+set}" != set; then
16036 echo "#! /bin/sh" >conf$$.sh
16037 echo "exit 0" >>conf$$.sh
16038 chmod +x conf$$.sh
16039 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16040 PATH_SEPARATOR=';'
16041 else
16042 PATH_SEPARATOR=:
16043 fi
16044 rm -f conf$$.sh
16045 fi
16046
16047 # Find out how to test for executable files. Don't use a zero-byte file,
16048 # as systems may use methods other than mode bits to determine executability.
16049 cat >conf$$.file <<_ASEOF
16050 #! /bin/sh
16051 exit 0
16052 _ASEOF
16053 chmod +x conf$$.file
16054 if test -x conf$$.file >/dev/null 2>&1; then
16055 ac_executable_p="test -x"
16056 else
16057 ac_executable_p="test -f"
16058 fi
16059 rm -f conf$$.file
16060
16061 # Extract the first word of "msgmerge", so it can be a program name with args.
16062 set dummy msgmerge; ac_word=$2
16063 echo "$as_me:$LINENO: checking for $ac_word" >&5
16064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16065 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16066 echo $ECHO_N "(cached) $ECHO_C" >&6
16067 else
16068 case "$MSGMERGE" in
16069 [\\/]* | ?:[\\/]*)
16070 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16071 ;;
16072 *)
16073 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16074 for ac_dir in $PATH; do
16075 IFS="$ac_save_IFS"
16076 test -z "$ac_dir" && ac_dir=.
16077 for ac_exec_ext in '' $ac_executable_extensions; do
16078 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16079 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16080 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16081 break 2
16082 fi
16083 fi
16084 done
16085 done
16086 IFS="$ac_save_IFS"
16087 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16088 ;;
16089 esac
16090 fi
16091 MSGMERGE="$ac_cv_path_MSGMERGE"
16092 if test "$MSGMERGE" != ":"; then
16093 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16094 echo "${ECHO_T}$MSGMERGE" >&6
16095 else
16096 echo "$as_me:$LINENO: result: no" >&5
16097 echo "${ECHO_T}no" >&6
16098 fi
16099
16100
16101 if test "$GMSGFMT" != ":"; then
16102 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16103 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16104 : ;
16105 else
16106 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16107 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16108 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
16109 GMSGFMT=":"
16110 fi
16111 fi
16112
16113 if test "$XGETTEXT" != ":"; then
16114 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16115 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16116 : ;
16117 else
16118 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16119 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
16120 XGETTEXT=":"
16121 fi
16122 rm -f messages.po
16123 fi
16124
16125 ac_config_commands="$ac_config_commands default-1"
16126
16127
16128
16129 if test "X$prefix" = "XNONE"; then
16130 acl_final_prefix="$ac_default_prefix"
16131 else
16132 acl_final_prefix="$prefix"
16133 fi
16134 if test "X$exec_prefix" = "XNONE"; then
16135 acl_final_exec_prefix='${prefix}'
16136 else
16137 acl_final_exec_prefix="$exec_prefix"
16138 fi
16139 acl_save_prefix="$prefix"
16140 prefix="$acl_final_prefix"
16141 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16142 prefix="$acl_save_prefix"
16143
16144
16145 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16146 if test "${with_gnu_ld+set}" = set; then
16147 withval="$with_gnu_ld"
16148 test "$withval" = no || with_gnu_ld=yes
16149 else
16150 with_gnu_ld=no
16151 fi;
16152 # Prepare PATH_SEPARATOR.
16153 # The user is always right.
16154 if test "${PATH_SEPARATOR+set}" != set; then
16155 echo "#! /bin/sh" >conf$$.sh
16156 echo "exit 0" >>conf$$.sh
16157 chmod +x conf$$.sh
16158 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16159 PATH_SEPARATOR=';'
16160 else
16161 PATH_SEPARATOR=:
16162 fi
16163 rm -f conf$$.sh
16164 fi
16165 ac_prog=ld
16166 if test "$GCC" = yes; then
16167 # Check if gcc -print-prog-name=ld gives a path.
16168 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16169 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16170 case $host in
16171 *-*-mingw*)
16172 # gcc leaves a trailing carriage return which upsets mingw
16173 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16174 *)
16175 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16176 esac
16177 case $ac_prog in
16178 # Accept absolute paths.
16179 [\\/]* | [A-Za-z]:[\\/]*)
16180 re_direlt='/[^/][^/]*/\.\./'
16181 # Canonicalize the path of ld
16182 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16183 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16184 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16185 done
16186 test -z "$LD" && LD="$ac_prog"
16187 ;;
16188 "")
16189 # If it fails, then pretend we aren't using GCC.
16190 ac_prog=ld
16191 ;;
16192 *)
16193 # If it is relative, then search for the first ld in PATH.
16194 with_gnu_ld=unknown
16195 ;;
16196 esac
16197 elif test "$with_gnu_ld" = yes; then
16198 echo "$as_me:$LINENO: checking for GNU ld" >&5
16199 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16200 else
16201 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16202 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16203 fi
16204 if test "${acl_cv_path_LD+set}" = set; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 else
16207 if test -z "$LD"; then
16208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16209 for ac_dir in $PATH; do
16210 test -z "$ac_dir" && ac_dir=.
16211 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16212 acl_cv_path_LD="$ac_dir/$ac_prog"
16213 # Check to see if the program is GNU ld. I'd rather use --version,
16214 # but apparently some GNU ld's only accept -v.
16215 # Break only if it was the GNU/non-GNU ld that we prefer.
16216 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16217 *GNU* | *'with BFD'*)
16218 test "$with_gnu_ld" != no && break ;;
16219 *)
16220 test "$with_gnu_ld" != yes && break ;;
16221 esac
16222 fi
16223 done
16224 IFS="$ac_save_ifs"
16225 else
16226 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16227 fi
16228 fi
16229
16230 LD="$acl_cv_path_LD"
16231 if test -n "$LD"; then
16232 echo "$as_me:$LINENO: result: $LD" >&5
16233 echo "${ECHO_T}$LD" >&6
16234 else
16235 echo "$as_me:$LINENO: result: no" >&5
16236 echo "${ECHO_T}no" >&6
16237 fi
16238 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16239 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16240 { (exit 1); exit 1; }; }
16241 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16242 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16243 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16247 case `$LD -v 2>&1 </dev/null` in
16248 *GNU* | *'with BFD'*)
16249 acl_cv_prog_gnu_ld=yes ;;
16250 *)
16251 acl_cv_prog_gnu_ld=no ;;
16252 esac
16253 fi
16254 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16255 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16256 with_gnu_ld=$acl_cv_prog_gnu_ld
16257
16258
16259
16260 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16261 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16262 if test "${acl_cv_rpath+set}" = set; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16264 else
16265
16266 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16267 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16268 . ./conftest.sh
16269 rm -f ./conftest.sh
16270 acl_cv_rpath=done
16271
16272 fi
16273 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16274 echo "${ECHO_T}$acl_cv_rpath" >&6
16275 wl="$acl_cv_wl"
16276 libext="$acl_cv_libext"
16277 shlibext="$acl_cv_shlibext"
16278 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16279 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16280 hardcode_direct="$acl_cv_hardcode_direct"
16281 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16282 # Check whether --enable-rpath or --disable-rpath was given.
16283 if test "${enable_rpath+set}" = set; then
16284 enableval="$enable_rpath"
16285 :
16286 else
16287 enable_rpath=yes
16288 fi;
16289
16290
16291
16292
16293
16294
16295
16296 use_additional=yes
16297
16298 acl_save_prefix="$prefix"
16299 prefix="$acl_final_prefix"
16300 acl_save_exec_prefix="$exec_prefix"
16301 exec_prefix="$acl_final_exec_prefix"
16302
16303 eval additional_includedir=\"$includedir\"
16304 eval additional_libdir=\"$libdir\"
16305
16306 exec_prefix="$acl_save_exec_prefix"
16307 prefix="$acl_save_prefix"
16308
16309
16310 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16311 if test "${with_libiconv_prefix+set}" = set; then
16312 withval="$with_libiconv_prefix"
16313
16314 if test "X$withval" = "Xno"; then
16315 use_additional=no
16316 else
16317 if test "X$withval" = "X"; then
16318
16319 acl_save_prefix="$prefix"
16320 prefix="$acl_final_prefix"
16321 acl_save_exec_prefix="$exec_prefix"
16322 exec_prefix="$acl_final_exec_prefix"
16323
16324 eval additional_includedir=\"$includedir\"
16325 eval additional_libdir=\"$libdir\"
16326
16327 exec_prefix="$acl_save_exec_prefix"
16328 prefix="$acl_save_prefix"
16329
16330 else
16331 additional_includedir="$withval/include"
16332 additional_libdir="$withval/lib"
16333 fi
16334 fi
16335
16336 fi;
16337 LIBICONV=
16338 LTLIBICONV=
16339 INCICONV=
16340 rpathdirs=
16341 ltrpathdirs=
16342 names_already_handled=
16343 names_next_round='iconv '
16344 while test -n "$names_next_round"; do
16345 names_this_round="$names_next_round"
16346 names_next_round=
16347 for name in $names_this_round; do
16348 already_handled=
16349 for n in $names_already_handled; do
16350 if test "$n" = "$name"; then
16351 already_handled=yes
16352 break
16353 fi
16354 done
16355 if test -z "$already_handled"; then
16356 names_already_handled="$names_already_handled $name"
16357 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16358 eval value=\"\$HAVE_LIB$uppername\"
16359 if test -n "$value"; then
16360 if test "$value" = yes; then
16361 eval value=\"\$LIB$uppername\"
16362 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16363 eval value=\"\$LTLIB$uppername\"
16364 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16365 else
16366 :
16367 fi
16368 else
16369 found_dir=
16370 found_la=
16371 found_so=
16372 found_a=
16373 if test $use_additional = yes; then
16374 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16375 found_dir="$additional_libdir"
16376 found_so="$additional_libdir/lib$name.$shlibext"
16377 if test -f "$additional_libdir/lib$name.la"; then
16378 found_la="$additional_libdir/lib$name.la"
16379 fi
16380 else
16381 if test -f "$additional_libdir/lib$name.$libext"; then
16382 found_dir="$additional_libdir"
16383 found_a="$additional_libdir/lib$name.$libext"
16384 if test -f "$additional_libdir/lib$name.la"; then
16385 found_la="$additional_libdir/lib$name.la"
16386 fi
16387 fi
16388 fi
16389 fi
16390 if test "X$found_dir" = "X"; then
16391 for x in $LDFLAGS $LTLIBICONV; do
16392
16393 acl_save_prefix="$prefix"
16394 prefix="$acl_final_prefix"
16395 acl_save_exec_prefix="$exec_prefix"
16396 exec_prefix="$acl_final_exec_prefix"
16397 eval x=\"$x\"
16398 exec_prefix="$acl_save_exec_prefix"
16399 prefix="$acl_save_prefix"
16400
16401 case "$x" in
16402 -L*)
16403 dir=`echo "X$x" | sed -e 's/^X-L//'`
16404 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16405 found_dir="$dir"
16406 found_so="$dir/lib$name.$shlibext"
16407 if test -f "$dir/lib$name.la"; then
16408 found_la="$dir/lib$name.la"
16409 fi
16410 else
16411 if test -f "$dir/lib$name.$libext"; then
16412 found_dir="$dir"
16413 found_a="$dir/lib$name.$libext"
16414 if test -f "$dir/lib$name.la"; then
16415 found_la="$dir/lib$name.la"
16416 fi
16417 fi
16418 fi
16419 ;;
16420 esac
16421 if test "X$found_dir" != "X"; then
16422 break
16423 fi
16424 done
16425 fi
16426 if test "X$found_dir" != "X"; then
16427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16428 if test "X$found_so" != "X"; then
16429 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16431 else
16432 haveit=
16433 for x in $ltrpathdirs; do
16434 if test "X$x" = "X$found_dir"; then
16435 haveit=yes
16436 break
16437 fi
16438 done
16439 if test -z "$haveit"; then
16440 ltrpathdirs="$ltrpathdirs $found_dir"
16441 fi
16442 if test "$hardcode_direct" = yes; then
16443 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16444 else
16445 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16446 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16447 haveit=
16448 for x in $rpathdirs; do
16449 if test "X$x" = "X$found_dir"; then
16450 haveit=yes
16451 break
16452 fi
16453 done
16454 if test -z "$haveit"; then
16455 rpathdirs="$rpathdirs $found_dir"
16456 fi
16457 else
16458 haveit=
16459 for x in $LDFLAGS $LIBICONV; do
16460
16461 acl_save_prefix="$prefix"
16462 prefix="$acl_final_prefix"
16463 acl_save_exec_prefix="$exec_prefix"
16464 exec_prefix="$acl_final_exec_prefix"
16465 eval x=\"$x\"
16466 exec_prefix="$acl_save_exec_prefix"
16467 prefix="$acl_save_prefix"
16468
16469 if test "X$x" = "X-L$found_dir"; then
16470 haveit=yes
16471 break
16472 fi
16473 done
16474 if test -z "$haveit"; then
16475 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16476 fi
16477 if test "$hardcode_minus_L" != no; then
16478 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16479 else
16480 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16481 fi
16482 fi
16483 fi
16484 fi
16485 else
16486 if test "X$found_a" != "X"; then
16487 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16488 else
16489 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16490 fi
16491 fi
16492 additional_includedir=
16493 case "$found_dir" in
16494 */lib | */lib/)
16495 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16496 additional_includedir="$basedir/include"
16497 ;;
16498 esac
16499 if test "X$additional_includedir" != "X"; then
16500 if test "X$additional_includedir" != "X/usr/include"; then
16501 haveit=
16502 if test "X$additional_includedir" = "X/usr/local/include"; then
16503 if test -n "$GCC"; then
16504 case $host_os in
16505 linux*) haveit=yes;;
16506 esac
16507 fi
16508 fi
16509 if test -z "$haveit"; then
16510 for x in $CPPFLAGS $INCICONV; do
16511
16512 acl_save_prefix="$prefix"
16513 prefix="$acl_final_prefix"
16514 acl_save_exec_prefix="$exec_prefix"
16515 exec_prefix="$acl_final_exec_prefix"
16516 eval x=\"$x\"
16517 exec_prefix="$acl_save_exec_prefix"
16518 prefix="$acl_save_prefix"
16519
16520 if test "X$x" = "X-I$additional_includedir"; then
16521 haveit=yes
16522 break
16523 fi
16524 done
16525 if test -z "$haveit"; then
16526 if test -d "$additional_includedir"; then
16527 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16528 fi
16529 fi
16530 fi
16531 fi
16532 fi
16533 if test -n "$found_la"; then
16534 save_libdir="$libdir"
16535 case "$found_la" in
16536 */* | *\\*) . "$found_la" ;;
16537 *) . "./$found_la" ;;
16538 esac
16539 libdir="$save_libdir"
16540 for dep in $dependency_libs; do
16541 case "$dep" in
16542 -L*)
16543 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16544 if test "X$additional_libdir" != "X/usr/lib"; then
16545 haveit=
16546 if test "X$additional_libdir" = "X/usr/local/lib"; then
16547 if test -n "$GCC"; then
16548 case $host_os in
16549 linux*) haveit=yes;;
16550 esac
16551 fi
16552 fi
16553 if test -z "$haveit"; then
16554 haveit=
16555 for x in $LDFLAGS $LIBICONV; do
16556
16557 acl_save_prefix="$prefix"
16558 prefix="$acl_final_prefix"
16559 acl_save_exec_prefix="$exec_prefix"
16560 exec_prefix="$acl_final_exec_prefix"
16561 eval x=\"$x\"
16562 exec_prefix="$acl_save_exec_prefix"
16563 prefix="$acl_save_prefix"
16564
16565 if test "X$x" = "X-L$additional_libdir"; then
16566 haveit=yes
16567 break
16568 fi
16569 done
16570 if test -z "$haveit"; then
16571 if test -d "$additional_libdir"; then
16572 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16573 fi
16574 fi
16575 haveit=
16576 for x in $LDFLAGS $LTLIBICONV; do
16577
16578 acl_save_prefix="$prefix"
16579 prefix="$acl_final_prefix"
16580 acl_save_exec_prefix="$exec_prefix"
16581 exec_prefix="$acl_final_exec_prefix"
16582 eval x=\"$x\"
16583 exec_prefix="$acl_save_exec_prefix"
16584 prefix="$acl_save_prefix"
16585
16586 if test "X$x" = "X-L$additional_libdir"; then
16587 haveit=yes
16588 break
16589 fi
16590 done
16591 if test -z "$haveit"; then
16592 if test -d "$additional_libdir"; then
16593 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16594 fi
16595 fi
16596 fi
16597 fi
16598 ;;
16599 -R*)
16600 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16601 if test "$enable_rpath" != no; then
16602 haveit=
16603 for x in $rpathdirs; do
16604 if test "X$x" = "X$dir"; then
16605 haveit=yes
16606 break
16607 fi
16608 done
16609 if test -z "$haveit"; then
16610 rpathdirs="$rpathdirs $dir"
16611 fi
16612 haveit=
16613 for x in $ltrpathdirs; do
16614 if test "X$x" = "X$dir"; then
16615 haveit=yes
16616 break
16617 fi
16618 done
16619 if test -z "$haveit"; then
16620 ltrpathdirs="$ltrpathdirs $dir"
16621 fi
16622 fi
16623 ;;
16624 -l*)
16625 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16626 ;;
16627 *.la)
16628 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16629 ;;
16630 *)
16631 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16632 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16633 ;;
16634 esac
16635 done
16636 fi
16637 else
16638 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16639 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16640 fi
16641 fi
16642 fi
16643 done
16644 done
16645 if test "X$rpathdirs" != "X"; then
16646 if test -n "$hardcode_libdir_separator"; then
16647 alldirs=
16648 for found_dir in $rpathdirs; do
16649 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16650 done
16651 acl_save_libdir="$libdir"
16652 libdir="$alldirs"
16653 eval flag=\"$hardcode_libdir_flag_spec\"
16654 libdir="$acl_save_libdir"
16655 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16656 else
16657 for found_dir in $rpathdirs; do
16658 acl_save_libdir="$libdir"
16659 libdir="$found_dir"
16660 eval flag=\"$hardcode_libdir_flag_spec\"
16661 libdir="$acl_save_libdir"
16662 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16663 done
16664 fi
16665 fi
16666 if test "X$ltrpathdirs" != "X"; then
16667 for found_dir in $ltrpathdirs; do
16668 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16669 done
16670 fi
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16690 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
16691 # Check whether --enable-nls or --disable-nls was given.
16692 if test "${enable_nls+set}" = set; then
16693 enableval="$enable_nls"
16694 USE_NLS=$enableval
16695 else
16696 USE_NLS=no
16697 fi;
16698 echo "$as_me:$LINENO: result: $USE_NLS" >&5
16699 echo "${ECHO_T}$USE_NLS" >&6
16700
16701
16702
16703
16704 LIBINTL=
16705 LTLIBINTL=
16706 POSUB=
16707
16708 if test "$USE_NLS" = "yes"; then
16709 gt_use_preinstalled_gnugettext=no
16710
16711
16712
16713
16714
16715
16716 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
16717 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
16718 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16720 else
16721 cat >conftest.$ac_ext <<_ACEOF
16722 #line $LINENO "configure"
16723 #include "confdefs.h"
16724 #include <libintl.h>
16725 extern int _nl_msg_cat_cntr;
16726 extern int *_nl_domain_bindings;
16727 #ifdef F77_DUMMY_MAIN
16728 # ifdef __cplusplus
16729 extern "C"
16730 # endif
16731 int F77_DUMMY_MAIN() { return 1; }
16732 #endif
16733 int
16734 main ()
16735 {
16736 bindtextdomain ("", "");
16737 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
16738 ;
16739 return 0;
16740 }
16741 _ACEOF
16742 rm -f conftest.$ac_objext conftest$ac_exeext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16744 (eval $ac_link) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -s conftest$ac_exeext'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16751 ac_status=$?
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 gt_cv_func_gnugettext1_libc=yes
16755 else
16756 echo "$as_me: failed program was:" >&5
16757 cat conftest.$ac_ext >&5
16758 gt_cv_func_gnugettext1_libc=no
16759 fi
16760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16761 fi
16762 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
16763 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
16764
16765 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
16766
16767
16768
16769
16770
16771 am_save_CPPFLAGS="$CPPFLAGS"
16772
16773 for element in $INCICONV; do
16774 haveit=
16775 for x in $CPPFLAGS; do
16776
16777 acl_save_prefix="$prefix"
16778 prefix="$acl_final_prefix"
16779 acl_save_exec_prefix="$exec_prefix"
16780 exec_prefix="$acl_final_exec_prefix"
16781 eval x=\"$x\"
16782 exec_prefix="$acl_save_exec_prefix"
16783 prefix="$acl_save_prefix"
16784
16785 if test "X$x" = "X$element"; then
16786 haveit=yes
16787 break
16788 fi
16789 done
16790 if test -z "$haveit"; then
16791 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16792 fi
16793 done
16794
16795
16796 echo "$as_me:$LINENO: checking for iconv" >&5
16797 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16798 if test "${am_cv_func_iconv+set}" = set; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 else
16801
16802 am_cv_func_iconv="no, consider installing GNU libiconv"
16803 am_cv_lib_iconv=no
16804 cat >conftest.$ac_ext <<_ACEOF
16805 #line $LINENO "configure"
16806 #include "confdefs.h"
16807 #include <stdlib.h>
16808 #include <iconv.h>
16809 #ifdef F77_DUMMY_MAIN
16810 # ifdef __cplusplus
16811 extern "C"
16812 # endif
16813 int F77_DUMMY_MAIN() { return 1; }
16814 #endif
16815 int
16816 main ()
16817 {
16818 iconv_t cd = iconv_open("","");
16819 iconv(cd,NULL,NULL,NULL,NULL);
16820 iconv_close(cd);
16821 ;
16822 return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext conftest$ac_exeext
16826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16827 (eval $ac_link) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } &&
16831 { ac_try='test -s conftest$ac_exeext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 am_cv_func_iconv=yes
16838 else
16839 echo "$as_me: failed program was:" >&5
16840 cat conftest.$ac_ext >&5
16841 fi
16842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16843 if test "$am_cv_func_iconv" != yes; then
16844 am_save_LIBS="$LIBS"
16845 LIBS="$LIBS $LIBICONV"
16846 cat >conftest.$ac_ext <<_ACEOF
16847 #line $LINENO "configure"
16848 #include "confdefs.h"
16849 #include <stdlib.h>
16850 #include <iconv.h>
16851 #ifdef F77_DUMMY_MAIN
16852 # ifdef __cplusplus
16853 extern "C"
16854 # endif
16855 int F77_DUMMY_MAIN() { return 1; }
16856 #endif
16857 int
16858 main ()
16859 {
16860 iconv_t cd = iconv_open("","");
16861 iconv(cd,NULL,NULL,NULL,NULL);
16862 iconv_close(cd);
16863 ;
16864 return 0;
16865 }
16866 _ACEOF
16867 rm -f conftest.$ac_objext conftest$ac_exeext
16868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16869 (eval $ac_link) 2>&5
16870 ac_status=$?
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try='test -s conftest$ac_exeext'
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; }; then
16879 am_cv_lib_iconv=yes
16880 am_cv_func_iconv=yes
16881 else
16882 echo "$as_me: failed program was:" >&5
16883 cat conftest.$ac_ext >&5
16884 fi
16885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16886 LIBS="$am_save_LIBS"
16887 fi
16888
16889 fi
16890 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16891 echo "${ECHO_T}$am_cv_func_iconv" >&6
16892 if test "$am_cv_func_iconv" = yes; then
16893
16894 cat >>confdefs.h <<\_ACEOF
16895 #define HAVE_ICONV 1
16896 _ACEOF
16897
16898 fi
16899 if test "$am_cv_lib_iconv" = yes; then
16900 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16901 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
16902 echo "$as_me:$LINENO: result: $LIBICONV" >&5
16903 echo "${ECHO_T}$LIBICONV" >&6
16904 else
16905 CPPFLAGS="$am_save_CPPFLAGS"
16906 LIBICONV=
16907 LTLIBICONV=
16908 fi
16909
16910
16911
16912
16913
16914
16915 use_additional=yes
16916
16917 acl_save_prefix="$prefix"
16918 prefix="$acl_final_prefix"
16919 acl_save_exec_prefix="$exec_prefix"
16920 exec_prefix="$acl_final_exec_prefix"
16921
16922 eval additional_includedir=\"$includedir\"
16923 eval additional_libdir=\"$libdir\"
16924
16925 exec_prefix="$acl_save_exec_prefix"
16926 prefix="$acl_save_prefix"
16927
16928
16929 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
16930 if test "${with_libintl_prefix+set}" = set; then
16931 withval="$with_libintl_prefix"
16932
16933 if test "X$withval" = "Xno"; then
16934 use_additional=no
16935 else
16936 if test "X$withval" = "X"; then
16937
16938 acl_save_prefix="$prefix"
16939 prefix="$acl_final_prefix"
16940 acl_save_exec_prefix="$exec_prefix"
16941 exec_prefix="$acl_final_exec_prefix"
16942
16943 eval additional_includedir=\"$includedir\"
16944 eval additional_libdir=\"$libdir\"
16945
16946 exec_prefix="$acl_save_exec_prefix"
16947 prefix="$acl_save_prefix"
16948
16949 else
16950 additional_includedir="$withval/include"
16951 additional_libdir="$withval/lib"
16952 fi
16953 fi
16954
16955 fi;
16956 LIBINTL=
16957 LTLIBINTL=
16958 INCINTL=
16959 rpathdirs=
16960 ltrpathdirs=
16961 names_already_handled=
16962 names_next_round='intl '
16963 while test -n "$names_next_round"; do
16964 names_this_round="$names_next_round"
16965 names_next_round=
16966 for name in $names_this_round; do
16967 already_handled=
16968 for n in $names_already_handled; do
16969 if test "$n" = "$name"; then
16970 already_handled=yes
16971 break
16972 fi
16973 done
16974 if test -z "$already_handled"; then
16975 names_already_handled="$names_already_handled $name"
16976 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16977 eval value=\"\$HAVE_LIB$uppername\"
16978 if test -n "$value"; then
16979 if test "$value" = yes; then
16980 eval value=\"\$LIB$uppername\"
16981 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16982 eval value=\"\$LTLIB$uppername\"
16983 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16984 else
16985 :
16986 fi
16987 else
16988 found_dir=
16989 found_la=
16990 found_so=
16991 found_a=
16992 if test $use_additional = yes; then
16993 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16994 found_dir="$additional_libdir"
16995 found_so="$additional_libdir/lib$name.$shlibext"
16996 if test -f "$additional_libdir/lib$name.la"; then
16997 found_la="$additional_libdir/lib$name.la"
16998 fi
16999 else
17000 if test -f "$additional_libdir/lib$name.$libext"; then
17001 found_dir="$additional_libdir"
17002 found_a="$additional_libdir/lib$name.$libext"
17003 if test -f "$additional_libdir/lib$name.la"; then
17004 found_la="$additional_libdir/lib$name.la"
17005 fi
17006 fi
17007 fi
17008 fi
17009 if test "X$found_dir" = "X"; then
17010 for x in $LDFLAGS $LTLIBINTL; do
17011
17012 acl_save_prefix="$prefix"
17013 prefix="$acl_final_prefix"
17014 acl_save_exec_prefix="$exec_prefix"
17015 exec_prefix="$acl_final_exec_prefix"
17016 eval x=\"$x\"
17017 exec_prefix="$acl_save_exec_prefix"
17018 prefix="$acl_save_prefix"
17019
17020 case "$x" in
17021 -L*)
17022 dir=`echo "X$x" | sed -e 's/^X-L//'`
17023 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17024 found_dir="$dir"
17025 found_so="$dir/lib$name.$shlibext"
17026 if test -f "$dir/lib$name.la"; then
17027 found_la="$dir/lib$name.la"
17028 fi
17029 else
17030 if test -f "$dir/lib$name.$libext"; then
17031 found_dir="$dir"
17032 found_a="$dir/lib$name.$libext"
17033 if test -f "$dir/lib$name.la"; then
17034 found_la="$dir/lib$name.la"
17035 fi
17036 fi
17037 fi
17038 ;;
17039 esac
17040 if test "X$found_dir" != "X"; then
17041 break
17042 fi
17043 done
17044 fi
17045 if test "X$found_dir" != "X"; then
17046 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17047 if test "X$found_so" != "X"; then
17048 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17049 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17050 else
17051 haveit=
17052 for x in $ltrpathdirs; do
17053 if test "X$x" = "X$found_dir"; then
17054 haveit=yes
17055 break
17056 fi
17057 done
17058 if test -z "$haveit"; then
17059 ltrpathdirs="$ltrpathdirs $found_dir"
17060 fi
17061 if test "$hardcode_direct" = yes; then
17062 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17063 else
17064 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17065 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17066 haveit=
17067 for x in $rpathdirs; do
17068 if test "X$x" = "X$found_dir"; then
17069 haveit=yes
17070 break
17071 fi
17072 done
17073 if test -z "$haveit"; then
17074 rpathdirs="$rpathdirs $found_dir"
17075 fi
17076 else
17077 haveit=
17078 for x in $LDFLAGS $LIBINTL; do
17079
17080 acl_save_prefix="$prefix"
17081 prefix="$acl_final_prefix"
17082 acl_save_exec_prefix="$exec_prefix"
17083 exec_prefix="$acl_final_exec_prefix"
17084 eval x=\"$x\"
17085 exec_prefix="$acl_save_exec_prefix"
17086 prefix="$acl_save_prefix"
17087
17088 if test "X$x" = "X-L$found_dir"; then
17089 haveit=yes
17090 break
17091 fi
17092 done
17093 if test -z "$haveit"; then
17094 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17095 fi
17096 if test "$hardcode_minus_L" != no; then
17097 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17098 else
17099 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17100 fi
17101 fi
17102 fi
17103 fi
17104 else
17105 if test "X$found_a" != "X"; then
17106 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17107 else
17108 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17109 fi
17110 fi
17111 additional_includedir=
17112 case "$found_dir" in
17113 */lib | */lib/)
17114 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17115 additional_includedir="$basedir/include"
17116 ;;
17117 esac
17118 if test "X$additional_includedir" != "X"; then
17119 if test "X$additional_includedir" != "X/usr/include"; then
17120 haveit=
17121 if test "X$additional_includedir" = "X/usr/local/include"; then
17122 if test -n "$GCC"; then
17123 case $host_os in
17124 linux*) haveit=yes;;
17125 esac
17126 fi
17127 fi
17128 if test -z "$haveit"; then
17129 for x in $CPPFLAGS $INCINTL; do
17130
17131 acl_save_prefix="$prefix"
17132 prefix="$acl_final_prefix"
17133 acl_save_exec_prefix="$exec_prefix"
17134 exec_prefix="$acl_final_exec_prefix"
17135 eval x=\"$x\"
17136 exec_prefix="$acl_save_exec_prefix"
17137 prefix="$acl_save_prefix"
17138
17139 if test "X$x" = "X-I$additional_includedir"; then
17140 haveit=yes
17141 break
17142 fi
17143 done
17144 if test -z "$haveit"; then
17145 if test -d "$additional_includedir"; then
17146 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17147 fi
17148 fi
17149 fi
17150 fi
17151 fi
17152 if test -n "$found_la"; then
17153 save_libdir="$libdir"
17154 case "$found_la" in
17155 */* | *\\*) . "$found_la" ;;
17156 *) . "./$found_la" ;;
17157 esac
17158 libdir="$save_libdir"
17159 for dep in $dependency_libs; do
17160 case "$dep" in
17161 -L*)
17162 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17163 if test "X$additional_libdir" != "X/usr/lib"; then
17164 haveit=
17165 if test "X$additional_libdir" = "X/usr/local/lib"; then
17166 if test -n "$GCC"; then
17167 case $host_os in
17168 linux*) haveit=yes;;
17169 esac
17170 fi
17171 fi
17172 if test -z "$haveit"; then
17173 haveit=
17174 for x in $LDFLAGS $LIBINTL; do
17175
17176 acl_save_prefix="$prefix"
17177 prefix="$acl_final_prefix"
17178 acl_save_exec_prefix="$exec_prefix"
17179 exec_prefix="$acl_final_exec_prefix"
17180 eval x=\"$x\"
17181 exec_prefix="$acl_save_exec_prefix"
17182 prefix="$acl_save_prefix"
17183
17184 if test "X$x" = "X-L$additional_libdir"; then
17185 haveit=yes
17186 break
17187 fi
17188 done
17189 if test -z "$haveit"; then
17190 if test -d "$additional_libdir"; then
17191 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17192 fi
17193 fi
17194 haveit=
17195 for x in $LDFLAGS $LTLIBINTL; do
17196
17197 acl_save_prefix="$prefix"
17198 prefix="$acl_final_prefix"
17199 acl_save_exec_prefix="$exec_prefix"
17200 exec_prefix="$acl_final_exec_prefix"
17201 eval x=\"$x\"
17202 exec_prefix="$acl_save_exec_prefix"
17203 prefix="$acl_save_prefix"
17204
17205 if test "X$x" = "X-L$additional_libdir"; then
17206 haveit=yes
17207 break
17208 fi
17209 done
17210 if test -z "$haveit"; then
17211 if test -d "$additional_libdir"; then
17212 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17213 fi
17214 fi
17215 fi
17216 fi
17217 ;;
17218 -R*)
17219 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17220 if test "$enable_rpath" != no; then
17221 haveit=
17222 for x in $rpathdirs; do
17223 if test "X$x" = "X$dir"; then
17224 haveit=yes
17225 break
17226 fi
17227 done
17228 if test -z "$haveit"; then
17229 rpathdirs="$rpathdirs $dir"
17230 fi
17231 haveit=
17232 for x in $ltrpathdirs; do
17233 if test "X$x" = "X$dir"; then
17234 haveit=yes
17235 break
17236 fi
17237 done
17238 if test -z "$haveit"; then
17239 ltrpathdirs="$ltrpathdirs $dir"
17240 fi
17241 fi
17242 ;;
17243 -l*)
17244 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17245 ;;
17246 *.la)
17247 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17248 ;;
17249 *)
17250 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17251 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17252 ;;
17253 esac
17254 done
17255 fi
17256 else
17257 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17258 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17259 fi
17260 fi
17261 fi
17262 done
17263 done
17264 if test "X$rpathdirs" != "X"; then
17265 if test -n "$hardcode_libdir_separator"; then
17266 alldirs=
17267 for found_dir in $rpathdirs; do
17268 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17269 done
17270 acl_save_libdir="$libdir"
17271 libdir="$alldirs"
17272 eval flag=\"$hardcode_libdir_flag_spec\"
17273 libdir="$acl_save_libdir"
17274 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17275 else
17276 for found_dir in $rpathdirs; do
17277 acl_save_libdir="$libdir"
17278 libdir="$found_dir"
17279 eval flag=\"$hardcode_libdir_flag_spec\"
17280 libdir="$acl_save_libdir"
17281 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17282 done
17283 fi
17284 fi
17285 if test "X$ltrpathdirs" != "X"; then
17286 for found_dir in $ltrpathdirs; do
17287 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17288 done
17289 fi
17290
17291 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17292 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17293 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296 gt_save_CPPFLAGS="$CPPFLAGS"
17297 CPPFLAGS="$CPPFLAGS $INCINTL"
17298 gt_save_LIBS="$LIBS"
17299 LIBS="$LIBS $LIBINTL"
17300 cat >conftest.$ac_ext <<_ACEOF
17301 #line $LINENO "configure"
17302 #include "confdefs.h"
17303 #include <libintl.h>
17304 extern int _nl_msg_cat_cntr;
17305 extern
17306 #ifdef __cplusplus
17307 "C"
17308 #endif
17309 const char *_nl_expand_alias ();
17310 #ifdef F77_DUMMY_MAIN
17311 # ifdef __cplusplus
17312 extern "C"
17313 # endif
17314 int F77_DUMMY_MAIN() { return 1; }
17315 #endif
17316 int
17317 main ()
17318 {
17319 bindtextdomain ("", "");
17320 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17321 ;
17322 return 0;
17323 }
17324 _ACEOF
17325 rm -f conftest.$ac_objext conftest$ac_exeext
17326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17327 (eval $ac_link) 2>&5
17328 ac_status=$?
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try='test -s conftest$ac_exeext'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 gt_cv_func_gnugettext1_libintl=yes
17338 else
17339 echo "$as_me: failed program was:" >&5
17340 cat conftest.$ac_ext >&5
17341 gt_cv_func_gnugettext1_libintl=no
17342 fi
17343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17344 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17345 LIBS="$LIBS $LIBICONV"
17346 cat >conftest.$ac_ext <<_ACEOF
17347 #line $LINENO "configure"
17348 #include "confdefs.h"
17349 #include <libintl.h>
17350 extern int _nl_msg_cat_cntr;
17351 extern
17352 #ifdef __cplusplus
17353 "C"
17354 #endif
17355 const char *_nl_expand_alias ();
17356 #ifdef F77_DUMMY_MAIN
17357 # ifdef __cplusplus
17358 extern "C"
17359 # endif
17360 int F77_DUMMY_MAIN() { return 1; }
17361 #endif
17362 int
17363 main ()
17364 {
17365 bindtextdomain ("", "");
17366 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17367 ;
17368 return 0;
17369 }
17370 _ACEOF
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17373 (eval $ac_link) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -s conftest$ac_exeext'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 LIBINTL="$LIBINTL $LIBICONV"
17384 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17385 gt_cv_func_gnugettext1_libintl=yes
17386
17387 else
17388 echo "$as_me: failed program was:" >&5
17389 cat conftest.$ac_ext >&5
17390 fi
17391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17392 fi
17393 CPPFLAGS="$gt_save_CPPFLAGS"
17394 LIBS="$gt_save_LIBS"
17395 fi
17396 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
17397 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
17398 fi
17399
17400 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17401 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17402 && test "$PACKAGE" != gettext-runtime \
17403 && test "$PACKAGE" != gettext-tools; }; then
17404 gt_use_preinstalled_gnugettext=yes
17405 else
17406 LIBINTL=
17407 LTLIBINTL=
17408 INCINTL=
17409 fi
17410
17411
17412
17413 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17414 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17415
17416 cat >>confdefs.h <<\_ACEOF
17417 #define ENABLE_NLS 1
17418 _ACEOF
17419
17420 else
17421 USE_NLS=no
17422 fi
17423 fi
17424
17425 echo "$as_me:$LINENO: checking whether to use NLS" >&5
17426 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
17427 echo "$as_me:$LINENO: result: $USE_NLS" >&5
17428 echo "${ECHO_T}$USE_NLS" >&6
17429 if test "$USE_NLS" = "yes"; then
17430 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
17431 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
17432 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17433 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17434 gt_source="external libintl"
17435 else
17436 gt_source="libc"
17437 fi
17438 else
17439 gt_source="included intl directory"
17440 fi
17441 echo "$as_me:$LINENO: result: $gt_source" >&5
17442 echo "${ECHO_T}$gt_source" >&6
17443 fi
17444
17445 if test "$USE_NLS" = "yes"; then
17446
17447 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17448 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17449 echo "$as_me:$LINENO: checking how to link with libintl" >&5
17450 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17451 echo "$as_me:$LINENO: result: $LIBINTL" >&5
17452 echo "${ECHO_T}$LIBINTL" >&6
17453
17454 for element in $INCINTL; do
17455 haveit=
17456 for x in $CPPFLAGS; do
17457
17458 acl_save_prefix="$prefix"
17459 prefix="$acl_final_prefix"
17460 acl_save_exec_prefix="$exec_prefix"
17461 exec_prefix="$acl_final_exec_prefix"
17462 eval x=\"$x\"
17463 exec_prefix="$acl_save_exec_prefix"
17464 prefix="$acl_save_prefix"
17465
17466 if test "X$x" = "X$element"; then
17467 haveit=yes
17468 break
17469 fi
17470 done
17471 if test -z "$haveit"; then
17472 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17473 fi
17474 done
17475
17476 fi
17477
17478
17479 cat >>confdefs.h <<\_ACEOF
17480 #define HAVE_GETTEXT 1
17481 _ACEOF
17482
17483
17484 cat >>confdefs.h <<\_ACEOF
17485 #define HAVE_DCGETTEXT 1
17486 _ACEOF
17487
17488 fi
17489
17490 POSUB=po
17491 fi
17492
17493
17494
17495 INTLLIBS="$LIBINTL"
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507 if test "$ac_cv_c_compiler_gnu" = yes; then
17508 CPPFLAGS="$CPPFLAGS -g -W -Wall -Werror -Wno-unused "
17509 CFLAGS="$CFLAGS -g -W -Wall -Werror -Wno-unused "
17510 fi;
17511
17512 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile fonts/Makefile DOCS/Makefile UTILS/accounting.sh UTILS/sendhp.sh UTILS/supported UTILS/fixupdate src/extract_pjl src/wrapper po/Makefile.in"
17513 cat >confcache <<\_ACEOF
17514 # This file is a shell script that caches the results of configure
17515 # tests run on this system so they can be shared between configure
17516 # scripts and configure runs, see configure's option --config-cache.
17517 # It is not useful on other systems. If it contains results you don't
17518 # want to keep, you may remove or edit it.
17519 #
17520 # config.status only pays attention to the cache file if you give it
17521 # the --recheck option to rerun configure.
17522 #
17523 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17524 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17525 # following values.
17526
17527 _ACEOF
17528
17529 # The following way of writing the cache mishandles newlines in values,
17530 # but we know of no workaround that is simple, portable, and efficient.
17531 # So, don't put newlines in cache variables' values.
17532 # Ultrix sh set writes to stderr and can't be redirected directly,
17533 # and sets the high bit in the cache file unless we assign to the vars.
17534 {
17535 (set) 2>&1 |
17536 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17537 *ac_space=\ *)
17538 # `set' does not quote correctly, so add quotes (double-quote
17539 # substitution turns \\\\ into \\, and sed turns \\ into \).
17540 sed -n \
17541 "s/'/'\\\\''/g;
17542 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17543 ;;
17544 *)
17545 # `set' quotes correctly as required by POSIX, so do not add quotes.
17546 sed -n \
17547 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17548 ;;
17549 esac;
17550 } |
17551 sed '
17552 t clear
17553 : clear
17554 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17555 t end
17556 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17557 : end' >>confcache
17558 if cmp -s $cache_file confcache; then :; else
17559 if test -w $cache_file; then
17560 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17561 cat confcache >$cache_file
17562 else
17563 echo "not updating unwritable cache $cache_file"
17564 fi
17565 fi
17566 rm -f confcache
17567
17568 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17569 # Let make expand exec_prefix.
17570 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17571
17572 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17573 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17574 # trailing colons and then remove the whole line if VPATH becomes empty
17575 # (actually we leave an empty line to preserve line numbers).
17576 if test "x$srcdir" = x.; then
17577 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17578 s/:*\$(srcdir):*/:/;
17579 s/:*\${srcdir}:*/:/;
17580 s/:*@srcdir@:*/:/;
17581 s/^\([^=]*=[ ]*\):*/\1/;
17582 s/:*$//;
17583 s/^[^=]*=[ ]*$//;
17584 }'
17585 fi
17586
17587 DEFS=-DHAVE_CONFIG_H
17588
17589
17590 : ${CONFIG_STATUS=./config.status}
17591 ac_clean_files_save=$ac_clean_files
17592 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17593 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17594 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17595 cat >$CONFIG_STATUS <<_ACEOF
17596 #! $SHELL
17597 # Generated by $as_me.
17598 # Run this file to recreate the current configuration.
17599 # Compiler output produced by configure, useful for debugging
17600 # configure, is in config.log if it exists.
17601
17602 debug=false
17603 SHELL=\${CONFIG_SHELL-$SHELL}
17604 _ACEOF
17605
17606 cat >>$CONFIG_STATUS <<\_ACEOF
17607
17608 ## --------------------- ##
17609 ## M4sh Initialization. ##
17610 ## --------------------- ##
17611
17612 # Be Bourne compatible
17613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17614 emulate sh
17615 NULLCMD=:
17616 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17617 set -o posix
17618 fi
17619
17620 # NLS nuisances.
17621 # Support unset when possible.
17622 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17623 as_unset=unset
17624 else
17625 as_unset=false
17626 fi
17627
17628 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17629 { $as_unset LANG || test "${LANG+set}" != set; } ||
17630 { LANG=C; export LANG; }
17631 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17632 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17633 { LC_ALL=C; export LC_ALL; }
17634 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17635 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17636 { LC_TIME=C; export LC_TIME; }
17637 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17638 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17639 { LC_CTYPE=C; export LC_CTYPE; }
17640 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17641 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17642 { LANGUAGE=C; export LANGUAGE; }
17643 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17644 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17645 { LC_COLLATE=C; export LC_COLLATE; }
17646 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17647 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17648 { LC_NUMERIC=C; export LC_NUMERIC; }
17649 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17650 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17651 { LC_MESSAGES=C; export LC_MESSAGES; }
17652
17653
17654 # Name of the executable.
17655 as_me=`(basename "$0") 2>/dev/null ||
17656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17657 X"$0" : 'X\(//\)$' \| \
17658 X"$0" : 'X\(/\)$' \| \
17659 . : '\(.\)' 2>/dev/null ||
17660 echo X/"$0" |
17661 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17662 /^X\/\(\/\/\)$/{ s//\1/; q; }
17663 /^X\/\(\/\).*/{ s//\1/; q; }
17664 s/.*/./; q'`
17665
17666 # PATH needs CR, and LINENO needs CR and PATH.
17667 # Avoid depending upon Character Ranges.
17668 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17669 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17670 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17671 as_cr_digits='0123456789'
17672 as_cr_alnum=$as_cr_Letters$as_cr_digits
17673
17674 # The user is always right.
17675 if test "${PATH_SEPARATOR+set}" != set; then
17676 echo "#! /bin/sh" >conftest.sh
17677 echo "exit 0" >>conftest.sh
17678 chmod +x conftest.sh
17679 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17680 PATH_SEPARATOR=';'
17681 else
17682 PATH_SEPARATOR=:
17683 fi
17684 rm -f conftest.sh
17685 fi
17686
17687
17688 as_lineno_1=$LINENO
17689 as_lineno_2=$LINENO
17690 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17691 test "x$as_lineno_1" != "x$as_lineno_2" &&
17692 test "x$as_lineno_3" = "x$as_lineno_2" || {
17693 # Find who we are. Look in the path if we contain no path at all
17694 # relative or not.
17695 case $0 in
17696 *[\\/]* ) as_myself=$0 ;;
17697 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17698 for as_dir in $PATH
17699 do
17700 IFS=$as_save_IFS
17701 test -z "$as_dir" && as_dir=.
17702 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17703 done
17704
17705 ;;
17706 esac
17707 # We did not find ourselves, most probably we were run as `sh COMMAND'
17708 # in which case we are not to be found in the path.
17709 if test "x$as_myself" = x; then
17710 as_myself=$0
17711 fi
17712 if test ! -f "$as_myself"; then
17713 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17714 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17715 { (exit 1); exit 1; }; }
17716 fi
17717 case $CONFIG_SHELL in
17718 '')
17719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17720 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17721 do
17722 IFS=$as_save_IFS
17723 test -z "$as_dir" && as_dir=.
17724 for as_base in sh bash ksh sh5; do
17725 case $as_dir in
17726 /*)
17727 if ("$as_dir/$as_base" -c '
17728 as_lineno_1=$LINENO
17729 as_lineno_2=$LINENO
17730 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17731 test "x$as_lineno_1" != "x$as_lineno_2" &&
17732 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17733 CONFIG_SHELL=$as_dir/$as_base
17734 export CONFIG_SHELL
17735 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17736 fi;;
17737 esac
17738 done
17739 done
17740 ;;
17741 esac
17742
17743 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17744 # uniformly replaced by the line number. The first 'sed' inserts a
17745 # line-number line before each line; the second 'sed' does the real
17746 # work. The second script uses 'N' to pair each line-number line
17747 # with the numbered line, and appends trailing '-' during
17748 # substitution so that $LINENO is not a special case at line end.
17749 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17750 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17751 sed '=' <$as_myself |
17752 sed '
17753 N
17754 s,$,-,
17755 : loop
17756 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17757 t loop
17758 s,-$,,
17759 s,^['$as_cr_digits']*\n,,
17760 ' >$as_me.lineno &&
17761 chmod +x $as_me.lineno ||
17762 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17763 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17764 { (exit 1); exit 1; }; }
17765
17766 # Don't try to exec as it changes $[0], causing all sort of problems
17767 # (the dirname of $[0] is not the place where we might find the
17768 # original and so on. Autoconf is especially sensible to this).
17769 . ./$as_me.lineno
17770 # Exit status is that of the last command.
17771 exit
17772 }
17773
17774
17775 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17776 *c*,-n*) ECHO_N= ECHO_C='
17777 ' ECHO_T=' ' ;;
17778 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17779 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17780 esac
17781
17782 if expr a : '\(a\)' >/dev/null 2>&1; then
17783 as_expr=expr
17784 else
17785 as_expr=false
17786 fi
17787
17788 rm -f conf$$ conf$$.exe conf$$.file
17789 echo >conf$$.file
17790 if ln -s conf$$.file conf$$ 2>/dev/null; then
17791 # We could just check for DJGPP; but this test a) works b) is more generic
17792 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17793 if test -f conf$$.exe; then
17794 # Don't use ln at all; we don't have any links
17795 as_ln_s='cp -p'
17796 else
17797 as_ln_s='ln -s'
17798 fi
17799 elif ln conf$$.file conf$$ 2>/dev/null; then
17800 as_ln_s=ln
17801 else
17802 as_ln_s='cp -p'
17803 fi
17804 rm -f conf$$ conf$$.exe conf$$.file
17805
17806 as_executable_p="test -f"
17807
17808 # Sed expression to map a string onto a valid CPP name.
17809 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17810
17811 # Sed expression to map a string onto a valid variable name.
17812 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17813
17814
17815 # IFS
17816 # We need space, tab and new line, in precisely that order.
17817 as_nl='
17818 '
17819 IFS=" $as_nl"
17820
17821 # CDPATH.
17822 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17823
17824 exec 6>&1
17825
17826 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17827 # report actual input values of CONFIG_FILES etc. instead of their
17828 # values after options handling. Logging --version etc. is OK.
17829 exec 5>>config.log
17830 {
17831 echo
17832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17833 ## Running $as_me. ##
17834 _ASBOX
17835 } >&5
17836 cat >&5 <<_CSEOF
17837
17838 This file was extended by $as_me, which was
17839 generated by GNU Autoconf 2.53. Invocation command line was
17840
17841 CONFIG_FILES = $CONFIG_FILES
17842 CONFIG_HEADERS = $CONFIG_HEADERS
17843 CONFIG_LINKS = $CONFIG_LINKS
17844 CONFIG_COMMANDS = $CONFIG_COMMANDS
17845 $ $0 $@
17846
17847 _CSEOF
17848 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17849 echo >&5
17850 _ACEOF
17851
17852 # Files that config.status was made for.
17853 if test -n "$ac_config_files"; then
17854 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17855 fi
17856
17857 if test -n "$ac_config_headers"; then
17858 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17859 fi
17860
17861 if test -n "$ac_config_links"; then
17862 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17863 fi
17864
17865 if test -n "$ac_config_commands"; then
17866 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17867 fi
17868
17869 cat >>$CONFIG_STATUS <<\_ACEOF
17870
17871 ac_cs_usage="\
17872 \`$as_me' instantiates files from templates according to the
17873 current configuration.
17874
17875 Usage: $0 [OPTIONS] [FILE]...
17876
17877 -h, --help print this help, then exit
17878 -V, --version print version number, then exit
17879 -d, --debug don't remove temporary files
17880 --recheck update $as_me by reconfiguring in the same conditions
17881 --file=FILE[:TEMPLATE]
17882 instantiate the configuration file FILE
17883 --header=FILE[:TEMPLATE]
17884 instantiate the configuration header FILE
17885
17886 Configuration files:
17887 $config_files
17888
17889 Configuration headers:
17890 $config_headers
17891
17892 Configuration commands:
17893 $config_commands
17894
17895 Report bugs to <[email protected]>."
17896 _ACEOF
17897
17898 cat >>$CONFIG_STATUS <<_ACEOF
17899 ac_cs_version="\\
17900 config.status
17901 configured by $0, generated by GNU Autoconf 2.53,
17902 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17903
17904 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17905 Free Software Foundation, Inc.
17906 This config.status script is free software; the Free Software Foundation
17907 gives unlimited permission to copy, distribute and modify it."
17908 srcdir=$srcdir
17909 INSTALL="$INSTALL"
17910 _ACEOF
17911
17912 cat >>$CONFIG_STATUS <<\_ACEOF
17913 # If no file are specified by the user, then we need to provide default
17914 # value. By we need to know if files were specified by the user.
17915 ac_need_defaults=:
17916 while test $# != 0
17917 do
17918 case $1 in
17919 --*=*)
17920 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17921 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17922 shift
17923 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17924 shift
17925 ;;
17926 -*);;
17927 *) # This is not an option, so the user has probably given explicit
17928 # arguments.
17929 ac_need_defaults=false;;
17930 esac
17931
17932 case $1 in
17933 # Handling of the options.
17934 _ACEOF
17935 cat >>$CONFIG_STATUS <<_ACEOF
17936 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17937 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17938 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17939 _ACEOF
17940 cat >>$CONFIG_STATUS <<\_ACEOF
17941 --version | --vers* | -V )
17942 echo "$ac_cs_version"; exit 0 ;;
17943 --he | --h)
17944 # Conflict between --help and --header
17945 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17946 Try \`$0 --help' for more information." >&5
17947 echo "$as_me: error: ambiguous option: $1
17948 Try \`$0 --help' for more information." >&2;}
17949 { (exit 1); exit 1; }; };;
17950 --help | --hel | -h )
17951 echo "$ac_cs_usage"; exit 0 ;;
17952 --debug | --d* | -d )
17953 debug=: ;;
17954 --file | --fil | --fi | --f )
17955 shift
17956 CONFIG_FILES="$CONFIG_FILES $1"
17957 ac_need_defaults=false;;
17958 --header | --heade | --head | --hea )
17959 shift
17960 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17961 ac_need_defaults=false;;
17962
17963 # This is an error.
17964 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17965 Try \`$0 --help' for more information." >&5
17966 echo "$as_me: error: unrecognized option: $1
17967 Try \`$0 --help' for more information." >&2;}
17968 { (exit 1); exit 1; }; } ;;
17969
17970 *) ac_config_targets="$ac_config_targets $1" ;;
17971
17972 esac
17973 shift
17974 done
17975
17976 _ACEOF
17977
17978 cat >>$CONFIG_STATUS <<_ACEOF
17979 #
17980 # INIT-COMMANDS section.
17981 #
17982
17983 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17984 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17985 # from automake.
17986 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17987 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17988 LINGUAS="${LINGUAS-%UNSET%}"
17989
17990
17991 _ACEOF
17992
17993
17994
17995 cat >>$CONFIG_STATUS <<\_ACEOF
17996 for ac_config_target in $ac_config_targets
17997 do
17998 case "$ac_config_target" in
17999 # Handling of arguments.
18000 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18001 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18002 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18003 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
18004 "DOCS/Makefile" ) CONFIG_FILES="$CONFIG_FILES DOCS/Makefile" ;;
18005 "UTILS/accounting.sh" ) CONFIG_FILES="$CONFIG_FILES UTILS/accounting.sh" ;;
18006 "UTILS/sendhp.sh" ) CONFIG_FILES="$CONFIG_FILES UTILS/sendhp.sh" ;;
18007 "UTILS/supported" ) CONFIG_FILES="$CONFIG_FILES UTILS/supported" ;;
18008 "UTILS/fixupdate" ) CONFIG_FILES="$CONFIG_FILES UTILS/fixupdate" ;;
18009 "src/extract_pjl" ) CONFIG_FILES="$CONFIG_FILES src/extract_pjl" ;;
18010 "src/wrapper" ) CONFIG_FILES="$CONFIG_FILES src/wrapper" ;;
18011 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18012 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18013 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18014 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18015 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18016 { (exit 1); exit 1; }; };;
18017 esac
18018 done
18019
18020 # If the user did not use the arguments to specify the items to instantiate,
18021 # then the envvar interface is used. Set only those that are not.
18022 # We use the long form for the default assignment because of an extremely
18023 # bizarre bug on SunOS 4.1.3.
18024 if $ac_need_defaults; then
18025 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18026 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18027 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18028 fi
18029
18030 # Create a temporary directory, and hook for its removal unless debugging.
18031 $debug ||
18032 {
18033 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18034 trap '{ (exit 1); exit 1; }' 1 2 13 15
18035 }
18036
18037 # Create a (secure) tmp directory for tmp files.
18038 : ${TMPDIR=/tmp}
18039 {
18040 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18041 test -n "$tmp" && test -d "$tmp"
18042 } ||
18043 {
18044 tmp=$TMPDIR/cs$$-$RANDOM
18045 (umask 077 && mkdir $tmp)
18046 } ||
18047 {
18048 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18049 { (exit 1); exit 1; }
18050 }
18051
18052 _ACEOF
18053
18054 cat >>$CONFIG_STATUS <<_ACEOF
18055
18056 #
18057 # CONFIG_FILES section.
18058 #
18059
18060 # No need to generate the scripts if there are no CONFIG_FILES.
18061 # This happens for instance when ./config.status config.h
18062 if test -n "\$CONFIG_FILES"; then
18063 # Protect against being on the right side of a sed subst in config.status.
18064 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18065 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18066 s,@SHELL@,$SHELL,;t t
18067 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18068 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18069 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18070 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18071 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18072 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18073 s,@exec_prefix@,$exec_prefix,;t t
18074 s,@prefix@,$prefix,;t t
18075 s,@program_transform_name@,$program_transform_name,;t t
18076 s,@bindir@,$bindir,;t t
18077 s,@sbindir@,$sbindir,;t t
18078 s,@libexecdir@,$libexecdir,;t t
18079 s,@datadir@,$datadir,;t t
18080 s,@sysconfdir@,$sysconfdir,;t t
18081 s,@sharedstatedir@,$sharedstatedir,;t t
18082 s,@localstatedir@,$localstatedir,;t t
18083 s,@libdir@,$libdir,;t t
18084 s,@includedir@,$includedir,;t t
18085 s,@oldincludedir@,$oldincludedir,;t t
18086 s,@infodir@,$infodir,;t t
18087 s,@mandir@,$mandir,;t t
18088 s,@build_alias@,$build_alias,;t t
18089 s,@host_alias@,$host_alias,;t t
18090 s,@target_alias@,$target_alias,;t t
18091 s,@DEFS@,$DEFS,;t t
18092 s,@ECHO_C@,$ECHO_C,;t t
18093 s,@ECHO_N@,$ECHO_N,;t t
18094 s,@ECHO_T@,$ECHO_T,;t t
18095 s,@LIBS@,$LIBS,;t t
18096 s,@build@,$build,;t t
18097 s,@build_cpu@,$build_cpu,;t t
18098 s,@build_vendor@,$build_vendor,;t t
18099 s,@build_os@,$build_os,;t t
18100 s,@host@,$host,;t t
18101 s,@host_cpu@,$host_cpu,;t t
18102 s,@host_vendor@,$host_vendor,;t t
18103 s,@host_os@,$host_os,;t t
18104 s,@target@,$target,;t t
18105 s,@target_cpu@,$target_cpu,;t t
18106 s,@target_vendor@,$target_vendor,;t t
18107 s,@target_os@,$target_os,;t t
18108 s,@PACKAGE@,$PACKAGE,;t t
18109 s,@VERSION@,$VERSION,;t t
18110 s,@CC@,$CC,;t t
18111 s,@CFLAGS@,$CFLAGS,;t t
18112 s,@LDFLAGS@,$LDFLAGS,;t t
18113 s,@CPPFLAGS@,$CPPFLAGS,;t t
18114 s,@ac_ct_CC@,$ac_ct_CC,;t t
18115 s,@EXEEXT@,$EXEEXT,;t t
18116 s,@OBJEXT@,$OBJEXT,;t t
18117 s,@CPP@,$CPP,;t t
18118 s,@INSTALL@,$INSTALL,;t t
18119 s,@INSTALL_MAN@,$INSTALL_MAN,;t t
18120 s,@LDCC@,$LDCC,;t t
18121 s,@AWK@,$AWK,;t t
18122 s,@PERL@,$PERL,;t t
18123 s,@LOCALEDIR@,$LOCALEDIR,;t t
18124 s,@LN_S@,$LN_S,;t t
18125 s,@ECHO@,$ECHO,;t t
18126 s,@RANLIB@,$RANLIB,;t t
18127 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18128 s,@STRIP@,$STRIP,;t t
18129 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18130 s,@LIBTOOL@,$LIBTOOL,;t t
18131 s,@FILEUTIL@,$FILEUTIL,;t t
18132 s,@GZIP@,$GZIP,;t t
18133 s,@GS@,$GS,;t t
18134 s,@A2PS@,$A2PS,;t t
18135 s,@CAT@,$CAT,;t t
18136 s,@IFHP_CONF@,$IFHP_CONF,;t t
18137 s,@SNMP@,$SNMP,;t t
18138 s,@FOOMATIC_RIP@,$FOOMATIC_RIP,;t t
18139 s,@FOOMATIC@,$FOOMATIC,;t t
18140 s,@PAGE_SIZE@,$PAGE_SIZE,;t t
18141 s,@FILTER_DIR@,$FILTER_DIR,;t t
18142 s,@FONT_DIR@,$FONT_DIR,;t t
18143 s,@STRIP_OPTION@,$STRIP_OPTION,;t t
18144 s,@GSCHECK@,$GSCHECK,;t t
18145 s,@DEVFD3@,$DEVFD3,;t t
18146 s,@ARCHITECTURE@,$ARCHITECTURE,;t t
18147 s,@OSNAME@,$OSNAME,;t t
18148 s,@OSVERSION@,$OSVERSION,;t t
18149 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18150 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18151 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18152 s,@SET_MAKE@,$SET_MAKE,;t t
18153 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
18154 s,@USE_NLS@,$USE_NLS,;t t
18155 s,@MSGFMT@,$MSGFMT,;t t
18156 s,@GMSGFMT@,$GMSGFMT,;t t
18157 s,@XGETTEXT@,$XGETTEXT,;t t
18158 s,@MSGMERGE@,$MSGMERGE,;t t
18159 s,@LIBICONV@,$LIBICONV,;t t
18160 s,@LTLIBICONV@,$LTLIBICONV,;t t
18161 s,@INTLLIBS@,$INTLLIBS,;t t
18162 s,@LIBINTL@,$LIBINTL,;t t
18163 s,@LTLIBINTL@,$LTLIBINTL,;t t
18164 s,@POSUB@,$POSUB,;t t
18165 CEOF
18166
18167 _ACEOF
18168
18169 cat >>$CONFIG_STATUS <<\_ACEOF
18170 # Split the substitutions into bite-sized pieces for seds with
18171 # small command number limits, like on Digital OSF/1 and HP-UX.
18172 ac_max_sed_lines=48
18173 ac_sed_frag=1 # Number of current file.
18174 ac_beg=1 # First line for current file.
18175 ac_end=$ac_max_sed_lines # Line after last line for current file.
18176 ac_more_lines=:
18177 ac_sed_cmds=
18178 while $ac_more_lines; do
18179 if test $ac_beg -gt 1; then
18180 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18181 else
18182 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18183 fi
18184 if test ! -s $tmp/subs.frag; then
18185 ac_more_lines=false
18186 else
18187 # The purpose of the label and of the branching condition is to
18188 # speed up the sed processing (if there are no `@' at all, there
18189 # is no need to browse any of the substitutions).
18190 # These are the two extra sed commands mentioned above.
18191 (echo ':t
18192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18193 if test -z "$ac_sed_cmds"; then
18194 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18195 else
18196 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18197 fi
18198 ac_sed_frag=`expr $ac_sed_frag + 1`
18199 ac_beg=$ac_end
18200 ac_end=`expr $ac_end + $ac_max_sed_lines`
18201 fi
18202 done
18203 if test -z "$ac_sed_cmds"; then
18204 ac_sed_cmds=cat
18205 fi
18206 fi # test -n "$CONFIG_FILES"
18207
18208 _ACEOF
18209 cat >>$CONFIG_STATUS <<\_ACEOF
18210 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18211 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18212 case $ac_file in
18213 - | *:- | *:-:* ) # input from stdin
18214 cat >$tmp/stdin
18215 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18216 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18217 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18218 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18219 * ) ac_file_in=$ac_file.in ;;
18220 esac
18221
18222 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18223 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18224 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18225 X"$ac_file" : 'X\(//\)[^/]' \| \
18226 X"$ac_file" : 'X\(//\)$' \| \
18227 X"$ac_file" : 'X\(/\)' \| \
18228 . : '\(.\)' 2>/dev/null ||
18229 echo X"$ac_file" |
18230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18232 /^X\(\/\/\)$/{ s//\1/; q; }
18233 /^X\(\/\).*/{ s//\1/; q; }
18234 s/.*/./; q'`
18235 { case "$ac_dir" in
18236 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18237 *) as_incr_dir=.;;
18238 esac
18239 as_dummy="$ac_dir"
18240 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18241 case $as_mkdir_dir in
18242 # Skip DOS drivespec
18243 ?:) as_incr_dir=$as_mkdir_dir ;;
18244 *)
18245 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18246 test -d "$as_incr_dir" ||
18247 mkdir "$as_incr_dir" ||
18248 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18249 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18250 { (exit 1); exit 1; }; }
18251 ;;
18252 esac
18253 done; }
18254
18255 ac_builddir=.
18256
18257 if test "$ac_dir" != .; then
18258 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18259 # A "../" for each directory in $ac_dir_suffix.
18260 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18261 else
18262 ac_dir_suffix= ac_top_builddir=
18263 fi
18264
18265 case $srcdir in
18266 .) # No --srcdir option. We are building in place.
18267 ac_srcdir=.
18268 if test -z "$ac_top_builddir"; then
18269 ac_top_srcdir=.
18270 else
18271 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18272 fi ;;
18273 [\\/]* | ?:[\\/]* ) # Absolute path.
18274 ac_srcdir=$srcdir$ac_dir_suffix;
18275 ac_top_srcdir=$srcdir ;;
18276 *) # Relative path.
18277 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18278 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18279 esac
18280 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18281 # absolute.
18282 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18283 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18284 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18285 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18286
18287
18288 case $INSTALL in
18289 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18290 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18291 esac
18292
18293 if test x"$ac_file" != x-; then
18294 { echo "$as_me:$LINENO: creating $ac_file" >&5
18295 echo "$as_me: creating $ac_file" >&6;}
18296 rm -f "$ac_file"
18297 fi
18298 # Let's still pretend it is `configure' which instantiates (i.e., don't
18299 # use $as_me), people would be surprised to read:
18300 # /* config.h. Generated by config.status. */
18301 if test x"$ac_file" = x-; then
18302 configure_input=
18303 else
18304 configure_input="$ac_file. "
18305 fi
18306 configure_input=$configure_input"Generated from `echo $ac_file_in |
18307 sed 's,.*/,,'` by configure."
18308
18309 # First look for the input files in the build tree, otherwise in the
18310 # src tree.
18311 ac_file_inputs=`IFS=:
18312 for f in $ac_file_in; do
18313 case $f in
18314 -) echo $tmp/stdin ;;
18315 [\\/$]*)
18316 # Absolute (can't be DOS-style, as IFS=:)
18317 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18318 echo "$as_me: error: cannot find input file: $f" >&2;}
18319 { (exit 1); exit 1; }; }
18320 echo $f;;
18321 *) # Relative
18322 if test -f "$f"; then
18323 # Build tree
18324 echo $f
18325 elif test -f "$srcdir/$f"; then
18326 # Source tree
18327 echo $srcdir/$f
18328 else
18329 # /dev/null tree
18330 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18331 echo "$as_me: error: cannot find input file: $f" >&2;}
18332 { (exit 1); exit 1; }; }
18333 fi;;
18334 esac
18335 done` || { (exit 1); exit 1; }
18336 _ACEOF
18337 cat >>$CONFIG_STATUS <<_ACEOF
18338 sed "$ac_vpsub
18339 $extrasub
18340 _ACEOF
18341 cat >>$CONFIG_STATUS <<\_ACEOF
18342 :t
18343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18344 s,@configure_input@,$configure_input,;t t
18345 s,@srcdir@,$ac_srcdir,;t t
18346 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18347 s,@top_srcdir@,$ac_top_srcdir,;t t
18348 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18349 s,@builddir@,$ac_builddir,;t t
18350 s,@abs_builddir@,$ac_abs_builddir,;t t
18351 s,@top_builddir@,$ac_top_builddir,;t t
18352 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18353 s,@INSTALL@,$ac_INSTALL,;t t
18354 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18355 rm -f $tmp/stdin
18356 if test x"$ac_file" != x-; then
18357 mv $tmp/out $ac_file
18358 else
18359 cat $tmp/out
18360 rm -f $tmp/out
18361 fi
18362
18363 done
18364 _ACEOF
18365 cat >>$CONFIG_STATUS <<\_ACEOF
18366
18367 #
18368 # CONFIG_HEADER section.
18369 #
18370
18371 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18372 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18373 #
18374 # ac_d sets the value in "#define NAME VALUE" lines.
18375 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18376 ac_dB='[ ].*$,\1#\2'
18377 ac_dC=' '
18378 ac_dD=',;t'
18379 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18380 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18381 ac_uB='$,\1#\2define\3'
18382 ac_uC=' '
18383 ac_uD=',;t'
18384
18385 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18386 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18387 case $ac_file in
18388 - | *:- | *:-:* ) # input from stdin
18389 cat >$tmp/stdin
18390 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18391 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18392 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18394 * ) ac_file_in=$ac_file.in ;;
18395 esac
18396
18397 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18398 echo "$as_me: creating $ac_file" >&6;}
18399
18400 # First look for the input files in the build tree, otherwise in the
18401 # src tree.
18402 ac_file_inputs=`IFS=:
18403 for f in $ac_file_in; do
18404 case $f in
18405 -) echo $tmp/stdin ;;
18406 [\\/$]*)
18407 # Absolute (can't be DOS-style, as IFS=:)
18408 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18409 echo "$as_me: error: cannot find input file: $f" >&2;}
18410 { (exit 1); exit 1; }; }
18411 echo $f;;
18412 *) # Relative
18413 if test -f "$f"; then
18414 # Build tree
18415 echo $f
18416 elif test -f "$srcdir/$f"; then
18417 # Source tree
18418 echo $srcdir/$f
18419 else
18420 # /dev/null tree
18421 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18422 echo "$as_me: error: cannot find input file: $f" >&2;}
18423 { (exit 1); exit 1; }; }
18424 fi;;
18425 esac
18426 done` || { (exit 1); exit 1; }
18427 # Remove the trailing spaces.
18428 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18429
18430 _ACEOF
18431
18432 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18433 # `conftest.undefs', that substitutes the proper values into
18434 # config.h.in to produce config.h. The first handles `#define'
18435 # templates, and the second `#undef' templates.
18436 # And first: Protect against being on the right side of a sed subst in
18437 # config.status. Protect against being in an unquoted here document
18438 # in config.status.
18439 rm -f conftest.defines conftest.undefs
18440 # Using a here document instead of a string reduces the quoting nightmare.
18441 # Putting comments in sed scripts is not portable.
18442 #
18443 # `end' is used to avoid that the second main sed command (meant for
18444 # 0-ary CPP macros) applies to n-ary macro definitions.
18445 # See the Autoconf documentation for `clear'.
18446 cat >confdef2sed.sed <<\_ACEOF
18447 s/[\\&,]/\\&/g
18448 s,[\\$`],\\&,g
18449 t clear
18450 : clear
18451 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18452 t end
18453 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18454 : end
18455 _ACEOF
18456 # If some macros were called several times there might be several times
18457 # the same #defines, which is useless. Nevertheless, we may not want to
18458 # sort them, since we want the *last* AC-DEFINE to be honored.
18459 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18460 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18461 rm -f confdef2sed.sed
18462
18463 # This sed command replaces #undef with comments. This is necessary, for
18464 # example, in the case of _POSIX_SOURCE, which is predefined and required
18465 # on some systems where configure will not decide to define it.
18466 cat >>conftest.undefs <<\_ACEOF
18467 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18468 _ACEOF
18469
18470 # Break up conftest.defines because some shells have a limit on the size
18471 # of here documents, and old seds have small limits too (100 cmds).
18472 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18473 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18474 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18475 echo ' :' >>$CONFIG_STATUS
18476 rm -f conftest.tail
18477 while grep . conftest.defines >/dev/null
18478 do
18479 # Write a limited-size here document to $tmp/defines.sed.
18480 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18481 # Speed up: don't consider the non `#define' lines.
18482 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18483 # Work around the forget-to-reset-the-flag bug.
18484 echo 't clr' >>$CONFIG_STATUS
18485 echo ': clr' >>$CONFIG_STATUS
18486 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18487 echo 'CEOF
18488 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18489 rm -f $tmp/in
18490 mv $tmp/out $tmp/in
18491 ' >>$CONFIG_STATUS
18492 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18493 rm -f conftest.defines
18494 mv conftest.tail conftest.defines
18495 done
18496 rm -f conftest.defines
18497 echo ' fi # egrep' >>$CONFIG_STATUS
18498 echo >>$CONFIG_STATUS
18499
18500 # Break up conftest.undefs because some shells have a limit on the size
18501 # of here documents, and old seds have small limits too (100 cmds).
18502 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18503 rm -f conftest.tail
18504 while grep . conftest.undefs >/dev/null
18505 do
18506 # Write a limited-size here document to $tmp/undefs.sed.
18507 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18508 # Speed up: don't consider the non `#undef'
18509 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18510 # Work around the forget-to-reset-the-flag bug.
18511 echo 't clr' >>$CONFIG_STATUS
18512 echo ': clr' >>$CONFIG_STATUS
18513 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18514 echo 'CEOF
18515 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18516 rm -f $tmp/in
18517 mv $tmp/out $tmp/in
18518 ' >>$CONFIG_STATUS
18519 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18520 rm -f conftest.undefs
18521 mv conftest.tail conftest.undefs
18522 done
18523 rm -f conftest.undefs
18524
18525 cat >>$CONFIG_STATUS <<\_ACEOF
18526 # Let's still pretend it is `configure' which instantiates (i.e., don't
18527 # use $as_me), people would be surprised to read:
18528 # /* config.h. Generated by config.status. */
18529 if test x"$ac_file" = x-; then
18530 echo "/* Generated by configure. */" >$tmp/config.h
18531 else
18532 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18533 fi
18534 cat $tmp/in >>$tmp/config.h
18535 rm -f $tmp/in
18536 if test x"$ac_file" != x-; then
18537 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18538 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18539 echo "$as_me: $ac_file is unchanged" >&6;}
18540 else
18541 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18542 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18543 X"$ac_file" : 'X\(//\)[^/]' \| \
18544 X"$ac_file" : 'X\(//\)$' \| \
18545 X"$ac_file" : 'X\(/\)' \| \
18546 . : '\(.\)' 2>/dev/null ||
18547 echo X"$ac_file" |
18548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18550 /^X\(\/\/\)$/{ s//\1/; q; }
18551 /^X\(\/\).*/{ s//\1/; q; }
18552 s/.*/./; q'`
18553 { case "$ac_dir" in
18554 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18555 *) as_incr_dir=.;;
18556 esac
18557 as_dummy="$ac_dir"
18558 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18559 case $as_mkdir_dir in
18560 # Skip DOS drivespec
18561 ?:) as_incr_dir=$as_mkdir_dir ;;
18562 *)
18563 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18564 test -d "$as_incr_dir" ||
18565 mkdir "$as_incr_dir" ||
18566 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18567 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18568 { (exit 1); exit 1; }; }
18569 ;;
18570 esac
18571 done; }
18572
18573 rm -f $ac_file
18574 mv $tmp/config.h $ac_file
18575 fi
18576 else
18577 cat $tmp/config.h
18578 rm -f $tmp/config.h
18579 fi
18580 done
18581 _ACEOF
18582 cat >>$CONFIG_STATUS <<\_ACEOF
18583
18584 #
18585 # CONFIG_COMMANDS section.
18586 #
18587 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18588 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18589 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18590 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18591 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18592 X"$ac_dest" : 'X\(//\)[^/]' \| \
18593 X"$ac_dest" : 'X\(//\)$' \| \
18594 X"$ac_dest" : 'X\(/\)' \| \
18595 . : '\(.\)' 2>/dev/null ||
18596 echo X"$ac_dest" |
18597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18598 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18599 /^X\(\/\/\)$/{ s//\1/; q; }
18600 /^X\(\/\).*/{ s//\1/; q; }
18601 s/.*/./; q'`
18602 ac_builddir=.
18603
18604 if test "$ac_dir" != .; then
18605 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18606 # A "../" for each directory in $ac_dir_suffix.
18607 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18608 else
18609 ac_dir_suffix= ac_top_builddir=
18610 fi
18611
18612 case $srcdir in
18613 .) # No --srcdir option. We are building in place.
18614 ac_srcdir=.
18615 if test -z "$ac_top_builddir"; then
18616 ac_top_srcdir=.
18617 else
18618 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18619 fi ;;
18620 [\\/]* | ?:[\\/]* ) # Absolute path.
18621 ac_srcdir=$srcdir$ac_dir_suffix;
18622 ac_top_srcdir=$srcdir ;;
18623 *) # Relative path.
18624 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18625 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18626 esac
18627 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18628 # absolute.
18629 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18630 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18631 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18632 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18633
18634
18635 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18636 echo "$as_me: executing $ac_dest commands" >&6;}
18637 case $ac_dest in
18638 default-1 )
18639 for ac_file in $CONFIG_FILES; do
18640 # Support "outfile[:infile[:infile...]]"
18641 case "$ac_file" in
18642 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18643 esac
18644 # PO directories have a Makefile.in generated from Makefile.in.in.
18645 case "$ac_file" in */Makefile.in)
18646 # Adjust a relative srcdir.
18647 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18648 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18649 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18650 # In autoconf-2.13 it is called $ac_given_srcdir.
18651 # In autoconf-2.50 it is called $srcdir.
18652 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18653 case "$ac_given_srcdir" in
18654 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18655 /*) top_srcdir="$ac_given_srcdir" ;;
18656 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18657 esac
18658 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18659 rm -f "$ac_dir/POTFILES"
18660 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18661 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18662 POMAKEFILEDEPS="POTFILES.in"
18663 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18664 # on $ac_dir but don't depend on user-specified configuration
18665 # parameters.
18666 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18667 # The LINGUAS file contains the set of available languages.
18668 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18669 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18670 fi
18671 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18672 # Hide the ALL_LINGUAS assigment from automake.
18673 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18674 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18675 else
18676 # The set of available languages was given in configure.in.
18677 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18678 fi
18679 # Compute POFILES
18680 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18681 # Compute UPDATEPOFILES
18682 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18683 # Compute DUMMYPOFILES
18684 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18685 # Compute GMOFILES
18686 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18687 case "$ac_given_srcdir" in
18688 .) srcdirpre= ;;
18689 *) srcdirpre='$(srcdir)/' ;;
18690 esac
18691 POFILES=
18692 UPDATEPOFILES=
18693 DUMMYPOFILES=
18694 GMOFILES=
18695 for lang in $ALL_LINGUAS; do
18696 POFILES="$POFILES $srcdirpre$lang.po"
18697 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18698 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18699 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18700 done
18701 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18702 # environment variable.
18703 INST_LINGUAS=
18704 if test -n "$ALL_LINGUAS"; then
18705 for presentlang in $ALL_LINGUAS; do
18706 useit=no
18707 if test "%UNSET%" != "$LINGUAS"; then
18708 desiredlanguages="$LINGUAS"
18709 else
18710 desiredlanguages="$ALL_LINGUAS"
18711 fi
18712 for desiredlang in $desiredlanguages; do
18713 # Use the presentlang catalog if desiredlang is
18714 # a. equal to presentlang, or
18715 # b. a variant of presentlang (because in this case,
18716 # presentlang can be used as a fallback for messages
18717 # which are not translated in the desiredlang catalog).
18718 case "$desiredlang" in
18719 "$presentlang"*) useit=yes;;
18720 esac
18721 done
18722 if test $useit = yes; then
18723 INST_LINGUAS="$INST_LINGUAS $presentlang"
18724 fi
18725 done
18726 fi
18727 CATALOGS=
18728 if test -n "$INST_LINGUAS"; then
18729 for lang in $INST_LINGUAS; do
18730 CATALOGS="$CATALOGS $lang.gmo"
18731 done
18732 fi
18733 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18734 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18735 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18736 if test -f "$f"; then
18737 case "$f" in
18738 *.orig | *.bak | *~) ;;
18739 *) cat "$f" >> "$ac_dir/Makefile" ;;
18740 esac
18741 fi
18742 done
18743 fi
18744 ;;
18745 esac
18746 done ;;
18747 esac
18748 done
18749 _ACEOF
18750
18751 cat >>$CONFIG_STATUS <<\_ACEOF
18752
18753 { (exit 0); exit 0; }
18754 _ACEOF
18755 chmod +x $CONFIG_STATUS
18756 ac_clean_files=$ac_clean_files_save
18757
18758
18759 # configure is writing to config.log, and then calls config.status.
18760 # config.status does its own redirection, appending to config.log.
18761 # Unfortunately, on DOS this fails, as config.log is still kept open
18762 # by configure, so config.status won't be able to write to it; its
18763 # output is simply discarded. So we exec the FD to /dev/null,
18764 # effectively closing config.log, so it can be properly (re)opened and
18765 # appended to by config.status. When coming back to configure, we
18766 # need to make the FD available again.
18767 if test "$no_create" != yes; then
18768 ac_cs_success=:
18769 exec 5>/dev/null
18770 $SHELL $CONFIG_STATUS || ac_cs_success=false
18771 exec 5>>config.log
18772 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18773 # would make configure fail if this is the last instruction.
18774 $ac_cs_success || { (exit 1); exit 1; }
18775 fi
18776
18777