> From: Paul Hampson
> Sent: Monday, 13 October 2003 3:01 PM
> > From: Rohaizam Abu Bakar
> > Sent: Monday, 13 October 2003 11:34 AM
>
> > below is your request
> >
> > #define HOSTINFO "i386-unknown-freebsd5.1"
> >
> OK, try the following patch to configure and see if it
> helps any...
>
> (IE use this patch, rerun configure and then see what the
> value of GETHOSTBYADDRSTYLE and GETHOSTBYNAMETYLE in
> src/include/autoconf.h is. Then try building.)
>
> Only the first hunk needs to work. The rest are OK if they fail,
> since they're just line-number changes.
Dammit. Here's the fixed patch:
Index: configure
===================================================================
RCS file: /source/radiusd/configure,v
retrieving revision 1.73.2.8
diff -u -r1.73.2.8 configure
--- configure 4 Sep 2003 15:14:10 -0000 1.73.2.8
+++ configure 13 Oct 2003 05:20:12 -0000
@@ -7975,8 +7975,19 @@
gethostbyaddrrstyle=""
echo $ac_n "checking gethostbyaddr_r() syntax""... $ac_c" 1>&6
echo "configure:7978: checking gethostbyaddr_r() syntax" >&5
-cat > conftest.$ac_ext <<EOF
-#line 7980 "configure"
+case "$host" in
+*-freebsd*)
+ cat >> confdefs.h <<\EOF
+#define GETHOSTBYADDRRSTYLE BSDSTYLE
+EOF
+
+ gethostbyaddrrstyle=BSD
+ echo "configure: warning: FreeBSD overridden to BSD-style" 1>&2
+ ;;
+esac
+if test "x$gethostbyaddrrstyle" = "x"; then
+ cat > conftest.$ac_ext <<EOF
+#line 7991 "configure"
#include "confdefs.h"
#include <stdio.h>
@@ -7986,7 +7997,7 @@
gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
; return 0; }
EOF
-if { (eval echo configure:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test
-s conftest${ac_exeext}; then
+if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test
-s conftest${ac_exeext}; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
@@ -8000,9 +8011,10 @@
cat conftest.$ac_ext >&5
fi
rm -f conftest*
+fi
if test "x$gethostbyaddrrstyle" = "x"; then
cat > conftest.$ac_ext <<EOF
-#line 8006 "configure"
+#line 8018 "configure"
#include "confdefs.h"
#include <stdio.h>
@@ -8012,7 +8024,7 @@
gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
; return 0; }
EOF
-if { (eval echo configure:8016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test
-s conftest${ac_exeext}; then
+if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test
-s conftest${ac_exeext}; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
@@ -8029,7 +8041,7 @@
fi
if test "x$gethostbyaddrrstyle" = "x"; then
cat > conftest.$ac_ext <<EOF
-#line 8033 "configure"
+#line 8045 "configure"
#include "confdefs.h"
#include <stdio.h>
@@ -8039,7 +8051,7 @@
gethostbyaddr(NULL, 0, 0)
; return 0; }
EOF
-if { (eval echo configure:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test
-s conftest${ac_exeext}; then
+if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test
-s conftest${ac_exeext}; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
@@ -8064,9 +8076,9 @@
gethostbynamerstyle=""
echo $ac_n "checking gethostbyname_r() syntax""... $ac_c" 1>&6
-echo "configure:8068: checking gethostbyname_r() syntax" >&5
+echo "configure:8080: checking gethostbyname_r() syntax" >&5
cat > conftest.$ac_ext <<EOF
-#line 8070 "configure"
+#line 8082 "configure"
#include "confdefs.h"
#include <stdio.h>
@@ -8076,7 +8088,7 @@
gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
; return 0; }
EOF
-if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test
-s conftest${ac_exeext}; then
+if { (eval echo configure:8092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test
-s conftest${ac_exeext}; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
@@ -8092,7 +8104,7 @@
rm -f conftest*
if test "x$gethostbynamerstyle" = "x"; then
cat > conftest.$ac_ext <<EOF
-#line 8096 "configure"
+#line 8108 "configure"
#include "confdefs.h"
#include <stdio.h>
@@ -8102,7 +8114,7 @@
gethostbyname_r(NULL, NULL, NULL, 0, NULL)
; return 0; }
EOF
-if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test
-s conftest${ac_exeext}; then
+if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test
-s conftest${ac_exeext}; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
@@ -8119,7 +8131,7 @@
fi
if test "x$gethostbynamerstyle" = "x"; then
cat > conftest.$ac_ext <<EOF
-#line 8123 "configure"
+#line 8135 "configure"
#include "confdefs.h"
#include <stdio.h>
@@ -8129,7 +8141,7 @@
gethostbyname(NULL)
; return 0; }
EOF
-if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test
-s conftest${ac_exeext}; then
+if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test
-s conftest${ac_exeext}; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
@@ -8154,7 +8166,7 @@
if test x"$rad_enable_largefiles" = xyes ; then
echo $ac_n "checking for largefile linkage""... $ac_c" 1>&6
-echo "configure:8158: checking for largefile linkage" >&5
+echo "configure:8170: checking for largefile linkage" >&5
case "$host" in
*-aix4.01*)
echo "$ac_t""no" 1>&6
@@ -8191,7 +8203,7 @@
# Extract the first word of "getconf", so it can be a program name with args.
set dummy getconf; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:8195: checking for $ac_word" >&5
+echo "configure:8207: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
--
Paul "TBBle" Hampson
Bubblesworth Pty Ltd (ABN: 51 095 284 361)
[EMAIL PROTECTED]
On a sidewalk near Portland State
University someone wrote `Trust Jesus', and
someone else wrote `But Cut the Cards'.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html