Changeset 9263 for trunk/base
- Timestamp:
- Nov 12, 2004, 8:47:15 AM (19 years ago)
- Location:
- trunk/base
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/configure
r9150 r9263 5278 5278 fi 5279 5279 5280 5281 5282 if test "$no_x" = yes; then5283 # Not all programs may use this symbol, but it does not hurt to define it.5284 5285 cat >>confdefs.h <<\_ACEOF5286 #define X_DISPLAY_MISSING 15287 _ACEOF5288 5289 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=5290 else5291 if test -n "$x_includes"; then5292 X_CFLAGS="$X_CFLAGS -I$x_includes"5293 fi5294 5295 # It would also be nice to do this for all -L options, not just this one.5296 if test -n "$x_libraries"; then5297 X_LIBS="$X_LIBS -L$x_libraries"5298 # For Solaris; some versions of Sun CC require a space after -R and5299 # others require no space. Words are not sufficient . . . .5300 case `(uname -sr) 2>/dev/null` in5301 "SunOS 5"*)5302 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&55303 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&65304 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"5305 cat >conftest.$ac_ext <<_ACEOF5306 #line $LINENO "configure"5307 /* confdefs.h. */5308 _ACEOF5309 cat confdefs.h >>conftest.$ac_ext5310 cat >>conftest.$ac_ext <<_ACEOF5311 /* end confdefs.h. */5312 5313 int5314 main ()5315 {5316 5317 ;5318 return 0;5319 }5320 _ACEOF5321 rm -f conftest.$ac_objext conftest$ac_exeext5322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55323 (eval $ac_link) 2>&55324 ac_status=$?5325 echo "$as_me:$LINENO: \$? = $ac_status" >&55326 (exit $ac_status); } &&5327 { ac_try='test -s conftest$ac_exeext'5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55329 (eval $ac_try) 2>&55330 ac_status=$?5331 echo "$as_me:$LINENO: \$? = $ac_status" >&55332 (exit $ac_status); }; }; then5333 ac_R_nospace=yes5334 else5335 echo "$as_me: failed program was:" >&55336 sed 's/^/| /' conftest.$ac_ext >&55337 5338 ac_R_nospace=no5339 fi5340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext5341 if test $ac_R_nospace = yes; then5342 echo "$as_me:$LINENO: result: no" >&55343 echo "${ECHO_T}no" >&65344 X_LIBS="$X_LIBS -R$x_libraries"5345 else5346 LIBS="$ac_xsave_LIBS -R $x_libraries"5347 cat >conftest.$ac_ext <<_ACEOF5348 #line $LINENO "configure"5349 /* confdefs.h. */5350 _ACEOF5351 cat confdefs.h >>conftest.$ac_ext5352 cat >>conftest.$ac_ext <<_ACEOF5353 /* end confdefs.h. */5354 5355 int5356 main ()5357 {5358 5359 ;5360 return 0;5361 }5362 _ACEOF5363 rm -f conftest.$ac_objext conftest$ac_exeext5364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55365 (eval $ac_link) 2>&55366 ac_status=$?5367 echo "$as_me:$LINENO: \$? = $ac_status" >&55368 (exit $ac_status); } &&5369 { ac_try='test -s conftest$ac_exeext'5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55371 (eval $ac_try) 2>&55372 ac_status=$?5373 echo "$as_me:$LINENO: \$? = $ac_status" >&55374 (exit $ac_status); }; }; then5375 ac_R_space=yes5376 else5377 echo "$as_me: failed program was:" >&55378 sed 's/^/| /' conftest.$ac_ext >&55379 5380 ac_R_space=no5381 fi5382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext5383 if test $ac_R_space = yes; then5384 echo "$as_me:$LINENO: result: yes" >&55385 echo "${ECHO_T}yes" >&65386 X_LIBS="$X_LIBS -R $x_libraries"5387 else5388 echo "$as_me:$LINENO: result: neither works" >&55389 echo "${ECHO_T}neither works" >&65390 fi5391 fi5392 LIBS=$ac_xsave_LIBS5393 esac5394 fi5395 5396 # Check for system-dependent libraries X programs must link with.5397 # Do this before checking for the system-independent R6 libraries5398 # (-lICE), since we may need -lsocket or whatever for X linking.5399 5400 if test "$ISC" = yes; then5401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"5402 else5403 # Martyn Johnson says this is needed for Ultrix, if the X5404 # libraries were built with DECnet support. And Karl Berry says5405 # the Alpha needs dnet_stub (dnet does not exist).5406 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"5407 cat >conftest.$ac_ext <<_ACEOF5408 #line $LINENO "configure"5409 /* confdefs.h. */5410 _ACEOF5411 cat confdefs.h >>conftest.$ac_ext5412 cat >>conftest.$ac_ext <<_ACEOF5413 /* end confdefs.h. */5414 5415 /* Override any gcc2 internal prototype to avoid an error. */5416 #ifdef __cplusplus5417 extern "C"5418 #endif5419 /* We use char because int might match the return type of a gcc25420 builtin and then its argument prototype would still apply. */5421 char XOpenDisplay ();5422 int5423 main ()5424 {5425 XOpenDisplay ();5426 ;5427 return 0;5428 }5429 _ACEOF5430 rm -f conftest.$ac_objext conftest$ac_exeext5431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55432 (eval $ac_link) 2>&55433 ac_status=$?5434 echo "$as_me:$LINENO: \$? = $ac_status" >&55435 (exit $ac_status); } &&5436 { ac_try='test -s conftest$ac_exeext'5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55438 (eval $ac_try) 2>&55439 ac_status=$?5440 echo "$as_me:$LINENO: \$? = $ac_status" >&55441 (exit $ac_status); }; }; then5442 :5443 else5444 echo "$as_me: failed program was:" >&55445 sed 's/^/| /' conftest.$ac_ext >&55446 5447 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&55448 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&65449 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then5450 echo $ECHO_N "(cached) $ECHO_C" >&65451 else5452 ac_check_lib_save_LIBS=$LIBS5453 LIBS="-ldnet $LIBS"5454 cat >conftest.$ac_ext <<_ACEOF5455 #line $LINENO "configure"5456 /* confdefs.h. */5457 _ACEOF5458 cat confdefs.h >>conftest.$ac_ext5459 cat >>conftest.$ac_ext <<_ACEOF5460 /* end confdefs.h. */5461 5462 /* Override any gcc2 internal prototype to avoid an error. */5463 #ifdef __cplusplus5464 extern "C"5465 #endif5466 /* We use char because int might match the return type of a gcc25467 builtin and then its argument prototype would still apply. */5468 char dnet_ntoa ();5469 int5470 main ()5471 {5472 dnet_ntoa ();5473 ;5474 return 0;5475 }5476 _ACEOF5477 rm -f conftest.$ac_objext conftest$ac_exeext5478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55479 (eval $ac_link) 2>&55480 ac_status=$?5481 echo "$as_me:$LINENO: \$? = $ac_status" >&55482 (exit $ac_status); } &&5483 { ac_try='test -s conftest$ac_exeext'5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55485 (eval $ac_try) 2>&55486 ac_status=$?5487 echo "$as_me:$LINENO: \$? = $ac_status" >&55488 (exit $ac_status); }; }; then5489 ac_cv_lib_dnet_dnet_ntoa=yes5490 else5491 echo "$as_me: failed program was:" >&55492 sed 's/^/| /' conftest.$ac_ext >&55493 5494 ac_cv_lib_dnet_dnet_ntoa=no5495 fi5496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext5497 LIBS=$ac_check_lib_save_LIBS5498 fi5499 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&55500 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&65501 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then5502 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"5503 fi5504 5505 if test $ac_cv_lib_dnet_dnet_ntoa = no; then5506 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&55507 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&65508 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then5509 echo $ECHO_N "(cached) $ECHO_C" >&65510 else5511 ac_check_lib_save_LIBS=$LIBS5512 LIBS="-ldnet_stub $LIBS"5513 cat >conftest.$ac_ext <<_ACEOF5514 #line $LINENO "configure"5515 /* confdefs.h. */5516 _ACEOF5517 cat confdefs.h >>conftest.$ac_ext5518 cat >>conftest.$ac_ext <<_ACEOF5519 /* end confdefs.h. */5520 5521 /* Override any gcc2 internal prototype to avoid an error. */5522 #ifdef __cplusplus5523 extern "C"5524 #endif5525 /* We use char because int might match the return type of a gcc25526 builtin and then its argument prototype would still apply. */5527 char dnet_ntoa ();5528 int5529 main ()5530 {5531 dnet_ntoa ();5532 ;5533 return 0;5534 }5535 _ACEOF5536 rm -f conftest.$ac_objext conftest$ac_exeext5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55538 (eval $ac_link) 2>&55539 ac_status=$?5540 echo "$as_me:$LINENO: \$? = $ac_status" >&55541 (exit $ac_status); } &&5542 { ac_try='test -s conftest$ac_exeext'5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55544 (eval $ac_try) 2>&55545 ac_status=$?5546 echo "$as_me:$LINENO: \$? = $ac_status" >&55547 (exit $ac_status); }; }; then5548 ac_cv_lib_dnet_stub_dnet_ntoa=yes5549 else5550 echo "$as_me: failed program was:" >&55551 sed 's/^/| /' conftest.$ac_ext >&55552 5553 ac_cv_lib_dnet_stub_dnet_ntoa=no5554 fi5555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext5556 LIBS=$ac_check_lib_save_LIBS5557 fi5558 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&55559 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&65560 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then5561 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"5562 fi5563 5564 fi5565 fi5566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext5567 LIBS="$ac_xsave_LIBS"5568 5569 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,5570 # to get the SysV transport functions.5571 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)5572 # needs -lnsl.5573 # The nsl library prevents programs from opening the X display5574 # on Irix 5.2, according to T.E. Dickey.5575 # The functions gethostbyname, getservbyname, and inet_addr are5576 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.5577 echo "$as_me:$LINENO: checking for gethostbyname" >&55578 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&65579 if test "${ac_cv_func_gethostbyname+set}" = set; then5580 echo $ECHO_N "(cached) $ECHO_C" >&65581 else5582 cat >conftest.$ac_ext <<_ACEOF5583 #line $LINENO "configure"5584 /* confdefs.h. */5585 _ACEOF5586 cat confdefs.h >>conftest.$ac_ext5587 cat >>conftest.$ac_ext <<_ACEOF5588 /* end confdefs.h. */5589 /* System header to define __stub macros and hopefully few prototypes,5590 which can conflict with char gethostbyname (); below.5591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since5592 <limits.h> exists even on freestanding compilers. */5593 #ifdef __STDC__5594 # include <limits.h>5595 #else5596 # include <assert.h>5597 #endif5598 /* Override any gcc2 internal prototype to avoid an error. */5599 #ifdef __cplusplus5600 extern "C"5601 {5602 #endif5603 /* We use char because int might match the return type of a gcc25604 builtin and then its argument prototype would still apply. */5605 char gethostbyname ();5606 /* The GNU C library defines this for functions which it implements5607 to always fail with ENOSYS. Some functions are actually named5608 something starting with __ and the normal name is an alias. */5609 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)5610 choke me5611 #else5612 char (*f) () = gethostbyname;5613 #endif5614 #ifdef __cplusplus5615 }5616 #endif5617 5618 int5619 main ()5620 {5621 return f != gethostbyname;5622 ;5623 return 0;5624 }5625 _ACEOF5626 rm -f conftest.$ac_objext conftest$ac_exeext5627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55628 (eval $ac_link) 2>&55629 ac_status=$?5630 echo "$as_me:$LINENO: \$? = $ac_status" >&55631 (exit $ac_status); } &&5632 { ac_try='test -s conftest$ac_exeext'5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55634 (eval $ac_try) 2>&55635 ac_status=$?5636 echo "$as_me:$LINENO: \$? = $ac_status" >&55637 (exit $ac_status); }; }; then5638 ac_cv_func_gethostbyname=yes5639 else5640 echo "$as_me: failed program was:" >&55641 sed 's/^/| /' conftest.$ac_ext >&55642 5643 ac_cv_func_gethostbyname=no5644 fi5645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext5646 fi5647 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&55648 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&65649 5650 if test $ac_cv_func_gethostbyname = no; then5651 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&55652 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&65653 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then5654 echo $ECHO_N "(cached) $ECHO_C" >&65655 else5656 ac_check_lib_save_LIBS=$LIBS5657 LIBS="-lnsl $LIBS"5658 cat >conftest.$ac_ext <<_ACEOF5659 #line $LINENO "configure"5660 /* confdefs.h. */5661 _ACEOF5662 cat confdefs.h >>conftest.$ac_ext5663 cat >>conftest.$ac_ext <<_ACEOF5664 /* end confdefs.h. */5665 5666 /* Override any gcc2 internal prototype to avoid an error. */5667 #ifdef __cplusplus5668 extern "C"5669 #endif5670 /* We use char because int might match the return type of a gcc25671 builtin and then its argument prototype would still apply. */5672 char gethostbyname ();5673 int5674 main ()5675 {5676 gethostbyname ();5677 ;5678 return 0;5679 }5680 _ACEOF5681 rm -f conftest.$ac_objext conftest$ac_exeext5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55683 (eval $ac_link) 2>&55684 ac_status=$?5685 echo "$as_me:$LINENO: \$? = $ac_status" >&55686 (exit $ac_status); } &&5687 { ac_try='test -s conftest$ac_exeext'5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55689 (eval $ac_try) 2>&55690 ac_status=$?5691 echo "$as_me:$LINENO: \$? = $ac_status" >&55692 (exit $ac_status); }; }; then5693 ac_cv_lib_nsl_gethostbyname=yes5694 else5695 echo "$as_me: failed program was:" >&55696 sed 's/^/| /' conftest.$ac_ext >&55697 5698 ac_cv_lib_nsl_gethostbyname=no5699 fi5700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext5701 LIBS=$ac_check_lib_save_LIBS5702 fi5703 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&55704 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&65705 if test $ac_cv_lib_nsl_gethostbyname = yes; then5706 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"5707 fi5708 5709 if test $ac_cv_lib_nsl_gethostbyname = no; then5710 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&55711 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&65712 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then5713 echo $ECHO_N "(cached) $ECHO_C" >&65714 else5715 ac_check_lib_save_LIBS=$LIBS5716 LIBS="-lbsd $LIBS"5717 cat >conftest.$ac_ext <<_ACEOF5718 #line $LINENO "configure"5719 /* confdefs.h. */5720 _ACEOF5721 cat confdefs.h >>conftest.$ac_ext5722 cat >>conftest.$ac_ext <<_ACEOF5723 /* end confdefs.h. */5724 5725 /* Override any gcc2 internal prototype to avoid an error. */5726 #ifdef __cplusplus5727 extern "C"5728 #endif5729 /* We use char because int might match the return type of a gcc25730 builtin and then its argument prototype would still apply. */5731 char gethostbyname ();5732 int5733 main ()5734 {5735 gethostbyname ();5736 ;5737 return 0;5738 }5739 _ACEOF5740 rm -f conftest.$ac_objext conftest$ac_exeext5741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55742 (eval $ac_link) 2>&55743 ac_status=$?5744 echo "$as_me:$LINENO: \$? = $ac_status" >&55745 (exit $ac_status); } &&5746 { ac_try='test -s conftest$ac_exeext'5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55748 (eval $ac_try) 2>&55749 ac_status=$?5750 echo "$as_me:$LINENO: \$? = $ac_status" >&55751 (exit $ac_status); }; }; then5752 ac_cv_lib_bsd_gethostbyname=yes5753 else5754 echo "$as_me: failed program was:" >&55755 sed 's/^/| /' conftest.$ac_ext >&55756 5757 ac_cv_lib_bsd_gethostbyname=no5758 fi5759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext5760 LIBS=$ac_check_lib_save_LIBS5761 fi5762 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&55763 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&65764 if test $ac_cv_lib_bsd_gethostbyname = yes; then5765 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"5766 fi5767 5768 fi5769 fi5770 5771 # lieder@skyler.mavd.honeywell.com says without -lsocket,5772 # socket/setsockopt and other routines are undefined under SCO ODT5773 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary5774 # on later versions), says Simon Leinen: it contains gethostby*5775 # variants that don't use the name server (or something). -lsocket5776 # must be given before -lnsl if both are needed. We assume that5777 # if connect needs -lnsl, so does gethostbyname.5778 echo "$as_me:$LINENO: checking for connect" >&55779 echo $ECHO_N "checking for connect... $ECHO_C" >&65780 if test "${ac_cv_func_connect+set}" = set; then5781 echo $ECHO_N "(cached) $ECHO_C" >&65782 else5783 cat >conftest.$ac_ext <<_ACEOF5784 #line $LINENO "configure"5785 /* confdefs.h. */5786 _ACEOF5787 cat confdefs.h >>conftest.$ac_ext5788 cat >>conftest.$ac_ext <<_ACEOF5789 /* end confdefs.h. */5790 /* System header to define __stub macros and hopefully few prototypes,5791 which can conflict with char connect (); below.5792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since5793 <limits.h> exists even on freestanding compilers. */5794 #ifdef __STDC__5795 # include <limits.h>5796 #else5797 # include <assert.h>5798 #endif5799 /* Override any gcc2 internal prototype to avoid an error. */5800 #ifdef __cplusplus5801 extern "C"5802 {5803 #endif5804 /* We use char because int might match the return type of a gcc25805 builtin and then its argument prototype would still apply. */5806 char connect ();5807 /* The GNU C library defines this for functions which it implements5808 to always fail with ENOSYS. Some functions are actually named5809 something starting with __ and the normal name is an alias. */5810 #if defined (__stub_connect) || defined (__stub___connect)5811 choke me5812 #else5813 char (*f) () = connect;5814 #endif5815 #ifdef __cplusplus5816 }5817 #endif5818 5819 int5820 main ()5821 {5822 return f != connect;5823 ;5824 return 0;5825 }5826 _ACEOF5827 rm -f conftest.$ac_objext conftest$ac_exeext5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55829 (eval $ac_link) 2>&55830 ac_status=$?5831 echo "$as_me:$LINENO: \$? = $ac_status" >&55832 (exit $ac_status); } &&5833 { ac_try='test -s conftest$ac_exeext'5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55835 (eval $ac_try) 2>&55836 ac_status=$?5837 echo "$as_me:$LINENO: \$? = $ac_status" >&55838 (exit $ac_status); }; }; then5839 ac_cv_func_connect=yes5840 else5841 echo "$as_me: failed program was:" >&55842 sed 's/^/| /' conftest.$ac_ext >&55843 5844 ac_cv_func_connect=no5845 fi5846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext5847 fi5848 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&55849 echo "${ECHO_T}$ac_cv_func_connect" >&65850 5851 if test $ac_cv_func_connect = no; then5852 echo "$as_me:$LINENO: checking for connect in -lsocket" >&55853 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&65854 if test "${ac_cv_lib_socket_connect+set}" = set; then5855 echo $ECHO_N "(cached) $ECHO_C" >&65856 else5857 ac_check_lib_save_LIBS=$LIBS5858 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"5859 cat >conftest.$ac_ext <<_ACEOF5860 #line $LINENO "configure"5861 /* confdefs.h. */5862 _ACEOF5863 cat confdefs.h >>conftest.$ac_ext5864 cat >>conftest.$ac_ext <<_ACEOF5865 /* end confdefs.h. */5866 5867 /* Override any gcc2 internal prototype to avoid an error. */5868 #ifdef __cplusplus5869 extern "C"5870 #endif5871 /* We use char because int might match the return type of a gcc25872 builtin and then its argument prototype would still apply. */5873 char connect ();5874 int5875 main ()5876 {5877 connect ();5878 ;5879 return 0;5880 }5881 _ACEOF5882 rm -f conftest.$ac_objext conftest$ac_exeext5883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55884 (eval $ac_link) 2>&55885 ac_status=$?5886 echo "$as_me:$LINENO: \$? = $ac_status" >&55887 (exit $ac_status); } &&5888 { ac_try='test -s conftest$ac_exeext'5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55890 (eval $ac_try) 2>&55891 ac_status=$?5892 echo "$as_me:$LINENO: \$? = $ac_status" >&55893 (exit $ac_status); }; }; then5894 ac_cv_lib_socket_connect=yes5895 else5896 echo "$as_me: failed program was:" >&55897 sed 's/^/| /' conftest.$ac_ext >&55898 5899 ac_cv_lib_socket_connect=no5900 fi5901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext5902 LIBS=$ac_check_lib_save_LIBS5903 fi5904 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&55905 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&65906 if test $ac_cv_lib_socket_connect = yes; then5907 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"5908 fi5909 5910 fi5911 5912 # Guillermo Gomez says -lposix is necessary on A/UX.5913 echo "$as_me:$LINENO: checking for remove" >&55914 echo $ECHO_N "checking for remove... $ECHO_C" >&65915 if test "${ac_cv_func_remove+set}" = set; then5916 echo $ECHO_N "(cached) $ECHO_C" >&65917 else5918 cat >conftest.$ac_ext <<_ACEOF5919 #line $LINENO "configure"5920 /* confdefs.h. */5921 _ACEOF5922 cat confdefs.h >>conftest.$ac_ext5923 cat >>conftest.$ac_ext <<_ACEOF5924 /* end confdefs.h. */5925 /* System header to define __stub macros and hopefully few prototypes,5926 which can conflict with char remove (); below.5927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since5928 <limits.h> exists even on freestanding compilers. */5929 #ifdef __STDC__5930 # include <limits.h>5931 #else5932 # include <assert.h>5933 #endif5934 /* Override any gcc2 internal prototype to avoid an error. */5935 #ifdef __cplusplus5936 extern "C"5937 {5938 #endif5939 /* We use char because int might match the return type of a gcc25940 builtin and then its argument prototype would still apply. */5941 char remove ();5942 /* The GNU C library defines this for functions which it implements5943 to always fail with ENOSYS. Some functions are actually named5944 something starting with __ and the normal name is an alias. */5945 #if defined (__stub_remove) || defined (__stub___remove)5946 choke me5947 #else5948 char (*f) () = remove;5949 #endif5950 #ifdef __cplusplus5951 }5952 #endif5953 5954 int5955 main ()5956 {5957 return f != remove;5958 ;5959 return 0;5960 }5961 _ACEOF5962 rm -f conftest.$ac_objext conftest$ac_exeext5963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55964 (eval $ac_link) 2>&55965 ac_status=$?5966 echo "$as_me:$LINENO: \$? = $ac_status" >&55967 (exit $ac_status); } &&5968 { ac_try='test -s conftest$ac_exeext'5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55970 (eval $ac_try) 2>&55971 ac_status=$?5972 echo "$as_me:$LINENO: \$? = $ac_status" >&55973 (exit $ac_status); }; }; then5974 ac_cv_func_remove=yes5975 else5976 echo "$as_me: failed program was:" >&55977 sed 's/^/| /' conftest.$ac_ext >&55978 5979 ac_cv_func_remove=no5980 fi5981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext5982 fi5983 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&55984 echo "${ECHO_T}$ac_cv_func_remove" >&65985 5986 if test $ac_cv_func_remove = no; then5987 echo "$as_me:$LINENO: checking for remove in -lposix" >&55988 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&65989 if test "${ac_cv_lib_posix_remove+set}" = set; then5990 echo $ECHO_N "(cached) $ECHO_C" >&65991 else5992 ac_check_lib_save_LIBS=$LIBS5993 LIBS="-lposix $LIBS"5994 cat >conftest.$ac_ext <<_ACEOF5995 #line $LINENO "configure"5996 /* confdefs.h. */5997 _ACEOF5998 cat confdefs.h >>conftest.$ac_ext5999 cat >>conftest.$ac_ext <<_ACEOF6000 /* end confdefs.h. */6001 6002 /* Override any gcc2 internal prototype to avoid an error. */6003 #ifdef __cplusplus6004 extern "C"6005 #endif6006 /* We use char because int might match the return type of a gcc26007 builtin and then its argument prototype would still apply. */6008 char remove ();6009 int6010 main ()6011 {6012 remove ();6013 ;6014 return 0;6015 }6016 _ACEOF6017 rm -f conftest.$ac_objext conftest$ac_exeext6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&56019 (eval $ac_link) 2>&56020 ac_status=$?6021 echo "$as_me:$LINENO: \$? = $ac_status" >&56022 (exit $ac_status); } &&6023 { ac_try='test -s conftest$ac_exeext'6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56025 (eval $ac_try) 2>&56026 ac_status=$?6027 echo "$as_me:$LINENO: \$? = $ac_status" >&56028 (exit $ac_status); }; }; then6029 ac_cv_lib_posix_remove=yes6030 else6031 echo "$as_me: failed program was:" >&56032 sed 's/^/| /' conftest.$ac_ext >&56033 6034 ac_cv_lib_posix_remove=no6035 fi6036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext6037 LIBS=$ac_check_lib_save_LIBS6038 fi6039 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&56040 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&66041 if test $ac_cv_lib_posix_remove = yes; then6042 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"6043 fi6044 6045 fi6046 6047 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.6048 echo "$as_me:$LINENO: checking for shmat" >&56049 echo $ECHO_N "checking for shmat... $ECHO_C" >&66050 if test "${ac_cv_func_shmat+set}" = set; then6051 echo $ECHO_N "(cached) $ECHO_C" >&66052 else6053 cat >conftest.$ac_ext <<_ACEOF6054 #line $LINENO "configure"6055 /* confdefs.h. */6056 _ACEOF6057 cat confdefs.h >>conftest.$ac_ext6058 cat >>conftest.$ac_ext <<_ACEOF6059 /* end confdefs.h. */6060 /* System header to define __stub macros and hopefully few prototypes,6061 which can conflict with char shmat (); below.6062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since6063 <limits.h> exists even on freestanding compilers. */6064 #ifdef __STDC__6065 # include <limits.h>6066 #else6067 # include <assert.h>6068 #endif6069 /* Override any gcc2 internal prototype to avoid an error. */6070 #ifdef __cplusplus6071 extern "C"6072 {6073 #endif6074 /* We use char because int might match the return type of a gcc26075 builtin and then its argument prototype would still apply. */6076 char shmat ();6077 /* The GNU C library defines this for functions which it implements6078 to always fail with ENOSYS. Some functions are actually named6079 something starting with __ and the normal name is an alias. */6080 #if defined (__stub_shmat) || defined (__stub___shmat)6081 choke me6082 #else6083 char (*f) () = shmat;6084 #endif6085 #ifdef __cplusplus6086 }6087 #endif6088 6089 int6090 main ()6091 {6092 return f != shmat;6093 ;6094 return 0;6095 }6096 _ACEOF6097 rm -f conftest.$ac_objext conftest$ac_exeext6098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&56099 (eval $ac_link) 2>&56100 ac_status=$?6101 echo "$as_me:$LINENO: \$? = $ac_status" >&56102 (exit $ac_status); } &&6103 { ac_try='test -s conftest$ac_exeext'6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56105 (eval $ac_try) 2>&56106 ac_status=$?6107 echo "$as_me:$LINENO: \$? = $ac_status" >&56108 (exit $ac_status); }; }; then6109 ac_cv_func_shmat=yes6110 else6111 echo "$as_me: failed program was:" >&56112 sed 's/^/| /' conftest.$ac_ext >&56113 6114 ac_cv_func_shmat=no6115 fi6116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext6117 fi6118 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&56119 echo "${ECHO_T}$ac_cv_func_shmat" >&66120 6121 if test $ac_cv_func_shmat = no; then6122 echo "$as_me:$LINENO: checking for shmat in -lipc" >&56123 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&66124 if test "${ac_cv_lib_ipc_shmat+set}" = set; then6125 echo $ECHO_N "(cached) $ECHO_C" >&66126 else6127 ac_check_lib_save_LIBS=$LIBS6128 LIBS="-lipc $LIBS"6129 cat >conftest.$ac_ext <<_ACEOF6130 #line $LINENO "configure"6131 /* confdefs.h. */6132 _ACEOF6133 cat confdefs.h >>conftest.$ac_ext6134 cat >>conftest.$ac_ext <<_ACEOF6135 /* end confdefs.h. */6136 6137 /* Override any gcc2 internal prototype to avoid an error. */6138 #ifdef __cplusplus6139 extern "C"6140 #endif6141 /* We use char because int might match the return type of a gcc26142 builtin and then its argument prototype would still apply. */6143 char shmat ();6144 int6145 main ()6146 {6147 shmat ();6148 ;6149 return 0;6150 }6151 _ACEOF6152 rm -f conftest.$ac_objext conftest$ac_exeext6153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&56154 (eval $ac_link) 2>&56155 ac_status=$?6156 echo "$as_me:$LINENO: \$? = $ac_status" >&56157 (exit $ac_status); } &&6158 { ac_try='test -s conftest$ac_exeext'6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56160 (eval $ac_try) 2>&56161 ac_status=$?6162 echo "$as_me:$LINENO: \$? = $ac_status" >&56163 (exit $ac_status); }; }; then6164 ac_cv_lib_ipc_shmat=yes6165 else6166 echo "$as_me: failed program was:" >&56167 sed 's/^/| /' conftest.$ac_ext >&56168 6169 ac_cv_lib_ipc_shmat=no6170 fi6171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext6172 LIBS=$ac_check_lib_save_LIBS6173 fi6174 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&56175 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&66176 if test $ac_cv_lib_ipc_shmat = yes; then6177 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"6178 fi6179 6180 fi6181 fi6182 6183 # Check for libraries that X11R6 Xt/Xaw programs need.6184 ac_save_LDFLAGS=$LDFLAGS6185 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"6186 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to6187 # check for ICE first), but we must link in the order -lSM -lICE or6188 # we get undefined symbols. So assume we have SM if we have ICE.6189 # These have to be linked with before -lX11, unlike the other6190 # libraries we check for below, so use a different variable.6191 # John Interrante, Karl Berry6192 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&56193 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&66194 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then6195 echo $ECHO_N "(cached) $ECHO_C" >&66196 else6197 ac_check_lib_save_LIBS=$LIBS6198 LIBS="-lICE $X_EXTRA_LIBS $LIBS"6199 cat >conftest.$ac_ext <<_ACEOF6200 #line $LINENO "configure"6201 /* confdefs.h. */6202 _ACEOF6203 cat confdefs.h >>conftest.$ac_ext6204 cat >>conftest.$ac_ext <<_ACEOF6205 /* end confdefs.h. */6206 6207 /* Override any gcc2 internal prototype to avoid an error. */6208 #ifdef __cplusplus6209 extern "C"6210 #endif6211 /* We use char because int might match the return type of a gcc26212 builtin and then its argument prototype would still apply. */6213 char IceConnectionNumber ();6214 int6215 main ()6216 {6217 IceConnectionNumber ();6218 ;6219 return 0;6220 }6221 _ACEOF6222 rm -f conftest.$ac_objext conftest$ac_exeext6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&56224 (eval $ac_link) 2>&56225 ac_status=$?6226 echo "$as_me:$LINENO: \$? = $ac_status" >&56227 (exit $ac_status); } &&6228 { ac_try='test -s conftest$ac_exeext'6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56230 (eval $ac_try) 2>&56231 ac_status=$?6232 echo "$as_me:$LINENO: \$? = $ac_status" >&56233 (exit $ac_status); }; }; then6234 ac_cv_lib_ICE_IceConnectionNumber=yes6235 else6236 echo "$as_me: failed program was:" >&56237 sed 's/^/| /' conftest.$ac_ext >&56238 6239 ac_cv_lib_ICE_IceConnectionNumber=no6240 fi6241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext6242 LIBS=$ac_check_lib_save_LIBS6243 fi6244 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&56245 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&66246 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then6247 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"6248 fi6249 6250 LDFLAGS=$ac_save_LDFLAGS6251 6252 fi6253 6254 6255 # Check for libX116256 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&56257 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&66258 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then6259 echo $ECHO_N "(cached) $ECHO_C" >&66260 else6261 ac_check_lib_save_LIBS=$LIBS6262 LIBS="-lX11 -L/usr/X11R6/lib $X_LIBS $LIBS"6263 cat >conftest.$ac_ext <<_ACEOF6264 #line $LINENO "configure"6265 /* confdefs.h. */6266 _ACEOF6267 cat confdefs.h >>conftest.$ac_ext6268 cat >>conftest.$ac_ext <<_ACEOF6269 /* end confdefs.h. */6270 6271 /* Override any gcc2 internal prototype to avoid an error. */6272 #ifdef __cplusplus6273 extern "C"6274 #endif6275 /* We use char because int might match the return type of a gcc26276 builtin and then its argument prototype would still apply. */6277 char XOpenDisplay ();6278 int6279 main ()6280 {6281 XOpenDisplay ();6282 ;6283 return 0;6284 }6285 _ACEOF6286 rm -f conftest.$ac_objext conftest$ac_exeext6287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&56288 (eval $ac_link) 2>&56289 ac_status=$?6290 echo "$as_me:$LINENO: \$? = $ac_status" >&56291 (exit $ac_status); } &&6292 { ac_try='test -s conftest$ac_exeext'6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56294 (eval $ac_try) 2>&56295 ac_status=$?6296 echo "$as_me:$LINENO: \$? = $ac_status" >&56297 (exit $ac_status); }; }; then6298 ac_cv_lib_X11_XOpenDisplay=yes6299 else6300 echo "$as_me: failed program was:" >&56301 sed 's/^/| /' conftest.$ac_ext >&56302 6303 ac_cv_lib_X11_XOpenDisplay=no6304 fi6305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext6306 LIBS=$ac_check_lib_save_LIBS6307 fi6308 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&56309 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&66310 if test $ac_cv_lib_X11_XOpenDisplay = yes; then6311 6312 has_x_runtime=yes6313 6314 else6315 has_x_runtime=no6316 fi6317 6318 6319 # echo "------done---------"6320 # echo "x_includes=${x_includes}"6321 # echo "x_libraries=${x_libraries}"6322 # echo "no_x=${no_x}"6323 # echo "X_CFLAGS=${X_CFLAGS}"6324 # echo "X_LIBS=${X_LIBS}"6325 # echo "X_DISPLAY_MISSING=${X_DISPLAY_MISSING}"6326 # echo "has_x_runtime=${has_x_runtime}"6327 # echo "host_os=${host_os}"6328 # echo "------done---------"6329 6330 state=6331 6332 case "__${has_x_runtime}__${no_x}__" in6333 "__no__yes__")6334 # either the user said --without-x, or it was not found6335 # at all (runtime or headers)6336 { echo "$as_me:$LINENO: WARNING: X11 not available. You will not be able to use dports that use X11" >&56337 echo "$as_me: WARNING: X11 not available. You will not be able to use dports that use X11" >&2;}6338 state=06339 ;;6340 "__yes__yes__")6341 state=16342 ;;6343 "__yes____")6344 state=26345 ;;6346 *)6347 state=36348 ;;6349 esac6350 6351 case $host_os in6352 darwin*)6353 case $state in6354 1)6355 cat <<EOF;6356 Please install the X11 SDK packages from the6357 Xcode Developer Tools CD6358 EOF6359 { { echo "$as_me:$LINENO: error: Broken X11 install. No X11 headers" >&56360 echo "$as_me: error: Broken X11 install. No X11 headers" >&2;}6361 { (exit 1); exit 1; }; }6362 6363 ;;6364 3)6365 cat <<EOF;6366 Unknown configuration problem. Please install the X11 runtime6367 and/or X11 SDK packages from the Xcode Developer Tools CD6368 EOF6369 { { echo "$as_me:$LINENO: error: Broken X11 install" >&56370 echo "$as_me: error: Broken X11 install" >&2;}6371 { (exit 1); exit 1; }; }6372 ;;6373 esac6374 ;;6375 *)6376 case $state in6377 1)6378 cat <<EOF;6379 Please install the X11 developer headers for your platform6380 EOF6381 { { echo "$as_me:$LINENO: error: Broken X11 install. No X11 headers" >&56382 echo "$as_me: error: Broken X11 install. No X11 headers" >&2;}6383 { (exit 1); exit 1; }; }6384 6385 ;;6386 3)6387 cat <<EOF;6388 Unknown configuration problem. Please install the X116389 implementation for your platform6390 EOF6391 { { echo "$as_me:$LINENO: error: Broken X11 install" >&56392 echo "$as_me: error: Broken X11 install" >&2;}6393 { (exit 1); exit 1; }; }6394 ;;6395 esac6396 ;;6397 esac6398 6399 6400 6401 # Check for md5 implementation6402 6403 6404 # Check for libmd, which is prefered6405 echo "$as_me:$LINENO: checking for MD5Update in -lmd" >&56406 echo $ECHO_N "checking for MD5Update in -lmd... $ECHO_C" >&66407 if test "${ac_cv_lib_md_MD5Update+set}" = set; then6408 echo $ECHO_N "(cached) $ECHO_C" >&66409 else6410 ac_check_lib_save_LIBS=$LIBS6411 LIBS="-lmd $LIBS"6412 cat >conftest.$ac_ext <<_ACEOF6413 #line $LINENO "configure"6414 /* confdefs.h. */6415 _ACEOF6416 cat confdefs.h >>conftest.$ac_ext6417 cat >>conftest.$ac_ext <<_ACEOF6418 /* end confdefs.h. */6419 6420 /* Override any gcc2 internal prototype to avoid an error. */6421 #ifdef __cplusplus6422 extern "C"6423 #endif6424 /* We use char because int might match the return type of a gcc26425 builtin and then its argument prototype would still apply. */6426 char MD5Update ();6427 int6428 main ()6429 {6430 MD5Update ();6431 ;6432 return 0;6433 }6434 _ACEOF6435 rm -f conftest.$ac_objext conftest$ac_exeext6436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&56437 (eval $ac_link) 2>&56438 ac_status=$?6439 echo "$as_me:$LINENO: \$? = $ac_status" >&56440 (exit $ac_status); } &&6441 { ac_try='test -s conftest$ac_exeext'6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56443 (eval $ac_try) 2>&56444 ac_status=$?6445 echo "$as_me:$LINENO: \$? = $ac_status" >&56446 (exit $ac_status); }; }; then6447 ac_cv_lib_md_MD5Update=yes6448 else6449 echo "$as_me: failed program was:" >&56450 sed 's/^/| /' conftest.$ac_ext >&56451 6452 ac_cv_lib_md_MD5Update=no6453 fi6454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext6455 LIBS=$ac_check_lib_save_LIBS6456 fi6457 echo "$as_me:$LINENO: result: $ac_cv_lib_md_MD5Update" >&56458 echo "${ECHO_T}$ac_cv_lib_md_MD5Update" >&66459 if test $ac_cv_lib_md_MD5Update = yes; then6460 6461 6462 for ac_header in md5.h6463 do6464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`6465 if eval "test \"\${$as_ac_Header+set}\" = set"; then6466 echo "$as_me:$LINENO: checking for $ac_header" >&56467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&66468 if eval "test \"\${$as_ac_Header+set}\" = set"; then6469 echo $ECHO_N "(cached) $ECHO_C" >&66470 fi6471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&56472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&66473 else6474 # Is the header compilable?6475 echo "$as_me:$LINENO: checking $ac_header usability" >&56476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&66477 cat >conftest.$ac_ext <<_ACEOF6478 #line $LINENO "configure"6479 /* confdefs.h. */6480 _ACEOF6481 cat confdefs.h >>conftest.$ac_ext6482 cat >>conftest.$ac_ext <<_ACEOF6483 /* end confdefs.h. */6484 $ac_includes_default6485 #include <$ac_header>6486 _ACEOF6487 rm -f conftest.$ac_objext6488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56489 (eval $ac_compile) 2>&56490 ac_status=$?6491 echo "$as_me:$LINENO: \$? = $ac_status" >&56492 (exit $ac_status); } &&6493 { ac_try='test -s conftest.$ac_objext'6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56495 (eval $ac_try) 2>&56496 ac_status=$?6497 echo "$as_me:$LINENO: \$? = $ac_status" >&56498 (exit $ac_status); }; }; then6499 ac_header_compiler=yes6500 else6501 echo "$as_me: failed program was:" >&56502 sed 's/^/| /' conftest.$ac_ext >&56503 6504 ac_header_compiler=no6505 fi6506 rm -f conftest.$ac_objext conftest.$ac_ext6507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&56508 echo "${ECHO_T}$ac_header_compiler" >&66509 6510 # Is the header present?6511 echo "$as_me:$LINENO: checking $ac_header presence" >&56512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&66513 cat >conftest.$ac_ext <<_ACEOF6514 #line $LINENO "configure"6515 /* confdefs.h. */6516 _ACEOF6517 cat confdefs.h >>conftest.$ac_ext6518 cat >>conftest.$ac_ext <<_ACEOF6519 /* end confdefs.h. */6520 #include <$ac_header>6521 _ACEOF6522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&56523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er16524 ac_status=$?6525 grep -v '^ *+' conftest.er1 >conftest.err6526 rm -f conftest.er16527 cat conftest.err >&56528 echo "$as_me:$LINENO: \$? = $ac_status" >&56529 (exit $ac_status); } >/dev/null; then6530 if test -s conftest.err; then6531 ac_cpp_err=$ac_c_preproc_warn_flag6532 else6533 ac_cpp_err=6534 fi6535 else6536 ac_cpp_err=yes6537 fi6538 if test -z "$ac_cpp_err"; then6539 ac_header_preproc=yes6540 else6541 echo "$as_me: failed program was:" >&56542 sed 's/^/| /' conftest.$ac_ext >&56543 6544 ac_header_preproc=no6545 fi6546 rm -f conftest.err conftest.$ac_ext6547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&56548 echo "${ECHO_T}$ac_header_preproc" >&66549 6550 # So? What about this header?6551 case $ac_header_compiler:$ac_header_preproc in6552 yes:no )6553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&56554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}6555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&56556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}6557 (6558 cat <<\_ASBOX6559 ## ------------------------------------ ##6560 ## Report this to bug-autoconf@gnu.org. ##6561 ## ------------------------------------ ##6562 _ASBOX6563 ) |6564 sed "s/^/$as_me: WARNING: /" >&26565 ;;6566 no:yes )6567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&56568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}6569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&56570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}6571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&56572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}6573 (6574 cat <<\_ASBOX6575 ## ------------------------------------ ##6576 ## Report this to bug-autoconf@gnu.org. ##6577 ## ------------------------------------ ##6578 _ASBOX6579 ) |6580 sed "s/^/$as_me: WARNING: /" >&26581 ;;6582 esac6583 echo "$as_me:$LINENO: checking for $ac_header" >&56584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&66585 if eval "test \"\${$as_ac_Header+set}\" = set"; then6586 echo $ECHO_N "(cached) $ECHO_C" >&66587 else6588 eval "$as_ac_Header=$ac_header_preproc"6589 fi6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&56591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&66592 6593 fi6594 if test `eval echo '${'$as_ac_Header'}'` = yes; then6595 cat >>confdefs.h <<_ACEOF6596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 16597 _ACEOF6598 6599 else6600 6601 case $host_os in6602 darwin*)6603 { echo "$as_me:$LINENO: Please install the BSD SDK package from the Xcode Developer Tools CD." >&56604 echo "$as_me: Please install the BSD SDK package from the Xcode Developer Tools CD." >&6;}6605 ;;6606 *)6607 { echo "$as_me:$LINENO: Please install the libmd developer headers for your platform." >&56608 echo "$as_me: Please install the libmd developer headers for your platform." >&6;}6609 ;;6610 esac6611 { { echo "$as_me:$LINENO: error: libmd was found, but md5.h is missing." >&56612 echo "$as_me: error: libmd was found, but md5.h is missing." >&2;}6613 { (exit 1); exit 1; }; }6614 6615 fi6616 6617 done6618 6619 6620 cat >>confdefs.h <<\_ACEOF6621 #define HAVE_LIBMD6622 _ACEOF6623 6624 MD5_LIBS="-lmd"6625 6626 fi6627 6628 if test "x$MD5_LIBS" = "x" ; then6629 # If libmd is not found, check for libcrypto from OpenSSL6630 echo "$as_me:$LINENO: checking for MD5_Update in -lcrypto" >&56631 echo $ECHO_N "checking for MD5_Update in -lcrypto... $ECHO_C" >&66632 if test "${ac_cv_lib_crypto_MD5_Update+set}" = set; then6633 echo $ECHO_N "(cached) $ECHO_C" >&66634 else6635 ac_check_lib_save_LIBS=$LIBS6636 LIBS="-lcrypto $LIBS"6637 cat >conftest.$ac_ext <<_ACEOF6638 #line $LINENO "configure"6639 /* confdefs.h. */6640 _ACEOF6641 cat confdefs.h >>conftest.$ac_ext6642 cat >>conftest.$ac_ext <<_ACEOF6643 /* end confdefs.h. */6644 6645 /* Override any gcc2 internal prototype to avoid an error. */6646 #ifdef __cplusplus6647 extern "C"6648 #endif6649 /* We use char because int might match the return type of a gcc26650 builtin and then its argument prototype would still apply. */6651 char MD5_Update ();6652 int6653 main ()6654 {6655 MD5_Update ();6656 ;6657 return 0;6658 }6659 _ACEOF6660 rm -f conftest.$ac_objext conftest$ac_exeext6661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&56662 (eval $ac_link) 2>&56663 ac_status=$?6664 echo "$as_me:$LINENO: \$? = $ac_status" >&56665 (exit $ac_status); } &&6666 { ac_try='test -s conftest$ac_exeext'6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56668 (eval $ac_try) 2>&56669 ac_status=$?6670 echo "$as_me:$LINENO: \$? = $ac_status" >&56671 (exit $ac_status); }; }; then6672 ac_cv_lib_crypto_MD5_Update=yes6673 else6674 echo "$as_me: failed program was:" >&56675 sed 's/^/| /' conftest.$ac_ext >&56676 6677 ac_cv_lib_crypto_MD5_Update=no6678 fi6679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext6680 LIBS=$ac_check_lib_save_LIBS6681 fi6682 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD5_Update" >&56683 echo "${ECHO_T}$ac_cv_lib_crypto_MD5_Update" >&66684 if test $ac_cv_lib_crypto_MD5_Update = yes; then6685 6686 6687 for ac_header in openssl/md5.h6688 do6689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`6690 if eval "test \"\${$as_ac_Header+set}\" = set"; then6691 echo "$as_me:$LINENO: checking for $ac_header" >&56692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&66693 if eval "test \"\${$as_ac_Header+set}\" = set"; then6694 echo $ECHO_N "(cached) $ECHO_C" >&66695 fi6696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&56697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&66698 else6699 # Is the header compilable?6700 echo "$as_me:$LINENO: checking $ac_header usability" >&56701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&66702 cat >conftest.$ac_ext <<_ACEOF6703 #line $LINENO "configure"6704 /* confdefs.h. */6705 _ACEOF6706 cat confdefs.h >>conftest.$ac_ext6707 cat >>conftest.$ac_ext <<_ACEOF6708 /* end confdefs.h. */6709 $ac_includes_default6710 #include <$ac_header>6711 _ACEOF6712 rm -f conftest.$ac_objext6713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56714 (eval $ac_compile) 2>&56715 ac_status=$?6716 echo "$as_me:$LINENO: \$? = $ac_status" >&56717 (exit $ac_status); } &&6718 { ac_try='test -s conftest.$ac_objext'6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56720 (eval $ac_try) 2>&56721 ac_status=$?6722 echo "$as_me:$LINENO: \$? = $ac_status" >&56723 (exit $ac_status); }; }; then6724 ac_header_compiler=yes6725 else6726 echo "$as_me: failed program was:" >&56727 sed 's/^/| /' conftest.$ac_ext >&56728 6729 ac_header_compiler=no6730 fi6731 rm -f conftest.$ac_objext conftest.$ac_ext6732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&56733 echo "${ECHO_T}$ac_header_compiler" >&66734 6735 # Is the header present?6736 echo "$as_me:$LINENO: checking $ac_header presence" >&56737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&66738 cat >conftest.$ac_ext <<_ACEOF6739 #line $LINENO "configure"6740 /* confdefs.h. */6741 _ACEOF6742 cat confdefs.h >>conftest.$ac_ext6743 cat >>conftest.$ac_ext <<_ACEOF6744 /* end confdefs.h. */6745 #include <$ac_header>6746 _ACEOF6747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&56748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er16749 ac_status=$?6750 grep -v '^ *+' conftest.er1 >conftest.err6751 rm -f conftest.er16752 cat conftest.err >&56753 echo "$as_me:$LINENO: \$? = $ac_status" >&56754 (exit $ac_status); } >/dev/null; then6755 if test -s conftest.err; then6756 ac_cpp_err=$ac_c_preproc_warn_flag6757 else6758 ac_cpp_err=6759 fi6760 else6761 ac_cpp_err=yes6762 fi6763 if test -z "$ac_cpp_err"; then6764 ac_header_preproc=yes6765 else6766 echo "$as_me: failed program was:" >&56767 sed 's/^/| /' conftest.$ac_ext >&56768 6769 ac_header_preproc=no6770 fi6771 rm -f conftest.err conftest.$ac_ext6772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&56773 echo "${ECHO_T}$ac_header_preproc" >&66774 6775 # So? What about this header?6776 case $ac_header_compiler:$ac_header_preproc in6777 yes:no )6778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&56779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}6780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&56781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}6782 (6783 cat <<\_ASBOX6784 ## ------------------------------------ ##6785 ## Report this to bug-autoconf@gnu.org. ##6786 ## ------------------------------------ ##6787 _ASBOX6788 ) |6789 sed "s/^/$as_me: WARNING: /" >&26790 ;;6791 no:yes )6792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&56793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}6794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&56795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}6796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&56797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}6798 (6799 cat <<\_ASBOX6800 ## ------------------------------------ ##6801 ## Report this to bug-autoconf@gnu.org. ##6802 ## ------------------------------------ ##6803 _ASBOX6804 ) |6805 sed "s/^/$as_me: WARNING: /" >&26806 ;;6807 esac6808 echo "$as_me:$LINENO: checking for $ac_header" >&56809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&66810 if eval "test \"\${$as_ac_Header+set}\" = set"; then6811 echo $ECHO_N "(cached) $ECHO_C" >&66812 else6813 eval "$as_ac_Header=$ac_header_preproc"6814 fi6815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&56816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&66817 6818 fi6819 if test `eval echo '${'$as_ac_Header'}'` = yes; then6820 cat >>confdefs.h <<_ACEOF6821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 16822 _ACEOF6823 6824 else6825 6826 case $host_os in6827 darwin*)6828 { echo "$as_me:$LINENO: Please install the BSD SDK package from the Xcode Developer Tools CD." >&56829 echo "$as_me: Please install the BSD SDK package from the Xcode Developer Tools CD." >&6;}6830 ;;6831 *)6832 { echo "$as_me:$LINENO: Please install the libmd developer headers for your platform." >&56833 echo "$as_me: Please install the libmd developer headers for your platform." >&6;}6834 ;;6835 esac6836 { { echo "$as_me:$LINENO: error: libcrypt was found, but header file openssl/md5.h is missing." >&56837 echo "$as_me: error: libcrypt was found, but header file openssl/md5.h is missing." >&2;}6838 { (exit 1); exit 1; }; }6839 6840 fi6841 6842 done6843 6844 6845 cat >>confdefs.h <<\_ACEOF6846 #define HAVE_LIBCRYPTO6847 _ACEOF6848 6849 MD5_LIBS="-lcrypto"6850 6851 else6852 6853 { { echo "$as_me:$LINENO: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&56854 echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}6855 { (exit 1); exit 1; }; }6856 6857 fi6858 6859 fi6860 if test "x$MD5_LIBS" = "x"; then6861 { { echo "$as_me:$LINENO: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&56862 echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}6863 { (exit 1); exit 1; }; }6864 fi6865 6866 6867 # Check for X11 and paraphernalia6868 5280 6869 5281 -
trunk/base/configure.ac
r9150 r9263 50 50 AC_FUNC_STRERROR_R 51 51 AC_CHECK_FUNCS([bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock setmode strcasecmp strncasecmp]) 52 53 # Check for md5 implementation54 OD_LIB_MD555 # Check for X11 and paraphernalia56 OD_CHECK_X1157 52 58 53 # Check for md5 implementation
Note: See TracChangeset
for help on using the changeset viewer.