source:
freewrt/package/bind/patches/cross-compile.patch@
9df7618
| Last change on this file since 9df7618 was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 5.8 KB | |
-
configure
old new 23675 23675 # which provides some (all?) of the desired functions. 23676 23676 # 23677 23677 23678 echo "$as_me:$LINENO: checking for inet_ntop with IPv6 support" >&523679 echo $ECHO_N "checking for inet_ntop with IPv6 support... $ECHO_C" >&623680 if test "$cross_compiling" = yes; then23681 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling23682 See \`config.log' for more details." >&523683 echo "$as_me: error: cannot run test program while cross compiling23684 See \`config.log' for more details." >&2;}23685 { (exit 1); exit 1; }; }23686 else23687 cat >conftest.$ac_ext <<_ACEOF23688 /* confdefs.h. */23689 _ACEOF23690 cat confdefs.h >>conftest.$ac_ext23691 cat >>conftest.$ac_ext <<_ACEOF23692 /* end confdefs.h. */23693 23694 #include <sys/types.h>23695 #include <sys/socket.h>23696 #include <netinet/in.h>23697 #include <arpa/inet.h>23698 main() {23699 char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);}23700 _ACEOF23701 rm -f conftest$ac_exeext23702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&523703 (eval $ac_link) 2>&523704 ac_status=$?23705 echo "$as_me:$LINENO: \$? = $ac_status" >&523706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'23707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&523708 (eval $ac_try) 2>&523709 ac_status=$?23710 echo "$as_me:$LINENO: \$? = $ac_status" >&523711 (exit $ac_status); }; }; then23712 echo "$as_me:$LINENO: result: yes" >&523713 echo "${ECHO_T}yes" >&623714 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"23715 else23716 echo "$as_me: program exited with status $ac_status" >&523717 echo "$as_me: failed program was:" >&523718 sed 's/^/| /' conftest.$ac_ext >&523719 23720 ( exit $ac_status )23721 echo "$as_me:$LINENO: result: no" >&523722 echo "${ECHO_T}no" >&623723 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"23724 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"23725 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"23726 fi23727 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext23728 fi23729 23730 23731 # On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts23732 # addresses with less than four octets, like "1.2.3". Also leading23733 # zeros should also be rejected.23734 23735 echo "$as_me:$LINENO: checking for working inet_pton with IPv6 support" >&523736 echo $ECHO_N "checking for working inet_pton with IPv6 support... $ECHO_C" >&623737 if test "$cross_compiling" = yes; then23738 echo "$as_me:$LINENO: result: assuming target platform has working inet_pton" >&523739 echo "${ECHO_T}assuming target platform has working inet_pton" >&623740 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"23741 else23742 cat >conftest.$ac_ext <<_ACEOF23743 /* confdefs.h. */23744 _ACEOF23745 cat confdefs.h >>conftest.$ac_ext23746 cat >>conftest.$ac_ext <<_ACEOF23747 /* end confdefs.h. */23748 23749 #include <sys/types.h>23750 #include <sys/socket.h>23751 #include <netinet/in.h>23752 #include <arpa/inet.h>23753 main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :23754 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 :23755 (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); }23756 _ACEOF23757 rm -f conftest$ac_exeext23758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&523759 (eval $ac_link) 2>&523760 ac_status=$?23761 echo "$as_me:$LINENO: \$? = $ac_status" >&523762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'23763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&523764 (eval $ac_try) 2>&523765 ac_status=$?23766 echo "$as_me:$LINENO: \$? = $ac_status" >&523767 (exit $ac_status); }; }; then23768 echo "$as_me:$LINENO: result: yes" >&523769 echo "${ECHO_T}yes" >&623770 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"23771 else23772 echo "$as_me: program exited with status $ac_status" >&523773 echo "$as_me: failed program was:" >&523774 sed 's/^/| /' conftest.$ac_ext >&523775 23776 ( exit $ac_status )23777 echo "$as_me:$LINENO: result: no" >&523778 echo "${ECHO_T}no" >&623779 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"23780 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"23781 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"23782 fi23783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext23784 fi23785 23786 echo "$as_me:$LINENO: checking for inet_aton" >&523787 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&623788 cat >conftest.$ac_ext <<_ACEOF23789 /* confdefs.h. */23790 _ACEOF23791 cat confdefs.h >>conftest.$ac_ext23792 cat >>conftest.$ac_ext <<_ACEOF23793 /* end confdefs.h. */23794 23795 #include <sys/types.h>23796 #include <netinet/in.h>23797 #include <arpa/inet.h>23798 int23799 main ()23800 {23801 struct in_addr in; inet_aton(0, &in); return (0);23802 ;23803 return 0;23804 }23805 _ACEOF23806 rm -f conftest.$ac_objext conftest$ac_exeext23807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&523808 (eval $ac_link) 2>conftest.er123809 ac_status=$?23810 grep -v '^ *+' conftest.er1 >conftest.err23811 rm -f conftest.er123812 cat conftest.err >&523813 echo "$as_me:$LINENO: \$? = $ac_status" >&523814 (exit $ac_status); } &&23815 { ac_try='test -z "$ac_c_werror_flag"23816 || test ! -s conftest.err'23817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&523818 (eval $ac_try) 2>&523819 ac_status=$?23820 echo "$as_me:$LINENO: \$? = $ac_status" >&523821 (exit $ac_status); }; } &&23822 { ac_try='test -s conftest$ac_exeext'23823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&523824 (eval $ac_try) 2>&523825 ac_status=$?23826 echo "$as_me:$LINENO: \$? = $ac_status" >&523827 (exit $ac_status); }; }; then23828 echo "$as_me:$LINENO: result: yes" >&523829 echo "${ECHO_T}yes" >&623830 ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"23831 else23832 echo "$as_me: failed program was:" >&523833 sed 's/^/| /' conftest.$ac_ext >&523834 23835 echo "$as_me:$LINENO: result: no" >&523836 echo "${ECHO_T}no" >&623837 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"23838 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"23839 ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"23840 fi23841 rm -f conftest.err conftest.$ac_objext \23842 conftest$ac_exeext conftest.$ac_ext23843 23844 23845 23846 23847 23678 23848 23679 # 23849 23680 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
Note:
See TracBrowser
for help on using the repository browser.
