1IDN patch for bind-9.2.1 2======================== 3 4 5This is a patch file for ISC BIND 9.2.1 to make it work with 6internationalized domain names. With this patch you'll get IDN-aware 7dig/host/nslookup. 8 9To apply this patch, you should go to the top directory of the BIND 10distribution (where you see `README' file), then invoke `patch' 11command like this: 12 13 % patch -p0 < this-file 14 15Then follow the instructions described in `README.idnkit' to compile 16and install. 17 18 19Index: README.idnkit 20diff -c /dev/null mdn/othersrc/bind9/README.idnkit:1.2 21*** README.idnkit Mon May 27 16:53:24 2002 22--- README.idnkit Tue Mar 26 16:35:05 2002 23*************** 24*** 0 **** 25--- 1,113 ---- 26+ 27+ BIND-9 IDN patch 28+ 29+ Japan Network Information Center (JPNIC) 30+ 31+ 32+ * What is this patch for? 33+ 34+ This patch adds internationalized domain name (IDN) support to BIND-9. 35+ You'll get internationalized version of dig/host/nslookup commands. 36+ 37+ + internationalized dig/host/nslookup 38+ dig/host/nslookup accepts non-ASCII domain names in the local 39+ codeset (such as Shift JIS, Big5 or ISO8859-1) determined by 40+ the locale information. The domain names are normalized and 41+ converted to the encoding on the DNS protocol, and sent to DNS 42+ servers. The replies are converted back to the local codeset 43+ and displayed. 44+ 45+ 46+ * Compilation & installation 47+ 48+ 0. Prerequisite 49+ 50+ You have to build and install idnkit before building this patched version 51+ of bind-9. 52+ 53+ 1. Running configure script 54+ 55+ Run `configure' in the top directory. See `README' for the 56+ configuration options. 57+ 58+ This patch adds the following 4 options to `configure'. You should 59+ at least specify `--with-idn' option to enable IDN support. 60+ 61+ --with-idn[=IDN_PREFIX] 62+ To enable IDN support, you have to specify `--with-idn' option. 63+ The argument IDN_PREFIX is the install prefix of idnkit. If 64+ IDN_PREFIX is omitted, PREFIX (derived from `--prefix=PREFIX') 65+ is assumed. 66+ 67+ --with-libiconv[=LIBICONV_PREFIX] 68+ Specify this option if idnkit you have installed links GNU 69+ libiconv. The argument LIBICONV_PREFIX is install prefix of 70+ GNU libiconv. If the argument is omitted, PREFIX (derived 71+ from `--prefix=PREFIX') is assumed. 72+ 73+ `--with-libiconv' is shorthand option for GNU libiconv. 74+ 75+ --with-libiconv=/usr/local 76+ 77+ This is equivalent to: 78+ 79+ --with-iconv='-L/usr/local/lib -R/usr/local/lib -liconv' 80+ 81+ `--with-libiconv' assumes that your C compiler has `-R' 82+ option, and that the option adds the specified run-time path 83+ to an exacutable binary. If `-R' option of your compiler has 84+ different meaning, or your compiler lacks the option, you 85+ should use `--with-iconv' option instead. Binary command 86+ without run-time path information might be unexecutable. 87+ In that case, you would see an error message like: 88+ 89+ error in loading shared libraries: libiconv.so.2: cannot 90+ open shared object file 91+ 92+ If both `--with-libiconv' and `--with-iconv' options are 93+ specified, `--with-iconv' is prior to `--with-libiconv'. 94+ 95+ --with-iconv=ICONV_LIBSPEC 96+ If your libc doens't provide iconv(), you need to specify the 97+ library containing iconv() with this option. `ICONV_LIBSPEC' 98+ is the argument(s) to `cc' or `ld' to link the library, for 99+ example, `--with-iconv="-L/usr/local/lib -liconv"'. 100+ You don't need to specify the header file directory for "iconv.h" 101+ to the compiler, as it isn't included directly by bind-9 with 102+ this patch. 103+ 104+ --with-idnlib=IDN_LIBSPEC 105+ With this option, you can explicitly specify the argument(s) 106+ to `cc' or `ld' to link the idnkit's library, `libidnkit'. If 107+ this option is not specified, `-L${PREFIX}/lib -lidnkit' is 108+ assumed, where ${PREFIX} is the installation prefix specified 109+ with `--with-idn' option above. You may need to use this 110+ option to specify extra argments, for example, 111+ `--with-idnlib="-L/usr/local/lib -R/usr/local/lib -lidnkit"'. 112+ 113+ Please consult `README' for other configuration options. 114+ 115+ Note that if you want to specify some extra header file directories, 116+ you should use the environment variable STD_CINCLUDES instead of 117+ CFLAGS, as described in README. 118+ 119+ 2. Compilation and installation 120+ 121+ After running "configure", just do 122+ 123+ make 124+ make install 125+ 126+ for compiling and installing. 127+ 128+ 129+ * Contact information 130+ 131+ Please see http//www.nic.ad.jp/jp/research/mdn/ for the latest news 132+ about idnkit and this patch. 133+ 134+ Bug reports and comments on this kit should be sent to 135+ mdnkit-bugs@nic.ad.jp and mdn-cmt@nic.ad.jp, respectively. 136+ 137+ 138+ ; $Id: bind-9.2.1-patch,v 1.1 2002/05/28 04:09:24 m-kasahr Exp $ 139Index: config.h.in 140diff -c mdn/othersrc/bind9/config.h.in:1.1.1.6 mdn/othersrc/bind9/config.h.in:1.12 141*** config.h.in Tue Nov 27 16:55:45 2001 142--- config.h.in Tue Mar 19 16:45:35 2002 143*************** 144*** 141,146 **** 145--- 141,149 ---- 146 /* define if you have strerror in the C library. */ 147 #undef HAVE_STRERROR 148 149+ /* Define if you have the setlocale function. */ 150+ #undef HAVE_SETLOCALE 151+ 152 /* Define if you have the <dlfcn.h> header file. */ 153 #undef HAVE_DLFCN_H 154 155*************** 156*** 150,155 **** 157--- 153,161 ---- 158 /* Define if you have the <linux/capability.h> header file. */ 159 #undef HAVE_LINUX_CAPABILITY_H 160 161+ /* Define if you have the <locale.h> header file. */ 162+ #undef HAVE_LOCALE_H 163+ 164 /* Define if you have the <sys/prctl.h> header file. */ 165 #undef HAVE_SYS_PRCTL_H 166 167*************** 168*** 176,178 **** 169--- 182,188 ---- 170 171 /* Define if you have the socket library (-lsocket). */ 172 #undef HAVE_LIBSOCKET 173+ 174+ /* define if idnkit support is to be included. */ 175+ #undef WITH_IDN 176+ 177Index: configure 178diff -c mdn/othersrc/bind9/configure:1.1.1.9 mdn/othersrc/bind9/configure:1.15 179*** configure Wed May 22 17:14:53 2002 180--- configure Mon May 27 12:10:14 2002 181*************** 182*** 369,374 **** 183--- 369,382 ---- 184 --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]" 185 ac_help="$ac_help 186 --disable-linux-caps disable linux capabilities" 187+ ac_help="$ac_help 188+ --with-idn[=MPREFIX] enable IDN support using idnkit [default PREFIX]" 189+ ac_help="$ac_help 190+ --with-libiconv[=IPREFIX] GNU libiconv are in IPREFIX [default PREFIX]" 191+ ac_help="$ac_help 192+ --with-iconv[=LIBSPEC] specify iconv library [default -liconv]" 193+ ac_help="$ac_help 194+ --with-idnlib=ARG specify libidnkit" 195 196 # Initialize some variables set by options. 197 # The variables have the same names as the options, with 198*************** 199*** 911,917 **** 200 fi 201 202 echo $ac_n "checking host system type""... $ac_c" 1>&6 203! echo "configure:915: checking host system type" >&5 204 205 host_alias=$host 206 case "$host_alias" in 207--- 919,925 ---- 208 fi 209 210 echo $ac_n "checking host system type""... $ac_c" 1>&6 211! echo "configure:923: checking host system type" >&5 212 213 host_alias=$host 214 case "$host_alias" in 215*************** 216*** 933,939 **** 217 218 219 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 220! echo "configure:937: checking whether ${MAKE-make} sets \${MAKE}" >&5 221 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 222 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 223 echo $ac_n "(cached) $ac_c" 1>&6 224--- 941,947 ---- 225 226 227 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 228! echo "configure:945: checking whether ${MAKE-make} sets \${MAKE}" >&5 229 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 230 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 231 echo $ac_n "(cached) $ac_c" 1>&6 232*************** 233*** 962,968 **** 234 # Extract the first word of "ranlib", so it can be a program name with args. 235 set dummy ranlib; ac_word=$2 236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 237! echo "configure:966: checking for $ac_word" >&5 238 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 239 echo $ac_n "(cached) $ac_c" 1>&6 240 else 241--- 970,976 ---- 242 # Extract the first word of "ranlib", so it can be a program name with args. 243 set dummy ranlib; ac_word=$2 244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 245! echo "configure:974: checking for $ac_word" >&5 246 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 247 echo $ac_n "(cached) $ac_c" 1>&6 248 else 249*************** 250*** 1001,1007 **** 251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 252 # ./install, which can be erroneously created by make from ./install.sh. 253 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 254! echo "configure:1005: checking for a BSD compatible install" >&5 255 if test -z "$INSTALL"; then 256 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 257 echo $ac_n "(cached) $ac_c" 1>&6 258--- 1009,1015 ---- 259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 260 # ./install, which can be erroneously created by make from ./install.sh. 261 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 262! echo "configure:1013: checking for a BSD compatible install" >&5 263 if test -z "$INSTALL"; then 264 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 265 echo $ac_n "(cached) $ac_c" 1>&6 266*************** 267*** 1062,1068 **** 268 # Extract the first word of "ar", so it can be a program name with args. 269 set dummy ar; ac_word=$2 270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 271! echo "configure:1066: checking for $ac_word" >&5 272 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then 273 echo $ac_n "(cached) $ac_c" 1>&6 274 else 275--- 1070,1076 ---- 276 # Extract the first word of "ar", so it can be a program name with args. 277 set dummy ar; ac_word=$2 278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 279! echo "configure:1074: checking for $ac_word" >&5 280 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then 281 echo $ac_n "(cached) $ac_c" 1>&6 282 else 283*************** 284*** 1121,1127 **** 285 # Extract the first word of "$ac_prog", so it can be a program name with args. 286 set dummy $ac_prog; ac_word=$2 287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 288! echo "configure:1125: checking for $ac_word" >&5 289 if eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then 290 echo $ac_n "(cached) $ac_c" 1>&6 291 else 292--- 1129,1135 ---- 293 # Extract the first word of "$ac_prog", so it can be a program name with args. 294 set dummy $ac_prog; ac_word=$2 295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 296! echo "configure:1133: checking for $ac_word" >&5 297 if eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then 298 echo $ac_n "(cached) $ac_c" 1>&6 299 else 300*************** 301*** 1163,1169 **** 302 # 303 if test "X$ETAGS" != "X"; then 304 echo $ac_n "checking for Exuberant Ctags etags""... $ac_c" 1>&6 305! echo "configure:1167: checking for Exuberant Ctags etags" >&5 306 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then 307 echo "$ac_t""yes" 1>&6 308 ETAGS="$ETAGS -L" 309--- 1171,1177 ---- 310 # 311 if test "X$ETAGS" != "X"; then 312 echo $ac_n "checking for Exuberant Ctags etags""... $ac_c" 1>&6 313! echo "configure:1175: checking for Exuberant Ctags etags" >&5 314 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then 315 echo "$ac_t""yes" 1>&6 316 ETAGS="$ETAGS -L" 317*************** 318*** 1181,1187 **** 319 # Extract the first word of "$ac_prog", so it can be a program name with args. 320 set dummy $ac_prog; ac_word=$2 321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 322! echo "configure:1185: checking for $ac_word" >&5 323 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then 324 echo $ac_n "(cached) $ac_c" 1>&6 325 else 326--- 1189,1195 ---- 327 # Extract the first word of "$ac_prog", so it can be a program name with args. 328 set dummy $ac_prog; ac_word=$2 329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 330! echo "configure:1193: checking for $ac_word" >&5 331 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then 332 echo $ac_n "(cached) $ac_c" 1>&6 333 else 334*************** 335*** 1328,1334 **** 336 # Extract the first word of "gcc", so it can be a program name with args. 337 set dummy gcc; ac_word=$2 338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 339! echo "configure:1332: checking for $ac_word" >&5 340 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 341 echo $ac_n "(cached) $ac_c" 1>&6 342 else 343--- 1336,1342 ---- 344 # Extract the first word of "gcc", so it can be a program name with args. 345 set dummy gcc; ac_word=$2 346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 347! echo "configure:1340: checking for $ac_word" >&5 348 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 349 echo $ac_n "(cached) $ac_c" 1>&6 350 else 351*************** 352*** 1358,1364 **** 353 # Extract the first word of "cc", so it can be a program name with args. 354 set dummy cc; ac_word=$2 355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 356! echo "configure:1362: checking for $ac_word" >&5 357 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 358 echo $ac_n "(cached) $ac_c" 1>&6 359 else 360--- 1366,1372 ---- 361 # Extract the first word of "cc", so it can be a program name with args. 362 set dummy cc; ac_word=$2 363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 364! echo "configure:1370: checking for $ac_word" >&5 365 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 366 echo $ac_n "(cached) $ac_c" 1>&6 367 else 368*************** 369*** 1409,1415 **** 370 # Extract the first word of "cl", so it can be a program name with args. 371 set dummy cl; ac_word=$2 372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 373! echo "configure:1413: checking for $ac_word" >&5 374 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 375 echo $ac_n "(cached) $ac_c" 1>&6 376 else 377--- 1417,1423 ---- 378 # Extract the first word of "cl", so it can be a program name with args. 379 set dummy cl; ac_word=$2 380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 381! echo "configure:1421: checking for $ac_word" >&5 382 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 383 echo $ac_n "(cached) $ac_c" 1>&6 384 else 385*************** 386*** 1441,1447 **** 387 fi 388 389 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 390! echo "configure:1445: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 391 392 ac_ext=c 393 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 394--- 1449,1455 ---- 395 fi 396 397 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 398! echo "configure:1453: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 399 400 ac_ext=c 401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 402*************** 403*** 1452,1463 **** 404 405 cat > conftest.$ac_ext << EOF 406 407! #line 1456 "configure" 408 #include "confdefs.h" 409 410 main(){return(0);} 411 EOF 412! if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 413 ac_cv_prog_cc_works=yes 414 # If we can't run a trivial program, we are probably using a cross compiler. 415 if (./conftest; exit) 2>/dev/null; then 416--- 1460,1471 ---- 417 418 cat > conftest.$ac_ext << EOF 419 420! #line 1464 "configure" 421 #include "confdefs.h" 422 423 main(){return(0);} 424 EOF 425! if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 426 ac_cv_prog_cc_works=yes 427 # If we can't run a trivial program, we are probably using a cross compiler. 428 if (./conftest; exit) 2>/dev/null; then 429*************** 430*** 1483,1494 **** 431 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 432 fi 433 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 434! echo "configure:1487: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 435 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 436 cross_compiling=$ac_cv_prog_cc_cross 437 438 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 439! echo "configure:1492: checking whether we are using GNU C" >&5 440 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 441 echo $ac_n "(cached) $ac_c" 1>&6 442 else 443--- 1491,1502 ---- 444 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 445 fi 446 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 447! echo "configure:1495: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 448 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 449 cross_compiling=$ac_cv_prog_cc_cross 450 451 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 452! echo "configure:1500: checking whether we are using GNU C" >&5 453 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 454 echo $ac_n "(cached) $ac_c" 1>&6 455 else 456*************** 457*** 1497,1503 **** 458 yes; 459 #endif 460 EOF 461! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 462 ac_cv_prog_gcc=yes 463 else 464 ac_cv_prog_gcc=no 465--- 1505,1511 ---- 466 yes; 467 #endif 468 EOF 469! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 470 ac_cv_prog_gcc=yes 471 else 472 ac_cv_prog_gcc=no 473*************** 474*** 1516,1522 **** 475 ac_save_CFLAGS="$CFLAGS" 476 CFLAGS= 477 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 478! echo "configure:1520: checking whether ${CC-cc} accepts -g" >&5 479 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 480 echo $ac_n "(cached) $ac_c" 1>&6 481 else 482--- 1524,1530 ---- 483 ac_save_CFLAGS="$CFLAGS" 484 CFLAGS= 485 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 486! echo "configure:1528: checking whether ${CC-cc} accepts -g" >&5 487 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 488 echo $ac_n "(cached) $ac_c" 1>&6 489 else 490*************** 491*** 1549,1555 **** 492 493 494 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 495! echo "configure:1553: checking how to run the C preprocessor" >&5 496 # On Suns, sometimes $CPP names a directory. 497 if test -n "$CPP" && test -d "$CPP"; then 498 CPP= 499--- 1557,1563 ---- 500 501 502 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 503! echo "configure:1561: checking how to run the C preprocessor" >&5 504 # On Suns, sometimes $CPP names a directory. 505 if test -n "$CPP" && test -d "$CPP"; then 506 CPP= 507*************** 508*** 1564,1576 **** 509 # On the NeXT, cc -E runs the code through the compiler's parser, 510 # not just through cpp. 511 cat > conftest.$ac_ext <<EOF 512! #line 1568 "configure" 513 #include "confdefs.h" 514 #include <assert.h> 515 Syntax Error 516 EOF 517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 518! { (eval echo configure:1574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 520 if test -z "$ac_err"; then 521 : 522--- 1572,1584 ---- 523 # On the NeXT, cc -E runs the code through the compiler's parser, 524 # not just through cpp. 525 cat > conftest.$ac_ext <<EOF 526! #line 1576 "configure" 527 #include "confdefs.h" 528 #include <assert.h> 529 Syntax Error 530 EOF 531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 532! { (eval echo configure:1582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 534 if test -z "$ac_err"; then 535 : 536*************** 537*** 1581,1593 **** 538 rm -rf conftest* 539 CPP="${CC-cc} -E -traditional-cpp" 540 cat > conftest.$ac_ext <<EOF 541! #line 1585 "configure" 542 #include "confdefs.h" 543 #include <assert.h> 544 Syntax Error 545 EOF 546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 547! { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 549 if test -z "$ac_err"; then 550 : 551--- 1589,1601 ---- 552 rm -rf conftest* 553 CPP="${CC-cc} -E -traditional-cpp" 554 cat > conftest.$ac_ext <<EOF 555! #line 1593 "configure" 556 #include "confdefs.h" 557 #include <assert.h> 558 Syntax Error 559 EOF 560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 561! { (eval echo configure:1599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 563 if test -z "$ac_err"; then 564 : 565*************** 566*** 1598,1610 **** 567 rm -rf conftest* 568 CPP="${CC-cc} -nologo -E" 569 cat > conftest.$ac_ext <<EOF 570! #line 1602 "configure" 571 #include "confdefs.h" 572 #include <assert.h> 573 Syntax Error 574 EOF 575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 576! { (eval echo configure:1608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 578 if test -z "$ac_err"; then 579 : 580--- 1606,1618 ---- 581 rm -rf conftest* 582 CPP="${CC-cc} -nologo -E" 583 cat > conftest.$ac_ext <<EOF 584! #line 1610 "configure" 585 #include "confdefs.h" 586 #include <assert.h> 587 Syntax Error 588 EOF 589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 590! { (eval echo configure:1616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 592 if test -z "$ac_err"; then 593 : 594*************** 595*** 1629,1640 **** 596 echo "$ac_t""$CPP" 1>&6 597 598 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 599! echo "configure:1633: checking for ANSI C header files" >&5 600 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 601 echo $ac_n "(cached) $ac_c" 1>&6 602 else 603 cat > conftest.$ac_ext <<EOF 604! #line 1638 "configure" 605 #include "confdefs.h" 606 #include <stdlib.h> 607 #include <stdarg.h> 608--- 1637,1648 ---- 609 echo "$ac_t""$CPP" 1>&6 610 611 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 612! echo "configure:1641: checking for ANSI C header files" >&5 613 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 614 echo $ac_n "(cached) $ac_c" 1>&6 615 else 616 cat > conftest.$ac_ext <<EOF 617! #line 1646 "configure" 618 #include "confdefs.h" 619 #include <stdlib.h> 620 #include <stdarg.h> 621*************** 622*** 1642,1648 **** 623 #include <float.h> 624 EOF 625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 626! { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 628 if test -z "$ac_err"; then 629 rm -rf conftest* 630--- 1650,1656 ---- 631 #include <float.h> 632 EOF 633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 634! { (eval echo configure:1654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 636 if test -z "$ac_err"; then 637 rm -rf conftest* 638*************** 639*** 1659,1665 **** 640 if test $ac_cv_header_stdc = yes; then 641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 642 cat > conftest.$ac_ext <<EOF 643! #line 1663 "configure" 644 #include "confdefs.h" 645 #include <string.h> 646 EOF 647--- 1667,1673 ---- 648 if test $ac_cv_header_stdc = yes; then 649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 650 cat > conftest.$ac_ext <<EOF 651! #line 1671 "configure" 652 #include "confdefs.h" 653 #include <string.h> 654 EOF 655*************** 656*** 1677,1683 **** 657 if test $ac_cv_header_stdc = yes; then 658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 659 cat > conftest.$ac_ext <<EOF 660! #line 1681 "configure" 661 #include "confdefs.h" 662 #include <stdlib.h> 663 EOF 664--- 1685,1691 ---- 665 if test $ac_cv_header_stdc = yes; then 666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 667 cat > conftest.$ac_ext <<EOF 668! #line 1689 "configure" 669 #include "confdefs.h" 670 #include <stdlib.h> 671 EOF 672*************** 673*** 1698,1704 **** 674 : 675 else 676 cat > conftest.$ac_ext <<EOF 677! #line 1702 "configure" 678 #include "confdefs.h" 679 #include <ctype.h> 680 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 681--- 1706,1712 ---- 682 : 683 else 684 cat > conftest.$ac_ext <<EOF 685! #line 1710 "configure" 686 #include "confdefs.h" 687 #include <ctype.h> 688 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 689*************** 690*** 1709,1715 **** 691 exit (0); } 692 693 EOF 694! if { (eval echo configure:1713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 695 then 696 : 697 else 698--- 1717,1723 ---- 699 exit (0); } 700 701 EOF 702! if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 703 then 704 : 705 else 706*************** 707*** 1737,1753 **** 708 do 709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 711! echo "configure:1741: checking for $ac_hdr" >&5 712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 713 echo $ac_n "(cached) $ac_c" 1>&6 714 else 715 cat > conftest.$ac_ext <<EOF 716! #line 1746 "configure" 717 #include "confdefs.h" 718 #include <$ac_hdr> 719 EOF 720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 721! { (eval echo configure:1751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 723 if test -z "$ac_err"; then 724 rm -rf conftest* 725--- 1745,1761 ---- 726 do 727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 729! echo "configure:1749: checking for $ac_hdr" >&5 730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 731 echo $ac_n "(cached) $ac_c" 1>&6 732 else 733 cat > conftest.$ac_ext <<EOF 734! #line 1754 "configure" 735 #include "confdefs.h" 736 #include <$ac_hdr> 737 EOF 738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 739! { (eval echo configure:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 741 if test -z "$ac_err"; then 742 rm -rf conftest* 743*************** 744*** 1775,1786 **** 745 746 747 echo $ac_n "checking for working const""... $ac_c" 1>&6 748! echo "configure:1779: checking for working const" >&5 749 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 750 echo $ac_n "(cached) $ac_c" 1>&6 751 else 752 cat > conftest.$ac_ext <<EOF 753! #line 1784 "configure" 754 #include "confdefs.h" 755 756 int main() { 757--- 1783,1794 ---- 758 759 760 echo $ac_n "checking for working const""... $ac_c" 1>&6 761! echo "configure:1787: checking for working const" >&5 762 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 763 echo $ac_n "(cached) $ac_c" 1>&6 764 else 765 cat > conftest.$ac_ext <<EOF 766! #line 1792 "configure" 767 #include "confdefs.h" 768 769 int main() { 770*************** 771*** 1829,1835 **** 772 773 ; return 0; } 774 EOF 775! if { (eval echo configure:1833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 776 rm -rf conftest* 777 ac_cv_c_const=yes 778 else 779--- 1837,1843 ---- 780 781 ; return 0; } 782 EOF 783! if { (eval echo configure:1841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 784 rm -rf conftest* 785 ac_cv_c_const=yes 786 else 787*************** 788*** 1850,1870 **** 789 fi 790 791 echo $ac_n "checking for inline""... $ac_c" 1>&6 792! echo "configure:1854: checking for inline" >&5 793 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 794 echo $ac_n "(cached) $ac_c" 1>&6 795 else 796 ac_cv_c_inline=no 797 for ac_kw in inline __inline__ __inline; do 798 cat > conftest.$ac_ext <<EOF 799! #line 1861 "configure" 800 #include "confdefs.h" 801 802 int main() { 803 } $ac_kw foo() { 804 ; return 0; } 805 EOF 806! if { (eval echo configure:1868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 807 rm -rf conftest* 808 ac_cv_c_inline=$ac_kw; break 809 else 810--- 1858,1878 ---- 811 fi 812 813 echo $ac_n "checking for inline""... $ac_c" 1>&6 814! echo "configure:1862: checking for inline" >&5 815 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 816 echo $ac_n "(cached) $ac_c" 1>&6 817 else 818 ac_cv_c_inline=no 819 for ac_kw in inline __inline__ __inline; do 820 cat > conftest.$ac_ext <<EOF 821! #line 1869 "configure" 822 #include "confdefs.h" 823 824 int main() { 825 } $ac_kw foo() { 826 ; return 0; } 827 EOF 828! if { (eval echo configure:1876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 829 rm -rf conftest* 830 ac_cv_c_inline=$ac_kw; break 831 else 832*************** 833*** 1890,1901 **** 834 esac 835 836 echo $ac_n "checking for sysctlbyname""... $ac_c" 1>&6 837! echo "configure:1894: checking for sysctlbyname" >&5 838 if eval "test \"`echo '$''{'ac_cv_func_sysctlbyname'+set}'`\" = set"; then 839 echo $ac_n "(cached) $ac_c" 1>&6 840 else 841 cat > conftest.$ac_ext <<EOF 842! #line 1899 "configure" 843 #include "confdefs.h" 844 /* System header to define __stub macros and hopefully few prototypes, 845 which can conflict with char sysctlbyname(); below. */ 846--- 1898,1909 ---- 847 esac 848 849 echo $ac_n "checking for sysctlbyname""... $ac_c" 1>&6 850! echo "configure:1902: checking for sysctlbyname" >&5 851 if eval "test \"`echo '$''{'ac_cv_func_sysctlbyname'+set}'`\" = set"; then 852 echo $ac_n "(cached) $ac_c" 1>&6 853 else 854 cat > conftest.$ac_ext <<EOF 855! #line 1907 "configure" 856 #include "confdefs.h" 857 /* System header to define __stub macros and hopefully few prototypes, 858 which can conflict with char sysctlbyname(); below. */ 859*************** 860*** 1918,1924 **** 861 862 ; return 0; } 863 EOF 864! if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 865 rm -rf conftest* 866 eval "ac_cv_func_sysctlbyname=yes" 867 else 868--- 1926,1932 ---- 869 870 ; return 0; } 871 EOF 872! if { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 873 rm -rf conftest* 874 eval "ac_cv_func_sysctlbyname=yes" 875 else 876*************** 877*** 1946,1954 **** 878 # is reported to not support "static inline" (RT #1212). 879 # 880 echo $ac_n "checking for static inline breakage""... $ac_c" 1>&6 881! echo "configure:1950: checking for static inline breakage" >&5 882 cat > conftest.$ac_ext <<EOF 883! #line 1952 "configure" 884 #include "confdefs.h" 885 886 int main() { 887--- 1954,1962 ---- 888 # is reported to not support "static inline" (RT #1212). 889 # 890 echo $ac_n "checking for static inline breakage""... $ac_c" 1>&6 891! echo "configure:1958: checking for static inline breakage" >&5 892 cat > conftest.$ac_ext <<EOF 893! #line 1960 "configure" 894 #include "confdefs.h" 895 896 int main() { 897*************** 898*** 1965,1971 **** 899 900 ; return 0; } 901 EOF 902! if { (eval echo configure:1969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 903 rm -rf conftest* 904 echo "$ac_t""no" 1>&6 905 else 906--- 1973,1979 ---- 907 908 ; return 0; } 909 EOF 910! if { (eval echo configure:1977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 911 rm -rf conftest* 912 echo "$ac_t""no" 1>&6 913 else 914*************** 915*** 1981,1992 **** 916 rm -f conftest* 917 918 echo $ac_n "checking for size_t""... $ac_c" 1>&6 919! echo "configure:1985: checking for size_t" >&5 920 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 921 echo $ac_n "(cached) $ac_c" 1>&6 922 else 923 cat > conftest.$ac_ext <<EOF 924! #line 1990 "configure" 925 #include "confdefs.h" 926 #include <sys/types.h> 927 #if STDC_HEADERS 928--- 1989,2000 ---- 929 rm -f conftest* 930 931 echo $ac_n "checking for size_t""... $ac_c" 1>&6 932! echo "configure:1993: checking for size_t" >&5 933 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 934 echo $ac_n "(cached) $ac_c" 1>&6 935 else 936 cat > conftest.$ac_ext <<EOF 937! #line 1998 "configure" 938 #include "confdefs.h" 939 #include <sys/types.h> 940 #if STDC_HEADERS 941*************** 942*** 2014,2025 **** 943 fi 944 945 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 946! echo "configure:2018: checking for ssize_t" >&5 947 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then 948 echo $ac_n "(cached) $ac_c" 1>&6 949 else 950 cat > conftest.$ac_ext <<EOF 951! #line 2023 "configure" 952 #include "confdefs.h" 953 #include <sys/types.h> 954 #if STDC_HEADERS 955--- 2022,2033 ---- 956 fi 957 958 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 959! echo "configure:2026: checking for ssize_t" >&5 960 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then 961 echo $ac_n "(cached) $ac_c" 1>&6 962 else 963 cat > conftest.$ac_ext <<EOF 964! #line 2031 "configure" 965 #include "confdefs.h" 966 #include <sys/types.h> 967 #if STDC_HEADERS 968*************** 969*** 2047,2058 **** 970 fi 971 972 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 973! echo "configure:2051: checking whether time.h and sys/time.h may both be included" >&5 974 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 975 echo $ac_n "(cached) $ac_c" 1>&6 976 else 977 cat > conftest.$ac_ext <<EOF 978! #line 2056 "configure" 979 #include "confdefs.h" 980 #include <sys/types.h> 981 #include <sys/time.h> 982--- 2055,2066 ---- 983 fi 984 985 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 986! echo "configure:2059: checking whether time.h and sys/time.h may both be included" >&5 987 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 988 echo $ac_n "(cached) $ac_c" 1>&6 989 else 990 cat > conftest.$ac_ext <<EOF 991! #line 2064 "configure" 992 #include "confdefs.h" 993 #include <sys/types.h> 994 #include <sys/time.h> 995*************** 996*** 2061,2067 **** 997 struct tm *tp; 998 ; return 0; } 999 EOF 1000! if { (eval echo configure:2065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1001 rm -rf conftest* 1002 ac_cv_header_time=yes 1003 else 1004--- 2069,2075 ---- 1005 struct tm *tp; 1006 ; return 0; } 1007 EOF 1008! if { (eval echo configure:2073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1009 rm -rf conftest* 1010 ac_cv_header_time=yes 1011 else 1012*************** 1013*** 2082,2097 **** 1014 fi 1015 1016 echo $ac_n "checking for long long""... $ac_c" 1>&6 1017! echo "configure:2086: checking for long long" >&5 1018 cat > conftest.$ac_ext <<EOF 1019! #line 2088 "configure" 1020 #include "confdefs.h" 1021 1022 int main() { 1023 long long i = 0; return (0); 1024 ; return 0; } 1025 EOF 1026! if { (eval echo configure:2095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1027 rm -rf conftest* 1028 echo "$ac_t""yes" 1>&6 1029 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1" 1030--- 2090,2105 ---- 1031 fi 1032 1033 echo $ac_n "checking for long long""... $ac_c" 1>&6 1034! echo "configure:2094: checking for long long" >&5 1035 cat > conftest.$ac_ext <<EOF 1036! #line 2096 "configure" 1037 #include "confdefs.h" 1038 1039 int main() { 1040 long long i = 0; return (0); 1041 ; return 0; } 1042 EOF 1043! if { (eval echo configure:2103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1044 rm -rf conftest* 1045 echo "$ac_t""yes" 1>&6 1046 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1" 1047*************** 1048*** 2111,2119 **** 1049 case $ac_cv_header_unistd_h in 1050 yes) 1051 echo $ac_n "checking if unistd.h defines fd_set""... $ac_c" 1>&6 1052! echo "configure:2115: checking if unistd.h defines fd_set" >&5 1053 cat > conftest.$ac_ext <<EOF 1054! #line 2117 "configure" 1055 #include "confdefs.h" 1056 1057 #include <unistd.h> 1058--- 2119,2127 ---- 1059 case $ac_cv_header_unistd_h in 1060 yes) 1061 echo $ac_n "checking if unistd.h defines fd_set""... $ac_c" 1>&6 1062! echo "configure:2123: checking if unistd.h defines fd_set" >&5 1063 cat > conftest.$ac_ext <<EOF 1064! #line 2125 "configure" 1065 #include "confdefs.h" 1066 1067 #include <unistd.h> 1068*************** 1069*** 2121,2127 **** 1070 fd_set read_set; return (0); 1071 ; return 0; } 1072 EOF 1073! if { (eval echo configure:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1074 rm -rf conftest* 1075 echo "$ac_t""yes" 1>&6 1076 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH" 1077--- 2129,2135 ---- 1078 fd_set read_set; return (0); 1079 ; return 0; } 1080 EOF 1081! if { (eval echo configure:2133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1082 rm -rf conftest* 1083 echo "$ac_t""yes" 1>&6 1084 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH" 1085*************** 1086*** 2163,2176 **** 1087 # Find the machine's endian flavor. 1088 # 1089 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 1090! echo "configure:2167: checking whether byte ordering is bigendian" >&5 1091 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 1092 echo $ac_n "(cached) $ac_c" 1>&6 1093 else 1094 ac_cv_c_bigendian=unknown 1095 # See if sys/param.h defines the BYTE_ORDER macro. 1096 cat > conftest.$ac_ext <<EOF 1097! #line 2174 "configure" 1098 #include "confdefs.h" 1099 #include <sys/types.h> 1100 #include <sys/param.h> 1101--- 2171,2184 ---- 1102 # Find the machine's endian flavor. 1103 # 1104 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 1105! echo "configure:2175: checking whether byte ordering is bigendian" >&5 1106 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 1107 echo $ac_n "(cached) $ac_c" 1>&6 1108 else 1109 ac_cv_c_bigendian=unknown 1110 # See if sys/param.h defines the BYTE_ORDER macro. 1111 cat > conftest.$ac_ext <<EOF 1112! #line 2182 "configure" 1113 #include "confdefs.h" 1114 #include <sys/types.h> 1115 #include <sys/param.h> 1116*************** 1117*** 2181,2191 **** 1118 #endif 1119 ; return 0; } 1120 EOF 1121! if { (eval echo configure:2185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1122 rm -rf conftest* 1123 # It does; now see whether it defined to BIG_ENDIAN or not. 1124 cat > conftest.$ac_ext <<EOF 1125! #line 2189 "configure" 1126 #include "confdefs.h" 1127 #include <sys/types.h> 1128 #include <sys/param.h> 1129--- 2189,2199 ---- 1130 #endif 1131 ; return 0; } 1132 EOF 1133! if { (eval echo configure:2193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1134 rm -rf conftest* 1135 # It does; now see whether it defined to BIG_ENDIAN or not. 1136 cat > conftest.$ac_ext <<EOF 1137! #line 2197 "configure" 1138 #include "confdefs.h" 1139 #include <sys/types.h> 1140 #include <sys/param.h> 1141*************** 1142*** 2196,2202 **** 1143 #endif 1144 ; return 0; } 1145 EOF 1146! if { (eval echo configure:2200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1147 rm -rf conftest* 1148 ac_cv_c_bigendian=yes 1149 else 1150--- 2204,2210 ---- 1151 #endif 1152 ; return 0; } 1153 EOF 1154! if { (eval echo configure:2208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1155 rm -rf conftest* 1156 ac_cv_c_bigendian=yes 1157 else 1158*************** 1159*** 2216,2222 **** 1160 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1161 else 1162 cat > conftest.$ac_ext <<EOF 1163! #line 2220 "configure" 1164 #include "confdefs.h" 1165 main () { 1166 /* Are we little or big endian? From Harbison&Steele. */ 1167--- 2224,2230 ---- 1168 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1169 else 1170 cat > conftest.$ac_ext <<EOF 1171! #line 2228 "configure" 1172 #include "confdefs.h" 1173 main () { 1174 /* Are we little or big endian? From Harbison&Steele. */ 1175*************** 1176*** 2229,2235 **** 1177 exit (u.c[sizeof (long) - 1] == 1); 1178 } 1179 EOF 1180! if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1181 then 1182 ac_cv_c_bigendian=no 1183 else 1184--- 2237,2243 ---- 1185 exit (u.c[sizeof (long) - 1] == 1); 1186 } 1187 EOF 1188! if { (eval echo configure:2241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1189 then 1190 ac_cv_c_bigendian=no 1191 else 1192*************** 1193*** 2257,2263 **** 1194 # was --with-openssl specified? 1195 # 1196 echo $ac_n "checking for OpenSSL library""... $ac_c" 1>&6 1197! echo "configure:2261: checking for OpenSSL library" >&5 1198 # Check whether --with-openssl or --without-openssl was given. 1199 if test "${with_openssl+set}" = set; then 1200 withval="$with_openssl" 1201--- 2265,2271 ---- 1202 # was --with-openssl specified? 1203 # 1204 echo $ac_n "checking for OpenSSL library""... $ac_c" 1>&6 1205! echo "configure:2269: checking for OpenSSL library" >&5 1206 # Check whether --with-openssl or --without-openssl was given. 1207 if test "${with_openssl+set}" = set; then 1208 withval="$with_openssl" 1209*************** 1210*** 2298,2304 **** 1211 echo "$ac_t""using openssl from $use_openssl/lib and $use_openssl/include" 1>&6 1212 1213 echo $ac_n "checking OpenSSL library version""... $ac_c" 1>&6 1214! echo "configure:2302: checking OpenSSL library version" >&5 1215 saved_cflags="$CFLAGS" 1216 saved_libs="$LIBS" 1217 CFLAGS="$CFLAGS $DST_OPENSSL_INC" 1218--- 2306,2312 ---- 1219 echo "$ac_t""using openssl from $use_openssl/lib and $use_openssl/include" 1>&6 1220 1221 echo $ac_n "checking OpenSSL library version""... $ac_c" 1>&6 1222! echo "configure:2310: checking OpenSSL library version" >&5 1223 saved_cflags="$CFLAGS" 1224 saved_libs="$LIBS" 1225 CFLAGS="$CFLAGS $DST_OPENSSL_INC" 1226*************** 1227*** 2307,2313 **** 1228 echo "$ac_t""assuming target platform has compatible version" 1>&6 1229 else 1230 cat > conftest.$ac_ext <<EOF 1231! #line 2311 "configure" 1232 #include "confdefs.h" 1233 1234 #include <stdio.h> 1235--- 2315,2321 ---- 1236 echo "$ac_t""assuming target platform has compatible version" 1>&6 1237 else 1238 cat > conftest.$ac_ext <<EOF 1239! #line 2319 "configure" 1240 #include "confdefs.h" 1241 1242 #include <stdio.h> 1243*************** 1244*** 2322,2328 **** 1245 } 1246 1247 EOF 1248! if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1249 then 1250 echo "$ac_t""ok" 1>&6 1251 else 1252--- 2330,2336 ---- 1253 } 1254 1255 EOF 1256! if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1257 then 1258 echo "$ac_t""ok" 1>&6 1259 else 1260*************** 1261*** 2387,2393 **** 1262 # was --with-randomdev specified? 1263 # 1264 echo $ac_n "checking for random device""... $ac_c" 1>&6 1265! echo "configure:2391: checking for random device" >&5 1266 # Check whether --with-randomdev or --without-randomdev was given. 1267 if test "${with_randomdev+set}" = set; then 1268 withval="$with_randomdev" 1269--- 2395,2401 ---- 1270 # was --with-randomdev specified? 1271 # 1272 echo $ac_n "checking for random device""... $ac_c" 1>&6 1273! echo "configure:2399: checking for random device" >&5 1274 # Check whether --with-randomdev or --without-randomdev was given. 1275 if test "${with_randomdev+set}" = set; then 1276 withval="$with_randomdev" 1277*************** 1278*** 2411,2417 **** 1279 1280 ac_safe=`echo "$devrandom" | sed 'y%./+-%__p_%'` 1281 echo $ac_n "checking for $devrandom""... $ac_c" 1>&6 1282! echo "configure:2415: checking for $devrandom" >&5 1283 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then 1284 echo $ac_n "(cached) $ac_c" 1>&6 1285 else 1286--- 2419,2425 ---- 1287 1288 ac_safe=`echo "$devrandom" | sed 'y%./+-%__p_%'` 1289 echo $ac_n "checking for $devrandom""... $ac_c" 1>&6 1290! echo "configure:2423: checking for $devrandom" >&5 1291 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then 1292 echo $ac_n "(cached) $ac_c" 1>&6 1293 else 1294*************** 1295*** 2463,2469 **** 1296 # 1297 1298 echo $ac_n "checking whether to build with thread support""... $ac_c" 1>&6 1299! echo "configure:2467: checking whether to build with thread support" >&5 1300 1301 case $host in 1302 *-dec-osf*) 1303--- 2471,2477 ---- 1304 # 1305 1306 echo $ac_n "checking whether to build with thread support""... $ac_c" 1>&6 1307! echo "configure:2475: checking whether to build with thread support" >&5 1308 1309 case $host in 1310 *-dec-osf*) 1311*************** 1312*** 2551,2557 **** 1313 # experiment with it. 1314 CC="gcc" 1315 echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6 1316! echo "configure:2555: checking which NetBSD thread library to use" >&5 1317 1318 # Check whether --with-ptl2 or --without-ptl2 was given. 1319 if test "${with_ptl2+set}" = set; then 1320--- 2559,2565 ---- 1321 # experiment with it. 1322 CC="gcc" 1323 echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6 1324! echo "configure:2563: checking which NetBSD thread library to use" >&5 1325 1326 # Check whether --with-ptl2 or --without-ptl2 was given. 1327 if test "${with_ptl2+set}" = set; then 1328*************** 1329*** 2590,2596 **** 1330 ;; 1331 *) 1332 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 1333! echo "configure:2594: checking for pthread_create in -lpthread" >&5 1334 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` 1335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1336 echo $ac_n "(cached) $ac_c" 1>&6 1337--- 2598,2604 ---- 1338 ;; 1339 *) 1340 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 1341! echo "configure:2602: checking for pthread_create in -lpthread" >&5 1342 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` 1343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1344 echo $ac_n "(cached) $ac_c" 1>&6 1345*************** 1346*** 2598,2604 **** 1347 ac_save_LIBS="$LIBS" 1348 LIBS="-lpthread $LIBS" 1349 cat > conftest.$ac_ext <<EOF 1350! #line 2602 "configure" 1351 #include "confdefs.h" 1352 /* Override any gcc2 internal prototype to avoid an error. */ 1353 /* We use char because int might match the return type of a gcc2 1354--- 2606,2612 ---- 1355 ac_save_LIBS="$LIBS" 1356 LIBS="-lpthread $LIBS" 1357 cat > conftest.$ac_ext <<EOF 1358! #line 2610 "configure" 1359 #include "confdefs.h" 1360 /* Override any gcc2 internal prototype to avoid an error. */ 1361 /* We use char because int might match the return type of a gcc2 1362*************** 1363*** 2609,2615 **** 1364 pthread_create() 1365 ; return 0; } 1366 EOF 1367! if { (eval echo configure:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1368 rm -rf conftest* 1369 eval "ac_cv_lib_$ac_lib_var=yes" 1370 else 1371--- 2617,2623 ---- 1372 pthread_create() 1373 ; return 0; } 1374 EOF 1375! if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1376 rm -rf conftest* 1377 eval "ac_cv_lib_$ac_lib_var=yes" 1378 else 1379*************** 1380*** 2635,2641 **** 1381 else 1382 echo "$ac_t""no" 1>&6 1383 echo $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6 1384! echo "configure:2639: checking for __pthread_create in -lpthread" >&5 1385 ac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'` 1386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1387 echo $ac_n "(cached) $ac_c" 1>&6 1388--- 2643,2649 ---- 1389 else 1390 echo "$ac_t""no" 1>&6 1391 echo $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6 1392! echo "configure:2647: checking for __pthread_create in -lpthread" >&5 1393 ac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'` 1394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1395 echo $ac_n "(cached) $ac_c" 1>&6 1396*************** 1397*** 2643,2649 **** 1398 ac_save_LIBS="$LIBS" 1399 LIBS="-lpthread $LIBS" 1400 cat > conftest.$ac_ext <<EOF 1401! #line 2647 "configure" 1402 #include "confdefs.h" 1403 /* Override any gcc2 internal prototype to avoid an error. */ 1404 /* We use char because int might match the return type of a gcc2 1405--- 2651,2657 ---- 1406 ac_save_LIBS="$LIBS" 1407 LIBS="-lpthread $LIBS" 1408 cat > conftest.$ac_ext <<EOF 1409! #line 2655 "configure" 1410 #include "confdefs.h" 1411 /* Override any gcc2 internal prototype to avoid an error. */ 1412 /* We use char because int might match the return type of a gcc2 1413*************** 1414*** 2654,2660 **** 1415 __pthread_create() 1416 ; return 0; } 1417 EOF 1418! if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1419 rm -rf conftest* 1420 eval "ac_cv_lib_$ac_lib_var=yes" 1421 else 1422--- 2662,2668 ---- 1423 __pthread_create() 1424 ; return 0; } 1425 EOF 1426! if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1427 rm -rf conftest* 1428 eval "ac_cv_lib_$ac_lib_var=yes" 1429 else 1430*************** 1431*** 2680,2686 **** 1432 else 1433 echo "$ac_t""no" 1>&6 1434 echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 1435! echo "configure:2684: checking for __pthread_create_system in -lpthread" >&5 1436 ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` 1437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1438 echo $ac_n "(cached) $ac_c" 1>&6 1439--- 2688,2694 ---- 1440 else 1441 echo "$ac_t""no" 1>&6 1442 echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 1443! echo "configure:2692: checking for __pthread_create_system in -lpthread" >&5 1444 ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` 1445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1446 echo $ac_n "(cached) $ac_c" 1>&6 1447*************** 1448*** 2688,2694 **** 1449 ac_save_LIBS="$LIBS" 1450 LIBS="-lpthread $LIBS" 1451 cat > conftest.$ac_ext <<EOF 1452! #line 2692 "configure" 1453 #include "confdefs.h" 1454 /* Override any gcc2 internal prototype to avoid an error. */ 1455 /* We use char because int might match the return type of a gcc2 1456--- 2696,2702 ---- 1457 ac_save_LIBS="$LIBS" 1458 LIBS="-lpthread $LIBS" 1459 cat > conftest.$ac_ext <<EOF 1460! #line 2700 "configure" 1461 #include "confdefs.h" 1462 /* Override any gcc2 internal prototype to avoid an error. */ 1463 /* We use char because int might match the return type of a gcc2 1464*************** 1465*** 2699,2705 **** 1466 __pthread_create_system() 1467 ; return 0; } 1468 EOF 1469! if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1470 rm -rf conftest* 1471 eval "ac_cv_lib_$ac_lib_var=yes" 1472 else 1473--- 2707,2713 ---- 1474 __pthread_create_system() 1475 ; return 0; } 1476 EOF 1477! if { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1478 rm -rf conftest* 1479 eval "ac_cv_lib_$ac_lib_var=yes" 1480 else 1481*************** 1482*** 2725,2731 **** 1483 else 1484 echo "$ac_t""no" 1>&6 1485 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 1486! echo "configure:2729: checking for pthread_create in -lc_r" >&5 1487 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` 1488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1489 echo $ac_n "(cached) $ac_c" 1>&6 1490--- 2733,2739 ---- 1491 else 1492 echo "$ac_t""no" 1>&6 1493 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 1494! echo "configure:2737: checking for pthread_create in -lc_r" >&5 1495 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` 1496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1497 echo $ac_n "(cached) $ac_c" 1>&6 1498*************** 1499*** 2733,2739 **** 1500 ac_save_LIBS="$LIBS" 1501 LIBS="-lc_r $LIBS" 1502 cat > conftest.$ac_ext <<EOF 1503! #line 2737 "configure" 1504 #include "confdefs.h" 1505 /* Override any gcc2 internal prototype to avoid an error. */ 1506 /* We use char because int might match the return type of a gcc2 1507--- 2741,2747 ---- 1508 ac_save_LIBS="$LIBS" 1509 LIBS="-lc_r $LIBS" 1510 cat > conftest.$ac_ext <<EOF 1511! #line 2745 "configure" 1512 #include "confdefs.h" 1513 /* Override any gcc2 internal prototype to avoid an error. */ 1514 /* We use char because int might match the return type of a gcc2 1515*************** 1516*** 2744,2750 **** 1517 pthread_create() 1518 ; return 0; } 1519 EOF 1520! if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1521 rm -rf conftest* 1522 eval "ac_cv_lib_$ac_lib_var=yes" 1523 else 1524--- 2752,2758 ---- 1525 pthread_create() 1526 ; return 0; } 1527 EOF 1528! if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1529 rm -rf conftest* 1530 eval "ac_cv_lib_$ac_lib_var=yes" 1531 else 1532*************** 1533*** 2770,2776 **** 1534 else 1535 echo "$ac_t""no" 1>&6 1536 echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 1537! echo "configure:2774: checking for pthread_create in -lc" >&5 1538 ac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'` 1539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1540 echo $ac_n "(cached) $ac_c" 1>&6 1541--- 2778,2784 ---- 1542 else 1543 echo "$ac_t""no" 1>&6 1544 echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 1545! echo "configure:2782: checking for pthread_create in -lc" >&5 1546 ac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'` 1547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1548 echo $ac_n "(cached) $ac_c" 1>&6 1549*************** 1550*** 2778,2784 **** 1551 ac_save_LIBS="$LIBS" 1552 LIBS="-lc $LIBS" 1553 cat > conftest.$ac_ext <<EOF 1554! #line 2782 "configure" 1555 #include "confdefs.h" 1556 /* Override any gcc2 internal prototype to avoid an error. */ 1557 /* We use char because int might match the return type of a gcc2 1558--- 2786,2792 ---- 1559 ac_save_LIBS="$LIBS" 1560 LIBS="-lc $LIBS" 1561 cat > conftest.$ac_ext <<EOF 1562! #line 2790 "configure" 1563 #include "confdefs.h" 1564 /* Override any gcc2 internal prototype to avoid an error. */ 1565 /* We use char because int might match the return type of a gcc2 1566*************** 1567*** 2789,2795 **** 1568 pthread_create() 1569 ; return 0; } 1570 EOF 1571! if { (eval echo configure:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1572 rm -rf conftest* 1573 eval "ac_cv_lib_$ac_lib_var=yes" 1574 else 1575--- 2797,2803 ---- 1576 pthread_create() 1577 ; return 0; } 1578 EOF 1579! if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1580 rm -rf conftest* 1581 eval "ac_cv_lib_$ac_lib_var=yes" 1582 else 1583*************** 1584*** 2835,2841 **** 1585 # We'd like to use sigwait() too 1586 # 1587 echo $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6 1588! echo "configure:2839: checking for sigwait in -lc" >&5 1589 ac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'` 1590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1591 echo $ac_n "(cached) $ac_c" 1>&6 1592--- 2843,2849 ---- 1593 # We'd like to use sigwait() too 1594 # 1595 echo $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6 1596! echo "configure:2847: checking for sigwait in -lc" >&5 1597 ac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'` 1598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1599 echo $ac_n "(cached) $ac_c" 1>&6 1600*************** 1601*** 2843,2849 **** 1602 ac_save_LIBS="$LIBS" 1603 LIBS="-lc $LIBS" 1604 cat > conftest.$ac_ext <<EOF 1605! #line 2847 "configure" 1606 #include "confdefs.h" 1607 /* Override any gcc2 internal prototype to avoid an error. */ 1608 /* We use char because int might match the return type of a gcc2 1609--- 2851,2857 ---- 1610 ac_save_LIBS="$LIBS" 1611 LIBS="-lc $LIBS" 1612 cat > conftest.$ac_ext <<EOF 1613! #line 2855 "configure" 1614 #include "confdefs.h" 1615 /* Override any gcc2 internal prototype to avoid an error. */ 1616 /* We use char because int might match the return type of a gcc2 1617*************** 1618*** 2854,2860 **** 1619 sigwait() 1620 ; return 0; } 1621 EOF 1622! if { (eval echo configure:2858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1623 rm -rf conftest* 1624 eval "ac_cv_lib_$ac_lib_var=yes" 1625 else 1626--- 2862,2868 ---- 1627 sigwait() 1628 ; return 0; } 1629 EOF 1630! if { (eval echo configure:2866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1631 rm -rf conftest* 1632 eval "ac_cv_lib_$ac_lib_var=yes" 1633 else 1634*************** 1635*** 2876,2882 **** 1636 else 1637 echo "$ac_t""no" 1>&6 1638 echo $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6 1639! echo "configure:2880: checking for sigwait in -lpthread" >&5 1640 ac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'` 1641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1642 echo $ac_n "(cached) $ac_c" 1>&6 1643--- 2884,2890 ---- 1644 else 1645 echo "$ac_t""no" 1>&6 1646 echo $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6 1647! echo "configure:2888: checking for sigwait in -lpthread" >&5 1648 ac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'` 1649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1650 echo $ac_n "(cached) $ac_c" 1>&6 1651*************** 1652*** 2884,2890 **** 1653 ac_save_LIBS="$LIBS" 1654 LIBS="-lpthread $LIBS" 1655 cat > conftest.$ac_ext <<EOF 1656! #line 2888 "configure" 1657 #include "confdefs.h" 1658 /* Override any gcc2 internal prototype to avoid an error. */ 1659 /* We use char because int might match the return type of a gcc2 1660--- 2892,2898 ---- 1661 ac_save_LIBS="$LIBS" 1662 LIBS="-lpthread $LIBS" 1663 cat > conftest.$ac_ext <<EOF 1664! #line 2896 "configure" 1665 #include "confdefs.h" 1666 /* Override any gcc2 internal prototype to avoid an error. */ 1667 /* We use char because int might match the return type of a gcc2 1668*************** 1669*** 2895,2901 **** 1670 sigwait() 1671 ; return 0; } 1672 EOF 1673! if { (eval echo configure:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1674 rm -rf conftest* 1675 eval "ac_cv_lib_$ac_lib_var=yes" 1676 else 1677--- 2903,2909 ---- 1678 sigwait() 1679 ; return 0; } 1680 EOF 1681! if { (eval echo configure:2907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1682 rm -rf conftest* 1683 eval "ac_cv_lib_$ac_lib_var=yes" 1684 else 1685*************** 1686*** 2917,2923 **** 1687 else 1688 echo "$ac_t""no" 1>&6 1689 echo $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6 1690! echo "configure:2921: checking for _Psigwait in -lpthread" >&5 1691 ac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'` 1692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1693 echo $ac_n "(cached) $ac_c" 1>&6 1694--- 2925,2931 ---- 1695 else 1696 echo "$ac_t""no" 1>&6 1697 echo $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6 1698! echo "configure:2929: checking for _Psigwait in -lpthread" >&5 1699 ac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'` 1700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1701 echo $ac_n "(cached) $ac_c" 1>&6 1702*************** 1703*** 2925,2931 **** 1704 ac_save_LIBS="$LIBS" 1705 LIBS="-lpthread $LIBS" 1706 cat > conftest.$ac_ext <<EOF 1707! #line 2929 "configure" 1708 #include "confdefs.h" 1709 /* Override any gcc2 internal prototype to avoid an error. */ 1710 /* We use char because int might match the return type of a gcc2 1711--- 2933,2939 ---- 1712 ac_save_LIBS="$LIBS" 1713 LIBS="-lpthread $LIBS" 1714 cat > conftest.$ac_ext <<EOF 1715! #line 2937 "configure" 1716 #include "confdefs.h" 1717 /* Override any gcc2 internal prototype to avoid an error. */ 1718 /* We use char because int might match the return type of a gcc2 1719*************** 1720*** 2936,2942 **** 1721 _Psigwait() 1722 ; return 0; } 1723 EOF 1724! if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1725 rm -rf conftest* 1726 eval "ac_cv_lib_$ac_lib_var=yes" 1727 else 1728--- 2944,2950 ---- 1729 _Psigwait() 1730 ; return 0; } 1731 EOF 1732! if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1733 rm -rf conftest* 1734 eval "ac_cv_lib_$ac_lib_var=yes" 1735 else 1736*************** 1737*** 2966,2977 **** 1738 1739 1740 echo $ac_n "checking for pthread_attr_getstacksize""... $ac_c" 1>&6 1741! echo "configure:2970: checking for pthread_attr_getstacksize" >&5 1742 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getstacksize'+set}'`\" = set"; then 1743 echo $ac_n "(cached) $ac_c" 1>&6 1744 else 1745 cat > conftest.$ac_ext <<EOF 1746! #line 2975 "configure" 1747 #include "confdefs.h" 1748 /* System header to define __stub macros and hopefully few prototypes, 1749 which can conflict with char pthread_attr_getstacksize(); below. */ 1750--- 2974,2985 ---- 1751 1752 1753 echo $ac_n "checking for pthread_attr_getstacksize""... $ac_c" 1>&6 1754! echo "configure:2978: checking for pthread_attr_getstacksize" >&5 1755 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getstacksize'+set}'`\" = set"; then 1756 echo $ac_n "(cached) $ac_c" 1>&6 1757 else 1758 cat > conftest.$ac_ext <<EOF 1759! #line 2983 "configure" 1760 #include "confdefs.h" 1761 /* System header to define __stub macros and hopefully few prototypes, 1762 which can conflict with char pthread_attr_getstacksize(); below. */ 1763*************** 1764*** 2994,3000 **** 1765 1766 ; return 0; } 1767 EOF 1768! if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1769 rm -rf conftest* 1770 eval "ac_cv_func_pthread_attr_getstacksize=yes" 1771 else 1772--- 3002,3008 ---- 1773 1774 ; return 0; } 1775 EOF 1776! if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1777 rm -rf conftest* 1778 eval "ac_cv_func_pthread_attr_getstacksize=yes" 1779 else 1780*************** 1781*** 3026,3032 **** 1782 # 1783 *-freebsd*) 1784 echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6 1785! echo "configure:3030: checking for sigwait in -lc_r" >&5 1786 ac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'` 1787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1788 echo $ac_n "(cached) $ac_c" 1>&6 1789--- 3034,3040 ---- 1790 # 1791 *-freebsd*) 1792 echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6 1793! echo "configure:3038: checking for sigwait in -lc_r" >&5 1794 ac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'` 1795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1796 echo $ac_n "(cached) $ac_c" 1>&6 1797*************** 1798*** 3034,3040 **** 1799 ac_save_LIBS="$LIBS" 1800 LIBS="-lc_r $LIBS" 1801 cat > conftest.$ac_ext <<EOF 1802! #line 3038 "configure" 1803 #include "confdefs.h" 1804 /* Override any gcc2 internal prototype to avoid an error. */ 1805 /* We use char because int might match the return type of a gcc2 1806--- 3042,3048 ---- 1807 ac_save_LIBS="$LIBS" 1808 LIBS="-lc_r $LIBS" 1809 cat > conftest.$ac_ext <<EOF 1810! #line 3046 "configure" 1811 #include "confdefs.h" 1812 /* Override any gcc2 internal prototype to avoid an error. */ 1813 /* We use char because int might match the return type of a gcc2 1814*************** 1815*** 3045,3051 **** 1816 sigwait() 1817 ; return 0; } 1818 EOF 1819! if { (eval echo configure:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1820 rm -rf conftest* 1821 eval "ac_cv_lib_$ac_lib_var=yes" 1822 else 1823--- 3053,3059 ---- 1824 sigwait() 1825 ; return 0; } 1826 EOF 1827! if { (eval echo configure:3057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1828 rm -rf conftest* 1829 eval "ac_cv_lib_$ac_lib_var=yes" 1830 else 1831*************** 1832*** 3100,3111 **** 1833 EOF 1834 1835 echo $ac_n "checking for pthread_setconcurrency""... $ac_c" 1>&6 1836! echo "configure:3104: checking for pthread_setconcurrency" >&5 1837 if eval "test \"`echo '$''{'ac_cv_func_pthread_setconcurrency'+set}'`\" = set"; then 1838 echo $ac_n "(cached) $ac_c" 1>&6 1839 else 1840 cat > conftest.$ac_ext <<EOF 1841! #line 3109 "configure" 1842 #include "confdefs.h" 1843 /* System header to define __stub macros and hopefully few prototypes, 1844 which can conflict with char pthread_setconcurrency(); below. */ 1845--- 3108,3119 ---- 1846 EOF 1847 1848 echo $ac_n "checking for pthread_setconcurrency""... $ac_c" 1>&6 1849! echo "configure:3112: checking for pthread_setconcurrency" >&5 1850 if eval "test \"`echo '$''{'ac_cv_func_pthread_setconcurrency'+set}'`\" = set"; then 1851 echo $ac_n "(cached) $ac_c" 1>&6 1852 else 1853 cat > conftest.$ac_ext <<EOF 1854! #line 3117 "configure" 1855 #include "confdefs.h" 1856 /* System header to define __stub macros and hopefully few prototypes, 1857 which can conflict with char pthread_setconcurrency(); below. */ 1858*************** 1859*** 3128,3134 **** 1860 1861 ; return 0; } 1862 EOF 1863! if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1864 rm -rf conftest* 1865 eval "ac_cv_func_pthread_setconcurrency=yes" 1866 else 1867--- 3136,3142 ---- 1868 1869 ; return 0; } 1870 EOF 1871! if { (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1872 rm -rf conftest* 1873 eval "ac_cv_func_pthread_setconcurrency=yes" 1874 else 1875*************** 1876*** 3166,3177 **** 1877 # Look for sysconf to allow detection of the number of processors. 1878 # 1879 echo $ac_n "checking for sysconf""... $ac_c" 1>&6 1880! echo "configure:3170: checking for sysconf" >&5 1881 if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then 1882 echo $ac_n "(cached) $ac_c" 1>&6 1883 else 1884 cat > conftest.$ac_ext <<EOF 1885! #line 3175 "configure" 1886 #include "confdefs.h" 1887 /* System header to define __stub macros and hopefully few prototypes, 1888 which can conflict with char sysconf(); below. */ 1889--- 3174,3185 ---- 1890 # Look for sysconf to allow detection of the number of processors. 1891 # 1892 echo $ac_n "checking for sysconf""... $ac_c" 1>&6 1893! echo "configure:3178: checking for sysconf" >&5 1894 if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then 1895 echo $ac_n "(cached) $ac_c" 1>&6 1896 else 1897 cat > conftest.$ac_ext <<EOF 1898! #line 3183 "configure" 1899 #include "confdefs.h" 1900 /* System header to define __stub macros and hopefully few prototypes, 1901 which can conflict with char sysconf(); below. */ 1902*************** 1903*** 3194,3200 **** 1904 1905 ; return 0; } 1906 EOF 1907! if { (eval echo configure:3198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1908 rm -rf conftest* 1909 eval "ac_cv_func_sysconf=yes" 1910 else 1911--- 3202,3208 ---- 1912 1913 ; return 0; } 1914 EOF 1915! if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1916 rm -rf conftest* 1917 eval "ac_cv_func_sysconf=yes" 1918 else 1919*************** 1920*** 3275,3286 **** 1921 # be defined. 1922 # 1923 echo $ac_n "checking for flockfile""... $ac_c" 1>&6 1924! echo "configure:3279: checking for flockfile" >&5 1925 if eval "test \"`echo '$''{'ac_cv_func_flockfile'+set}'`\" = set"; then 1926 echo $ac_n "(cached) $ac_c" 1>&6 1927 else 1928 cat > conftest.$ac_ext <<EOF 1929! #line 3284 "configure" 1930 #include "confdefs.h" 1931 /* System header to define __stub macros and hopefully few prototypes, 1932 which can conflict with char flockfile(); below. */ 1933--- 3283,3294 ---- 1934 # be defined. 1935 # 1936 echo $ac_n "checking for flockfile""... $ac_c" 1>&6 1937! echo "configure:3287: checking for flockfile" >&5 1938 if eval "test \"`echo '$''{'ac_cv_func_flockfile'+set}'`\" = set"; then 1939 echo $ac_n "(cached) $ac_c" 1>&6 1940 else 1941 cat > conftest.$ac_ext <<EOF 1942! #line 3292 "configure" 1943 #include "confdefs.h" 1944 /* System header to define __stub macros and hopefully few prototypes, 1945 which can conflict with char flockfile(); below. */ 1946*************** 1947*** 3303,3309 **** 1948 1949 ; return 0; } 1950 EOF 1951! if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1952 rm -rf conftest* 1953 eval "ac_cv_func_flockfile=yes" 1954 else 1955--- 3311,3317 ---- 1956 1957 ; return 0; } 1958 EOF 1959! if { (eval echo configure:3315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1960 rm -rf conftest* 1961 eval "ac_cv_func_flockfile=yes" 1962 else 1963*************** 1964*** 3326,3337 **** 1965 fi 1966 1967 echo $ac_n "checking for getc_unlocked""... $ac_c" 1>&6 1968! echo "configure:3330: checking for getc_unlocked" >&5 1969 if eval "test \"`echo '$''{'ac_cv_func_getc_unlocked'+set}'`\" = set"; then 1970 echo $ac_n "(cached) $ac_c" 1>&6 1971 else 1972 cat > conftest.$ac_ext <<EOF 1973! #line 3335 "configure" 1974 #include "confdefs.h" 1975 /* System header to define __stub macros and hopefully few prototypes, 1976 which can conflict with char getc_unlocked(); below. */ 1977--- 3334,3345 ---- 1978 fi 1979 1980 echo $ac_n "checking for getc_unlocked""... $ac_c" 1>&6 1981! echo "configure:3338: checking for getc_unlocked" >&5 1982 if eval "test \"`echo '$''{'ac_cv_func_getc_unlocked'+set}'`\" = set"; then 1983 echo $ac_n "(cached) $ac_c" 1>&6 1984 else 1985 cat > conftest.$ac_ext <<EOF 1986! #line 3343 "configure" 1987 #include "confdefs.h" 1988 /* System header to define __stub macros and hopefully few prototypes, 1989 which can conflict with char getc_unlocked(); below. */ 1990*************** 1991*** 3354,3360 **** 1992 1993 ; return 0; } 1994 EOF 1995! if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1996 rm -rf conftest* 1997 eval "ac_cv_func_getc_unlocked=yes" 1998 else 1999--- 3362,3368 ---- 2000 2001 ; return 0; } 2002 EOF 2003! if { (eval echo configure:3366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2004 rm -rf conftest* 2005 eval "ac_cv_func_getc_unlocked=yes" 2006 else 2007*************** 2008*** 3381,3387 **** 2009 # Indicate what the final decision was regarding threads. 2010 # 2011 echo $ac_n "checking whether to build with threads""... $ac_c" 1>&6 2012! echo "configure:3385: checking whether to build with threads" >&5 2013 if $use_threads; then 2014 echo "$ac_t""yes" 1>&6 2015 else 2016--- 3389,3395 ---- 2017 # Indicate what the final decision was regarding threads. 2018 # 2019 echo $ac_n "checking whether to build with threads""... $ac_c" 1>&6 2020! echo "configure:3393: checking whether to build with threads" >&5 2021 if $use_threads; then 2022 echo "$ac_t""yes" 1>&6 2023 else 2024*************** 2025*** 3457,3468 **** 2026 # NLS 2027 # 2028 echo $ac_n "checking for catgets""... $ac_c" 1>&6 2029! echo "configure:3461: checking for catgets" >&5 2030 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then 2031 echo $ac_n "(cached) $ac_c" 1>&6 2032 else 2033 cat > conftest.$ac_ext <<EOF 2034! #line 3466 "configure" 2035 #include "confdefs.h" 2036 /* System header to define __stub macros and hopefully few prototypes, 2037 which can conflict with char catgets(); below. */ 2038--- 3465,3476 ---- 2039 # NLS 2040 # 2041 echo $ac_n "checking for catgets""... $ac_c" 1>&6 2042! echo "configure:3469: checking for catgets" >&5 2043 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then 2044 echo $ac_n "(cached) $ac_c" 1>&6 2045 else 2046 cat > conftest.$ac_ext <<EOF 2047! #line 3474 "configure" 2048 #include "confdefs.h" 2049 /* System header to define __stub macros and hopefully few prototypes, 2050 which can conflict with char catgets(); below. */ 2051*************** 2052*** 3485,3491 **** 2053 2054 ; return 0; } 2055 EOF 2056! if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2057 rm -rf conftest* 2058 eval "ac_cv_func_catgets=yes" 2059 else 2060--- 3493,3499 ---- 2061 2062 ; return 0; } 2063 EOF 2064! if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2065 rm -rf conftest* 2066 eval "ac_cv_func_catgets=yes" 2067 else 2068*************** 2069*** 3523,3529 **** 2070 ;; 2071 *) 2072 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 2073! echo "configure:3527: checking for socket in -lsocket" >&5 2074 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 2075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2076 echo $ac_n "(cached) $ac_c" 1>&6 2077--- 3531,3537 ---- 2078 ;; 2079 *) 2080 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 2081! echo "configure:3535: checking for socket in -lsocket" >&5 2082 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 2083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2084 echo $ac_n "(cached) $ac_c" 1>&6 2085*************** 2086*** 3531,3537 **** 2087 ac_save_LIBS="$LIBS" 2088 LIBS="-lsocket $LIBS" 2089 cat > conftest.$ac_ext <<EOF 2090! #line 3535 "configure" 2091 #include "confdefs.h" 2092 /* Override any gcc2 internal prototype to avoid an error. */ 2093 /* We use char because int might match the return type of a gcc2 2094--- 3539,3545 ---- 2095 ac_save_LIBS="$LIBS" 2096 LIBS="-lsocket $LIBS" 2097 cat > conftest.$ac_ext <<EOF 2098! #line 3543 "configure" 2099 #include "confdefs.h" 2100 /* Override any gcc2 internal prototype to avoid an error. */ 2101 /* We use char because int might match the return type of a gcc2 2102*************** 2103*** 3542,3548 **** 2104 socket() 2105 ; return 0; } 2106 EOF 2107! if { (eval echo configure:3546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2108 rm -rf conftest* 2109 eval "ac_cv_lib_$ac_lib_var=yes" 2110 else 2111--- 3550,3556 ---- 2112 socket() 2113 ; return 0; } 2114 EOF 2115! if { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2116 rm -rf conftest* 2117 eval "ac_cv_lib_$ac_lib_var=yes" 2118 else 2119*************** 2120*** 3570,3576 **** 2121 fi 2122 2123 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6 2124! echo "configure:3574: checking for inet_ntoa in -lnsl" >&5 2125 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'` 2126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2127 echo $ac_n "(cached) $ac_c" 1>&6 2128--- 3578,3584 ---- 2129 fi 2130 2131 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6 2132! echo "configure:3582: checking for inet_ntoa in -lnsl" >&5 2133 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'` 2134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2135 echo $ac_n "(cached) $ac_c" 1>&6 2136*************** 2137*** 3578,3584 **** 2138 ac_save_LIBS="$LIBS" 2139 LIBS="-lnsl $LIBS" 2140 cat > conftest.$ac_ext <<EOF 2141! #line 3582 "configure" 2142 #include "confdefs.h" 2143 /* Override any gcc2 internal prototype to avoid an error. */ 2144 /* We use char because int might match the return type of a gcc2 2145--- 3586,3592 ---- 2146 ac_save_LIBS="$LIBS" 2147 LIBS="-lnsl $LIBS" 2148 cat > conftest.$ac_ext <<EOF 2149! #line 3590 "configure" 2150 #include "confdefs.h" 2151 /* Override any gcc2 internal prototype to avoid an error. */ 2152 /* We use char because int might match the return type of a gcc2 2153*************** 2154*** 3589,3595 **** 2155 inet_ntoa() 2156 ; return 0; } 2157 EOF 2158! if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2159 rm -rf conftest* 2160 eval "ac_cv_lib_$ac_lib_var=yes" 2161 else 2162--- 3597,3603 ---- 2163 inet_ntoa() 2164 ; return 0; } 2165 EOF 2166! if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2167 rm -rf conftest* 2168 eval "ac_cv_lib_$ac_lib_var=yes" 2169 else 2170*************** 2171*** 3623,3629 **** 2172 # Purify support 2173 # 2174 echo $ac_n "checking whether to use purify""... $ac_c" 1>&6 2175! echo "configure:3627: checking whether to use purify" >&5 2176 # Check whether --with-purify or --without-purify was given. 2177 if test "${with_purify+set}" = set; then 2178 withval="$with_purify" 2179--- 3631,3637 ---- 2180 # Purify support 2181 # 2182 echo $ac_n "checking whether to use purify""... $ac_c" 1>&6 2183! echo "configure:3635: checking whether to use purify" >&5 2184 # Check whether --with-purify or --without-purify was given. 2185 if test "${with_purify+set}" = set; then 2186 withval="$with_purify" 2187*************** 2188*** 3640,3646 **** 2189 # Extract the first word of "purify", so it can be a program name with args. 2190 set dummy purify; ac_word=$2 2191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2192! echo "configure:3644: checking for $ac_word" >&5 2193 if eval "test \"`echo '$''{'ac_cv_path_purify_path'+set}'`\" = set"; then 2194 echo $ac_n "(cached) $ac_c" 1>&6 2195 else 2196--- 3648,3654 ---- 2197 # Extract the first word of "purify", so it can be a program name with args. 2198 set dummy purify; ac_word=$2 2199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2200! echo "configure:3652: checking for $ac_word" >&5 2201 if eval "test \"`echo '$''{'ac_cv_path_purify_path'+set}'`\" = set"; then 2202 echo $ac_n "(cached) $ac_c" 1>&6 2203 else 2204*************** 2205*** 3717,3728 **** 2206 case $use_libtool in 2207 yes) 2208 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 2209! echo "configure:3721: checking for Cygwin environment" >&5 2210 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 2211 echo $ac_n "(cached) $ac_c" 1>&6 2212 else 2213 cat > conftest.$ac_ext <<EOF 2214! #line 3726 "configure" 2215 #include "confdefs.h" 2216 2217 int main() { 2218--- 3725,3736 ---- 2219 case $use_libtool in 2220 yes) 2221 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 2222! echo "configure:3729: checking for Cygwin environment" >&5 2223 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 2224 echo $ac_n "(cached) $ac_c" 1>&6 2225 else 2226 cat > conftest.$ac_ext <<EOF 2227! #line 3734 "configure" 2228 #include "confdefs.h" 2229 2230 int main() { 2231*************** 2232*** 3733,3739 **** 2233 return __CYGWIN__; 2234 ; return 0; } 2235 EOF 2236! if { (eval echo configure:3737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2237 rm -rf conftest* 2238 ac_cv_cygwin=yes 2239 else 2240--- 3741,3747 ---- 2241 return __CYGWIN__; 2242 ; return 0; } 2243 EOF 2244! if { (eval echo configure:3745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2245 rm -rf conftest* 2246 ac_cv_cygwin=yes 2247 else 2248*************** 2249*** 3750,3768 **** 2250 CYGWIN= 2251 test "$ac_cv_cygwin" = yes && CYGWIN=yes 2252 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 2253! echo "configure:3754: checking for mingw32 environment" >&5 2254 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 2255 echo $ac_n "(cached) $ac_c" 1>&6 2256 else 2257 cat > conftest.$ac_ext <<EOF 2258! #line 3759 "configure" 2259 #include "confdefs.h" 2260 2261 int main() { 2262 return __MINGW32__; 2263 ; return 0; } 2264 EOF 2265! if { (eval echo configure:3766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2266 rm -rf conftest* 2267 ac_cv_mingw32=yes 2268 else 2269--- 3758,3776 ---- 2270 CYGWIN= 2271 test "$ac_cv_cygwin" = yes && CYGWIN=yes 2272 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 2273! echo "configure:3762: checking for mingw32 environment" >&5 2274 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 2275 echo $ac_n "(cached) $ac_c" 1>&6 2276 else 2277 cat > conftest.$ac_ext <<EOF 2278! #line 3767 "configure" 2279 #include "confdefs.h" 2280 2281 int main() { 2282 return __MINGW32__; 2283 ; return 0; } 2284 EOF 2285! if { (eval echo configure:3774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2286 rm -rf conftest* 2287 ac_cv_mingw32=yes 2288 else 2289*************** 2290*** 3848,3854 **** 2291 fi 2292 2293 echo $ac_n "checking build system type""... $ac_c" 1>&6 2294! echo "configure:3852: checking build system type" >&5 2295 2296 build_alias=$build 2297 case "$build_alias" in 2298--- 3856,3862 ---- 2299 fi 2300 2301 echo $ac_n "checking build system type""... $ac_c" 1>&6 2302! echo "configure:3860: checking build system type" >&5 2303 2304 build_alias=$build 2305 case "$build_alias" in 2306*************** 2307*** 3877,3883 **** 2308 if test "$GCC" = yes; then 2309 # Check if gcc -print-prog-name=ld gives a path. 2310 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 2311! echo "configure:3881: checking for ld used by GCC" >&5 2312 case $host in 2313 *-*-mingw*) 2314 # gcc leaves a trailing carriage return which upsets mingw 2315--- 3885,3891 ---- 2316 if test "$GCC" = yes; then 2317 # Check if gcc -print-prog-name=ld gives a path. 2318 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 2319! echo "configure:3889: checking for ld used by GCC" >&5 2320 case $host in 2321 *-*-mingw*) 2322 # gcc leaves a trailing carriage return which upsets mingw 2323*************** 2324*** 3907,3916 **** 2325 esac 2326 elif test "$with_gnu_ld" = yes; then 2327 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 2328! echo "configure:3911: checking for GNU ld" >&5 2329 else 2330 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 2331! echo "configure:3914: checking for non-GNU ld" >&5 2332 fi 2333 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 2334 echo $ac_n "(cached) $ac_c" 1>&6 2335--- 3915,3924 ---- 2336 esac 2337 elif test "$with_gnu_ld" = yes; then 2338 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 2339! echo "configure:3919: checking for GNU ld" >&5 2340 else 2341 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 2342! echo "configure:3922: checking for non-GNU ld" >&5 2343 fi 2344 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 2345 echo $ac_n "(cached) $ac_c" 1>&6 2346*************** 2347*** 3945,3951 **** 2348 fi 2349 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 2350 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 2351! echo "configure:3949: checking if the linker ($LD) is GNU ld" >&5 2352 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then 2353 echo $ac_n "(cached) $ac_c" 1>&6 2354 else 2355--- 3953,3959 ---- 2356 fi 2357 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 2358 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 2359! echo "configure:3957: checking if the linker ($LD) is GNU ld" >&5 2360 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then 2361 echo $ac_n "(cached) $ac_c" 1>&6 2362 else 2363*************** 2364*** 3962,3968 **** 2365 2366 2367 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 2368! echo "configure:3966: checking for $LD option to reload object files" >&5 2369 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then 2370 echo $ac_n "(cached) $ac_c" 1>&6 2371 else 2372--- 3970,3976 ---- 2373 2374 2375 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 2376! echo "configure:3974: checking for $LD option to reload object files" >&5 2377 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then 2378 echo $ac_n "(cached) $ac_c" 1>&6 2379 else 2380*************** 2381*** 3974,3980 **** 2382 test -n "$reload_flag" && reload_flag=" $reload_flag" 2383 2384 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 2385! echo "configure:3978: checking for BSD-compatible nm" >&5 2386 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then 2387 echo $ac_n "(cached) $ac_c" 1>&6 2388 else 2389--- 3982,3988 ---- 2390 test -n "$reload_flag" && reload_flag=" $reload_flag" 2391 2392 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 2393! echo "configure:3986: checking for BSD-compatible nm" >&5 2394 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then 2395 echo $ac_n "(cached) $ac_c" 1>&6 2396 else 2397*************** 2398*** 4012,4018 **** 2399 echo "$ac_t""$NM" 1>&6 2400 2401 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 2402! echo "configure:4016: checking whether ln -s works" >&5 2403 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 2404 echo $ac_n "(cached) $ac_c" 1>&6 2405 else 2406--- 4020,4026 ---- 2407 echo "$ac_t""$NM" 1>&6 2408 2409 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 2410! echo "configure:4024: checking whether ln -s works" >&5 2411 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 2412 echo $ac_n "(cached) $ac_c" 1>&6 2413 else 2414*************** 2415*** 4033,4039 **** 2416 fi 2417 2418 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 2419! echo "configure:4037: checking how to recognise dependant libraries" >&5 2420 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then 2421 echo $ac_n "(cached) $ac_c" 1>&6 2422 else 2423--- 4041,4047 ---- 2424 fi 2425 2426 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 2427! echo "configure:4045: checking how to recognise dependant libraries" >&5 2428 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then 2429 echo $ac_n "(cached) $ac_c" 1>&6 2430 else 2431*************** 2432*** 4206,4218 **** 2433 deplibs_check_method=$lt_cv_deplibs_check_method 2434 2435 echo $ac_n "checking for object suffix""... $ac_c" 1>&6 2436! echo "configure:4210: checking for object suffix" >&5 2437 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 2438 echo $ac_n "(cached) $ac_c" 1>&6 2439 else 2440 rm -f conftest* 2441 echo 'int i = 1;' > conftest.$ac_ext 2442! if { (eval echo configure:4216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2443 for ac_file in conftest.*; do 2444 case $ac_file in 2445 *.c) ;; 2446--- 4214,4226 ---- 2447 deplibs_check_method=$lt_cv_deplibs_check_method 2448 2449 echo $ac_n "checking for object suffix""... $ac_c" 1>&6 2450! echo "configure:4218: checking for object suffix" >&5 2451 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 2452 echo $ac_n "(cached) $ac_c" 1>&6 2453 else 2454 rm -f conftest* 2455 echo 'int i = 1;' > conftest.$ac_ext 2456! if { (eval echo configure:4224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2457 for ac_file in conftest.*; do 2458 case $ac_file in 2459 *.c) ;; 2460*************** 2461*** 4232,4238 **** 2462 2463 2464 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 2465! echo "configure:4236: checking for executable suffix" >&5 2466 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 2467 echo $ac_n "(cached) $ac_c" 1>&6 2468 else 2469--- 4240,4246 ---- 2470 2471 2472 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 2473! echo "configure:4244: checking for executable suffix" >&5 2474 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 2475 echo $ac_n "(cached) $ac_c" 1>&6 2476 else 2477*************** 2478*** 4242,4251 **** 2479 rm -f conftest* 2480 echo 'int main () { return 0; }' > conftest.$ac_ext 2481 ac_cv_exeext= 2482! if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2483 for file in conftest.*; do 2484 case $file in 2485! *.c | *.o | *.obj) ;; 2486 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 2487 esac 2488 done 2489--- 4250,4259 ---- 2490 rm -f conftest* 2491 echo 'int main () { return 0; }' > conftest.$ac_ext 2492 ac_cv_exeext= 2493! if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2494 for file in conftest.*; do 2495 case $file in 2496! *.c | *.C | *.o | *.obj) ;; 2497 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 2498 esac 2499 done 2500*************** 2501*** 4273,4279 **** 2502 2503 # Check for command to grab the raw symbol name followed by C symbol from nm. 2504 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 2505! echo "configure:4277: checking command to parse $NM output" >&5 2506 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then 2507 echo $ac_n "(cached) $ac_c" 1>&6 2508 else 2509--- 4281,4287 ---- 2510 2511 # Check for command to grab the raw symbol name followed by C symbol from nm. 2512 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 2513! echo "configure:4285: checking command to parse $NM output" >&5 2514 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then 2515 echo $ac_n "(cached) $ac_c" 1>&6 2516 else 2517*************** 2518*** 4349,4358 **** 2519 int main(){nm_test_var='a';nm_test_func();return(0);} 2520 EOF 2521 2522! if { (eval echo configure:4353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2523 # Now try to grab the symbols. 2524 nlist=conftest.nm 2525! if { (eval echo configure:4356: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then 2526 # Try sorting and uniquifying the output. 2527 if sort "$nlist" | uniq > "$nlist"T; then 2528 mv -f "$nlist"T "$nlist" 2529--- 4357,4366 ---- 2530 int main(){nm_test_var='a';nm_test_func();return(0);} 2531 EOF 2532 2533! if { (eval echo configure:4361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2534 # Now try to grab the symbols. 2535 nlist=conftest.nm 2536! if { (eval echo configure:4364: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then 2537 # Try sorting and uniquifying the output. 2538 if sort "$nlist" | uniq > "$nlist"T; then 2539 mv -f "$nlist"T "$nlist" 2540*************** 2541*** 4403,4409 **** 2542 save_CFLAGS="$CFLAGS" 2543 LIBS="conftstm.$ac_objext" 2544 CFLAGS="$CFLAGS$no_builtin_flag" 2545! if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2546 pipe_works=yes 2547 fi 2548 LIBS="$save_LIBS" 2549--- 4411,4417 ---- 2550 save_CFLAGS="$CFLAGS" 2551 LIBS="conftstm.$ac_objext" 2552 CFLAGS="$CFLAGS$no_builtin_flag" 2553! if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2554 pipe_works=yes 2555 fi 2556 LIBS="$save_LIBS" 2557*************** 2558*** 4449,4465 **** 2559 do 2560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2562! echo "configure:4453: checking for $ac_hdr" >&5 2563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2564 echo $ac_n "(cached) $ac_c" 1>&6 2565 else 2566 cat > conftest.$ac_ext <<EOF 2567! #line 4458 "configure" 2568 #include "confdefs.h" 2569 #include <$ac_hdr> 2570 EOF 2571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2572! { (eval echo configure:4463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2574 if test -z "$ac_err"; then 2575 rm -rf conftest* 2576--- 4457,4473 ---- 2577 do 2578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2580! echo "configure:4461: checking for $ac_hdr" >&5 2581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2582 echo $ac_n "(cached) $ac_c" 1>&6 2583 else 2584 cat > conftest.$ac_ext <<EOF 2585! #line 4466 "configure" 2586 #include "confdefs.h" 2587 #include <$ac_hdr> 2588 EOF 2589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2590! { (eval echo configure:4471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2592 if test -z "$ac_err"; then 2593 rm -rf conftest* 2594*************** 2595*** 4494,4500 **** 2596 file_magic*) 2597 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2598 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 2599! echo "configure:4498: checking for ${ac_tool_prefix}file" >&5 2600 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 2601 echo $ac_n "(cached) $ac_c" 1>&6 2602 else 2603--- 4502,4508 ---- 2604 file_magic*) 2605 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2606 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 2607! echo "configure:4506: checking for ${ac_tool_prefix}file" >&5 2608 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 2609 echo $ac_n "(cached) $ac_c" 1>&6 2610 else 2611*************** 2612*** 4556,4562 **** 2613 if test -z "$lt_cv_path_MAGIC_CMD"; then 2614 if test -n "$ac_tool_prefix"; then 2615 echo $ac_n "checking for file""... $ac_c" 1>&6 2616! echo "configure:4560: checking for file" >&5 2617 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 2618 echo $ac_n "(cached) $ac_c" 1>&6 2619 else 2620--- 4564,4570 ---- 2621 if test -z "$lt_cv_path_MAGIC_CMD"; then 2622 if test -n "$ac_tool_prefix"; then 2623 echo $ac_n "checking for file""... $ac_c" 1>&6 2624! echo "configure:4568: checking for file" >&5 2625 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 2626 echo $ac_n "(cached) $ac_c" 1>&6 2627 else 2628*************** 2629*** 4627,4633 **** 2630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2633! echo "configure:4631: checking for $ac_word" >&5 2634 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2635 echo $ac_n "(cached) $ac_c" 1>&6 2636 else 2637--- 4635,4641 ---- 2638 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2639 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2641! echo "configure:4639: checking for $ac_word" >&5 2642 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2643 echo $ac_n "(cached) $ac_c" 1>&6 2644 else 2645*************** 2646*** 4659,4665 **** 2647 # Extract the first word of "ranlib", so it can be a program name with args. 2648 set dummy ranlib; ac_word=$2 2649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2650! echo "configure:4663: checking for $ac_word" >&5 2651 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2652 echo $ac_n "(cached) $ac_c" 1>&6 2653 else 2654--- 4667,4673 ---- 2655 # Extract the first word of "ranlib", so it can be a program name with args. 2656 set dummy ranlib; ac_word=$2 2657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2658! echo "configure:4671: checking for $ac_word" >&5 2659 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2660 echo $ac_n "(cached) $ac_c" 1>&6 2661 else 2662*************** 2663*** 4694,4700 **** 2664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2665 set dummy ${ac_tool_prefix}strip; ac_word=$2 2666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2667! echo "configure:4698: checking for $ac_word" >&5 2668 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 2669 echo $ac_n "(cached) $ac_c" 1>&6 2670 else 2671--- 4702,4708 ---- 2672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2673 set dummy ${ac_tool_prefix}strip; ac_word=$2 2674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2675! echo "configure:4706: checking for $ac_word" >&5 2676 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 2677 echo $ac_n "(cached) $ac_c" 1>&6 2678 else 2679*************** 2680*** 4726,4732 **** 2681 # Extract the first word of "strip", so it can be a program name with args. 2682 set dummy strip; ac_word=$2 2683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2684! echo "configure:4730: checking for $ac_word" >&5 2685 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 2686 echo $ac_n "(cached) $ac_c" 1>&6 2687 else 2688--- 4734,4740 ---- 2689 # Extract the first word of "strip", so it can be a program name with args. 2690 set dummy strip; ac_word=$2 2691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2692! echo "configure:4738: checking for $ac_word" >&5 2693 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 2694 echo $ac_n "(cached) $ac_c" 1>&6 2695 else 2696*************** 2697*** 4775,4782 **** 2698 case $host in 2699 *-*-irix6*) 2700 # Find out which ABI we are using. 2701! echo '#line 4779 "configure"' > conftest.$ac_ext 2702! if { (eval echo configure:4780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2703 case `/usr/bin/file conftest.$ac_objext` in 2704 *32-bit*) 2705 LD="${LD-ld} -32" 2706--- 4783,4790 ---- 2707 case $host in 2708 *-*-irix6*) 2709 # Find out which ABI we are using. 2710! echo '#line 4787 "configure"' > conftest.$ac_ext 2711! if { (eval echo configure:4788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2712 case `/usr/bin/file conftest.$ac_objext` in 2713 *32-bit*) 2714 LD="${LD-ld} -32" 2715*************** 2716*** 4797,4803 **** 2717 SAVE_CFLAGS="$CFLAGS" 2718 CFLAGS="$CFLAGS -belf" 2719 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 2720! echo "configure:4801: checking whether the C compiler needs -belf" >&5 2721 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 2722 echo $ac_n "(cached) $ac_c" 1>&6 2723 else 2724--- 4805,4811 ---- 2725 SAVE_CFLAGS="$CFLAGS" 2726 CFLAGS="$CFLAGS -belf" 2727 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 2728! echo "configure:4809: checking whether the C compiler needs -belf" >&5 2729 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 2730 echo $ac_n "(cached) $ac_c" 1>&6 2731 else 2732*************** 2733*** 4810,4823 **** 2734 cross_compiling=$ac_cv_prog_cc_cross 2735 2736 cat > conftest.$ac_ext <<EOF 2737! #line 4814 "configure" 2738 #include "confdefs.h" 2739 2740 int main() { 2741 2742 ; return 0; } 2743 EOF 2744! if { (eval echo configure:4821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2745 rm -rf conftest* 2746 lt_cv_cc_needs_belf=yes 2747 else 2748--- 4818,4831 ---- 2749 cross_compiling=$ac_cv_prog_cc_cross 2750 2751 cat > conftest.$ac_ext <<EOF 2752! #line 4822 "configure" 2753 #include "confdefs.h" 2754 2755 int main() { 2756 2757 ; return 0; } 2758 EOF 2759! if { (eval echo configure:4829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2760 rm -rf conftest* 2761 lt_cv_cc_needs_belf=yes 2762 else 2763*************** 2764*** 4932,4938 **** 2765 ## FIXME: this should be a separate macro 2766 ## 2767 echo $ac_n "checking for objdir""... $ac_c" 1>&6 2768! echo "configure:4936: checking for objdir" >&5 2769 rm -f .libs 2>/dev/null 2770 mkdir .libs 2>/dev/null 2771 if test -d .libs; then 2772--- 4940,4946 ---- 2773 ## FIXME: this should be a separate macro 2774 ## 2775 echo $ac_n "checking for objdir""... $ac_c" 1>&6 2776! echo "configure:4944: checking for objdir" >&5 2777 rm -f .libs 2>/dev/null 2778 mkdir .libs 2>/dev/null 2779 if test -d .libs; then 2780*************** 2781*** 4963,4969 **** 2782 # in isolation, and that seeing it set (from the cache) indicates that 2783 # the associated values are set (in the cache) correctly too. 2784 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6 2785! echo "configure:4967: checking for $compiler option to produce PIC" >&5 2786 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then 2787 echo $ac_n "(cached) $ac_c" 1>&6 2788 else 2789--- 4971,4977 ---- 2790 # in isolation, and that seeing it set (from the cache) indicates that 2791 # the associated values are set (in the cache) correctly too. 2792 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6 2793! echo "configure:4975: checking for $compiler option to produce PIC" >&5 2794 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then 2795 echo $ac_n "(cached) $ac_c" 1>&6 2796 else 2797*************** 2798*** 5115,5135 **** 2799 2800 # Check to make sure the pic_flag actually works. 2801 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6 2802! echo "configure:5119: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 2803 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then 2804 echo $ac_n "(cached) $ac_c" 1>&6 2805 else 2806 save_CFLAGS="$CFLAGS" 2807 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 2808 cat > conftest.$ac_ext <<EOF 2809! #line 5126 "configure" 2810 #include "confdefs.h" 2811 2812 int main() { 2813 2814 ; return 0; } 2815 EOF 2816! if { (eval echo configure:5133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2817 rm -rf conftest* 2818 case $host_os in 2819 hpux9* | hpux10* | hpux11*) 2820--- 5123,5143 ---- 2821 2822 # Check to make sure the pic_flag actually works. 2823 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6 2824! echo "configure:5127: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 2825 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then 2826 echo $ac_n "(cached) $ac_c" 1>&6 2827 else 2828 save_CFLAGS="$CFLAGS" 2829 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 2830 cat > conftest.$ac_ext <<EOF 2831! #line 5134 "configure" 2832 #include "confdefs.h" 2833 2834 int main() { 2835 2836 ; return 0; } 2837 EOF 2838! if { (eval echo configure:5141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2839 rm -rf conftest* 2840 case $host_os in 2841 hpux9* | hpux10* | hpux11*) 2842*************** 2843*** 5185,5191 **** 2844 ## FIXME: this should be a separate macro 2845 ## 2846 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6 2847! echo "configure:5189: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 2848 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then 2849 echo $ac_n "(cached) $ac_c" 1>&6 2850 else 2851--- 5193,5199 ---- 2852 ## FIXME: this should be a separate macro 2853 ## 2854 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6 2855! echo "configure:5197: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 2856 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then 2857 echo $ac_n "(cached) $ac_c" 1>&6 2858 else 2859*************** 2860*** 5193,5206 **** 2861 save_LDFLAGS="$LDFLAGS" 2862 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 2863 cat > conftest.$ac_ext <<EOF 2864! #line 5197 "configure" 2865 #include "confdefs.h" 2866 2867 int main() { 2868 2869 ; return 0; } 2870 EOF 2871! if { (eval echo configure:5204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2872 rm -rf conftest* 2873 lt_cv_prog_cc_static_works=yes 2874 else 2875--- 5201,5214 ---- 2876 save_LDFLAGS="$LDFLAGS" 2877 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 2878 cat > conftest.$ac_ext <<EOF 2879! #line 5205 "configure" 2880 #include "confdefs.h" 2881 2882 int main() { 2883 2884 ; return 0; } 2885 EOF 2886! if { (eval echo configure:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2887 rm -rf conftest* 2888 lt_cv_prog_cc_static_works=yes 2889 else 2890*************** 2891*** 5231,5237 **** 2892 ## 2893 # Check to see if options -o and -c are simultaneously supported by compiler 2894 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6 2895! echo "configure:5235: checking if $compiler supports -c -o file.$ac_objext" >&5 2896 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then 2897 echo $ac_n "(cached) $ac_c" 1>&6 2898 else 2899--- 5239,5245 ---- 2900 ## 2901 # Check to see if options -o and -c are simultaneously supported by compiler 2902 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6 2903! echo "configure:5243: checking if $compiler supports -c -o file.$ac_objext" >&5 2904 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then 2905 echo $ac_n "(cached) $ac_c" 1>&6 2906 else 2907*************** 2908*** 5250,5256 **** 2909 save_CFLAGS="$CFLAGS" 2910 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 2911 compiler_c_o=no 2912! if { (eval echo configure:5254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 2913 # The compiler can only warn and ignore the option if not recognized 2914 # So say no if there are warnings 2915 if test -s out/conftest.err; then 2916--- 5258,5264 ---- 2917 save_CFLAGS="$CFLAGS" 2918 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 2919 compiler_c_o=no 2920! if { (eval echo configure:5262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 2921 # The compiler can only warn and ignore the option if not recognized 2922 # So say no if there are warnings 2923 if test -s out/conftest.err; then 2924*************** 2925*** 5279,5285 **** 2926 if test x"$compiler_c_o" = x"yes"; then 2927 # Check to see if we can write to a .lo 2928 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6 2929! echo "configure:5283: checking if $compiler supports -c -o file.lo" >&5 2930 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then 2931 echo $ac_n "(cached) $ac_c" 1>&6 2932 else 2933--- 5287,5293 ---- 2934 if test x"$compiler_c_o" = x"yes"; then 2935 # Check to see if we can write to a .lo 2936 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6 2937! echo "configure:5291: checking if $compiler supports -c -o file.lo" >&5 2938 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then 2939 echo $ac_n "(cached) $ac_c" 1>&6 2940 else 2941*************** 2942*** 5288,5301 **** 2943 save_CFLAGS="$CFLAGS" 2944 CFLAGS="$CFLAGS -c -o conftest.lo" 2945 cat > conftest.$ac_ext <<EOF 2946! #line 5292 "configure" 2947 #include "confdefs.h" 2948 2949 int main() { 2950 int some_variable = 0; 2951 ; return 0; } 2952 EOF 2953! if { (eval echo configure:5299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2954 rm -rf conftest* 2955 # The compiler can only warn and ignore the option if not recognized 2956 # So say no if there are warnings 2957--- 5296,5309 ---- 2958 save_CFLAGS="$CFLAGS" 2959 CFLAGS="$CFLAGS -c -o conftest.lo" 2960 cat > conftest.$ac_ext <<EOF 2961! #line 5300 "configure" 2962 #include "confdefs.h" 2963 2964 int main() { 2965 int some_variable = 0; 2966 ; return 0; } 2967 EOF 2968! if { (eval echo configure:5307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2969 rm -rf conftest* 2970 # The compiler can only warn and ignore the option if not recognized 2971 # So say no if there are warnings 2972*************** 2973*** 5329,5335 **** 2974 if test "$compiler_c_o" = no && test "$need_locks" != no; then 2975 # do not overwrite the value of need_locks provided by the user 2976 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6 2977! echo "configure:5333: checking if we can lock with hard links" >&5 2978 hard_links=yes 2979 $rm conftest* 2980 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2981--- 5337,5343 ---- 2982 if test "$compiler_c_o" = no && test "$need_locks" != no; then 2983 # do not overwrite the value of need_locks provided by the user 2984 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6 2985! echo "configure:5341: checking if we can lock with hard links" >&5 2986 hard_links=yes 2987 $rm conftest* 2988 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2989*************** 2990*** 5352,5371 **** 2991 if test "$GCC" = yes; then 2992 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 2993 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6 2994! echo "configure:5356: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 2995 echo "int some_variable = 0;" > conftest.$ac_ext 2996 save_CFLAGS="$CFLAGS" 2997 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 2998 compiler_rtti_exceptions=no 2999 cat > conftest.$ac_ext <<EOF 3000! #line 5362 "configure" 3001 #include "confdefs.h" 3002 3003 int main() { 3004 int some_variable = 0; 3005 ; return 0; } 3006 EOF 3007! if { (eval echo configure:5369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3008 rm -rf conftest* 3009 # The compiler can only warn and ignore the option if not recognized 3010 # So say no if there are warnings 3011--- 5360,5379 ---- 3012 if test "$GCC" = yes; then 3013 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 3014 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6 3015! echo "configure:5364: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 3016 echo "int some_variable = 0;" > conftest.$ac_ext 3017 save_CFLAGS="$CFLAGS" 3018 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 3019 compiler_rtti_exceptions=no 3020 cat > conftest.$ac_ext <<EOF 3021! #line 5370 "configure" 3022 #include "confdefs.h" 3023 3024 int main() { 3025 int some_variable = 0; 3026 ; return 0; } 3027 EOF 3028! if { (eval echo configure:5377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3029 rm -rf conftest* 3030 # The compiler can only warn and ignore the option if not recognized 3031 # So say no if there are warnings 3032*************** 3033*** 5396,5402 **** 3034 ## 3035 # See if the linker supports building shared libraries. 3036 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6 3037! echo "configure:5400: checking whether the linker ($LD) supports shared libraries" >&5 3038 3039 allow_undefined_flag= 3040 no_undefined_flag= 3041--- 5404,5410 ---- 3042 ## 3043 # See if the linker supports building shared libraries. 3044 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6 3045! echo "configure:5408: checking whether the linker ($LD) supports shared libraries" >&5 3046 3047 allow_undefined_flag= 3048 no_undefined_flag= 3049*************** 3050*** 6016,6022 **** 3051 ## 3052 # Check hardcoding attributes. 3053 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6 3054! echo "configure:6020: checking how to hardcode library paths into programs" >&5 3055 hardcode_action= 3056 if test -n "$hardcode_libdir_flag_spec" || \ 3057 test -n "$runpath_var"; then 3058--- 6024,6030 ---- 3059 ## 3060 # Check hardcoding attributes. 3061 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6 3062! echo "configure:6028: checking how to hardcode library paths into programs" >&5 3063 hardcode_action= 3064 if test -n "$hardcode_libdir_flag_spec" || \ 3065 test -n "$runpath_var"; then 3066*************** 3067*** 6048,6054 **** 3068 striplib= 3069 old_striplib= 3070 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 3071! echo "configure:6052: checking whether stripping libraries is possible" >&5 3072 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 3073 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 3074 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 3075--- 6056,6062 ---- 3076 striplib= 3077 old_striplib= 3078 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 3079! echo "configure:6060: checking whether stripping libraries is possible" >&5 3080 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 3081 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 3082 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 3083*************** 3084*** 6066,6072 **** 3085 ## 3086 # PORTME Fill in your ld.so characteristics 3087 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 3088! echo "configure:6070: checking dynamic linker characteristics" >&5 3089 library_names_spec= 3090 libname_spec='lib$name' 3091 soname_spec= 3092--- 6074,6080 ---- 3093 ## 3094 # PORTME Fill in your ld.so characteristics 3095 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 3096! echo "configure:6078: checking dynamic linker characteristics" >&5 3097 library_names_spec= 3098 libname_spec='lib$name' 3099 soname_spec= 3100*************** 3101*** 6456,6462 **** 3102 ## 3103 # Report the final consequences. 3104 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 3105! echo "configure:6460: checking if libtool supports shared libraries" >&5 3106 echo "$ac_t""$can_build_shared" 1>&6 3107 ## 3108 ## END FIXME 3109--- 6464,6470 ---- 3110 ## 3111 # Report the final consequences. 3112 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 3113! echo "configure:6468: checking if libtool supports shared libraries" >&5 3114 echo "$ac_t""$can_build_shared" 1>&6 3115 ## 3116 ## END FIXME 3117*************** 3118*** 6497,6503 **** 3119 3120 *) 3121 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 3122! echo "configure:6501: checking for dlopen in -ldl" >&5 3123 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 3124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3125 echo $ac_n "(cached) $ac_c" 1>&6 3126--- 6505,6511 ---- 3127 3128 *) 3129 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 3130! echo "configure:6509: checking for dlopen in -ldl" >&5 3131 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 3132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3133 echo $ac_n "(cached) $ac_c" 1>&6 3134*************** 3135*** 6505,6511 **** 3136 ac_save_LIBS="$LIBS" 3137 LIBS="-ldl $LIBS" 3138 cat > conftest.$ac_ext <<EOF 3139! #line 6509 "configure" 3140 #include "confdefs.h" 3141 /* Override any gcc2 internal prototype to avoid an error. */ 3142 /* We use char because int might match the return type of a gcc2 3143--- 6513,6519 ---- 3144 ac_save_LIBS="$LIBS" 3145 LIBS="-ldl $LIBS" 3146 cat > conftest.$ac_ext <<EOF 3147! #line 6517 "configure" 3148 #include "confdefs.h" 3149 /* Override any gcc2 internal prototype to avoid an error. */ 3150 /* We use char because int might match the return type of a gcc2 3151*************** 3152*** 6516,6522 **** 3153 dlopen() 3154 ; return 0; } 3155 EOF 3156! if { (eval echo configure:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3157 rm -rf conftest* 3158 eval "ac_cv_lib_$ac_lib_var=yes" 3159 else 3160--- 6524,6530 ---- 3161 dlopen() 3162 ; return 0; } 3163 EOF 3164! if { (eval echo configure:6528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3165 rm -rf conftest* 3166 eval "ac_cv_lib_$ac_lib_var=yes" 3167 else 3168*************** 3169*** 6535,6546 **** 3170 else 3171 echo "$ac_t""no" 1>&6 3172 echo $ac_n "checking for dlopen""... $ac_c" 1>&6 3173! echo "configure:6539: checking for dlopen" >&5 3174 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then 3175 echo $ac_n "(cached) $ac_c" 1>&6 3176 else 3177 cat > conftest.$ac_ext <<EOF 3178! #line 6544 "configure" 3179 #include "confdefs.h" 3180 /* System header to define __stub macros and hopefully few prototypes, 3181 which can conflict with char dlopen(); below. */ 3182--- 6543,6554 ---- 3183 else 3184 echo "$ac_t""no" 1>&6 3185 echo $ac_n "checking for dlopen""... $ac_c" 1>&6 3186! echo "configure:6547: checking for dlopen" >&5 3187 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then 3188 echo $ac_n "(cached) $ac_c" 1>&6 3189 else 3190 cat > conftest.$ac_ext <<EOF 3191! #line 6552 "configure" 3192 #include "confdefs.h" 3193 /* System header to define __stub macros and hopefully few prototypes, 3194 which can conflict with char dlopen(); below. */ 3195*************** 3196*** 6563,6569 **** 3197 3198 ; return 0; } 3199 EOF 3200! if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3201 rm -rf conftest* 3202 eval "ac_cv_func_dlopen=yes" 3203 else 3204--- 6571,6577 ---- 3205 3206 ; return 0; } 3207 EOF 3208! if { (eval echo configure:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3209 rm -rf conftest* 3210 eval "ac_cv_func_dlopen=yes" 3211 else 3212*************** 3213*** 6581,6592 **** 3214 else 3215 echo "$ac_t""no" 1>&6 3216 echo $ac_n "checking for shl_load""... $ac_c" 1>&6 3217! echo "configure:6585: checking for shl_load" >&5 3218 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then 3219 echo $ac_n "(cached) $ac_c" 1>&6 3220 else 3221 cat > conftest.$ac_ext <<EOF 3222! #line 6590 "configure" 3223 #include "confdefs.h" 3224 /* System header to define __stub macros and hopefully few prototypes, 3225 which can conflict with char shl_load(); below. */ 3226--- 6589,6600 ---- 3227 else 3228 echo "$ac_t""no" 1>&6 3229 echo $ac_n "checking for shl_load""... $ac_c" 1>&6 3230! echo "configure:6593: checking for shl_load" >&5 3231 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then 3232 echo $ac_n "(cached) $ac_c" 1>&6 3233 else 3234 cat > conftest.$ac_ext <<EOF 3235! #line 6598 "configure" 3236 #include "confdefs.h" 3237 /* System header to define __stub macros and hopefully few prototypes, 3238 which can conflict with char shl_load(); below. */ 3239*************** 3240*** 6609,6615 **** 3241 3242 ; return 0; } 3243 EOF 3244! if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3245 rm -rf conftest* 3246 eval "ac_cv_func_shl_load=yes" 3247 else 3248--- 6617,6623 ---- 3249 3250 ; return 0; } 3251 EOF 3252! if { (eval echo configure:6621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3253 rm -rf conftest* 3254 eval "ac_cv_func_shl_load=yes" 3255 else 3256*************** 3257*** 6627,6633 **** 3258 else 3259 echo "$ac_t""no" 1>&6 3260 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 3261! echo "configure:6631: checking for dlopen in -lsvld" >&5 3262 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'` 3263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3264 echo $ac_n "(cached) $ac_c" 1>&6 3265--- 6635,6641 ---- 3266 else 3267 echo "$ac_t""no" 1>&6 3268 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 3269! echo "configure:6639: checking for dlopen in -lsvld" >&5 3270 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'` 3271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3272 echo $ac_n "(cached) $ac_c" 1>&6 3273*************** 3274*** 6635,6641 **** 3275 ac_save_LIBS="$LIBS" 3276 LIBS="-lsvld $LIBS" 3277 cat > conftest.$ac_ext <<EOF 3278! #line 6639 "configure" 3279 #include "confdefs.h" 3280 /* Override any gcc2 internal prototype to avoid an error. */ 3281 /* We use char because int might match the return type of a gcc2 3282--- 6643,6649 ---- 3283 ac_save_LIBS="$LIBS" 3284 LIBS="-lsvld $LIBS" 3285 cat > conftest.$ac_ext <<EOF 3286! #line 6647 "configure" 3287 #include "confdefs.h" 3288 /* Override any gcc2 internal prototype to avoid an error. */ 3289 /* We use char because int might match the return type of a gcc2 3290*************** 3291*** 6646,6652 **** 3292 dlopen() 3293 ; return 0; } 3294 EOF 3295! if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3296 rm -rf conftest* 3297 eval "ac_cv_lib_$ac_lib_var=yes" 3298 else 3299--- 6654,6660 ---- 3300 dlopen() 3301 ; return 0; } 3302 EOF 3303! if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3304 rm -rf conftest* 3305 eval "ac_cv_lib_$ac_lib_var=yes" 3306 else 3307*************** 3308*** 6665,6671 **** 3309 else 3310 echo "$ac_t""no" 1>&6 3311 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 3312! echo "configure:6669: checking for shl_load in -ldld" >&5 3313 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 3314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3315 echo $ac_n "(cached) $ac_c" 1>&6 3316--- 6673,6679 ---- 3317 else 3318 echo "$ac_t""no" 1>&6 3319 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 3320! echo "configure:6677: checking for shl_load in -ldld" >&5 3321 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 3322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3323 echo $ac_n "(cached) $ac_c" 1>&6 3324*************** 3325*** 6673,6679 **** 3326 ac_save_LIBS="$LIBS" 3327 LIBS="-ldld $LIBS" 3328 cat > conftest.$ac_ext <<EOF 3329! #line 6677 "configure" 3330 #include "confdefs.h" 3331 /* Override any gcc2 internal prototype to avoid an error. */ 3332 /* We use char because int might match the return type of a gcc2 3333--- 6681,6687 ---- 3334 ac_save_LIBS="$LIBS" 3335 LIBS="-ldld $LIBS" 3336 cat > conftest.$ac_ext <<EOF 3337! #line 6685 "configure" 3338 #include "confdefs.h" 3339 /* Override any gcc2 internal prototype to avoid an error. */ 3340 /* We use char because int might match the return type of a gcc2 3341*************** 3342*** 6684,6690 **** 3343 shl_load() 3344 ; return 0; } 3345 EOF 3346! if { (eval echo configure:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3347 rm -rf conftest* 3348 eval "ac_cv_lib_$ac_lib_var=yes" 3349 else 3350--- 6692,6698 ---- 3351 shl_load() 3352 ; return 0; } 3353 EOF 3354! if { (eval echo configure:6696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3355 rm -rf conftest* 3356 eval "ac_cv_lib_$ac_lib_var=yes" 3357 else 3358*************** 3359*** 6737,6743 **** 3360 LIBS="$lt_cv_dlopen_libs $LIBS" 3361 3362 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 3363! echo "configure:6741: checking whether a program can dlopen itself" >&5 3364 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then 3365 echo $ac_n "(cached) $ac_c" 1>&6 3366 else 3367--- 6745,6751 ---- 3368 LIBS="$lt_cv_dlopen_libs $LIBS" 3369 3370 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 3371! echo "configure:6749: checking whether a program can dlopen itself" >&5 3372 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then 3373 echo $ac_n "(cached) $ac_c" 1>&6 3374 else 3375*************** 3376*** 6747,6753 **** 3377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 3378 lt_status=$lt_dlunknown 3379 cat > conftest.$ac_ext <<EOF 3380! #line 6751 "configure" 3381 #include "confdefs.h" 3382 3383 #if HAVE_DLFCN_H 3384--- 6755,6761 ---- 3385 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 3386 lt_status=$lt_dlunknown 3387 cat > conftest.$ac_ext <<EOF 3388! #line 6759 "configure" 3389 #include "confdefs.h" 3390 3391 #if HAVE_DLFCN_H 3392*************** 3393*** 6808,6814 **** 3394 exit (status); 3395 } 3396 EOF 3397! if { (eval echo configure:6812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 3398 (./conftest; exit; ) 2>/dev/null 3399 lt_status=$? 3400 case x$lt_status in 3401--- 6816,6822 ---- 3402 exit (status); 3403 } 3404 EOF 3405! if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 3406 (./conftest; exit; ) 2>/dev/null 3407 lt_status=$? 3408 case x$lt_status in 3409*************** 3410*** 6831,6837 **** 3411 if test "x$lt_cv_dlopen_self" = xyes; then 3412 LDFLAGS="$LDFLAGS $link_static_flag" 3413 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 3414! echo "configure:6835: checking whether a statically linked program can dlopen itself" >&5 3415 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then 3416 echo $ac_n "(cached) $ac_c" 1>&6 3417 else 3418--- 6839,6845 ---- 3419 if test "x$lt_cv_dlopen_self" = xyes; then 3420 LDFLAGS="$LDFLAGS $link_static_flag" 3421 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 3422! echo "configure:6843: checking whether a statically linked program can dlopen itself" >&5 3423 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then 3424 echo $ac_n "(cached) $ac_c" 1>&6 3425 else 3426*************** 3427*** 6841,6847 **** 3428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 3429 lt_status=$lt_dlunknown 3430 cat > conftest.$ac_ext <<EOF 3431! #line 6845 "configure" 3432 #include "confdefs.h" 3433 3434 #if HAVE_DLFCN_H 3435--- 6849,6855 ---- 3436 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 3437 lt_status=$lt_dlunknown 3438 cat > conftest.$ac_ext <<EOF 3439! #line 6853 "configure" 3440 #include "confdefs.h" 3441 3442 #if HAVE_DLFCN_H 3443*************** 3444*** 6902,6908 **** 3445 exit (status); 3446 } 3447 EOF 3448! if { (eval echo configure:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 3449 (./conftest; exit; ) 2>/dev/null 3450 lt_status=$? 3451 case x$lt_status in 3452--- 6910,6916 ---- 3453 exit (status); 3454 } 3455 EOF 3456! if { (eval echo configure:6914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 3457 (./conftest; exit; ) 2>/dev/null 3458 lt_status=$? 3459 case x$lt_status in 3460*************** 3461*** 6953,6966 **** 3462 # systems, -lgcc has to come before -lc. If gcc already passes -lc 3463 # to ld, don't add -lc before -lgcc. 3464 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6 3465! echo "configure:6957: checking whether -lc should be explicitly linked in" >&5 3466 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then 3467 echo $ac_n "(cached) $ac_c" 1>&6 3468 else 3469 $rm conftest* 3470 echo 'static int dummy;' > conftest.$ac_ext 3471 3472! if { (eval echo configure:6964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3473 soname=conftest 3474 lib=conftest 3475 libobjs=conftest.$ac_objext 3476--- 6961,6974 ---- 3477 # systems, -lgcc has to come before -lc. If gcc already passes -lc 3478 # to ld, don't add -lc before -lgcc. 3479 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6 3480! echo "configure:6965: checking whether -lc should be explicitly linked in" >&5 3481 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then 3482 echo $ac_n "(cached) $ac_c" 1>&6 3483 else 3484 $rm conftest* 3485 echo 'static int dummy;' > conftest.$ac_ext 3486 3487! if { (eval echo configure:6972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3488 soname=conftest 3489 lib=conftest 3490 libobjs=conftest.$ac_objext 3491*************** 3492*** 6973,6979 **** 3493 libname=conftest 3494 save_allow_undefined_flag=$allow_undefined_flag 3495 allow_undefined_flag= 3496! if { (eval echo configure:6977: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; } 3497 then 3498 lt_cv_archive_cmds_need_lc=no 3499 else 3500--- 6981,6987 ---- 3501 libname=conftest 3502 save_allow_undefined_flag=$allow_undefined_flag 3503 allow_undefined_flag= 3504! if { (eval echo configure:6985: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; } 3505 then 3506 lt_cv_archive_cmds_need_lc=no 3507 else 3508*************** 3509*** 7630,7638 **** 3510 # the right suffix on the files. 3511 # 3512 echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6 3513! echo "configure:7634: checking for IPv6 structures" >&5 3514 cat > conftest.$ac_ext <<EOF 3515! #line 7636 "configure" 3516 #include "confdefs.h" 3517 3518 #include <sys/types.h> 3519--- 7638,7646 ---- 3520 # the right suffix on the files. 3521 # 3522 echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6 3523! echo "configure:7642: checking for IPv6 structures" >&5 3524 cat > conftest.$ac_ext <<EOF 3525! #line 7644 "configure" 3526 #include "confdefs.h" 3527 3528 #include <sys/types.h> 3529*************** 3530*** 7642,7648 **** 3531 struct sockaddr_in6 sin6; return (0); 3532 ; return 0; } 3533 EOF 3534! if { (eval echo configure:7646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3535 rm -rf conftest* 3536 echo "$ac_t""yes" 1>&6 3537 found_ipv6=yes 3538--- 7650,7656 ---- 3539 struct sockaddr_in6 sin6; return (0); 3540 ; return 0; } 3541 EOF 3542! if { (eval echo configure:7654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3543 rm -rf conftest* 3544 echo "$ac_t""yes" 1>&6 3545 found_ipv6=yes 3546*************** 3547*** 7660,7666 **** 3548 # This is done before other IPv6 linking tests to LIBS is properly set. 3549 # 3550 echo $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6 3551! echo "configure:7664: checking for Kame IPv6 support" >&5 3552 # Check whether --with-kame or --without-kame was given. 3553 if test "${with_kame+set}" = set; then 3554 withval="$with_kame" 3555--- 7668,7674 ---- 3556 # This is done before other IPv6 linking tests to LIBS is properly set. 3557 # 3558 echo $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6 3559! echo "configure:7672: checking for Kame IPv6 support" >&5 3560 # Check whether --with-kame or --without-kame was given. 3561 if test "${with_kame+set}" = set; then 3562 withval="$with_kame" 3563*************** 3564*** 7751,7759 **** 3565 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1" 3566 3567 echo $ac_n "checking for in6_addr""... $ac_c" 1>&6 3568! echo "configure:7755: checking for in6_addr" >&5 3569 cat > conftest.$ac_ext <<EOF 3570! #line 7757 "configure" 3571 #include "confdefs.h" 3572 3573 #include <sys/types.h> 3574--- 7759,7767 ---- 3575 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1" 3576 3577 echo $ac_n "checking for in6_addr""... $ac_c" 1>&6 3578! echo "configure:7763: checking for in6_addr" >&5 3579 cat > conftest.$ac_ext <<EOF 3580! #line 7765 "configure" 3581 #include "confdefs.h" 3582 3583 #include <sys/types.h> 3584*************** 3585*** 7766,7772 **** 3586 struct in6_addr in6; return (0); 3587 ; return 0; } 3588 EOF 3589! if { (eval echo configure:7770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3590 rm -rf conftest* 3591 echo "$ac_t""yes" 1>&6 3592 ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6" 3593--- 7774,7780 ---- 3594 struct in6_addr in6; return (0); 3595 ; return 0; } 3596 EOF 3597! if { (eval echo configure:7778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3598 rm -rf conftest* 3599 echo "$ac_t""yes" 1>&6 3600 ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6" 3601*************** 3602*** 7784,7792 **** 3603 rm -f conftest* 3604 3605 echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6 3606! echo "configure:7788: checking for in6addr_any" >&5 3607 cat > conftest.$ac_ext <<EOF 3608! #line 7790 "configure" 3609 #include "confdefs.h" 3610 3611 #include <sys/types.h> 3612--- 7792,7800 ---- 3613 rm -f conftest* 3614 3615 echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6 3616! echo "configure:7796: checking for in6addr_any" >&5 3617 cat > conftest.$ac_ext <<EOF 3618! #line 7798 "configure" 3619 #include "confdefs.h" 3620 3621 #include <sys/types.h> 3622*************** 3623*** 7800,7806 **** 3624 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]); 3625 ; return 0; } 3626 EOF 3627! if { (eval echo configure:7804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3628 rm -rf conftest* 3629 echo "$ac_t""yes" 1>&6 3630 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY" 3631--- 7808,7814 ---- 3632 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]); 3633 ; return 0; } 3634 EOF 3635! if { (eval echo configure:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3636 rm -rf conftest* 3637 echo "$ac_t""yes" 1>&6 3638 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY" 3639*************** 3640*** 7816,7824 **** 3641 rm -f conftest* 3642 3643 echo $ac_n "checking for in6addr_loopback""... $ac_c" 1>&6 3644! echo "configure:7820: checking for in6addr_loopback" >&5 3645 cat > conftest.$ac_ext <<EOF 3646! #line 7822 "configure" 3647 #include "confdefs.h" 3648 3649 #include <sys/types.h> 3650--- 7824,7832 ---- 3651 rm -f conftest* 3652 3653 echo $ac_n "checking for in6addr_loopback""... $ac_c" 1>&6 3654! echo "configure:7828: checking for in6addr_loopback" >&5 3655 cat > conftest.$ac_ext <<EOF 3656! #line 7830 "configure" 3657 #include "confdefs.h" 3658 3659 #include <sys/types.h> 3660*************** 3661*** 7832,7838 **** 3662 struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]); 3663 ; return 0; } 3664 EOF 3665! if { (eval echo configure:7836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3666 rm -rf conftest* 3667 echo "$ac_t""yes" 1>&6 3668 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK" 3669--- 7840,7846 ---- 3670 struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]); 3671 ; return 0; } 3672 EOF 3673! if { (eval echo configure:7844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3674 rm -rf conftest* 3675 echo "$ac_t""yes" 1>&6 3676 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK" 3677*************** 3678*** 7848,7856 **** 3679 rm -f conftest* 3680 3681 echo $ac_n "checking for sin6_scope_id in struct sockaddr_in6""... $ac_c" 1>&6 3682! echo "configure:7852: checking for sin6_scope_id in struct sockaddr_in6" >&5 3683 cat > conftest.$ac_ext <<EOF 3684! #line 7854 "configure" 3685 #include "confdefs.h" 3686 3687 #include <sys/types.h> 3688--- 7856,7864 ---- 3689 rm -f conftest* 3690 3691 echo $ac_n "checking for sin6_scope_id in struct sockaddr_in6""... $ac_c" 1>&6 3692! echo "configure:7860: checking for sin6_scope_id in struct sockaddr_in6" >&5 3693 cat > conftest.$ac_ext <<EOF 3694! #line 7862 "configure" 3695 #include "confdefs.h" 3696 3697 #include <sys/types.h> 3698*************** 3699*** 7863,7869 **** 3700 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0); 3701 ; return 0; } 3702 EOF 3703! if { (eval echo configure:7867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3704 rm -rf conftest* 3705 echo "$ac_t""yes" 1>&6 3706 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1" 3707--- 7871,7877 ---- 3708 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0); 3709 ; return 0; } 3710 EOF 3711! if { (eval echo configure:7875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3712 rm -rf conftest* 3713 echo "$ac_t""yes" 1>&6 3714 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1" 3715*************** 3716*** 7878,7886 **** 3717 LWRES_HAVE_SIN6_SCOPE_ID="$result" 3718 3719 echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6 3720! echo "configure:7882: checking for in6_pktinfo" >&5 3721 cat > conftest.$ac_ext <<EOF 3722! #line 7884 "configure" 3723 #include "confdefs.h" 3724 3725 #include <sys/types.h> 3726--- 7886,7894 ---- 3727 LWRES_HAVE_SIN6_SCOPE_ID="$result" 3728 3729 echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6 3730! echo "configure:7890: checking for in6_pktinfo" >&5 3731 cat > conftest.$ac_ext <<EOF 3732! #line 7892 "configure" 3733 #include "confdefs.h" 3734 3735 #include <sys/types.h> 3736*************** 3737*** 7893,7899 **** 3738 struct in6_pktinfo xyzzy; return (0); 3739 ; return 0; } 3740 EOF 3741! if { (eval echo configure:7897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3742 rm -rf conftest* 3743 echo "$ac_t""yes" 1>&6 3744 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1" 3745--- 7901,7907 ---- 3746 struct in6_pktinfo xyzzy; return (0); 3747 ; return 0; } 3748 EOF 3749! if { (eval echo configure:7905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3750 rm -rf conftest* 3751 echo "$ac_t""yes" 1>&6 3752 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1" 3753*************** 3754*** 7948,7956 **** 3755 # 3756 3757 echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6 3758! echo "configure:7952: checking for inet_ntop" >&5 3759 cat > conftest.$ac_ext <<EOF 3760! #line 7954 "configure" 3761 #include "confdefs.h" 3762 3763 #include <sys/types.h> 3764--- 7956,7964 ---- 3765 # 3766 3767 echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6 3768! echo "configure:7960: checking for inet_ntop" >&5 3769 cat > conftest.$ac_ext <<EOF 3770! #line 7962 "configure" 3771 #include "confdefs.h" 3772 3773 #include <sys/types.h> 3774*************** 3775*** 7960,7966 **** 3776 inet_ntop(0, 0, 0, 0); return (0); 3777 ; return 0; } 3778 EOF 3779! if { (eval echo configure:7964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3780 rm -rf conftest* 3781 echo "$ac_t""yes" 1>&6 3782 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP" 3783--- 7968,7974 ---- 3784 inet_ntop(0, 0, 0, 0); return (0); 3785 ; return 0; } 3786 EOF 3787! if { (eval echo configure:7972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3788 rm -rf conftest* 3789 echo "$ac_t""yes" 1>&6 3790 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP" 3791*************** 3792*** 7981,7993 **** 3793 # zeros should also be rejected. 3794 3795 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6 3796! echo "configure:7985: checking for inet_pton" >&5 3797 if test "$cross_compiling" = yes; then 3798 echo "$ac_t""assuming target platform has working inet_pton" 1>&6 3799 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON" 3800 else 3801 cat > conftest.$ac_ext <<EOF 3802! #line 7991 "configure" 3803 #include "confdefs.h" 3804 3805 #include <sys/types.h> 3806--- 7989,8001 ---- 3807 # zeros should also be rejected. 3808 3809 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6 3810! echo "configure:7993: checking for inet_pton" >&5 3811 if test "$cross_compiling" = yes; then 3812 echo "$ac_t""assuming target platform has working inet_pton" 1>&6 3813 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON" 3814 else 3815 cat > conftest.$ac_ext <<EOF 3816! #line 7999 "configure" 3817 #include "confdefs.h" 3818 3819 #include <sys/types.h> 3820*************** 3821*** 7997,8003 **** 3822 main() { char a[4]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 : 3823 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 : 0); } 3824 EOF 3825! if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3826 then 3827 echo "$ac_t""yes" 1>&6 3828 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON" 3829--- 8005,8011 ---- 3830 main() { char a[4]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 : 3831 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 : 0); } 3832 EOF 3833! if { (eval echo configure:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3834 then 3835 echo "$ac_t""yes" 1>&6 3836 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON" 3837*************** 3838*** 8015,8023 **** 3839 3840 3841 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6 3842! echo "configure:8019: checking for inet_aton" >&5 3843 cat > conftest.$ac_ext <<EOF 3844! #line 8021 "configure" 3845 #include "confdefs.h" 3846 3847 #include <sys/types.h> 3848--- 8023,8031 ---- 3849 3850 3851 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6 3852! echo "configure:8027: checking for inet_aton" >&5 3853 cat > conftest.$ac_ext <<EOF 3854! #line 8029 "configure" 3855 #include "confdefs.h" 3856 3857 #include <sys/types.h> 3858*************** 3859*** 8027,8033 **** 3860 struct in_addr in; inet_aton(0, &in); return (0); 3861 ; return 0; } 3862 EOF 3863! if { (eval echo configure:8031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3864 rm -rf conftest* 3865 echo "$ac_t""yes" 1>&6 3866 ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON" 3867--- 8035,8041 ---- 3868 struct in_addr in; inet_aton(0, &in); return (0); 3869 ; return 0; } 3870 EOF 3871! if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3872 rm -rf conftest* 3873 echo "$ac_t""yes" 1>&6 3874 ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON" 3875*************** 3876*** 8060,8068 **** 3877 esac 3878 3879 echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6 3880! echo "configure:8064: checking for sa_len in struct sockaddr" >&5 3881 cat > conftest.$ac_ext <<EOF 3882! #line 8066 "configure" 3883 #include "confdefs.h" 3884 3885 #include <sys/types.h> 3886--- 8068,8076 ---- 3887 esac 3888 3889 echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6 3890! echo "configure:8072: checking for sa_len in struct sockaddr" >&5 3891 cat > conftest.$ac_ext <<EOF 3892! #line 8074 "configure" 3893 #include "confdefs.h" 3894 3895 #include <sys/types.h> 3896*************** 3897*** 8071,8077 **** 3898 struct sockaddr sa; sa.sa_len = 0; return (0); 3899 ; return 0; } 3900 EOF 3901! if { (eval echo configure:8075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3902 rm -rf conftest* 3903 echo "$ac_t""yes" 1>&6 3904 ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1" 3905--- 8079,8085 ---- 3906 struct sockaddr sa; sa.sa_len = 0; return (0); 3907 ; return 0; } 3908 EOF 3909! if { (eval echo configure:8083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3910 rm -rf conftest* 3911 echo "$ac_t""yes" 1>&6 3912 ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1" 3913*************** 3914*** 8092,8100 **** 3915 # Look for a 4.4BSD or 4.3BSD struct msghdr 3916 # 3917 echo $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6 3918! echo "configure:8096: checking for struct msghdr flavor" >&5 3919 cat > conftest.$ac_ext <<EOF 3920! #line 8098 "configure" 3921 #include "confdefs.h" 3922 3923 #include <sys/types.h> 3924--- 8100,8108 ---- 3925 # Look for a 4.4BSD or 4.3BSD struct msghdr 3926 # 3927 echo $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6 3928! echo "configure:8104: checking for struct msghdr flavor" >&5 3929 cat > conftest.$ac_ext <<EOF 3930! #line 8106 "configure" 3931 #include "confdefs.h" 3932 3933 #include <sys/types.h> 3934*************** 3935*** 8103,8109 **** 3936 struct msghdr msg; msg.msg_flags = 0; return (0); 3937 ; return 0; } 3938 EOF 3939! if { (eval echo configure:8107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3940 rm -rf conftest* 3941 echo "$ac_t""4.4BSD" 1>&6 3942 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1" 3943--- 8111,8117 ---- 3944 struct msghdr msg; msg.msg_flags = 0; return (0); 3945 ; return 0; } 3946 EOF 3947! if { (eval echo configure:8115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3948 rm -rf conftest* 3949 echo "$ac_t""4.4BSD" 1>&6 3950 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1" 3951*************** 3952*** 8121,8129 **** 3953 # Look for in_port_t. 3954 # 3955 echo $ac_n "checking for type in_port_t""... $ac_c" 1>&6 3956! echo "configure:8125: checking for type in_port_t" >&5 3957 cat > conftest.$ac_ext <<EOF 3958! #line 8127 "configure" 3959 #include "confdefs.h" 3960 3961 #include <sys/types.h> 3962--- 8129,8137 ---- 3963 # Look for in_port_t. 3964 # 3965 echo $ac_n "checking for type in_port_t""... $ac_c" 1>&6 3966! echo "configure:8133: checking for type in_port_t" >&5 3967 cat > conftest.$ac_ext <<EOF 3968! #line 8135 "configure" 3969 #include "confdefs.h" 3970 3971 #include <sys/types.h> 3972*************** 3973*** 8132,8138 **** 3974 in_port_t port = 25; return (0); 3975 ; return 0; } 3976 EOF 3977! if { (eval echo configure:8136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3978 rm -rf conftest* 3979 echo "$ac_t""yes" 1>&6 3980 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT" 3981--- 8140,8146 ---- 3982 in_port_t port = 25; return (0); 3983 ; return 0; } 3984 EOF 3985! if { (eval echo configure:8144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3986 rm -rf conftest* 3987 echo "$ac_t""yes" 1>&6 3988 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT" 3989*************** 3990*** 8150,8158 **** 3991 # Check for addrinfo 3992 # 3993 echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6 3994! echo "configure:8154: checking for struct addrinfo" >&5 3995 cat > conftest.$ac_ext <<EOF 3996! #line 8156 "configure" 3997 #include "confdefs.h" 3998 3999 #include <netdb.h> 4000--- 8158,8166 ---- 4001 # Check for addrinfo 4002 # 4003 echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6 4004! echo "configure:8162: checking for struct addrinfo" >&5 4005 cat > conftest.$ac_ext <<EOF 4006! #line 8164 "configure" 4007 #include "confdefs.h" 4008 4009 #include <netdb.h> 4010*************** 4011*** 8160,8166 **** 4012 struct addrinfo a; return (0); 4013 ; return 0; } 4014 EOF 4015! if { (eval echo configure:8164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4016 rm -rf conftest* 4017 echo "$ac_t""yes" 1>&6 4018 ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO" 4019--- 8168,8174 ---- 4020 struct addrinfo a; return (0); 4021 ; return 0; } 4022 EOF 4023! if { (eval echo configure:8172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4024 rm -rf conftest* 4025 echo "$ac_t""yes" 1>&6 4026 ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO" 4027*************** 4028*** 8182,8190 **** 4029 # Check for rrsetinfo 4030 # 4031 echo $ac_n "checking for struct rrsetinfo""... $ac_c" 1>&6 4032! echo "configure:8186: checking for struct rrsetinfo" >&5 4033 cat > conftest.$ac_ext <<EOF 4034! #line 8188 "configure" 4035 #include "confdefs.h" 4036 4037 #include <netdb.h> 4038--- 8190,8198 ---- 4039 # Check for rrsetinfo 4040 # 4041 echo $ac_n "checking for struct rrsetinfo""... $ac_c" 1>&6 4042! echo "configure:8194: checking for struct rrsetinfo" >&5 4043 cat > conftest.$ac_ext <<EOF 4044! #line 8196 "configure" 4045 #include "confdefs.h" 4046 4047 #include <netdb.h> 4048*************** 4049*** 8192,8198 **** 4050 struct rrsetinfo r; return (0); 4051 ; return 0; } 4052 EOF 4053! if { (eval echo configure:8196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4054 rm -rf conftest* 4055 echo "$ac_t""yes" 1>&6 4056 ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO" 4057--- 8200,8206 ---- 4058 struct rrsetinfo r; return (0); 4059 ; return 0; } 4060 EOF 4061! if { (eval echo configure:8204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4062 rm -rf conftest* 4063 echo "$ac_t""yes" 1>&6 4064 ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO" 4065*************** 4066*** 8207,8215 **** 4067 4068 4069 echo $ac_n "checking for int sethostent""... $ac_c" 1>&6 4070! echo "configure:8211: checking for int sethostent" >&5 4071 cat > conftest.$ac_ext <<EOF 4072! #line 8213 "configure" 4073 #include "confdefs.h" 4074 4075 #include <netdb.h> 4076--- 8215,8223 ---- 4077 4078 4079 echo $ac_n "checking for int sethostent""... $ac_c" 1>&6 4080! echo "configure:8219: checking for int sethostent" >&5 4081 cat > conftest.$ac_ext <<EOF 4082! #line 8221 "configure" 4083 #include "confdefs.h" 4084 4085 #include <netdb.h> 4086*************** 4087*** 8217,8223 **** 4088 int i = sethostent(0); return(0); 4089 ; return 0; } 4090 EOF 4091! if { (eval echo configure:8221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4092 rm -rf conftest* 4093 echo "$ac_t""yes" 1>&6 4094 ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1" 4095--- 8225,8231 ---- 4096 int i = sethostent(0); return(0); 4097 ; return 0; } 4098 EOF 4099! if { (eval echo configure:8229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4100 rm -rf conftest* 4101 echo "$ac_t""yes" 1>&6 4102 ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1" 4103*************** 4104*** 8232,8240 **** 4105 4106 4107 echo $ac_n "checking for int endhostent""... $ac_c" 1>&6 4108! echo "configure:8236: checking for int endhostent" >&5 4109 cat > conftest.$ac_ext <<EOF 4110! #line 8238 "configure" 4111 #include "confdefs.h" 4112 4113 #include <netdb.h> 4114--- 8240,8248 ---- 4115 4116 4117 echo $ac_n "checking for int endhostent""... $ac_c" 1>&6 4118! echo "configure:8244: checking for int endhostent" >&5 4119 cat > conftest.$ac_ext <<EOF 4120! #line 8246 "configure" 4121 #include "confdefs.h" 4122 4123 #include <netdb.h> 4124*************** 4125*** 8242,8248 **** 4126 int i = endhostent(); return(0); 4127 ; return 0; } 4128 EOF 4129! if { (eval echo configure:8246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4130 rm -rf conftest* 4131 echo "$ac_t""yes" 1>&6 4132 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1" 4133--- 8250,8256 ---- 4134 int i = endhostent(); return(0); 4135 ; return 0; } 4136 EOF 4137! if { (eval echo configure:8254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4138 rm -rf conftest* 4139 echo "$ac_t""yes" 1>&6 4140 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1" 4141*************** 4142*** 8257,8265 **** 4143 4144 4145 echo $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6 4146! echo "configure:8261: checking for getnetbyaddr(in_addr_t, ...)" >&5 4147 cat > conftest.$ac_ext <<EOF 4148! #line 8263 "configure" 4149 #include "confdefs.h" 4150 4151 #include <netdb.h> 4152--- 8265,8273 ---- 4153 4154 4155 echo $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6 4156! echo "configure:8269: checking for getnetbyaddr(in_addr_t, ...)" >&5 4157 cat > conftest.$ac_ext <<EOF 4158! #line 8271 "configure" 4159 #include "confdefs.h" 4160 4161 #include <netdb.h> 4162*************** 4163*** 8268,8274 **** 4164 4165 ; return 0; } 4166 EOF 4167! if { (eval echo configure:8272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4168 rm -rf conftest* 4169 echo "$ac_t""yes" 1>&6 4170 ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1" 4171--- 8276,8282 ---- 4172 4173 ; return 0; } 4174 EOF 4175! if { (eval echo configure:8280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4176 rm -rf conftest* 4177 echo "$ac_t""yes" 1>&6 4178 ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1" 4179*************** 4180*** 8283,8291 **** 4181 4182 4183 echo $ac_n "checking for int setnetent""... $ac_c" 1>&6 4184! echo "configure:8287: checking for int setnetent" >&5 4185 cat > conftest.$ac_ext <<EOF 4186! #line 8289 "configure" 4187 #include "confdefs.h" 4188 4189 #include <netdb.h> 4190--- 8291,8299 ---- 4191 4192 4193 echo $ac_n "checking for int setnetent""... $ac_c" 1>&6 4194! echo "configure:8295: checking for int setnetent" >&5 4195 cat > conftest.$ac_ext <<EOF 4196! #line 8297 "configure" 4197 #include "confdefs.h" 4198 4199 #include <netdb.h> 4200*************** 4201*** 8293,8299 **** 4202 int i = setnetent(0); return(0); 4203 ; return 0; } 4204 EOF 4205! if { (eval echo configure:8297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4206 rm -rf conftest* 4207 echo "$ac_t""yes" 1>&6 4208 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1" 4209--- 8301,8307 ---- 4210 int i = setnetent(0); return(0); 4211 ; return 0; } 4212 EOF 4213! if { (eval echo configure:8305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4214 rm -rf conftest* 4215 echo "$ac_t""yes" 1>&6 4216 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1" 4217*************** 4218*** 8308,8316 **** 4219 4220 4221 echo $ac_n "checking for int endnetent""... $ac_c" 1>&6 4222! echo "configure:8312: checking for int endnetent" >&5 4223 cat > conftest.$ac_ext <<EOF 4224! #line 8314 "configure" 4225 #include "confdefs.h" 4226 4227 #include <netdb.h> 4228--- 8316,8324 ---- 4229 4230 4231 echo $ac_n "checking for int endnetent""... $ac_c" 1>&6 4232! echo "configure:8320: checking for int endnetent" >&5 4233 cat > conftest.$ac_ext <<EOF 4234! #line 8322 "configure" 4235 #include "confdefs.h" 4236 4237 #include <netdb.h> 4238*************** 4239*** 8318,8324 **** 4240 int i = endnetent(); return(0); 4241 ; return 0; } 4242 EOF 4243! if { (eval echo configure:8322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4244 rm -rf conftest* 4245 echo "$ac_t""yes" 1>&6 4246 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1" 4247--- 8326,8332 ---- 4248 int i = endnetent(); return(0); 4249 ; return 0; } 4250 EOF 4251! if { (eval echo configure:8330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4252 rm -rf conftest* 4253 echo "$ac_t""yes" 1>&6 4254 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1" 4255*************** 4256*** 8333,8341 **** 4257 4258 4259 echo $ac_n "checking for gethostbyaddr(const void *, size_t, ...)""... $ac_c" 1>&6 4260! echo "configure:8337: checking for gethostbyaddr(const void *, size_t, ...)" >&5 4261 cat > conftest.$ac_ext <<EOF 4262! #line 8339 "configure" 4263 #include "confdefs.h" 4264 4265 #include <netdb.h> 4266--- 8341,8349 ---- 4267 4268 4269 echo $ac_n "checking for gethostbyaddr(const void *, size_t, ...)""... $ac_c" 1>&6 4270! echo "configure:8345: checking for gethostbyaddr(const void *, size_t, ...)" >&5 4271 cat > conftest.$ac_ext <<EOF 4272! #line 8347 "configure" 4273 #include "confdefs.h" 4274 4275 #include <netdb.h> 4276*************** 4277*** 8344,8350 **** 4278 return(0); 4279 ; return 0; } 4280 EOF 4281! if { (eval echo configure:8348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4282 rm -rf conftest* 4283 echo "$ac_t""yes" 1>&6 4284 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1" 4285--- 8352,8358 ---- 4286 return(0); 4287 ; return 0; } 4288 EOF 4289! if { (eval echo configure:8356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4290 rm -rf conftest* 4291 echo "$ac_t""yes" 1>&6 4292 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1" 4293*************** 4294*** 8359,8367 **** 4295 4296 4297 echo $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6 4298! echo "configure:8363: checking for h_errno in netdb.h" >&5 4299 cat > conftest.$ac_ext <<EOF 4300! #line 8365 "configure" 4301 #include "confdefs.h" 4302 4303 #include <netdb.h> 4304--- 8367,8375 ---- 4305 4306 4307 echo $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6 4308! echo "configure:8371: checking for h_errno in netdb.h" >&5 4309 cat > conftest.$ac_ext <<EOF 4310! #line 8373 "configure" 4311 #include "confdefs.h" 4312 4313 #include <netdb.h> 4314*************** 4315*** 8369,8375 **** 4316 h_errno = 1; return(0); 4317 ; return 0; } 4318 EOF 4319! if { (eval echo configure:8373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4320 rm -rf conftest* 4321 echo "$ac_t""yes" 1>&6 4322 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO" 4323--- 8377,8383 ---- 4324 h_errno = 1; return(0); 4325 ; return 0; } 4326 EOF 4327! if { (eval echo configure:8381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4328 rm -rf conftest* 4329 echo "$ac_t""yes" 1>&6 4330 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO" 4331*************** 4332*** 8384,8395 **** 4333 4334 4335 echo $ac_n "checking for getipnodebyname""... $ac_c" 1>&6 4336! echo "configure:8388: checking for getipnodebyname" >&5 4337 if eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then 4338 echo $ac_n "(cached) $ac_c" 1>&6 4339 else 4340 cat > conftest.$ac_ext <<EOF 4341! #line 8393 "configure" 4342 #include "confdefs.h" 4343 /* System header to define __stub macros and hopefully few prototypes, 4344 which can conflict with char getipnodebyname(); below. */ 4345--- 8392,8403 ---- 4346 4347 4348 echo $ac_n "checking for getipnodebyname""... $ac_c" 1>&6 4349! echo "configure:8396: checking for getipnodebyname" >&5 4350 if eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then 4351 echo $ac_n "(cached) $ac_c" 1>&6 4352 else 4353 cat > conftest.$ac_ext <<EOF 4354! #line 8401 "configure" 4355 #include "confdefs.h" 4356 /* System header to define __stub macros and hopefully few prototypes, 4357 which can conflict with char getipnodebyname(); below. */ 4358*************** 4359*** 8412,8418 **** 4360 4361 ; return 0; } 4362 EOF 4363! if { (eval echo configure:8416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4364 rm -rf conftest* 4365 eval "ac_cv_func_getipnodebyname=yes" 4366 else 4367--- 8420,8426 ---- 4368 4369 ; return 0; } 4370 EOF 4371! if { (eval echo configure:8424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4372 rm -rf conftest* 4373 eval "ac_cv_func_getipnodebyname=yes" 4374 else 4375*************** 4376*** 8433,8444 **** 4377 fi 4378 4379 echo $ac_n "checking for getnameinfo""... $ac_c" 1>&6 4380! echo "configure:8437: checking for getnameinfo" >&5 4381 if eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then 4382 echo $ac_n "(cached) $ac_c" 1>&6 4383 else 4384 cat > conftest.$ac_ext <<EOF 4385! #line 8442 "configure" 4386 #include "confdefs.h" 4387 /* System header to define __stub macros and hopefully few prototypes, 4388 which can conflict with char getnameinfo(); below. */ 4389--- 8441,8452 ---- 4390 fi 4391 4392 echo $ac_n "checking for getnameinfo""... $ac_c" 1>&6 4393! echo "configure:8445: checking for getnameinfo" >&5 4394 if eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then 4395 echo $ac_n "(cached) $ac_c" 1>&6 4396 else 4397 cat > conftest.$ac_ext <<EOF 4398! #line 8450 "configure" 4399 #include "confdefs.h" 4400 /* System header to define __stub macros and hopefully few prototypes, 4401 which can conflict with char getnameinfo(); below. */ 4402*************** 4403*** 8461,8467 **** 4404 4405 ; return 0; } 4406 EOF 4407! if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4408 rm -rf conftest* 4409 eval "ac_cv_func_getnameinfo=yes" 4410 else 4411--- 8469,8475 ---- 4412 4413 ; return 0; } 4414 EOF 4415! if { (eval echo configure:8473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4416 rm -rf conftest* 4417 eval "ac_cv_func_getnameinfo=yes" 4418 else 4419*************** 4420*** 8482,8493 **** 4421 fi 4422 4423 echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6 4424! echo "configure:8486: checking for getaddrinfo" >&5 4425 if eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then 4426 echo $ac_n "(cached) $ac_c" 1>&6 4427 else 4428 cat > conftest.$ac_ext <<EOF 4429! #line 8491 "configure" 4430 #include "confdefs.h" 4431 /* System header to define __stub macros and hopefully few prototypes, 4432 which can conflict with char getaddrinfo(); below. */ 4433--- 8490,8501 ---- 4434 fi 4435 4436 echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6 4437! echo "configure:8494: checking for getaddrinfo" >&5 4438 if eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then 4439 echo $ac_n "(cached) $ac_c" 1>&6 4440 else 4441 cat > conftest.$ac_ext <<EOF 4442! #line 8499 "configure" 4443 #include "confdefs.h" 4444 /* System header to define __stub macros and hopefully few prototypes, 4445 which can conflict with char getaddrinfo(); below. */ 4446*************** 4447*** 8510,8516 **** 4448 4449 ; return 0; } 4450 EOF 4451! if { (eval echo configure:8514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4452 rm -rf conftest* 4453 eval "ac_cv_func_getaddrinfo=yes" 4454 else 4455--- 8518,8524 ---- 4456 4457 ; return 0; } 4458 EOF 4459! if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4460 rm -rf conftest* 4461 eval "ac_cv_func_getaddrinfo=yes" 4462 else 4463*************** 4464*** 8535,8546 **** 4465 fi 4466 4467 echo $ac_n "checking for gai_strerror""... $ac_c" 1>&6 4468! echo "configure:8539: checking for gai_strerror" >&5 4469 if eval "test \"`echo '$''{'ac_cv_func_gai_strerror'+set}'`\" = set"; then 4470 echo $ac_n "(cached) $ac_c" 1>&6 4471 else 4472 cat > conftest.$ac_ext <<EOF 4473! #line 8544 "configure" 4474 #include "confdefs.h" 4475 /* System header to define __stub macros and hopefully few prototypes, 4476 which can conflict with char gai_strerror(); below. */ 4477--- 8543,8554 ---- 4478 fi 4479 4480 echo $ac_n "checking for gai_strerror""... $ac_c" 1>&6 4481! echo "configure:8547: checking for gai_strerror" >&5 4482 if eval "test \"`echo '$''{'ac_cv_func_gai_strerror'+set}'`\" = set"; then 4483 echo $ac_n "(cached) $ac_c" 1>&6 4484 else 4485 cat > conftest.$ac_ext <<EOF 4486! #line 8552 "configure" 4487 #include "confdefs.h" 4488 /* System header to define __stub macros and hopefully few prototypes, 4489 which can conflict with char gai_strerror(); below. */ 4490*************** 4491*** 8563,8569 **** 4492 4493 ; return 0; } 4494 EOF 4495! if { (eval echo configure:8567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4496 rm -rf conftest* 4497 eval "ac_cv_func_gai_strerror=yes" 4498 else 4499--- 8571,8577 ---- 4500 4501 ; return 0; } 4502 EOF 4503! if { (eval echo configure:8575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4504 rm -rf conftest* 4505 eval "ac_cv_func_gai_strerror=yes" 4506 else 4507*************** 4508*** 8593,8601 **** 4509 # Look for a sysctl call to get the list of network interfaces. 4510 # 4511 echo $ac_n "checking for interface list sysctl""... $ac_c" 1>&6 4512! echo "configure:8597: checking for interface list sysctl" >&5 4513 cat > conftest.$ac_ext <<EOF 4514! #line 8599 "configure" 4515 #include "confdefs.h" 4516 4517 #include <sys/param.h> 4518--- 8601,8609 ---- 4519 # Look for a sysctl call to get the list of network interfaces. 4520 # 4521 echo $ac_n "checking for interface list sysctl""... $ac_c" 1>&6 4522! echo "configure:8605: checking for interface list sysctl" >&5 4523 cat > conftest.$ac_ext <<EOF 4524! #line 8607 "configure" 4525 #include "confdefs.h" 4526 4527 #include <sys/param.h> 4528*************** 4529*** 8632,8647 **** 4530 # AC_CHECK_FUNC() incorrectly succeeds because it declares 4531 # the function itself. 4532 echo $ac_n "checking for correctly declared strsep()""... $ac_c" 1>&6 4533! echo "configure:8636: checking for correctly declared strsep()" >&5 4534 cat > conftest.$ac_ext <<EOF 4535! #line 8638 "configure" 4536 #include "confdefs.h" 4537 #include <string.h> 4538 int main() { 4539 char *sp; char *foo = strsep(&sp, "."); 4540 ; return 0; } 4541 EOF 4542! if { (eval echo configure:8645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4543 rm -rf conftest* 4544 echo "$ac_t""yes" 1>&6; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP" 4545 else 4546--- 8640,8655 ---- 4547 # AC_CHECK_FUNC() incorrectly succeeds because it declares 4548 # the function itself. 4549 echo $ac_n "checking for correctly declared strsep()""... $ac_c" 1>&6 4550! echo "configure:8644: checking for correctly declared strsep()" >&5 4551 cat > conftest.$ac_ext <<EOF 4552! #line 8646 "configure" 4553 #include "confdefs.h" 4554 #include <string.h> 4555 int main() { 4556 char *sp; char *foo = strsep(&sp, "."); 4557 ; return 0; } 4558 EOF 4559! if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4560 rm -rf conftest* 4561 echo "$ac_t""yes" 1>&6; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP" 4562 else 4563*************** 4564*** 8653,8664 **** 4565 rm -f conftest* 4566 4567 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 4568! echo "configure:8657: checking for vsnprintf" >&5 4569 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then 4570 echo $ac_n "(cached) $ac_c" 1>&6 4571 else 4572 cat > conftest.$ac_ext <<EOF 4573! #line 8662 "configure" 4574 #include "confdefs.h" 4575 /* System header to define __stub macros and hopefully few prototypes, 4576 which can conflict with char vsnprintf(); below. */ 4577--- 8661,8672 ---- 4578 rm -f conftest* 4579 4580 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 4581! echo "configure:8665: checking for vsnprintf" >&5 4582 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then 4583 echo $ac_n "(cached) $ac_c" 1>&6 4584 else 4585 cat > conftest.$ac_ext <<EOF 4586! #line 8670 "configure" 4587 #include "confdefs.h" 4588 /* System header to define __stub macros and hopefully few prototypes, 4589 which can conflict with char vsnprintf(); below. */ 4590*************** 4591*** 8681,8687 **** 4592 4593 ; return 0; } 4594 EOF 4595! if { (eval echo configure:8685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4596 rm -rf conftest* 4597 eval "ac_cv_func_vsnprintf=yes" 4598 else 4599--- 8689,8695 ---- 4600 4601 ; return 0; } 4602 EOF 4603! if { (eval echo configure:8693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4604 rm -rf conftest* 4605 eval "ac_cv_func_vsnprintf=yes" 4606 else 4607*************** 4608*** 8706,8717 **** 4609 4610 4611 echo $ac_n "checking for strerror""... $ac_c" 1>&6 4612! echo "configure:8710: checking for strerror" >&5 4613 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then 4614 echo $ac_n "(cached) $ac_c" 1>&6 4615 else 4616 cat > conftest.$ac_ext <<EOF 4617! #line 8715 "configure" 4618 #include "confdefs.h" 4619 /* System header to define __stub macros and hopefully few prototypes, 4620 which can conflict with char strerror(); below. */ 4621--- 8714,8725 ---- 4622 4623 4624 echo $ac_n "checking for strerror""... $ac_c" 1>&6 4625! echo "configure:8718: checking for strerror" >&5 4626 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then 4627 echo $ac_n "(cached) $ac_c" 1>&6 4628 else 4629 cat > conftest.$ac_ext <<EOF 4630! #line 8723 "configure" 4631 #include "confdefs.h" 4632 /* System header to define __stub macros and hopefully few prototypes, 4633 which can conflict with char strerror(); below. */ 4634*************** 4635*** 8734,8740 **** 4636 4637 ; return 0; } 4638 EOF 4639! if { (eval echo configure:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4640 rm -rf conftest* 4641 eval "ac_cv_func_strerror=yes" 4642 else 4643--- 8742,8748 ---- 4644 4645 ; return 0; } 4646 EOF 4647! if { (eval echo configure:8746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4648 rm -rf conftest* 4649 eval "ac_cv_func_strerror=yes" 4650 else 4651*************** 4652*** 8768,8784 **** 4653 # but that's defined elsewhere since we don't use configure on Win32. 4654 # 4655 echo $ac_n "checking printf format modifier for 64-bit integers""... $ac_c" 1>&6 4656! echo "configure:8772: checking printf format modifier for 64-bit integers" >&5 4657 if test "$cross_compiling" = yes; then 4658 echo "$ac_t""assuming target platform uses ll" 1>&6 4659 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"' 4660 else 4661 cat > conftest.$ac_ext <<EOF 4662! #line 8778 "configure" 4663 #include "confdefs.h" 4664 main() { exit(!(sizeof(long long int) == sizeof(long int))); } 4665 EOF 4666! if { (eval echo configure:8782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4667 then 4668 echo "$ac_t""l" 1>&6 4669 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"' 4670--- 8776,8792 ---- 4671 # but that's defined elsewhere since we don't use configure on Win32. 4672 # 4673 echo $ac_n "checking printf format modifier for 64-bit integers""... $ac_c" 1>&6 4674! echo "configure:8780: checking printf format modifier for 64-bit integers" >&5 4675 if test "$cross_compiling" = yes; then 4676 echo "$ac_t""assuming target platform uses ll" 1>&6 4677 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"' 4678 else 4679 cat > conftest.$ac_ext <<EOF 4680! #line 8786 "configure" 4681 #include "confdefs.h" 4682 main() { exit(!(sizeof(long long int) == sizeof(long int))); } 4683 EOF 4684! if { (eval echo configure:8790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4685 then 4686 echo "$ac_t""l" 1>&6 4687 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"' 4688*************** 4689*** 8798,8809 **** 4690 # Security Stuff 4691 # 4692 echo $ac_n "checking for chroot""... $ac_c" 1>&6 4693! echo "configure:8802: checking for chroot" >&5 4694 if eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then 4695 echo $ac_n "(cached) $ac_c" 1>&6 4696 else 4697 cat > conftest.$ac_ext <<EOF 4698! #line 8807 "configure" 4699 #include "confdefs.h" 4700 /* System header to define __stub macros and hopefully few prototypes, 4701 which can conflict with char chroot(); below. */ 4702--- 8806,8817 ---- 4703 # Security Stuff 4704 # 4705 echo $ac_n "checking for chroot""... $ac_c" 1>&6 4706! echo "configure:8810: checking for chroot" >&5 4707 if eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then 4708 echo $ac_n "(cached) $ac_c" 1>&6 4709 else 4710 cat > conftest.$ac_ext <<EOF 4711! #line 8815 "configure" 4712 #include "confdefs.h" 4713 /* System header to define __stub macros and hopefully few prototypes, 4714 which can conflict with char chroot(); below. */ 4715*************** 4716*** 8826,8832 **** 4717 4718 ; return 0; } 4719 EOF 4720! if { (eval echo configure:8830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4721 rm -rf conftest* 4722 eval "ac_cv_func_chroot=yes" 4723 else 4724--- 8834,8840 ---- 4725 4726 ; return 0; } 4727 EOF 4728! if { (eval echo configure:8838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4729 rm -rf conftest* 4730 eval "ac_cv_func_chroot=yes" 4731 else 4732*************** 4733*** 8860,8876 **** 4734 do 4735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4737! echo "configure:8864: checking for $ac_hdr" >&5 4738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4739 echo $ac_n "(cached) $ac_c" 1>&6 4740 else 4741 cat > conftest.$ac_ext <<EOF 4742! #line 8869 "configure" 4743 #include "confdefs.h" 4744 #include <$ac_hdr> 4745 EOF 4746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4747! { (eval echo configure:8874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4749 if test -z "$ac_err"; then 4750 rm -rf conftest* 4751--- 8868,8884 ---- 4752 do 4753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4755! echo "configure:8872: checking for $ac_hdr" >&5 4756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4757 echo $ac_n "(cached) $ac_c" 1>&6 4758 else 4759 cat > conftest.$ac_ext <<EOF 4760! #line 8877 "configure" 4761 #include "confdefs.h" 4762 #include <$ac_hdr> 4763 EOF 4764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4765! { (eval echo configure:8882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4767 if test -z "$ac_err"; then 4768 rm -rf conftest* 4769*************** 4770*** 8904,8920 **** 4771 do 4772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4774! echo "configure:8908: checking for $ac_hdr" >&5 4775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4776 echo $ac_n "(cached) $ac_c" 1>&6 4777 else 4778 cat > conftest.$ac_ext <<EOF 4779! #line 8913 "configure" 4780 #include "confdefs.h" 4781 #include <$ac_hdr> 4782 EOF 4783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4784! { (eval echo configure:8918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4786 if test -z "$ac_err"; then 4787 rm -rf conftest* 4788--- 8912,8928 ---- 4789 do 4790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4792! echo "configure:8916: checking for $ac_hdr" >&5 4793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4794 echo $ac_n "(cached) $ac_c" 1>&6 4795 else 4796 cat > conftest.$ac_ext <<EOF 4797! #line 8921 "configure" 4798 #include "confdefs.h" 4799 #include <$ac_hdr> 4800 EOF 4801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4802! { (eval echo configure:8926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4804 if test -z "$ac_err"; then 4805 rm -rf conftest* 4806*************** 4807*** 8945,8953 **** 4808 # BSD/OS, and perhaps some others, don't define rlim_t. 4809 # 4810 echo $ac_n "checking for type rlim_t""... $ac_c" 1>&6 4811! echo "configure:8949: checking for type rlim_t" >&5 4812 cat > conftest.$ac_ext <<EOF 4813! #line 8951 "configure" 4814 #include "confdefs.h" 4815 4816 #include <sys/types.h> 4817--- 8953,8961 ---- 4818 # BSD/OS, and perhaps some others, don't define rlim_t. 4819 # 4820 echo $ac_n "checking for type rlim_t""... $ac_c" 1>&6 4821! echo "configure:8957: checking for type rlim_t" >&5 4822 cat > conftest.$ac_ext <<EOF 4823! #line 8959 "configure" 4824 #include "confdefs.h" 4825 4826 #include <sys/types.h> 4827*************** 4828*** 8957,8963 **** 4829 rlim_t rl = 19671212; return (0); 4830 ; return 0; } 4831 EOF 4832! if { (eval echo configure:8961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4833 rm -rf conftest* 4834 echo "$ac_t""yes" 1>&6 4835 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t" 4836--- 8965,8971 ---- 4837 rlim_t rl = 19671212; return (0); 4838 ; return 0; } 4839 EOF 4840! if { (eval echo configure:8969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4841 rm -rf conftest* 4842 echo "$ac_t""yes" 1>&6 4843 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t" 4844*************** 4845*** 8968,8979 **** 4846 echo "$ac_t""no" 1>&6 4847 4848 echo $ac_n "checking type of rlim_cur""... $ac_c" 1>&6 4849! echo "configure:8972: checking type of rlim_cur" >&5 4850 if test "$cross_compiling" = yes; then 4851 { echo "configure: error: cannot determine type of rlim_cur when cross compiling - define rlim_t" 1>&2; exit 1; } 4852 else 4853 cat > conftest.$ac_ext <<EOF 4854! #line 8977 "configure" 4855 #include "confdefs.h" 4856 4857 #include <sys/types.h> 4858--- 8976,8987 ---- 4859 echo "$ac_t""no" 1>&6 4860 4861 echo $ac_n "checking type of rlim_cur""... $ac_c" 1>&6 4862! echo "configure:8980: checking type of rlim_cur" >&5 4863 if test "$cross_compiling" = yes; then 4864 { echo "configure: error: cannot determine type of rlim_cur when cross compiling - define rlim_t" 1>&2; exit 1; } 4865 else 4866 cat > conftest.$ac_ext <<EOF 4867! #line 8985 "configure" 4868 #include "confdefs.h" 4869 4870 #include <sys/types.h> 4871*************** 4872*** 8981,8987 **** 4873 #include <sys/resource.h> 4874 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));} 4875 EOF 4876! if { (eval echo configure:8985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4877 then 4878 echo "$ac_t""int" 1>&6 4879 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int" 4880--- 8989,8995 ---- 4881 #include <sys/resource.h> 4882 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));} 4883 EOF 4884! if { (eval echo configure:8993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4885 then 4886 echo "$ac_t""int" 1>&6 4887 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int" 4888*************** 4889*** 8994,9000 **** 4890 { echo "configure: error: this cannot happen" 1>&2; exit 1; } 4891 else 4892 cat > conftest.$ac_ext <<EOF 4893! #line 8998 "configure" 4894 #include "confdefs.h" 4895 4896 #include <sys/types.h> 4897--- 9002,9008 ---- 4898 { echo "configure: error: this cannot happen" 1>&2; exit 1; } 4899 else 4900 cat > conftest.$ac_ext <<EOF 4901! #line 9006 "configure" 4902 #include "confdefs.h" 4903 4904 #include <sys/types.h> 4905*************** 4906*** 9002,9008 **** 4907 #include <sys/resource.h> 4908 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));} 4909 EOF 4910! if { (eval echo configure:9006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4911 then 4912 echo "$ac_t""long int" 1>&6 4913 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int" 4914--- 9010,9016 ---- 4915 #include <sys/resource.h> 4916 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));} 4917 EOF 4918! if { (eval echo configure:9014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4919 then 4920 echo "$ac_t""long int" 1>&6 4921 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int" 4922*************** 4923*** 9015,9021 **** 4924 { echo "configure: error: this cannot happen" 1>&2; exit 1; } 4925 else 4926 cat > conftest.$ac_ext <<EOF 4927! #line 9019 "configure" 4928 #include "confdefs.h" 4929 4930 #include <sys/types.h> 4931--- 9023,9029 ---- 4932 { echo "configure: error: this cannot happen" 1>&2; exit 1; } 4933 else 4934 cat > conftest.$ac_ext <<EOF 4935! #line 9027 "configure" 4936 #include "confdefs.h" 4937 4938 #include <sys/types.h> 4939*************** 4940*** 9023,9029 **** 4941 #include <sys/resource.h> 4942 main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));} 4943 EOF 4944! if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4945 then 4946 echo "$ac_t""long long int" 1>&6 4947 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int" 4948--- 9031,9037 ---- 4949 #include <sys/resource.h> 4950 main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));} 4951 EOF 4952! if { (eval echo configure:9035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4953 then 4954 echo "$ac_t""long long int" 1>&6 4955 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int" 4956*************** 4957*** 9147,9153 **** 4958 # Extract the first word of "$ac_prog", so it can be a program name with args. 4959 set dummy $ac_prog; ac_word=$2 4960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4961! echo "configure:9151: checking for $ac_word" >&5 4962 if eval "test \"`echo '$''{'ac_cv_path_OPENJADE'+set}'`\" = set"; then 4963 echo $ac_n "(cached) $ac_c" 1>&6 4964 else 4965--- 9155,9161 ---- 4966 # Extract the first word of "$ac_prog", so it can be a program name with args. 4967 set dummy $ac_prog; ac_word=$2 4968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4969! echo "configure:9159: checking for $ac_word" >&5 4970 if eval "test \"`echo '$''{'ac_cv_path_OPENJADE'+set}'`\" = set"; then 4971 echo $ac_n "(cached) $ac_c" 1>&6 4972 else 4973*************** 4974*** 9194,9200 **** 4975 # Extract the first word of "$ac_prog", so it can be a program name with args. 4976 set dummy $ac_prog; ac_word=$2 4977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4978! echo "configure:9198: checking for $ac_word" >&5 4979 if eval "test \"`echo '$''{'ac_cv_path_JADETEX'+set}'`\" = set"; then 4980 echo $ac_n "(cached) $ac_c" 1>&6 4981 else 4982--- 9202,9208 ---- 4983 # Extract the first word of "$ac_prog", so it can be a program name with args. 4984 set dummy $ac_prog; ac_word=$2 4985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4986! echo "configure:9206: checking for $ac_word" >&5 4987 if eval "test \"`echo '$''{'ac_cv_path_JADETEX'+set}'`\" = set"; then 4988 echo $ac_n "(cached) $ac_c" 1>&6 4989 else 4990*************** 4991*** 9237,9243 **** 4992 # Extract the first word of "$ac_prog", so it can be a program name with args. 4993 set dummy $ac_prog; ac_word=$2 4994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4995! echo "configure:9241: checking for $ac_word" >&5 4996 if eval "test \"`echo '$''{'ac_cv_path_PDFJADETEX'+set}'`\" = set"; then 4997 echo $ac_n "(cached) $ac_c" 1>&6 4998 else 4999--- 9245,9251 ---- 5000 # Extract the first word of "$ac_prog", so it can be a program name with args. 5001 set dummy $ac_prog; ac_word=$2 5002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5003! echo "configure:9249: checking for $ac_word" >&5 5004 if eval "test \"`echo '$''{'ac_cv_path_PDFJADETEX'+set}'`\" = set"; then 5005 echo $ac_n "(cached) $ac_c" 1>&6 5006 else 5007*************** 5008*** 9293,9299 **** 5009 5010 SGMLCATALOG="" 5011 echo $ac_n "checking for catalog""... $ac_c" 1>&6 5012! echo "configure:9297: checking for catalog" >&5 5013 for d in $sgmltrees 5014 do 5015 f=$d/catalog 5016--- 9301,9307 ---- 5017 5018 SGMLCATALOG="" 5019 echo $ac_n "checking for catalog""... $ac_c" 1>&6 5020! echo "configure:9305: checking for catalog" >&5 5021 for d in $sgmltrees 5022 do 5023 f=$d/catalog 5024*************** 5025*** 9335,9341 **** 5026 5027 HTMLSTYLE="" 5028 echo $ac_n "checking for html/docbook.dsl""... $ac_c" 1>&6 5029! echo "configure:9339: checking for html/docbook.dsl" >&5 5030 for d in $stylepath 5031 do 5032 f=$d/html/docbook.dsl 5033--- 9343,9349 ---- 5034 5035 HTMLSTYLE="" 5036 echo $ac_n "checking for html/docbook.dsl""... $ac_c" 1>&6 5037! echo "configure:9347: checking for html/docbook.dsl" >&5 5038 for d in $stylepath 5039 do 5040 f=$d/html/docbook.dsl 5041*************** 5042*** 9356,9362 **** 5043 5044 PRINTSTYLE="" 5045 echo $ac_n "checking for print/docbook.dsl""... $ac_c" 1>&6 5046! echo "configure:9360: checking for print/docbook.dsl" >&5 5047 for d in $stylepath 5048 do 5049 f=$d/print/docbook.dsl 5050--- 9364,9370 ---- 5051 5052 PRINTSTYLE="" 5053 echo $ac_n "checking for print/docbook.dsl""... $ac_c" 1>&6 5054! echo "configure:9368: checking for print/docbook.dsl" >&5 5055 for d in $stylepath 5056 do 5057 f=$d/print/docbook.dsl 5058*************** 5059*** 9382,9388 **** 5060 5061 XMLDCL="" 5062 echo $ac_n "checking for docbook/dsssl/modular/dtds/decls/xml.dcl""... $ac_c" 1>&6 5063! echo "configure:9386: checking for docbook/dsssl/modular/dtds/decls/xml.dcl" >&5 5064 for d in $sgmltrees 5065 do 5066 f=$d/docbook/dsssl/modular/dtds/decls/xml.dcl 5067--- 9390,9396 ---- 5068 5069 XMLDCL="" 5070 echo $ac_n "checking for docbook/dsssl/modular/dtds/decls/xml.dcl""... $ac_c" 1>&6 5071! echo "configure:9394: checking for docbook/dsssl/modular/dtds/decls/xml.dcl" >&5 5072 for d in $sgmltrees 5073 do 5074 f=$d/docbook/dsssl/modular/dtds/decls/xml.dcl 5075*************** 5076*** 9408,9414 **** 5077 5078 DOCBOOK2MANSPEC="" 5079 echo $ac_n "checking for docbook2X/docbook2man-spec.pl""... $ac_c" 1>&6 5080! echo "configure:9412: checking for docbook2X/docbook2man-spec.pl" >&5 5081 for d in $sgmltrees 5082 do 5083 f=$d/docbook2X/docbook2man-spec.pl 5084--- 9416,9422 ---- 5085 5086 DOCBOOK2MANSPEC="" 5087 echo $ac_n "checking for docbook2X/docbook2man-spec.pl""... $ac_c" 1>&6 5088! echo "configure:9420: checking for docbook2X/docbook2man-spec.pl" >&5 5089 for d in $sgmltrees 5090 do 5091 f=$d/docbook2X/docbook2man-spec.pl 5092*************** 5093*** 9428,9433 **** 5094--- 9436,9631 ---- 5095 5096 5097 # 5098+ # IDN support 5099+ # 5100+ # Check whether --with-idn or --without-idn was given. 5101+ if test "${with_idn+set}" = set; then 5102+ withval="$with_idn" 5103+ use_idn="$withval" 5104+ else 5105+ use_idn="no" 5106+ fi 5107+ 5108+ case "$use_idn" in 5109+ yes) 5110+ if test X$prefix = XNONE ; then 5111+ idn_path=/usr/local 5112+ else 5113+ idn_path=$prefix 5114+ fi 5115+ ;; 5116+ no) 5117+ ;; 5118+ *) 5119+ idn_path="$use_idn" 5120+ ;; 5121+ esac 5122+ 5123+ iconvinc= 5124+ iconvlib= 5125+ # Check whether --with-libiconv or --without-libiconv was given. 5126+ if test "${with_libiconv+set}" = set; then 5127+ withval="$with_libiconv" 5128+ use_libiconv="$withval" 5129+ else 5130+ use_libiconv="no" 5131+ fi 5132+ 5133+ case "$use_libiconv" in 5134+ yes) 5135+ if test X$prefix = XNONE ; then 5136+ iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv" 5137+ else 5138+ iconvlib="-L$prefix/lib -R$prefix/lib -liconv" 5139+ fi 5140+ ;; 5141+ no) 5142+ iconvlib= 5143+ ;; 5144+ *) 5145+ iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv" 5146+ ;; 5147+ esac 5148+ 5149+ # Check whether --with-iconv or --without-iconv was given. 5150+ if test "${with_iconv+set}" = set; then 5151+ withval="$with_iconv" 5152+ iconvlib="$withval" 5153+ fi 5154+ 5155+ case "$iconvlib" in 5156+ no) 5157+ iconvlib= 5158+ ;; 5159+ yes) 5160+ iconvlib=-liconv 5161+ ;; 5162+ esac 5163+ 5164+ # Check whether --with-idnlib or --without-idnlib was given. 5165+ if test "${with_idnlib+set}" = set; then 5166+ withval="$with_idnlib" 5167+ idnlib="$withval" 5168+ else 5169+ idnlib="no" 5170+ fi 5171+ 5172+ if test "$idnlib" = yes; then 5173+ { echo "configure: error: You must specify ARG for --with-idnlib." 1>&2; exit 1; } 5174+ fi 5175+ 5176+ IDNLIBS= 5177+ if test "$use_idn" != no; then 5178+ cat >> confdefs.h <<\EOF 5179+ #define WITH_IDN 1 5180+ EOF 5181+ 5182+ STD_CINCLUDES="$STD_CINCLUDES -I$idn_path/include" 5183+ if test "$idnlib" != no; then 5184+ IDNLIBS="$idnlib $iconvlib" 5185+ else 5186+ IDNLIBS="-L$idn_path/lib -lidnkit $iconvlib" 5187+ fi 5188+ fi 5189+ 5190+ 5191+ for ac_hdr in locale.h 5192+ do 5193+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5194+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5195+ echo "configure:9537: checking for $ac_hdr" >&5 5196+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5197+ echo $ac_n "(cached) $ac_c" 1>&6 5198+ else 5199+ cat > conftest.$ac_ext <<EOF 5200+ #line 9542 "configure" 5201+ #include "confdefs.h" 5202+ #include <$ac_hdr> 5203+ EOF 5204+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5205+ { (eval echo configure:9547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5206+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5207+ if test -z "$ac_err"; then 5208+ rm -rf conftest* 5209+ eval "ac_cv_header_$ac_safe=yes" 5210+ else 5211+ echo "$ac_err" >&5 5212+ echo "configure: failed program was:" >&5 5213+ cat conftest.$ac_ext >&5 5214+ rm -rf conftest* 5215+ eval "ac_cv_header_$ac_safe=no" 5216+ fi 5217+ rm -f conftest* 5218+ fi 5219+ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5220+ echo "$ac_t""yes" 1>&6 5221+ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5222+ cat >> confdefs.h <<EOF 5223+ #define $ac_tr_hdr 1 5224+ EOF 5225+ 5226+ else 5227+ echo "$ac_t""no" 1>&6 5228+ fi 5229+ done 5230+ 5231+ for ac_func in setlocale 5232+ do 5233+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5234+ echo "configure:9576: checking for $ac_func" >&5 5235+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5236+ echo $ac_n "(cached) $ac_c" 1>&6 5237+ else 5238+ cat > conftest.$ac_ext <<EOF 5239+ #line 9581 "configure" 5240+ #include "confdefs.h" 5241+ /* System header to define __stub macros and hopefully few prototypes, 5242+ which can conflict with char $ac_func(); below. */ 5243+ #include <assert.h> 5244+ /* Override any gcc2 internal prototype to avoid an error. */ 5245+ /* We use char because int might match the return type of a gcc2 5246+ builtin and then its argument prototype would still apply. */ 5247+ char $ac_func(); 5248+ 5249+ int main() { 5250+ 5251+ /* The GNU C library defines this for functions which it implements 5252+ to always fail with ENOSYS. Some functions are actually named 5253+ something starting with __ and the normal name is an alias. */ 5254+ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5255+ choke me 5256+ #else 5257+ $ac_func(); 5258+ #endif 5259+ 5260+ ; return 0; } 5261+ EOF 5262+ if { (eval echo configure:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5263+ rm -rf conftest* 5264+ eval "ac_cv_func_$ac_func=yes" 5265+ else 5266+ echo "configure: failed program was:" >&5 5267+ cat conftest.$ac_ext >&5 5268+ rm -rf conftest* 5269+ eval "ac_cv_func_$ac_func=no" 5270+ fi 5271+ rm -f conftest* 5272+ fi 5273+ 5274+ if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5275+ echo "$ac_t""yes" 1>&6 5276+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5277+ cat >> confdefs.h <<EOF 5278+ #define $ac_tr_func 1 5279+ EOF 5280+ 5281+ else 5282+ echo "$ac_t""no" 1>&6 5283+ fi 5284+ done 5285+ 5286+ 5287+ # 5288 # Substitutions 5289 # 5290 5291*************** 5292*** 9799,9804 **** 5293--- 9997,10003 ---- 5294 s%@PRINTSTYLE@%$PRINTSTYLE%g 5295 s%@XMLDCL@%$XMLDCL%g 5296 s%@DOCBOOK2MANSPEC@%$DOCBOOK2MANSPEC%g 5297+ s%@IDNLIBS@%$IDNLIBS%g 5298 s%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g 5299 s%@BIND9_ISC_BUILDINCLUDE@%$BIND9_ISC_BUILDINCLUDE%g 5300 s%@BIND9_ISCCC_BUILDINCLUDE@%$BIND9_ISCCC_BUILDINCLUDE%g 5301*************** 5302*** 9828,9834 **** 5303 5304 # Split the substitutions into bite-sized pieces for seds with 5305 # small command number limits, like on Digital OSF/1 and HP-UX. 5306! ac_max_sed_cmds=50 # Maximum number of lines to put in a sed script. 5307 ac_file=1 # Number of current file. 5308 ac_beg=1 # First line for current file. 5309 ac_end=$ac_max_sed_cmds # Line after last line for current file. 5310--- 10027,10033 ---- 5311 5312 # Split the substitutions into bite-sized pieces for seds with 5313 # small command number limits, like on Digital OSF/1 and HP-UX. 5314! ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 5315 ac_file=1 # Number of current file. 5316 ac_beg=1 # First line for current file. 5317 ac_end=$ac_max_sed_cmds # Line after last line for current file. 5318Index: configure.in 5319diff -c mdn/othersrc/bind9/configure.in:1.1.1.9 mdn/othersrc/bind9/configure.in:1.15 5320*** configure.in Wed May 22 17:14:53 2002 5321--- configure.in Mon May 27 12:10:14 2002 5322*************** 5323*** 1614,1619 **** 5324--- 1614,1695 ---- 5325 NOM_PATH_FILE(DOCBOOK2MANSPEC, docbook2X/docbook2man-spec.pl, $sgmltrees) 5326 5327 # 5328+ # IDN support 5329+ # 5330+ AC_ARG_WITH(idn, 5331+ [ --with-idn[=MPREFIX] enable IDN support using idnkit [default PREFIX]], 5332+ use_idn="$withval", use_idn="no") 5333+ case "$use_idn" in 5334+ yes) 5335+ if test X$prefix = XNONE ; then 5336+ idn_path=/usr/local 5337+ else 5338+ idn_path=$prefix 5339+ fi 5340+ ;; 5341+ no) 5342+ ;; 5343+ *) 5344+ idn_path="$use_idn" 5345+ ;; 5346+ esac 5347+ 5348+ iconvinc= 5349+ iconvlib= 5350+ AC_ARG_WITH(libiconv, 5351+ [ --with-libiconv[=IPREFIX] GNU libiconv are in IPREFIX [default PREFIX]], 5352+ use_libiconv="$withval", use_libiconv="no") 5353+ case "$use_libiconv" in 5354+ yes) 5355+ if test X$prefix = XNONE ; then 5356+ iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv" 5357+ else 5358+ iconvlib="-L$prefix/lib -R$prefix/lib -liconv" 5359+ fi 5360+ ;; 5361+ no) 5362+ iconvlib= 5363+ ;; 5364+ *) 5365+ iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv" 5366+ ;; 5367+ esac 5368+ 5369+ AC_ARG_WITH(iconv, 5370+ [ --with-iconv[=LIBSPEC] specify iconv library [default -liconv]], 5371+ iconvlib="$withval") 5372+ case "$iconvlib" in 5373+ no) 5374+ iconvlib= 5375+ ;; 5376+ yes) 5377+ iconvlib=-liconv 5378+ ;; 5379+ esac 5380+ 5381+ AC_ARG_WITH(idnlib, 5382+ [ --with-idnlib=ARG specify libidnkit], 5383+ idnlib="$withval", idnlib="no") 5384+ if test "$idnlib" = yes; then 5385+ AC_MSG_ERROR([You must specify ARG for --with-idnlib.]) 5386+ fi 5387+ 5388+ IDNLIBS= 5389+ if test "$use_idn" != no; then 5390+ AC_DEFINE(WITH_IDN, 1, [define if idnkit support is to be included.]) 5391+ STD_CINCLUDES="$STD_CINCLUDES -I$idn_path/include" 5392+ if test "$idnlib" != no; then 5393+ IDNLIBS="$idnlib $iconvlib" 5394+ else 5395+ IDNLIBS="-L$idn_path/lib -lidnkit $iconvlib" 5396+ fi 5397+ fi 5398+ AC_SUBST(IDNLIBS) 5399+ 5400+ AC_CHECK_HEADERS(locale.h) 5401+ AC_CHECK_FUNCS(setlocale) 5402+ 5403+ # 5404 # Substitutions 5405 # 5406 AC_SUBST(BIND9_TOP_BUILDDIR) 5407Index: bin/dig/Makefile.in 5408diff -c mdn/othersrc/bind9/bin/dig/Makefile.in:1.1.1.6 mdn/othersrc/bind9/bin/dig/Makefile.in:1.3 5409*** bin/dig/Makefile.in Tue Nov 27 16:55:50 2001 5410--- bin/dig/Makefile.in Tue Mar 19 16:45:35 2002 5411*************** 5412*** 36,42 **** 5413 5414 DEPLIBS = ${DNSDEPLIBS} ${ISCDEPLIBS} 5415 5416! LIBS = ${DNSLIBS} ${ISCLIBS} @LIBS@ 5417 5418 SUBDIRS = 5419 5420--- 36,42 ---- 5421 5422 DEPLIBS = ${DNSDEPLIBS} ${ISCDEPLIBS} 5423 5424! LIBS = ${DNSLIBS} ${ISCLIBS} @IDNLIBS@ @LIBS@ 5425 5426 SUBDIRS = 5427 5428Index: bin/dig/dig.1 5429diff -c mdn/othersrc/bind9/bin/dig/dig.1:1.1.1.2 mdn/othersrc/bind9/bin/dig/dig.1:1.4 5430*** bin/dig/dig.1 Wed May 22 17:14:53 2002 5431--- bin/dig/dig.1 Mon May 27 12:10:14 2002 5432*************** 5433*** 349,354 **** 5434--- 349,365 ---- 5435 \fI+noqr\fR which means that \fBdig\fR 5436 will not print the initial query when it looks up the NS records for 5437 isc.org. 5438+ .SH "IDN SUPPORT" 5439+ .PP 5440+ If \fBdig\fR has been built with IDN (internationalized 5441+ domain name) support, it can accept and display non-ASCII domain names. 5442+ \fBdig\fR appropriately converts character encoding of 5443+ domain name before sending a request to DNS server or displaying a 5444+ reply from the server. 5445+ If you'd like to turn off the IDN support for some reason, defines 5446+ the \fBIDN_DISABLE\fR environment variable. 5447+ The IDN support is disabled if the the variable is set when 5448+ \fBdig\fR runs. 5449 .SH "FILES" 5450 .PP 5451 \fI/etc/resolv.conf\fR 5452Index: bin/dig/dig.docbook 5453diff -c mdn/othersrc/bind9/bin/dig/dig.docbook:1.1.1.2 mdn/othersrc/bind9/bin/dig/dig.docbook:1.4 5454*** bin/dig/dig.docbook Wed May 22 17:14:53 2002 5455--- bin/dig/dig.docbook Mon May 27 12:10:15 2002 5456*************** 5457*** 523,528 **** 5458--- 523,543 ---- 5459 </refsect1> 5460 5461 <refsect1> 5462+ <title>IDN SUPPORT</title> 5463+ <para> 5464+ If <command>dig</command> has been built with IDN (internationalized 5465+ domain name) support, it can accept and display non-ASCII domain names. 5466+ <command>dig</command> appropriately converts character encoding of 5467+ domain name before sending a request to DNS server or displaying a 5468+ reply from the server. 5469+ If you'd like to turn off the IDN support for some reason, defines 5470+ the <envar>IDN_DISABLE</envar> environment variable. 5471+ The IDN support is disabled if the the variable is set when 5472+ <command>dig</command> runs. 5473+ </para> 5474+ </refsect1> 5475+ 5476+ <refsect1> 5477 <title>FILES</title> 5478 <para> 5479 <filename>/etc/resolv.conf</filename> 5480Index: bin/dig/dighost.c 5481diff -c mdn/othersrc/bind9/bin/dig/dighost.c:1.1.1.12 mdn/othersrc/bind9/bin/dig/dighost.c:1.32 5482*** bin/dig/dighost.c Wed May 22 17:14:53 2002 5483--- bin/dig/dighost.c Mon May 27 12:10:15 2002 5484*************** 5485*** 32,37 **** 5486--- 32,48 ---- 5487 #include <string.h> 5488 #include <limits.h> 5489 5490+ #ifdef HAVE_LOCALE_H 5491+ #include <locale.h> 5492+ #endif 5493+ 5494+ #ifdef WITH_IDN 5495+ #include <idn/result.h> 5496+ #include <idn/log.h> 5497+ #include <idn/resconf.h> 5498+ #include <idn/api.h> 5499+ #endif 5500+ 5501 #include <dns/byaddr.h> 5502 #include <dns/fixedname.h> 5503 #include <dns/message.h> 5504*************** 5505*** 130,135 **** 5506--- 141,158 ---- 5507 isc_mutex_t lookup_lock; 5508 dig_lookup_t *current_lookup = NULL; 5509 5510+ #ifdef WITH_IDN 5511+ static void initialize_idn(void); 5512+ static isc_result_t output_filter(isc_buffer_t *buffer, 5513+ unsigned int used_org, 5514+ isc_boolean_t absolute); 5515+ static idn_result_t append_textname(char *name, const char *origin, 5516+ size_t namesize); 5517+ static void idn_check_result(idn_result_t r, const char *msg); 5518+ 5519+ #define MAXDLEN 256 5520+ #endif 5521+ 5522 /* 5523 * Apply and clear locks at the event level in global task. 5524 * Can I get rid of these using shutdown events? XXX 5525*************** 5526*** 648,653 **** 5527--- 671,680 ---- 5528 ISC_LIST_APPEND(server_list, srv, link); 5529 } 5530 5531+ #ifdef WITH_IDN 5532+ initialize_idn(); 5533+ #endif 5534+ 5535 if (keyfile[0] != 0) 5536 setup_file_key(); 5537 else if (keysecret[0] != 0) 5538*************** 5539*** 1168,1173 **** 5540--- 1195,1208 ---- 5541 isc_buffer_t b; 5542 dns_compress_t cctx; 5543 char store[MXNAME]; 5544+ #ifdef WITH_IDN 5545+ idn_result_t mr; 5546+ char utf8_textname[MXNAME], utf8_origin[MXNAME], idn_textname[MXNAME]; 5547+ #endif 5548+ 5549+ #ifdef WITH_IDN 5550+ dns_name_settotextfilter(output_filter); 5551+ #endif 5552 5553 REQUIRE(lookup != NULL); 5554 INSIST(!free_now); 5555*************** 5556*** 1196,1201 **** 5557--- 1231,1247 ---- 5558 isc_buffer_init(&lookup->onamebuf, lookup->onamespace, 5559 sizeof(lookup->onamespace)); 5560 5561+ #ifdef WITH_IDN 5562+ /* 5563+ * We cannot convert `textname' and `origin' separately. 5564+ * `textname' doesn't contain TLD, but local mapping needs 5565+ * TLD. 5566+ */ 5567+ mr = idn_encodename(IDN_LOCALCONV | IDN_DELIMMAP, lookup->textname, 5568+ utf8_textname, sizeof(utf8_textname)); 5569+ idn_check_result(mr, "convert textname to UTF-8"); 5570+ #endif 5571+ 5572 /* 5573 * If the name has too many dots, force the origin to be NULL 5574 * (which produces an absolute lookup). Otherwise, take the origin 5575*************** 5576*** 1204,1215 **** 5577--- 1250,1290 ---- 5578 * is TRUE or we got a domain line in the resolv.conf file. 5579 */ 5580 /* XXX New search here? */ 5581+ #ifdef WITH_IDN 5582+ if ((count_dots(utf8_textname) >= ndots) || !usesearch) 5583+ lookup->origin = NULL; /* Force abs lookup */ 5584+ else if (lookup->origin == NULL && lookup->new_search && usesearch) { 5585+ lookup->origin = ISC_LIST_HEAD(search_list); 5586+ } 5587+ #else 5588 if ((count_dots(lookup->textname) >= ndots) || !usesearch) 5589 lookup->origin = NULL; /* Force abs lookup */ 5590 else if (lookup->origin == NULL && lookup->new_search && usesearch) { 5591 lookup->origin = ISC_LIST_HEAD(search_list); 5592 } 5593+ #endif 5594+ 5595+ #ifdef WITH_IDN 5596 if (lookup->origin != NULL) { 5597+ mr = idn_encodename(IDN_LOCALCONV | IDN_DELIMMAP, 5598+ lookup->origin->origin, utf8_origin, 5599+ sizeof(utf8_origin)); 5600+ idn_check_result(mr, "convert origin to UTF-8"); 5601+ mr = append_textname(utf8_textname, utf8_origin, 5602+ sizeof(utf8_textname)); 5603+ idn_check_result(mr, "append origin to textname"); 5604+ } 5605+ mr = idn_encodename(IDN_LOCALMAP | IDN_NAMEPREP | IDN_ASCCHECK | 5606+ IDN_IDNCONV | IDN_LENCHECK, utf8_textname, 5607+ idn_textname, sizeof(idn_textname)); 5608+ idn_check_result(mr, "convert UTF-8 textname to IDN encoding"); 5609+ #endif 5610+ 5611+ #ifdef WITH_IDN 5612+ if (0) { 5613+ #else 5614+ if (lookup->origin != NULL) { 5615+ #endif 5616 debug("trying origin %s", lookup->origin->origin); 5617 result = dns_message_gettempname(lookup->sendmsg, 5618 &lookup->oname); 5619*************** 5620*** 1254,1259 **** 5621--- 1329,1343 ---- 5622 if (lookup->trace && lookup->trace_root) 5623 dns_name_clone(dns_rootname, lookup->name); 5624 else { 5625+ #ifdef WITH_IDN 5626+ len = strlen(idn_textname); 5627+ isc_buffer_init(&b, idn_textname, len); 5628+ isc_buffer_add(&b, len); 5629+ result = dns_name_fromtext(lookup->name, &b, 5630+ dns_rootname, 5631+ ISC_FALSE, 5632+ &lookup->namebuf); 5633+ #else 5634 len = strlen(lookup->textname); 5635 isc_buffer_init(&b, lookup->textname, len); 5636 isc_buffer_add(&b, len); 5637*************** 5638*** 1261,1266 **** 5639--- 1345,1351 ---- 5640 dns_rootname, 5641 ISC_FALSE, 5642 &lookup->namebuf); 5643+ #endif 5644 } 5645 if (result != ISC_R_SUCCESS) { 5646 dns_message_puttempname(lookup->sendmsg, 5647*************** 5648*** 2591,2593 **** 5649--- 2676,2776 ---- 5650 if (mctx != NULL) 5651 isc_mem_destroy(&mctx); 5652 } 5653+ 5654+ #ifdef WITH_IDN 5655+ static void 5656+ initialize_idn(void) { 5657+ idn_result_t r; 5658+ 5659+ #ifdef HAVE_SETLOCALE 5660+ /* Set locale */ 5661+ (void)setlocale(LC_ALL, ""); 5662+ #endif 5663+ /* Create configuration context. */ 5664+ r = idn_nameinit(1); 5665+ if (r != idn_success) 5666+ fatal("idn api initialization failed: %s", 5667+ idn_result_tostring(r)); 5668+ 5669+ /* Set domain name -> text post-conversion filter. */ 5670+ dns_name_settotextfilter(output_filter); 5671+ } 5672+ 5673+ static isc_result_t 5674+ output_filter(isc_buffer_t *buffer, unsigned int used_org, 5675+ isc_boolean_t absolute) 5676+ { 5677+ char tmp1[MAXDLEN], tmp2[MAXDLEN]; 5678+ size_t fromlen, tolen; 5679+ isc_boolean_t end_with_dot; 5680+ 5681+ /* 5682+ * Copy contents of 'buffer' to 'tmp1', supply trailing dot 5683+ * if 'absolute' is true, and terminate with NUL. 5684+ */ 5685+ fromlen = isc_buffer_usedlength(buffer) - used_org; 5686+ if (fromlen >= MAXDLEN) 5687+ return (ISC_R_SUCCESS); 5688+ memcpy(tmp1, (char *)isc_buffer_base(buffer) + used_org, fromlen); 5689+ end_with_dot = (tmp1[fromlen - 1] == '.') ? ISC_TRUE : ISC_FALSE; 5690+ if (absolute && !end_with_dot) { 5691+ fromlen++; 5692+ if (fromlen >= MAXDLEN) 5693+ return (ISC_R_SUCCESS); 5694+ tmp1[fromlen - 1] = '.'; 5695+ } 5696+ tmp1[fromlen] = '\0'; 5697+ 5698+ /* 5699+ * Convert contents of 'tmp1' to local encoding. 5700+ */ 5701+ if (idn_decodename(IDN_DECODE_APP, tmp1, tmp2, MAXDLEN) != idn_success) 5702+ return (ISC_R_SUCCESS); 5703+ strcpy(tmp1, tmp2); 5704+ 5705+ /* 5706+ * Copy the converted contents in 'tmp1' back to 'buffer'. 5707+ * If we have appended trailing dot, remove it. 5708+ */ 5709+ tolen = strlen(tmp1); 5710+ if (absolute && !end_with_dot && tmp1[tolen - 1] == '.') 5711+ tolen--; 5712+ 5713+ if (isc_buffer_length(buffer) < used_org + tolen) 5714+ return (ISC_R_NOSPACE); 5715+ 5716+ isc_buffer_subtract(buffer, isc_buffer_usedlength(buffer) - used_org); 5717+ memcpy(isc_buffer_used(buffer), tmp1, tolen); 5718+ isc_buffer_add(buffer, tolen); 5719+ 5720+ return (ISC_R_SUCCESS); 5721+ } 5722+ 5723+ static idn_result_t 5724+ append_textname(char *name, const char *origin, size_t namesize) { 5725+ size_t namelen = strlen(name); 5726+ size_t originlen = strlen(origin); 5727+ 5728+ /* Already absolute? */ 5729+ if (namelen > 0 && name[namelen - 1] == '.') 5730+ return idn_success; 5731+ 5732+ /* Append dot and origin */ 5733+ 5734+ if (namelen + 1 + originlen >= namesize) 5735+ return idn_buffer_overflow; 5736+ 5737+ name[namelen++] = '.'; 5738+ (void)strcpy(name + namelen, origin); 5739+ return idn_success; 5740+ } 5741+ 5742+ static void 5743+ idn_check_result(idn_result_t r, const char *msg) { 5744+ if (r != idn_success) { 5745+ exitcode = 1; 5746+ fatal("%s: %s", msg, idn_result_tostring(r)); 5747+ } 5748+ } 5749+ 5750+ #endif /* WITH_IDN */ 5751Index: bin/dig/host.1 5752diff -c mdn/othersrc/bind9/bin/dig/host.1:1.1.1.1 mdn/othersrc/bind9/bin/dig/host.1:1.3 5753*** bin/dig/host.1 Tue Nov 27 16:55:51 2001 5754--- bin/dig/host.1 Tue Mar 19 16:45:36 2002 5755*************** 5756*** 120,125 **** 5757--- 120,136 ---- 5758 effectively wait forever for a reply. The time to wait for a response 5759 will be set to the number of seconds given by the hardware's maximum 5760 value for an integer quantity. 5761+ .SH "IDN SUPPORT" 5762+ .PP 5763+ If \fBhost\fR has been built with IDN (internationalized 5764+ domain name) support, it can accept and display non-ASCII domain names. 5765+ \fBhost\fR appropriately converts character encoding of 5766+ domain name before sending a request to DNS server or displaying a 5767+ reply from the server. 5768+ If you'd like to turn off the IDN support for some reason, defines 5769+ the \fBIDN_DISABLE\fR environment variable. 5770+ The IDN support is disabled if the the variable is set when 5771+ \fBhost\fR runs. 5772 .SH "FILES" 5773 .PP 5774 \fI/etc/resolv.conf\fR 5775Index: bin/dig/host.docbook 5776diff -c mdn/othersrc/bind9/bin/dig/host.docbook:1.1.1.1 mdn/othersrc/bind9/bin/dig/host.docbook:1.3 5777*** bin/dig/host.docbook Tue Nov 27 16:55:51 2001 5778--- bin/dig/host.docbook Tue Mar 19 16:45:36 2002 5779*************** 5780*** 181,186 **** 5781--- 181,201 ---- 5782 </refsect1> 5783 5784 <refsect1> 5785+ <title>IDN SUPPORT</title> 5786+ <para> 5787+ If <command>host</command> has been built with IDN (internationalized 5788+ domain name) support, it can accept and display non-ASCII domain names. 5789+ <command>host</command> appropriately converts character encoding of 5790+ domain name before sending a request to DNS server or displaying a 5791+ reply from the server. 5792+ If you'd like to turn off the IDN support for some reason, defines 5793+ the <envar>IDN_DISABLE</envar> environment variable. 5794+ The IDN support is disabled if the the variable is set when 5795+ <command>host</command> runs. 5796+ </para> 5797+ </refsect1> 5798+ 5799+ <refsect1> 5800 <title>FILES</title> 5801 <para> 5802 <filename>/etc/resolv.conf</filename> 5803Index: lib/dns/name.c 5804diff -c mdn/othersrc/bind9/lib/dns/name.c:1.1.1.10 mdn/othersrc/bind9/lib/dns/name.c:1.14 5805*** lib/dns/name.c Wed May 22 17:15:27 2002 5806--- lib/dns/name.c Mon May 27 12:10:15 2002 5807*************** 5808*** 194,199 **** 5809--- 194,206 ---- 5810 /* XXXDCL make const? */ 5811 dns_name_t *dns_wildcardname = &wild; 5812 5813+ #ifdef WITH_IDN 5814+ /* 5815+ * dns_name_t to text post-conversion procedure. 5816+ */ 5817+ static dns_name_totextfilter_t totext_filter_proc = NULL; 5818+ #endif 5819+ 5820 static void 5821 set_offsets(const dns_name_t *name, unsigned char *offsets, 5822 dns_name_t *set_name); 5823*************** 5824*** 1682,1687 **** 5825--- 1689,1697 ---- 5826 unsigned int labels; 5827 isc_boolean_t saw_root = ISC_FALSE; 5828 char num[4]; 5829+ #ifdef WITH_IDN 5830+ unsigned int oused = target->used; 5831+ #endif 5832 5833 /* 5834 * This function assumes the name is in proper uncompressed 5835*************** 5836*** 1859,1864 **** 5837--- 1869,1878 ---- 5838 5839 isc_buffer_add(target, tlen - trem); 5840 5841+ #ifdef WITH_IDN 5842+ if (totext_filter_proc != NULL) 5843+ return ((*totext_filter_proc)(target, oused, saw_root)); 5844+ #endif 5845 return (ISC_R_SUCCESS); 5846 } 5847 5848*************** 5849*** 3315,3317 **** 5850--- 3329,3337 ---- 5851 return (ISC_R_SUCCESS); 5852 } 5853 5854+ #ifdef WITH_IDN 5855+ void 5856+ dns_name_settotextfilter(dns_name_totextfilter_t proc) { 5857+ totext_filter_proc = proc; 5858+ } 5859+ #endif 5860Index: lib/dns/include/dns/name.h 5861diff -c mdn/othersrc/bind9/lib/dns/include/dns/name.h:1.1.1.7 mdn/othersrc/bind9/lib/dns/include/dns/name.h:1.10 5862*** lib/dns/include/dns/name.h Wed May 22 17:15:29 2002 5863--- lib/dns/include/dns/name.h Mon May 27 12:10:15 2002 5864*************** 5865*** 219,224 **** 5866--- 219,235 ---- 5867 */ 5868 #define DNS_NAME_MAXWIRE 255 5869 5870+ #ifdef WITH_IDN 5871+ /* 5872+ * Text output filter procedure. 5873+ * 'target' is the buffer to be converted. The region to be converted 5874+ * is from 'buffer'->base + 'used_org' to the end of the used region. 5875+ */ 5876+ typedef isc_result_t (*dns_name_totextfilter_t)(isc_buffer_t *target, 5877+ unsigned int used_org, 5878+ isc_boolean_t absolute); 5879+ #endif 5880+ 5881 /*** 5882 *** Initialization 5883 ***/ 5884*************** 5885*** 1244,1249 **** 5886--- 1255,1268 ---- 5887 * 'size' > 0. 5888 * 5889 */ 5890+ 5891+ #ifdef WITH_IDN 5892+ void 5893+ dns_name_settotextfilter(dns_name_totextfilter_t proc); 5894+ /* 5895+ * Call 'proc' at the end of dns_name_totext. 5896+ */ 5897+ #endif /* WITH_IDN */ 5898 5899 #define DNS_NAME_FORMATSIZE (DNS_NAME_MAXTEXT + 1) 5900 /* 5901