Import dns/idnkit version 1.0_3
[dports.git] / dns / idnkit / files / patch-configure
1 Index: configure
2 diff -u configure.orig configure
3 --- configure.orig      Tue Mar 11 08:53:20 2003
4 +++ configure   Sun Sep  3 21:07:20 2006
5 @@ -2633,7 +2644,37 @@
6    ac_cv_flavor_gethostbyaddr=unknown
7  else
8    cat > conftest.$ac_ext <<EOF
9 -#line 2637 "configure"
10 +#line 2648 "configure"
11 +#include "confdefs.h"
12 +
13 +    #include <stddef.h>
14 +    #include <sys/types.h>
15 +    #include <sys/socket.h>
16 +    #include <netdb.h>
17 +    struct hostent *gethostbyaddr(const void *addr, int len, int type) {
18 +       return NULL;
19 +    }
20 +    int main() {
21 +       (void)gethostbyaddr(NULL, 0, 0);
22 +       return 0;
23 +    }
24 +    
25 +EOF
26 +if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
27 +then
28 +  ac_cv_flavor_gethostbyaddr=freebsd6
29 +else
30 +  echo "configure: failed program was:" >&5
31 +  cat conftest.$ac_ext >&5
32 +fi
33 +rm -fr conftest*
34 +fi
35 +
36 +    if test "$cross_compiling" = yes; then
37 +  ac_cv_flavor_gethostbyaddr=unknown
38 +else
39 +  cat > conftest.$ac_ext <<EOF
40 +#line 2678 "configure"
41  #include "confdefs.h"
42  
43      #include <stddef.h>
44 @@ -2675,6 +2716,10 @@
45         ac_cv_type_ghba_addr_t='const char *'
46         ac_cv_type_ghba_addrlen_t='size_t'
47         ;;
48 +    freebsd6)
49 +       ac_cv_type_ghba_addr_t='const void *'
50 +       ac_cv_type_ghba_addrlen_t='int'
51 +       ;;
52      traditional | none)
53         ac_cv_type_ghba_addr_t='const char *'
54         ac_cv_type_ghba_addrlen_t='int'