comparison configure @ 318:afd57c14dfc8 r21-0b57

Import from CVS: tag r21-0b57
author cvs
date Mon, 13 Aug 2007 10:45:36 +0200
parents 851ff35f137f
children 19dcec799385
comparison
equal deleted inserted replaced
317:a2fc9afbef65 318:afd57c14dfc8
1032 *-*-ultrix* ) opsys=ultrix4-3 ;; 1032 *-*-ultrix* ) opsys=ultrix4-3 ;;
1033 1033
1034 *-*-aix3.1* ) opsys=aix3-1 ;; 1034 *-*-aix3.1* ) opsys=aix3-1 ;;
1035 *-*-aix3.2.5 ) opsys=aix3-2-5 ;; 1035 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
1036 *-*-aix3* ) opsys=aix3-2 ;; 1036 *-*-aix3* ) opsys=aix3-2 ;;
1037 *-*-aix4.2* ) opsys=aix4-2 ;; 1037 *-*-aix4.0* ) opsys=aix4 ;;
1038 *-*-aix4.1* ) opsys=aix4-1 ;; 1038 *-*-aix4.1* ) opsys=aix4-1 ;;
1039 *-*-aix4* ) opsys=aix4 ;; 1039 *-*-aix4* ) opsys=aix4-2 ;;
1040 1040
1041 *-gnu* ) opsys=gnu ;; 1041 *-gnu* ) opsys=gnu ;;
1042 *-*-bsd4.[01] ) opsys=bsd4-1 ;; 1042 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
1043 *-*-bsd4.2 ) opsys=bsd4-2 ;; 1043 *-*-bsd4.2 ) opsys=bsd4-2 ;;
1044 *-*-bsd4.3 ) opsys=bsd4-3 ;; 1044 *-*-bsd4.3 ) opsys=bsd4-3 ;;
2294 sunos4* ) CFLAGS="-xO2";; 2294 sunos4* ) CFLAGS="-xO2";;
2295 esac 2295 esac
2296 elif test "$__DECC" = "yes"; then 2296 elif test "$__DECC" = "yes"; then
2297 CFLAGS="-O3" 2297 CFLAGS="-O3"
2298 elif test "$CC" = "xlc"; then 2298 elif test "$CC" = "xlc"; then
2299 CFLAGS="-O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000" 2299 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2300 else 2300 else
2301 CFLAGS="-O" ; fi 2301 CFLAGS="-O" ; fi
2302 fi 2302 fi
2303 2303
2304 2304
2963 else 2963 else
2964 echo "$ac_t""no" 1>&6 2964 echo "$ac_t""no" 1>&6
2965 fi 2965 fi
2966 done 2966 done
2967 2967
2968 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h 2968 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin32/version.h
2969 do 2969 do
2970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2972 echo "configure:2973: checking for $ac_hdr" >&5 2972 echo "configure:2973: checking for $ac_hdr" >&5
2973 2973
9345 cat >> confdefs.h <<\EOF 9345 cat >> confdefs.h <<\EOF
9346 #define HAVE_MMAP 1 9346 #define HAVE_MMAP 1
9347 EOF 9347 EOF
9348 } 9348 }
9349 9349
9350 for ac_hdr in unistd.h
9351 do
9352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9354 echo "configure:9355: checking for $ac_hdr" >&5
9355
9356 cat > conftest.$ac_ext <<EOF
9357 #line 9358 "configure"
9358 #include "confdefs.h"
9359 #include <$ac_hdr>
9360 EOF
9361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9362 { (eval echo configure:9363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9363 ac_err=`grep -v '^ *+' conftest.out`
9364 if test -z "$ac_err"; then
9365 rm -rf conftest*
9366 eval "ac_cv_header_$ac_safe=yes"
9367 else
9368 echo "$ac_err" >&5
9369 echo "configure: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9371 rm -rf conftest*
9372 eval "ac_cv_header_$ac_safe=no"
9373 fi
9374 rm -f conftest*
9375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9376 echo "$ac_t""yes" 1>&6
9377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9378 { test "$extra_verbose" = "yes" && cat << EOF
9379 Defining $ac_tr_hdr
9380 EOF
9381 cat >> confdefs.h <<EOF
9382 #define $ac_tr_hdr 1
9383 EOF
9384 }
9385
9386 else
9387 echo "$ac_t""no" 1>&6
9388 fi
9389 done
9390
9391 for ac_func in getpagesize
9392 do
9393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9394 echo "configure:9395: checking for $ac_func" >&5
9395
9396 cat > conftest.$ac_ext <<EOF
9397 #line 9398 "configure"
9398 #include "confdefs.h"
9399 /* System header to define __stub macros and hopefully few prototypes,
9400 which can conflict with char $ac_func(); below. */
9401 #include <assert.h>
9402 /* Override any gcc2 internal prototype to avoid an error. */
9403 /* We use char because int might match the return type of a gcc2
9404 builtin and then its argument prototype would still apply. */
9405 char $ac_func();
9406
9407 int main() {
9408
9409 /* The GNU C library defines this for functions which it implements
9410 to always fail with ENOSYS. Some functions are actually named
9411 something starting with __ and the normal name is an alias. */
9412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9413 choke me
9414 #else
9415 $ac_func();
9416 #endif
9417
9418 ; return 0; }
9419 EOF
9420 if { (eval echo configure:9421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9421 rm -rf conftest*
9422 eval "ac_cv_func_$ac_func=yes"
9423 else
9424 echo "configure: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 rm -rf conftest*
9427 eval "ac_cv_func_$ac_func=no"
9428 fi
9429 rm -f conftest*
9430
9431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9432 echo "$ac_t""yes" 1>&6
9433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9434 { test "$extra_verbose" = "yes" && cat << EOF
9435 Defining $ac_tr_func
9436 EOF
9437 cat >> confdefs.h <<EOF
9438 #define $ac_tr_func 1
9439 EOF
9440 }
9441
9442 else
9443 echo "$ac_t""no" 1>&6
9444 fi
9445 done
9446
9447 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9448 echo "configure:9449: checking for working mmap" >&5
9449
9450 cat > conftest.$ac_ext <<EOF
9451 #line 9452 "configure"
9452 #include "confdefs.h"
9453
9454 /* Thanks to Mike Haertel and Jim Avera for this test.
9455 Here is a matrix of mmap possibilities:
9456 mmap private not fixed
9457 mmap private fixed at somewhere currently unmapped
9458 mmap private fixed at somewhere already mapped
9459 mmap shared not fixed
9460 mmap shared fixed at somewhere currently unmapped
9461 mmap shared fixed at somewhere already mapped
9462 For private mappings, we should verify that changes cannot be read()
9463 back from the file, nor mmap's back from the file at a different
9464 address. (There have been systems where private was not correctly
9465 implemented like the infamous i386 svr4.0, and systems where the
9466 VM page cache was not coherent with the filesystem buffer cache
9467 like early versions of FreeBSD and possibly contemporary NetBSD.)
9468 For shared mappings, we should conversely verify that changes get
9469 propogated back to all the places they're supposed to be.
9470
9471 Grep wants private fixed already mapped.
9472 The main things grep needs to know about mmap are:
9473 * does it exist and is it safe to write into the mmap'd area
9474 * how to use it (BSD variants) */
9475 #include <sys/types.h>
9476 #include <fcntl.h>
9477 #include <sys/mman.h>
9478
9479 /* This mess was copied from the GNU getpagesize.h. */
9480 #ifndef HAVE_GETPAGESIZE
9481 # ifdef HAVE_UNISTD_H
9482 # include <unistd.h>
9483 # endif
9484
9485 /* Assume that all systems that can run configure have sys/param.h. */
9486 # ifndef HAVE_SYS_PARAM_H
9487 # define HAVE_SYS_PARAM_H 1
9488 # endif
9489
9490 # ifdef _SC_PAGESIZE
9491 # define getpagesize() sysconf(_SC_PAGESIZE)
9492 # else /* no _SC_PAGESIZE */
9493 # ifdef HAVE_SYS_PARAM_H
9494 # include <sys/param.h>
9495 # ifdef EXEC_PAGESIZE
9496 # define getpagesize() EXEC_PAGESIZE
9497 # else /* no EXEC_PAGESIZE */
9498 # ifdef NBPG
9499 # define getpagesize() NBPG * CLSIZE
9500 # ifndef CLSIZE
9501 # define CLSIZE 1
9502 # endif /* no CLSIZE */
9503 # else /* no NBPG */
9504 # ifdef NBPC
9505 # define getpagesize() NBPC
9506 # else /* no NBPC */
9507 # ifdef PAGESIZE
9508 # define getpagesize() PAGESIZE
9509 # endif /* PAGESIZE */
9510 # endif /* no NBPC */
9511 # endif /* no NBPG */
9512 # endif /* no EXEC_PAGESIZE */
9513 # else /* no HAVE_SYS_PARAM_H */
9514 # define getpagesize() 8192 /* punt totally */
9515 # endif /* no HAVE_SYS_PARAM_H */
9516 # endif /* no _SC_PAGESIZE */
9517
9518 #endif /* no HAVE_GETPAGESIZE */
9519
9520 #ifdef __cplusplus
9521 extern "C" { void *malloc(unsigned); }
9522 #else
9523 char *malloc();
9524 #endif
9525
9526 int
9527 main()
9528 {
9529 char *data, *data2, *data3;
9530 int i, pagesize;
9531 int fd;
9532
9533 pagesize = getpagesize();
9534
9535 /*
9536 * First, make a file with some known garbage in it.
9537 */
9538 data = malloc(pagesize);
9539 if (!data)
9540 exit(1);
9541 for (i = 0; i < pagesize; ++i)
9542 *(data + i) = rand();
9543 umask(0);
9544 fd = creat("conftestmmap", 0600);
9545 if (fd < 0)
9546 exit(1);
9547 if (write(fd, data, pagesize) != pagesize)
9548 exit(1);
9549 close(fd);
9550
9551 /*
9552 * Next, try to mmap the file at a fixed address which
9553 * already has something else allocated at it. If we can,
9554 * also make sure that we see the same garbage.
9555 */
9556 fd = open("conftestmmap", O_RDWR);
9557 if (fd < 0)
9558 exit(1);
9559 data2 = malloc(2 * pagesize);
9560 if (!data2)
9561 exit(1);
9562 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9563 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
9564 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9565 exit(1);
9566 for (i = 0; i < pagesize; ++i)
9567 if (*(data + i) != *(data2 + i))
9568 exit(1);
9569
9570 /*
9571 * Finally, make sure that changes to the mapped area
9572 * do not percolate back to the file as seen by read().
9573 * (This is a bug on some variants of i386 svr4.0.)
9574 */
9575 for (i = 0; i < pagesize; ++i)
9576 *(data2 + i) = *(data2 + i) + 1;
9577 data3 = malloc(pagesize);
9578 if (!data3)
9579 exit(1);
9580 if (read(fd, data3, pagesize) != pagesize)
9581 exit(1);
9582 for (i = 0; i < pagesize; ++i)
9583 if (*(data + i) != *(data3 + i))
9584 exit(1);
9585 close(fd);
9586 unlink("conftestmmap");
9587 exit(0);
9588 }
9589
9590 EOF
9591 if { (eval echo configure:9592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9592 then
9593 ac_cv_func_mmap_fixed_mapped=yes
9594 else
9595 conftest_rc="$?"
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9598 rm -fr conftest*
9599 ac_cv_func_mmap_fixed_mapped=no
9600 fi
9601 rm -fr conftest*
9602
9603 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
9604 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9605 { test "$extra_verbose" = "yes" && cat << \EOF
9606 Defining HAVE_MMAP
9607 EOF
9608 cat >> confdefs.h <<\EOF
9609 #define HAVE_MMAP 1
9610 EOF
9611 }
9612
9613 fi
9614
9350 9615
9351 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 9616 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
9352 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes 9617 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
9353 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 9618 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9354 Defining REL_ALLOC 9619 Defining REL_ALLOC
9359 } 9624 }
9360 9625
9361 9626
9362 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 9627 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
9363 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 9628 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
9364 echo "configure:9365: checking for termios.h" >&5 9629 echo "configure:9630: checking for termios.h" >&5
9365 9630
9366 cat > conftest.$ac_ext <<EOF 9631 cat > conftest.$ac_ext <<EOF
9367 #line 9368 "configure" 9632 #line 9633 "configure"
9368 #include "confdefs.h" 9633 #include "confdefs.h"
9369 #include <termios.h> 9634 #include <termios.h>
9370 EOF 9635 EOF
9371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9372 { (eval echo configure:9373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9637 { (eval echo configure:9638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9373 ac_err=`grep -v '^ *+' conftest.out` 9638 ac_err=`grep -v '^ *+' conftest.out`
9374 if test -z "$ac_err"; then 9639 if test -z "$ac_err"; then
9375 rm -rf conftest* 9640 rm -rf conftest*
9376 eval "ac_cv_header_$ac_safe=yes" 9641 eval "ac_cv_header_$ac_safe=yes"
9377 else 9642 else
9410 9675
9411 else 9676 else
9412 echo "$ac_t""no" 1>&6 9677 echo "$ac_t""no" 1>&6
9413 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 9678 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
9414 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 9679 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
9415 echo "configure:9416: checking for termio.h" >&5 9680 echo "configure:9681: checking for termio.h" >&5
9416 9681
9417 cat > conftest.$ac_ext <<EOF 9682 cat > conftest.$ac_ext <<EOF
9418 #line 9419 "configure" 9683 #line 9684 "configure"
9419 #include "confdefs.h" 9684 #include "confdefs.h"
9420 #include <termio.h> 9685 #include <termio.h>
9421 EOF 9686 EOF
9422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9423 { (eval echo configure:9424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9688 { (eval echo configure:9689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9424 ac_err=`grep -v '^ *+' conftest.out` 9689 ac_err=`grep -v '^ *+' conftest.out`
9425 if test -z "$ac_err"; then 9690 if test -z "$ac_err"; then
9426 rm -rf conftest* 9691 rm -rf conftest*
9427 eval "ac_cv_header_$ac_safe=yes" 9692 eval "ac_cv_header_$ac_safe=yes"
9428 else 9693 else
9450 fi 9715 fi
9451 9716
9452 9717
9453 9718
9454 echo $ac_n "checking for socket""... $ac_c" 1>&6 9719 echo $ac_n "checking for socket""... $ac_c" 1>&6
9455 echo "configure:9456: checking for socket" >&5 9720 echo "configure:9721: checking for socket" >&5
9456 9721
9457 cat > conftest.$ac_ext <<EOF 9722 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure" 9723 #line 9724 "configure"
9459 #include "confdefs.h" 9724 #include "confdefs.h"
9460 /* System header to define __stub macros and hopefully few prototypes, 9725 /* System header to define __stub macros and hopefully few prototypes,
9461 which can conflict with char socket(); below. */ 9726 which can conflict with char socket(); below. */
9462 #include <assert.h> 9727 #include <assert.h>
9463 /* Override any gcc2 internal prototype to avoid an error. */ 9728 /* Override any gcc2 internal prototype to avoid an error. */
9476 socket(); 9741 socket();
9477 #endif 9742 #endif
9478 9743
9479 ; return 0; } 9744 ; return 0; }
9480 EOF 9745 EOF
9481 if { (eval echo configure:9482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9746 if { (eval echo configure:9747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9482 rm -rf conftest* 9747 rm -rf conftest*
9483 eval "ac_cv_func_socket=yes" 9748 eval "ac_cv_func_socket=yes"
9484 else 9749 else
9485 echo "configure: failed program was:" >&5 9750 echo "configure: failed program was:" >&5
9486 cat conftest.$ac_ext >&5 9751 cat conftest.$ac_ext >&5
9491 9756
9492 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 9757 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9493 echo "$ac_t""yes" 1>&6 9758 echo "$ac_t""yes" 1>&6
9494 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 9759 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
9495 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 9760 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
9496 echo "configure:9497: checking for netinet/in.h" >&5 9761 echo "configure:9762: checking for netinet/in.h" >&5
9497 9762
9498 cat > conftest.$ac_ext <<EOF 9763 cat > conftest.$ac_ext <<EOF
9499 #line 9500 "configure" 9764 #line 9765 "configure"
9500 #include "confdefs.h" 9765 #include "confdefs.h"
9501 #include <netinet/in.h> 9766 #include <netinet/in.h>
9502 EOF 9767 EOF
9503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9504 { (eval echo configure:9505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9769 { (eval echo configure:9770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9505 ac_err=`grep -v '^ *+' conftest.out` 9770 ac_err=`grep -v '^ *+' conftest.out`
9506 if test -z "$ac_err"; then 9771 if test -z "$ac_err"; then
9507 rm -rf conftest* 9772 rm -rf conftest*
9508 eval "ac_cv_header_$ac_safe=yes" 9773 eval "ac_cv_header_$ac_safe=yes"
9509 else 9774 else
9516 rm -f conftest* 9781 rm -f conftest*
9517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9518 echo "$ac_t""yes" 1>&6 9783 echo "$ac_t""yes" 1>&6
9519 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 9784 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
9520 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 9785 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
9521 echo "configure:9522: checking for arpa/inet.h" >&5 9786 echo "configure:9787: checking for arpa/inet.h" >&5
9522 9787
9523 cat > conftest.$ac_ext <<EOF 9788 cat > conftest.$ac_ext <<EOF
9524 #line 9525 "configure" 9789 #line 9790 "configure"
9525 #include "confdefs.h" 9790 #include "confdefs.h"
9526 #include <arpa/inet.h> 9791 #include <arpa/inet.h>
9527 EOF 9792 EOF
9528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9529 { (eval echo configure:9530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9794 { (eval echo configure:9795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9530 ac_err=`grep -v '^ *+' conftest.out` 9795 ac_err=`grep -v '^ *+' conftest.out`
9531 if test -z "$ac_err"; then 9796 if test -z "$ac_err"; then
9532 rm -rf conftest* 9797 rm -rf conftest*
9533 eval "ac_cv_header_$ac_safe=yes" 9798 eval "ac_cv_header_$ac_safe=yes"
9534 else 9799 else
9549 #define HAVE_SOCKETS 1 9814 #define HAVE_SOCKETS 1
9550 EOF 9815 EOF
9551 } 9816 }
9552 9817
9553 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 9818 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
9554 echo "configure:9555: checking "for sun_len member in struct sockaddr_un"" >&5 9819 echo "configure:9820: checking "for sun_len member in struct sockaddr_un"" >&5
9555 cat > conftest.$ac_ext <<EOF 9820 cat > conftest.$ac_ext <<EOF
9556 #line 9557 "configure" 9821 #line 9822 "configure"
9557 #include "confdefs.h" 9822 #include "confdefs.h"
9558 9823
9559 #include <sys/types.h> 9824 #include <sys/types.h>
9560 #include <sys/socket.h> 9825 #include <sys/socket.h>
9561 #include <sys/un.h> 9826 #include <sys/un.h>
9562 9827
9563 int main() { 9828 int main() {
9564 static struct sockaddr_un x; x.sun_len = 1; 9829 static struct sockaddr_un x; x.sun_len = 1;
9565 ; return 0; } 9830 ; return 0; }
9566 EOF 9831 EOF
9567 if { (eval echo configure:9568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9832 if { (eval echo configure:9833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9568 rm -rf conftest* 9833 rm -rf conftest*
9569 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9834 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9570 Defining HAVE_SOCKADDR_SUN_LEN 9835 Defining HAVE_SOCKADDR_SUN_LEN
9571 EOF 9836 EOF
9572 cat >> confdefs.h <<\EOF 9837 cat >> confdefs.h <<\EOF
9580 rm -rf conftest* 9845 rm -rf conftest*
9581 echo "$ac_t""no" 1>&6 9846 echo "$ac_t""no" 1>&6
9582 fi 9847 fi
9583 rm -f conftest* 9848 rm -f conftest*
9584 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 9849 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
9585 echo "configure:9586: checking "for ip_mreq struct in netinet/in.h"" >&5 9850 echo "configure:9851: checking "for ip_mreq struct in netinet/in.h"" >&5
9586 cat > conftest.$ac_ext <<EOF 9851 cat > conftest.$ac_ext <<EOF
9587 #line 9588 "configure" 9852 #line 9853 "configure"
9588 #include "confdefs.h" 9853 #include "confdefs.h"
9589 9854
9590 #include <sys/types.h> 9855 #include <sys/types.h>
9591 #include <netinet/in.h> 9856 #include <netinet/in.h>
9592 9857
9593 int main() { 9858 int main() {
9594 static struct ip_mreq x; 9859 static struct ip_mreq x;
9595 ; return 0; } 9860 ; return 0; }
9596 EOF 9861 EOF
9597 if { (eval echo configure:9598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9862 if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9598 rm -rf conftest* 9863 rm -rf conftest*
9599 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9864 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9600 Defining HAVE_MULTICAST 9865 Defining HAVE_MULTICAST
9601 EOF 9866 EOF
9602 cat >> confdefs.h <<\EOF 9867 cat >> confdefs.h <<\EOF
9623 echo "$ac_t""no" 1>&6 9888 echo "$ac_t""no" 1>&6
9624 fi 9889 fi
9625 9890
9626 9891
9627 echo $ac_n "checking for msgget""... $ac_c" 1>&6 9892 echo $ac_n "checking for msgget""... $ac_c" 1>&6
9628 echo "configure:9629: checking for msgget" >&5 9893 echo "configure:9894: checking for msgget" >&5
9629 9894
9630 cat > conftest.$ac_ext <<EOF 9895 cat > conftest.$ac_ext <<EOF
9631 #line 9632 "configure" 9896 #line 9897 "configure"
9632 #include "confdefs.h" 9897 #include "confdefs.h"
9633 /* System header to define __stub macros and hopefully few prototypes, 9898 /* System header to define __stub macros and hopefully few prototypes,
9634 which can conflict with char msgget(); below. */ 9899 which can conflict with char msgget(); below. */
9635 #include <assert.h> 9900 #include <assert.h>
9636 /* Override any gcc2 internal prototype to avoid an error. */ 9901 /* Override any gcc2 internal prototype to avoid an error. */
9649 msgget(); 9914 msgget();
9650 #endif 9915 #endif
9651 9916
9652 ; return 0; } 9917 ; return 0; }
9653 EOF 9918 EOF
9654 if { (eval echo configure:9655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9919 if { (eval echo configure:9920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9655 rm -rf conftest* 9920 rm -rf conftest*
9656 eval "ac_cv_func_msgget=yes" 9921 eval "ac_cv_func_msgget=yes"
9657 else 9922 else
9658 echo "configure: failed program was:" >&5 9923 echo "configure: failed program was:" >&5
9659 cat conftest.$ac_ext >&5 9924 cat conftest.$ac_ext >&5
9664 9929
9665 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 9930 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
9666 echo "$ac_t""yes" 1>&6 9931 echo "$ac_t""yes" 1>&6
9667 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 9932 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
9668 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 9933 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
9669 echo "configure:9670: checking for sys/ipc.h" >&5 9934 echo "configure:9935: checking for sys/ipc.h" >&5
9670 9935
9671 cat > conftest.$ac_ext <<EOF 9936 cat > conftest.$ac_ext <<EOF
9672 #line 9673 "configure" 9937 #line 9938 "configure"
9673 #include "confdefs.h" 9938 #include "confdefs.h"
9674 #include <sys/ipc.h> 9939 #include <sys/ipc.h>
9675 EOF 9940 EOF
9676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9677 { (eval echo configure:9678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9942 { (eval echo configure:9943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9678 ac_err=`grep -v '^ *+' conftest.out` 9943 ac_err=`grep -v '^ *+' conftest.out`
9679 if test -z "$ac_err"; then 9944 if test -z "$ac_err"; then
9680 rm -rf conftest* 9945 rm -rf conftest*
9681 eval "ac_cv_header_$ac_safe=yes" 9946 eval "ac_cv_header_$ac_safe=yes"
9682 else 9947 else
9689 rm -f conftest* 9954 rm -f conftest*
9690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9691 echo "$ac_t""yes" 1>&6 9956 echo "$ac_t""yes" 1>&6
9692 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 9957 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
9693 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 9958 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
9694 echo "configure:9695: checking for sys/msg.h" >&5 9959 echo "configure:9960: checking for sys/msg.h" >&5
9695 9960
9696 cat > conftest.$ac_ext <<EOF 9961 cat > conftest.$ac_ext <<EOF
9697 #line 9698 "configure" 9962 #line 9963 "configure"
9698 #include "confdefs.h" 9963 #include "confdefs.h"
9699 #include <sys/msg.h> 9964 #include <sys/msg.h>
9700 EOF 9965 EOF
9701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9702 { (eval echo configure:9703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9967 { (eval echo configure:9968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9703 ac_err=`grep -v '^ *+' conftest.out` 9968 ac_err=`grep -v '^ *+' conftest.out`
9704 if test -z "$ac_err"; then 9969 if test -z "$ac_err"; then
9705 rm -rf conftest* 9970 rm -rf conftest*
9706 eval "ac_cv_header_$ac_safe=yes" 9971 eval "ac_cv_header_$ac_safe=yes"
9707 else 9972 else
9735 fi 10000 fi
9736 10001
9737 10002
9738 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 10003 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
9739 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 10004 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
9740 echo "configure:9741: checking for dirent.h" >&5 10005 echo "configure:10006: checking for dirent.h" >&5
9741 10006
9742 cat > conftest.$ac_ext <<EOF 10007 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure" 10008 #line 10009 "configure"
9744 #include "confdefs.h" 10009 #include "confdefs.h"
9745 #include <dirent.h> 10010 #include <dirent.h>
9746 EOF 10011 EOF
9747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9748 { (eval echo configure:9749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10013 { (eval echo configure:10014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9749 ac_err=`grep -v '^ *+' conftest.out` 10014 ac_err=`grep -v '^ *+' conftest.out`
9750 if test -z "$ac_err"; then 10015 if test -z "$ac_err"; then
9751 rm -rf conftest* 10016 rm -rf conftest*
9752 eval "ac_cv_header_$ac_safe=yes" 10017 eval "ac_cv_header_$ac_safe=yes"
9753 else 10018 else
9770 10035
9771 else 10036 else
9772 echo "$ac_t""no" 1>&6 10037 echo "$ac_t""no" 1>&6
9773 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 10038 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
9774 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 10039 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
9775 echo "configure:9776: checking for sys/dir.h" >&5 10040 echo "configure:10041: checking for sys/dir.h" >&5
9776 10041
9777 cat > conftest.$ac_ext <<EOF 10042 cat > conftest.$ac_ext <<EOF
9778 #line 9779 "configure" 10043 #line 10044 "configure"
9779 #include "confdefs.h" 10044 #include "confdefs.h"
9780 #include <sys/dir.h> 10045 #include <sys/dir.h>
9781 EOF 10046 EOF
9782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9783 { (eval echo configure:9784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10048 { (eval echo configure:10049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9784 ac_err=`grep -v '^ *+' conftest.out` 10049 ac_err=`grep -v '^ *+' conftest.out`
9785 if test -z "$ac_err"; then 10050 if test -z "$ac_err"; then
9786 rm -rf conftest* 10051 rm -rf conftest*
9787 eval "ac_cv_header_$ac_safe=yes" 10052 eval "ac_cv_header_$ac_safe=yes"
9788 else 10053 else
9811 fi 10076 fi
9812 10077
9813 10078
9814 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 10079 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
9815 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 10080 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
9816 echo "configure:9817: checking for nlist.h" >&5 10081 echo "configure:10082: checking for nlist.h" >&5
9817 10082
9818 cat > conftest.$ac_ext <<EOF 10083 cat > conftest.$ac_ext <<EOF
9819 #line 9820 "configure" 10084 #line 10085 "configure"
9820 #include "confdefs.h" 10085 #include "confdefs.h"
9821 #include <nlist.h> 10086 #include <nlist.h>
9822 EOF 10087 EOF
9823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9824 { (eval echo configure:9825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10089 { (eval echo configure:10090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9825 ac_err=`grep -v '^ *+' conftest.out` 10090 ac_err=`grep -v '^ *+' conftest.out`
9826 if test -z "$ac_err"; then 10091 if test -z "$ac_err"; then
9827 rm -rf conftest* 10092 rm -rf conftest*
9828 eval "ac_cv_header_$ac_safe=yes" 10093 eval "ac_cv_header_$ac_safe=yes"
9829 else 10094 else
9849 fi 10114 fi
9850 10115
9851 10116
9852 10117
9853 echo "checking "for sound support"" 1>&6 10118 echo "checking "for sound support"" 1>&6
9854 echo "configure:9855: checking "for sound support"" >&5 10119 echo "configure:10120: checking "for sound support"" >&5
9855 case "$with_sound" in 10120 case "$with_sound" in
9856 native | both ) with_native_sound=yes;; 10121 native | both ) with_native_sound=yes;;
9857 nas | no ) with_native_sound=no;; 10122 nas | no ) with_native_sound=no;;
9858 esac 10123 esac
9859 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 10124 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
9860 10125
9861 if test "$with_native_sound" != "no"; then 10126 if test "$with_native_sound" != "no"; then
9862 if test -n "$native_sound_lib"; then 10127 if test -n "$native_sound_lib"; then
9863 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 10128 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
9864 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 10129 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
9865 echo "configure:9866: checking for multimedia/audio_device.h" >&5 10130 echo "configure:10131: checking for multimedia/audio_device.h" >&5
9866 10131
9867 cat > conftest.$ac_ext <<EOF 10132 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure" 10133 #line 10134 "configure"
9869 #include "confdefs.h" 10134 #include "confdefs.h"
9870 #include <multimedia/audio_device.h> 10135 #include <multimedia/audio_device.h>
9871 EOF 10136 EOF
9872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9873 { (eval echo configure:9874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10138 { (eval echo configure:10139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9874 ac_err=`grep -v '^ *+' conftest.out` 10139 ac_err=`grep -v '^ *+' conftest.out`
9875 if test -z "$ac_err"; then 10140 if test -z "$ac_err"; then
9876 rm -rf conftest* 10141 rm -rf conftest*
9877 eval "ac_cv_header_$ac_safe=yes" 10142 eval "ac_cv_header_$ac_safe=yes"
9878 else 10143 else
9916 case "$canonical" in 10181 case "$canonical" in
9917 *-sgi-* ) 10182 *-sgi-* )
9918 if test -z "$native_sound_lib"; then 10183 if test -z "$native_sound_lib"; then
9919 10184
9920 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 10185 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
9921 echo "configure:9922: checking for ALopenport in -laudio" >&5 10186 echo "configure:10187: checking for ALopenport in -laudio" >&5
9922 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 10187 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
9923 10188
9924 xe_check_libs=" -laudio " 10189 xe_check_libs=" -laudio "
9925 cat > conftest.$ac_ext <<EOF 10190 cat > conftest.$ac_ext <<EOF
9926 #line 9927 "configure" 10191 #line 10192 "configure"
9927 #include "confdefs.h" 10192 #include "confdefs.h"
9928 /* Override any gcc2 internal prototype to avoid an error. */ 10193 /* Override any gcc2 internal prototype to avoid an error. */
9929 /* We use char because int might match the return type of a gcc2 10194 /* We use char because int might match the return type of a gcc2
9930 builtin and then its argument prototype would still apply. */ 10195 builtin and then its argument prototype would still apply. */
9931 char ALopenport(); 10196 char ALopenport();
9932 10197
9933 int main() { 10198 int main() {
9934 ALopenport() 10199 ALopenport()
9935 ; return 0; } 10200 ; return 0; }
9936 EOF 10201 EOF
9937 if { (eval echo configure:9938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10202 if { (eval echo configure:10203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9938 rm -rf conftest* 10203 rm -rf conftest*
9939 eval "ac_cv_lib_$ac_lib_var=yes" 10204 eval "ac_cv_lib_$ac_lib_var=yes"
9940 else 10205 else
9941 echo "configure: failed program was:" >&5 10206 echo "configure: failed program was:" >&5
9942 cat conftest.$ac_ext >&5 10207 cat conftest.$ac_ext >&5
9963 fi ;; 10228 fi ;;
9964 hppa*-hp-hpux* ) 10229 hppa*-hp-hpux* )
9965 if test -z "$native_sound_lib"; then 10230 if test -z "$native_sound_lib"; then
9966 10231
9967 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 10232 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
9968 echo "configure:9969: checking for AOpenAudio in -lAlib" >&5 10233 echo "configure:10234: checking for AOpenAudio in -lAlib" >&5
9969 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 10234 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
9970 10235
9971 xe_check_libs=" -lAlib " 10236 xe_check_libs=" -lAlib "
9972 cat > conftest.$ac_ext <<EOF 10237 cat > conftest.$ac_ext <<EOF
9973 #line 9974 "configure" 10238 #line 10239 "configure"
9974 #include "confdefs.h" 10239 #include "confdefs.h"
9975 /* Override any gcc2 internal prototype to avoid an error. */ 10240 /* Override any gcc2 internal prototype to avoid an error. */
9976 /* We use char because int might match the return type of a gcc2 10241 /* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */ 10242 builtin and then its argument prototype would still apply. */
9978 char AOpenAudio(); 10243 char AOpenAudio();
9979 10244
9980 int main() { 10245 int main() {
9981 AOpenAudio() 10246 AOpenAudio()
9982 ; return 0; } 10247 ; return 0; }
9983 EOF 10248 EOF
9984 if { (eval echo configure:9985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10249 if { (eval echo configure:10250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9985 rm -rf conftest* 10250 rm -rf conftest*
9986 eval "ac_cv_lib_$ac_lib_var=yes" 10251 eval "ac_cv_lib_$ac_lib_var=yes"
9987 else 10252 else
9988 echo "configure: failed program was:" >&5 10253 echo "configure: failed program was:" >&5
9989 cat conftest.$ac_ext >&5 10254 cat conftest.$ac_ext >&5
10017 10282
10018 if test -z "$sound_found"; then 10283 if test -z "$sound_found"; then
10019 for dir in "machine" "sys" "linux"; do 10284 for dir in "machine" "sys" "linux"; do
10020 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 10285 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10021 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 10286 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10022 echo "configure:10023: checking for ${dir}/soundcard.h" >&5 10287 echo "configure:10288: checking for ${dir}/soundcard.h" >&5
10023 10288
10024 cat > conftest.$ac_ext <<EOF 10289 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure" 10290 #line 10291 "configure"
10026 #include "confdefs.h" 10291 #include "confdefs.h"
10027 #include <${dir}/soundcard.h> 10292 #include <${dir}/soundcard.h>
10028 EOF 10293 EOF
10029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10030 { (eval echo configure:10031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10295 { (eval echo configure:10296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10031 ac_err=`grep -v '^ *+' conftest.out` 10296 ac_err=`grep -v '^ *+' conftest.out`
10032 if test -z "$ac_err"; then 10297 if test -z "$ac_err"; then
10033 rm -rf conftest* 10298 rm -rf conftest*
10034 eval "ac_cv_header_$ac_safe=yes" 10299 eval "ac_cv_header_$ac_safe=yes"
10035 else 10300 else
10095 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 10360 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10096 echo " xemacs will be linked with \"nas.o\"" 10361 echo " xemacs will be linked with \"nas.o\""
10097 fi 10362 fi
10098 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 10363 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10099 cat > conftest.$ac_ext <<EOF 10364 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure" 10365 #line 10366 "configure"
10101 #include "confdefs.h" 10366 #include "confdefs.h"
10102 #include <audio/Xtutil.h> 10367 #include <audio/Xtutil.h>
10103 EOF 10368 EOF
10104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10105 egrep "AuXtErrorJump" >/dev/null 2>&1; then 10370 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10122 10387
10123 test -z "$with_tty" && with_tty=yes 10388 test -z "$with_tty" && with_tty=yes
10124 10389
10125 if test "$with_tty" = "yes" ; then 10390 if test "$with_tty" = "yes" ; then
10126 echo "checking for TTY-related features" 1>&6 10391 echo "checking for TTY-related features" 1>&6
10127 echo "configure:10128: checking for TTY-related features" >&5 10392 echo "configure:10393: checking for TTY-related features" >&5
10128 { test "$extra_verbose" = "yes" && cat << \EOF 10393 { test "$extra_verbose" = "yes" && cat << \EOF
10129 Defining HAVE_TTY 10394 Defining HAVE_TTY
10130 EOF 10395 EOF
10131 cat >> confdefs.h <<\EOF 10396 cat >> confdefs.h <<\EOF
10132 #define HAVE_TTY 1 10397 #define HAVE_TTY 1
10138 fi 10403 fi
10139 10404
10140 if test -z "$with_ncurses"; then 10405 if test -z "$with_ncurses"; then
10141 10406
10142 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 10407 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10143 echo "configure:10144: checking for tgetent in -lncurses" >&5 10408 echo "configure:10409: checking for tgetent in -lncurses" >&5
10144 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 10409 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10145 10410
10146 xe_check_libs=" -lncurses " 10411 xe_check_libs=" -lncurses "
10147 cat > conftest.$ac_ext <<EOF 10412 cat > conftest.$ac_ext <<EOF
10148 #line 10149 "configure" 10413 #line 10414 "configure"
10149 #include "confdefs.h" 10414 #include "confdefs.h"
10150 /* Override any gcc2 internal prototype to avoid an error. */ 10415 /* Override any gcc2 internal prototype to avoid an error. */
10151 /* We use char because int might match the return type of a gcc2 10416 /* We use char because int might match the return type of a gcc2
10152 builtin and then its argument prototype would still apply. */ 10417 builtin and then its argument prototype would still apply. */
10153 char tgetent(); 10418 char tgetent();
10154 10419
10155 int main() { 10420 int main() {
10156 tgetent() 10421 tgetent()
10157 ; return 0; } 10422 ; return 0; }
10158 EOF 10423 EOF
10159 if { (eval echo configure:10160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10424 if { (eval echo configure:10425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10160 rm -rf conftest* 10425 rm -rf conftest*
10161 eval "ac_cv_lib_$ac_lib_var=yes" 10426 eval "ac_cv_lib_$ac_lib_var=yes"
10162 else 10427 else
10163 echo "configure: failed program was:" >&5 10428 echo "configure: failed program was:" >&5
10164 cat conftest.$ac_ext >&5 10429 cat conftest.$ac_ext >&5
10187 EOF 10452 EOF
10188 } 10453 }
10189 10454
10190 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10455 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10191 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10456 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10192 echo "configure:10193: checking for ncurses/curses.h" >&5 10457 echo "configure:10458: checking for ncurses/curses.h" >&5
10193 10458
10194 cat > conftest.$ac_ext <<EOF 10459 cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure" 10460 #line 10461 "configure"
10196 #include "confdefs.h" 10461 #include "confdefs.h"
10197 #include <ncurses/curses.h> 10462 #include <ncurses/curses.h>
10198 EOF 10463 EOF
10199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10200 { (eval echo configure:10201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10465 { (eval echo configure:10466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10201 ac_err=`grep -v '^ *+' conftest.out` 10466 ac_err=`grep -v '^ *+' conftest.out`
10202 if test -z "$ac_err"; then 10467 if test -z "$ac_err"; then
10203 rm -rf conftest* 10468 rm -rf conftest*
10204 eval "ac_cv_header_$ac_safe=yes" 10469 eval "ac_cv_header_$ac_safe=yes"
10205 else 10470 else
10217 echo "$ac_t""no" 1>&6 10482 echo "$ac_t""no" 1>&6
10218 fi 10483 fi
10219 10484
10220 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 10485 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10221 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 10486 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10222 echo "configure:10223: checking for ncurses/term.h" >&5 10487 echo "configure:10488: checking for ncurses/term.h" >&5
10223 10488
10224 cat > conftest.$ac_ext <<EOF 10489 cat > conftest.$ac_ext <<EOF
10225 #line 10226 "configure" 10490 #line 10491 "configure"
10226 #include "confdefs.h" 10491 #include "confdefs.h"
10227 #include <ncurses/term.h> 10492 #include <ncurses/term.h>
10228 EOF 10493 EOF
10229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10230 { (eval echo configure:10231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10495 { (eval echo configure:10496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10231 ac_err=`grep -v '^ *+' conftest.out` 10496 ac_err=`grep -v '^ *+' conftest.out`
10232 if test -z "$ac_err"; then 10497 if test -z "$ac_err"; then
10233 rm -rf conftest* 10498 rm -rf conftest*
10234 eval "ac_cv_header_$ac_safe=yes" 10499 eval "ac_cv_header_$ac_safe=yes"
10235 else 10500 else
10255 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 10520 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10256 save_c_switch_site="$c_switch_site" 10521 save_c_switch_site="$c_switch_site"
10257 c_switch_site="$c_switch_site -I/usr/include/ncurses" 10522 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10258 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10523 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10259 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10524 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10260 echo "configure:10261: checking for ncurses/curses.h" >&5 10525 echo "configure:10526: checking for ncurses/curses.h" >&5
10261 10526
10262 cat > conftest.$ac_ext <<EOF 10527 cat > conftest.$ac_ext <<EOF
10263 #line 10264 "configure" 10528 #line 10529 "configure"
10264 #include "confdefs.h" 10529 #include "confdefs.h"
10265 #include <ncurses/curses.h> 10530 #include <ncurses/curses.h>
10266 EOF 10531 EOF
10267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10268 { (eval echo configure:10269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10533 { (eval echo configure:10534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10269 ac_err=`grep -v '^ *+' conftest.out` 10534 ac_err=`grep -v '^ *+' conftest.out`
10270 if test -z "$ac_err"; then 10535 if test -z "$ac_err"; then
10271 rm -rf conftest* 10536 rm -rf conftest*
10272 eval "ac_cv_header_$ac_safe=yes" 10537 eval "ac_cv_header_$ac_safe=yes"
10273 else 10538 else
10298 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10563 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10299 else 10564 else
10300 for lib in curses termlib termcap; do 10565 for lib in curses termlib termcap; do
10301 10566
10302 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 10567 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10303 echo "configure:10304: checking for tgetent in -l$lib" >&5 10568 echo "configure:10569: checking for tgetent in -l$lib" >&5
10304 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 10569 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10305 10570
10306 xe_check_libs=" -l$lib " 10571 xe_check_libs=" -l$lib "
10307 cat > conftest.$ac_ext <<EOF 10572 cat > conftest.$ac_ext <<EOF
10308 #line 10309 "configure" 10573 #line 10574 "configure"
10309 #include "confdefs.h" 10574 #include "confdefs.h"
10310 /* Override any gcc2 internal prototype to avoid an error. */ 10575 /* Override any gcc2 internal prototype to avoid an error. */
10311 /* We use char because int might match the return type of a gcc2 10576 /* We use char because int might match the return type of a gcc2
10312 builtin and then its argument prototype would still apply. */ 10577 builtin and then its argument prototype would still apply. */
10313 char tgetent(); 10578 char tgetent();
10314 10579
10315 int main() { 10580 int main() {
10316 tgetent() 10581 tgetent()
10317 ; return 0; } 10582 ; return 0; }
10318 EOF 10583 EOF
10319 if { (eval echo configure:10320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10584 if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10320 rm -rf conftest* 10585 rm -rf conftest*
10321 eval "ac_cv_lib_$ac_lib_var=yes" 10586 eval "ac_cv_lib_$ac_lib_var=yes"
10322 else 10587 else
10323 echo "configure: failed program was:" >&5 10588 echo "configure: failed program was:" >&5
10324 cat conftest.$ac_ext >&5 10589 cat conftest.$ac_ext >&5
10345 if test -n "$libs_termcap"; then 10610 if test -n "$libs_termcap"; then
10346 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10611 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10347 else 10612 else
10348 10613
10349 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 10614 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
10350 echo "configure:10351: checking for tgetent in -lcurses" >&5 10615 echo "configure:10616: checking for tgetent in -lcurses" >&5
10351 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 10616 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
10352 10617
10353 xe_check_libs=" -lcurses " 10618 xe_check_libs=" -lcurses "
10354 cat > conftest.$ac_ext <<EOF 10619 cat > conftest.$ac_ext <<EOF
10355 #line 10356 "configure" 10620 #line 10621 "configure"
10356 #include "confdefs.h" 10621 #include "confdefs.h"
10357 /* Override any gcc2 internal prototype to avoid an error. */ 10622 /* Override any gcc2 internal prototype to avoid an error. */
10358 /* We use char because int might match the return type of a gcc2 10623 /* We use char because int might match the return type of a gcc2
10359 builtin and then its argument prototype would still apply. */ 10624 builtin and then its argument prototype would still apply. */
10360 char tgetent(); 10625 char tgetent();
10361 10626
10362 int main() { 10627 int main() {
10363 tgetent() 10628 tgetent()
10364 ; return 0; } 10629 ; return 0; }
10365 EOF 10630 EOF
10366 if { (eval echo configure:10367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10631 if { (eval echo configure:10632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10367 rm -rf conftest* 10632 rm -rf conftest*
10368 eval "ac_cv_lib_$ac_lib_var=yes" 10633 eval "ac_cv_lib_$ac_lib_var=yes"
10369 else 10634 else
10370 echo "configure: failed program was:" >&5 10635 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5 10636 cat conftest.$ac_ext >&5
10379 echo "$ac_t""yes" 1>&6 10644 echo "$ac_t""yes" 1>&6
10380 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 10645 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
10381 else 10646 else
10382 echo "$ac_t""no" 1>&6 10647 echo "$ac_t""no" 1>&6
10383 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 10648 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
10384 echo "configure:10385: checking for tgetent in -ltermcap" >&5 10649 echo "configure:10650: checking for tgetent in -ltermcap" >&5
10385 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 10650 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
10386 10651
10387 xe_check_libs=" -ltermcap " 10652 xe_check_libs=" -ltermcap "
10388 cat > conftest.$ac_ext <<EOF 10653 cat > conftest.$ac_ext <<EOF
10389 #line 10390 "configure" 10654 #line 10655 "configure"
10390 #include "confdefs.h" 10655 #include "confdefs.h"
10391 /* Override any gcc2 internal prototype to avoid an error. */ 10656 /* Override any gcc2 internal prototype to avoid an error. */
10392 /* We use char because int might match the return type of a gcc2 10657 /* We use char because int might match the return type of a gcc2
10393 builtin and then its argument prototype would still apply. */ 10658 builtin and then its argument prototype would still apply. */
10394 char tgetent(); 10659 char tgetent();
10395 10660
10396 int main() { 10661 int main() {
10397 tgetent() 10662 tgetent()
10398 ; return 0; } 10663 ; return 0; }
10399 EOF 10664 EOF
10400 if { (eval echo configure:10401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10665 if { (eval echo configure:10666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10401 rm -rf conftest* 10666 rm -rf conftest*
10402 eval "ac_cv_lib_$ac_lib_var=yes" 10667 eval "ac_cv_lib_$ac_lib_var=yes"
10403 else 10668 else
10404 echo "configure: failed program was:" >&5 10669 echo "configure: failed program was:" >&5
10405 cat conftest.$ac_ext >&5 10670 cat conftest.$ac_ext >&5
10443 } 10708 }
10444 10709
10445 10710
10446 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 10711 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
10447 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 10712 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
10448 echo "configure:10449: checking for gpm.h" >&5 10713 echo "configure:10714: checking for gpm.h" >&5
10449 10714
10450 cat > conftest.$ac_ext <<EOF 10715 cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure" 10716 #line 10717 "configure"
10452 #include "confdefs.h" 10717 #include "confdefs.h"
10453 #include <gpm.h> 10718 #include <gpm.h>
10454 EOF 10719 EOF
10455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10456 { (eval echo configure:10457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10721 { (eval echo configure:10722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10457 ac_err=`grep -v '^ *+' conftest.out` 10722 ac_err=`grep -v '^ *+' conftest.out`
10458 if test -z "$ac_err"; then 10723 if test -z "$ac_err"; then
10459 rm -rf conftest* 10724 rm -rf conftest*
10460 eval "ac_cv_header_$ac_safe=yes" 10725 eval "ac_cv_header_$ac_safe=yes"
10461 else 10726 else
10474 with_gpm=no 10739 with_gpm=no
10475 fi 10740 fi
10476 } 10741 }
10477 test -z "$with_gpm" && { 10742 test -z "$with_gpm" && {
10478 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 10743 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
10479 echo "configure:10480: checking for Gpm_Open in -lgpm" >&5 10744 echo "configure:10745: checking for Gpm_Open in -lgpm" >&5
10480 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 10745 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
10481 10746
10482 xe_check_libs=" -lgpm " 10747 xe_check_libs=" -lgpm "
10483 cat > conftest.$ac_ext <<EOF 10748 cat > conftest.$ac_ext <<EOF
10484 #line 10485 "configure" 10749 #line 10750 "configure"
10485 #include "confdefs.h" 10750 #include "confdefs.h"
10486 /* Override any gcc2 internal prototype to avoid an error. */ 10751 /* Override any gcc2 internal prototype to avoid an error. */
10487 /* We use char because int might match the return type of a gcc2 10752 /* We use char because int might match the return type of a gcc2
10488 builtin and then its argument prototype would still apply. */ 10753 builtin and then its argument prototype would still apply. */
10489 char Gpm_Open(); 10754 char Gpm_Open();
10490 10755
10491 int main() { 10756 int main() {
10492 Gpm_Open() 10757 Gpm_Open()
10493 ; return 0; } 10758 ; return 0; }
10494 EOF 10759 EOF
10495 if { (eval echo configure:10496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10760 if { (eval echo configure:10761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10496 rm -rf conftest* 10761 rm -rf conftest*
10497 eval "ac_cv_lib_$ac_lib_var=yes" 10762 eval "ac_cv_lib_$ac_lib_var=yes"
10498 else 10763 else
10499 echo "configure: failed program was:" >&5 10764 echo "configure: failed program was:" >&5
10500 cat conftest.$ac_ext >&5 10765 cat conftest.$ac_ext >&5
10539 echo " xemacs will be linked with \"event-unixoid.o\"" 10804 echo " xemacs will be linked with \"event-unixoid.o\""
10540 fi 10805 fi
10541 10806
10542 10807
10543 echo "checking for database support" 1>&6 10808 echo "checking for database support" 1>&6
10544 echo "configure:10545: checking for database support" >&5 10809 echo "configure:10810: checking for database support" >&5
10545 10810
10546 if test "$with_database_gnudbm" != "no"; then 10811 if test "$with_database_gnudbm" != "no"; then
10547 for ac_hdr in ndbm.h 10812 for ac_hdr in ndbm.h
10548 do 10813 do
10549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10551 echo "configure:10552: checking for $ac_hdr" >&5 10816 echo "configure:10817: checking for $ac_hdr" >&5
10552 10817
10553 cat > conftest.$ac_ext <<EOF 10818 cat > conftest.$ac_ext <<EOF
10554 #line 10555 "configure" 10819 #line 10820 "configure"
10555 #include "confdefs.h" 10820 #include "confdefs.h"
10556 #include <$ac_hdr> 10821 #include <$ac_hdr>
10557 EOF 10822 EOF
10558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10559 { (eval echo configure:10560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10824 { (eval echo configure:10825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10560 ac_err=`grep -v '^ *+' conftest.out` 10825 ac_err=`grep -v '^ *+' conftest.out`
10561 if test -z "$ac_err"; then 10826 if test -z "$ac_err"; then
10562 rm -rf conftest* 10827 rm -rf conftest*
10563 eval "ac_cv_header_$ac_safe=yes" 10828 eval "ac_cv_header_$ac_safe=yes"
10564 else 10829 else
10586 done 10851 done
10587 10852
10588 if test "$have_ndbm_h" = "yes"; then 10853 if test "$have_ndbm_h" = "yes"; then
10589 10854
10590 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 10855 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
10591 echo "configure:10592: checking for dbm_open in -lgdbm" >&5 10856 echo "configure:10857: checking for dbm_open in -lgdbm" >&5
10592 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 10857 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
10593 10858
10594 xe_check_libs=" -lgdbm " 10859 xe_check_libs=" -lgdbm "
10595 cat > conftest.$ac_ext <<EOF 10860 cat > conftest.$ac_ext <<EOF
10596 #line 10597 "configure" 10861 #line 10862 "configure"
10597 #include "confdefs.h" 10862 #include "confdefs.h"
10598 /* Override any gcc2 internal prototype to avoid an error. */ 10863 /* Override any gcc2 internal prototype to avoid an error. */
10599 /* We use char because int might match the return type of a gcc2 10864 /* We use char because int might match the return type of a gcc2
10600 builtin and then its argument prototype would still apply. */ 10865 builtin and then its argument prototype would still apply. */
10601 char dbm_open(); 10866 char dbm_open();
10602 10867
10603 int main() { 10868 int main() {
10604 dbm_open() 10869 dbm_open()
10605 ; return 0; } 10870 ; return 0; }
10606 EOF 10871 EOF
10607 if { (eval echo configure:10608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10872 if { (eval echo configure:10873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10608 rm -rf conftest* 10873 rm -rf conftest*
10609 eval "ac_cv_lib_$ac_lib_var=yes" 10874 eval "ac_cv_lib_$ac_lib_var=yes"
10610 else 10875 else
10611 echo "configure: failed program was:" >&5 10876 echo "configure: failed program was:" >&5
10612 cat conftest.$ac_ext >&5 10877 cat conftest.$ac_ext >&5
10625 10890
10626 10891
10627 fi 10892 fi
10628 if test "$with_database_gnudbm" != "yes"; then 10893 if test "$with_database_gnudbm" != "yes"; then
10629 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 10894 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
10630 echo "configure:10631: checking for dbm_open" >&5 10895 echo "configure:10896: checking for dbm_open" >&5
10631 10896
10632 cat > conftest.$ac_ext <<EOF 10897 cat > conftest.$ac_ext <<EOF
10633 #line 10634 "configure" 10898 #line 10899 "configure"
10634 #include "confdefs.h" 10899 #include "confdefs.h"
10635 /* System header to define __stub macros and hopefully few prototypes, 10900 /* System header to define __stub macros and hopefully few prototypes,
10636 which can conflict with char dbm_open(); below. */ 10901 which can conflict with char dbm_open(); below. */
10637 #include <assert.h> 10902 #include <assert.h>
10638 /* Override any gcc2 internal prototype to avoid an error. */ 10903 /* Override any gcc2 internal prototype to avoid an error. */
10651 dbm_open(); 10916 dbm_open();
10652 #endif 10917 #endif
10653 10918
10654 ; return 0; } 10919 ; return 0; }
10655 EOF 10920 EOF
10656 if { (eval echo configure:10657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10921 if { (eval echo configure:10922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10657 rm -rf conftest* 10922 rm -rf conftest*
10658 eval "ac_cv_func_dbm_open=yes" 10923 eval "ac_cv_func_dbm_open=yes"
10659 else 10924 else
10660 echo "configure: failed program was:" >&5 10925 echo "configure: failed program was:" >&5
10661 cat conftest.$ac_ext >&5 10926 cat conftest.$ac_ext >&5
10687 fi 10952 fi
10688 fi 10953 fi
10689 10954
10690 if test "$with_database_dbm" != "no"; then 10955 if test "$with_database_dbm" != "no"; then
10691 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 10956 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
10692 echo "configure:10693: checking for dbm_open" >&5 10957 echo "configure:10958: checking for dbm_open" >&5
10693 10958
10694 cat > conftest.$ac_ext <<EOF 10959 cat > conftest.$ac_ext <<EOF
10695 #line 10696 "configure" 10960 #line 10961 "configure"
10696 #include "confdefs.h" 10961 #include "confdefs.h"
10697 /* System header to define __stub macros and hopefully few prototypes, 10962 /* System header to define __stub macros and hopefully few prototypes,
10698 which can conflict with char dbm_open(); below. */ 10963 which can conflict with char dbm_open(); below. */
10699 #include <assert.h> 10964 #include <assert.h>
10700 /* Override any gcc2 internal prototype to avoid an error. */ 10965 /* Override any gcc2 internal prototype to avoid an error. */
10713 dbm_open(); 10978 dbm_open();
10714 #endif 10979 #endif
10715 10980
10716 ; return 0; } 10981 ; return 0; }
10717 EOF 10982 EOF
10718 if { (eval echo configure:10719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10983 if { (eval echo configure:10984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10719 rm -rf conftest* 10984 rm -rf conftest*
10720 eval "ac_cv_func_dbm_open=yes" 10985 eval "ac_cv_func_dbm_open=yes"
10721 else 10986 else
10722 echo "configure: failed program was:" >&5 10987 echo "configure: failed program was:" >&5
10723 cat conftest.$ac_ext >&5 10988 cat conftest.$ac_ext >&5
10734 fi 10999 fi
10735 11000
10736 if test "$need_libdbm" != "no"; then 11001 if test "$need_libdbm" != "no"; then
10737 11002
10738 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 11003 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
10739 echo "configure:10740: checking for dbm_open in -ldbm" >&5 11004 echo "configure:11005: checking for dbm_open in -ldbm" >&5
10740 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 11005 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
10741 11006
10742 xe_check_libs=" -ldbm " 11007 xe_check_libs=" -ldbm "
10743 cat > conftest.$ac_ext <<EOF 11008 cat > conftest.$ac_ext <<EOF
10744 #line 10745 "configure" 11009 #line 11010 "configure"
10745 #include "confdefs.h" 11010 #include "confdefs.h"
10746 /* Override any gcc2 internal prototype to avoid an error. */ 11011 /* Override any gcc2 internal prototype to avoid an error. */
10747 /* We use char because int might match the return type of a gcc2 11012 /* We use char because int might match the return type of a gcc2
10748 builtin and then its argument prototype would still apply. */ 11013 builtin and then its argument prototype would still apply. */
10749 char dbm_open(); 11014 char dbm_open();
10750 11015
10751 int main() { 11016 int main() {
10752 dbm_open() 11017 dbm_open()
10753 ; return 0; } 11018 ; return 0; }
10754 EOF 11019 EOF
10755 if { (eval echo configure:10756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11020 if { (eval echo configure:11021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10756 rm -rf conftest* 11021 rm -rf conftest*
10757 eval "ac_cv_lib_$ac_lib_var=yes" 11022 eval "ac_cv_lib_$ac_lib_var=yes"
10758 else 11023 else
10759 echo "configure: failed program was:" >&5 11024 echo "configure: failed program was:" >&5
10760 cat conftest.$ac_ext >&5 11025 cat conftest.$ac_ext >&5
10787 fi 11052 fi
10788 fi 11053 fi
10789 11054
10790 if test "$with_database_berkdb" != "no"; then 11055 if test "$with_database_berkdb" != "no"; then
10791 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 11056 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
10792 echo "configure:10793: checking for Berkeley db.h" >&5 11057 echo "configure:11058: checking for Berkeley db.h" >&5
10793 for path in "db/db.h" "db.h"; do 11058 for path in "db/db.h" "db.h"; do
10794 cat > conftest.$ac_ext <<EOF 11059 cat > conftest.$ac_ext <<EOF
10795 #line 10796 "configure" 11060 #line 11061 "configure"
10796 #include "confdefs.h" 11061 #include "confdefs.h"
10797 #ifdef HAVE_INTTYPES_H 11062 #ifdef HAVE_INTTYPES_H
10798 #define __BIT_TYPES_DEFINED__ 11063 #define __BIT_TYPES_DEFINED__
10799 #include <inttypes.h> 11064 #include <inttypes.h>
10800 typedef uint8_t u_int8_t; 11065 typedef uint8_t u_int8_t;
10808 11073
10809 int main() { 11074 int main() {
10810 11075
10811 ; return 0; } 11076 ; return 0; }
10812 EOF 11077 EOF
10813 if { (eval echo configure:10814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11078 if { (eval echo configure:11079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10814 rm -rf conftest* 11079 rm -rf conftest*
10815 db_h_path="$path"; break 11080 db_h_path="$path"; break
10816 else 11081 else
10817 echo "configure: failed program was:" >&5 11082 echo "configure: failed program was:" >&5
10818 cat conftest.$ac_ext >&5 11083 cat conftest.$ac_ext >&5
10824 else echo "$ac_t""$db_h_path" 1>&6 11089 else echo "$ac_t""$db_h_path" 1>&6
10825 fi 11090 fi
10826 11091
10827 if test "$with_database_berkdb" != "no"; then 11092 if test "$with_database_berkdb" != "no"; then
10828 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 11093 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
10829 echo "configure:10830: checking for Berkeley DB version" >&5 11094 echo "configure:11095: checking for Berkeley DB version" >&5
10830 cat > conftest.$ac_ext <<EOF 11095 cat > conftest.$ac_ext <<EOF
10831 #line 10832 "configure" 11096 #line 11097 "configure"
10832 #include "confdefs.h" 11097 #include "confdefs.h"
10833 #include <$db_h_path> 11098 #include <$db_h_path>
10834 #if DB_VERSION_MAJOR > 1 11099 #if DB_VERSION_MAJOR > 1
10835 yes 11100 yes
10836 #endif 11101 #endif
10845 echo "$ac_t""1" 1>&6; dbfunc=dbopen 11110 echo "$ac_t""1" 1>&6; dbfunc=dbopen
10846 fi 11111 fi
10847 rm -f conftest* 11112 rm -f conftest*
10848 11113
10849 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 11114 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
10850 echo "configure:10851: checking for $dbfunc" >&5 11115 echo "configure:11116: checking for $dbfunc" >&5
10851 11116
10852 cat > conftest.$ac_ext <<EOF 11117 cat > conftest.$ac_ext <<EOF
10853 #line 10854 "configure" 11118 #line 11119 "configure"
10854 #include "confdefs.h" 11119 #include "confdefs.h"
10855 /* System header to define __stub macros and hopefully few prototypes, 11120 /* System header to define __stub macros and hopefully few prototypes,
10856 which can conflict with char $dbfunc(); below. */ 11121 which can conflict with char $dbfunc(); below. */
10857 #include <assert.h> 11122 #include <assert.h>
10858 /* Override any gcc2 internal prototype to avoid an error. */ 11123 /* Override any gcc2 internal prototype to avoid an error. */
10871 $dbfunc(); 11136 $dbfunc();
10872 #endif 11137 #endif
10873 11138
10874 ; return 0; } 11139 ; return 0; }
10875 EOF 11140 EOF
10876 if { (eval echo configure:10877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11141 if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10877 rm -rf conftest* 11142 rm -rf conftest*
10878 eval "ac_cv_func_$dbfunc=yes" 11143 eval "ac_cv_func_$dbfunc=yes"
10879 else 11144 else
10880 echo "configure: failed program was:" >&5 11145 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5 11146 cat conftest.$ac_ext >&5
10890 else 11155 else
10891 echo "$ac_t""no" 1>&6 11156 echo "$ac_t""no" 1>&6
10892 11157
10893 11158
10894 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 11159 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
10895 echo "configure:10896: checking for $dbfunc in -ldb" >&5 11160 echo "configure:11161: checking for $dbfunc in -ldb" >&5
10896 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 11161 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
10897 11162
10898 xe_check_libs=" -ldb " 11163 xe_check_libs=" -ldb "
10899 cat > conftest.$ac_ext <<EOF 11164 cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure" 11165 #line 11166 "configure"
10901 #include "confdefs.h" 11166 #include "confdefs.h"
10902 /* Override any gcc2 internal prototype to avoid an error. */ 11167 /* Override any gcc2 internal prototype to avoid an error. */
10903 /* We use char because int might match the return type of a gcc2 11168 /* We use char because int might match the return type of a gcc2
10904 builtin and then its argument prototype would still apply. */ 11169 builtin and then its argument prototype would still apply. */
10905 char $dbfunc(); 11170 char $dbfunc();
10906 11171
10907 int main() { 11172 int main() {
10908 $dbfunc() 11173 $dbfunc()
10909 ; return 0; } 11174 ; return 0; }
10910 EOF 11175 EOF
10911 if { (eval echo configure:10912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11176 if { (eval echo configure:11177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10912 rm -rf conftest* 11177 rm -rf conftest*
10913 eval "ac_cv_lib_$ac_lib_var=yes" 11178 eval "ac_cv_lib_$ac_lib_var=yes"
10914 else 11179 else
10915 echo "configure: failed program was:" >&5 11180 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5 11181 cat conftest.$ac_ext >&5
10970 fi 11235 fi
10971 11236
10972 if test "$with_socks" = "yes"; then 11237 if test "$with_socks" = "yes"; then
10973 11238
10974 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 11239 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
10975 echo "configure:10976: checking for SOCKSinit in -lsocks" >&5 11240 echo "configure:11241: checking for SOCKSinit in -lsocks" >&5
10976 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 11241 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
10977 11242
10978 xe_check_libs=" -lsocks " 11243 xe_check_libs=" -lsocks "
10979 cat > conftest.$ac_ext <<EOF 11244 cat > conftest.$ac_ext <<EOF
10980 #line 10981 "configure" 11245 #line 11246 "configure"
10981 #include "confdefs.h" 11246 #include "confdefs.h"
10982 /* Override any gcc2 internal prototype to avoid an error. */ 11247 /* Override any gcc2 internal prototype to avoid an error. */
10983 /* We use char because int might match the return type of a gcc2 11248 /* We use char because int might match the return type of a gcc2
10984 builtin and then its argument prototype would still apply. */ 11249 builtin and then its argument prototype would still apply. */
10985 char SOCKSinit(); 11250 char SOCKSinit();
10986 11251
10987 int main() { 11252 int main() {
10988 SOCKSinit() 11253 SOCKSinit()
10989 ; return 0; } 11254 ; return 0; }
10990 EOF 11255 EOF
10991 if { (eval echo configure:10992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11256 if { (eval echo configure:11257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10992 rm -rf conftest* 11257 rm -rf conftest*
10993 eval "ac_cv_lib_$ac_lib_var=yes" 11258 eval "ac_cv_lib_$ac_lib_var=yes"
10994 else 11259 else
10995 echo "configure: failed program was:" >&5 11260 echo "configure: failed program was:" >&5
10996 cat conftest.$ac_ext >&5 11261 cat conftest.$ac_ext >&5
11043 11308
11044 for ac_hdr in dlfcn.h 11309 for ac_hdr in dlfcn.h
11045 do 11310 do
11046 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11047 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11048 echo "configure:11049: checking for $ac_hdr" >&5 11313 echo "configure:11314: checking for $ac_hdr" >&5
11049 11314
11050 cat > conftest.$ac_ext <<EOF 11315 cat > conftest.$ac_ext <<EOF
11051 #line 11052 "configure" 11316 #line 11317 "configure"
11052 #include "confdefs.h" 11317 #include "confdefs.h"
11053 #include <$ac_hdr> 11318 #include <$ac_hdr>
11054 EOF 11319 EOF
11055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11056 { (eval echo configure:11057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11321 { (eval echo configure:11322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11057 ac_err=`grep -v '^ *+' conftest.out` 11322 ac_err=`grep -v '^ *+' conftest.out`
11058 if test -z "$ac_err"; then 11323 if test -z "$ac_err"; then
11059 rm -rf conftest* 11324 rm -rf conftest*
11060 eval "ac_cv_header_$ac_safe=yes" 11325 eval "ac_cv_header_$ac_safe=yes"
11061 else 11326 else
11082 fi 11347 fi
11083 done 11348 done
11084 11349
11085 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11350 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11086 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11351 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11087 echo "configure:11088: checking for dlopen in -ldl" >&5 11352 echo "configure:11353: checking for dlopen in -ldl" >&5
11088 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11353 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11089 11354
11090 xe_check_libs=" -ldl " 11355 xe_check_libs=" -ldl "
11091 cat > conftest.$ac_ext <<EOF 11356 cat > conftest.$ac_ext <<EOF
11092 #line 11093 "configure" 11357 #line 11358 "configure"
11093 #include "confdefs.h" 11358 #include "confdefs.h"
11094 /* Override any gcc2 internal prototype to avoid an error. */ 11359 /* Override any gcc2 internal prototype to avoid an error. */
11095 /* We use char because int might match the return type of a gcc2 11360 /* We use char because int might match the return type of a gcc2
11096 builtin and then its argument prototype would still apply. */ 11361 builtin and then its argument prototype would still apply. */
11097 char dlopen(); 11362 char dlopen();
11098 11363
11099 int main() { 11364 int main() {
11100 dlopen() 11365 dlopen()
11101 ; return 0; } 11366 ; return 0; }
11102 EOF 11367 EOF
11103 if { (eval echo configure:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11368 if { (eval echo configure:11369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11104 rm -rf conftest* 11369 rm -rf conftest*
11105 eval "ac_cv_lib_$ac_lib_var=yes" 11370 eval "ac_cv_lib_$ac_lib_var=yes"
11106 else 11371 else
11107 echo "configure: failed program was:" >&5 11372 echo "configure: failed program was:" >&5
11108 cat conftest.$ac_ext >&5 11373 cat conftest.$ac_ext >&5
11127 fi 11392 fi
11128 11393
11129 } 11394 }
11130 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11395 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11131 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 11396 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11132 echo "configure:11133: checking for _dlopen in -lc" >&5 11397 echo "configure:11398: checking for _dlopen in -lc" >&5
11133 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` 11398 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11134 11399
11135 xe_check_libs=" -lc " 11400 xe_check_libs=" -lc "
11136 cat > conftest.$ac_ext <<EOF 11401 cat > conftest.$ac_ext <<EOF
11137 #line 11138 "configure" 11402 #line 11403 "configure"
11138 #include "confdefs.h" 11403 #include "confdefs.h"
11139 /* Override any gcc2 internal prototype to avoid an error. */ 11404 /* Override any gcc2 internal prototype to avoid an error. */
11140 /* We use char because int might match the return type of a gcc2 11405 /* We use char because int might match the return type of a gcc2
11141 builtin and then its argument prototype would still apply. */ 11406 builtin and then its argument prototype would still apply. */
11142 char _dlopen(); 11407 char _dlopen();
11143 11408
11144 int main() { 11409 int main() {
11145 _dlopen() 11410 _dlopen()
11146 ; return 0; } 11411 ; return 0; }
11147 EOF 11412 EOF
11148 if { (eval echo configure:11149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11413 if { (eval echo configure:11414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11149 rm -rf conftest* 11414 rm -rf conftest*
11150 eval "ac_cv_lib_$ac_lib_var=yes" 11415 eval "ac_cv_lib_$ac_lib_var=yes"
11151 else 11416 else
11152 echo "configure: failed program was:" >&5 11417 echo "configure: failed program was:" >&5
11153 cat conftest.$ac_ext >&5 11418 cat conftest.$ac_ext >&5
11172 fi 11437 fi
11173 11438
11174 } 11439 }
11175 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11440 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11176 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 11441 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11177 echo "configure:11178: checking for dlopen in -lc" >&5 11442 echo "configure:11443: checking for dlopen in -lc" >&5
11178 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 11443 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11179 11444
11180 xe_check_libs=" -lc " 11445 xe_check_libs=" -lc "
11181 cat > conftest.$ac_ext <<EOF 11446 cat > conftest.$ac_ext <<EOF
11182 #line 11183 "configure" 11447 #line 11448 "configure"
11183 #include "confdefs.h" 11448 #include "confdefs.h"
11184 /* Override any gcc2 internal prototype to avoid an error. */ 11449 /* Override any gcc2 internal prototype to avoid an error. */
11185 /* We use char because int might match the return type of a gcc2 11450 /* We use char because int might match the return type of a gcc2
11186 builtin and then its argument prototype would still apply. */ 11451 builtin and then its argument prototype would still apply. */
11187 char dlopen(); 11452 char dlopen();
11188 11453
11189 int main() { 11454 int main() {
11190 dlopen() 11455 dlopen()
11191 ; return 0; } 11456 ; return 0; }
11192 EOF 11457 EOF
11193 if { (eval echo configure:11194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11458 if { (eval echo configure:11459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11194 rm -rf conftest* 11459 rm -rf conftest*
11195 eval "ac_cv_lib_$ac_lib_var=yes" 11460 eval "ac_cv_lib_$ac_lib_var=yes"
11196 else 11461 else
11197 echo "configure: failed program was:" >&5 11462 echo "configure: failed program was:" >&5
11198 cat conftest.$ac_ext >&5 11463 cat conftest.$ac_ext >&5
11217 fi 11482 fi
11218 11483
11219 } 11484 }
11220 test -z "$with_shlib" && { 11485 test -z "$with_shlib" && {
11221 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 11486 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11222 echo "configure:11223: checking for shl_load in -ldld" >&5 11487 echo "configure:11488: checking for shl_load in -ldld" >&5
11223 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 11488 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11224 11489
11225 xe_check_libs=" -ldld " 11490 xe_check_libs=" -ldld "
11226 cat > conftest.$ac_ext <<EOF 11491 cat > conftest.$ac_ext <<EOF
11227 #line 11228 "configure" 11492 #line 11493 "configure"
11228 #include "confdefs.h" 11493 #include "confdefs.h"
11229 /* Override any gcc2 internal prototype to avoid an error. */ 11494 /* Override any gcc2 internal prototype to avoid an error. */
11230 /* We use char because int might match the return type of a gcc2 11495 /* We use char because int might match the return type of a gcc2
11231 builtin and then its argument prototype would still apply. */ 11496 builtin and then its argument prototype would still apply. */
11232 char shl_load(); 11497 char shl_load();
11233 11498
11234 int main() { 11499 int main() {
11235 shl_load() 11500 shl_load()
11236 ; return 0; } 11501 ; return 0; }
11237 EOF 11502 EOF
11238 if { (eval echo configure:11239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11503 if { (eval echo configure:11504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11239 rm -rf conftest* 11504 rm -rf conftest*
11240 eval "ac_cv_lib_$ac_lib_var=yes" 11505 eval "ac_cv_lib_$ac_lib_var=yes"
11241 else 11506 else
11242 echo "configure: failed program was:" >&5 11507 echo "configure: failed program was:" >&5
11243 cat conftest.$ac_ext >&5 11508 cat conftest.$ac_ext >&5
11262 fi 11527 fi
11263 11528
11264 } 11529 }
11265 test -z "$with_shlib" && { 11530 test -z "$with_shlib" && {
11266 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 11531 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11267 echo "configure:11268: checking for dld_init in -ldld" >&5 11532 echo "configure:11533: checking for dld_init in -ldld" >&5
11268 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 11533 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11269 11534
11270 xe_check_libs=" -ldld " 11535 xe_check_libs=" -ldld "
11271 cat > conftest.$ac_ext <<EOF 11536 cat > conftest.$ac_ext <<EOF
11272 #line 11273 "configure" 11537 #line 11538 "configure"
11273 #include "confdefs.h" 11538 #include "confdefs.h"
11274 /* Override any gcc2 internal prototype to avoid an error. */ 11539 /* Override any gcc2 internal prototype to avoid an error. */
11275 /* We use char because int might match the return type of a gcc2 11540 /* We use char because int might match the return type of a gcc2
11276 builtin and then its argument prototype would still apply. */ 11541 builtin and then its argument prototype would still apply. */
11277 char dld_init(); 11542 char dld_init();
11278 11543
11279 int main() { 11544 int main() {
11280 dld_init() 11545 dld_init()
11281 ; return 0; } 11546 ; return 0; }
11282 EOF 11547 EOF
11283 if { (eval echo configure:11284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11548 if { (eval echo configure:11549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11284 rm -rf conftest* 11549 rm -rf conftest*
11285 eval "ac_cv_lib_$ac_lib_var=yes" 11550 eval "ac_cv_lib_$ac_lib_var=yes"
11286 else 11551 else
11287 echo "configure: failed program was:" >&5 11552 echo "configure: failed program was:" >&5
11288 cat conftest.$ac_ext >&5 11553 cat conftest.$ac_ext >&5
11328 dll_lflags="-shared" 11593 dll_lflags="-shared"
11329 dll_cflags="-r" 11594 dll_cflags="-r"
11330 dll_oflags="-o " 11595 dll_oflags="-o "
11331 11596
11332 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 11597 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6
11333 echo "configure:11334: checking how to build a shared library" >&5 11598 echo "configure:11599: checking how to build a shared library" >&5
11334 case `uname -rs` in 11599 case `uname -rs` in
11335 UNIX_SV*|UNIX_System_V*) 11600 UNIX_SV*|UNIX_System_V*)
11336 dll_lflags="-G" 11601 dll_lflags="-G"
11337 dll_cflags=-Kpic 11602 dll_cflags=-Kpic
11338 dll_ld="ld" 11603 dll_ld="ld"
11419 11684
11420 11685
11421 for ac_func in dlerror 11686 for ac_func in dlerror
11422 do 11687 do
11423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11424 echo "configure:11425: checking for $ac_func" >&5 11689 echo "configure:11690: checking for $ac_func" >&5
11425 11690
11426 cat > conftest.$ac_ext <<EOF 11691 cat > conftest.$ac_ext <<EOF
11427 #line 11428 "configure" 11692 #line 11693 "configure"
11428 #include "confdefs.h" 11693 #include "confdefs.h"
11429 /* System header to define __stub macros and hopefully few prototypes, 11694 /* System header to define __stub macros and hopefully few prototypes,
11430 which can conflict with char $ac_func(); below. */ 11695 which can conflict with char $ac_func(); below. */
11431 #include <assert.h> 11696 #include <assert.h>
11432 /* Override any gcc2 internal prototype to avoid an error. */ 11697 /* Override any gcc2 internal prototype to avoid an error. */
11445 $ac_func(); 11710 $ac_func();
11446 #endif 11711 #endif
11447 11712
11448 ; return 0; } 11713 ; return 0; }
11449 EOF 11714 EOF
11450 if { (eval echo configure:11451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11715 if { (eval echo configure:11716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11451 rm -rf conftest* 11716 rm -rf conftest*
11452 eval "ac_cv_func_$ac_func=yes" 11717 eval "ac_cv_func_$ac_func=yes"
11453 else 11718 else
11454 echo "configure: failed program was:" >&5 11719 echo "configure: failed program was:" >&5
11455 cat conftest.$ac_ext >&5 11720 cat conftest.$ac_ext >&5
11481 *) ;; 11746 *) ;;
11482 esac 11747 esac
11483 fi 11748 fi
11484 11749
11485 cat > conftest.$ac_ext <<EOF 11750 cat > conftest.$ac_ext <<EOF
11486 #line 11487 "configure" 11751 #line 11752 "configure"
11487 #include "confdefs.h" 11752 #include "confdefs.h"
11488 int main(int c,char *v[]){return 0;} 11753 int main(int c,char *v[]){return 0;}
11489 EOF 11754 EOF
11490 if { (eval echo configure:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11755 if { (eval echo configure:11756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11491 then 11756 then
11492 : 11757 :
11493 else 11758 else
11494 conftest_rc="$?" 11759 conftest_rc="$?"
11495 echo "configure: failed program was:" >&5 11760 echo "configure: failed program was:" >&5