configure (26180) | configure (39297) |
---|---|
1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.12 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: | 1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.12 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: |
14ac_help="$ac_help 15 --without-gcc don't use gcc" |
|
14 15# Initialize some variables set by options. 16# The variables have the same names as the options, with 17# dashes changed to underlines. 18build=NONE 19cache_file=./config.cache 20exec_prefix=NONE 21host=NONE --- 539 unchanged lines hidden (view full) --- 561 562 563# Make sure we can run config.sub. 564if $ac_config_sub sun4 >/dev/null 2>&1; then : 565else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 566fi 567 568echo $ac_n "checking host system type""... $ac_c" 1>&6 | 16 17# Initialize some variables set by options. 18# The variables have the same names as the options, with 19# dashes changed to underlines. 20build=NONE 21cache_file=./config.cache 22exec_prefix=NONE 23host=NONE --- 539 unchanged lines hidden (view full) --- 563 564 565# Make sure we can run config.sub. 566if $ac_config_sub sun4 >/dev/null 2>&1; then : 567else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 568fi 569 570echo $ac_n "checking host system type""... $ac_c" 1>&6 |
569echo "configure:570: checking host system type" >&5 | 571echo "configure:572: checking host system type" >&5 |
570 571host_alias=$host 572case "$host_alias" in 573NONE) 574 case $nonopt in 575 NONE) 576 if host_alias=`$ac_config_guess`; then : 577 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } --- 4 unchanged lines hidden (view full) --- 582 583host=`$ac_config_sub $host_alias` 584host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 585host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 586host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 587echo "$ac_t""$host" 1>&6 588 589echo $ac_n "checking target system type""... $ac_c" 1>&6 | 572 573host_alias=$host 574case "$host_alias" in 575NONE) 576 case $nonopt in 577 NONE) 578 if host_alias=`$ac_config_guess`; then : 579 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } --- 4 unchanged lines hidden (view full) --- 584 585host=`$ac_config_sub $host_alias` 586host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 587host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 588host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 589echo "$ac_t""$host" 1>&6 590 591echo $ac_n "checking target system type""... $ac_c" 1>&6 |
590echo "configure:591: checking target system type" >&5 | 592echo "configure:593: checking target system type" >&5 |
591 592target_alias=$target 593case "$target_alias" in 594NONE) 595 case $nonopt in 596 NONE) target_alias=$host_alias ;; 597 *) target_alias=$nonopt ;; 598 esac ;; 599esac 600 601target=`$ac_config_sub $target_alias` 602target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 603target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 604target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 605echo "$ac_t""$target" 1>&6 606 607echo $ac_n "checking build system type""... $ac_c" 1>&6 | 593 594target_alias=$target 595case "$target_alias" in 596NONE) 597 case $nonopt in 598 NONE) target_alias=$host_alias ;; 599 *) target_alias=$nonopt ;; 600 esac ;; 601esac 602 603target=`$ac_config_sub $target_alias` 604target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 605target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 606target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 607echo "$ac_t""$target" 1>&6 608 609echo $ac_n "checking build system type""... $ac_c" 1>&6 |
608echo "configure:609: checking build system type" >&5 | 610echo "configure:611: checking build system type" >&5 |
609 610build_alias=$build 611case "$build_alias" in 612NONE) 613 case $nonopt in 614 NONE) build_alias=$host_alias ;; 615 *) build_alias=$nonopt ;; 616 esac ;; --- 13 unchanged lines hidden (view full) --- 630 631umask 002 632 633if test -z "$PWD" ; then 634 PWD=`pwd` 635fi 636 637 | 611 612build_alias=$build 613case "$build_alias" in 614NONE) 615 case $nonopt in 616 NONE) build_alias=$host_alias ;; 617 *) build_alias=$nonopt ;; 618 esac ;; --- 13 unchanged lines hidden (view full) --- 632 633umask 002 634 635if test -z "$PWD" ; then 636 PWD=`pwd` 637fi 638 639 |
638 V_CCOPT=-O | 640 641 642 643 # Check whether --with-gcc or --without-gcc was given. 644if test "${with_gcc+set}" = set; then 645 withval="$with_gcc" 646 : 647fi 648 649 V_CCOPT="-O" |
639 V_INCLS="" | 650 V_INCLS="" |
651 if test "${srcdir}" != "." ; then 652 V_INCLS="-I\$\(srcdir\)" 653 fi |
|
640 if test "${CFLAGS+set}" = set; then 641 LBL_CFLAGS="$CFLAGS" 642 fi 643 if test -z "$CC" ; then 644 case "$target_os" in 645 646 bsdi*) 647 # Extract the first word of "shlicc2", so it can be a program name with args. 648set dummy shlicc2; ac_word=$2 649echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 654 if test "${CFLAGS+set}" = set; then 655 LBL_CFLAGS="$CFLAGS" 656 fi 657 if test -z "$CC" ; then 658 case "$target_os" in 659 660 bsdi*) 661 # Extract the first word of "shlicc2", so it can be a program name with args. 662set dummy shlicc2; ac_word=$2 663echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
650echo "configure:651: checking for $ac_word" >&5 | 664echo "configure:665: checking for $ac_word" >&5 |
651if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then 652 echo $ac_n "(cached) $ac_c" 1>&6 653else 654 if test -n "$SHLICC2"; then 655 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 656else 657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 658 for ac_dir in $PATH; do --- 16 unchanged lines hidden (view full) --- 675 676 if test $SHLICC2 = yes ; then 677 CC=shlicc2 678 export CC 679 fi 680 ;; 681 esac 682 fi | 665if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then 666 echo $ac_n "(cached) $ac_c" 1>&6 667else 668 if test -n "$SHLICC2"; then 669 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 670else 671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 672 for ac_dir in $PATH; do --- 16 unchanged lines hidden (view full) --- 689 690 if test $SHLICC2 = yes ; then 691 CC=shlicc2 692 export CC 693 fi 694 ;; 695 esac 696 fi |
697 if test -z "$CC" -a "$with_gcc" = no ; then 698 CC=cc 699 export CC 700 fi |
|
683 # Extract the first word of "gcc", so it can be a program name with args. 684set dummy gcc; ac_word=$2 685echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 701 # Extract the first word of "gcc", so it can be a program name with args. 702set dummy gcc; ac_word=$2 703echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
686echo "configure:687: checking for $ac_word" >&5 | 704echo "configure:705: checking for $ac_word" >&5 |
687if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 688 echo $ac_n "(cached) $ac_c" 1>&6 689else 690 if test -n "$CC"; then 691 ac_cv_prog_CC="$CC" # Let the user override the test. 692else 693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 694 for ac_dir in $PATH; do --- 12 unchanged lines hidden (view full) --- 707else 708 echo "$ac_t""no" 1>&6 709fi 710 711if test -z "$CC"; then 712 # Extract the first word of "cc", so it can be a program name with args. 713set dummy cc; ac_word=$2 714echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 705if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 706 echo $ac_n "(cached) $ac_c" 1>&6 707else 708 if test -n "$CC"; then 709 ac_cv_prog_CC="$CC" # Let the user override the test. 710else 711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 712 for ac_dir in $PATH; do --- 12 unchanged lines hidden (view full) --- 725else 726 echo "$ac_t""no" 1>&6 727fi 728 729if test -z "$CC"; then 730 # Extract the first word of "cc", so it can be a program name with args. 731set dummy cc; ac_word=$2 732echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
715echo "configure:716: checking for $ac_word" >&5 | 733echo "configure:734: checking for $ac_word" >&5 |
716if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 717 echo $ac_n "(cached) $ac_c" 1>&6 718else 719 if test -n "$CC"; then 720 ac_cv_prog_CC="$CC" # Let the user override the test. 721else 722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 723 ac_prog_rejected=no --- 31 unchanged lines hidden (view full) --- 755else 756 echo "$ac_t""no" 1>&6 757fi 758 759 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 760fi 761 762echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 734if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 735 echo $ac_n "(cached) $ac_c" 1>&6 736else 737 if test -n "$CC"; then 738 ac_cv_prog_CC="$CC" # Let the user override the test. 739else 740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 741 ac_prog_rejected=no --- 31 unchanged lines hidden (view full) --- 773else 774 echo "$ac_t""no" 1>&6 775fi 776 777 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 778fi 779 780echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
763echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 781echo "configure:782: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
764 765ac_ext=c 766# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 767ac_cpp='$CPP $CPPFLAGS' 768ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 769ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 770cross_compiling=$ac_cv_prog_cc_cross 771 772cat > conftest.$ac_ext <<EOF | 782 783ac_ext=c 784# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 785ac_cpp='$CPP $CPPFLAGS' 786ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 787ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 788cross_compiling=$ac_cv_prog_cc_cross 789 790cat > conftest.$ac_ext <<EOF |
773#line 774 "configure" | 791#line 792 "configure" |
774#include "confdefs.h" 775main(){return(0);} 776EOF | 792#include "confdefs.h" 793main(){return(0);} 794EOF |
777if { (eval echo configure:778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 795if { (eval echo configure:796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
778 ac_cv_prog_cc_works=yes 779 # If we can't run a trivial program, we are probably using a cross compiler. 780 if (./conftest; exit) 2>/dev/null; then 781 ac_cv_prog_cc_cross=no 782 else 783 ac_cv_prog_cc_cross=yes 784 fi 785else 786 echo "configure: failed program was:" >&5 787 cat conftest.$ac_ext >&5 788 ac_cv_prog_cc_works=no 789fi 790rm -fr conftest* 791 792echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 793if test $ac_cv_prog_cc_works = no; then 794 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 795fi 796echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 796 ac_cv_prog_cc_works=yes 797 # If we can't run a trivial program, we are probably using a cross compiler. 798 if (./conftest; exit) 2>/dev/null; then 799 ac_cv_prog_cc_cross=no 800 else 801 ac_cv_prog_cc_cross=yes 802 fi 803else 804 echo "configure: failed program was:" >&5 805 cat conftest.$ac_ext >&5 806 ac_cv_prog_cc_works=no 807fi 808rm -fr conftest* 809 810echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 811if test $ac_cv_prog_cc_works = no; then 812 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 813fi 814echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
797echo "configure:798: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 815echo "configure:816: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
798echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 799cross_compiling=$ac_cv_prog_cc_cross 800 801echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 816echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 817cross_compiling=$ac_cv_prog_cc_cross 818 819echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
802echo "configure:803: checking whether we are using GNU C" >&5 | 820echo "configure:821: checking whether we are using GNU C" >&5 |
803if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 804 echo $ac_n "(cached) $ac_c" 1>&6 805else 806 cat > conftest.c <<EOF 807#ifdef __GNUC__ 808 yes; 809#endif 810EOF | 821if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 822 echo $ac_n "(cached) $ac_c" 1>&6 823else 824 cat > conftest.c <<EOF 825#ifdef __GNUC__ 826 yes; 827#endif 828EOF |
811if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 829if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
812 ac_cv_prog_gcc=yes 813else 814 ac_cv_prog_gcc=no 815fi 816fi 817 818echo "$ac_t""$ac_cv_prog_gcc" 1>&6 819 820if test $ac_cv_prog_gcc = yes; then 821 GCC=yes 822 ac_test_CFLAGS="${CFLAGS+set}" 823 ac_save_CFLAGS="$CFLAGS" 824 CFLAGS= 825 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 830 ac_cv_prog_gcc=yes 831else 832 ac_cv_prog_gcc=no 833fi 834fi 835 836echo "$ac_t""$ac_cv_prog_gcc" 1>&6 837 838if test $ac_cv_prog_gcc = yes; then 839 GCC=yes 840 ac_test_CFLAGS="${CFLAGS+set}" 841 ac_save_CFLAGS="$CFLAGS" 842 CFLAGS= 843 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
826echo "configure:827: checking whether ${CC-cc} accepts -g" >&5 | 844echo "configure:845: checking whether ${CC-cc} accepts -g" >&5 |
827if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 828 echo $ac_n "(cached) $ac_c" 1>&6 829else 830 echo 'void f(){}' > conftest.c 831if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 832 ac_cv_prog_cc_g=yes 833else 834 ac_cv_prog_cc_g=no --- 10 unchanged lines hidden (view full) --- 845 else 846 CFLAGS="-O2" 847 fi 848else 849 GCC= 850 test "${CFLAGS+set}" = set || CFLAGS="-g" 851fi 852 | 845if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 846 echo $ac_n "(cached) $ac_c" 1>&6 847else 848 echo 'void f(){}' > conftest.c 849if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 850 ac_cv_prog_cc_g=yes 851else 852 ac_cv_prog_cc_g=no --- 10 unchanged lines hidden (view full) --- 863 else 864 CFLAGS="-O2" 865 fi 866else 867 GCC= 868 test "${CFLAGS+set}" = set || CFLAGS="-g" 869fi 870 |
853 if test $ac_cv_prog_gcc = yes ; then | 871 if test "$GCC" = yes ; then |
854 if test "$SHLICC2" = yes ; then | 872 if test "$SHLICC2" = yes ; then |
855 ac_cv_gcc_vers=2 856 V_CCOPT=-O2 | 873 ac_cv_lbl_gcc_vers=2 874 V_CCOPT="-O2" |
857 else 858 echo $ac_n "checking gcc version""... $ac_c" 1>&6 | 875 else 876 echo $ac_n "checking gcc version""... $ac_c" 1>&6 |
859echo "configure:860: checking gcc version" >&5 860 if eval "test \"`echo '$''{'ac_cv_gcc_vers'+set}'`\" = set"; then | 877echo "configure:878: checking gcc version" >&5 878 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then |
861 echo $ac_n "(cached) $ac_c" 1>&6 862else | 879 echo $ac_n "(cached) $ac_c" 1>&6 880else |
863 ac_cv_gcc_vers=`$CC -v 2>&1 | \ 864 sed -n -e '$s/.* //' -e '$s/\..*//p'` | 881 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \ 882 sed -e '/^gcc version /!d' \ 883 -e 's/^gcc version //' \ 884 -e 's/ .*//' -e 's/^[^0-9]*//' \ 885 -e 's/\..*//'` |
865fi 866 | 886fi 887 |
867 echo "$ac_t""$ac_cv_gcc_vers" 1>&6 868 if test $ac_cv_gcc_vers -gt 1 ; then 869 V_CCOPT=-O2 | 888 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6 889 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 890 V_CCOPT="-O2" |
870 fi 871 fi 872 else 873 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6 | 891 fi 892 fi 893 else 894 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6 |
874echo "configure:875: checking that $CC handles ansi prototypes" >&5 875 if eval "test \"`echo '$''{'ac_cv_cc_ansi_prototypes'+set}'`\" = set"; then | 895echo "configure:896: checking that $CC handles ansi prototypes" >&5 896 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then |
876 echo $ac_n "(cached) $ac_c" 1>&6 877else 878 cat > conftest.$ac_ext <<EOF | 897 echo $ac_n "(cached) $ac_c" 1>&6 898else 899 cat > conftest.$ac_ext <<EOF |
879#line 880 "configure" | 900#line 901 "configure" |
880#include "confdefs.h" 881#include <sys/types.h> 882int main() { 883int frob(int, char *) 884; return 0; } 885EOF | 901#include "confdefs.h" 902#include <sys/types.h> 903int main() { 904int frob(int, char *) 905; return 0; } 906EOF |
886if { (eval echo configure:887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 907if { (eval echo configure:908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
887 rm -rf conftest* | 908 rm -rf conftest* |
888 ac_cv_cc_ansi_prototypes=yes | 909 ac_cv_lbl_cc_ansi_prototypes=yes |
889else 890 echo "configure: failed program was:" >&5 891 cat conftest.$ac_ext >&5 892 rm -rf conftest* | 910else 911 echo "configure: failed program was:" >&5 912 cat conftest.$ac_ext >&5 913 rm -rf conftest* |
893 ac_cv_cc_ansi_prototypes=no | 914 ac_cv_lbl_cc_ansi_prototypes=no |
894fi 895rm -f conftest* 896fi 897 | 915fi 916rm -f conftest* 917fi 918 |
898 echo "$ac_t""$ac_cv_cc_ansi_prototypes" 1>&6 899 if test $ac_cv_cc_ansi_prototypes = no ; then | 919 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6 920 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then |
900 case "$target_os" in 901 902 hpux*) 903 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6 | 921 case "$target_os" in 922 923 hpux*) 924 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6 |
904echo "configure:905: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 | 925echo "configure:926: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5 |
905 savedcflags="$CFLAGS" 906 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" | 926 savedcflags="$CFLAGS" 927 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS" |
907 if eval "test \"`echo '$''{'ac_cv_cc_hpux_cc_aa'+set}'`\" = set"; then | 928 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then |
908 echo $ac_n "(cached) $ac_c" 1>&6 909else 910 cat > conftest.$ac_ext <<EOF | 929 echo $ac_n "(cached) $ac_c" 1>&6 930else 931 cat > conftest.$ac_ext <<EOF |
911#line 912 "configure" | 932#line 933 "configure" |
912#include "confdefs.h" 913#include <sys/types.h> 914int main() { 915int frob(int, char *) 916; return 0; } 917EOF | 933#include "confdefs.h" 934#include <sys/types.h> 935int main() { 936int frob(int, char *) 937; return 0; } 938EOF |
918if { (eval echo configure:919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 939if { (eval echo configure:940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
919 rm -rf conftest* | 940 rm -rf conftest* |
920 ac_cv_cc_hpux_cc_aa=yes | 941 ac_cv_lbl_cc_hpux_cc_aa=yes |
921else 922 echo "configure: failed program was:" >&5 923 cat conftest.$ac_ext >&5 924 rm -rf conftest* | 942else 943 echo "configure: failed program was:" >&5 944 cat conftest.$ac_ext >&5 945 rm -rf conftest* |
925 ac_cv_cc_hpux_cc_aa=no | 946 ac_cv_lbl_cc_hpux_cc_aa=no |
926fi 927rm -f conftest* 928fi 929 | 947fi 948rm -f conftest* 949fi 950 |
930 echo "$ac_t""$ac_cv_cc_hpux_cc_aa" 1>&6 931 if test $ac_cv_cc_hpux_cc_aa = no ; then 932 { echo "configure: error: see the INSTALL for more info" 1>&2; exit 1; } | 951 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6 952 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then 953 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; } |
933 fi 934 CFLAGS="$savedcflags" 935 V_CCOPT="-Aa $V_CCOPT" 936 cat >> confdefs.h <<\EOF 937#define _HPUX_SOURCE 1 938EOF 939 940 ;; 941 942 *) | 954 fi 955 CFLAGS="$savedcflags" 956 V_CCOPT="-Aa $V_CCOPT" 957 cat >> confdefs.h <<\EOF 958#define _HPUX_SOURCE 1 959EOF 960 961 ;; 962 963 *) |
943 { echo "configure: error: see the INSTALL for more info" 1>&2; exit 1; } | 964 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; } |
944 ;; 945 esac 946 fi | 965 ;; 966 esac 967 fi |
947 V_INCLS=-I/usr/local/include | 968 V_INCLS="$V_INCLS -I/usr/local/include" 969 LDFLAGS="$LDFLAGS -L/usr/local/lib" |
948 949 case "$target_os" in 950 951 irix*) 952 V_CCOPT="$V_CCOPT -xansi -signed -g3" 953 ;; 954 955 osf*) | 970 971 case "$target_os" in 972 973 irix*) 974 V_CCOPT="$V_CCOPT -xansi -signed -g3" 975 ;; 976 977 osf*) |
956 V_CCOPT="$V_CCOPT -g3" | 978 V_CCOPT="$V_CCOPT -std1 -g3" |
957 ;; 958 959 ultrix*) 960 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6 | 979 ;; 980 981 ultrix*) 982 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6 |
961echo "configure:962: checking that Ultrix $CC hacks const in prototypes" >&5 962 if eval "test \"`echo '$''{'ac_cv_cc_const_proto'+set}'`\" = set"; then | 983echo "configure:984: checking that Ultrix $CC hacks const in prototypes" >&5 984 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then |
963 echo $ac_n "(cached) $ac_c" 1>&6 964else 965 cat > conftest.$ac_ext <<EOF | 985 echo $ac_n "(cached) $ac_c" 1>&6 986else 987 cat > conftest.$ac_ext <<EOF |
966#line 967 "configure" | 988#line 989 "configure" |
967#include "confdefs.h" 968#include <sys/types.h> 969int main() { 970struct a { int b; }; 971 void c(const struct a *) 972; return 0; } 973EOF | 989#include "confdefs.h" 990#include <sys/types.h> 991int main() { 992struct a { int b; }; 993 void c(const struct a *) 994; return 0; } 995EOF |
974if { (eval echo configure:975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 996if { (eval echo configure:997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
975 rm -rf conftest* | 997 rm -rf conftest* |
976 ac_cv_cc_const_proto=yes | 998 ac_cv_lbl_cc_const_proto=yes |
977else 978 echo "configure: failed program was:" >&5 979 cat conftest.$ac_ext >&5 980 rm -rf conftest* | 999else 1000 echo "configure: failed program was:" >&5 1001 cat conftest.$ac_ext >&5 1002 rm -rf conftest* |
981 ac_cv_cc_const_proto=no | 1003 ac_cv_lbl_cc_const_proto=no |
982fi 983rm -f conftest* 984fi 985 | 1004fi 1005rm -f conftest* 1006fi 1007 |
986 echo "$ac_t""$ac_cv_cc_const_proto" 1>&6 987 if test $ac_cv_cc_const_proto = no ; then | 1008 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6 1009 if test $ac_cv_lbl_cc_const_proto = no ; then |
988 cat >> confdefs.h <<\EOF 989#define const 990EOF 991 992 fi 993 ;; 994 esac 995 fi 996 997 998echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 1010 cat >> confdefs.h <<\EOF 1011#define const 1012EOF 1013 1014 fi 1015 ;; 1016 esac 1017 fi 1018 1019 1020echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
999echo "configure:1000: checking how to run the C preprocessor" >&5 | 1021echo "configure:1022: checking how to run the C preprocessor" >&5 |
1000# On Suns, sometimes $CPP names a directory. 1001if test -n "$CPP" && test -d "$CPP"; then 1002 CPP= 1003fi 1004if test -z "$CPP"; then 1005if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1006 echo $ac_n "(cached) $ac_c" 1>&6 1007else 1008 # This must be in double quotes, not single quotes, because CPP may get 1009 # substituted into the Makefile and "${CC-cc}" will confuse make. 1010 CPP="${CC-cc} -E" 1011 # On the NeXT, cc -E runs the code through the compiler's parser, 1012 # not just through cpp. 1013 cat > conftest.$ac_ext <<EOF | 1022# On Suns, sometimes $CPP names a directory. 1023if test -n "$CPP" && test -d "$CPP"; then 1024 CPP= 1025fi 1026if test -z "$CPP"; then 1027if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1028 echo $ac_n "(cached) $ac_c" 1>&6 1029else 1030 # This must be in double quotes, not single quotes, because CPP may get 1031 # substituted into the Makefile and "${CC-cc}" will confuse make. 1032 CPP="${CC-cc} -E" 1033 # On the NeXT, cc -E runs the code through the compiler's parser, 1034 # not just through cpp. 1035 cat > conftest.$ac_ext <<EOF |
1014#line 1015 "configure" | 1036#line 1037 "configure" |
1015#include "confdefs.h" 1016#include <assert.h> 1017Syntax Error 1018EOF 1019ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1037#include "confdefs.h" 1038#include <assert.h> 1039Syntax Error 1040EOF 1041ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1020{ (eval echo configure:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1042{ (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1021ac_err=`grep -v '^ *+' conftest.out` 1022if test -z "$ac_err"; then 1023 : 1024else 1025 echo "$ac_err" >&5 1026 echo "configure: failed program was:" >&5 1027 cat conftest.$ac_ext >&5 1028 rm -rf conftest* 1029 CPP="${CC-cc} -E -traditional-cpp" 1030 cat > conftest.$ac_ext <<EOF | 1043ac_err=`grep -v '^ *+' conftest.out` 1044if test -z "$ac_err"; then 1045 : 1046else 1047 echo "$ac_err" >&5 1048 echo "configure: failed program was:" >&5 1049 cat conftest.$ac_ext >&5 1050 rm -rf conftest* 1051 CPP="${CC-cc} -E -traditional-cpp" 1052 cat > conftest.$ac_ext <<EOF |
1031#line 1032 "configure" | 1053#line 1054 "configure" |
1032#include "confdefs.h" 1033#include <assert.h> 1034Syntax Error 1035EOF 1036ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1054#include "confdefs.h" 1055#include <assert.h> 1056Syntax Error 1057EOF 1058ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1037{ (eval echo configure:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1059{ (eval echo configure:1060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1038ac_err=`grep -v '^ *+' conftest.out` 1039if test -z "$ac_err"; then 1040 : 1041else 1042 echo "$ac_err" >&5 1043 echo "configure: failed program was:" >&5 1044 cat conftest.$ac_ext >&5 1045 rm -rf conftest* --- 5 unchanged lines hidden (view full) --- 1051 ac_cv_prog_CPP="$CPP" 1052fi 1053 CPP="$ac_cv_prog_CPP" 1054else 1055 ac_cv_prog_CPP="$CPP" 1056fi 1057echo "$ac_t""$CPP" 1>&6 1058 | 1060ac_err=`grep -v '^ *+' conftest.out` 1061if test -z "$ac_err"; then 1062 : 1063else 1064 echo "$ac_err" >&5 1065 echo "configure: failed program was:" >&5 1066 cat conftest.$ac_ext >&5 1067 rm -rf conftest* --- 5 unchanged lines hidden (view full) --- 1073 ac_cv_prog_CPP="$CPP" 1074fi 1075 CPP="$ac_cv_prog_CPP" 1076else 1077 ac_cv_prog_CPP="$CPP" 1078fi 1079echo "$ac_t""$CPP" 1>&6 1080 |
1059for ac_hdr in fcntl.h net/slip.h rpc/rpcent.h | 1081for ac_hdr in fcntl.h malloc.h memory.h rpc/rpcent.h |
1060do 1061ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1062echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 1082do 1083ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1084echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1063echo "configure:1064: checking for $ac_hdr" >&5 | 1085echo "configure:1086: checking for $ac_hdr" >&5 |
1064if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1065 echo $ac_n "(cached) $ac_c" 1>&6 1066else 1067 cat > conftest.$ac_ext <<EOF | 1086if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1087 echo $ac_n "(cached) $ac_c" 1>&6 1088else 1089 cat > conftest.$ac_ext <<EOF |
1068#line 1069 "configure" | 1090#line 1091 "configure" |
1069#include "confdefs.h" 1070#include <$ac_hdr> 1071EOF 1072ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1091#include "confdefs.h" 1092#include <$ac_hdr> 1093EOF 1094ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1073{ (eval echo configure:1074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1095{ (eval echo configure:1096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1074ac_err=`grep -v '^ *+' conftest.out` 1075if test -z "$ac_err"; then 1076 rm -rf conftest* 1077 eval "ac_cv_header_$ac_safe=yes" 1078else 1079 echo "$ac_err" >&5 1080 echo "configure: failed program was:" >&5 1081 cat conftest.$ac_ext >&5 --- 10 unchanged lines hidden (view full) --- 1092EOF 1093 1094else 1095 echo "$ac_t""no" 1>&6 1096fi 1097done 1098 1099echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 1096ac_err=`grep -v '^ *+' conftest.out` 1097if test -z "$ac_err"; then 1098 rm -rf conftest* 1099 eval "ac_cv_header_$ac_safe=yes" 1100else 1101 echo "$ac_err" >&5 1102 echo "configure: failed program was:" >&5 1103 cat conftest.$ac_ext >&5 --- 10 unchanged lines hidden (view full) --- 1114EOF 1115 1116else 1117 echo "$ac_t""no" 1>&6 1118fi 1119done 1120 1121echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
1100echo "configure:1101: checking whether time.h and sys/time.h may both be included" >&5 | 1122echo "configure:1123: checking whether time.h and sys/time.h may both be included" >&5 |
1101if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1102 echo $ac_n "(cached) $ac_c" 1>&6 1103else 1104 cat > conftest.$ac_ext <<EOF | 1123if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1124 echo $ac_n "(cached) $ac_c" 1>&6 1125else 1126 cat > conftest.$ac_ext <<EOF |
1105#line 1106 "configure" | 1127#line 1128 "configure" |
1106#include "confdefs.h" 1107#include <sys/types.h> 1108#include <sys/time.h> 1109#include <time.h> 1110int main() { 1111struct tm *tp; 1112; return 0; } 1113EOF | 1128#include "confdefs.h" 1129#include <sys/types.h> 1130#include <sys/time.h> 1131#include <time.h> 1132int main() { 1133struct tm *tp; 1134; return 0; } 1135EOF |
1114if { (eval echo configure:1115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 1136if { (eval echo configure:1137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1115 rm -rf conftest* 1116 ac_cv_header_time=yes 1117else 1118 echo "configure: failed program was:" >&5 1119 cat conftest.$ac_ext >&5 1120 rm -rf conftest* 1121 ac_cv_header_time=no 1122fi --- 4 unchanged lines hidden (view full) --- 1127if test $ac_cv_header_time = yes; then 1128 cat >> confdefs.h <<\EOF 1129#define TIME_WITH_SYS_TIME 1 1130EOF 1131 1132fi 1133 1134 | 1137 rm -rf conftest* 1138 ac_cv_header_time=yes 1139else 1140 echo "configure: failed program was:" >&5 1141 cat conftest.$ac_ext >&5 1142 rm -rf conftest* 1143 ac_cv_header_time=no 1144fi --- 4 unchanged lines hidden (view full) --- 1149if test $ac_cv_header_time = yes; then 1150 cat >> confdefs.h <<\EOF 1151#define TIME_WITH_SYS_TIME 1 1152EOF 1153 1154fi 1155 1156 |
1157case "$target_os" in 1158 1159linux*) 1160 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6 1161echo "configure:1162: checking Linux kernel version" >&5 1162 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then 1163 echo $ac_n "(cached) $ac_c" 1>&6 1164else 1165 ac_cv_linux_vers=`uname -r 2>&1 | \ 1166 sed -n -e '$s/.* //' -e '$s/\..*//p'` 1167fi 1168 1169 echo "$ac_t""$ac_cv_linux_vers" 1>&6 1170 if test $ac_cv_linux_vers -lt 2 ; then 1171 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; } 1172 fi 1173 cat >> confdefs.h <<\EOF 1174#define HAVE_NET_SLIP_H 1 1175EOF 1176 1177 ;; 1178 1179*) 1180 for ac_hdr in net/slip.h 1181do 1182ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1183echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1184echo "configure:1185: checking for $ac_hdr" >&5 1185if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1186 echo $ac_n "(cached) $ac_c" 1>&6 1187else 1188 cat > conftest.$ac_ext <<EOF 1189#line 1190 "configure" 1190#include "confdefs.h" 1191#include <$ac_hdr> 1192EOF 1193ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1194{ (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1195ac_err=`grep -v '^ *+' conftest.out` 1196if test -z "$ac_err"; then 1197 rm -rf conftest* 1198 eval "ac_cv_header_$ac_safe=yes" 1199else 1200 echo "$ac_err" >&5 1201 echo "configure: failed program was:" >&5 1202 cat conftest.$ac_ext >&5 1203 rm -rf conftest* 1204 eval "ac_cv_header_$ac_safe=no" 1205fi 1206rm -f conftest* 1207fi 1208if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1209 echo "$ac_t""yes" 1>&6 1210 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1211 cat >> confdefs.h <<EOF 1212#define $ac_tr_hdr 1 1213EOF 1214 1215else 1216 echo "$ac_t""no" 1>&6 1217fi 1218done 1219 1220 ;; 1221esac 1222 |
|
1135for ac_func in vfprintf strcasecmp 1136do 1137echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 1223for ac_func in vfprintf strcasecmp 1224do 1225echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1138echo "configure:1139: checking for $ac_func" >&5 | 1226echo "configure:1227: checking for $ac_func" >&5 |
1139if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1140 echo $ac_n "(cached) $ac_c" 1>&6 1141else 1142 cat > conftest.$ac_ext <<EOF | 1227if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1228 echo $ac_n "(cached) $ac_c" 1>&6 1229else 1230 cat > conftest.$ac_ext <<EOF |
1143#line 1144 "configure" | 1231#line 1232 "configure" |
1144#include "confdefs.h" 1145/* System header to define __stub macros and hopefully few prototypes, 1146 which can conflict with char $ac_func(); below. */ 1147#include <assert.h> 1148/* Override any gcc2 internal prototype to avoid an error. */ 1149/* We use char because int might match the return type of a gcc2 1150 builtin and then its argument prototype would still apply. */ 1151char $ac_func(); --- 6 unchanged lines hidden (view full) --- 1158#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1159choke me 1160#else 1161$ac_func(); 1162#endif 1163 1164; return 0; } 1165EOF | 1232#include "confdefs.h" 1233/* System header to define __stub macros and hopefully few prototypes, 1234 which can conflict with char $ac_func(); below. */ 1235#include <assert.h> 1236/* Override any gcc2 internal prototype to avoid an error. */ 1237/* We use char because int might match the return type of a gcc2 1238 builtin and then its argument prototype would still apply. */ 1239char $ac_func(); --- 6 unchanged lines hidden (view full) --- 1246#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1247choke me 1248#else 1249$ac_func(); 1250#endif 1251 1252; return 0; } 1253EOF |
1166if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 1254if { (eval echo configure:1255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
1167 rm -rf conftest* 1168 eval "ac_cv_func_$ac_func=yes" 1169else 1170 echo "configure: failed program was:" >&5 1171 cat conftest.$ac_ext >&5 1172 rm -rf conftest* 1173 eval "ac_cv_func_$ac_func=no" 1174fi --- 12 unchanged lines hidden (view full) --- 1187LIBOBJS="$LIBOBJS ${ac_func}.o" 1188fi 1189done 1190 1191 1192for ac_func in ether_ntoa setlinebuf 1193do 1194echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 1255 rm -rf conftest* 1256 eval "ac_cv_func_$ac_func=yes" 1257else 1258 echo "configure: failed program was:" >&5 1259 cat conftest.$ac_ext >&5 1260 rm -rf conftest* 1261 eval "ac_cv_func_$ac_func=no" 1262fi --- 12 unchanged lines hidden (view full) --- 1275LIBOBJS="$LIBOBJS ${ac_func}.o" 1276fi 1277done 1278 1279 1280for ac_func in ether_ntoa setlinebuf 1281do 1282echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1195echo "configure:1196: checking for $ac_func" >&5 | 1283echo "configure:1284: checking for $ac_func" >&5 |
1196if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1197 echo $ac_n "(cached) $ac_c" 1>&6 1198else 1199 cat > conftest.$ac_ext <<EOF | 1284if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1285 echo $ac_n "(cached) $ac_c" 1>&6 1286else 1287 cat > conftest.$ac_ext <<EOF |
1200#line 1201 "configure" | 1288#line 1289 "configure" |
1201#include "confdefs.h" 1202/* System header to define __stub macros and hopefully few prototypes, 1203 which can conflict with char $ac_func(); below. */ 1204#include <assert.h> 1205/* Override any gcc2 internal prototype to avoid an error. */ 1206/* We use char because int might match the return type of a gcc2 1207 builtin and then its argument prototype would still apply. */ 1208char $ac_func(); --- 6 unchanged lines hidden (view full) --- 1215#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1216choke me 1217#else 1218$ac_func(); 1219#endif 1220 1221; return 0; } 1222EOF | 1289#include "confdefs.h" 1290/* System header to define __stub macros and hopefully few prototypes, 1291 which can conflict with char $ac_func(); below. */ 1292#include <assert.h> 1293/* Override any gcc2 internal prototype to avoid an error. */ 1294/* We use char because int might match the return type of a gcc2 1295 builtin and then its argument prototype would still apply. */ 1296char $ac_func(); --- 6 unchanged lines hidden (view full) --- 1303#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1304choke me 1305#else 1306$ac_func(); 1307#endif 1308 1309; return 0; } 1310EOF |
1223if { (eval echo configure:1224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 1311if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
1224 rm -rf conftest* 1225 eval "ac_cv_func_$ac_func=yes" 1226else 1227 echo "configure: failed program was:" >&5 1228 cat conftest.$ac_ext >&5 1229 rm -rf conftest* 1230 eval "ac_cv_func_$ac_func=no" 1231fi --- 9 unchanged lines hidden (view full) --- 1241 1242else 1243 echo "$ac_t""no" 1>&6 1244fi 1245done 1246 1247 1248echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | 1312 rm -rf conftest* 1313 eval "ac_cv_func_$ac_func=yes" 1314else 1315 echo "configure: failed program was:" >&5 1316 cat conftest.$ac_ext >&5 1317 rm -rf conftest* 1318 eval "ac_cv_func_$ac_func=no" 1319fi --- 9 unchanged lines hidden (view full) --- 1329 1330else 1331 echo "$ac_t""no" 1>&6 1332fi 1333done 1334 1335 1336echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
1249echo "configure:1250: checking whether byte ordering is bigendian" >&5 | 1337echo "configure:1338: checking whether byte ordering is bigendian" >&5 |
1250if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 1251 echo $ac_n "(cached) $ac_c" 1>&6 1252else 1253 ac_cv_c_bigendian=unknown 1254# See if sys/param.h defines the BYTE_ORDER macro. 1255cat > conftest.$ac_ext <<EOF | 1338if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 1339 echo $ac_n "(cached) $ac_c" 1>&6 1340else 1341 ac_cv_c_bigendian=unknown 1342# See if sys/param.h defines the BYTE_ORDER macro. 1343cat > conftest.$ac_ext <<EOF |
1256#line 1257 "configure" | 1344#line 1345 "configure" |
1257#include "confdefs.h" 1258#include <sys/types.h> 1259#include <sys/param.h> 1260int main() { 1261 1262#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 1263 bogus endian macros 1264#endif 1265; return 0; } 1266EOF | 1345#include "confdefs.h" 1346#include <sys/types.h> 1347#include <sys/param.h> 1348int main() { 1349 1350#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 1351 bogus endian macros 1352#endif 1353; return 0; } 1354EOF |
1267if { (eval echo configure:1268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 1355if { (eval echo configure:1356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1268 rm -rf conftest* 1269 # It does; now see whether it defined to BIG_ENDIAN or not. 1270cat > conftest.$ac_ext <<EOF | 1356 rm -rf conftest* 1357 # It does; now see whether it defined to BIG_ENDIAN or not. 1358cat > conftest.$ac_ext <<EOF |
1271#line 1272 "configure" | 1359#line 1360 "configure" |
1272#include "confdefs.h" 1273#include <sys/types.h> 1274#include <sys/param.h> 1275int main() { 1276 1277#if BYTE_ORDER != BIG_ENDIAN 1278 not big endian 1279#endif 1280; return 0; } 1281EOF | 1360#include "confdefs.h" 1361#include <sys/types.h> 1362#include <sys/param.h> 1363int main() { 1364 1365#if BYTE_ORDER != BIG_ENDIAN 1366 not big endian 1367#endif 1368; return 0; } 1369EOF |
1282if { (eval echo configure:1283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 1370if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1283 rm -rf conftest* 1284 ac_cv_c_bigendian=yes 1285else 1286 echo "configure: failed program was:" >&5 1287 cat conftest.$ac_ext >&5 1288 rm -rf conftest* 1289 ac_cv_c_bigendian=no 1290fi 1291rm -f conftest* 1292else 1293 echo "configure: failed program was:" >&5 1294 cat conftest.$ac_ext >&5 1295fi 1296rm -f conftest* 1297if test $ac_cv_c_bigendian = unknown; then 1298if test "$cross_compiling" = yes; then 1299 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1300else 1301 cat > conftest.$ac_ext <<EOF | 1371 rm -rf conftest* 1372 ac_cv_c_bigendian=yes 1373else 1374 echo "configure: failed program was:" >&5 1375 cat conftest.$ac_ext >&5 1376 rm -rf conftest* 1377 ac_cv_c_bigendian=no 1378fi 1379rm -f conftest* 1380else 1381 echo "configure: failed program was:" >&5 1382 cat conftest.$ac_ext >&5 1383fi 1384rm -f conftest* 1385if test $ac_cv_c_bigendian = unknown; then 1386if test "$cross_compiling" = yes; then 1387 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1388else 1389 cat > conftest.$ac_ext <<EOF |
1302#line 1303 "configure" | 1390#line 1391 "configure" |
1303#include "confdefs.h" 1304main () { 1305 /* Are we little or big endian? From Harbison&Steele. */ 1306 union 1307 { 1308 long l; 1309 char c[sizeof (long)]; 1310 } u; 1311 u.l = 1; 1312 exit (u.c[sizeof (long) - 1] == 1); 1313} 1314EOF | 1391#include "confdefs.h" 1392main () { 1393 /* Are we little or big endian? From Harbison&Steele. */ 1394 union 1395 { 1396 long l; 1397 char c[sizeof (long)]; 1398 } u; 1399 u.l = 1; 1400 exit (u.c[sizeof (long) - 1] == 1); 1401} 1402EOF |
1315if { (eval echo configure:1316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | 1403if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
1316then 1317 ac_cv_c_bigendian=no 1318else 1319 echo "configure: failed program was:" >&5 1320 cat conftest.$ac_ext >&5 1321 rm -fr conftest* 1322 ac_cv_c_bigendian=yes 1323fi --- 8 unchanged lines hidden (view full) --- 1332 cat >> confdefs.h <<\EOF 1333#define WORDS_BIGENDIAN 1 1334EOF 1335 1336fi 1337 1338 1339echo $ac_n "checking for main in -ldnet""... $ac_c" 1>&6 | 1404then 1405 ac_cv_c_bigendian=no 1406else 1407 echo "configure: failed program was:" >&5 1408 cat conftest.$ac_ext >&5 1409 rm -fr conftest* 1410 ac_cv_c_bigendian=yes 1411fi --- 8 unchanged lines hidden (view full) --- 1420 cat >> confdefs.h <<\EOF 1421#define WORDS_BIGENDIAN 1 1422EOF 1423 1424fi 1425 1426 1427echo $ac_n "checking for main in -ldnet""... $ac_c" 1>&6 |
1340echo "configure:1341: checking for main in -ldnet" >&5 | 1428echo "configure:1429: checking for main in -ldnet" >&5 |
1341ac_lib_var=`echo dnet'_'main | sed 'y%./+-%__p_%'` 1342if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1343 echo $ac_n "(cached) $ac_c" 1>&6 1344else 1345 ac_save_LIBS="$LIBS" 1346LIBS="-ldnet $LIBS" 1347cat > conftest.$ac_ext <<EOF | 1429ac_lib_var=`echo dnet'_'main | sed 'y%./+-%__p_%'` 1430if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1431 echo $ac_n "(cached) $ac_c" 1>&6 1432else 1433 ac_save_LIBS="$LIBS" 1434LIBS="-ldnet $LIBS" 1435cat > conftest.$ac_ext <<EOF |
1348#line 1349 "configure" | 1436#line 1437 "configure" |
1349#include "confdefs.h" 1350 1351int main() { 1352main() 1353; return 0; } 1354EOF | 1437#include "confdefs.h" 1438 1439int main() { 1440main() 1441; return 0; } 1442EOF |
1355if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 1443if { (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
1356 rm -rf conftest* 1357 eval "ac_cv_lib_$ac_lib_var=yes" 1358else 1359 echo "configure: failed program was:" >&5 1360 cat conftest.$ac_ext >&5 1361 rm -rf conftest* 1362 eval "ac_cv_lib_$ac_lib_var=no" 1363fi --- 11 unchanged lines hidden (view full) --- 1375 1376 LIBS="-ldnet $LIBS" 1377 1378else 1379 echo "$ac_t""no" 1>&6 1380fi 1381 1382echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6 | 1444 rm -rf conftest* 1445 eval "ac_cv_lib_$ac_lib_var=yes" 1446else 1447 echo "configure: failed program was:" >&5 1448 cat conftest.$ac_ext >&5 1449 rm -rf conftest* 1450 eval "ac_cv_lib_$ac_lib_var=no" 1451fi --- 11 unchanged lines hidden (view full) --- 1463 1464 LIBS="-ldnet $LIBS" 1465 1466else 1467 echo "$ac_t""no" 1>&6 1468fi 1469 1470echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6 |
1383echo "configure:1384: checking for main in -lrpc" >&5 | 1471echo "configure:1472: checking for main in -lrpc" >&5 |
1384ac_lib_var=`echo rpc'_'main | sed 'y%./+-%__p_%'` 1385if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1386 echo $ac_n "(cached) $ac_c" 1>&6 1387else 1388 ac_save_LIBS="$LIBS" 1389LIBS="-lrpc $LIBS" 1390cat > conftest.$ac_ext <<EOF | 1472ac_lib_var=`echo rpc'_'main | sed 'y%./+-%__p_%'` 1473if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1474 echo $ac_n "(cached) $ac_c" 1>&6 1475else 1476 ac_save_LIBS="$LIBS" 1477LIBS="-lrpc $LIBS" 1478cat > conftest.$ac_ext <<EOF |
1391#line 1392 "configure" | 1479#line 1480 "configure" |
1392#include "confdefs.h" 1393 1394int main() { 1395main() 1396; return 0; } 1397EOF | 1480#include "confdefs.h" 1481 1482int main() { 1483main() 1484; return 0; } 1485EOF |
1398if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 1486if { (eval echo configure:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
1399 rm -rf conftest* 1400 eval "ac_cv_lib_$ac_lib_var=yes" 1401else 1402 echo "configure: failed program was:" >&5 1403 cat conftest.$ac_ext >&5 1404 rm -rf conftest* 1405 eval "ac_cv_lib_$ac_lib_var=no" 1406fi --- 10 unchanged lines hidden (view full) --- 1417EOF 1418 1419 LIBS="-lrpc $LIBS" 1420 1421else 1422 echo "$ac_t""no" 1>&6 1423fi 1424 | 1487 rm -rf conftest* 1488 eval "ac_cv_lib_$ac_lib_var=yes" 1489else 1490 echo "configure: failed program was:" >&5 1491 cat conftest.$ac_ext >&5 1492 rm -rf conftest* 1493 eval "ac_cv_lib_$ac_lib_var=no" 1494fi --- 10 unchanged lines hidden (view full) --- 1505EOF 1506 1507 LIBS="-lrpc $LIBS" 1508 1509else 1510 echo "$ac_t""no" 1>&6 1511fi 1512 |
1425echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 1426echo "configure:1427: checking for main in -lnsl" >&5 1427ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` 1428if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 1513 1514 1515 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 1516echo "configure:1517: checking return type of signal handlers" >&5 1517if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
1429 echo $ac_n "(cached) $ac_c" 1>&6 1430else | 1518 echo $ac_n "(cached) $ac_c" 1>&6 1519else |
1520 cat > conftest.$ac_ext <<EOF 1521#line 1522 "configure" 1522#include "confdefs.h" 1523#include <sys/types.h> 1524#include <signal.h> 1525#ifdef signal 1526#undef signal 1527#endif 1528#ifdef __cplusplus 1529extern "C" void (*signal (int, void (*)(int)))(int); 1530#else 1531void (*signal ()) (); 1532#endif 1533 1534int main() { 1535int i; 1536; return 0; } 1537EOF 1538if { (eval echo configure:1539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1539 rm -rf conftest* 1540 ac_cv_type_signal=void 1541else 1542 echo "configure: failed program was:" >&5 1543 cat conftest.$ac_ext >&5 1544 rm -rf conftest* 1545 ac_cv_type_signal=int 1546fi 1547rm -f conftest* 1548fi 1549 1550echo "$ac_t""$ac_cv_type_signal" 1>&6 1551cat >> confdefs.h <<EOF 1552#define RETSIGTYPE $ac_cv_type_signal 1553EOF 1554 1555 1556 if test "$ac_cv_type_signal" = void ; then 1557 cat >> confdefs.h <<\EOF 1558#define RETSIGVAL 1559EOF 1560 1561 else 1562 cat >> confdefs.h <<\EOF 1563#define RETSIGVAL (0) 1564EOF 1565 1566 fi 1567 case "$target_os" in 1568 1569 irix*) 1570 cat >> confdefs.h <<\EOF 1571#define _BSD_SIGNALS 1 1572EOF 1573 1574 ;; 1575 1576 *) 1577 for ac_func in sigset 1578do 1579echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1580echo "configure:1581: checking for $ac_func" >&5 1581if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1582 echo $ac_n "(cached) $ac_c" 1>&6 1583else 1584 cat > conftest.$ac_ext <<EOF 1585#line 1586 "configure" 1586#include "confdefs.h" 1587/* System header to define __stub macros and hopefully few prototypes, 1588 which can conflict with char $ac_func(); below. */ 1589#include <assert.h> 1590/* Override any gcc2 internal prototype to avoid an error. */ 1591/* We use char because int might match the return type of a gcc2 1592 builtin and then its argument prototype would still apply. */ 1593char $ac_func(); 1594 1595int main() { 1596 1597/* The GNU C library defines this for functions which it implements 1598 to always fail with ENOSYS. Some functions are actually named 1599 something starting with __ and the normal name is an alias. */ 1600#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1601choke me 1602#else 1603$ac_func(); 1604#endif 1605 1606; return 0; } 1607EOF 1608if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1609 rm -rf conftest* 1610 eval "ac_cv_func_$ac_func=yes" 1611else 1612 echo "configure: failed program was:" >&5 1613 cat conftest.$ac_ext >&5 1614 rm -rf conftest* 1615 eval "ac_cv_func_$ac_func=no" 1616fi 1617rm -f conftest* 1618fi 1619 1620if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1621 echo "$ac_t""yes" 1>&6 1622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1623 cat >> confdefs.h <<EOF 1624#define $ac_tr_func 1 1625EOF 1626 1627else 1628 echo "$ac_t""no" 1>&6 1629fi 1630done 1631 1632 if test $ac_cv_func_sigset = no ; then 1633 for ac_func in sigaction 1634do 1635echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1636echo "configure:1637: checking for $ac_func" >&5 1637if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1638 echo $ac_n "(cached) $ac_c" 1>&6 1639else 1640 cat > conftest.$ac_ext <<EOF 1641#line 1642 "configure" 1642#include "confdefs.h" 1643/* System header to define __stub macros and hopefully few prototypes, 1644 which can conflict with char $ac_func(); below. */ 1645#include <assert.h> 1646/* Override any gcc2 internal prototype to avoid an error. */ 1647/* We use char because int might match the return type of a gcc2 1648 builtin and then its argument prototype would still apply. */ 1649char $ac_func(); 1650 1651int main() { 1652 1653/* The GNU C library defines this for functions which it implements 1654 to always fail with ENOSYS. Some functions are actually named 1655 something starting with __ and the normal name is an alias. */ 1656#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1657choke me 1658#else 1659$ac_func(); 1660#endif 1661 1662; return 0; } 1663EOF 1664if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1665 rm -rf conftest* 1666 eval "ac_cv_func_$ac_func=yes" 1667else 1668 echo "configure: failed program was:" >&5 1669 cat conftest.$ac_ext >&5 1670 rm -rf conftest* 1671 eval "ac_cv_func_$ac_func=no" 1672fi 1673rm -f conftest* 1674fi 1675 1676if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1677 echo "$ac_t""yes" 1>&6 1678 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1679 cat >> confdefs.h <<EOF 1680#define $ac_tr_func 1 1681EOF 1682 1683else 1684 echo "$ac_t""no" 1>&6 1685fi 1686done 1687 1688 fi 1689 ;; 1690 esac 1691 1692 1693 # Most operating systems have gethostbyname() in the default searched 1694 # libraries (i.e. libc): 1695 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 1696echo "configure:1697: checking for gethostbyname" >&5 1697if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 1698 echo $ac_n "(cached) $ac_c" 1>&6 1699else 1700 cat > conftest.$ac_ext <<EOF 1701#line 1702 "configure" 1702#include "confdefs.h" 1703/* System header to define __stub macros and hopefully few prototypes, 1704 which can conflict with char gethostbyname(); below. */ 1705#include <assert.h> 1706/* Override any gcc2 internal prototype to avoid an error. */ 1707/* We use char because int might match the return type of a gcc2 1708 builtin and then its argument prototype would still apply. */ 1709char gethostbyname(); 1710 1711int main() { 1712 1713/* The GNU C library defines this for functions which it implements 1714 to always fail with ENOSYS. Some functions are actually named 1715 something starting with __ and the normal name is an alias. */ 1716#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 1717choke me 1718#else 1719gethostbyname(); 1720#endif 1721 1722; return 0; } 1723EOF 1724if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1725 rm -rf conftest* 1726 eval "ac_cv_func_gethostbyname=yes" 1727else 1728 echo "configure: failed program was:" >&5 1729 cat conftest.$ac_ext >&5 1730 rm -rf conftest* 1731 eval "ac_cv_func_gethostbyname=no" 1732fi 1733rm -f conftest* 1734fi 1735 1736if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 1737 echo "$ac_t""yes" 1>&6 1738 : 1739else 1740 echo "$ac_t""no" 1>&6 1741# Some OSes (eg. Solaris) place it in libnsl: 1742 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1743echo "configure:1744: checking for gethostbyname in -lnsl" >&5 1744ac_lib_var=`echo nsl'_'gethostbyname'_' | sed 'y%./+- %__p__%'` 1745if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then 1746 echo $ac_n "(cached) $ac_c" 1>&6 1747else |
|
1431 ac_save_LIBS="$LIBS" 1432LIBS="-lnsl $LIBS" 1433cat > conftest.$ac_ext <<EOF | 1748 ac_save_LIBS="$LIBS" 1749LIBS="-lnsl $LIBS" 1750cat > conftest.$ac_ext <<EOF |
1434#line 1435 "configure" | 1751#line 1752 "configure" |
1435#include "confdefs.h" | 1752#include "confdefs.h" |
1753/* Override any gcc2 internal prototype to avoid an error. */ 1754/* We use char because int might match the return type of a gcc2 1755 builtin and then its argument prototype would still apply. */ 1756char gethostbyname(); |
|
1436 1437int main() { | 1757 1758int main() { |
1438main() | 1759gethostbyname() |
1439; return 0; } 1440EOF | 1760; return 0; } 1761EOF |
1441if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 1762if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
1442 rm -rf conftest* | 1763 rm -rf conftest* |
1443 eval "ac_cv_lib_$ac_lib_var=yes" | 1764 eval "ac_cv_lbl_lib_$ac_lib_var=yes" |
1444else 1445 echo "configure: failed program was:" >&5 1446 cat conftest.$ac_ext >&5 1447 rm -rf conftest* | 1765else 1766 echo "configure: failed program was:" >&5 1767 cat conftest.$ac_ext >&5 1768 rm -rf conftest* |
1448 eval "ac_cv_lib_$ac_lib_var=no" | 1769 eval "ac_cv_lbl_lib_$ac_lib_var=no" |
1449fi 1450rm -f conftest* 1451LIBS="$ac_save_LIBS" 1452 1453fi | 1770fi 1771rm -f conftest* 1772LIBS="$ac_save_LIBS" 1773 1774fi |
1454if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 1775if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then |
1455 echo "$ac_t""yes" 1>&6 | 1776 echo "$ac_t""yes" 1>&6 |
1456 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 1777 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \ |
1457 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1458 cat >> confdefs.h <<EOF 1459#define $ac_tr_lib 1 1460EOF 1461 1462 LIBS="-lnsl $LIBS" 1463 1464else 1465 echo "$ac_t""no" 1>&6 | 1778 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1779 cat >> confdefs.h <<EOF 1780#define $ac_tr_lib 1 1781EOF 1782 1783 LIBS="-lnsl $LIBS" 1784 1785else 1786 echo "$ac_t""no" 1>&6 |
1787# Some strange OSes (SINIX) have it in libsocket: 1788 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6 1789echo "configure:1790: checking for gethostbyname in -lsocket" >&5 1790ac_lib_var=`echo socket'_'gethostbyname'_' | sed 'y%./+- %__p__%'` 1791if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then 1792 echo $ac_n "(cached) $ac_c" 1>&6 1793else 1794 ac_save_LIBS="$LIBS" 1795LIBS="-lsocket $LIBS" 1796cat > conftest.$ac_ext <<EOF 1797#line 1798 "configure" 1798#include "confdefs.h" 1799/* Override any gcc2 internal prototype to avoid an error. */ 1800/* We use char because int might match the return type of a gcc2 1801 builtin and then its argument prototype would still apply. */ 1802char gethostbyname(); 1803 1804int main() { 1805gethostbyname() 1806; return 0; } 1807EOF 1808if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1809 rm -rf conftest* 1810 eval "ac_cv_lbl_lib_$ac_lib_var=yes" 1811else 1812 echo "configure: failed program was:" >&5 1813 cat conftest.$ac_ext >&5 1814 rm -rf conftest* 1815 eval "ac_cv_lbl_lib_$ac_lib_var=no" |
|
1466fi | 1816fi |
1817rm -f conftest* 1818LIBS="$ac_save_LIBS" |
|
1467 | 1819 |
1468echo $ac_n "checking for main in -lstr""... $ac_c" 1>&6 1469echo "configure:1470: checking for main in -lstr" >&5 1470ac_lib_var=`echo str'_'main | sed 'y%./+-%__p_%'` | 1820fi 1821if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then 1822 echo "$ac_t""yes" 1>&6 1823 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ 1824 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1825 cat >> confdefs.h <<EOF 1826#define $ac_tr_lib 1 1827EOF 1828 1829 LIBS="-lsocket $LIBS" 1830 1831else 1832 echo "$ac_t""no" 1>&6 1833# Unfortunately libsocket sometimes depends on libnsl. 1834 # AC_CHECK_LIB's API is essentially broken so the 1835 # following ugliness is necessary: 1836 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6 1837echo "configure:1838: checking for gethostbyname in -lsocket" >&5 1838ac_lib_var=`echo socket'_'gethostbyname'_'-lnsl | sed 'y%./+- %__p__%'` 1839if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then 1840 echo $ac_n "(cached) $ac_c" 1>&6 1841else 1842 ac_save_LIBS="$LIBS" 1843LIBS="-lsocket -lnsl $LIBS" 1844cat > conftest.$ac_ext <<EOF 1845#line 1846 "configure" 1846#include "confdefs.h" 1847/* Override any gcc2 internal prototype to avoid an error. */ 1848/* We use char because int might match the return type of a gcc2 1849 builtin and then its argument prototype would still apply. */ 1850char gethostbyname(); 1851 1852int main() { 1853gethostbyname() 1854; return 0; } 1855EOF 1856if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1857 rm -rf conftest* 1858 eval "ac_cv_lbl_lib_$ac_lib_var=yes" 1859else 1860 echo "configure: failed program was:" >&5 1861 cat conftest.$ac_ext >&5 1862 rm -rf conftest* 1863 eval "ac_cv_lbl_lib_$ac_lib_var=no" 1864fi 1865rm -f conftest* 1866LIBS="$ac_save_LIBS" 1867 1868fi 1869if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then 1870 echo "$ac_t""yes" 1>&6 1871 LIBS="-lsocket -lnsl $LIBS" 1872else 1873 echo "$ac_t""no" 1>&6 1874echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6 1875echo "configure:1876: checking for gethostbyname in -lresolv" >&5 1876ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'` |
1471if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1472 echo $ac_n "(cached) $ac_c" 1>&6 1473else 1474 ac_save_LIBS="$LIBS" | 1877if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1878 echo $ac_n "(cached) $ac_c" 1>&6 1879else 1880 ac_save_LIBS="$LIBS" |
1475LIBS="-lstr $LIBS" | 1881LIBS="-lresolv $LIBS" |
1476cat > conftest.$ac_ext <<EOF | 1882cat > conftest.$ac_ext <<EOF |
1477#line 1478 "configure" | 1883#line 1884 "configure" |
1478#include "confdefs.h" | 1884#include "confdefs.h" |
1885/* Override any gcc2 internal prototype to avoid an error. */ 1886/* We use char because int might match the return type of a gcc2 1887 builtin and then its argument prototype would still apply. */ 1888char gethostbyname(); |
|
1479 1480int main() { | 1889 1890int main() { |
1481main() | 1891gethostbyname() |
1482; return 0; } 1483EOF | 1892; return 0; } 1893EOF |
1484if { (eval echo configure:1485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 1894if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
1485 rm -rf conftest* 1486 eval "ac_cv_lib_$ac_lib_var=yes" 1487else 1488 echo "configure: failed program was:" >&5 1489 cat conftest.$ac_ext >&5 1490 rm -rf conftest* 1491 eval "ac_cv_lib_$ac_lib_var=no" 1492fi 1493rm -f conftest* 1494LIBS="$ac_save_LIBS" 1495 1496fi 1497if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1498 echo "$ac_t""yes" 1>&6 | 1895 rm -rf conftest* 1896 eval "ac_cv_lib_$ac_lib_var=yes" 1897else 1898 echo "configure: failed program was:" >&5 1899 cat conftest.$ac_ext >&5 1900 rm -rf conftest* 1901 eval "ac_cv_lib_$ac_lib_var=no" 1902fi 1903rm -f conftest* 1904LIBS="$ac_save_LIBS" 1905 1906fi 1907if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1908 echo "$ac_t""yes" 1>&6 |
1499 ac_tr_lib=HAVE_LIB`echo str | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 1909 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \ |
1500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1501 cat >> confdefs.h <<EOF 1502#define $ac_tr_lib 1 1503EOF 1504 | 1910 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1911 cat >> confdefs.h <<EOF 1912#define $ac_tr_lib 1 1913EOF 1914 |
1505 LIBS="-lstr $LIBS" | 1915 LIBS="-lresolv $LIBS" |
1506 1507else 1508 echo "$ac_t""no" 1>&6 1509fi 1510 | 1916 1917else 1918 echo "$ac_t""no" 1>&6 1919fi 1920 |
1921fi |
|
1511 | 1922 |
1512case "$target_os" in 1513irix5.0*) 1514 ;; | 1923fi |
1515 | 1924 |
1516irix5.1*) 1517 ;; | 1925fi |
1518 | 1926 |
1519irix5.2*) 1520 ;; | 1927fi |
1521 | 1928 |
1522*) 1523 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 1524echo "configure:1525: checking for main in -lsocket" >&5 1525ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` | 1929 echo $ac_n "checking for socket""... $ac_c" 1>&6 1930echo "configure:1931: checking for socket" >&5 1931if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 1932 echo $ac_n "(cached) $ac_c" 1>&6 1933else 1934 cat > conftest.$ac_ext <<EOF 1935#line 1936 "configure" 1936#include "confdefs.h" 1937/* System header to define __stub macros and hopefully few prototypes, 1938 which can conflict with char socket(); below. */ 1939#include <assert.h> 1940/* Override any gcc2 internal prototype to avoid an error. */ 1941/* We use char because int might match the return type of a gcc2 1942 builtin and then its argument prototype would still apply. */ 1943char socket(); 1944 1945int main() { 1946 1947/* The GNU C library defines this for functions which it implements 1948 to always fail with ENOSYS. Some functions are actually named 1949 something starting with __ and the normal name is an alias. */ 1950#if defined (__stub_socket) || defined (__stub___socket) 1951choke me 1952#else 1953socket(); 1954#endif 1955 1956; return 0; } 1957EOF 1958if { (eval echo configure:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1959 rm -rf conftest* 1960 eval "ac_cv_func_socket=yes" 1961else 1962 echo "configure: failed program was:" >&5 1963 cat conftest.$ac_ext >&5 1964 rm -rf conftest* 1965 eval "ac_cv_func_socket=no" 1966fi 1967rm -f conftest* 1968fi 1969 1970if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 1971 echo "$ac_t""yes" 1>&6 1972 : 1973else 1974 echo "$ac_t""no" 1>&6 1975echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 1976echo "configure:1977: checking for socket in -lsocket" >&5 1977ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
1526if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1527 echo $ac_n "(cached) $ac_c" 1>&6 1528else 1529 ac_save_LIBS="$LIBS" 1530LIBS="-lsocket $LIBS" 1531cat > conftest.$ac_ext <<EOF | 1978if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1979 echo $ac_n "(cached) $ac_c" 1>&6 1980else 1981 ac_save_LIBS="$LIBS" 1982LIBS="-lsocket $LIBS" 1983cat > conftest.$ac_ext <<EOF |
1532#line 1533 "configure" | 1984#line 1985 "configure" |
1533#include "confdefs.h" | 1985#include "confdefs.h" |
1986/* Override any gcc2 internal prototype to avoid an error. */ 1987/* We use char because int might match the return type of a gcc2 1988 builtin and then its argument prototype would still apply. */ 1989char socket(); |
|
1534 1535int main() { | 1990 1991int main() { |
1536main() | 1992socket() |
1537; return 0; } 1538EOF | 1993; return 0; } 1994EOF |
1539if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 1995if { (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
1540 rm -rf conftest* 1541 eval "ac_cv_lib_$ac_lib_var=yes" 1542else 1543 echo "configure: failed program was:" >&5 1544 cat conftest.$ac_ext >&5 1545 rm -rf conftest* 1546 eval "ac_cv_lib_$ac_lib_var=no" 1547fi 1548rm -f conftest* 1549LIBS="$ac_save_LIBS" 1550 1551fi 1552if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1553 echo "$ac_t""yes" 1>&6 | 1996 rm -rf conftest* 1997 eval "ac_cv_lib_$ac_lib_var=yes" 1998else 1999 echo "configure: failed program was:" >&5 2000 cat conftest.$ac_ext >&5 2001 rm -rf conftest* 2002 eval "ac_cv_lib_$ac_lib_var=no" 2003fi 2004rm -f conftest* 2005LIBS="$ac_save_LIBS" 2006 2007fi 2008if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2009 echo "$ac_t""yes" 1>&6 |
1554 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 2010 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ |
1555 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1556 cat >> confdefs.h <<EOF 1557#define $ac_tr_lib 1 1558EOF 1559 1560 LIBS="-lsocket $LIBS" 1561 1562else 1563 echo "$ac_t""no" 1>&6 | 2011 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2012 cat >> confdefs.h <<EOF 2013#define $ac_tr_lib 1 2014EOF 2015 2016 LIBS="-lsocket $LIBS" 2017 2018else 2019 echo "$ac_t""no" 1>&6 |
2020echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 2021echo "configure:2022: checking for socket in -lsocket" >&5 2022ac_lib_var=`echo socket'_'socket'_'-lnsl | sed 'y%./+- %__p__%'` 2023if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then 2024 echo $ac_n "(cached) $ac_c" 1>&6 2025else 2026 ac_save_LIBS="$LIBS" 2027LIBS="-lsocket -lnsl $LIBS" 2028cat > conftest.$ac_ext <<EOF 2029#line 2030 "configure" 2030#include "confdefs.h" 2031/* Override any gcc2 internal prototype to avoid an error. */ 2032/* We use char because int might match the return type of a gcc2 2033 builtin and then its argument prototype would still apply. */ 2034char socket(); 2035 2036int main() { 2037socket() 2038; return 0; } 2039EOF 2040if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2041 rm -rf conftest* 2042 eval "ac_cv_lbl_lib_$ac_lib_var=yes" 2043else 2044 echo "configure: failed program was:" >&5 2045 cat conftest.$ac_ext >&5 2046 rm -rf conftest* 2047 eval "ac_cv_lbl_lib_$ac_lib_var=no" |
|
1564fi | 2048fi |
2049rm -f conftest* 2050LIBS="$ac_save_LIBS" |
|
1565 | 2051 |
1566 ;; 1567esac | 2052fi 2053if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then 2054 echo "$ac_t""yes" 1>&6 2055 LIBS="-lsocket -lnsl $LIBS" 2056else 2057 echo "$ac_t""no" 1>&6 2058fi |
1568 | 2059 |
1569pfopen=/usr/examples/packetfilter/pfopen.c | 2060fi 2061 2062fi 2063 2064 # DLPI needs putmsg under HPUX so test for -lstr while we're at it 2065 echo $ac_n "checking for putmsg in -lstr""... $ac_c" 1>&6 2066echo "configure:2067: checking for putmsg in -lstr" >&5 2067ac_lib_var=`echo str'_'putmsg | sed 'y%./+-%__p_%'` 2068if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2069 echo $ac_n "(cached) $ac_c" 1>&6 2070else 2071 ac_save_LIBS="$LIBS" 2072LIBS="-lstr $LIBS" 2073cat > conftest.$ac_ext <<EOF 2074#line 2075 "configure" 2075#include "confdefs.h" 2076/* Override any gcc2 internal prototype to avoid an error. */ 2077/* We use char because int might match the return type of a gcc2 2078 builtin and then its argument prototype would still apply. */ 2079char putmsg(); 2080 2081int main() { 2082putmsg() 2083; return 0; } 2084EOF 2085if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2086 rm -rf conftest* 2087 eval "ac_cv_lib_$ac_lib_var=yes" 2088else 2089 echo "configure: failed program was:" >&5 2090 cat conftest.$ac_ext >&5 2091 rm -rf conftest* 2092 eval "ac_cv_lib_$ac_lib_var=no" 2093fi 2094rm -f conftest* 2095LIBS="$ac_save_LIBS" 2096 2097fi 2098if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2099 echo "$ac_t""yes" 1>&6 2100 ac_tr_lib=HAVE_LIB`echo str | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2101 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2102 cat >> confdefs.h <<EOF 2103#define $ac_tr_lib 1 2104EOF 2105 2106 LIBS="-lstr $LIBS" 2107 2108else 2109 echo "$ac_t""no" 1>&6 2110fi 2111 2112 2113 2114 LBL_LIBS="$LIBS" 2115 pfopen=/usr/examples/packetfilter/pfopen.c |
1570 if test -f $pfopen ; then 1571 for ac_func in pfopen 1572do 1573echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 2116 if test -f $pfopen ; then 2117 for ac_func in pfopen 2118do 2119echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1574echo "configure:1575: checking for $ac_func" >&5 | 2120echo "configure:2121: checking for $ac_func" >&5 |
1575if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1576 echo $ac_n "(cached) $ac_c" 1>&6 1577else 1578 cat > conftest.$ac_ext <<EOF | 2121if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2122 echo $ac_n "(cached) $ac_c" 1>&6 2123else 2124 cat > conftest.$ac_ext <<EOF |
1579#line 1580 "configure" | 2125#line 2126 "configure" |
1580#include "confdefs.h" 1581/* System header to define __stub macros and hopefully few prototypes, 1582 which can conflict with char $ac_func(); below. */ 1583#include <assert.h> 1584/* Override any gcc2 internal prototype to avoid an error. */ 1585/* We use char because int might match the return type of a gcc2 1586 builtin and then its argument prototype would still apply. */ 1587char $ac_func(); --- 6 unchanged lines hidden (view full) --- 1594#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1595choke me 1596#else 1597$ac_func(); 1598#endif 1599 1600; return 0; } 1601EOF | 2126#include "confdefs.h" 2127/* System header to define __stub macros and hopefully few prototypes, 2128 which can conflict with char $ac_func(); below. */ 2129#include <assert.h> 2130/* Override any gcc2 internal prototype to avoid an error. */ 2131/* We use char because int might match the return type of a gcc2 2132 builtin and then its argument prototype would still apply. */ 2133char $ac_func(); --- 6 unchanged lines hidden (view full) --- 2140#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2141choke me 2142#else 2143$ac_func(); 2144#endif 2145 2146; return 0; } 2147EOF |
1602if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 2148if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
1603 rm -rf conftest* 1604 eval "ac_cv_func_$ac_func=yes" 1605else 1606 echo "configure: failed program was:" >&5 1607 cat conftest.$ac_ext >&5 1608 rm -rf conftest* 1609 eval "ac_cv_func_$ac_func=no" 1610fi --- 13 unchanged lines hidden (view full) --- 1624done 1625 1626 if test $ac_cv_func_pfopen = "no" ; then 1627 echo "$ac_t""Using $pfopen" 1>&6 1628 LIBS="$LIBS $pfopen" 1629 fi 1630 fi 1631 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6 | 2149 rm -rf conftest* 2150 eval "ac_cv_func_$ac_func=yes" 2151else 2152 echo "configure: failed program was:" >&5 2153 cat conftest.$ac_ext >&5 2154 rm -rf conftest* 2155 eval "ac_cv_func_$ac_func=no" 2156fi --- 13 unchanged lines hidden (view full) --- 2170done 2171 2172 if test $ac_cv_func_pfopen = "no" ; then 2173 echo "$ac_t""Using $pfopen" 1>&6 2174 LIBS="$LIBS $pfopen" 2175 fi 2176 fi 2177 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6 |
1632echo "configure:1633: checking for local pcap library" >&5 | 2178echo "configure:2179: checking for local pcap library" >&5 |
1633 libpcap=FAIL 1634 lastdir=FAIL 1635 places=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \ 1636 egrep '/libpcap-[0-9]*\.[0-9]*(\.[0-9]*)?([ab][0-9]*)?$'` 1637 for dir in $places ../libpcap libpcap ; do 1638 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'` 1639 if test $lastdir = $basedir ; then 1640 continue; 1641 fi 1642 lastdir=$dir 1643 if test -r $dir/pcap.c ; then 1644 libpcap=$dir/libpcap.a 1645 d=$dir 1646 fi 1647 done 1648 if test $libpcap = FAIL ; then 1649 echo "$ac_t""not found" 1>&6 1650 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6 | 2179 libpcap=FAIL 2180 lastdir=FAIL 2181 places=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \ 2182 egrep '/libpcap-[0-9]*\.[0-9]*(\.[0-9]*)?([ab][0-9]*)?$'` 2183 for dir in $places ../libpcap libpcap ; do 2184 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'` 2185 if test $lastdir = $basedir ; then 2186 continue; 2187 fi 2188 lastdir=$dir 2189 if test -r $dir/pcap.c ; then 2190 libpcap=$dir/libpcap.a 2191 d=$dir 2192 fi 2193 done 2194 if test $libpcap = FAIL ; then 2195 echo "$ac_t""not found" 1>&6 2196 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6 |
1651echo "configure:1652: checking for main in -lpcap" >&5 | 2197echo "configure:2198: checking for main in -lpcap" >&5 |
1652ac_lib_var=`echo pcap'_'main | sed 'y%./+-%__p_%'` 1653if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1654 echo $ac_n "(cached) $ac_c" 1>&6 1655else 1656 ac_save_LIBS="$LIBS" 1657LIBS="-lpcap $LIBS" 1658cat > conftest.$ac_ext <<EOF | 2198ac_lib_var=`echo pcap'_'main | sed 'y%./+-%__p_%'` 2199if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2200 echo $ac_n "(cached) $ac_c" 1>&6 2201else 2202 ac_save_LIBS="$LIBS" 2203LIBS="-lpcap $LIBS" 2204cat > conftest.$ac_ext <<EOF |
1659#line 1660 "configure" | 2205#line 2206 "configure" |
1660#include "confdefs.h" 1661 1662int main() { 1663main() 1664; return 0; } 1665EOF | 2206#include "confdefs.h" 2207 2208int main() { 2209main() 2210; return 0; } 2211EOF |
1666if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 2212if { (eval echo configure:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
1667 rm -rf conftest* 1668 eval "ac_cv_lib_$ac_lib_var=yes" 1669else 1670 echo "configure: failed program was:" >&5 1671 cat conftest.$ac_ext >&5 1672 rm -rf conftest* 1673 eval "ac_cv_lib_$ac_lib_var=no" 1674fi --- 12 unchanged lines hidden (view full) --- 1687 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; } 1688 fi 1689 else 1690 V_PCAPDEP=$libpcap 1691 V_INCLS="-I$d $V_INCLS" 1692 echo "$ac_t""$libpcap" 1>&6 1693 fi 1694 LIBS="$libpcap $LIBS" | 2213 rm -rf conftest* 2214 eval "ac_cv_lib_$ac_lib_var=yes" 2215else 2216 echo "configure: failed program was:" >&5 2217 cat conftest.$ac_ext >&5 2218 rm -rf conftest* 2219 eval "ac_cv_lib_$ac_lib_var=no" 2220fi --- 12 unchanged lines hidden (view full) --- 2233 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; } 2234 fi 2235 else 2236 V_PCAPDEP=$libpcap 2237 V_INCLS="-I$d $V_INCLS" 2238 echo "$ac_t""$libpcap" 1>&6 2239 fi 2240 LIBS="$libpcap $LIBS" |
2241 case "$target_os" in |
|
1695 | 2242 |
2243 aix*) 2244 pseexe="/lib/pse.exp" 2245 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6 2246echo "configure:2247: checking for $pseexe" >&5 2247 if test -f $pseexe ; then 2248 echo "$ac_t""yes" 1>&6 2249 LIBS="$LIBS -I:$pseexe" 2250 fi 2251 ;; 2252 esac 2253 |
|
1696V_GROUP=0 | 2254V_GROUP=0 |
2255if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then 2256 V_GROUP=wheel 2257fi |
|
1697case "$target_os" in 1698 1699aix*) 1700 cat >> confdefs.h <<\EOF 1701#define _SUN 1 1702EOF 1703 1704 ;; 1705 1706irix*) 1707 V_GROUP=sys 1708 ;; 1709 | 2258case "$target_os" in 2259 2260aix*) 2261 cat >> confdefs.h <<\EOF 2262#define _SUN 1 2263EOF 2264 2265 ;; 2266 2267irix*) 2268 V_GROUP=sys 2269 ;; 2270 |
2271linux*) 2272 V_INCLS="$V_INCLS -Ilinux-include" 2273 ;; 2274 |
|
1710osf*) 1711 V_GROUP=system | 2275osf*) 2276 V_GROUP=system |
1712 case "$target_os" in 1713 1714 osf1*) 1715 ;; 1716 1717 osf2*) 1718 ;; 1719 1720 *) 1721 cat >> confdefs.h <<\EOF | 2277 cat >> confdefs.h <<\EOF |
1722#define __STDC__ 2 1723EOF 1724 | 2278#define __STDC__ 2 2279EOF 2280 |
1725 ;; 1726 esac | |
1727 ;; 1728 1729solaris*) 1730 V_GROUP=sys 1731 ;; | 2281 ;; 2282 2283solaris*) 2284 V_GROUP=sys 2285 ;; |
1732 1733linux*) 1734 V_INCLS="$V_INCLS -Ilinux-include" 1735 ;; | |
1736esac 1737 1738if test -f /dev/bpf0 ; then 1739 V_GROUP=bpf 1740fi 1741 | 2286esac 2287 2288if test -f /dev/bpf0 ; then 2289 V_GROUP=bpf 2290fi 2291 |
1742echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1743echo "configure:1744: checking for ANSI C header files" >&5 1744if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 2292echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6 2293echo "configure:2294: checking for int32_t using $CC" >&5 2294 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then |
1745 echo $ac_n "(cached) $ac_c" 1>&6 1746else 1747 cat > conftest.$ac_ext <<EOF | 2295 echo $ac_n "(cached) $ac_c" 1>&6 2296else 2297 cat > conftest.$ac_ext <<EOF |
1748#line 1749 "configure" | 2298#line 2299 "configure" |
1749#include "confdefs.h" | 2299#include "confdefs.h" |
1750#include <stdlib.h> 1751#include <stdarg.h> 1752#include <string.h> 1753#include <float.h> | 2300 2301# include "confdefs.h" 2302# include <sys/types.h> 2303# if STDC_HEADERS 2304# include <stdlib.h> 2305# include <stddef.h> 2306# endif 2307int main() { 2308int32_t i 2309; return 0; } |
1754EOF | 2310EOF |
1755ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1756{ (eval echo configure:1757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1757ac_err=`grep -v '^ *+' conftest.out` 1758if test -z "$ac_err"; then | 2311if { (eval echo configure:2312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1759 rm -rf conftest* | 2312 rm -rf conftest* |
1760 ac_cv_header_stdc=yes | 2313 ac_cv_lbl_have_int32_t=yes |
1761else | 2314else |
1762 echo "$ac_err" >&5 | |
1763 echo "configure: failed program was:" >&5 1764 cat conftest.$ac_ext >&5 1765 rm -rf conftest* | 2315 echo "configure: failed program was:" >&5 2316 cat conftest.$ac_ext >&5 2317 rm -rf conftest* |
1766 ac_cv_header_stdc=no | 2318 ac_cv_lbl_have_int32_t=no |
1767fi 1768rm -f conftest* | 2319fi 2320rm -f conftest* |
1769 1770if test $ac_cv_header_stdc = yes; then 1771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1772cat > conftest.$ac_ext <<EOF 1773#line 1774 "configure" 1774#include "confdefs.h" 1775#include <string.h> 1776EOF 1777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1778 egrep "memchr" >/dev/null 2>&1; then 1779 : 1780else 1781 rm -rf conftest* 1782 ac_cv_header_stdc=no | |
1783fi | 2321fi |
1784rm -f conftest* | |
1785 | 2322 |
1786fi 1787 1788if test $ac_cv_header_stdc = yes; then 1789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1790cat > conftest.$ac_ext <<EOF 1791#line 1792 "configure" 1792#include "confdefs.h" 1793#include <stdlib.h> | 2323 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6 2324 if test $ac_cv_lbl_have_int32_t = no ; then 2325 cat >> confdefs.h <<\EOF 2326#define int32_t int |
1794EOF | 2327EOF |
1795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1796 egrep "free" >/dev/null 2>&1; then 1797 : 1798else 1799 rm -rf conftest* 1800 ac_cv_header_stdc=no 1801fi 1802rm -f conftest* | |
1803 | 2328 |
1804fi 1805 1806if test $ac_cv_header_stdc = yes; then 1807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1808if test "$cross_compiling" = yes; then 1809 : | 2329 fi 2330echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6 2331echo "configure:2332: checking for u_int32_t using $CC" >&5 2332 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then 2333 echo $ac_n "(cached) $ac_c" 1>&6 |
1810else 1811 cat > conftest.$ac_ext <<EOF | 2334else 2335 cat > conftest.$ac_ext <<EOF |
1812#line 1813 "configure" | 2336#line 2337 "configure" |
1813#include "confdefs.h" | 2337#include "confdefs.h" |
1814#include <ctype.h> 1815#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1816#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1817#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1818int main () { int i; for (i = 0; i < 256; i++) 1819if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1820exit (0); } | |
1821 | 2338 |
2339# include "confdefs.h" 2340# include <sys/types.h> 2341# if STDC_HEADERS 2342# include <stdlib.h> 2343# include <stddef.h> 2344# endif 2345int main() { 2346u_int32_t i 2347; return 0; } |
|
1822EOF | 2348EOF |
1823if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1824then 1825 : | 2349if { (eval echo configure:2350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2350 rm -rf conftest* 2351 ac_cv_lbl_have_u_int32_t=yes |
1826else 1827 echo "configure: failed program was:" >&5 1828 cat conftest.$ac_ext >&5 | 2352else 2353 echo "configure: failed program was:" >&5 2354 cat conftest.$ac_ext >&5 |
1829 rm -fr conftest* 1830 ac_cv_header_stdc=no 1831fi 1832rm -fr conftest* 1833fi 1834 1835fi 1836fi 1837 1838echo "$ac_t""$ac_cv_header_stdc" 1>&6 1839if test $ac_cv_header_stdc = yes; then 1840 cat >> confdefs.h <<\EOF 1841#define STDC_HEADERS 1 1842EOF 1843 1844fi 1845 1846echo $ac_n "checking for int32_t""... $ac_c" 1>&6 1847echo "configure:1848: checking for int32_t" >&5 1848if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then 1849 echo $ac_n "(cached) $ac_c" 1>&6 1850else 1851 cat > conftest.$ac_ext <<EOF 1852#line 1853 "configure" 1853#include "confdefs.h" 1854#include <sys/types.h> 1855#if STDC_HEADERS 1856#include <stdlib.h> 1857#include <stddef.h> 1858#endif 1859EOF 1860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1861 egrep "int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
1862 rm -rf conftest* | 2355 rm -rf conftest* |
1863 ac_cv_type_int32_t=yes 1864else 1865 rm -rf conftest* 1866 ac_cv_type_int32_t=no | 2356 ac_cv_lbl_have_u_int32_t=no |
1867fi 1868rm -f conftest* | 2357fi 2358rm -f conftest* |
1869 | |
1870fi | 2359fi |
1871echo "$ac_t""$ac_cv_type_int32_t" 1>&6 1872if test $ac_cv_type_int32_t = no; then 1873 cat >> confdefs.h <<\EOF 1874#define int32_t int 1875EOF | |
1876 | 2360 |
1877fi 1878 1879echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6 1880echo "configure:1881: checking for u_int32_t" >&5 1881if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then 1882 echo $ac_n "(cached) $ac_c" 1>&6 1883else 1884 cat > conftest.$ac_ext <<EOF 1885#line 1886 "configure" 1886#include "confdefs.h" 1887#include <sys/types.h> 1888#if STDC_HEADERS 1889#include <stdlib.h> 1890#include <stddef.h> 1891#endif 1892EOF 1893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1894 egrep "u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1895 rm -rf conftest* 1896 ac_cv_type_u_int32_t=yes 1897else 1898 rm -rf conftest* 1899 ac_cv_type_u_int32_t=no 1900fi 1901rm -f conftest* 1902 1903fi 1904echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6 1905if test $ac_cv_type_u_int32_t = no; then 1906 cat >> confdefs.h <<\EOF | 2361 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6 2362 if test $ac_cv_lbl_have_u_int32_t = no ; then 2363 cat >> confdefs.h <<\EOF |
1907#define u_int32_t u_int 1908EOF 1909 | 2364#define u_int32_t u_int 2365EOF 2366 |
1910fi | 2367 fi |
1911 | 2368 |
1912 | |
1913rm -f os-proto.h 1914 if test "${LBL_CFLAGS+set}" = set; then 1915 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 1916 fi | 2369rm -f os-proto.h 2370 if test "${LBL_CFLAGS+set}" = set; then 2371 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 2372 fi |
1917 if test $ac_cv_prog_gcc = yes -a -f .devel ; then 1918 if test "${LBL_CFLAGS+set}" != set; then 1919 if test "$ac_cv_prog_cc_g" = yes ; then 1920 V_CCOPT="-g $V_CCOPT" | 2373 if test -f .devel ; then 2374 if test "$GCC" = yes ; then 2375 if test "${LBL_CFLAGS+set}" != set; then 2376 if test "$ac_cv_prog_cc_g" = yes ; then 2377 V_CCOPT="-g $V_CCOPT" 2378 fi 2379 V_CCOPT="$V_CCOPT -Wall" 2380 if test $ac_cv_lbl_gcc_vers -gt 1 ; then 2381 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes" 2382 fi |
1921 fi | 2383 fi |
1922 V_CCOPT="$V_CCOPT -Wall" 1923 if test $ac_cv_gcc_vers -gt 1 ; then 1924 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes" 1925 fi | 2384 else 2385 case "$target_os" in 2386 2387 irix6*) 2388 V_CCOPT="$V_CCOPT -n32" 2389 ;; 2390 2391 *) 2392 ;; 2393 esac |
1926 fi 1927 os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 1928 name="lbl/os-$os.h" 1929 if test -f $name ; then 1930 ln -s $name os-proto.h 1931 cat >> confdefs.h <<\EOF 1932#define HAVE_OS_PROTO_H 1 1933EOF 1934 1935 else 1936 echo "configure: warning: can't find $name" 1>&2 1937 fi 1938 fi 1939 | 2394 fi 2395 os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 2396 name="lbl/os-$os.h" 2397 if test -f $name ; then 2398 ln -s $name os-proto.h 2399 cat >> confdefs.h <<\EOF 2400#define HAVE_OS_PROTO_H 1 2401EOF 2402 2403 else 2404 echo "configure: warning: can't find $name" 1>&2 2405 fi 2406 fi 2407 |
1940echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 1941echo "configure:1942: checking return type of signal handlers" >&5 1942if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 1943 echo $ac_n "(cached) $ac_c" 1>&6 1944else 1945 cat > conftest.$ac_ext <<EOF 1946#line 1947 "configure" 1947#include "confdefs.h" 1948#include <sys/types.h> 1949#include <signal.h> 1950#ifdef signal 1951#undef signal 1952#endif 1953#ifdef __cplusplus 1954extern "C" void (*signal (int, void (*)(int)))(int); 1955#else 1956void (*signal ()) (); 1957#endif 1958 1959int main() { 1960int i; 1961; return 0; } 1962EOF 1963if { (eval echo configure:1964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1964 rm -rf conftest* 1965 ac_cv_type_signal=void 1966else 1967 echo "configure: failed program was:" >&5 1968 cat conftest.$ac_ext >&5 1969 rm -rf conftest* 1970 ac_cv_type_signal=int 1971fi 1972rm -f conftest* 1973fi 1974 1975echo "$ac_t""$ac_cv_type_signal" 1>&6 1976cat >> confdefs.h <<EOF 1977#define RETSIGTYPE $ac_cv_type_signal 1978EOF 1979 1980 1981 if test "$ac_cv_type_signal" = void ; then 1982 cat >> confdefs.h <<\EOF 1983#define RETSIGVAL 1984EOF 1985 1986 else 1987 cat >> confdefs.h <<\EOF 1988#define RETSIGVAL (0) 1989EOF 1990 1991 fi 1992 case "$target_os" in 1993 1994 irix*) 1995 cat >> confdefs.h <<\EOF 1996#define _BSD_SIGNALS 1 1997EOF 1998 1999 ;; 2000 2001 *) 2002 for ac_func in sigset 2003do 2004echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2005echo "configure:2006: checking for $ac_func" >&5 2006if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2007 echo $ac_n "(cached) $ac_c" 1>&6 2008else 2009 cat > conftest.$ac_ext <<EOF 2010#line 2011 "configure" 2011#include "confdefs.h" 2012/* System header to define __stub macros and hopefully few prototypes, 2013 which can conflict with char $ac_func(); below. */ 2014#include <assert.h> 2015/* Override any gcc2 internal prototype to avoid an error. */ 2016/* We use char because int might match the return type of a gcc2 2017 builtin and then its argument prototype would still apply. */ 2018char $ac_func(); 2019 2020int main() { 2021 2022/* The GNU C library defines this for functions which it implements 2023 to always fail with ENOSYS. Some functions are actually named 2024 something starting with __ and the normal name is an alias. */ 2025#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2026choke me 2027#else 2028$ac_func(); 2029#endif 2030 2031; return 0; } 2032EOF 2033if { (eval echo configure:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2034 rm -rf conftest* 2035 eval "ac_cv_func_$ac_func=yes" 2036else 2037 echo "configure: failed program was:" >&5 2038 cat conftest.$ac_ext >&5 2039 rm -rf conftest* 2040 eval "ac_cv_func_$ac_func=no" 2041fi 2042rm -f conftest* 2043fi 2044 2045if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2046 echo "$ac_t""yes" 1>&6 2047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2048 cat >> confdefs.h <<EOF 2049#define $ac_tr_func 1 2050EOF 2051 2052else 2053 echo "$ac_t""no" 1>&6 2054fi 2055done 2056 2057 if test $ac_cv_func_sigset = yes ; then 2058 cat >> confdefs.h <<\EOF 2059#define signal sigset 2060EOF 2061 2062 fi 2063 ;; 2064 esac | |
2065echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6 | 2408echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6 |
2066echo "configure:2067: checking if sockaddr struct has sa_len member" >&5 2067 if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then | 2409echo "configure:2410: checking if sockaddr struct has sa_len member" >&5 2410 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then |
2068 echo $ac_n "(cached) $ac_c" 1>&6 2069else 2070 cat > conftest.$ac_ext <<EOF | 2411 echo $ac_n "(cached) $ac_c" 1>&6 2412else 2413 cat > conftest.$ac_ext <<EOF |
2071#line 2072 "configure" | 2414#line 2415 "configure" |
2072#include "confdefs.h" 2073 2074# include <sys/types.h> 2075# include <sys/socket.h> 2076int main() { 2077u_int i = sizeof(((struct sockaddr *)0)->sa_len) 2078; return 0; } 2079EOF | 2415#include "confdefs.h" 2416 2417# include <sys/types.h> 2418# include <sys/socket.h> 2419int main() { 2420u_int i = sizeof(((struct sockaddr *)0)->sa_len) 2421; return 0; } 2422EOF |
2080if { (eval echo configure:2081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2423if { (eval echo configure:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2081 rm -rf conftest* | 2424 rm -rf conftest* |
2082 ac_cv_sockaddr_has_sa_len=yes | 2425 ac_cv_lbl_sockaddr_has_sa_len=yes |
2083else 2084 echo "configure: failed program was:" >&5 2085 cat conftest.$ac_ext >&5 2086 rm -rf conftest* | 2426else 2427 echo "configure: failed program was:" >&5 2428 cat conftest.$ac_ext >&5 2429 rm -rf conftest* |
2087 ac_cv_sockaddr_has_sa_len=no | 2430 ac_cv_lbl_sockaddr_has_sa_len=no |
2088fi 2089rm -f conftest* 2090fi 2091 | 2431fi 2432rm -f conftest* 2433fi 2434 |
2092 echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6 2093 if test $ac_cv_sockaddr_has_sa_len = yes ; then | 2435 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6 2436 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then |
2094 cat >> confdefs.h <<\EOF 2095#define HAVE_SOCKADDR_SA_LEN 1 2096EOF 2097 2098 fi 2099 2100echo $ac_n "checking if ether_header uses ether_addr structs""... $ac_c" 1>&6 | 2437 cat >> confdefs.h <<\EOF 2438#define HAVE_SOCKADDR_SA_LEN 1 2439EOF 2440 2441 fi 2442 2443echo $ac_n "checking if ether_header uses ether_addr structs""... $ac_c" 1>&6 |
2101echo "configure:2102: checking if ether_header uses ether_addr structs" >&5 | 2444echo "configure:2445: checking if ether_header uses ether_addr structs" >&5 |
2102if eval "test \"`echo '$''{'ac_cv_ether_header_has_ea'+set}'`\" = set"; then 2103 echo $ac_n "(cached) $ac_c" 1>&6 2104else 2105 LBL_SAVE_CFLAGS="$CFLAGS" 2106 CFLAGS="$CFLAGS $V_INCLS" 2107 cat > conftest.$ac_ext <<EOF | 2445if eval "test \"`echo '$''{'ac_cv_ether_header_has_ea'+set}'`\" = set"; then 2446 echo $ac_n "(cached) $ac_c" 1>&6 2447else 2448 LBL_SAVE_CFLAGS="$CFLAGS" 2449 CFLAGS="$CFLAGS $V_INCLS" 2450 cat > conftest.$ac_ext <<EOF |
2108#line 2109 "configure" | 2451#line 2452 "configure" |
2109#include "confdefs.h" 2110 2111# include <sys/types.h> 2112# if __STDC__ 2113 /* osf3 has REALLY good prototyes */ 2114 struct mbuf; 2115 struct rtentry; 2116# endif 2117# include <sys/socket.h> 2118# include <net/if.h> 2119# include <netinet/in.h> 2120# include <netinet/if_ether.h> 2121int main() { 2122u_int i = 2123 sizeof(((struct ether_header *)0)->ether_dhost.ether_addr_octet) 2124; return 0; } 2125EOF | 2452#include "confdefs.h" 2453 2454# include <sys/types.h> 2455# if __STDC__ 2456 /* osf3 has REALLY good prototyes */ 2457 struct mbuf; 2458 struct rtentry; 2459# endif 2460# include <sys/socket.h> 2461# include <net/if.h> 2462# include <netinet/in.h> 2463# include <netinet/if_ether.h> 2464int main() { 2465u_int i = 2466 sizeof(((struct ether_header *)0)->ether_dhost.ether_addr_octet) 2467; return 0; } 2468EOF |
2126if { (eval echo configure:2127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2469if { (eval echo configure:2470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2127 rm -rf conftest* 2128 ac_cv_ether_header_has_ea=yes 2129else 2130 echo "configure: failed program was:" >&5 2131 cat conftest.$ac_ext >&5 2132 rm -rf conftest* 2133 ac_cv_ether_header_has_ea=no 2134fi --- 5 unchanged lines hidden (view full) --- 2140if test $ac_cv_ether_header_has_ea = yes ; then 2141 cat >> confdefs.h <<\EOF 2142#define ETHER_HEADER_HAS_EA 1 2143EOF 2144 2145fi 2146 2147echo $ac_n "checking if ether_arp uses ether_addr structs""... $ac_c" 1>&6 | 2470 rm -rf conftest* 2471 ac_cv_ether_header_has_ea=yes 2472else 2473 echo "configure: failed program was:" >&5 2474 cat conftest.$ac_ext >&5 2475 rm -rf conftest* 2476 ac_cv_ether_header_has_ea=no 2477fi --- 5 unchanged lines hidden (view full) --- 2483if test $ac_cv_ether_header_has_ea = yes ; then 2484 cat >> confdefs.h <<\EOF 2485#define ETHER_HEADER_HAS_EA 1 2486EOF 2487 2488fi 2489 2490echo $ac_n "checking if ether_arp uses ether_addr structs""... $ac_c" 1>&6 |
2148echo "configure:2149: checking if ether_arp uses ether_addr structs" >&5 | 2491echo "configure:2492: checking if ether_arp uses ether_addr structs" >&5 |
2149if eval "test \"`echo '$''{'ac_cv_ether_arp_has_ea'+set}'`\" = set"; then 2150 echo $ac_n "(cached) $ac_c" 1>&6 2151else 2152 LBL_SAVE_CFLAGS="$CFLAGS" 2153 CFLAGS="$CFLAGS $V_INCLS" 2154 cat > conftest.$ac_ext <<EOF | 2492if eval "test \"`echo '$''{'ac_cv_ether_arp_has_ea'+set}'`\" = set"; then 2493 echo $ac_n "(cached) $ac_c" 1>&6 2494else 2495 LBL_SAVE_CFLAGS="$CFLAGS" 2496 CFLAGS="$CFLAGS $V_INCLS" 2497 cat > conftest.$ac_ext <<EOF |
2155#line 2156 "configure" | 2498#line 2499 "configure" |
2156#include "confdefs.h" 2157 2158# include <sys/types.h> 2159# if __STDC__ 2160 /* osf3 has REALLY good prototyes */ 2161 struct mbuf; 2162 struct rtentry; 2163# endif 2164# include <sys/socket.h> 2165# include <net/if.h> 2166# include <netinet/in.h> 2167# include <netinet/if_ether.h> 2168int main() { 2169u_int i = 2170 sizeof(((struct ether_arp *)0)->arp_sha.ether_addr_octet) 2171; return 0; } 2172EOF | 2499#include "confdefs.h" 2500 2501# include <sys/types.h> 2502# if __STDC__ 2503 /* osf3 has REALLY good prototyes */ 2504 struct mbuf; 2505 struct rtentry; 2506# endif 2507# include <sys/socket.h> 2508# include <net/if.h> 2509# include <netinet/in.h> 2510# include <netinet/if_ether.h> 2511int main() { 2512u_int i = 2513 sizeof(((struct ether_arp *)0)->arp_sha.ether_addr_octet) 2514; return 0; } 2515EOF |
2173if { (eval echo configure:2174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2516if { (eval echo configure:2517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2174 rm -rf conftest* 2175 ac_cv_ether_arp_has_ea=yes 2176else 2177 echo "configure: failed program was:" >&5 2178 cat conftest.$ac_ext >&5 2179 rm -rf conftest* 2180 ac_cv_ether_arp_has_ea=no 2181fi --- 5 unchanged lines hidden (view full) --- 2187if test $ac_cv_ether_arp_has_ea = yes ; then 2188 cat >> confdefs.h <<\EOF 2189#define ETHER_ARP_HAS_EA 1 2190EOF 2191 2192fi 2193 2194echo $ac_n "checking if ether_arp uses erp_xsha member""... $ac_c" 1>&6 | 2517 rm -rf conftest* 2518 ac_cv_ether_arp_has_ea=yes 2519else 2520 echo "configure: failed program was:" >&5 2521 cat conftest.$ac_ext >&5 2522 rm -rf conftest* 2523 ac_cv_ether_arp_has_ea=no 2524fi --- 5 unchanged lines hidden (view full) --- 2530if test $ac_cv_ether_arp_has_ea = yes ; then 2531 cat >> confdefs.h <<\EOF 2532#define ETHER_ARP_HAS_EA 1 2533EOF 2534 2535fi 2536 2537echo $ac_n "checking if ether_arp uses erp_xsha member""... $ac_c" 1>&6 |
2195echo "configure:2196: checking if ether_arp uses erp_xsha member" >&5 | 2538echo "configure:2539: checking if ether_arp uses erp_xsha member" >&5 |
2196if eval "test \"`echo '$''{'ac_cv_struct_ether_arp_x'+set}'`\" = set"; then 2197 echo $ac_n "(cached) $ac_c" 1>&6 2198else 2199 LBL_SAVE_CFLAGS="$CFLAGS" 2200 CFLAGS="$CFLAGS $V_INCLS" 2201 cat > conftest.$ac_ext <<EOF | 2539if eval "test \"`echo '$''{'ac_cv_struct_ether_arp_x'+set}'`\" = set"; then 2540 echo $ac_n "(cached) $ac_c" 1>&6 2541else 2542 LBL_SAVE_CFLAGS="$CFLAGS" 2543 CFLAGS="$CFLAGS $V_INCLS" 2544 cat > conftest.$ac_ext <<EOF |
2202#line 2203 "configure" | 2545#line 2546 "configure" |
2203#include "confdefs.h" 2204 2205# include <sys/types.h> 2206# include <sys/socket.h> 2207# if __STDC__ 2208 /* osf3 has REALLY good prototyes */ 2209 struct mbuf; 2210 struct rtentry; 2211# endif 2212# include <net/if.h> 2213# include <netinet/in.h> 2214# include <netinet/if_ether.h> 2215int main() { 2216u_int i = sizeof( ((struct ether_arp *)0)->arp_xsha) 2217; return 0; } 2218EOF | 2546#include "confdefs.h" 2547 2548# include <sys/types.h> 2549# include <sys/socket.h> 2550# if __STDC__ 2551 /* osf3 has REALLY good prototyes */ 2552 struct mbuf; 2553 struct rtentry; 2554# endif 2555# include <net/if.h> 2556# include <netinet/in.h> 2557# include <netinet/if_ether.h> 2558int main() { 2559u_int i = sizeof( ((struct ether_arp *)0)->arp_xsha) 2560; return 0; } 2561EOF |
2219if { (eval echo configure:2220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2562if { (eval echo configure:2563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2220 rm -rf conftest* 2221 ac_cv_struct_ether_arp_x=yes 2222else 2223 echo "configure: failed program was:" >&5 2224 cat conftest.$ac_ext >&5 2225 rm -rf conftest* 2226 ac_cv_struct_ether_arp_x=no 2227fi --- 5 unchanged lines hidden (view full) --- 2233if test $ac_cv_struct_ether_arp_x = yes ; then 2234 cat >> confdefs.h <<\EOF 2235#define ETHER_ARP_HAS_X 1 2236EOF 2237 2238fi 2239 2240echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6 | 2563 rm -rf conftest* 2564 ac_cv_struct_ether_arp_x=yes 2565else 2566 echo "configure: failed program was:" >&5 2567 cat conftest.$ac_ext >&5 2568 rm -rf conftest* 2569 ac_cv_struct_ether_arp_x=no 2570fi --- 5 unchanged lines hidden (view full) --- 2576if test $ac_cv_struct_ether_arp_x = yes ; then 2577 cat >> confdefs.h <<\EOF 2578#define ETHER_ARP_HAS_X 1 2579EOF 2580 2581fi 2582 2583echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6 |
2241echo "configure:2242: checking if unaligned accesses fail" >&5 2242 if eval "test \"`echo '$''{'ac_cv_unaligned_fail'+set}'`\" = set"; then | 2584echo "configure:2585: checking if unaligned accesses fail" >&5 2585 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then |
2243 echo $ac_n "(cached) $ac_c" 1>&6 2244else 2245 case "$target_cpu" in 2246 2247 alpha|hp*|mips|sparc) | 2586 echo $ac_n "(cached) $ac_c" 1>&6 2587else 2588 case "$target_cpu" in 2589 2590 alpha|hp*|mips|sparc) |
2248 ac_cv_unaligned_fail=yes | 2591 ac_cv_lbl_unaligned_fail=yes |
2249 ;; 2250 2251 *) 2252 cat >conftest.c <<EOF 2253# include <sys/types.h> 2254# include <sys/wait.h> 2255# include <stdio.h> 2256 unsigned char a[5] = { 1, 2, 3, 4, 5 }; --- 16 unchanged lines hidden (view full) --- 2273 i = *(unsigned int *)&a[1]; 2274 printf("%d\n", i); 2275 exit(0); 2276 } 2277EOF 2278 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 2279 conftest.c $LIBS >/dev/null 2>&1 2280 if test ! -x conftest ; then | 2592 ;; 2593 2594 *) 2595 cat >conftest.c <<EOF 2596# include <sys/types.h> 2597# include <sys/wait.h> 2598# include <stdio.h> 2599 unsigned char a[5] = { 1, 2, 3, 4, 5 }; --- 16 unchanged lines hidden (view full) --- 2616 i = *(unsigned int *)&a[1]; 2617 printf("%d\n", i); 2618 exit(0); 2619 } 2620EOF 2621 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 2622 conftest.c $LIBS >/dev/null 2>&1 2623 if test ! -x conftest ; then |
2281 ac_cv_unaligned_fail=yes | 2624 ac_cv_lbl_unaligned_fail=yes |
2282 else 2283 ./conftest >conftest.out 2284 if test ! -s conftest.out ; then | 2625 else 2626 ./conftest >conftest.out 2627 if test ! -s conftest.out ; then |
2285 ac_cv_unaligned_fail=yes | 2628 ac_cv_lbl_unaligned_fail=yes |
2286 else | 2629 else |
2287 ac_cv_unaligned_fail=no | 2630 ac_cv_lbl_unaligned_fail=no |
2288 fi 2289 fi 2290 rm -f conftest* core core.conftest 2291 ;; 2292 esac 2293fi 2294 | 2631 fi 2632 fi 2633 rm -f conftest* core core.conftest 2634 ;; 2635 esac 2636fi 2637 |
2295 echo "$ac_t""$ac_cv_unaligned_fail" 1>&6 2296 if test $ac_cv_unaligned_fail = yes ; then | 2638 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6 2639 if test $ac_cv_lbl_unaligned_fail = yes ; then |
2297 cat >> confdefs.h <<\EOF 2298#define LBL_ALIGN 1 2299EOF 2300 2301 fi 2302 | 2640 cat >> confdefs.h <<\EOF 2641#define LBL_ALIGN 1 2642EOF 2643 2644 fi 2645 |
2303if test -r lbl/gnuc.h ; then | 2646if test "${srcdir}" = "." ; then 2647 srcdirprefix="" 2648else 2649 srcdirprefix="./" 2650fi 2651 2652if test -r ${srcdirprefix}lbl/gnuc.h ; then |
2304 rm -f gnuc.h | 2653 rm -f gnuc.h |
2305 ln -s lbl/gnuc.h gnuc.h | 2654 ln -s ${srcdirprefix}lbl/gnuc.h gnuc.h |
2306fi 2307 2308 2309 2310 2311 2312 2313# Find a good install program. We prefer a C program (faster), 2314# so one script is as good as another. But avoid the broken or 2315# incompatible versions: 2316# SysV /etc/install, /usr/sbin/install 2317# SunOS /usr/etc/install 2318# IRIX /sbin/install 2319# AIX /bin/install 2320# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2321# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2322# ./install, which can be erroneously created by make from ./install.sh. 2323echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 2655fi 2656 2657 2658 2659 2660 2661 2662# Find a good install program. We prefer a C program (faster), 2663# so one script is as good as another. But avoid the broken or 2664# incompatible versions: 2665# SysV /etc/install, /usr/sbin/install 2666# SunOS /usr/etc/install 2667# IRIX /sbin/install 2668# AIX /bin/install 2669# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2670# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2671# ./install, which can be erroneously created by make from ./install.sh. 2672echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
2324echo "configure:2325: checking for a BSD compatible install" >&5 | 2673echo "configure:2674: checking for a BSD compatible install" >&5 |
2325if test -z "$INSTALL"; then 2326if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2327 echo $ac_n "(cached) $ac_c" 1>&6 2328else 2329 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2330 for ac_dir in $PATH; do 2331 # Account for people who put trailing slashes in PATH elements. 2332 case "$ac_dir/" in --- 326 unchanged lines hidden --- | 2674if test -z "$INSTALL"; then 2675if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2676 echo $ac_n "(cached) $ac_c" 1>&6 2677else 2678 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2679 for ac_dir in $PATH; do 2680 # Account for people who put trailing slashes in PATH elements. 2681 case "$ac_dir/" in --- 326 unchanged lines hidden --- |