Mercurial > emacs
comparison configure @ 29906:b37a06f2fbf2
*** empty log message ***
author | Dave Love <fx@gnu.org> |
---|---|
date | Fri, 23 Jun 2000 15:43:44 +0000 |
parents | fb20d35ffa9a |
children | abd4c37731d3 |
comparison
equal
deleted
inserted
replaced
29905:ca781f54ac48 | 29906:b37a06f2fbf2 |
---|---|
2282 done | 2282 done |
2283 | 2283 |
2284 | 2284 |
2285 for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | 2285 for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
2286 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 2286 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
2287 termcap.h stdio_ext.h fcntl.h sys/fcntl.h | 2287 termcap.h stdio_ext.h fcntl.h term.h |
2288 do | 2288 do |
2289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2291 echo "configure:2292: checking for $ac_hdr" >&5 | 2291 echo "configure:2292: checking for $ac_hdr" >&5 |
2292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4302 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` | 4302 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
4303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4304 echo $ac_n "(cached) $ac_c" 1>&6 | 4304 echo $ac_n "(cached) $ac_c" 1>&6 |
4305 else | 4305 else |
4306 ac_save_LIBS="$LIBS" | 4306 ac_save_LIBS="$LIBS" |
4307 LIBS="-lXp $LIBS" | 4307 LIBS="-lXp -lXext $LIBS" |
4308 cat > conftest.$ac_ext <<EOF | 4308 cat > conftest.$ac_ext <<EOF |
4309 #line 4310 "configure" | 4309 #line 4310 "configure" |
4310 #include "confdefs.h" | 4310 #include "confdefs.h" |
4311 /* Override any gcc2 internal prototype to avoid an error. */ | 4311 /* Override any gcc2 internal prototype to avoid an error. */ |
4312 /* We use char because int might match the return type of a gcc2 | 4312 /* We use char because int might match the return type of a gcc2 |
4330 LIBS="$ac_save_LIBS" | 4330 LIBS="$ac_save_LIBS" |
4331 | 4331 |
4332 fi | 4332 fi |
4333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
4334 echo "$ac_t""yes" 1>&6 | 4334 echo "$ac_t""yes" 1>&6 |
4335 ac_tr_lib=HAVE_LIB`echo Xp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 4335 HAVE_LIBXP=yes |
4336 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4337 cat >> confdefs.h <<EOF | |
4338 #define $ac_tr_lib 1 | |
4339 EOF | |
4340 | |
4341 LIBS="-lXp $LIBS" | |
4342 | |
4343 else | 4336 else |
4344 echo "$ac_t""no" 1>&6 | 4337 echo "$ac_t""no" 1>&6 |
4345 fi | 4338 fi |
4346 | 4339 |
4340 if test ${HAVE_LIBXP} = yes; then | |
4341 cat >> confdefs.h <<\EOF | |
4342 #define HAVE_LIBXP 1 | |
4343 EOF | |
4344 | |
4345 fi | |
4347 fi | 4346 fi |
4348 fi | 4347 fi |
4349 | 4348 |
4350 ### Is -lXaw3d available? | 4349 ### Is -lXaw3d available? |
4351 HAVE_XAW3D=no | 4350 HAVE_XAW3D=no |
4353 if test "${USE_X_TOOLKIT}" != "none"; then | 4352 if test "${USE_X_TOOLKIT}" != "none"; then |
4354 old_c_flags="${CFLAGS}" | 4353 old_c_flags="${CFLAGS}" |
4355 CFLAGS="${LD_SWITCH_X_SITE}" | 4354 CFLAGS="${LD_SWITCH_X_SITE}" |
4356 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | 4355 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` |
4357 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | 4356 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 |
4358 echo "configure:4359: checking for X11/Xaw3d/Scrollbar.h" >&5 | 4357 echo "configure:4358: checking for X11/Xaw3d/Scrollbar.h" >&5 |
4359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4360 echo $ac_n "(cached) $ac_c" 1>&6 | 4359 echo $ac_n "(cached) $ac_c" 1>&6 |
4361 else | 4360 else |
4362 cat > conftest.$ac_ext <<EOF | 4361 cat > conftest.$ac_ext <<EOF |
4363 #line 4364 "configure" | 4362 #line 4363 "configure" |
4364 #include "confdefs.h" | 4363 #include "confdefs.h" |
4365 #include <X11/Xaw3d/Scrollbar.h> | 4364 #include <X11/Xaw3d/Scrollbar.h> |
4366 EOF | 4365 EOF |
4367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4368 { (eval echo configure:4369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4367 { (eval echo configure:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4370 if test -z "$ac_err"; then | 4369 if test -z "$ac_err"; then |
4371 rm -rf conftest* | 4370 rm -rf conftest* |
4372 eval "ac_cv_header_$ac_safe=yes" | 4371 eval "ac_cv_header_$ac_safe=yes" |
4373 else | 4372 else |
4380 rm -f conftest* | 4379 rm -f conftest* |
4381 fi | 4380 fi |
4382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4383 echo "$ac_t""yes" 1>&6 | 4382 echo "$ac_t""yes" 1>&6 |
4384 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | 4383 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 |
4385 echo "configure:4386: checking for XawScrollbarSetThumb in -lXaw3d" >&5 | 4384 echo "configure:4385: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
4386 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` | 4385 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
4387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4388 echo $ac_n "(cached) $ac_c" 1>&6 | 4387 echo $ac_n "(cached) $ac_c" 1>&6 |
4389 else | 4388 else |
4390 ac_save_LIBS="$LIBS" | 4389 ac_save_LIBS="$LIBS" |
4391 LIBS="-lXaw3d -lX11 $LIBS" | 4390 LIBS="-lXaw3d -lX11 $LIBS" |
4392 cat > conftest.$ac_ext <<EOF | 4391 cat > conftest.$ac_ext <<EOF |
4393 #line 4394 "configure" | 4392 #line 4393 "configure" |
4394 #include "confdefs.h" | 4393 #include "confdefs.h" |
4395 /* Override any gcc2 internal prototype to avoid an error. */ | 4394 /* Override any gcc2 internal prototype to avoid an error. */ |
4396 /* We use char because int might match the return type of a gcc2 | 4395 /* We use char because int might match the return type of a gcc2 |
4397 builtin and then its argument prototype would still apply. */ | 4396 builtin and then its argument prototype would still apply. */ |
4398 char XawScrollbarSetThumb(); | 4397 char XawScrollbarSetThumb(); |
4399 | 4398 |
4400 int main() { | 4399 int main() { |
4401 XawScrollbarSetThumb() | 4400 XawScrollbarSetThumb() |
4402 ; return 0; } | 4401 ; return 0; } |
4403 EOF | 4402 EOF |
4404 if { (eval echo configure:4405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4403 if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4405 rm -rf conftest* | 4404 rm -rf conftest* |
4406 eval "ac_cv_lib_$ac_lib_var=yes" | 4405 eval "ac_cv_lib_$ac_lib_var=yes" |
4407 else | 4406 else |
4408 echo "configure: failed program was:" >&5 | 4407 echo "configure: failed program was:" >&5 |
4409 cat conftest.$ac_ext >&5 | 4408 cat conftest.$ac_ext >&5 |
4463 if test "${with_xpm}" != "no"; then | 4462 if test "${with_xpm}" != "no"; then |
4464 old_c_flags="${CFLAGS}" | 4463 old_c_flags="${CFLAGS}" |
4465 CFLAGS="${LD_SWITCH_X_SITE}" | 4464 CFLAGS="${LD_SWITCH_X_SITE}" |
4466 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | 4465 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` |
4467 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | 4466 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 |
4468 echo "configure:4469: checking for X11/xpm.h" >&5 | 4467 echo "configure:4468: checking for X11/xpm.h" >&5 |
4469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4470 echo $ac_n "(cached) $ac_c" 1>&6 | 4469 echo $ac_n "(cached) $ac_c" 1>&6 |
4471 else | 4470 else |
4472 cat > conftest.$ac_ext <<EOF | 4471 cat > conftest.$ac_ext <<EOF |
4473 #line 4474 "configure" | 4472 #line 4473 "configure" |
4474 #include "confdefs.h" | 4473 #include "confdefs.h" |
4475 #include <X11/xpm.h> | 4474 #include <X11/xpm.h> |
4476 EOF | 4475 EOF |
4477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4478 { (eval echo configure:4479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4477 { (eval echo configure:4478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4480 if test -z "$ac_err"; then | 4479 if test -z "$ac_err"; then |
4481 rm -rf conftest* | 4480 rm -rf conftest* |
4482 eval "ac_cv_header_$ac_safe=yes" | 4481 eval "ac_cv_header_$ac_safe=yes" |
4483 else | 4482 else |
4490 rm -f conftest* | 4489 rm -f conftest* |
4491 fi | 4490 fi |
4492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4493 echo "$ac_t""yes" 1>&6 | 4492 echo "$ac_t""yes" 1>&6 |
4494 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | 4493 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 |
4495 echo "configure:4496: checking for XpmReadFileToPixmap in -lXpm" >&5 | 4494 echo "configure:4495: checking for XpmReadFileToPixmap in -lXpm" >&5 |
4496 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` | 4495 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
4497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4498 echo $ac_n "(cached) $ac_c" 1>&6 | 4497 echo $ac_n "(cached) $ac_c" 1>&6 |
4499 else | 4498 else |
4500 ac_save_LIBS="$LIBS" | 4499 ac_save_LIBS="$LIBS" |
4501 LIBS="-lXpm -lX11 $LIBS" | 4500 LIBS="-lXpm -lX11 $LIBS" |
4502 cat > conftest.$ac_ext <<EOF | 4501 cat > conftest.$ac_ext <<EOF |
4503 #line 4504 "configure" | 4502 #line 4503 "configure" |
4504 #include "confdefs.h" | 4503 #include "confdefs.h" |
4505 /* Override any gcc2 internal prototype to avoid an error. */ | 4504 /* Override any gcc2 internal prototype to avoid an error. */ |
4506 /* We use char because int might match the return type of a gcc2 | 4505 /* We use char because int might match the return type of a gcc2 |
4507 builtin and then its argument prototype would still apply. */ | 4506 builtin and then its argument prototype would still apply. */ |
4508 char XpmReadFileToPixmap(); | 4507 char XpmReadFileToPixmap(); |
4509 | 4508 |
4510 int main() { | 4509 int main() { |
4511 XpmReadFileToPixmap() | 4510 XpmReadFileToPixmap() |
4512 ; return 0; } | 4511 ; return 0; } |
4513 EOF | 4512 EOF |
4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4513 if { (eval echo configure:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4515 rm -rf conftest* | 4514 rm -rf conftest* |
4516 eval "ac_cv_lib_$ac_lib_var=yes" | 4515 eval "ac_cv_lib_$ac_lib_var=yes" |
4517 else | 4516 else |
4518 echo "configure: failed program was:" >&5 | 4517 echo "configure: failed program was:" >&5 |
4519 cat conftest.$ac_ext >&5 | 4518 cat conftest.$ac_ext >&5 |
4552 if test "${with_jpeg}" != "no"; then | 4551 if test "${with_jpeg}" != "no"; then |
4553 old_c_flags="${CFLAGS}" | 4552 old_c_flags="${CFLAGS}" |
4554 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 4553 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4555 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` | 4554 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` |
4556 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 | 4555 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 |
4557 echo "configure:4558: checking for jerror.h" >&5 | 4556 echo "configure:4557: checking for jerror.h" >&5 |
4558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4559 echo $ac_n "(cached) $ac_c" 1>&6 | 4558 echo $ac_n "(cached) $ac_c" 1>&6 |
4560 else | 4559 else |
4561 cat > conftest.$ac_ext <<EOF | 4560 cat > conftest.$ac_ext <<EOF |
4562 #line 4563 "configure" | 4561 #line 4562 "configure" |
4563 #include "confdefs.h" | 4562 #include "confdefs.h" |
4564 #include <jerror.h> | 4563 #include <jerror.h> |
4565 EOF | 4564 EOF |
4566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4567 { (eval echo configure:4568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4566 { (eval echo configure:4567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4569 if test -z "$ac_err"; then | 4568 if test -z "$ac_err"; then |
4570 rm -rf conftest* | 4569 rm -rf conftest* |
4571 eval "ac_cv_header_$ac_safe=yes" | 4570 eval "ac_cv_header_$ac_safe=yes" |
4572 else | 4571 else |
4579 rm -f conftest* | 4578 rm -f conftest* |
4580 fi | 4579 fi |
4581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4582 echo "$ac_t""yes" 1>&6 | 4581 echo "$ac_t""yes" 1>&6 |
4583 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | 4582 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 |
4584 echo "configure:4585: checking for jpeg_destroy_compress in -ljpeg" >&5 | 4583 echo "configure:4584: checking for jpeg_destroy_compress in -ljpeg" >&5 |
4585 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` | 4584 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
4586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4587 echo $ac_n "(cached) $ac_c" 1>&6 | 4586 echo $ac_n "(cached) $ac_c" 1>&6 |
4588 else | 4587 else |
4589 ac_save_LIBS="$LIBS" | 4588 ac_save_LIBS="$LIBS" |
4590 LIBS="-ljpeg -lX11 $LIBS" | 4589 LIBS="-ljpeg -lX11 $LIBS" |
4591 cat > conftest.$ac_ext <<EOF | 4590 cat > conftest.$ac_ext <<EOF |
4592 #line 4593 "configure" | 4591 #line 4592 "configure" |
4593 #include "confdefs.h" | 4592 #include "confdefs.h" |
4594 /* Override any gcc2 internal prototype to avoid an error. */ | 4593 /* Override any gcc2 internal prototype to avoid an error. */ |
4595 /* We use char because int might match the return type of a gcc2 | 4594 /* We use char because int might match the return type of a gcc2 |
4596 builtin and then its argument prototype would still apply. */ | 4595 builtin and then its argument prototype would still apply. */ |
4597 char jpeg_destroy_compress(); | 4596 char jpeg_destroy_compress(); |
4598 | 4597 |
4599 int main() { | 4598 int main() { |
4600 jpeg_destroy_compress() | 4599 jpeg_destroy_compress() |
4601 ; return 0; } | 4600 ; return 0; } |
4602 EOF | 4601 EOF |
4603 if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4602 if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4604 rm -rf conftest* | 4603 rm -rf conftest* |
4605 eval "ac_cv_lib_$ac_lib_var=yes" | 4604 eval "ac_cv_lib_$ac_lib_var=yes" |
4606 else | 4605 else |
4607 echo "configure: failed program was:" >&5 | 4606 echo "configure: failed program was:" >&5 |
4608 cat conftest.$ac_ext >&5 | 4607 cat conftest.$ac_ext >&5 |
4641 if test "${with_png}" != "no"; then | 4640 if test "${with_png}" != "no"; then |
4642 old_c_flags="${CFLAGS}" | 4641 old_c_flags="${CFLAGS}" |
4643 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 4642 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4644 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | 4643 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
4645 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | 4644 echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
4646 echo "configure:4647: checking for png.h" >&5 | 4645 echo "configure:4646: checking for png.h" >&5 |
4647 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4648 echo $ac_n "(cached) $ac_c" 1>&6 | 4647 echo $ac_n "(cached) $ac_c" 1>&6 |
4649 else | 4648 else |
4650 cat > conftest.$ac_ext <<EOF | 4649 cat > conftest.$ac_ext <<EOF |
4651 #line 4652 "configure" | 4650 #line 4651 "configure" |
4652 #include "confdefs.h" | 4651 #include "confdefs.h" |
4653 #include <png.h> | 4652 #include <png.h> |
4654 EOF | 4653 EOF |
4655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4656 { (eval echo configure:4657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4655 { (eval echo configure:4656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4658 if test -z "$ac_err"; then | 4657 if test -z "$ac_err"; then |
4659 rm -rf conftest* | 4658 rm -rf conftest* |
4660 eval "ac_cv_header_$ac_safe=yes" | 4659 eval "ac_cv_header_$ac_safe=yes" |
4661 else | 4660 else |
4668 rm -f conftest* | 4667 rm -f conftest* |
4669 fi | 4668 fi |
4670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4671 echo "$ac_t""yes" 1>&6 | 4670 echo "$ac_t""yes" 1>&6 |
4672 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 | 4671 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 |
4673 echo "configure:4674: checking for png_set_expand in -lpng" >&5 | 4672 echo "configure:4673: checking for png_set_expand in -lpng" >&5 |
4674 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` | 4673 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` |
4675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4676 echo $ac_n "(cached) $ac_c" 1>&6 | 4675 echo $ac_n "(cached) $ac_c" 1>&6 |
4677 else | 4676 else |
4678 ac_save_LIBS="$LIBS" | 4677 ac_save_LIBS="$LIBS" |
4679 LIBS="-lpng -lX11 -lz -lm $LIBS" | 4678 LIBS="-lpng -lX11 -lz -lm $LIBS" |
4680 cat > conftest.$ac_ext <<EOF | 4679 cat > conftest.$ac_ext <<EOF |
4681 #line 4682 "configure" | 4680 #line 4681 "configure" |
4682 #include "confdefs.h" | 4681 #include "confdefs.h" |
4683 /* Override any gcc2 internal prototype to avoid an error. */ | 4682 /* Override any gcc2 internal prototype to avoid an error. */ |
4684 /* We use char because int might match the return type of a gcc2 | 4683 /* We use char because int might match the return type of a gcc2 |
4685 builtin and then its argument prototype would still apply. */ | 4684 builtin and then its argument prototype would still apply. */ |
4686 char png_set_expand(); | 4685 char png_set_expand(); |
4687 | 4686 |
4688 int main() { | 4687 int main() { |
4689 png_set_expand() | 4688 png_set_expand() |
4690 ; return 0; } | 4689 ; return 0; } |
4691 EOF | 4690 EOF |
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4693 rm -rf conftest* | 4692 rm -rf conftest* |
4694 eval "ac_cv_lib_$ac_lib_var=yes" | 4693 eval "ac_cv_lib_$ac_lib_var=yes" |
4695 else | 4694 else |
4696 echo "configure: failed program was:" >&5 | 4695 echo "configure: failed program was:" >&5 |
4697 cat conftest.$ac_ext >&5 | 4696 cat conftest.$ac_ext >&5 |
4730 if test "${with_tiff}" != "no"; then | 4729 if test "${with_tiff}" != "no"; then |
4731 old_c_flags="${CFLAGS}" | 4730 old_c_flags="${CFLAGS}" |
4732 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 4731 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4733 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | 4732 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
4734 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | 4733 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 |
4735 echo "configure:4736: checking for tiffio.h" >&5 | 4734 echo "configure:4735: checking for tiffio.h" >&5 |
4736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4737 echo $ac_n "(cached) $ac_c" 1>&6 | 4736 echo $ac_n "(cached) $ac_c" 1>&6 |
4738 else | 4737 else |
4739 cat > conftest.$ac_ext <<EOF | 4738 cat > conftest.$ac_ext <<EOF |
4740 #line 4741 "configure" | 4739 #line 4740 "configure" |
4741 #include "confdefs.h" | 4740 #include "confdefs.h" |
4742 #include <tiffio.h> | 4741 #include <tiffio.h> |
4743 EOF | 4742 EOF |
4744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4745 { (eval echo configure:4746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4744 { (eval echo configure:4745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4747 if test -z "$ac_err"; then | 4746 if test -z "$ac_err"; then |
4748 rm -rf conftest* | 4747 rm -rf conftest* |
4749 eval "ac_cv_header_$ac_safe=yes" | 4748 eval "ac_cv_header_$ac_safe=yes" |
4750 else | 4749 else |
4760 echo "$ac_t""yes" 1>&6 | 4759 echo "$ac_t""yes" 1>&6 |
4761 tifflibs="-lX11 -lz -lm" | 4760 tifflibs="-lX11 -lz -lm" |
4762 # At least one tiff package requires the jpeg library. | 4761 # At least one tiff package requires the jpeg library. |
4763 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | 4762 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
4764 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 | 4763 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 |
4765 echo "configure:4766: checking for TIFFGetVersion in -ltiff" >&5 | 4764 echo "configure:4765: checking for TIFFGetVersion in -ltiff" >&5 |
4766 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` | 4765 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
4767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4768 echo $ac_n "(cached) $ac_c" 1>&6 | 4767 echo $ac_n "(cached) $ac_c" 1>&6 |
4769 else | 4768 else |
4770 ac_save_LIBS="$LIBS" | 4769 ac_save_LIBS="$LIBS" |
4771 LIBS="-ltiff $tifflibs $LIBS" | 4770 LIBS="-ltiff $tifflibs $LIBS" |
4772 cat > conftest.$ac_ext <<EOF | 4771 cat > conftest.$ac_ext <<EOF |
4773 #line 4774 "configure" | 4772 #line 4773 "configure" |
4774 #include "confdefs.h" | 4773 #include "confdefs.h" |
4775 /* Override any gcc2 internal prototype to avoid an error. */ | 4774 /* Override any gcc2 internal prototype to avoid an error. */ |
4776 /* We use char because int might match the return type of a gcc2 | 4775 /* We use char because int might match the return type of a gcc2 |
4777 builtin and then its argument prototype would still apply. */ | 4776 builtin and then its argument prototype would still apply. */ |
4778 char TIFFGetVersion(); | 4777 char TIFFGetVersion(); |
4779 | 4778 |
4780 int main() { | 4779 int main() { |
4781 TIFFGetVersion() | 4780 TIFFGetVersion() |
4782 ; return 0; } | 4781 ; return 0; } |
4783 EOF | 4782 EOF |
4784 if { (eval echo configure:4785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4783 if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4785 rm -rf conftest* | 4784 rm -rf conftest* |
4786 eval "ac_cv_lib_$ac_lib_var=yes" | 4785 eval "ac_cv_lib_$ac_lib_var=yes" |
4787 else | 4786 else |
4788 echo "configure: failed program was:" >&5 | 4787 echo "configure: failed program was:" >&5 |
4789 cat conftest.$ac_ext >&5 | 4788 cat conftest.$ac_ext >&5 |
4822 if test "${with_gif}" != "no"; then | 4821 if test "${with_gif}" != "no"; then |
4823 old_c_flags="${CFLAGS}" | 4822 old_c_flags="${CFLAGS}" |
4824 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 4823 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4825 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | 4824 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` |
4826 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | 4825 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 |
4827 echo "configure:4828: checking for gif_lib.h" >&5 | 4826 echo "configure:4827: checking for gif_lib.h" >&5 |
4828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4829 echo $ac_n "(cached) $ac_c" 1>&6 | 4828 echo $ac_n "(cached) $ac_c" 1>&6 |
4830 else | 4829 else |
4831 cat > conftest.$ac_ext <<EOF | 4830 cat > conftest.$ac_ext <<EOF |
4832 #line 4833 "configure" | 4831 #line 4832 "configure" |
4833 #include "confdefs.h" | 4832 #include "confdefs.h" |
4834 #include <gif_lib.h> | 4833 #include <gif_lib.h> |
4835 EOF | 4834 EOF |
4836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4837 { (eval echo configure:4838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4836 { (eval echo configure:4837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4839 if test -z "$ac_err"; then | 4838 if test -z "$ac_err"; then |
4840 rm -rf conftest* | 4839 rm -rf conftest* |
4841 eval "ac_cv_header_$ac_safe=yes" | 4840 eval "ac_cv_header_$ac_safe=yes" |
4842 else | 4841 else |
4849 rm -f conftest* | 4848 rm -f conftest* |
4850 fi | 4849 fi |
4851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4852 echo "$ac_t""yes" 1>&6 | 4851 echo "$ac_t""yes" 1>&6 |
4853 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 | 4852 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 |
4854 echo "configure:4855: checking for DGifOpen in -lungif" >&5 | 4853 echo "configure:4854: checking for DGifOpen in -lungif" >&5 |
4855 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` | 4854 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` |
4856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4857 echo $ac_n "(cached) $ac_c" 1>&6 | 4856 echo $ac_n "(cached) $ac_c" 1>&6 |
4858 else | 4857 else |
4859 ac_save_LIBS="$LIBS" | 4858 ac_save_LIBS="$LIBS" |
4860 LIBS="-lungif -lX11 $LIBS" | 4859 LIBS="-lungif -lX11 $LIBS" |
4861 cat > conftest.$ac_ext <<EOF | 4860 cat > conftest.$ac_ext <<EOF |
4862 #line 4863 "configure" | 4861 #line 4862 "configure" |
4863 #include "confdefs.h" | 4862 #include "confdefs.h" |
4864 /* Override any gcc2 internal prototype to avoid an error. */ | 4863 /* Override any gcc2 internal prototype to avoid an error. */ |
4865 /* We use char because int might match the return type of a gcc2 | 4864 /* We use char because int might match the return type of a gcc2 |
4866 builtin and then its argument prototype would still apply. */ | 4865 builtin and then its argument prototype would still apply. */ |
4867 char DGifOpen(); | 4866 char DGifOpen(); |
4868 | 4867 |
4869 int main() { | 4868 int main() { |
4870 DGifOpen() | 4869 DGifOpen() |
4871 ; return 0; } | 4870 ; return 0; } |
4872 EOF | 4871 EOF |
4873 if { (eval echo configure:4874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4872 if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4874 rm -rf conftest* | 4873 rm -rf conftest* |
4875 eval "ac_cv_lib_$ac_lib_var=yes" | 4874 eval "ac_cv_lib_$ac_lib_var=yes" |
4876 else | 4875 else |
4877 echo "configure: failed program was:" >&5 | 4876 echo "configure: failed program was:" >&5 |
4878 cat conftest.$ac_ext >&5 | 4877 cat conftest.$ac_ext >&5 |
4905 fi | 4904 fi |
4906 fi | 4905 fi |
4907 | 4906 |
4908 # If netdb.h doesn't declare h_errno, we must declare it by hand. | 4907 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
4909 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | 4908 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 |
4910 echo "configure:4911: checking whether netdb declares h_errno" >&5 | 4909 echo "configure:4910: checking whether netdb declares h_errno" >&5 |
4911 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then | 4910 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
4912 echo $ac_n "(cached) $ac_c" 1>&6 | 4911 echo $ac_n "(cached) $ac_c" 1>&6 |
4913 else | 4912 else |
4914 cat > conftest.$ac_ext <<EOF | 4913 cat > conftest.$ac_ext <<EOF |
4915 #line 4916 "configure" | 4914 #line 4915 "configure" |
4916 #include "confdefs.h" | 4915 #include "confdefs.h" |
4917 #include <netdb.h> | 4916 #include <netdb.h> |
4918 int main() { | 4917 int main() { |
4919 return h_errno; | 4918 return h_errno; |
4920 ; return 0; } | 4919 ; return 0; } |
4921 EOF | 4920 EOF |
4922 if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4921 if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4923 rm -rf conftest* | 4922 rm -rf conftest* |
4924 emacs_cv_netdb_declares_h_errno=yes | 4923 emacs_cv_netdb_declares_h_errno=yes |
4925 else | 4924 else |
4926 echo "configure: failed program was:" >&5 | 4925 echo "configure: failed program was:" >&5 |
4927 cat conftest.$ac_ext >&5 | 4926 cat conftest.$ac_ext >&5 |
4940 fi | 4939 fi |
4941 | 4940 |
4942 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 4941 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
4943 # for constant arguments. Useless! | 4942 # for constant arguments. Useless! |
4944 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 4943 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
4945 echo "configure:4946: checking for working alloca.h" >&5 | 4944 echo "configure:4945: checking for working alloca.h" >&5 |
4946 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 4945 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
4947 echo $ac_n "(cached) $ac_c" 1>&6 | 4946 echo $ac_n "(cached) $ac_c" 1>&6 |
4948 else | 4947 else |
4949 cat > conftest.$ac_ext <<EOF | 4948 cat > conftest.$ac_ext <<EOF |
4950 #line 4951 "configure" | 4949 #line 4950 "configure" |
4951 #include "confdefs.h" | 4950 #include "confdefs.h" |
4952 #include <alloca.h> | 4951 #include <alloca.h> |
4953 int main() { | 4952 int main() { |
4954 void *p = alloca(2 * sizeof(int)); | 4953 void *p = alloca(2 * sizeof(int)); |
4955 ; return 0; } | 4954 ; return 0; } |
4956 EOF | 4955 EOF |
4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4958 rm -rf conftest* | 4957 rm -rf conftest* |
4959 ac_cv_header_alloca_h=yes | 4958 ac_cv_header_alloca_h=yes |
4960 else | 4959 else |
4961 echo "configure: failed program was:" >&5 | 4960 echo "configure: failed program was:" >&5 |
4962 cat conftest.$ac_ext >&5 | 4961 cat conftest.$ac_ext >&5 |
4973 EOF | 4972 EOF |
4974 | 4973 |
4975 fi | 4974 fi |
4976 | 4975 |
4977 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 4976 echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
4978 echo "configure:4979: checking for alloca" >&5 | 4977 echo "configure:4978: checking for alloca" >&5 |
4979 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 4978 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
4980 echo $ac_n "(cached) $ac_c" 1>&6 | 4979 echo $ac_n "(cached) $ac_c" 1>&6 |
4981 else | 4980 else |
4982 cat > conftest.$ac_ext <<EOF | 4981 cat > conftest.$ac_ext <<EOF |
4983 #line 4984 "configure" | 4982 #line 4983 "configure" |
4984 #include "confdefs.h" | 4983 #include "confdefs.h" |
4985 | 4984 |
4986 #ifdef __GNUC__ | 4985 #ifdef __GNUC__ |
4987 # define alloca __builtin_alloca | 4986 # define alloca __builtin_alloca |
4988 #else | 4987 #else |
5006 | 5005 |
5007 int main() { | 5006 int main() { |
5008 char *p = (char *) alloca(1); | 5007 char *p = (char *) alloca(1); |
5009 ; return 0; } | 5008 ; return 0; } |
5010 EOF | 5009 EOF |
5011 if { (eval echo configure:5012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5010 if { (eval echo configure:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5012 rm -rf conftest* | 5011 rm -rf conftest* |
5013 ac_cv_func_alloca_works=yes | 5012 ac_cv_func_alloca_works=yes |
5014 else | 5013 else |
5015 echo "configure: failed program was:" >&5 | 5014 echo "configure: failed program was:" >&5 |
5016 cat conftest.$ac_ext >&5 | 5015 cat conftest.$ac_ext >&5 |
5038 #define C_ALLOCA 1 | 5037 #define C_ALLOCA 1 |
5039 EOF | 5038 EOF |
5040 | 5039 |
5041 | 5040 |
5042 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 5041 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
5043 echo "configure:5044: checking whether alloca needs Cray hooks" >&5 | 5042 echo "configure:5043: checking whether alloca needs Cray hooks" >&5 |
5044 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 5043 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
5045 echo $ac_n "(cached) $ac_c" 1>&6 | 5044 echo $ac_n "(cached) $ac_c" 1>&6 |
5046 else | 5045 else |
5047 cat > conftest.$ac_ext <<EOF | 5046 cat > conftest.$ac_ext <<EOF |
5048 #line 5049 "configure" | 5047 #line 5048 "configure" |
5049 #include "confdefs.h" | 5048 #include "confdefs.h" |
5050 #if defined(CRAY) && ! defined(CRAY2) | 5049 #if defined(CRAY) && ! defined(CRAY2) |
5051 webecray | 5050 webecray |
5052 #else | 5051 #else |
5053 wenotbecray | 5052 wenotbecray |
5068 | 5067 |
5069 echo "$ac_t""$ac_cv_os_cray" 1>&6 | 5068 echo "$ac_t""$ac_cv_os_cray" 1>&6 |
5070 if test $ac_cv_os_cray = yes; then | 5069 if test $ac_cv_os_cray = yes; then |
5071 for ac_func in _getb67 GETB67 getb67; do | 5070 for ac_func in _getb67 GETB67 getb67; do |
5072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5073 echo "configure:5074: checking for $ac_func" >&5 | 5072 echo "configure:5073: checking for $ac_func" >&5 |
5074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5075 echo $ac_n "(cached) $ac_c" 1>&6 | 5074 echo $ac_n "(cached) $ac_c" 1>&6 |
5076 else | 5075 else |
5077 cat > conftest.$ac_ext <<EOF | 5076 cat > conftest.$ac_ext <<EOF |
5078 #line 5079 "configure" | 5077 #line 5078 "configure" |
5079 #include "confdefs.h" | 5078 #include "confdefs.h" |
5080 /* System header to define __stub macros and hopefully few prototypes, | 5079 /* System header to define __stub macros and hopefully few prototypes, |
5081 which can conflict with char $ac_func(); below. */ | 5080 which can conflict with char $ac_func(); below. */ |
5082 #include <assert.h> | 5081 #include <assert.h> |
5083 /* Override any gcc2 internal prototype to avoid an error. */ | 5082 /* Override any gcc2 internal prototype to avoid an error. */ |
5096 $ac_func(); | 5095 $ac_func(); |
5097 #endif | 5096 #endif |
5098 | 5097 |
5099 ; return 0; } | 5098 ; return 0; } |
5100 EOF | 5099 EOF |
5101 if { (eval echo configure:5102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5100 if { (eval echo configure:5101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5102 rm -rf conftest* | 5101 rm -rf conftest* |
5103 eval "ac_cv_func_$ac_func=yes" | 5102 eval "ac_cv_func_$ac_func=yes" |
5104 else | 5103 else |
5105 echo "configure: failed program was:" >&5 | 5104 echo "configure: failed program was:" >&5 |
5106 cat conftest.$ac_ext >&5 | 5105 cat conftest.$ac_ext >&5 |
5123 | 5122 |
5124 done | 5123 done |
5125 fi | 5124 fi |
5126 | 5125 |
5127 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 5126 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
5128 echo "configure:5129: checking stack direction for C alloca" >&5 | 5127 echo "configure:5128: checking stack direction for C alloca" >&5 |
5129 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 5128 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
5130 echo $ac_n "(cached) $ac_c" 1>&6 | 5129 echo $ac_n "(cached) $ac_c" 1>&6 |
5131 else | 5130 else |
5132 if test "$cross_compiling" = yes; then | 5131 if test "$cross_compiling" = yes; then |
5133 ac_cv_c_stack_direction=0 | 5132 ac_cv_c_stack_direction=0 |
5134 else | 5133 else |
5135 cat > conftest.$ac_ext <<EOF | 5134 cat > conftest.$ac_ext <<EOF |
5136 #line 5137 "configure" | 5135 #line 5136 "configure" |
5137 #include "confdefs.h" | 5136 #include "confdefs.h" |
5138 find_stack_direction () | 5137 find_stack_direction () |
5139 { | 5138 { |
5140 static char *addr = 0; | 5139 static char *addr = 0; |
5141 auto char dummy; | 5140 auto char dummy; |
5150 main () | 5149 main () |
5151 { | 5150 { |
5152 exit (find_stack_direction() < 0); | 5151 exit (find_stack_direction() < 0); |
5153 } | 5152 } |
5154 EOF | 5153 EOF |
5155 if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 5154 if { (eval echo configure:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5156 then | 5155 then |
5157 ac_cv_c_stack_direction=1 | 5156 ac_cv_c_stack_direction=1 |
5158 else | 5157 else |
5159 echo "configure: failed program was:" >&5 | 5158 echo "configure: failed program was:" >&5 |
5160 cat conftest.$ac_ext >&5 | 5159 cat conftest.$ac_ext >&5 |
5175 | 5174 |
5176 | 5175 |
5177 # fmod, logb, and frexp are found in -lm on most systems. | 5176 # fmod, logb, and frexp are found in -lm on most systems. |
5178 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | 5177 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
5179 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | 5178 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 |
5180 echo "configure:5181: checking for sqrt in -lm" >&5 | 5179 echo "configure:5180: checking for sqrt in -lm" >&5 |
5181 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` | 5180 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
5182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5183 echo $ac_n "(cached) $ac_c" 1>&6 | 5182 echo $ac_n "(cached) $ac_c" 1>&6 |
5184 else | 5183 else |
5185 ac_save_LIBS="$LIBS" | 5184 ac_save_LIBS="$LIBS" |
5186 LIBS="-lm $LIBS" | 5185 LIBS="-lm $LIBS" |
5187 cat > conftest.$ac_ext <<EOF | 5186 cat > conftest.$ac_ext <<EOF |
5188 #line 5189 "configure" | 5187 #line 5188 "configure" |
5189 #include "confdefs.h" | 5188 #include "confdefs.h" |
5190 /* Override any gcc2 internal prototype to avoid an error. */ | 5189 /* Override any gcc2 internal prototype to avoid an error. */ |
5191 /* We use char because int might match the return type of a gcc2 | 5190 /* We use char because int might match the return type of a gcc2 |
5192 builtin and then its argument prototype would still apply. */ | 5191 builtin and then its argument prototype would still apply. */ |
5193 char sqrt(); | 5192 char sqrt(); |
5194 | 5193 |
5195 int main() { | 5194 int main() { |
5196 sqrt() | 5195 sqrt() |
5197 ; return 0; } | 5196 ; return 0; } |
5198 EOF | 5197 EOF |
5199 if { (eval echo configure:5200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5200 rm -rf conftest* | 5199 rm -rf conftest* |
5201 eval "ac_cv_lib_$ac_lib_var=yes" | 5200 eval "ac_cv_lib_$ac_lib_var=yes" |
5202 else | 5201 else |
5203 echo "configure: failed program was:" >&5 | 5202 echo "configure: failed program was:" >&5 |
5204 cat conftest.$ac_ext >&5 | 5203 cat conftest.$ac_ext >&5 |
5224 fi | 5223 fi |
5225 | 5224 |
5226 | 5225 |
5227 # Check for mail-locking functions in a "mail" library | 5226 # Check for mail-locking functions in a "mail" library |
5228 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | 5227 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 |
5229 echo "configure:5230: checking for maillock in -lmail" >&5 | 5228 echo "configure:5229: checking for maillock in -lmail" >&5 |
5230 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` | 5229 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
5231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5232 echo $ac_n "(cached) $ac_c" 1>&6 | 5231 echo $ac_n "(cached) $ac_c" 1>&6 |
5233 else | 5232 else |
5234 ac_save_LIBS="$LIBS" | 5233 ac_save_LIBS="$LIBS" |
5235 LIBS="-lmail $LIBS" | 5234 LIBS="-lmail $LIBS" |
5236 cat > conftest.$ac_ext <<EOF | 5235 cat > conftest.$ac_ext <<EOF |
5237 #line 5238 "configure" | 5236 #line 5237 "configure" |
5238 #include "confdefs.h" | 5237 #include "confdefs.h" |
5239 /* Override any gcc2 internal prototype to avoid an error. */ | 5238 /* Override any gcc2 internal prototype to avoid an error. */ |
5240 /* We use char because int might match the return type of a gcc2 | 5239 /* We use char because int might match the return type of a gcc2 |
5241 builtin and then its argument prototype would still apply. */ | 5240 builtin and then its argument prototype would still apply. */ |
5242 char maillock(); | 5241 char maillock(); |
5243 | 5242 |
5244 int main() { | 5243 int main() { |
5245 maillock() | 5244 maillock() |
5246 ; return 0; } | 5245 ; return 0; } |
5247 EOF | 5246 EOF |
5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5247 if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5249 rm -rf conftest* | 5248 rm -rf conftest* |
5250 eval "ac_cv_lib_$ac_lib_var=yes" | 5249 eval "ac_cv_lib_$ac_lib_var=yes" |
5251 else | 5250 else |
5252 echo "configure: failed program was:" >&5 | 5251 echo "configure: failed program was:" >&5 |
5253 cat conftest.$ac_ext >&5 | 5252 cat conftest.$ac_ext >&5 |
5271 else | 5270 else |
5272 echo "$ac_t""no" 1>&6 | 5271 echo "$ac_t""no" 1>&6 |
5273 fi | 5272 fi |
5274 | 5273 |
5275 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | 5274 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 |
5276 echo "configure:5277: checking for maillock in -llockfile" >&5 | 5275 echo "configure:5276: checking for maillock in -llockfile" >&5 |
5277 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` | 5276 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
5278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5279 echo $ac_n "(cached) $ac_c" 1>&6 | 5278 echo $ac_n "(cached) $ac_c" 1>&6 |
5280 else | 5279 else |
5281 ac_save_LIBS="$LIBS" | 5280 ac_save_LIBS="$LIBS" |
5282 LIBS="-llockfile $LIBS" | 5281 LIBS="-llockfile $LIBS" |
5283 cat > conftest.$ac_ext <<EOF | 5282 cat > conftest.$ac_ext <<EOF |
5284 #line 5285 "configure" | 5283 #line 5284 "configure" |
5285 #include "confdefs.h" | 5284 #include "confdefs.h" |
5286 /* Override any gcc2 internal prototype to avoid an error. */ | 5285 /* Override any gcc2 internal prototype to avoid an error. */ |
5287 /* We use char because int might match the return type of a gcc2 | 5286 /* We use char because int might match the return type of a gcc2 |
5288 builtin and then its argument prototype would still apply. */ | 5287 builtin and then its argument prototype would still apply. */ |
5289 char maillock(); | 5288 char maillock(); |
5290 | 5289 |
5291 int main() { | 5290 int main() { |
5292 maillock() | 5291 maillock() |
5293 ; return 0; } | 5292 ; return 0; } |
5294 EOF | 5293 EOF |
5295 if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5294 if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5296 rm -rf conftest* | 5295 rm -rf conftest* |
5297 eval "ac_cv_lib_$ac_lib_var=yes" | 5296 eval "ac_cv_lib_$ac_lib_var=yes" |
5298 else | 5297 else |
5299 echo "configure: failed program was:" >&5 | 5298 echo "configure: failed program was:" >&5 |
5300 cat conftest.$ac_ext >&5 | 5299 cat conftest.$ac_ext >&5 |
5324 # (no liblockfile.a installed), ensure that we don't need to. | 5323 # (no liblockfile.a installed), ensure that we don't need to. |
5325 if test "$ac_cv_lib_lockfile_maillock" = no; then | 5324 if test "$ac_cv_lib_lockfile_maillock" = no; then |
5326 # Extract the first word of "liblockfile.so", so it can be a program name with args. | 5325 # Extract the first word of "liblockfile.so", so it can be a program name with args. |
5327 set dummy liblockfile.so; ac_word=$2 | 5326 set dummy liblockfile.so; ac_word=$2 |
5328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 5327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5329 echo "configure:5330: checking for $ac_word" >&5 | 5328 echo "configure:5329: checking for $ac_word" >&5 |
5330 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then | 5329 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
5331 echo $ac_n "(cached) $ac_c" 1>&6 | 5330 echo $ac_n "(cached) $ac_c" 1>&6 |
5332 else | 5331 else |
5333 if test -n "$liblockfile"; then | 5332 if test -n "$liblockfile"; then |
5334 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | 5333 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
5365 else : | 5364 else : |
5366 fi | 5365 fi |
5367 for ac_func in touchlock | 5366 for ac_func in touchlock |
5368 do | 5367 do |
5369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5370 echo "configure:5371: checking for $ac_func" >&5 | 5369 echo "configure:5370: checking for $ac_func" >&5 |
5371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5372 echo $ac_n "(cached) $ac_c" 1>&6 | 5371 echo $ac_n "(cached) $ac_c" 1>&6 |
5373 else | 5372 else |
5374 cat > conftest.$ac_ext <<EOF | 5373 cat > conftest.$ac_ext <<EOF |
5375 #line 5376 "configure" | 5374 #line 5375 "configure" |
5376 #include "confdefs.h" | 5375 #include "confdefs.h" |
5377 /* System header to define __stub macros and hopefully few prototypes, | 5376 /* System header to define __stub macros and hopefully few prototypes, |
5378 which can conflict with char $ac_func(); below. */ | 5377 which can conflict with char $ac_func(); below. */ |
5379 #include <assert.h> | 5378 #include <assert.h> |
5380 /* Override any gcc2 internal prototype to avoid an error. */ | 5379 /* Override any gcc2 internal prototype to avoid an error. */ |
5393 $ac_func(); | 5392 $ac_func(); |
5394 #endif | 5393 #endif |
5395 | 5394 |
5396 ; return 0; } | 5395 ; return 0; } |
5397 EOF | 5396 EOF |
5398 if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5399 rm -rf conftest* | 5398 rm -rf conftest* |
5400 eval "ac_cv_func_$ac_func=yes" | 5399 eval "ac_cv_func_$ac_func=yes" |
5401 else | 5400 else |
5402 echo "configure: failed program was:" >&5 | 5401 echo "configure: failed program was:" >&5 |
5403 cat conftest.$ac_ext >&5 | 5402 cat conftest.$ac_ext >&5 |
5421 | 5420 |
5422 for ac_hdr in maillock.h | 5421 for ac_hdr in maillock.h |
5423 do | 5422 do |
5424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5423 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5424 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5426 echo "configure:5427: checking for $ac_hdr" >&5 | 5425 echo "configure:5426: checking for $ac_hdr" >&5 |
5427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5426 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5428 echo $ac_n "(cached) $ac_c" 1>&6 | 5427 echo $ac_n "(cached) $ac_c" 1>&6 |
5429 else | 5428 else |
5430 cat > conftest.$ac_ext <<EOF | 5429 cat > conftest.$ac_ext <<EOF |
5431 #line 5432 "configure" | 5430 #line 5431 "configure" |
5432 #include "confdefs.h" | 5431 #include "confdefs.h" |
5433 #include <$ac_hdr> | 5432 #include <$ac_hdr> |
5434 EOF | 5433 EOF |
5435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5436 { (eval echo configure:5437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5435 { (eval echo configure:5436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5438 if test -z "$ac_err"; then | 5437 if test -z "$ac_err"; then |
5439 rm -rf conftest* | 5438 rm -rf conftest* |
5440 eval "ac_cv_header_$ac_safe=yes" | 5439 eval "ac_cv_header_$ac_safe=yes" |
5441 else | 5440 else |
5458 echo "$ac_t""no" 1>&6 | 5457 echo "$ac_t""no" 1>&6 |
5459 fi | 5458 fi |
5460 done | 5459 done |
5461 | 5460 |
5462 | 5461 |
5463 for ac_func in gettimeofday gethostname getdomainname dup2 \ | 5462 for ac_func in gethostname getdomainname dup2 \ |
5464 rename closedir mkdir rmdir sysinfo \ | 5463 rename closedir mkdir rmdir sysinfo \ |
5465 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | 5464 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ |
5466 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | 5465 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
5467 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ | 5466 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
5468 __fpending mblen mbrlen strsignal setitimer ualarm | 5467 __fpending mblen mbrlen strsignal setitimer ualarm |
5469 do | 5468 do |
5470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5471 echo "configure:5472: checking for $ac_func" >&5 | 5470 echo "configure:5471: checking for $ac_func" >&5 |
5472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5473 echo $ac_n "(cached) $ac_c" 1>&6 | 5472 echo $ac_n "(cached) $ac_c" 1>&6 |
5474 else | 5473 else |
5475 cat > conftest.$ac_ext <<EOF | 5474 cat > conftest.$ac_ext <<EOF |
5476 #line 5477 "configure" | 5475 #line 5476 "configure" |
5477 #include "confdefs.h" | 5476 #include "confdefs.h" |
5478 /* System header to define __stub macros and hopefully few prototypes, | 5477 /* System header to define __stub macros and hopefully few prototypes, |
5479 which can conflict with char $ac_func(); below. */ | 5478 which can conflict with char $ac_func(); below. */ |
5480 #include <assert.h> | 5479 #include <assert.h> |
5481 /* Override any gcc2 internal prototype to avoid an error. */ | 5480 /* Override any gcc2 internal prototype to avoid an error. */ |
5494 $ac_func(); | 5493 $ac_func(); |
5495 #endif | 5494 #endif |
5496 | 5495 |
5497 ; return 0; } | 5496 ; return 0; } |
5498 EOF | 5497 EOF |
5499 if { (eval echo configure:5500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5498 if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5500 rm -rf conftest* | 5499 rm -rf conftest* |
5501 eval "ac_cv_func_$ac_func=yes" | 5500 eval "ac_cv_func_$ac_func=yes" |
5502 else | 5501 else |
5503 echo "configure: failed program was:" >&5 | 5502 echo "configure: failed program was:" >&5 |
5504 cat conftest.$ac_ext >&5 | 5503 cat conftest.$ac_ext >&5 |
5523 | 5522 |
5524 for ac_hdr in sys/time.h unistd.h | 5523 for ac_hdr in sys/time.h unistd.h |
5525 do | 5524 do |
5526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5528 echo "configure:5529: checking for $ac_hdr" >&5 | 5527 echo "configure:5528: checking for $ac_hdr" >&5 |
5529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5530 echo $ac_n "(cached) $ac_c" 1>&6 | 5529 echo $ac_n "(cached) $ac_c" 1>&6 |
5531 else | 5530 else |
5532 cat > conftest.$ac_ext <<EOF | 5531 cat > conftest.$ac_ext <<EOF |
5533 #line 5534 "configure" | 5532 #line 5533 "configure" |
5534 #include "confdefs.h" | 5533 #include "confdefs.h" |
5535 #include <$ac_hdr> | 5534 #include <$ac_hdr> |
5536 EOF | 5535 EOF |
5537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5538 { (eval echo configure:5539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5537 { (eval echo configure:5538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5540 if test -z "$ac_err"; then | 5539 if test -z "$ac_err"; then |
5541 rm -rf conftest* | 5540 rm -rf conftest* |
5542 eval "ac_cv_header_$ac_safe=yes" | 5541 eval "ac_cv_header_$ac_safe=yes" |
5543 else | 5542 else |
5562 done | 5561 done |
5563 | 5562 |
5564 for ac_func in alarm | 5563 for ac_func in alarm |
5565 do | 5564 do |
5566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5567 echo "configure:5568: checking for $ac_func" >&5 | 5566 echo "configure:5567: checking for $ac_func" >&5 |
5568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5569 echo $ac_n "(cached) $ac_c" 1>&6 | 5568 echo $ac_n "(cached) $ac_c" 1>&6 |
5570 else | 5569 else |
5571 cat > conftest.$ac_ext <<EOF | 5570 cat > conftest.$ac_ext <<EOF |
5572 #line 5573 "configure" | 5571 #line 5572 "configure" |
5573 #include "confdefs.h" | 5572 #include "confdefs.h" |
5574 /* System header to define __stub macros and hopefully few prototypes, | 5573 /* System header to define __stub macros and hopefully few prototypes, |
5575 which can conflict with char $ac_func(); below. */ | 5574 which can conflict with char $ac_func(); below. */ |
5576 #include <assert.h> | 5575 #include <assert.h> |
5577 /* Override any gcc2 internal prototype to avoid an error. */ | 5576 /* Override any gcc2 internal prototype to avoid an error. */ |
5590 $ac_func(); | 5589 $ac_func(); |
5591 #endif | 5590 #endif |
5592 | 5591 |
5593 ; return 0; } | 5592 ; return 0; } |
5594 EOF | 5593 EOF |
5595 if { (eval echo configure:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5594 if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5596 rm -rf conftest* | 5595 rm -rf conftest* |
5597 eval "ac_cv_func_$ac_func=yes" | 5596 eval "ac_cv_func_$ac_func=yes" |
5598 else | 5597 else |
5599 echo "configure: failed program was:" >&5 | 5598 echo "configure: failed program was:" >&5 |
5600 cat conftest.$ac_ext >&5 | 5599 cat conftest.$ac_ext >&5 |
5615 echo "$ac_t""no" 1>&6 | 5614 echo "$ac_t""no" 1>&6 |
5616 fi | 5615 fi |
5617 done | 5616 done |
5618 | 5617 |
5619 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 | 5618 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 |
5620 echo "configure:5621: checking for working mktime" >&5 | 5619 echo "configure:5620: checking for working mktime" >&5 |
5621 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then | 5620 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then |
5622 echo $ac_n "(cached) $ac_c" 1>&6 | 5621 echo $ac_n "(cached) $ac_c" 1>&6 |
5623 else | 5622 else |
5624 if test "$cross_compiling" = yes; then | 5623 if test "$cross_compiling" = yes; then |
5625 ac_cv_func_working_mktime=no | 5624 ac_cv_func_working_mktime=no |
5626 else | 5625 else |
5627 cat > conftest.$ac_ext <<EOF | 5626 cat > conftest.$ac_ext <<EOF |
5628 #line 5629 "configure" | 5627 #line 5628 "configure" |
5629 #include "confdefs.h" | 5628 #include "confdefs.h" |
5630 /* Test program from Paul Eggert (eggert@twinsun.com) | 5629 /* Test program from Paul Eggert (eggert@twinsun.com) |
5631 and Tony Leneis (tony@plaza.ds.adp.com). */ | 5630 and Tony Leneis (tony@plaza.ds.adp.com). */ |
5632 #if TIME_WITH_SYS_TIME | 5631 #if TIME_WITH_SYS_TIME |
5633 # include <sys/time.h> | 5632 # include <sys/time.h> |
5772 irix_6_4_bug (); | 5771 irix_6_4_bug (); |
5773 spring_forward_gap (); | 5772 spring_forward_gap (); |
5774 exit (0); | 5773 exit (0); |
5775 } | 5774 } |
5776 EOF | 5775 EOF |
5777 if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 5776 if { (eval echo configure:5777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5778 then | 5777 then |
5779 ac_cv_func_working_mktime=yes | 5778 ac_cv_func_working_mktime=yes |
5780 else | 5779 else |
5781 echo "configure: failed program was:" >&5 | 5780 echo "configure: failed program was:" >&5 |
5782 cat conftest.$ac_ext >&5 | 5781 cat conftest.$ac_ext >&5 |
5804 | 5803 |
5805 # Some systems with -lutil have (and need) -lkvm as well, some do not. | 5804 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
5806 # On Solaris, -lkvm requires nlist from -lelf, so check that first | 5805 # On Solaris, -lkvm requires nlist from -lelf, so check that first |
5807 # to get the right answer into the cache. | 5806 # to get the right answer into the cache. |
5808 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 | 5807 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 |
5809 echo "configure:5810: checking for elf_begin in -lelf" >&5 | 5808 echo "configure:5809: checking for elf_begin in -lelf" >&5 |
5810 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` | 5809 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` |
5811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5812 echo $ac_n "(cached) $ac_c" 1>&6 | 5811 echo $ac_n "(cached) $ac_c" 1>&6 |
5813 else | 5812 else |
5814 ac_save_LIBS="$LIBS" | 5813 ac_save_LIBS="$LIBS" |
5815 LIBS="-lelf $LIBS" | 5814 LIBS="-lelf $LIBS" |
5816 cat > conftest.$ac_ext <<EOF | 5815 cat > conftest.$ac_ext <<EOF |
5817 #line 5818 "configure" | 5816 #line 5817 "configure" |
5818 #include "confdefs.h" | 5817 #include "confdefs.h" |
5819 /* Override any gcc2 internal prototype to avoid an error. */ | 5818 /* Override any gcc2 internal prototype to avoid an error. */ |
5820 /* We use char because int might match the return type of a gcc2 | 5819 /* We use char because int might match the return type of a gcc2 |
5821 builtin and then its argument prototype would still apply. */ | 5820 builtin and then its argument prototype would still apply. */ |
5822 char elf_begin(); | 5821 char elf_begin(); |
5823 | 5822 |
5824 int main() { | 5823 int main() { |
5825 elf_begin() | 5824 elf_begin() |
5826 ; return 0; } | 5825 ; return 0; } |
5827 EOF | 5826 EOF |
5828 if { (eval echo configure:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5827 if { (eval echo configure:5828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5829 rm -rf conftest* | 5828 rm -rf conftest* |
5830 eval "ac_cv_lib_$ac_lib_var=yes" | 5829 eval "ac_cv_lib_$ac_lib_var=yes" |
5831 else | 5830 else |
5832 echo "configure: failed program was:" >&5 | 5831 echo "configure: failed program was:" >&5 |
5833 cat conftest.$ac_ext >&5 | 5832 cat conftest.$ac_ext >&5 |
5844 else | 5843 else |
5845 echo "$ac_t""no" 1>&6 | 5844 echo "$ac_t""no" 1>&6 |
5846 fi | 5845 fi |
5847 | 5846 |
5848 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 | 5847 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 |
5849 echo "configure:5850: checking for kvm_open in -lkvm" >&5 | 5848 echo "configure:5849: checking for kvm_open in -lkvm" >&5 |
5850 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` | 5849 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` |
5851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5852 echo $ac_n "(cached) $ac_c" 1>&6 | 5851 echo $ac_n "(cached) $ac_c" 1>&6 |
5853 else | 5852 else |
5854 ac_save_LIBS="$LIBS" | 5853 ac_save_LIBS="$LIBS" |
5855 LIBS="-lkvm $LIBS" | 5854 LIBS="-lkvm $LIBS" |
5856 cat > conftest.$ac_ext <<EOF | 5855 cat > conftest.$ac_ext <<EOF |
5857 #line 5858 "configure" | 5856 #line 5857 "configure" |
5858 #include "confdefs.h" | 5857 #include "confdefs.h" |
5859 /* Override any gcc2 internal prototype to avoid an error. */ | 5858 /* Override any gcc2 internal prototype to avoid an error. */ |
5860 /* We use char because int might match the return type of a gcc2 | 5859 /* We use char because int might match the return type of a gcc2 |
5861 builtin and then its argument prototype would still apply. */ | 5860 builtin and then its argument prototype would still apply. */ |
5862 char kvm_open(); | 5861 char kvm_open(); |
5863 | 5862 |
5864 int main() { | 5863 int main() { |
5865 kvm_open() | 5864 kvm_open() |
5866 ; return 0; } | 5865 ; return 0; } |
5867 EOF | 5866 EOF |
5868 if { (eval echo configure:5869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5867 if { (eval echo configure:5868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5869 rm -rf conftest* | 5868 rm -rf conftest* |
5870 eval "ac_cv_lib_$ac_lib_var=yes" | 5869 eval "ac_cv_lib_$ac_lib_var=yes" |
5871 else | 5870 else |
5872 echo "configure: failed program was:" >&5 | 5871 echo "configure: failed program was:" >&5 |
5873 cat conftest.$ac_ext >&5 | 5872 cat conftest.$ac_ext >&5 |
5885 echo "$ac_t""no" 1>&6 | 5884 echo "$ac_t""no" 1>&6 |
5886 fi | 5885 fi |
5887 | 5886 |
5888 # Check for the 4.4BSD definition of getloadavg. | 5887 # Check for the 4.4BSD definition of getloadavg. |
5889 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 | 5888 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 |
5890 echo "configure:5891: checking for getloadavg in -lutil" >&5 | 5889 echo "configure:5890: checking for getloadavg in -lutil" >&5 |
5891 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` | 5890 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` |
5892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5893 echo $ac_n "(cached) $ac_c" 1>&6 | 5892 echo $ac_n "(cached) $ac_c" 1>&6 |
5894 else | 5893 else |
5895 ac_save_LIBS="$LIBS" | 5894 ac_save_LIBS="$LIBS" |
5896 LIBS="-lutil $LIBS" | 5895 LIBS="-lutil $LIBS" |
5897 cat > conftest.$ac_ext <<EOF | 5896 cat > conftest.$ac_ext <<EOF |
5898 #line 5899 "configure" | 5897 #line 5898 "configure" |
5899 #include "confdefs.h" | 5898 #include "confdefs.h" |
5900 /* Override any gcc2 internal prototype to avoid an error. */ | 5899 /* Override any gcc2 internal prototype to avoid an error. */ |
5901 /* We use char because int might match the return type of a gcc2 | 5900 /* We use char because int might match the return type of a gcc2 |
5902 builtin and then its argument prototype would still apply. */ | 5901 builtin and then its argument prototype would still apply. */ |
5903 char getloadavg(); | 5902 char getloadavg(); |
5904 | 5903 |
5905 int main() { | 5904 int main() { |
5906 getloadavg() | 5905 getloadavg() |
5907 ; return 0; } | 5906 ; return 0; } |
5908 EOF | 5907 EOF |
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5908 if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5910 rm -rf conftest* | 5909 rm -rf conftest* |
5911 eval "ac_cv_lib_$ac_lib_var=yes" | 5910 eval "ac_cv_lib_$ac_lib_var=yes" |
5912 else | 5911 else |
5913 echo "configure: failed program was:" >&5 | 5912 echo "configure: failed program was:" >&5 |
5914 cat conftest.$ac_ext >&5 | 5913 cat conftest.$ac_ext >&5 |
5930 if test $ac_have_func = no; then | 5929 if test $ac_have_func = no; then |
5931 # There is a commonly available library for RS/6000 AIX. | 5930 # There is a commonly available library for RS/6000 AIX. |
5932 # Since it is not a standard part of AIX, it might be installed locally. | 5931 # Since it is not a standard part of AIX, it might be installed locally. |
5933 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" | 5932 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" |
5934 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 | 5933 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 |
5935 echo "configure:5936: checking for getloadavg in -lgetloadavg" >&5 | 5934 echo "configure:5935: checking for getloadavg in -lgetloadavg" >&5 |
5936 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` | 5935 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` |
5937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5938 echo $ac_n "(cached) $ac_c" 1>&6 | 5937 echo $ac_n "(cached) $ac_c" 1>&6 |
5939 else | 5938 else |
5940 ac_save_LIBS="$LIBS" | 5939 ac_save_LIBS="$LIBS" |
5941 LIBS="-lgetloadavg $LIBS" | 5940 LIBS="-lgetloadavg $LIBS" |
5942 cat > conftest.$ac_ext <<EOF | 5941 cat > conftest.$ac_ext <<EOF |
5943 #line 5944 "configure" | 5942 #line 5943 "configure" |
5944 #include "confdefs.h" | 5943 #include "confdefs.h" |
5945 /* Override any gcc2 internal prototype to avoid an error. */ | 5944 /* Override any gcc2 internal prototype to avoid an error. */ |
5946 /* We use char because int might match the return type of a gcc2 | 5945 /* We use char because int might match the return type of a gcc2 |
5947 builtin and then its argument prototype would still apply. */ | 5946 builtin and then its argument prototype would still apply. */ |
5948 char getloadavg(); | 5947 char getloadavg(); |
5949 | 5948 |
5950 int main() { | 5949 int main() { |
5951 getloadavg() | 5950 getloadavg() |
5952 ; return 0; } | 5951 ; return 0; } |
5953 EOF | 5952 EOF |
5954 if { (eval echo configure:5955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5953 if { (eval echo configure:5954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5955 rm -rf conftest* | 5954 rm -rf conftest* |
5956 eval "ac_cv_lib_$ac_lib_var=yes" | 5955 eval "ac_cv_lib_$ac_lib_var=yes" |
5957 else | 5956 else |
5958 echo "configure: failed program was:" >&5 | 5957 echo "configure: failed program was:" >&5 |
5959 cat conftest.$ac_ext >&5 | 5958 cat conftest.$ac_ext >&5 |
5976 | 5975 |
5977 # Make sure it is really in the library, if we think we found it. | 5976 # Make sure it is really in the library, if we think we found it. |
5978 for ac_func in getloadavg | 5977 for ac_func in getloadavg |
5979 do | 5978 do |
5980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5981 echo "configure:5982: checking for $ac_func" >&5 | 5980 echo "configure:5981: checking for $ac_func" >&5 |
5982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5983 echo $ac_n "(cached) $ac_c" 1>&6 | 5982 echo $ac_n "(cached) $ac_c" 1>&6 |
5984 else | 5983 else |
5985 cat > conftest.$ac_ext <<EOF | 5984 cat > conftest.$ac_ext <<EOF |
5986 #line 5987 "configure" | 5985 #line 5986 "configure" |
5987 #include "confdefs.h" | 5986 #include "confdefs.h" |
5988 /* System header to define __stub macros and hopefully few prototypes, | 5987 /* System header to define __stub macros and hopefully few prototypes, |
5989 which can conflict with char $ac_func(); below. */ | 5988 which can conflict with char $ac_func(); below. */ |
5990 #include <assert.h> | 5989 #include <assert.h> |
5991 /* Override any gcc2 internal prototype to avoid an error. */ | 5990 /* Override any gcc2 internal prototype to avoid an error. */ |
6004 $ac_func(); | 6003 $ac_func(); |
6005 #endif | 6004 #endif |
6006 | 6005 |
6007 ; return 0; } | 6006 ; return 0; } |
6008 EOF | 6007 EOF |
6009 if { (eval echo configure:6010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6008 if { (eval echo configure:6009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6010 rm -rf conftest* | 6009 rm -rf conftest* |
6011 eval "ac_cv_func_$ac_func=yes" | 6010 eval "ac_cv_func_$ac_func=yes" |
6012 else | 6011 else |
6013 echo "configure: failed program was:" >&5 | 6012 echo "configure: failed program was:" >&5 |
6014 cat conftest.$ac_ext >&5 | 6013 cat conftest.$ac_ext >&5 |
6042 else | 6041 else |
6043 # Figure out what our getloadavg.c needs. | 6042 # Figure out what our getloadavg.c needs. |
6044 ac_have_func=no | 6043 ac_have_func=no |
6045 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` | 6044 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` |
6046 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 | 6045 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 |
6047 echo "configure:6048: checking for sys/dg_sys_info.h" >&5 | 6046 echo "configure:6047: checking for sys/dg_sys_info.h" >&5 |
6048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6047 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6049 echo $ac_n "(cached) $ac_c" 1>&6 | 6048 echo $ac_n "(cached) $ac_c" 1>&6 |
6050 else | 6049 else |
6051 cat > conftest.$ac_ext <<EOF | 6050 cat > conftest.$ac_ext <<EOF |
6052 #line 6053 "configure" | 6051 #line 6052 "configure" |
6053 #include "confdefs.h" | 6052 #include "confdefs.h" |
6054 #include <sys/dg_sys_info.h> | 6053 #include <sys/dg_sys_info.h> |
6055 EOF | 6054 EOF |
6056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6057 { (eval echo configure:6058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6056 { (eval echo configure:6057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6059 if test -z "$ac_err"; then | 6058 if test -z "$ac_err"; then |
6060 rm -rf conftest* | 6059 rm -rf conftest* |
6061 eval "ac_cv_header_$ac_safe=yes" | 6060 eval "ac_cv_header_$ac_safe=yes" |
6062 else | 6061 else |
6073 ac_have_func=yes; cat >> confdefs.h <<\EOF | 6072 ac_have_func=yes; cat >> confdefs.h <<\EOF |
6074 #define DGUX 1 | 6073 #define DGUX 1 |
6075 EOF | 6074 EOF |
6076 | 6075 |
6077 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 | 6076 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 |
6078 echo "configure:6079: checking for dg_sys_info in -ldgc" >&5 | 6077 echo "configure:6078: checking for dg_sys_info in -ldgc" >&5 |
6079 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` | 6078 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` |
6080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6081 echo $ac_n "(cached) $ac_c" 1>&6 | 6080 echo $ac_n "(cached) $ac_c" 1>&6 |
6082 else | 6081 else |
6083 ac_save_LIBS="$LIBS" | 6082 ac_save_LIBS="$LIBS" |
6084 LIBS="-ldgc $LIBS" | 6083 LIBS="-ldgc $LIBS" |
6085 cat > conftest.$ac_ext <<EOF | 6084 cat > conftest.$ac_ext <<EOF |
6086 #line 6087 "configure" | 6085 #line 6086 "configure" |
6087 #include "confdefs.h" | 6086 #include "confdefs.h" |
6088 /* Override any gcc2 internal prototype to avoid an error. */ | 6087 /* Override any gcc2 internal prototype to avoid an error. */ |
6089 /* We use char because int might match the return type of a gcc2 | 6088 /* We use char because int might match the return type of a gcc2 |
6090 builtin and then its argument prototype would still apply. */ | 6089 builtin and then its argument prototype would still apply. */ |
6091 char dg_sys_info(); | 6090 char dg_sys_info(); |
6092 | 6091 |
6093 int main() { | 6092 int main() { |
6094 dg_sys_info() | 6093 dg_sys_info() |
6095 ; return 0; } | 6094 ; return 0; } |
6096 EOF | 6095 EOF |
6097 if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6096 if { (eval echo configure:6097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6098 rm -rf conftest* | 6097 rm -rf conftest* |
6099 eval "ac_cv_lib_$ac_lib_var=yes" | 6098 eval "ac_cv_lib_$ac_lib_var=yes" |
6100 else | 6099 else |
6101 echo "configure: failed program was:" >&5 | 6100 echo "configure: failed program was:" >&5 |
6102 cat conftest.$ac_ext >&5 | 6101 cat conftest.$ac_ext >&5 |
6137 fi | 6136 fi |
6138 | 6137 |
6139 if test $ac_have_func = no; then | 6138 if test $ac_have_func = no; then |
6140 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` | 6139 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` |
6141 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 | 6140 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 |
6142 echo "configure:6143: checking for inq_stats/cpustats.h" >&5 | 6141 echo "configure:6142: checking for inq_stats/cpustats.h" >&5 |
6143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6142 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6144 echo $ac_n "(cached) $ac_c" 1>&6 | 6143 echo $ac_n "(cached) $ac_c" 1>&6 |
6145 else | 6144 else |
6146 cat > conftest.$ac_ext <<EOF | 6145 cat > conftest.$ac_ext <<EOF |
6147 #line 6148 "configure" | 6146 #line 6147 "configure" |
6148 #include "confdefs.h" | 6147 #include "confdefs.h" |
6149 #include <inq_stats/cpustats.h> | 6148 #include <inq_stats/cpustats.h> |
6150 EOF | 6149 EOF |
6151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6152 { (eval echo configure:6153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6151 { (eval echo configure:6152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6154 if test -z "$ac_err"; then | 6153 if test -z "$ac_err"; then |
6155 rm -rf conftest* | 6154 rm -rf conftest* |
6156 eval "ac_cv_header_$ac_safe=yes" | 6155 eval "ac_cv_header_$ac_safe=yes" |
6157 else | 6156 else |
6180 fi | 6179 fi |
6181 | 6180 |
6182 if test $ac_have_func = no; then | 6181 if test $ac_have_func = no; then |
6183 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` | 6182 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` |
6184 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 | 6183 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 |
6185 echo "configure:6186: checking for sys/cpustats.h" >&5 | 6184 echo "configure:6185: checking for sys/cpustats.h" >&5 |
6186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6187 echo $ac_n "(cached) $ac_c" 1>&6 | 6186 echo $ac_n "(cached) $ac_c" 1>&6 |
6188 else | 6187 else |
6189 cat > conftest.$ac_ext <<EOF | 6188 cat > conftest.$ac_ext <<EOF |
6190 #line 6191 "configure" | 6189 #line 6190 "configure" |
6191 #include "confdefs.h" | 6190 #include "confdefs.h" |
6192 #include <sys/cpustats.h> | 6191 #include <sys/cpustats.h> |
6193 EOF | 6192 EOF |
6194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6195 { (eval echo configure:6196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6194 { (eval echo configure:6195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6197 if test -z "$ac_err"; then | 6196 if test -z "$ac_err"; then |
6198 rm -rf conftest* | 6197 rm -rf conftest* |
6199 eval "ac_cv_header_$ac_safe=yes" | 6198 eval "ac_cv_header_$ac_safe=yes" |
6200 else | 6199 else |
6221 if test $ac_have_func = no; then | 6220 if test $ac_have_func = no; then |
6222 for ac_hdr in mach/mach.h | 6221 for ac_hdr in mach/mach.h |
6223 do | 6222 do |
6224 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6225 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6226 echo "configure:6227: checking for $ac_hdr" >&5 | 6225 echo "configure:6226: checking for $ac_hdr" >&5 |
6227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6228 echo $ac_n "(cached) $ac_c" 1>&6 | 6227 echo $ac_n "(cached) $ac_c" 1>&6 |
6229 else | 6228 else |
6230 cat > conftest.$ac_ext <<EOF | 6229 cat > conftest.$ac_ext <<EOF |
6231 #line 6232 "configure" | 6230 #line 6231 "configure" |
6232 #include "confdefs.h" | 6231 #include "confdefs.h" |
6233 #include <$ac_hdr> | 6232 #include <$ac_hdr> |
6234 EOF | 6233 EOF |
6235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6236 { (eval echo configure:6237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6235 { (eval echo configure:6236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6238 if test -z "$ac_err"; then | 6237 if test -z "$ac_err"; then |
6239 rm -rf conftest* | 6238 rm -rf conftest* |
6240 eval "ac_cv_header_$ac_safe=yes" | 6239 eval "ac_cv_header_$ac_safe=yes" |
6241 else | 6240 else |
6261 | 6260 |
6262 fi | 6261 fi |
6263 | 6262 |
6264 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | 6263 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` |
6265 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | 6264 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 |
6266 echo "configure:6267: checking for nlist.h" >&5 | 6265 echo "configure:6266: checking for nlist.h" >&5 |
6267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6266 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6268 echo $ac_n "(cached) $ac_c" 1>&6 | 6267 echo $ac_n "(cached) $ac_c" 1>&6 |
6269 else | 6268 else |
6270 cat > conftest.$ac_ext <<EOF | 6269 cat > conftest.$ac_ext <<EOF |
6271 #line 6272 "configure" | 6270 #line 6271 "configure" |
6272 #include "confdefs.h" | 6271 #include "confdefs.h" |
6273 #include <nlist.h> | 6272 #include <nlist.h> |
6274 EOF | 6273 EOF |
6275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6276 { (eval echo configure:6277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6275 { (eval echo configure:6276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6278 if test -z "$ac_err"; then | 6277 if test -z "$ac_err"; then |
6279 rm -rf conftest* | 6278 rm -rf conftest* |
6280 eval "ac_cv_header_$ac_safe=yes" | 6279 eval "ac_cv_header_$ac_safe=yes" |
6281 else | 6280 else |
6292 cat >> confdefs.h <<\EOF | 6291 cat >> confdefs.h <<\EOF |
6293 #define NLIST_STRUCT 1 | 6292 #define NLIST_STRUCT 1 |
6294 EOF | 6293 EOF |
6295 | 6294 |
6296 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 | 6295 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 |
6297 echo "configure:6298: checking for n_un in struct nlist" >&5 | 6296 echo "configure:6297: checking for n_un in struct nlist" >&5 |
6298 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then | 6297 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then |
6299 echo $ac_n "(cached) $ac_c" 1>&6 | 6298 echo $ac_n "(cached) $ac_c" 1>&6 |
6300 else | 6299 else |
6301 cat > conftest.$ac_ext <<EOF | 6300 cat > conftest.$ac_ext <<EOF |
6302 #line 6303 "configure" | 6301 #line 6302 "configure" |
6303 #include "confdefs.h" | 6302 #include "confdefs.h" |
6304 #include <nlist.h> | 6303 #include <nlist.h> |
6305 int main() { | 6304 int main() { |
6306 struct nlist n; n.n_un.n_name = 0; | 6305 struct nlist n; n.n_un.n_name = 0; |
6307 ; return 0; } | 6306 ; return 0; } |
6308 EOF | 6307 EOF |
6309 if { (eval echo configure:6310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6308 if { (eval echo configure:6309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6310 rm -rf conftest* | 6309 rm -rf conftest* |
6311 ac_cv_struct_nlist_n_un=yes | 6310 ac_cv_struct_nlist_n_un=yes |
6312 else | 6311 else |
6313 echo "configure: failed program was:" >&5 | 6312 echo "configure: failed program was:" >&5 |
6314 cat conftest.$ac_ext >&5 | 6313 cat conftest.$ac_ext >&5 |
6331 fi | 6330 fi |
6332 fi # Do not have getloadavg in system libraries. | 6331 fi # Do not have getloadavg in system libraries. |
6333 | 6332 |
6334 # Some definitions of getloadavg require that the program be installed setgid. | 6333 # Some definitions of getloadavg require that the program be installed setgid. |
6335 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 | 6334 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 |
6336 echo "configure:6337: checking whether getloadavg requires setgid" >&5 | 6335 echo "configure:6336: checking whether getloadavg requires setgid" >&5 |
6337 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then | 6336 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then |
6338 echo $ac_n "(cached) $ac_c" 1>&6 | 6337 echo $ac_n "(cached) $ac_c" 1>&6 |
6339 else | 6338 else |
6340 cat > conftest.$ac_ext <<EOF | 6339 cat > conftest.$ac_ext <<EOF |
6341 #line 6342 "configure" | 6340 #line 6341 "configure" |
6342 #include "confdefs.h" | 6341 #include "confdefs.h" |
6343 #include "$srcdir/getloadavg.c" | 6342 #include "$srcdir/getloadavg.c" |
6344 #ifdef LDAV_PRIVILEGED | 6343 #ifdef LDAV_PRIVILEGED |
6345 Yowza Am I SETGID yet | 6344 Yowza Am I SETGID yet |
6346 #endif | 6345 #endif |
6367 NEED_SETGID=false | 6366 NEED_SETGID=false |
6368 fi | 6367 fi |
6369 | 6368 |
6370 if test $ac_cv_func_getloadavg_setgid = yes; then | 6369 if test $ac_cv_func_getloadavg_setgid = yes; then |
6371 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 | 6370 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 |
6372 echo "configure:6373: checking group of /dev/kmem" >&5 | 6371 echo "configure:6372: checking group of /dev/kmem" >&5 |
6373 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then | 6372 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then |
6374 echo $ac_n "(cached) $ac_c" 1>&6 | 6373 echo $ac_n "(cached) $ac_c" 1>&6 |
6375 else | 6374 else |
6376 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | 6375 # On Solaris, /dev/kmem is a symlink. Get info on the real file. |
6377 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | 6376 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
6396 fi | 6395 fi |
6397 | 6396 |
6398 if test "$enable_largefile" != no; then | 6397 if test "$enable_largefile" != no; then |
6399 | 6398 |
6400 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 | 6399 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 |
6401 echo "configure:6402: checking for special C compiler options needed for large files" >&5 | 6400 echo "configure:6401: checking for special C compiler options needed for large files" >&5 |
6402 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then | 6401 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then |
6403 echo $ac_n "(cached) $ac_c" 1>&6 | 6402 echo $ac_n "(cached) $ac_c" 1>&6 |
6404 else | 6403 else |
6405 ac_cv_sys_largefile_CC=no | 6404 ac_cv_sys_largefile_CC=no |
6406 if test "$GCC" != yes; then | 6405 if test "$GCC" != yes; then |
6407 # IRIX 6.2 and later do not support large files by default, | 6406 # IRIX 6.2 and later do not support large files by default, |
6408 # so use the C compiler's -n32 option if that helps. | 6407 # so use the C compiler's -n32 option if that helps. |
6409 cat > conftest.$ac_ext <<EOF | 6408 cat > conftest.$ac_ext <<EOF |
6410 #line 6411 "configure" | 6409 #line 6410 "configure" |
6411 #include "confdefs.h" | 6410 #include "confdefs.h" |
6412 #include <sys/types.h> | 6411 #include <sys/types.h> |
6413 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6412 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
6414 | 6413 |
6415 int main() { | 6414 int main() { |
6416 | 6415 |
6417 ; return 0; } | 6416 ; return 0; } |
6418 EOF | 6417 EOF |
6419 if { (eval echo configure:6420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6418 if { (eval echo configure:6419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6420 : | 6419 : |
6421 else | 6420 else |
6422 echo "configure: failed program was:" >&5 | 6421 echo "configure: failed program was:" >&5 |
6423 cat conftest.$ac_ext >&5 | 6422 cat conftest.$ac_ext >&5 |
6424 rm -rf conftest* | 6423 rm -rf conftest* |
6425 ac_save_CC="$CC" | 6424 ac_save_CC="$CC" |
6426 CC="$CC -n32" | 6425 CC="$CC -n32" |
6427 cat > conftest.$ac_ext <<EOF | 6426 cat > conftest.$ac_ext <<EOF |
6428 #line 6429 "configure" | 6427 #line 6428 "configure" |
6429 #include "confdefs.h" | 6428 #include "confdefs.h" |
6430 #include <sys/types.h> | 6429 #include <sys/types.h> |
6431 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6430 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
6432 | 6431 |
6433 int main() { | 6432 int main() { |
6434 | 6433 |
6435 ; return 0; } | 6434 ; return 0; } |
6436 EOF | 6435 EOF |
6437 if { (eval echo configure:6438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6436 if { (eval echo configure:6437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6438 rm -rf conftest* | 6437 rm -rf conftest* |
6439 ac_cv_sys_largefile_CC=' -n32' | 6438 ac_cv_sys_largefile_CC=' -n32' |
6440 else | 6439 else |
6441 echo "configure: failed program was:" >&5 | 6440 echo "configure: failed program was:" >&5 |
6442 cat conftest.$ac_ext >&5 | 6441 cat conftest.$ac_ext >&5 |
6452 if test "$ac_cv_sys_largefile_CC" != no; then | 6451 if test "$ac_cv_sys_largefile_CC" != no; then |
6453 CC="$CC$ac_cv_sys_largefile_CC" | 6452 CC="$CC$ac_cv_sys_largefile_CC" |
6454 fi | 6453 fi |
6455 | 6454 |
6456 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | 6455 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 |
6457 echo "configure:6458: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | 6456 echo "configure:6457: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
6458 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then | 6457 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
6459 echo $ac_n "(cached) $ac_c" 1>&6 | 6458 echo $ac_n "(cached) $ac_c" 1>&6 |
6460 else | 6459 else |
6461 ac_cv_sys_file_offset_bits=no | 6460 ac_cv_sys_file_offset_bits=no |
6462 cat > conftest.$ac_ext <<EOF | 6461 cat > conftest.$ac_ext <<EOF |
6463 #line 6464 "configure" | 6462 #line 6463 "configure" |
6464 #include "confdefs.h" | 6463 #include "confdefs.h" |
6465 #include <sys/types.h> | 6464 #include <sys/types.h> |
6466 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6465 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
6467 | 6466 |
6468 | 6467 |
6469 | 6468 |
6470 int main() { | 6469 int main() { |
6471 | 6470 |
6472 ; return 0; } | 6471 ; return 0; } |
6473 EOF | 6472 EOF |
6474 if { (eval echo configure:6475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6473 if { (eval echo configure:6474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6475 : | 6474 : |
6476 else | 6475 else |
6477 echo "configure: failed program was:" >&5 | 6476 echo "configure: failed program was:" >&5 |
6478 cat conftest.$ac_ext >&5 | 6477 cat conftest.$ac_ext >&5 |
6479 rm -rf conftest* | 6478 rm -rf conftest* |
6480 cat > conftest.$ac_ext <<EOF | 6479 cat > conftest.$ac_ext <<EOF |
6481 #line 6482 "configure" | 6480 #line 6481 "configure" |
6482 #include "confdefs.h" | 6481 #include "confdefs.h" |
6483 #define _FILE_OFFSET_BITS 64 | 6482 #define _FILE_OFFSET_BITS 64 |
6484 #include <sys/types.h> | 6483 #include <sys/types.h> |
6485 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6484 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
6486 | 6485 |
6488 | 6487 |
6489 int main() { | 6488 int main() { |
6490 | 6489 |
6491 ; return 0; } | 6490 ; return 0; } |
6492 EOF | 6491 EOF |
6493 if { (eval echo configure:6494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6492 if { (eval echo configure:6493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6494 rm -rf conftest* | 6493 rm -rf conftest* |
6495 ac_cv_sys_file_offset_bits=64 | 6494 ac_cv_sys_file_offset_bits=64 |
6496 else | 6495 else |
6497 echo "configure: failed program was:" >&5 | 6496 echo "configure: failed program was:" >&5 |
6498 cat conftest.$ac_ext >&5 | 6497 cat conftest.$ac_ext >&5 |
6508 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | 6507 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
6509 EOF | 6508 EOF |
6510 | 6509 |
6511 fi | 6510 fi |
6512 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 | 6511 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 |
6513 echo "configure:6514: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | 6512 echo "configure:6513: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
6514 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then | 6513 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then |
6515 echo $ac_n "(cached) $ac_c" 1>&6 | 6514 echo $ac_n "(cached) $ac_c" 1>&6 |
6516 else | 6515 else |
6517 ac_cv_sys_largefile_source=no | 6516 ac_cv_sys_largefile_source=no |
6518 cat > conftest.$ac_ext <<EOF | 6517 cat > conftest.$ac_ext <<EOF |
6519 #line 6520 "configure" | 6518 #line 6519 "configure" |
6520 #include "confdefs.h" | 6519 #include "confdefs.h" |
6521 #include <sys/types.h> | 6520 #include <sys/types.h> |
6522 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6521 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
6523 | 6522 |
6524 #include <stdio.h> | 6523 #include <stdio.h> |
6525 | 6524 |
6526 int main() { | 6525 int main() { |
6527 return !ftello; | 6526 return !ftello; |
6528 ; return 0; } | 6527 ; return 0; } |
6529 EOF | 6528 EOF |
6530 if { (eval echo configure:6531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6529 if { (eval echo configure:6530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6531 : | 6530 : |
6532 else | 6531 else |
6533 echo "configure: failed program was:" >&5 | 6532 echo "configure: failed program was:" >&5 |
6534 cat conftest.$ac_ext >&5 | 6533 cat conftest.$ac_ext >&5 |
6535 rm -rf conftest* | 6534 rm -rf conftest* |
6536 cat > conftest.$ac_ext <<EOF | 6535 cat > conftest.$ac_ext <<EOF |
6537 #line 6538 "configure" | 6536 #line 6537 "configure" |
6538 #include "confdefs.h" | 6537 #include "confdefs.h" |
6539 #define _LARGEFILE_SOURCE 1 | 6538 #define _LARGEFILE_SOURCE 1 |
6540 #include <sys/types.h> | 6539 #include <sys/types.h> |
6541 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6540 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
6542 | 6541 |
6544 | 6543 |
6545 int main() { | 6544 int main() { |
6546 return !ftello; | 6545 return !ftello; |
6547 ; return 0; } | 6546 ; return 0; } |
6548 EOF | 6547 EOF |
6549 if { (eval echo configure:6550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6548 if { (eval echo configure:6549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6550 rm -rf conftest* | 6549 rm -rf conftest* |
6551 ac_cv_sys_largefile_source=1 | 6550 ac_cv_sys_largefile_source=1 |
6552 else | 6551 else |
6553 echo "configure: failed program was:" >&5 | 6552 echo "configure: failed program was:" >&5 |
6554 cat conftest.$ac_ext >&5 | 6553 cat conftest.$ac_ext >&5 |
6564 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | 6563 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
6565 EOF | 6564 EOF |
6566 | 6565 |
6567 fi | 6566 fi |
6568 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | 6567 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 |
6569 echo "configure:6570: checking for _LARGE_FILES value needed for large files" >&5 | 6568 echo "configure:6569: checking for _LARGE_FILES value needed for large files" >&5 |
6570 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then | 6569 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
6571 echo $ac_n "(cached) $ac_c" 1>&6 | 6570 echo $ac_n "(cached) $ac_c" 1>&6 |
6572 else | 6571 else |
6573 ac_cv_sys_large_files=no | 6572 ac_cv_sys_large_files=no |
6574 cat > conftest.$ac_ext <<EOF | 6573 cat > conftest.$ac_ext <<EOF |
6575 #line 6576 "configure" | 6574 #line 6575 "configure" |
6576 #include "confdefs.h" | 6575 #include "confdefs.h" |
6577 #include <sys/types.h> | 6576 #include <sys/types.h> |
6578 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6577 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
6579 | 6578 |
6580 | 6579 |
6581 | 6580 |
6582 int main() { | 6581 int main() { |
6583 | 6582 |
6584 ; return 0; } | 6583 ; return 0; } |
6585 EOF | 6584 EOF |
6586 if { (eval echo configure:6587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6585 if { (eval echo configure:6586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6587 : | 6586 : |
6588 else | 6587 else |
6589 echo "configure: failed program was:" >&5 | 6588 echo "configure: failed program was:" >&5 |
6590 cat conftest.$ac_ext >&5 | 6589 cat conftest.$ac_ext >&5 |
6591 rm -rf conftest* | 6590 rm -rf conftest* |
6592 cat > conftest.$ac_ext <<EOF | 6591 cat > conftest.$ac_ext <<EOF |
6593 #line 6594 "configure" | 6592 #line 6593 "configure" |
6594 #include "confdefs.h" | 6593 #include "confdefs.h" |
6595 #define _LARGE_FILES 1 | 6594 #define _LARGE_FILES 1 |
6596 #include <sys/types.h> | 6595 #include <sys/types.h> |
6597 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6596 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
6598 | 6597 |
6600 | 6599 |
6601 int main() { | 6600 int main() { |
6602 | 6601 |
6603 ; return 0; } | 6602 ; return 0; } |
6604 EOF | 6603 EOF |
6605 if { (eval echo configure:6606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6604 if { (eval echo configure:6605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6606 rm -rf conftest* | 6605 rm -rf conftest* |
6607 ac_cv_sys_large_files=1 | 6606 ac_cv_sys_large_files=1 |
6608 else | 6607 else |
6609 echo "configure: failed program was:" >&5 | 6608 echo "configure: failed program was:" >&5 |
6610 cat conftest.$ac_ext >&5 | 6609 cat conftest.$ac_ext >&5 |
6620 #define _LARGE_FILES $ac_cv_sys_large_files | 6619 #define _LARGE_FILES $ac_cv_sys_large_files |
6621 EOF | 6620 EOF |
6622 | 6621 |
6623 fi | 6622 fi |
6624 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 | 6623 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 |
6625 echo "configure:6626: checking for _XOPEN_SOURCE value needed for large files" >&5 | 6624 echo "configure:6625: checking for _XOPEN_SOURCE value needed for large files" >&5 |
6626 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then | 6625 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then |
6627 echo $ac_n "(cached) $ac_c" 1>&6 | 6626 echo $ac_n "(cached) $ac_c" 1>&6 |
6628 else | 6627 else |
6629 ac_cv_sys_xopen_source=no | 6628 ac_cv_sys_xopen_source=no |
6630 cat > conftest.$ac_ext <<EOF | 6629 cat > conftest.$ac_ext <<EOF |
6631 #line 6632 "configure" | 6630 #line 6631 "configure" |
6632 #include "confdefs.h" | 6631 #include "confdefs.h" |
6633 #include <sys/types.h> | 6632 #include <sys/types.h> |
6634 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6633 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
6635 | 6634 |
6636 #include <stdio.h> | 6635 #include <stdio.h> |
6637 | 6636 |
6638 int main() { | 6637 int main() { |
6639 return !ftello; | 6638 return !ftello; |
6640 ; return 0; } | 6639 ; return 0; } |
6641 EOF | 6640 EOF |
6642 if { (eval echo configure:6643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6641 if { (eval echo configure:6642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6643 : | 6642 : |
6644 else | 6643 else |
6645 echo "configure: failed program was:" >&5 | 6644 echo "configure: failed program was:" >&5 |
6646 cat conftest.$ac_ext >&5 | 6645 cat conftest.$ac_ext >&5 |
6647 rm -rf conftest* | 6646 rm -rf conftest* |
6648 cat > conftest.$ac_ext <<EOF | 6647 cat > conftest.$ac_ext <<EOF |
6649 #line 6650 "configure" | 6648 #line 6649 "configure" |
6650 #include "confdefs.h" | 6649 #include "confdefs.h" |
6651 #define _XOPEN_SOURCE 500 | 6650 #define _XOPEN_SOURCE 500 |
6652 #include <sys/types.h> | 6651 #include <sys/types.h> |
6653 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6652 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
6654 | 6653 |
6656 | 6655 |
6657 int main() { | 6656 int main() { |
6658 return !ftello; | 6657 return !ftello; |
6659 ; return 0; } | 6658 ; return 0; } |
6660 EOF | 6659 EOF |
6661 if { (eval echo configure:6662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6660 if { (eval echo configure:6661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6662 rm -rf conftest* | 6661 rm -rf conftest* |
6663 ac_cv_sys_xopen_source=500 | 6662 ac_cv_sys_xopen_source=500 |
6664 else | 6663 else |
6665 echo "configure: failed program was:" >&5 | 6664 echo "configure: failed program was:" >&5 |
6666 cat conftest.$ac_ext >&5 | 6665 cat conftest.$ac_ext >&5 |
6680 fi | 6679 fi |
6681 | 6680 |
6682 for ac_func in ftello | 6681 for ac_func in ftello |
6683 do | 6682 do |
6684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6685 echo "configure:6686: checking for $ac_func" >&5 | 6684 echo "configure:6685: checking for $ac_func" >&5 |
6686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6687 echo $ac_n "(cached) $ac_c" 1>&6 | 6686 echo $ac_n "(cached) $ac_c" 1>&6 |
6688 else | 6687 else |
6689 cat > conftest.$ac_ext <<EOF | 6688 cat > conftest.$ac_ext <<EOF |
6690 #line 6691 "configure" | 6689 #line 6690 "configure" |
6691 #include "confdefs.h" | 6690 #include "confdefs.h" |
6692 /* System header to define __stub macros and hopefully few prototypes, | 6691 /* System header to define __stub macros and hopefully few prototypes, |
6693 which can conflict with char $ac_func(); below. */ | 6692 which can conflict with char $ac_func(); below. */ |
6694 #include <assert.h> | 6693 #include <assert.h> |
6695 /* Override any gcc2 internal prototype to avoid an error. */ | 6694 /* Override any gcc2 internal prototype to avoid an error. */ |
6708 $ac_func(); | 6707 $ac_func(); |
6709 #endif | 6708 #endif |
6710 | 6709 |
6711 ; return 0; } | 6710 ; return 0; } |
6712 EOF | 6711 EOF |
6713 if { (eval echo configure:6714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6712 if { (eval echo configure:6713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6714 rm -rf conftest* | 6713 rm -rf conftest* |
6715 eval "ac_cv_func_$ac_func=yes" | 6714 eval "ac_cv_func_$ac_func=yes" |
6716 else | 6715 else |
6717 echo "configure: failed program was:" >&5 | 6716 echo "configure: failed program was:" >&5 |
6718 cat conftest.$ac_ext >&5 | 6717 cat conftest.$ac_ext >&5 |
6738 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE | 6737 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE |
6739 # if we need it. | 6738 # if we need it. |
6740 for ac_func in grantpt | 6739 for ac_func in grantpt |
6741 do | 6740 do |
6742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6743 echo "configure:6744: checking for $ac_func" >&5 | 6742 echo "configure:6743: checking for $ac_func" >&5 |
6744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6745 echo $ac_n "(cached) $ac_c" 1>&6 | 6744 echo $ac_n "(cached) $ac_c" 1>&6 |
6746 else | 6745 else |
6747 cat > conftest.$ac_ext <<EOF | 6746 cat > conftest.$ac_ext <<EOF |
6748 #line 6749 "configure" | 6747 #line 6748 "configure" |
6749 #include "confdefs.h" | 6748 #include "confdefs.h" |
6750 /* System header to define __stub macros and hopefully few prototypes, | 6749 /* System header to define __stub macros and hopefully few prototypes, |
6751 which can conflict with char $ac_func(); below. */ | 6750 which can conflict with char $ac_func(); below. */ |
6752 #include <assert.h> | 6751 #include <assert.h> |
6753 /* Override any gcc2 internal prototype to avoid an error. */ | 6752 /* Override any gcc2 internal prototype to avoid an error. */ |
6766 $ac_func(); | 6765 $ac_func(); |
6767 #endif | 6766 #endif |
6768 | 6767 |
6769 ; return 0; } | 6768 ; return 0; } |
6770 EOF | 6769 EOF |
6771 if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6770 if { (eval echo configure:6771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6772 rm -rf conftest* | 6771 rm -rf conftest* |
6773 eval "ac_cv_func_$ac_func=yes" | 6772 eval "ac_cv_func_$ac_func=yes" |
6774 else | 6773 else |
6775 echo "configure: failed program was:" >&5 | 6774 echo "configure: failed program was:" >&5 |
6776 cat conftest.$ac_ext >&5 | 6775 cat conftest.$ac_ext >&5 |
6795 | 6794 |
6796 # PTY-related GNU extensions. | 6795 # PTY-related GNU extensions. |
6797 for ac_func in getpt | 6796 for ac_func in getpt |
6798 do | 6797 do |
6799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6800 echo "configure:6801: checking for $ac_func" >&5 | 6799 echo "configure:6800: checking for $ac_func" >&5 |
6801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6802 echo $ac_n "(cached) $ac_c" 1>&6 | 6801 echo $ac_n "(cached) $ac_c" 1>&6 |
6803 else | 6802 else |
6804 cat > conftest.$ac_ext <<EOF | 6803 cat > conftest.$ac_ext <<EOF |
6805 #line 6806 "configure" | 6804 #line 6805 "configure" |
6806 #include "confdefs.h" | 6805 #include "confdefs.h" |
6807 /* System header to define __stub macros and hopefully few prototypes, | 6806 /* System header to define __stub macros and hopefully few prototypes, |
6808 which can conflict with char $ac_func(); below. */ | 6807 which can conflict with char $ac_func(); below. */ |
6809 #include <assert.h> | 6808 #include <assert.h> |
6810 /* Override any gcc2 internal prototype to avoid an error. */ | 6809 /* Override any gcc2 internal prototype to avoid an error. */ |
6823 $ac_func(); | 6822 $ac_func(); |
6824 #endif | 6823 #endif |
6825 | 6824 |
6826 ; return 0; } | 6825 ; return 0; } |
6827 EOF | 6826 EOF |
6828 if { (eval echo configure:6829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6827 if { (eval echo configure:6828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6829 rm -rf conftest* | 6828 rm -rf conftest* |
6830 eval "ac_cv_func_$ac_func=yes" | 6829 eval "ac_cv_func_$ac_func=yes" |
6831 else | 6830 else |
6832 echo "configure: failed program was:" >&5 | 6831 echo "configure: failed program was:" >&5 |
6833 cat conftest.$ac_ext >&5 | 6832 cat conftest.$ac_ext >&5 |
6853 # Check this now, so that we will NOT find the above functions in ncurses. | 6852 # Check this now, so that we will NOT find the above functions in ncurses. |
6854 # That is because we have not set up to link ncurses in lib-src. | 6853 # That is because we have not set up to link ncurses in lib-src. |
6855 # It's better to believe a function is not available | 6854 # It's better to believe a function is not available |
6856 # than to expect to find it in ncurses. | 6855 # than to expect to find it in ncurses. |
6857 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | 6856 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 |
6858 echo "configure:6859: checking for tparm in -lncurses" >&5 | 6857 echo "configure:6858: checking for tparm in -lncurses" >&5 |
6859 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` | 6858 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
6860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6861 echo $ac_n "(cached) $ac_c" 1>&6 | 6860 echo $ac_n "(cached) $ac_c" 1>&6 |
6862 else | 6861 else |
6863 ac_save_LIBS="$LIBS" | 6862 ac_save_LIBS="$LIBS" |
6864 LIBS="-lncurses $LIBS" | 6863 LIBS="-lncurses $LIBS" |
6865 cat > conftest.$ac_ext <<EOF | 6864 cat > conftest.$ac_ext <<EOF |
6866 #line 6867 "configure" | 6865 #line 6866 "configure" |
6867 #include "confdefs.h" | 6866 #include "confdefs.h" |
6868 /* Override any gcc2 internal prototype to avoid an error. */ | 6867 /* Override any gcc2 internal prototype to avoid an error. */ |
6869 /* We use char because int might match the return type of a gcc2 | 6868 /* We use char because int might match the return type of a gcc2 |
6870 builtin and then its argument prototype would still apply. */ | 6869 builtin and then its argument prototype would still apply. */ |
6871 char tparm(); | 6870 char tparm(); |
6872 | 6871 |
6873 int main() { | 6872 int main() { |
6874 tparm() | 6873 tparm() |
6875 ; return 0; } | 6874 ; return 0; } |
6876 EOF | 6875 EOF |
6877 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6876 if { (eval echo configure:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6878 rm -rf conftest* | 6877 rm -rf conftest* |
6879 eval "ac_cv_lib_$ac_lib_var=yes" | 6878 eval "ac_cv_lib_$ac_lib_var=yes" |
6880 else | 6879 else |
6881 echo "configure: failed program was:" >&5 | 6880 echo "configure: failed program was:" >&5 |
6882 cat conftest.$ac_ext >&5 | 6881 cat conftest.$ac_ext >&5 |
6903 | 6902 |
6904 | 6903 |
6905 # These tell us which Kerberos-related libraries to use. | 6904 # These tell us which Kerberos-related libraries to use. |
6906 if test "${with_kerberos+set}" = set; then | 6905 if test "${with_kerberos+set}" = set; then |
6907 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 | 6906 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
6908 echo "configure:6909: checking for com_err in -lcom_err" >&5 | 6907 echo "configure:6908: checking for com_err in -lcom_err" >&5 |
6909 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` | 6908 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` |
6910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6911 echo $ac_n "(cached) $ac_c" 1>&6 | 6910 echo $ac_n "(cached) $ac_c" 1>&6 |
6912 else | 6911 else |
6913 ac_save_LIBS="$LIBS" | 6912 ac_save_LIBS="$LIBS" |
6914 LIBS="-lcom_err $LIBS" | 6913 LIBS="-lcom_err $LIBS" |
6915 cat > conftest.$ac_ext <<EOF | 6914 cat > conftest.$ac_ext <<EOF |
6916 #line 6917 "configure" | 6915 #line 6916 "configure" |
6917 #include "confdefs.h" | 6916 #include "confdefs.h" |
6918 /* Override any gcc2 internal prototype to avoid an error. */ | 6917 /* Override any gcc2 internal prototype to avoid an error. */ |
6919 /* We use char because int might match the return type of a gcc2 | 6918 /* We use char because int might match the return type of a gcc2 |
6920 builtin and then its argument prototype would still apply. */ | 6919 builtin and then its argument prototype would still apply. */ |
6921 char com_err(); | 6920 char com_err(); |
6922 | 6921 |
6923 int main() { | 6922 int main() { |
6924 com_err() | 6923 com_err() |
6925 ; return 0; } | 6924 ; return 0; } |
6926 EOF | 6925 EOF |
6927 if { (eval echo configure:6928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6926 if { (eval echo configure:6927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6928 rm -rf conftest* | 6927 rm -rf conftest* |
6929 eval "ac_cv_lib_$ac_lib_var=yes" | 6928 eval "ac_cv_lib_$ac_lib_var=yes" |
6930 else | 6929 else |
6931 echo "configure: failed program was:" >&5 | 6930 echo "configure: failed program was:" >&5 |
6932 cat conftest.$ac_ext >&5 | 6931 cat conftest.$ac_ext >&5 |
6950 else | 6949 else |
6951 echo "$ac_t""no" 1>&6 | 6950 echo "$ac_t""no" 1>&6 |
6952 fi | 6951 fi |
6953 | 6952 |
6954 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 | 6953 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
6955 echo "configure:6956: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | 6954 echo "configure:6955: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
6956 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 6955 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
6957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6958 echo $ac_n "(cached) $ac_c" 1>&6 | 6957 echo $ac_n "(cached) $ac_c" 1>&6 |
6959 else | 6958 else |
6960 ac_save_LIBS="$LIBS" | 6959 ac_save_LIBS="$LIBS" |
6961 LIBS="-lk5crypto $LIBS" | 6960 LIBS="-lk5crypto $LIBS" |
6962 cat > conftest.$ac_ext <<EOF | 6961 cat > conftest.$ac_ext <<EOF |
6963 #line 6964 "configure" | 6962 #line 6963 "configure" |
6964 #include "confdefs.h" | 6963 #include "confdefs.h" |
6965 /* Override any gcc2 internal prototype to avoid an error. */ | 6964 /* Override any gcc2 internal prototype to avoid an error. */ |
6966 /* We use char because int might match the return type of a gcc2 | 6965 /* We use char because int might match the return type of a gcc2 |
6967 builtin and then its argument prototype would still apply. */ | 6966 builtin and then its argument prototype would still apply. */ |
6968 char mit_des_cbc_encrypt(); | 6967 char mit_des_cbc_encrypt(); |
6969 | 6968 |
6970 int main() { | 6969 int main() { |
6971 mit_des_cbc_encrypt() | 6970 mit_des_cbc_encrypt() |
6972 ; return 0; } | 6971 ; return 0; } |
6973 EOF | 6972 EOF |
6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6973 if { (eval echo configure:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6975 rm -rf conftest* | 6974 rm -rf conftest* |
6976 eval "ac_cv_lib_$ac_lib_var=yes" | 6975 eval "ac_cv_lib_$ac_lib_var=yes" |
6977 else | 6976 else |
6978 echo "configure: failed program was:" >&5 | 6977 echo "configure: failed program was:" >&5 |
6979 cat conftest.$ac_ext >&5 | 6978 cat conftest.$ac_ext >&5 |
6997 else | 6996 else |
6998 echo "$ac_t""no" 1>&6 | 6997 echo "$ac_t""no" 1>&6 |
6999 fi | 6998 fi |
7000 | 6999 |
7001 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 | 7000 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
7002 echo "configure:7003: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | 7001 echo "configure:7002: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
7003 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7002 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7005 echo $ac_n "(cached) $ac_c" 1>&6 | 7004 echo $ac_n "(cached) $ac_c" 1>&6 |
7006 else | 7005 else |
7007 ac_save_LIBS="$LIBS" | 7006 ac_save_LIBS="$LIBS" |
7008 LIBS="-lcrypto $LIBS" | 7007 LIBS="-lcrypto $LIBS" |
7009 cat > conftest.$ac_ext <<EOF | 7008 cat > conftest.$ac_ext <<EOF |
7010 #line 7011 "configure" | 7009 #line 7010 "configure" |
7011 #include "confdefs.h" | 7010 #include "confdefs.h" |
7012 /* Override any gcc2 internal prototype to avoid an error. */ | 7011 /* Override any gcc2 internal prototype to avoid an error. */ |
7013 /* We use char because int might match the return type of a gcc2 | 7012 /* We use char because int might match the return type of a gcc2 |
7014 builtin and then its argument prototype would still apply. */ | 7013 builtin and then its argument prototype would still apply. */ |
7015 char mit_des_cbc_encrypt(); | 7014 char mit_des_cbc_encrypt(); |
7016 | 7015 |
7017 int main() { | 7016 int main() { |
7018 mit_des_cbc_encrypt() | 7017 mit_des_cbc_encrypt() |
7019 ; return 0; } | 7018 ; return 0; } |
7020 EOF | 7019 EOF |
7021 if { (eval echo configure:7022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7020 if { (eval echo configure:7021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7022 rm -rf conftest* | 7021 rm -rf conftest* |
7023 eval "ac_cv_lib_$ac_lib_var=yes" | 7022 eval "ac_cv_lib_$ac_lib_var=yes" |
7024 else | 7023 else |
7025 echo "configure: failed program was:" >&5 | 7024 echo "configure: failed program was:" >&5 |
7026 cat conftest.$ac_ext >&5 | 7025 cat conftest.$ac_ext >&5 |
7044 else | 7043 else |
7045 echo "$ac_t""no" 1>&6 | 7044 echo "$ac_t""no" 1>&6 |
7046 fi | 7045 fi |
7047 | 7046 |
7048 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 | 7047 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
7049 echo "configure:7050: checking for krb5_init_context in -lkrb5" >&5 | 7048 echo "configure:7049: checking for krb5_init_context in -lkrb5" >&5 |
7050 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` | 7049 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` |
7051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7052 echo $ac_n "(cached) $ac_c" 1>&6 | 7051 echo $ac_n "(cached) $ac_c" 1>&6 |
7053 else | 7052 else |
7054 ac_save_LIBS="$LIBS" | 7053 ac_save_LIBS="$LIBS" |
7055 LIBS="-lkrb5 $LIBS" | 7054 LIBS="-lkrb5 $LIBS" |
7056 cat > conftest.$ac_ext <<EOF | 7055 cat > conftest.$ac_ext <<EOF |
7057 #line 7058 "configure" | 7056 #line 7057 "configure" |
7058 #include "confdefs.h" | 7057 #include "confdefs.h" |
7059 /* Override any gcc2 internal prototype to avoid an error. */ | 7058 /* Override any gcc2 internal prototype to avoid an error. */ |
7060 /* We use char because int might match the return type of a gcc2 | 7059 /* We use char because int might match the return type of a gcc2 |
7061 builtin and then its argument prototype would still apply. */ | 7060 builtin and then its argument prototype would still apply. */ |
7062 char krb5_init_context(); | 7061 char krb5_init_context(); |
7063 | 7062 |
7064 int main() { | 7063 int main() { |
7065 krb5_init_context() | 7064 krb5_init_context() |
7066 ; return 0; } | 7065 ; return 0; } |
7067 EOF | 7066 EOF |
7068 if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7067 if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7069 rm -rf conftest* | 7068 rm -rf conftest* |
7070 eval "ac_cv_lib_$ac_lib_var=yes" | 7069 eval "ac_cv_lib_$ac_lib_var=yes" |
7071 else | 7070 else |
7072 echo "configure: failed program was:" >&5 | 7071 echo "configure: failed program was:" >&5 |
7073 cat conftest.$ac_ext >&5 | 7072 cat conftest.$ac_ext >&5 |
7092 echo "$ac_t""no" 1>&6 | 7091 echo "$ac_t""no" 1>&6 |
7093 fi | 7092 fi |
7094 | 7093 |
7095 if test "${with_kerberos5+set}" != set; then | 7094 if test "${with_kerberos5+set}" != set; then |
7096 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 | 7095 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
7097 echo "configure:7098: checking for des_cbc_encrypt in -ldes425" >&5 | 7096 echo "configure:7097: checking for des_cbc_encrypt in -ldes425" >&5 |
7098 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7097 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7100 echo $ac_n "(cached) $ac_c" 1>&6 | 7099 echo $ac_n "(cached) $ac_c" 1>&6 |
7101 else | 7100 else |
7102 ac_save_LIBS="$LIBS" | 7101 ac_save_LIBS="$LIBS" |
7103 LIBS="-ldes425 $LIBS" | 7102 LIBS="-ldes425 $LIBS" |
7104 cat > conftest.$ac_ext <<EOF | 7103 cat > conftest.$ac_ext <<EOF |
7105 #line 7106 "configure" | 7104 #line 7105 "configure" |
7106 #include "confdefs.h" | 7105 #include "confdefs.h" |
7107 /* Override any gcc2 internal prototype to avoid an error. */ | 7106 /* Override any gcc2 internal prototype to avoid an error. */ |
7108 /* We use char because int might match the return type of a gcc2 | 7107 /* We use char because int might match the return type of a gcc2 |
7109 builtin and then its argument prototype would still apply. */ | 7108 builtin and then its argument prototype would still apply. */ |
7110 char des_cbc_encrypt(); | 7109 char des_cbc_encrypt(); |
7111 | 7110 |
7112 int main() { | 7111 int main() { |
7113 des_cbc_encrypt() | 7112 des_cbc_encrypt() |
7114 ; return 0; } | 7113 ; return 0; } |
7115 EOF | 7114 EOF |
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7115 if { (eval echo configure:7116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7117 rm -rf conftest* | 7116 rm -rf conftest* |
7118 eval "ac_cv_lib_$ac_lib_var=yes" | 7117 eval "ac_cv_lib_$ac_lib_var=yes" |
7119 else | 7118 else |
7120 echo "configure: failed program was:" >&5 | 7119 echo "configure: failed program was:" >&5 |
7121 cat conftest.$ac_ext >&5 | 7120 cat conftest.$ac_ext >&5 |
7137 LIBS="-ldes425 $LIBS" | 7136 LIBS="-ldes425 $LIBS" |
7138 | 7137 |
7139 else | 7138 else |
7140 echo "$ac_t""no" 1>&6 | 7139 echo "$ac_t""no" 1>&6 |
7141 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 | 7140 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
7142 echo "configure:7143: checking for des_cbc_encrypt in -ldes" >&5 | 7141 echo "configure:7142: checking for des_cbc_encrypt in -ldes" >&5 |
7143 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7142 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7145 echo $ac_n "(cached) $ac_c" 1>&6 | 7144 echo $ac_n "(cached) $ac_c" 1>&6 |
7146 else | 7145 else |
7147 ac_save_LIBS="$LIBS" | 7146 ac_save_LIBS="$LIBS" |
7148 LIBS="-ldes $LIBS" | 7147 LIBS="-ldes $LIBS" |
7149 cat > conftest.$ac_ext <<EOF | 7148 cat > conftest.$ac_ext <<EOF |
7150 #line 7151 "configure" | 7149 #line 7150 "configure" |
7151 #include "confdefs.h" | 7150 #include "confdefs.h" |
7152 /* Override any gcc2 internal prototype to avoid an error. */ | 7151 /* Override any gcc2 internal prototype to avoid an error. */ |
7153 /* We use char because int might match the return type of a gcc2 | 7152 /* We use char because int might match the return type of a gcc2 |
7154 builtin and then its argument prototype would still apply. */ | 7153 builtin and then its argument prototype would still apply. */ |
7155 char des_cbc_encrypt(); | 7154 char des_cbc_encrypt(); |
7156 | 7155 |
7157 int main() { | 7156 int main() { |
7158 des_cbc_encrypt() | 7157 des_cbc_encrypt() |
7159 ; return 0; } | 7158 ; return 0; } |
7160 EOF | 7159 EOF |
7161 if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7160 if { (eval echo configure:7161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7162 rm -rf conftest* | 7161 rm -rf conftest* |
7163 eval "ac_cv_lib_$ac_lib_var=yes" | 7162 eval "ac_cv_lib_$ac_lib_var=yes" |
7164 else | 7163 else |
7165 echo "configure: failed program was:" >&5 | 7164 echo "configure: failed program was:" >&5 |
7166 cat conftest.$ac_ext >&5 | 7165 cat conftest.$ac_ext >&5 |
7186 fi | 7185 fi |
7187 | 7186 |
7188 fi | 7187 fi |
7189 | 7188 |
7190 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 | 7189 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
7191 echo "configure:7192: checking for krb_get_cred in -lkrb4" >&5 | 7190 echo "configure:7191: checking for krb_get_cred in -lkrb4" >&5 |
7192 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7191 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` |
7193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7194 echo $ac_n "(cached) $ac_c" 1>&6 | 7193 echo $ac_n "(cached) $ac_c" 1>&6 |
7195 else | 7194 else |
7196 ac_save_LIBS="$LIBS" | 7195 ac_save_LIBS="$LIBS" |
7197 LIBS="-lkrb4 $LIBS" | 7196 LIBS="-lkrb4 $LIBS" |
7198 cat > conftest.$ac_ext <<EOF | 7197 cat > conftest.$ac_ext <<EOF |
7199 #line 7200 "configure" | 7198 #line 7199 "configure" |
7200 #include "confdefs.h" | 7199 #include "confdefs.h" |
7201 /* Override any gcc2 internal prototype to avoid an error. */ | 7200 /* Override any gcc2 internal prototype to avoid an error. */ |
7202 /* We use char because int might match the return type of a gcc2 | 7201 /* We use char because int might match the return type of a gcc2 |
7203 builtin and then its argument prototype would still apply. */ | 7202 builtin and then its argument prototype would still apply. */ |
7204 char krb_get_cred(); | 7203 char krb_get_cred(); |
7205 | 7204 |
7206 int main() { | 7205 int main() { |
7207 krb_get_cred() | 7206 krb_get_cred() |
7208 ; return 0; } | 7207 ; return 0; } |
7209 EOF | 7208 EOF |
7210 if { (eval echo configure:7211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7209 if { (eval echo configure:7210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7211 rm -rf conftest* | 7210 rm -rf conftest* |
7212 eval "ac_cv_lib_$ac_lib_var=yes" | 7211 eval "ac_cv_lib_$ac_lib_var=yes" |
7213 else | 7212 else |
7214 echo "configure: failed program was:" >&5 | 7213 echo "configure: failed program was:" >&5 |
7215 cat conftest.$ac_ext >&5 | 7214 cat conftest.$ac_ext >&5 |
7231 LIBS="-lkrb4 $LIBS" | 7230 LIBS="-lkrb4 $LIBS" |
7232 | 7231 |
7233 else | 7232 else |
7234 echo "$ac_t""no" 1>&6 | 7233 echo "$ac_t""no" 1>&6 |
7235 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 | 7234 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
7236 echo "configure:7237: checking for krb_get_cred in -lkrb" >&5 | 7235 echo "configure:7236: checking for krb_get_cred in -lkrb" >&5 |
7237 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7236 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` |
7238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7239 echo $ac_n "(cached) $ac_c" 1>&6 | 7238 echo $ac_n "(cached) $ac_c" 1>&6 |
7240 else | 7239 else |
7241 ac_save_LIBS="$LIBS" | 7240 ac_save_LIBS="$LIBS" |
7242 LIBS="-lkrb $LIBS" | 7241 LIBS="-lkrb $LIBS" |
7243 cat > conftest.$ac_ext <<EOF | 7242 cat > conftest.$ac_ext <<EOF |
7244 #line 7245 "configure" | 7243 #line 7244 "configure" |
7245 #include "confdefs.h" | 7244 #include "confdefs.h" |
7246 /* Override any gcc2 internal prototype to avoid an error. */ | 7245 /* Override any gcc2 internal prototype to avoid an error. */ |
7247 /* We use char because int might match the return type of a gcc2 | 7246 /* We use char because int might match the return type of a gcc2 |
7248 builtin and then its argument prototype would still apply. */ | 7247 builtin and then its argument prototype would still apply. */ |
7249 char krb_get_cred(); | 7248 char krb_get_cred(); |
7250 | 7249 |
7251 int main() { | 7250 int main() { |
7252 krb_get_cred() | 7251 krb_get_cred() |
7253 ; return 0; } | 7252 ; return 0; } |
7254 EOF | 7253 EOF |
7255 if { (eval echo configure:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7254 if { (eval echo configure:7255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7256 rm -rf conftest* | 7255 rm -rf conftest* |
7257 eval "ac_cv_lib_$ac_lib_var=yes" | 7256 eval "ac_cv_lib_$ac_lib_var=yes" |
7258 else | 7257 else |
7259 echo "configure: failed program was:" >&5 | 7258 echo "configure: failed program was:" >&5 |
7260 cat conftest.$ac_ext >&5 | 7259 cat conftest.$ac_ext >&5 |
7286 if test "${with_kerberos5+set}" = set; then | 7285 if test "${with_kerberos5+set}" = set; then |
7287 for ac_hdr in krb5.h | 7286 for ac_hdr in krb5.h |
7288 do | 7287 do |
7289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7291 echo "configure:7292: checking for $ac_hdr" >&5 | 7290 echo "configure:7291: checking for $ac_hdr" >&5 |
7292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7293 echo $ac_n "(cached) $ac_c" 1>&6 | 7292 echo $ac_n "(cached) $ac_c" 1>&6 |
7294 else | 7293 else |
7295 cat > conftest.$ac_ext <<EOF | 7294 cat > conftest.$ac_ext <<EOF |
7296 #line 7297 "configure" | 7295 #line 7296 "configure" |
7297 #include "confdefs.h" | 7296 #include "confdefs.h" |
7298 #include <$ac_hdr> | 7297 #include <$ac_hdr> |
7299 EOF | 7298 EOF |
7300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7301 { (eval echo configure:7302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7300 { (eval echo configure:7301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7303 if test -z "$ac_err"; then | 7302 if test -z "$ac_err"; then |
7304 rm -rf conftest* | 7303 rm -rf conftest* |
7305 eval "ac_cv_header_$ac_safe=yes" | 7304 eval "ac_cv_header_$ac_safe=yes" |
7306 else | 7305 else |
7327 else | 7326 else |
7328 for ac_hdr in des.h | 7327 for ac_hdr in des.h |
7329 do | 7328 do |
7330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7332 echo "configure:7333: checking for $ac_hdr" >&5 | 7331 echo "configure:7332: checking for $ac_hdr" >&5 |
7333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7332 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7334 echo $ac_n "(cached) $ac_c" 1>&6 | 7333 echo $ac_n "(cached) $ac_c" 1>&6 |
7335 else | 7334 else |
7336 cat > conftest.$ac_ext <<EOF | 7335 cat > conftest.$ac_ext <<EOF |
7337 #line 7338 "configure" | 7336 #line 7337 "configure" |
7338 #include "confdefs.h" | 7337 #include "confdefs.h" |
7339 #include <$ac_hdr> | 7338 #include <$ac_hdr> |
7340 EOF | 7339 EOF |
7341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7342 { (eval echo configure:7343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7341 { (eval echo configure:7342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7344 if test -z "$ac_err"; then | 7343 if test -z "$ac_err"; then |
7345 rm -rf conftest* | 7344 rm -rf conftest* |
7346 eval "ac_cv_header_$ac_safe=yes" | 7345 eval "ac_cv_header_$ac_safe=yes" |
7347 else | 7346 else |
7364 echo "$ac_t""no" 1>&6 | 7363 echo "$ac_t""no" 1>&6 |
7365 for ac_hdr in kerberosIV/des.h | 7364 for ac_hdr in kerberosIV/des.h |
7366 do | 7365 do |
7367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7369 echo "configure:7370: checking for $ac_hdr" >&5 | 7368 echo "configure:7369: checking for $ac_hdr" >&5 |
7370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7371 echo $ac_n "(cached) $ac_c" 1>&6 | 7370 echo $ac_n "(cached) $ac_c" 1>&6 |
7372 else | 7371 else |
7373 cat > conftest.$ac_ext <<EOF | 7372 cat > conftest.$ac_ext <<EOF |
7374 #line 7375 "configure" | 7373 #line 7374 "configure" |
7375 #include "confdefs.h" | 7374 #include "confdefs.h" |
7376 #include <$ac_hdr> | 7375 #include <$ac_hdr> |
7377 EOF | 7376 EOF |
7378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7379 { (eval echo configure:7380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7378 { (eval echo configure:7379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7381 if test -z "$ac_err"; then | 7380 if test -z "$ac_err"; then |
7382 rm -rf conftest* | 7381 rm -rf conftest* |
7383 eval "ac_cv_header_$ac_safe=yes" | 7382 eval "ac_cv_header_$ac_safe=yes" |
7384 else | 7383 else |
7401 echo "$ac_t""no" 1>&6 | 7400 echo "$ac_t""no" 1>&6 |
7402 for ac_hdr in kerberos/des.h | 7401 for ac_hdr in kerberos/des.h |
7403 do | 7402 do |
7404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7406 echo "configure:7407: checking for $ac_hdr" >&5 | 7405 echo "configure:7406: checking for $ac_hdr" >&5 |
7407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7408 echo $ac_n "(cached) $ac_c" 1>&6 | 7407 echo $ac_n "(cached) $ac_c" 1>&6 |
7409 else | 7408 else |
7410 cat > conftest.$ac_ext <<EOF | 7409 cat > conftest.$ac_ext <<EOF |
7411 #line 7412 "configure" | 7410 #line 7411 "configure" |
7412 #include "confdefs.h" | 7411 #include "confdefs.h" |
7413 #include <$ac_hdr> | 7412 #include <$ac_hdr> |
7414 EOF | 7413 EOF |
7415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7416 { (eval echo configure:7417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7415 { (eval echo configure:7416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7418 if test -z "$ac_err"; then | 7417 if test -z "$ac_err"; then |
7419 rm -rf conftest* | 7418 rm -rf conftest* |
7420 eval "ac_cv_header_$ac_safe=yes" | 7419 eval "ac_cv_header_$ac_safe=yes" |
7421 else | 7420 else |
7447 | 7446 |
7448 for ac_hdr in krb.h | 7447 for ac_hdr in krb.h |
7449 do | 7448 do |
7450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7449 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7450 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7452 echo "configure:7453: checking for $ac_hdr" >&5 | 7451 echo "configure:7452: checking for $ac_hdr" >&5 |
7453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7452 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7454 echo $ac_n "(cached) $ac_c" 1>&6 | 7453 echo $ac_n "(cached) $ac_c" 1>&6 |
7455 else | 7454 else |
7456 cat > conftest.$ac_ext <<EOF | 7455 cat > conftest.$ac_ext <<EOF |
7457 #line 7458 "configure" | 7456 #line 7457 "configure" |
7458 #include "confdefs.h" | 7457 #include "confdefs.h" |
7459 #include <$ac_hdr> | 7458 #include <$ac_hdr> |
7460 EOF | 7459 EOF |
7461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7462 { (eval echo configure:7463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7461 { (eval echo configure:7462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7464 if test -z "$ac_err"; then | 7463 if test -z "$ac_err"; then |
7465 rm -rf conftest* | 7464 rm -rf conftest* |
7466 eval "ac_cv_header_$ac_safe=yes" | 7465 eval "ac_cv_header_$ac_safe=yes" |
7467 else | 7466 else |
7484 echo "$ac_t""no" 1>&6 | 7483 echo "$ac_t""no" 1>&6 |
7485 for ac_hdr in kerberosIV/krb.h | 7484 for ac_hdr in kerberosIV/krb.h |
7486 do | 7485 do |
7487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7486 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7489 echo "configure:7490: checking for $ac_hdr" >&5 | 7488 echo "configure:7489: checking for $ac_hdr" >&5 |
7490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7491 echo $ac_n "(cached) $ac_c" 1>&6 | 7490 echo $ac_n "(cached) $ac_c" 1>&6 |
7492 else | 7491 else |
7493 cat > conftest.$ac_ext <<EOF | 7492 cat > conftest.$ac_ext <<EOF |
7494 #line 7495 "configure" | 7493 #line 7494 "configure" |
7495 #include "confdefs.h" | 7494 #include "confdefs.h" |
7496 #include <$ac_hdr> | 7495 #include <$ac_hdr> |
7497 EOF | 7496 EOF |
7498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7499 { (eval echo configure:7500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7498 { (eval echo configure:7499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7501 if test -z "$ac_err"; then | 7500 if test -z "$ac_err"; then |
7502 rm -rf conftest* | 7501 rm -rf conftest* |
7503 eval "ac_cv_header_$ac_safe=yes" | 7502 eval "ac_cv_header_$ac_safe=yes" |
7504 else | 7503 else |
7521 echo "$ac_t""no" 1>&6 | 7520 echo "$ac_t""no" 1>&6 |
7522 for ac_hdr in kerberos/krb.h | 7521 for ac_hdr in kerberos/krb.h |
7523 do | 7522 do |
7524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7526 echo "configure:7527: checking for $ac_hdr" >&5 | 7525 echo "configure:7526: checking for $ac_hdr" >&5 |
7527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7526 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7528 echo $ac_n "(cached) $ac_c" 1>&6 | 7527 echo $ac_n "(cached) $ac_c" 1>&6 |
7529 else | 7528 else |
7530 cat > conftest.$ac_ext <<EOF | 7529 cat > conftest.$ac_ext <<EOF |
7531 #line 7532 "configure" | 7530 #line 7531 "configure" |
7532 #include "confdefs.h" | 7531 #include "confdefs.h" |
7533 #include <$ac_hdr> | 7532 #include <$ac_hdr> |
7534 EOF | 7533 EOF |
7535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7536 { (eval echo configure:7537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7535 { (eval echo configure:7536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7538 if test -z "$ac_err"; then | 7537 if test -z "$ac_err"; then |
7539 rm -rf conftest* | 7538 rm -rf conftest* |
7540 eval "ac_cv_header_$ac_safe=yes" | 7539 eval "ac_cv_header_$ac_safe=yes" |
7541 else | 7540 else |
7568 fi | 7567 fi |
7569 for ac_hdr in com_err.h | 7568 for ac_hdr in com_err.h |
7570 do | 7569 do |
7571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7570 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7571 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7573 echo "configure:7574: checking for $ac_hdr" >&5 | 7572 echo "configure:7573: checking for $ac_hdr" >&5 |
7574 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7575 echo $ac_n "(cached) $ac_c" 1>&6 | 7574 echo $ac_n "(cached) $ac_c" 1>&6 |
7576 else | 7575 else |
7577 cat > conftest.$ac_ext <<EOF | 7576 cat > conftest.$ac_ext <<EOF |
7578 #line 7579 "configure" | 7577 #line 7578 "configure" |
7579 #include "confdefs.h" | 7578 #include "confdefs.h" |
7580 #include <$ac_hdr> | 7579 #include <$ac_hdr> |
7581 EOF | 7580 EOF |
7582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7583 { (eval echo configure:7584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7582 { (eval echo configure:7583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7585 if test -z "$ac_err"; then | 7584 if test -z "$ac_err"; then |
7586 rm -rf conftest* | 7585 rm -rf conftest* |
7587 eval "ac_cv_header_$ac_safe=yes" | 7586 eval "ac_cv_header_$ac_safe=yes" |
7588 else | 7587 else |
7609 fi | 7608 fi |
7610 | 7609 |
7611 # Solaris requires -lintl if you want strerror (which calls dgettext) | 7610 # Solaris requires -lintl if you want strerror (which calls dgettext) |
7612 # to return localized messages. | 7611 # to return localized messages. |
7613 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | 7612 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 |
7614 echo "configure:7615: checking for dgettext in -lintl" >&5 | 7613 echo "configure:7614: checking for dgettext in -lintl" >&5 |
7615 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` | 7614 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
7616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7617 echo $ac_n "(cached) $ac_c" 1>&6 | 7616 echo $ac_n "(cached) $ac_c" 1>&6 |
7618 else | 7617 else |
7619 ac_save_LIBS="$LIBS" | 7618 ac_save_LIBS="$LIBS" |
7620 LIBS="-lintl $LIBS" | 7619 LIBS="-lintl $LIBS" |
7621 cat > conftest.$ac_ext <<EOF | 7620 cat > conftest.$ac_ext <<EOF |
7622 #line 7623 "configure" | 7621 #line 7622 "configure" |
7623 #include "confdefs.h" | 7622 #include "confdefs.h" |
7624 /* Override any gcc2 internal prototype to avoid an error. */ | 7623 /* Override any gcc2 internal prototype to avoid an error. */ |
7625 /* We use char because int might match the return type of a gcc2 | 7624 /* We use char because int might match the return type of a gcc2 |
7626 builtin and then its argument prototype would still apply. */ | 7625 builtin and then its argument prototype would still apply. */ |
7627 char dgettext(); | 7626 char dgettext(); |
7628 | 7627 |
7629 int main() { | 7628 int main() { |
7630 dgettext() | 7629 dgettext() |
7631 ; return 0; } | 7630 ; return 0; } |
7632 EOF | 7631 EOF |
7633 if { (eval echo configure:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7632 if { (eval echo configure:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7634 rm -rf conftest* | 7633 rm -rf conftest* |
7635 eval "ac_cv_lib_$ac_lib_var=yes" | 7634 eval "ac_cv_lib_$ac_lib_var=yes" |
7636 else | 7635 else |
7637 echo "configure: failed program was:" >&5 | 7636 echo "configure: failed program was:" >&5 |
7638 cat conftest.$ac_ext >&5 | 7637 cat conftest.$ac_ext >&5 |
7657 echo "$ac_t""no" 1>&6 | 7656 echo "$ac_t""no" 1>&6 |
7658 fi | 7657 fi |
7659 | 7658 |
7660 | 7659 |
7661 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 7660 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
7662 echo "configure:7663: checking whether localtime caches TZ" >&5 | 7661 echo "configure:7662: checking whether localtime caches TZ" >&5 |
7663 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then | 7662 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
7664 echo $ac_n "(cached) $ac_c" 1>&6 | 7663 echo $ac_n "(cached) $ac_c" 1>&6 |
7665 else | 7664 else |
7666 if test x$ac_cv_func_tzset = xyes; then | 7665 if test x$ac_cv_func_tzset = xyes; then |
7667 if test "$cross_compiling" = yes; then | 7666 if test "$cross_compiling" = yes; then |
7668 # If we have tzset, assume the worst when cross-compiling. | 7667 # If we have tzset, assume the worst when cross-compiling. |
7669 emacs_cv_localtime_cache=yes | 7668 emacs_cv_localtime_cache=yes |
7670 else | 7669 else |
7671 cat > conftest.$ac_ext <<EOF | 7670 cat > conftest.$ac_ext <<EOF |
7672 #line 7673 "configure" | 7671 #line 7672 "configure" |
7673 #include "confdefs.h" | 7672 #include "confdefs.h" |
7674 #include <time.h> | 7673 #include <time.h> |
7675 extern char **environ; | 7674 extern char **environ; |
7676 unset_TZ () | 7675 unset_TZ () |
7677 { | 7676 { |
7699 if (localtime (&now)->tm_hour != hour_unset) | 7698 if (localtime (&now)->tm_hour != hour_unset) |
7700 exit (1); | 7699 exit (1); |
7701 exit (0); | 7700 exit (0); |
7702 } | 7701 } |
7703 EOF | 7702 EOF |
7704 if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 7703 if { (eval echo configure:7704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7705 then | 7704 then |
7706 emacs_cv_localtime_cache=no | 7705 emacs_cv_localtime_cache=no |
7707 else | 7706 else |
7708 echo "configure: failed program was:" >&5 | 7707 echo "configure: failed program was:" >&5 |
7709 cat conftest.$ac_ext >&5 | 7708 cat conftest.$ac_ext >&5 |
7726 EOF | 7725 EOF |
7727 | 7726 |
7728 fi | 7727 fi |
7729 | 7728 |
7730 if test "x$HAVE_TIMEVAL" = xyes; then | 7729 if test "x$HAVE_TIMEVAL" = xyes; then |
7731 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | 7730 for ac_func in gettimeofday |
7732 echo "configure:7733: checking whether gettimeofday can accept two arguments" >&5 | 7731 do |
7732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
7733 echo "configure:7734: checking for $ac_func" >&5 | |
7734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
7735 echo $ac_n "(cached) $ac_c" 1>&6 | |
7736 else | |
7737 cat > conftest.$ac_ext <<EOF | |
7738 #line 7739 "configure" | |
7739 #include "confdefs.h" | |
7740 /* System header to define __stub macros and hopefully few prototypes, | |
7741 which can conflict with char $ac_func(); below. */ | |
7742 #include <assert.h> | |
7743 /* Override any gcc2 internal prototype to avoid an error. */ | |
7744 /* We use char because int might match the return type of a gcc2 | |
7745 builtin and then its argument prototype would still apply. */ | |
7746 char $ac_func(); | |
7747 | |
7748 int main() { | |
7749 | |
7750 /* The GNU C library defines this for functions which it implements | |
7751 to always fail with ENOSYS. Some functions are actually named | |
7752 something starting with __ and the normal name is an alias. */ | |
7753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7754 choke me | |
7755 #else | |
7756 $ac_func(); | |
7757 #endif | |
7758 | |
7759 ; return 0; } | |
7760 EOF | |
7761 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7762 rm -rf conftest* | |
7763 eval "ac_cv_func_$ac_func=yes" | |
7764 else | |
7765 echo "configure: failed program was:" >&5 | |
7766 cat conftest.$ac_ext >&5 | |
7767 rm -rf conftest* | |
7768 eval "ac_cv_func_$ac_func=no" | |
7769 fi | |
7770 rm -f conftest* | |
7771 fi | |
7772 | |
7773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7774 echo "$ac_t""yes" 1>&6 | |
7775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7776 cat >> confdefs.h <<EOF | |
7777 #define $ac_tr_func 1 | |
7778 EOF | |
7779 | |
7780 else | |
7781 echo "$ac_t""no" 1>&6 | |
7782 fi | |
7783 done | |
7784 | |
7785 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | |
7786 echo "configure:7787: checking whether gettimeofday can accept two arguments" >&5 | |
7733 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then | 7787 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
7734 echo $ac_n "(cached) $ac_c" 1>&6 | 7788 echo $ac_n "(cached) $ac_c" 1>&6 |
7735 else | 7789 else |
7736 cat > conftest.$ac_ext <<EOF | 7790 cat > conftest.$ac_ext <<EOF |
7737 #line 7738 "configure" | 7791 #line 7792 "configure" |
7738 #include "confdefs.h" | 7792 #include "confdefs.h" |
7739 | 7793 |
7740 #ifdef TIME_WITH_SYS_TIME | 7794 #ifdef TIME_WITH_SYS_TIME |
7741 #include <sys/time.h> | 7795 #include <sys/time.h> |
7742 #include <time.h> | 7796 #include <time.h> |
7747 #include <time.h> | 7801 #include <time.h> |
7748 #endif | 7802 #endif |
7749 #endif | 7803 #endif |
7750 int main() { | 7804 int main() { |
7751 struct timeval time; | 7805 struct timeval time; |
7752 gettimeofday (&time, 0); | 7806 gettimeofday (&time, 0); |
7753 ; return 0; } | 7807 ; return 0; } |
7754 EOF | 7808 EOF |
7755 if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7809 if { (eval echo configure:7810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7756 rm -rf conftest* | 7810 rm -rf conftest* |
7757 emacs_cv_gettimeofday_two_arguments=yes | 7811 emacs_cv_gettimeofday_two_arguments=yes |
7758 else | 7812 else |
7759 echo "configure: failed program was:" >&5 | 7813 echo "configure: failed program was:" >&5 |
7760 cat conftest.$ac_ext >&5 | 7814 cat conftest.$ac_ext >&5 |
7771 EOF | 7825 EOF |
7772 | 7826 |
7773 fi | 7827 fi |
7774 fi | 7828 fi |
7775 | 7829 |
7830 if test "$ac_cv_func_gettimeofday" = yes; then | |
7831 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 | |
7832 echo "configure:7833: checking for struct timezone" >&5 | |
7833 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then | |
7834 echo $ac_n "(cached) $ac_c" 1>&6 | |
7835 else | |
7836 cat > conftest.$ac_ext <<EOF | |
7837 #line 7838 "configure" | |
7838 #include "confdefs.h" | |
7839 #include <sys/time.h> | |
7840 int main() { | |
7841 struct timezone tz; | |
7842 ; return 0; } | |
7843 EOF | |
7844 if { (eval echo configure:7845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
7845 rm -rf conftest* | |
7846 if test "$cross_compiling" = yes; then | |
7847 emacs_cv_struct_timezone=yes | |
7848 else | |
7849 cat > conftest.$ac_ext <<EOF | |
7850 #line 7851 "configure" | |
7851 #include "confdefs.h" | |
7852 | |
7853 #ifdef TIME_WITH_SYS_TIME | |
7854 #include <sys/time.h> | |
7855 #include <time.h> | |
7856 #else | |
7857 #ifdef HAVE_SYS_TIME_H | |
7858 #include <sys/time.h> | |
7859 #else | |
7860 #include <time.h> | |
7861 #endif | |
7862 #endif | |
7863 main () { | |
7864 struct timeval time; | |
7865 struct timezone dummy; | |
7866 exit (gettimeofday (&time, &dummy)); | |
7867 } | |
7868 EOF | |
7869 if { (eval echo configure:7870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
7870 then | |
7871 emacs_cv_struct_timezone=yes | |
7872 else | |
7873 echo "configure: failed program was:" >&5 | |
7874 cat conftest.$ac_ext >&5 | |
7875 rm -fr conftest* | |
7876 emacs_cv_struct_timezone=no | |
7877 fi | |
7878 rm -fr conftest* | |
7879 fi | |
7880 | |
7881 else | |
7882 echo "configure: failed program was:" >&5 | |
7883 cat conftest.$ac_ext >&5 | |
7884 rm -rf conftest* | |
7885 emacs_cv_struct_timezone=no | |
7886 fi | |
7887 rm -f conftest* | |
7888 fi | |
7889 | |
7890 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 | |
7891 fi | |
7892 | |
7776 ok_so_far=yes | 7893 ok_so_far=yes |
7777 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 7894 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
7778 echo "configure:7779: checking for socket" >&5 | 7895 echo "configure:7896: checking for socket" >&5 |
7779 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | 7896 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
7780 echo $ac_n "(cached) $ac_c" 1>&6 | 7897 echo $ac_n "(cached) $ac_c" 1>&6 |
7781 else | 7898 else |
7782 cat > conftest.$ac_ext <<EOF | 7899 cat > conftest.$ac_ext <<EOF |
7783 #line 7784 "configure" | 7900 #line 7901 "configure" |
7784 #include "confdefs.h" | 7901 #include "confdefs.h" |
7785 /* System header to define __stub macros and hopefully few prototypes, | 7902 /* System header to define __stub macros and hopefully few prototypes, |
7786 which can conflict with char socket(); below. */ | 7903 which can conflict with char socket(); below. */ |
7787 #include <assert.h> | 7904 #include <assert.h> |
7788 /* Override any gcc2 internal prototype to avoid an error. */ | 7905 /* Override any gcc2 internal prototype to avoid an error. */ |
7801 socket(); | 7918 socket(); |
7802 #endif | 7919 #endif |
7803 | 7920 |
7804 ; return 0; } | 7921 ; return 0; } |
7805 EOF | 7922 EOF |
7806 if { (eval echo configure:7807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7923 if { (eval echo configure:7924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7807 rm -rf conftest* | 7924 rm -rf conftest* |
7808 eval "ac_cv_func_socket=yes" | 7925 eval "ac_cv_func_socket=yes" |
7809 else | 7926 else |
7810 echo "configure: failed program was:" >&5 | 7927 echo "configure: failed program was:" >&5 |
7811 cat conftest.$ac_ext >&5 | 7928 cat conftest.$ac_ext >&5 |
7824 fi | 7941 fi |
7825 | 7942 |
7826 if test $ok_so_far = yes; then | 7943 if test $ok_so_far = yes; then |
7827 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 7944 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
7828 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 7945 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
7829 echo "configure:7830: checking for netinet/in.h" >&5 | 7946 echo "configure:7947: checking for netinet/in.h" >&5 |
7830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7831 echo $ac_n "(cached) $ac_c" 1>&6 | 7948 echo $ac_n "(cached) $ac_c" 1>&6 |
7832 else | 7949 else |
7833 cat > conftest.$ac_ext <<EOF | 7950 cat > conftest.$ac_ext <<EOF |
7834 #line 7835 "configure" | 7951 #line 7952 "configure" |
7835 #include "confdefs.h" | 7952 #include "confdefs.h" |
7836 #include <netinet/in.h> | 7953 #include <netinet/in.h> |
7837 EOF | 7954 EOF |
7838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7839 { (eval echo configure:7840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7956 { (eval echo configure:7957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7841 if test -z "$ac_err"; then | 7958 if test -z "$ac_err"; then |
7842 rm -rf conftest* | 7959 rm -rf conftest* |
7843 eval "ac_cv_header_$ac_safe=yes" | 7960 eval "ac_cv_header_$ac_safe=yes" |
7844 else | 7961 else |
7860 | 7977 |
7861 fi | 7978 fi |
7862 if test $ok_so_far = yes; then | 7979 if test $ok_so_far = yes; then |
7863 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 7980 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
7864 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 7981 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
7865 echo "configure:7866: checking for arpa/inet.h" >&5 | 7982 echo "configure:7983: checking for arpa/inet.h" >&5 |
7866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7867 echo $ac_n "(cached) $ac_c" 1>&6 | 7984 echo $ac_n "(cached) $ac_c" 1>&6 |
7868 else | 7985 else |
7869 cat > conftest.$ac_ext <<EOF | 7986 cat > conftest.$ac_ext <<EOF |
7870 #line 7871 "configure" | 7987 #line 7988 "configure" |
7871 #include "confdefs.h" | 7988 #include "confdefs.h" |
7872 #include <arpa/inet.h> | 7989 #include <arpa/inet.h> |
7873 EOF | 7990 EOF |
7874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7875 { (eval echo configure:7876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7992 { (eval echo configure:7993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7877 if test -z "$ac_err"; then | 7994 if test -z "$ac_err"; then |
7878 rm -rf conftest* | 7995 rm -rf conftest* |
7879 eval "ac_cv_header_$ac_safe=yes" | 7996 eval "ac_cv_header_$ac_safe=yes" |
7880 else | 7997 else |
7908 EOF | 8025 EOF |
7909 | 8026 |
7910 fi | 8027 fi |
7911 | 8028 |
7912 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 | 8029 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
7913 echo "configure:7914: checking whether system supports dynamic ptys" >&5 | 8030 echo "configure:8031: checking whether system supports dynamic ptys" >&5 |
7914 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 8031 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
7915 echo "$ac_t""yes" 1>&6 | 8032 echo "$ac_t""yes" 1>&6 |
7916 cat >> confdefs.h <<\EOF | 8033 cat >> confdefs.h <<\EOF |
7917 #define HAVE_DEV_PTMX 1 | 8034 #define HAVE_DEV_PTMX 1 |
7918 EOF | 8035 EOF |
7920 else | 8037 else |
7921 echo "$ac_t""no" 1>&6 | 8038 echo "$ac_t""no" 1>&6 |
7922 fi | 8039 fi |
7923 | 8040 |
7924 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 8041 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
7925 echo "configure:7926: checking for pid_t" >&5 | 8042 echo "configure:8043: checking for pid_t" >&5 |
7926 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | 8043 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
7927 echo $ac_n "(cached) $ac_c" 1>&6 | 8044 echo $ac_n "(cached) $ac_c" 1>&6 |
7928 else | 8045 else |
7929 cat > conftest.$ac_ext <<EOF | 8046 cat > conftest.$ac_ext <<EOF |
7930 #line 7931 "configure" | 8047 #line 8048 "configure" |
7931 #include "confdefs.h" | 8048 #include "confdefs.h" |
7932 #include <sys/types.h> | 8049 #include <sys/types.h> |
7933 #if STDC_HEADERS | 8050 #if STDC_HEADERS |
7934 #include <stdlib.h> | 8051 #include <stdlib.h> |
7935 #include <stddef.h> | 8052 #include <stddef.h> |
7954 | 8071 |
7955 fi | 8072 fi |
7956 | 8073 |
7957 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | 8074 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
7958 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | 8075 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
7959 echo "configure:7960: checking for vfork.h" >&5 | 8076 echo "configure:8077: checking for vfork.h" >&5 |
7960 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7961 echo $ac_n "(cached) $ac_c" 1>&6 | 8078 echo $ac_n "(cached) $ac_c" 1>&6 |
7962 else | 8079 else |
7963 cat > conftest.$ac_ext <<EOF | 8080 cat > conftest.$ac_ext <<EOF |
7964 #line 7965 "configure" | 8081 #line 8082 "configure" |
7965 #include "confdefs.h" | 8082 #include "confdefs.h" |
7966 #include <vfork.h> | 8083 #include <vfork.h> |
7967 EOF | 8084 EOF |
7968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7969 { (eval echo configure:7970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8086 { (eval echo configure:8087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7971 if test -z "$ac_err"; then | 8088 if test -z "$ac_err"; then |
7972 rm -rf conftest* | 8089 rm -rf conftest* |
7973 eval "ac_cv_header_$ac_safe=yes" | 8090 eval "ac_cv_header_$ac_safe=yes" |
7974 else | 8091 else |
7989 else | 8106 else |
7990 echo "$ac_t""no" 1>&6 | 8107 echo "$ac_t""no" 1>&6 |
7991 fi | 8108 fi |
7992 | 8109 |
7993 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | 8110 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
7994 echo "configure:7995: checking for working vfork" >&5 | 8111 echo "configure:8112: checking for working vfork" >&5 |
7995 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then | 8112 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
7996 echo $ac_n "(cached) $ac_c" 1>&6 | 8113 echo $ac_n "(cached) $ac_c" 1>&6 |
7997 else | 8114 else |
7998 if test "$cross_compiling" = yes; then | 8115 if test "$cross_compiling" = yes; then |
7999 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | 8116 echo $ac_n "checking for vfork""... $ac_c" 1>&6 |
8000 echo "configure:8001: checking for vfork" >&5 | 8117 echo "configure:8118: checking for vfork" >&5 |
8001 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then | 8118 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
8002 echo $ac_n "(cached) $ac_c" 1>&6 | 8119 echo $ac_n "(cached) $ac_c" 1>&6 |
8003 else | 8120 else |
8004 cat > conftest.$ac_ext <<EOF | 8121 cat > conftest.$ac_ext <<EOF |
8005 #line 8006 "configure" | 8122 #line 8123 "configure" |
8006 #include "confdefs.h" | 8123 #include "confdefs.h" |
8007 /* System header to define __stub macros and hopefully few prototypes, | 8124 /* System header to define __stub macros and hopefully few prototypes, |
8008 which can conflict with char vfork(); below. */ | 8125 which can conflict with char vfork(); below. */ |
8009 #include <assert.h> | 8126 #include <assert.h> |
8010 /* Override any gcc2 internal prototype to avoid an error. */ | 8127 /* Override any gcc2 internal prototype to avoid an error. */ |
8023 vfork(); | 8140 vfork(); |
8024 #endif | 8141 #endif |
8025 | 8142 |
8026 ; return 0; } | 8143 ; return 0; } |
8027 EOF | 8144 EOF |
8028 if { (eval echo configure:8029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8145 if { (eval echo configure:8146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8029 rm -rf conftest* | 8146 rm -rf conftest* |
8030 eval "ac_cv_func_vfork=yes" | 8147 eval "ac_cv_func_vfork=yes" |
8031 else | 8148 else |
8032 echo "configure: failed program was:" >&5 | 8149 echo "configure: failed program was:" >&5 |
8033 cat conftest.$ac_ext >&5 | 8150 cat conftest.$ac_ext >&5 |
8045 fi | 8162 fi |
8046 | 8163 |
8047 ac_cv_func_vfork_works=$ac_cv_func_vfork | 8164 ac_cv_func_vfork_works=$ac_cv_func_vfork |
8048 else | 8165 else |
8049 cat > conftest.$ac_ext <<EOF | 8166 cat > conftest.$ac_ext <<EOF |
8050 #line 8051 "configure" | 8167 #line 8168 "configure" |
8051 #include "confdefs.h" | 8168 #include "confdefs.h" |
8052 /* Thanks to Paul Eggert for this test. */ | 8169 /* Thanks to Paul Eggert for this test. */ |
8053 #include <stdio.h> | 8170 #include <stdio.h> |
8054 #include <sys/types.h> | 8171 #include <sys/types.h> |
8055 #include <sys/stat.h> | 8172 #include <sys/stat.h> |
8140 || fstat(fileno(stdout), &st) != 0 | 8257 || fstat(fileno(stdout), &st) != 0 |
8141 ); | 8258 ); |
8142 } | 8259 } |
8143 } | 8260 } |
8144 EOF | 8261 EOF |
8145 if { (eval echo configure:8146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8262 if { (eval echo configure:8263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8146 then | 8263 then |
8147 ac_cv_func_vfork_works=yes | 8264 ac_cv_func_vfork_works=yes |
8148 else | 8265 else |
8149 echo "configure: failed program was:" >&5 | 8266 echo "configure: failed program was:" >&5 |
8150 cat conftest.$ac_ext >&5 | 8267 cat conftest.$ac_ext >&5 |